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

Method datasetAnimationScopeKeys

src/core/core.config.js:229–242  ·  view source on GitHub ↗

* Returns the option scope keys for resolving dataset animation options. * These keys do not include the dataset itself, because it is not under options. * @param {string} datasetType * @param {string} transition * @return {string[][]}

(datasetType, transition)

Source from the content-addressed store, hash-verified

227 * @return {string[][]}
228 */
229 datasetAnimationScopeKeys(datasetType, transition) {
230 return cachedKeys(`${datasetType}.transition.${transition}`,
231 () => [
232 [
233 `datasets.${datasetType}.transitions.${transition}`,
234 `transitions.${transition}`,
235 ],
236 // The following are used for looking up the `animations` and `animation` keys
237 [
238 `datasets.${datasetType}`,
239 ''
240 ]
241 ]);
242 }
243
244 /**
245 * Returns the options scope keys for resolving element options that belong

Callers 1

_resolveAnimationsMethod · 0.80

Calls 1

cachedKeysFunction · 0.85

Tested by

no test coverage detected