mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Shorten imports (#7168)
This commit is contained in:
parent
6638549a75
commit
5ef519e4d2
@ -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'];
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user