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

Method createResolver

src/core/core.config.js:375–380  ·  view source on GitHub ↗

* @param {object[]} scopes * @param {object} [context] * @param {string[]} [prefixes] * @param {{scriptable: boolean, indexable: boolean, allKeys?: boolean}} [descriptorDefaults]

(scopes, context, prefixes = [''], descriptorDefaults)

Source from the content-addressed store, hash-verified

373 * @param {{scriptable: boolean, indexable: boolean, allKeys?: boolean}} [descriptorDefaults]
374 */
375 createResolver(scopes, context, prefixes = [''], descriptorDefaults) {
376 const {resolver} = getResolver(this._resolverCache, scopes, prefixes);
377 return isObject(context)
378 ? _attachContext(resolver, context, undefined, descriptorDefaults)
379 : resolver;
380 }
381}
382
383function getResolver(resolverCache, scopes, prefixes) {

Callers 6

resolveNamedOptionsMethod · 0.95
pluginOptsFunction · 0.80
constructorMethod · 0.80
updateMethod · 0.80
configureMethod · 0.80
_resolveAnimationsMethod · 0.80

Calls 3

getResolverFunction · 0.85
isObjectFunction · 0.85
_attachContextFunction · 0.85

Tested by

no test coverage detected