MCPcopy
hub / github.com/apache/echarts / updateProps

Function updateProps

src/animation/basicTransition.ts:219–229  ·  view source on GitHub ↗

* Update graphic element properties with or without animation according to the * configuration in series. * * Caution: this method will stop previous animation. * So do not use this method to one element twice before * animation starts, unless you know what you are doing. * @example * gra

(
    el: Element<Props>,
    props: Props,
    // TODO: TYPE AnimatableModel
    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

217 * }, seriesModel, function () { console.log('Animation done!'); });
218 */
219function updateProps<Props extends ElementProps>(
220 el: Element<Props>,
221 props: Props,
222 // TODO: TYPE AnimatableModel
223 animatableModel?: Model<AnimationOptionMixin>,
224 dataIndex?: AnimateOrSetPropsOption['dataIndex'] | AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption,
225 cb?: AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption['during'],
226 during?: AnimateOrSetPropsOption['during']
227) {
228 animateOrSetProps('update', el, props, animatableModel, dataIndex, cb, during);
229}
230
231export {updateProps};
232

Callers 3

_relocateMethod · 0.90
groupTransitionFunction · 0.90
_animateLabelsMethod · 0.50

Calls 1

animateOrSetPropsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…