mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Update imports for elements (#7049)
This commit is contained in:
parent
771fe52095
commit
7cd77e779d
@ -2,7 +2,7 @@
|
||||
|
||||
import defaults from '../core/core.defaults';
|
||||
import Element from '../core/core.element';
|
||||
import helpers from '../helpers';
|
||||
import {_isPointInArea, drawPoint} from '../helpers/helpers.canvas';
|
||||
|
||||
const defaultColor = defaults.color;
|
||||
|
||||
@ -70,11 +70,11 @@ class Point extends Element {
|
||||
}
|
||||
|
||||
// Clipping for Points.
|
||||
if (chartArea === undefined || helpers.canvas._isPointInArea(me, chartArea)) {
|
||||
if (chartArea === undefined || _isPointInArea(me, chartArea)) {
|
||||
ctx.strokeStyle = options.borderColor;
|
||||
ctx.lineWidth = options.borderWidth;
|
||||
ctx.fillStyle = options.backgroundColor;
|
||||
helpers.canvas.drawPoint(ctx, options, me.x, me.y);
|
||||
drawPoint(ctx, options, me.x, me.y);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
import defaults from '../core/core.defaults';
|
||||
import Element from '../core/core.element';
|
||||
import helpers from '../helpers';
|
||||
import {isObject} from '../helpers/helpers.core';
|
||||
|
||||
const defaultColor = defaults.color;
|
||||
|
||||
@ -79,7 +79,7 @@ function parseBorderWidth(bar, maxW, maxH) {
|
||||
var skip = parseBorderSkipped(bar);
|
||||
var t, r, b, l;
|
||||
|
||||
if (helpers.isObject(value)) {
|
||||
if (isObject(value)) {
|
||||
t = +value.top || 0;
|
||||
r = +value.right || 0;
|
||||
b = +value.bottom || 0;
|
||||
|
Loading…
Reference in New Issue
Block a user