MCPcopy Create free account
hub / github.com/leeoniya/uPlot / _setSize

Function _setSize

src/uPlot.js:744–754  ·  view source on GitHub ↗
(width, height, force)

Source from the content-addressed store, hash-verified

742 let shouldSetLegend = false;
743
744 function _setSize(width, height, force) {
745 if (force || (width != self.width || height != self.height))
746 calcSize(width, height);
747
748 resetYSeries(false);
749
750 shouldConvergeSize = true;
751 shouldSetSize = true;
752
753 commit();
754 }
755
756 function calcSize(width, height) {
757 // log("calcSize()", arguments);

Callers 3

setSizeFunction · 0.85
syncPxRatioFunction · 0.85
_initFunction · 0.85

Calls 3

calcSizeFunction · 0.85
resetYSeriesFunction · 0.85
commitFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…