Class: Animator

Constructors

constructor

new Animator()

Methods

add

add(chart, items): void

Parameters

NameType
chartChart<keyof ChartTypeRegistry, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>
itemsreadonly Animation[]

Returns

void

Defined in

animation.d.ts:21Animator - 图1 (opens new window)


has

has(chart): boolean

Parameters

NameType
chartChart<keyof ChartTypeRegistry, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns

boolean

Defined in

animation.d.ts:22Animator - 图2 (opens new window)


listen

listen(chart, event, cb): void

Parameters

NameType
chartChart<keyof ChartTypeRegistry, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>
event“complete” | “progress”
cb(event: AnimationEvent) => void

Returns

void

Defined in

animation.d.ts:20Animator - 图3 (opens new window)


remove

remove(chart): boolean

Parameters

NameType
chartChart<keyof ChartTypeRegistry, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns

boolean

Defined in

animation.d.ts:26Animator - 图4 (opens new window)


running

running(chart): boolean

Parameters

NameType
chartChart<keyof ChartTypeRegistry, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns

boolean

Defined in

animation.d.ts:24Animator - 图5 (opens new window)


start

start(chart): void

Parameters

NameType
chartChart<keyof ChartTypeRegistry, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns

void

Defined in

animation.d.ts:23Animator - 图6 (opens new window)


stop

stop(chart): void

Parameters

NameType
chartChart<keyof ChartTypeRegistry, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns

void

Defined in

animation.d.ts:25Animator - 图7 (opens new window)