Releases: leeoniya/uPlot
Releases · leeoniya/uPlot
1.0.2
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.xorcursor.drag.yto auto-size the selection size in the drag-perpendicular dimension. the effect is that bothwidthandheightmust 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.dragis taken into account to infer the perpendicular select size.- the
alphaoption ofcursor.focuswas 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.proxremains in place.cursor.focus.alphashould continue to work as a side-effect of the internal option merging, but should not be relied upon going forward.