MCPcopy
hub / github.com/chartjs/Chart.js / update

Method update

src/plugins/plugin.legend.js:82–90  ·  view source on GitHub ↗
(maxWidth, maxHeight, margins)

Source from the content-addressed store, hash-verified

80 }
81
82 update(maxWidth, maxHeight, margins) {
83 this.maxWidth = maxWidth;
84 this.maxHeight = maxHeight;
85 this._margins = margins;
86
87 this.setDimensions();
88 this.buildLabels();
89 this.fit();
90 }
91
92 setDimensions() {
93 if (this.isHorizontal()) {

Callers

nothing calls this directly

Calls 3

setDimensionsMethod · 0.95
buildLabelsMethod · 0.95
fitMethod · 0.95

Tested by

no test coverage detected