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

Function pluginOpts

src/core/core.plugins.js:175–188  ·  view source on GitHub ↗
(config, {plugin, local}, opts, context)

Source from the content-addressed store, hash-verified

173}
174
175function pluginOpts(config, {plugin, local}, opts, context) {
176 const keys = config.pluginScopeKeys(plugin);
177 const scopes = config.getOptionScopes(opts, keys);
178 if (local && plugin.defaults) {
179 // make sure plugin defaults are in scopes for local (not registered) plugins
180 scopes.push(plugin.defaults);
181 }
182 return config.createResolver(scopes, context, [''], {
183 // These are just defaults that plugins can override
184 scriptable: false,
185 indexable: false,
186 allKeys: true
187 });
188}

Callers 1

createDescriptorsFunction · 0.85

Calls 3

pluginScopeKeysMethod · 0.80
getOptionScopesMethod · 0.80
createResolverMethod · 0.80

Tested by

no test coverage detected