Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slide rotation #703

Open
aliaksandr-voranau opened this issue Oct 30, 2023 · 3 comments
Open

slide rotation #703

aliaksandr-voranau opened this issue Oct 30, 2023 · 3 comments

Comments

@aliaksandr-voranau
Copy link

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.

@ilan-gold
Copy link
Collaborator

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.

@aliaksandr-voranau
Copy link
Author

aliaksandr-voranau commented Nov 20, 2023

@ilan-gold thanks for your answer, I have couple more:

  1. If I'm not mistaken (also according to the documentation), modelMatrix is only available on the VolumeViewer, but how I can rotate images on the other components such as SideBySideViewer, PictureInPictureViewer ?
  2. Maybe you have an example with 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.

@ilan-gold
Copy link
Collaborator

ilan-gold commented Nov 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants