Open aliaksandr-voranau opened 1 year ago
If by "slide" you mean the image, then you will need to pass in a modelMatrix
that encodes your rotation - this can be done for the components and layers.
@ilan-gold thanks for your answer, I have couple more:
modelMatrix
is only available on the VolumeViewer
, but how I can rotate images on the other components such as SideBySideViewer
, PictureInPictureViewer
?modelMatrix
? I mean, the example of the object which I should pass to this prop. Documentation tells, that it should be an object, by doesn't describe the shape of such object.Ok @aliaksandr-voranau you are right about the viewers. I am not sure what is to be done here, though. Those viewers encode very special behavior. I would venture a guess that adding the functionality in the PictureInPictureViewer
is non-trivial but I am not sure. SideBySideViewer
would probably be simpler. It should not be hard to discard the PIP functionality and lightly wrap VivViewer
to use a ModelMatrix
. We unfortunately do not have an example besides vitessce
which only uses the layers.
Hello!
Is it possible to adjust the slide rotation? The viewState currently includes parameters like { target: [x, y, z], zoom: zoom }. I've inspected the entire documentation, but I couldn't find any information regarding adjusting slide rotation.