Skip to content

Releases: leeoniya/uPlot

1.0.1

12 Mar 17:54
Compare
Choose a tag to compare

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 on cursor.drag.x or cursor.drag.y to auto-size the selection size in the drag-perpendicular dimension. the effect is that both width and height 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, where cursor.drag is taken into account to infer the perpendicular select size.
  • the alpha option of cursor.focus was moved to a new top-level opt focus.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.

1.0.0 🚀

10 Mar 06:07
Compare
Choose a tag to compare