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

Method constructor

src/plugins/plugin.tooltip.js:464–496  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

462 static positioners = positioners;
463
464 constructor(config) {
465 super();
466
467 this.opacity = 0;
468 this._active = [];
469 this._eventPosition = undefined;
470 this._size = undefined;
471 this._cachedAnimations = undefined;
472 this._tooltipItems = [];
473 this.$animations = undefined;
474 this.$context = undefined;
475 this.chart = config.chart;
476 this.options = config.options;
477 this.dataPoints = undefined;
478 this.title = undefined;
479 this.beforeBody = undefined;
480 this.body = undefined;
481 this.afterBody = undefined;
482 this.footer = undefined;
483 this.xAlign = undefined;
484 this.yAlign = undefined;
485 this.x = undefined;
486 this.y = undefined;
487 this.height = undefined;
488 this.width = undefined;
489 this.caretX = undefined;
490 this.caretY = undefined;
491 // TODO: V4, make this private, rename to `_labelStyles`, and combine with `labelPointStyles`
492 // and `labelTextColors` to create a single variable
493 this.labelColors = undefined;
494 this.labelPointStyles = undefined;
495 this.labelTextColors = undefined;
496 }
497
498 initialize(options) {
499 this.options = options;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected