v4.0.0
Full Changelog: v3.0.2...v4.0.0
@h5web/app
⚠️ Breaking change[App]
PropstartFullscreen
is renamed toexplorerOpen
, as the term "full screen" was misleading. Note that the logic is inverted: the prop now defaults totrue
and has to be set tofalse
in order to close the explorer on first render. #1042- The query param to pass in the URL to start the demo with the explorer closed is now called
wide
instead offullscreen
. If your app uses a query param calledfullscreen
, you may want to rename it as well.
- The query param to pass in the URL to start the demo with the explorer closed is now called
- ✨ New
< NX Scatter >
visualization for NXdata groups with 1D signal and two axis datasets. #1040 - ✨ Add button in top bar to tell browser to go full screen #1042
- ✨
< NX Spectrum >
Show auxiliary values with colored handles in tooltip #1041 #1049 - 🐛
< Heatmap, Line, RGB, NX >
Fix tooltip remaining visible while dragging #1039 < NX Image >
Allow switching to< NX Spectrum >
when interpretation is not known or specified #1016< Heatmap, RGB, NX Image >
When drawing a zoom selection box with a ratio constraint (with Ctrl + drag):
@h5web/lib
⚠️ Breaking change[LineVis]
PropauxArrays
is renamed toauxiliaries
and now accepts an array of objects to allow passing a label for each auxiliary array #1041- ✨ This allows the tooltip to show the auxiliaries' labels, values and colors
⚠️ Breaking change[ScatterVis]
PropsdataAbscissas
andabscissaLabel
are removed in favour of the newabscissaParams
prop, and propsdataOrdinates
andordinateLabel
are removed in favour ofordinateParams
#1047- ✨ This brings support for non-linear axis scale types on the scatter visualization
⚠️ Breaking change[Html]
Html
now focuses solely on rendering HTML elements from insideVisCanvas
.groupProps
,followCamera
andscaleOnZoom
props were therefore removed. The HTML elements are rendered in adiv
that is appended next to thecanvas
element by default. Propcontainer
can be used to provide a different container for thediv
. #1036- If you were using
Html
to overlay HTML on top of the entire canvas, please look at the newOverlay
component instead. - If you were using
Html
withfollowCamera
and/orscaleOnZoom
, please look atAnnotation
.Annotation
is positioned in the data space and therefore follows the camera automatically; it also has ascaleOnZoom
prop.
- If you were using
⚠️ Breaking change[HeatmapMesh]
The mesh is no longer automatically flipped whenordinateConfig.flip
istrue
as this behavior could be undesirable #1052 . The newscale
prop can be used to re-implement this behavior:<HeatmapMesh scale={[1, ordinateConfig.flip ? -1 : 1, 1] ... />
⚠️ Breaking changeTiledHeatmap
renamed toTiledHeatmapMesh
#1069- ✨ New component
Overlay
to render HTML elements inside adiv
that covers the entire canvas #1030 - ✨ New component
FloatingControl
to add HTML controls to the floating toolbar in the bottom-right corner of the canvas (such as buttons, legend...) #1030 - ✨
[HeatmapVis, LineVis, ScatterVis]
Add propinteractions
to override the default interactions configuration; each interaction can now be fully removed or temporarily disabled and can be assigned to a different modifier key (or no modifier key at all): #1023interactions={{ Pan: false, Zoom: { disabled: isZoomDisabled, modifierKey: 'Control' }, SelectToZoom: { modifierKey: undefined } }}
- ✨
[ScatterVis]
Show tooltip when hovering scatter points #1070 - 🐛
[SelectionLine, SelectionRect]
Lines and rectangles now remain at the right coordinates in the data space regardless of zoom/pan #1067 - 🐛
[Toolbar]
Fix toolbar menus appearing underneath visualizations #1022 - 🐛
[DomainSlider, Histogram]
Fix support for typed histogram values #1024 - 🐛
[ScatterVis]
Makechildren
prop optional #1027 - 🐛
[ScatterVis]
Fix undesirable outlines on scatter points #1071 - 🐛
[TooltipMesh, HeatmapVis, LineVis]
Fix tooltip remaining visible while dragging #1039 - 📜 The
AxisSystemContext
documentation has moved to a dedicated page. - 📜 The
DataCurve
component is now officially documented [ScatterVis]
Add proponPointClick
to run a callback when a scatter point is clicked #1051[TiledHeatmapMesh]
Add support for flipped axes and non-index axes #1035 #1052[SelectToZoom]
The ratio-constrained zoom rectangle is now centered around the selection rectangle and bound to the vis size when possible #1033 #1059[XAxisZoom, YAxisZoom, SelectToZoom]
Remove default value formodifierKey
prop so it can be left unset #1020[Pan, Zoom, XAxisZoom, YAxisZoom, SelectToZoom]
Pressing a modifier key that is not assigned to any interaction component no longer prevents interactions from taking effect #1020[SelectionTool, SelectToZoom]
Selection can be canceled by pressing Esc #1056[SelectionTool]
Add propid
, defaulting to"Selection"
. When using multipleSelectionTool
components in the sameVisCanvas
(e.g. select-to-zoom and profile selection), please use a differentid
for each to ensure that they both function properly. #1023[Separator]
Toolbar separator can now be passed any HTML attributes #1042