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

Method datasetElementScopeKeys

src/core/core.config.js:252–260  ·  view source on GitHub ↗

* Returns the options scope keys for resolving element options that belong * to an dataset. These keys do not include the dataset itself, because it * is not under options. * @param {string} datasetType * @param {string} elementType * @return {string[][]}

(datasetType, elementType)

Source from the content-addressed store, hash-verified

250 * @return {string[][]}
251 */
252 datasetElementScopeKeys(datasetType, elementType) {
253 return cachedKeys(`${datasetType}-${elementType}`,
254 () => [[
255 `datasets.${datasetType}.elements.${elementType}`,
256 `datasets.${datasetType}`,
257 `elements.${elementType}`,
258 ''
259 ]]);
260 }
261
262 /**
263 * Returns the options scope keys for resolving plugin options.

Callers 1

Calls 1

cachedKeysFunction · 0.85

Tested by

no test coverage detected