Releases: leeoniya/uPlot
Releases · leeoniya/uPlot
1.0.1
The following feature gates have been added to rollup.config.js
:
const FEATS = {
FEAT_TIME: true,
FEAT_CURSOR: true,
FEAT_PATHS: true,
FEAT_POINTS: true,
FEAT_LEGEND: true,
};
you can create a custom build that disables any of these features to cut down on lib size and unused code. more details on size impact of each can be found in #131 (comment).
Minor breaking API changes:
work on the aforementioned feature gates revealed some internal coupling that had to be broken. something-something semver violation grumble-grumble...
.setSelect()
now requires explicit sizing and no longer relies oncursor.drag.x
orcursor.drag.y
to auto-size the selection size in the drag-perpendicular dimension. the effect is that bothwidth
andheight
must be explicitly set. you can see the effect in this diff: a1f720d. this should have no impact on drag selection performed with a cursor, wherecursor.drag
is taken into account to infer the perpendicular select size.- the
alpha
option ofcursor.focus
was moved to a new top-level optfocus.alpha
. this ensures that.setSeries(2, {focus: true})
can continue to work without relying on cursor opts.cursor.focus.prox
remains in place.cursor.focus.alpha
should continue to work as a side-effect of the internal option merging, but should not be relied upon going forward.