* 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']
)
| 217 | * }, seriesModel, function () { console.log('Animation done!'); }); |
| 218 | */ |
| 219 | function 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 | |
| 231 | export {updateProps}; |
| 232 |
no test coverage detected
searching dependent graphs…