Skip to content

Commit d3a5e93

Browse files
committed
Additional fixes
1 parent 281471e commit d3a5e93

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
*/
44
import Chart from './core/core.controller';
55

6-
import helpers from './helpers';
6+
import helpers from './helpers/index';
77
import _adapters from './core/core.adapters';
88
import Animation from './core/core.animation';
99
import Animator from './core/core.animator';
1010
import animationService from './core/core.animations';
11-
import controllers from './controllers';
11+
import controllers from './controllers/index';
1212
import DatasetController from './core/core.datasetController';
1313
import defaults from './core/core.defaults';
1414
import Element from './core/core.element';
15-
import elements from './elements';
15+
import elements from './elements/index';
1616
import Interaction from './core/core.interaction';
1717
import layouts from './core/core.layouts';
1818
import platforms from './platform/platforms';
@@ -42,17 +42,17 @@ Chart.scaleService = scaleService;
4242
Chart.Ticks = Ticks;
4343

4444
// Register built-in scales
45-
import scales from './scales';
45+
import scales from './scales/index';
4646
Object.keys(scales).forEach(function(type) {
4747
const scale = scales[type];
4848
Chart.scaleService.registerScaleType(type, scale, scale._defaults);
4949
});
5050

5151
// Load to register built-in adapters (as side effects)
52-
import './adapters';
52+
import './adapters/index';
5353

5454
// Loading built-in plugins
55-
import plugins from './plugins';
55+
import plugins from './plugins/index';
5656
for (var k in plugins) {
5757
if (Object.prototype.hasOwnProperty.call(plugins, k)) {
5858
Chart.plugins.register(plugins[k]);

src/plugins/plugin.filler.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import defaults from '../core/core.defaults';
1010
import Line from '../elements/element.line';
1111
import {_boundSegment, _boundSegments} from '../helpers/helpers.segment';
1212
import {clipArea, unclipArea} from '../helpers/helpers.canvas';
13-
import {valueOrDefault, isFinite, isArray, extend} from '../helpers/helpers.core';
13+
import {isArray, isFinite, valueOrDefault} from '../helpers/helpers.core';
1414
import {_normalizeAngle} from '../helpers/helpers.math';
1515

1616
defaults._set('plugins', {
@@ -91,7 +91,9 @@ function computeLinearBoundary(source) {
9191
// TODO: use elements.Arc instead
9292
class simpleArc {
9393
constructor(opts) {
94-
extend(this, opts);
94+
this.x = opts.x;
95+
this.y = opts.y;
96+
this.radius = opts.radius;
9597
}
9698

9799
pathSegment(ctx, bounds, opts) {

0 commit comments

Comments
 (0)