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

Method constructor

src/elements/element.arc.ts:411–427  ·  view source on GitHub ↗
(cfg)

Source from the content-addressed store, hash-verified

409 circular: boolean;
410
411 constructor(cfg) {
412 super();
413
414 this.options = undefined;
415 this.circumference = undefined;
416 this.startAngle = undefined;
417 this.endAngle = undefined;
418 this.innerRadius = undefined;
419 this.outerRadius = undefined;
420 this.pixelMargin = 0;
421 this.fullCircles = 0;
422 this.circular = false;
423
424 if (cfg) {
425 Object.assign(this, cfg);
426 }
427 }
428
429 inRange(chartX: number, chartY: number, useFinalPosition: boolean) {
430 const point = this.getProps(['x', 'y'], useFinalPosition);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected