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

Function pluginOpts

src/core/core.plugins.ts:167–180  ·  view source on GitHub ↗
(config: Config, {plugin, local}, opts, context)

Source from the content-addressed store, hash-verified

165}
166
167function pluginOpts(config: Config, {plugin, local}, opts, context) {
168 const keys = config.pluginScopeKeys(plugin);
169 const scopes = config.getOptionScopes(opts, keys);
170 if (local && plugin.defaults) {
171 // make sure plugin defaults are in scopes for local (not registered) plugins
172 scopes.push(plugin.defaults);
173 }
174 return config.createResolver(scopes, context, [''], {
175 // These are just defaults that plugins can override
176 scriptable: false,
177 indexable: false,
178 allKeys: true
179 });
180}

Callers 1

createDescriptorsFunction · 0.85

Calls 3

pluginScopeKeysMethod · 0.80
getOptionScopesMethod · 0.80
createResolverMethod · 0.80

Tested by

no test coverage detected