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

Method constructor

src/plugins/plugin.title.js:11–27  ·  view source on GitHub ↗

* @param {{ ctx: any; options: any; chart: any; }} config

(config)

Source from the content-addressed store, hash-verified

9 * @param {{ ctx: any; options: any; chart: any; }} config
10 */
11 constructor(config) {
12 super();
13
14 this.chart = config.chart;
15 this.options = config.options;
16 this.ctx = config.ctx;
17 this._padding = undefined;
18 this.top = undefined;
19 this.bottom = undefined;
20 this.left = undefined;
21 this.right = undefined;
22 this.width = undefined;
23 this.height = undefined;
24 this.position = undefined;
25 this.weight = undefined;
26 this.fullSize = undefined;
27 }
28
29 update(maxWidth, maxHeight) {
30 const opts = this.options;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected