Update imports for elements (#7049)

This commit is contained in:
Ben McCann 2020-02-03 04:34:36 -08:00 committed by GitHub
parent 771fe52095
commit 7cd77e779d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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);
}
}

View File

@ -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;