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 {
return (radius + borderWidth) * 2;
}
- draw(ctx, chartArea) {
+ draw(ctx) {
const me = this;
const options = me.options;
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);
- }
+ ctx.strokeStyle = options.borderColor;
+ ctx.lineWidth = options.borderWidth;
+ ctx.fillStyle = options.backgroundColor;
+ drawPoint(ctx, options, me.x, me.y);
}
getRange() {