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

Method updateElement

src/core/core.datasetController.js:898–904  ·  src/core/core.datasetController.js::DatasetController.updateElement

* Utility for updating an element with new properties, using animations when appropriate. * @protected

(element, index, properties, mode)

Source from the content-addressed store, hash-verified

896 * @protected
897 */
898 updateElement(element, index, properties, mode) {
899 if (isDirectUpdateMode(mode)) {
900 Object.assign(element, properties);
901 } else {
902 this._resolveAnimations(index, mode).update(element, properties);
903 }
904 }
905
906 /**
907 * Utility to animate the shared options, that are potentially affecting multiple elements.

Callers 10

updateMethod · 0.80
updateElementsMethod · 0.80
updateMethod · 0.80
updateElementsMethod · 0.80
updateElementsMethod · 0.80
updateElementsMethod · 0.80
updateMethod · 0.80
updateElementsMethod · 0.80
updateElementsMethod · 0.80
updateElementsMethod · 0.80

Calls 3

_resolveAnimationsMethod · 0.95
isDirectUpdateModeFunction · 0.85
updateMethod · 0.65

Tested by

no test coverage detected