* 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)
| 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 | |
| 134 | function awaitAll(animations, properties) { |
nothing calls this directly
no test coverage detected