mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Account for hoverRadius in Point.size() (#6945)
* Account for hoverRadius in Point.size() * Update fixtures
This commit is contained in:
parent
547aa51544
commit
5cca0bb866
@ -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;
|
||||
}
|
||||
|
BIN
test/fixtures/controller.line/clip/default-y-max.png
vendored
BIN
test/fixtures/controller.line/clip/default-y-max.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
BIN
test/fixtures/controller.line/clip/default-y.png
vendored
BIN
test/fixtures/controller.line/clip/default-y.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Loading…
Reference in New Issue
Block a user