Shorten imports (#7168)

This commit is contained in:
Ben McCann 2020-03-01 06:57:24 -08:00 committed by GitHub
parent 6638549a75
commit 5ef519e4d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
import Animator from './core.animator';
import Animation from './core.animation';
import defaults from '../core/core.defaults';
import defaults from './core.defaults';
import {noop, isObject} from '../helpers/helpers.core';
const numbers = ['x', 'y', 'borderWidth', 'radius', 'tension'];

View File

@ -6,7 +6,7 @@ import Interaction from './core.interaction';
import layouts from './core.layouts';
import {BasicPlatform, DomPlatform} from '../platform/platforms';
import plugins from './core.plugins';
import scaleService from '../core/core.scaleService';
import scaleService from './core.scaleService';
import {getMaximumWidth, getMaximumHeight} from '../helpers/helpers.dom';
// @ts-ignore
import {version} from '../../package.json';

View File

@ -2,8 +2,8 @@ import helpers from '../helpers/index';
import Animations from './core.animations';
/**
* @typedef { import("../core/core.controller").default } Chart
* @typedef { import("../core/core.scale").default } Scale
* @typedef { import("./core.controller").default } Chart
* @typedef { import("./core.scale").default } Scale
*/
const resolve = helpers.options.resolve;

View File

@ -6,7 +6,7 @@ import {_lookupByKey, _rlookupByKey} from '../helpers/helpers.collection';
* @typedef { import("./core.controller").default } Chart
* @typedef { import("../platform/platform.base").IEvent } IEvent
* @typedef {{axis?: string, intersect?: boolean}} InteractionOptions
* @typedef {{datasetIndex: number, index: number, element: import("../core/core.element").default}} InteractionItem
* @typedef {{datasetIndex: number, index: number, element: import("./core.element").default}} InteractionItem
*/
/**