MCPcopy Create free account
hub / github.com/chartjs/Chart.js / getSharedOptions

Method getSharedOptions

src/core/core.datasetController.js:867–872  ·  view source on GitHub ↗

* Utility for getting the options object shared between elements * @protected

(options)

Source from the content-addressed store, hash-verified

865 * @protected
866 */
867 getSharedOptions(options) {
868 if (!options.$shared) {
869 return;
870 }
871 return this._sharedOptions || (this._sharedOptions = Object.assign({}, options));
872 }
873
874 /**
875 * Utility for determining if `options` should be included in the updated properties

Callers 3

_getSharedOptionsMethod · 0.95
_setStyleMethod · 0.95
updateElementsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected