Skip to content

v9.0.0

Compare
Choose a tag to compare
@axelboc axelboc released this 05 Sep 09:02
· 417 commits to main since this release
b97be6a

Full Changelog: v8.0.0...v9.0.0

@h5web/app

  • [H5GroveProvider, MockProvider] Support exporting < Raw > visualizations to JSON #1485
  • ✨ Allow zooming on very thin selection boxes #1482
  • 🐛 Fix heatmap snapshot feature and, more generally, fix saving WebGL canvas as image via "save image as" #1453 #1460
  • ⚠️ A number of CSS custom properties related to the domain widget (previously called "domain slider") have been renamed — cf. #1456. If you customise these properties in your app, please rename them.

@h5web/lib

Canvas

  • 🐛 [VisCanvas] Fix saving WebGL canvas as image via "save image as" #1453 #1460
  • ⚠️ The DOM structure created by VisCanvas has changed significantly, which may impact advanced use cases — see also #1471

Interactions

  • [SelectToZoom, SelectionTool] Allow cancelling selection-based interactions with right click #1370 #1463
  • [SelectToZoom] Allow zooming on very thin selection boxes #1482
  • ⚠️ Allow interacting with canvas through other interactive elements, like SVG elements. Interactive elements on top of the canvas must now take care of stopping the propagation of events that might lead to conflicting interactions before they bubble up the DOM (typically pointerdown to prevent panning/selecting). #1388 #1473

HTML/SVG overlays

  • ⚠️ [Overlay] Overflow canvas bounds by default — to hide the overflow, simply pass the appropriate inline style #1470
  • 🐛 [Annotation] Fix position of overflowing annotations #1467
  • 🐛 [SvgRect] Fix rectangle with inset stroke disappearing when width or height is close to zero (internally, SvgRect now renders a path element instead of a rect) #1482
  • ⚠️ [Html] Remove prop container and stop wrapping children with an extra div element #1465

Toolbar

  • 🐛 [DomainWidget] (previously DomainSlider): Moving one histogram marker now toggles off autoscale only for the corresponding bound (i.e. min or max, not both) #1422 #1439
    • ⚠️ [Histogram] Replace prop onChange with two props: onChangeMin and onChangeMax #1439
  • ⚠️ Rename DomainSlider to DomainWidget and export internal components #1382 #1377 #1445
    • ✨ Export component DomainSlider, which now corresponds to the slider part of the DomainWidget #1448
    • ✨ Export component DomainControls, which corresponds to the content of the DomainWidget's popup (with the bound inputs, autoscale buttons, histogram, etc.) #1455
    • ⚠️ As a result of these changes, a number of CSS custom properties have been renamed — cf. #1456
  • Export component ColorMapOption #1461
  • [ExportMenu] Add prop align to change the alignment of the Export menu popup (defaults to "center") #1485

Utilities & hooks

@h5web/h5wasm

  • [H5WasmProvider] Support exporting < Raw > visualizations to JSON #1485
  • [H5WasmProvider] Parse nested array types returned by h5wasm #1486

Screenshots

Experimental useDrag hook

This recording also demonstrates interacting with the canvas through other interactive elements.

Peek 2023-08-18 16-29