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

Method constructor

src/elements/element.line.js:279–297  ·  view source on GitHub ↗
(cfg)

Source from the content-addressed store, hash-verified

277
278
279 constructor(cfg) {
280 super();
281
282 this.animated = true;
283 this.options = undefined;
284 this._chart = undefined;
285 this._loop = undefined;
286 this._fullLoop = undefined;
287 this._path = undefined;
288 this._points = undefined;
289 this._segments = undefined;
290 this._decimated = false;
291 this._pointsUpdated = false;
292 this._datasetIndex = undefined;
293
294 if (cfg) {
295 Object.assign(this, cfg);
296 }
297 }
298
299 updateControlPoints(chartArea, indexAxis) {
300 const options = this.options;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected