mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Remove area inclusion check when rendering points (#7910)
This commit is contained in:
parent
7ce9710f33
commit
de963091d9
@ -1,5 +1,5 @@
|
||||
import Element from '../core/core.element';
|
||||
import {_isPointInArea, drawPoint} from '../helpers/helpers.canvas';
|
||||
import {drawPoint} from '../helpers/helpers.canvas';
|
||||
|
||||
export default class Point extends Element {
|
||||
|
||||
@ -46,7 +46,7 @@ export default class Point extends Element {
|
||||
return (radius + borderWidth) * 2;
|
||||
}
|
||||
|
||||
draw(ctx, chartArea) {
|
||||
draw(ctx) {
|
||||
const me = this;
|
||||
const options = me.options;
|
||||
|
||||
@ -54,14 +54,11 @@ export default class Point extends Element {
|
||||
return;
|
||||
}
|
||||
|
||||
// Clipping for Points.
|
||||
if (chartArea === undefined || _isPointInArea(me, chartArea)) {
|
||||
ctx.strokeStyle = options.borderColor;
|
||||
ctx.lineWidth = options.borderWidth;
|
||||
ctx.fillStyle = options.backgroundColor;
|
||||
drawPoint(ctx, options, me.x, me.y);
|
||||
}
|
||||
}
|
||||
|
||||
getRange() {
|
||||
const options = this.options || {};
|
||||
|
Loading…
Reference in New Issue
Block a user