Account for hoverRadius in Point.size() (#6945)

* Account for hoverRadius in Point.size()
* Update fixtures
This commit is contained in:
Jukka Kurkela 2020-01-11 01:28:06 +02:00 committed by Evert Timberg
parent 547aa51544
commit 5cca0bb866
3 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class Point extends Element {
size() {
const options = this.options || {};
const radius = options.radius || 0;
const radius = Math.max(options.radius, options.hoverRadius) || 0;
const borderWidth = radius && options.borderWidth || 0;
return (radius + borderWidth) * 2;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB