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

Function getOpts

src/core/core.plugins.ts:138–146  ·  view source on GitHub ↗
(options, all: boolean)

Source from the content-addressed store, hash-verified

136}
137
138function getOpts(options, all: boolean) {
139 if (!all && options === false) {
140 return null;
141 }
142 if (options === true) {
143 return {};
144 }
145 return options;
146}
147
148function createDescriptors(chart: Chart, {plugins, localIds}, options, all: boolean) {
149 const result: {plugin: any; options: any}[] = [];

Callers 1

createDescriptorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected