Skip to content

Documentation / @ripl/charts / exitElement

Function: exitElement() ​

exitElement<TElement>(renderer, element, animation, state?): Promise<void>

Defined in: charts/src/core/animation.ts:110

Transitions an element to a terminal state (defaulting to fully transparent) and then destroys it, giving every chart a consistent exit animation. When animation is disabled the element is destroyed immediately.

Type Parameters ​

Type Parameter
TElement extends Element<Partial<BaseState>, ElementEventMap>

Parameters ​

ParameterType
rendererRenderer
elementTElement
animationResolvedAnimation
state?ElementInterpolationState<TElement extends Element<TState, ElementEventMap> ? TState : never>

Returns ​

Promise<void>