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

Method updateSharedOptions

src/core/core.datasetController.js:910–914  ·  view source on GitHub ↗

* Utility to animate the shared options, that are potentially affecting multiple elements. * @protected

(sharedOptions, mode, newOptions)

Source from the content-addressed store, hash-verified

908 * @protected
909 */
910 updateSharedOptions(sharedOptions, mode, newOptions) {
911 if (sharedOptions && !isDirectUpdateMode(mode)) {
912 this._resolveAnimations(undefined, mode).update(sharedOptions, newOptions);
913 }
914 }
915
916 /**
917 * @private

Callers 2

_getSharedOptionsMethod · 0.95
updateElementsMethod · 0.80

Calls 3

_resolveAnimationsMethod · 0.95
isDirectUpdateModeFunction · 0.85
updateMethod · 0.65

Tested by

no test coverage detected