MCPcopy Index your code
hub / github.com/apache/echarts / removeElement

Function removeElement

src/animation/basicTransition.ts:272–286  ·  view source on GitHub ↗
(
    el: Element<Props>,
    props: Props,
    animatableModel?: Model<AnimationOptionMixin>,
    dataIndex?: AnimateOrSetPropsOption['dataIndex'] | AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption,
    cb?: AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption['during'],
    during?: AnimateOrSetPropsOption['during']
)

Source from the content-addressed store, hash-verified

270 * Remove graphic element
271 */
272export function removeElement<Props>(
273 el: Element<Props>,
274 props: Props,
275 animatableModel?: Model<AnimationOptionMixin>,
276 dataIndex?: AnimateOrSetPropsOption['dataIndex'] | AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption,
277 cb?: AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption['during'],
278 during?: AnimateOrSetPropsOption['during']
279) {
280 // Don't do remove animation twice.
281 if (isElementRemoved(el)) {
282 return;
283 }
284
285 animateOrSetProps('leave', el, props, animatableModel, dataIndex, cb, during);
286}
287
288function fadeOutDisplayable(
289 el: Displayable,

Callers 1

fadeOutDisplayableFunction · 0.85

Calls 2

isElementRemovedFunction · 0.85
animateOrSetPropsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…