MCPcopy
hub / github.com/chartjs/Chart.js / update

Method update

src/core/core.animations.js:118–131  ·  src/core/core.animations.js::Animations.update

* Update `target` properties to new values, using configured animations * @param {object} target - object to update * @param {object} values - new target properties * @returns {boolean|undefined} - `true` if animations were started

(target, values)

Source from the content-addressed store, hash-verified

116 * @returns {boolean|undefined} - `true` if animations were started
117 **/
118 update(target, values) {
119 if (this._properties.size === 0) {
120 class="cm">// Nothing is animated, just apply the new values.
121 Object.assign(target, values);
122 return;
123 }
124
125 const animations = this._createAnimations(target, values);
126
127 if (animations.length) {
128 animator.add(this._chart, animations);
129 return true;
130 }
131 }
132}
133
134function awaitAll(animations, properties) {

Callers

nothing calls this directly

Calls 2

_createAnimationsMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected