/
githubmirror
/
Chart.js
Обзор
Документация
Войти
/
githubmirror
/
Chart.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/types/animation.d.ts
34 строки
997 B
Dan Onoshko
fix: move types to src dir to escape src / dist dirs in paths (#10993)
16 дек 2022, 15:56
Не верифицирован
16 дек 2022, 15:56
64a0278
Код
Авторство
О чём код?
import {Chart} from './index.js'; import {AnyObject} from './basic.js'; export declare class Animation { constructor(cfg: AnyObject, target: AnyObject, prop: string, to?: unknown); active(): boolean; update(cfg: AnyObject, to: unknown, date: number): void; cancel(): void; tick(date: number): void; readonly _to: unknown; } export interface AnimationEvent { chart: Chart; numSteps: number; initial: boolean; currentStep: number; } export declare class Animator { listen(chart: Chart, event: 'complete' | 'progress', cb: (event: AnimationEvent) => void): void; add(chart: Chart, items: readonly Animation[]): void; has(chart: Chart): boolean; start(chart: Chart): void; running(chart: Chart): boolean; stop(chart: Chart): void; remove(chart: Chart): boolean; } export declare class Animations { constructor(chart: Chart, animations: AnyObject); configure(animations: AnyObject): void; update(target: AnyObject, values: AnyObject): undefined | boolean; }