(options, all: boolean)
| 136 | } |
| 137 | |
| 138 | function 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 | |
| 148 | function createDescriptors(chart: Chart, {plugins, localIds}, options, all: boolean) { |
| 149 | const result: {plugin: any; options: any}[] = []; |