Class: Animator

Constructors

constructor

+ new Animator(): Animator

Returns: Animator

Methods

add

add(chart: Chart<"bar" | "line" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar", (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, items: readonly Animation[]): void

Parameters

NameType
chartChart<“bar” | “line” | “scatter” | “bubble” | “pie” | “doughnut” | “polarArea” | “radar”, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>
itemsreadonly Animation[]

Returns: void

Defined in: animation.d.ts:20Animator - 图1 (opens new window)


has

has(chart: Chart<"bar" | "line" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar", (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): boolean

Parameters

NameType
chartChart<“bar” | “line” | “scatter” | “bubble” | “pie” | “doughnut” | “polarArea” | “radar”, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: boolean

Defined in: animation.d.ts:21Animator - 图2 (opens new window)


listen

listen(chart: Chart<"bar" | "line" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar", (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, event: "complete" | "progress", cb: (event: AnimationEvent) => void): void

Parameters

NameType
chartChart<“bar” | “line” | “scatter” | “bubble” | “pie” | “doughnut” | “polarArea” | “radar”, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>
event“complete” | “progress”
cb(event: AnimationEvent) => void

Returns: void

Defined in: animation.d.ts:19Animator - 图3 (opens new window)


remove

remove(chart: Chart<"bar" | "line" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar", (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): boolean

Parameters

NameType
chartChart<“bar” | “line” | “scatter” | “bubble” | “pie” | “doughnut” | “polarArea” | “radar”, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: boolean

Defined in: animation.d.ts:25Animator - 图4 (opens new window)


running

running(chart: Chart<"bar" | "line" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar", (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): boolean

Parameters

NameType
chartChart<“bar” | “line” | “scatter” | “bubble” | “pie” | “doughnut” | “polarArea” | “radar”, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: boolean

Defined in: animation.d.ts:23Animator - 图5 (opens new window)


start

start(chart: Chart<"bar" | "line" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar", (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): void

Parameters

NameType
chartChart<“bar” | “line” | “scatter” | “bubble” | “pie” | “doughnut” | “polarArea” | “radar”, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: void

Defined in: animation.d.ts:22Animator - 图6 (opens new window)


stop

stop(chart: Chart<"bar" | "line" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar", (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): void

Parameters

NameType
chartChart<“bar” | “line” | “scatter” | “bubble” | “pie” | “doughnut” | “polarArea” | “radar”, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: void

Defined in: animation.d.ts:24Animator - 图7 (opens new window)