Expose createArrayFromView and getAxisOffsets#2024
Conversation
|
I've pushed a commit to document Could you please expand on the second problem you're facing (packing several plots close together)? Maybe we can find a solution to save you from implementing what seems like a complicated workaround. |
|
Thanks for the quick merge! Please see DiamondLightSource/davidia#226 for the change we added so page resizes do not add padding to a |
|
I see, thanks a lot. This was the initial equal-sizing behaviour right at the start but we ended up removing it to avoid the container measuring step and because we wanted to maximise the space available to the visualization when zooming in. I considered bringing this sizing behaviour back, but looking at DiamondLightSource/davidia#226, your toolbar complicates things a bit. Let's keep the |
@h5web/libdoes not handle views ofndarrayso can end up using the wrong portion of the underlying 1D typed array and passing it to WebGL. ExposingcreateArrayFromViewallows devs to handle this case.getAxisOffsetsallows them to control the aspect ratio and match the length of the scale axes to the image.