From: Takuya Uehara Date: Sun, 18 Oct 2020 13:54:39 +0000 (+0900) Subject: Remove area inclusion check when rendering points (#7910) X-Git-Tag: v3.0.0-beta.5~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de963091d9505ca8c4b8009a97780a2db4dce670;p=thirdparty%2FChart.js.git Remove area inclusion check when rendering points (#7910) --- diff --git a/src/elements/element.point.js b/src/elements/element.point.js index 52b38645f..57c845743 100644 --- a/src/elements/element.point.js +++ b/src/elements/element.point.js @@ -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,13 +54,10 @@ 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); - } + ctx.strokeStyle = options.borderColor; + ctx.lineWidth = options.borderWidth; + ctx.fillStyle = options.backgroundColor; + drawPoint(ctx, options, me.x, me.y); } getRange() {