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

Method pluginScopeKeys

src/core/core.config.js:267–275  ·  view source on GitHub ↗

* Returns the options scope keys for resolving plugin options. * @param {{id: string, additionalOptionScopes?: string[]}} plugin * @return {string[][]}

(plugin)

Source from the content-addressed store, hash-verified

265 * @return {string[][]}
266 */
267 pluginScopeKeys(plugin) {
268 const id = plugin.id;
269 const type = this.type;
270 return cachedKeys(`${type}-plugin-${id}`,
271 () => [[
272 `plugins.${id}`,
273 ...plugin.additionalOptionScopes || [],
274 ]]);
275 }
276
277 /**
278 * @private

Callers 1

pluginOptsFunction · 0.80

Calls 1

cachedKeysFunction · 0.85

Tested by

no test coverage detected