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

Method _getSharedOptions

src/core/core.datasetController.js:885–892  ·  src/core/core.datasetController.js::DatasetController._getSharedOptions

* @todo v4, rename to getSharedOptions and remove excess functions

(start, mode)

Source from the content-addressed store, hash-verified

883 * @todo v4, rename to getSharedOptions and remove excess functions
884 */
885 _getSharedOptions(start, mode) {
886 const firstOpts = this.resolveDataElementOptions(start, mode);
887 const previouslySharedOptions = this._sharedOptions;
888 const sharedOptions = this.getSharedOptions(firstOpts);
889 const includeOptions = this.includeOptions(mode, sharedOptions) || (sharedOptions !== previouslySharedOptions);
890 this.updateSharedOptions(sharedOptions, mode, firstOpts);
891 return {sharedOptions, includeOptions};
892 }
893
894 /**
895 * Utility for updating an element with new properties, using animations when appropriate.

Callers 4

updateElementsMethod · 0.80
updateElementsMethod · 0.80
updateElementsMethod · 0.80
updateElementsMethod · 0.80

Calls 4

getSharedOptionsMethod · 0.95
includeOptionsMethod · 0.95
updateSharedOptionsMethod · 0.95

Tested by

no test coverage detected