X and Y zoom in orthographic view #7481
-
Hi, I'm trying to set up a zoom behavior where I allow zooming in one axis ('X' or 'Y') and then switch to zooming in both axes (once a sufficient zoom level is achieved). l'm starting with something like this (see ObservableHQ notebook):
Is there a way I can achieve this using the custom OrthographicController API? For instance, can I switch the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
Looking at orthographic-controller.ts
It seems like this functionality is not currently supported. I'll try to think of a way that this function could be extended to support simultaneous independent control of the X and Y zoom levels and possibly make a pull request if I come up with something. Any help or advice would be greatly appreciated :) |
Beta Was this translation helpful? Give feedback.
-
You can change controller options at any time. |
Beta Was this translation helpful? Give feedback.
-
Thanks @Pessimistress I'll give that a try |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help @Pessimistress. One last question - would you happen to know if it is possible to have X and Y zooming 'stretch' the visual or is this not possible? |
Beta Was this translation helpful? Give feedback.
Thanks @Pessimistress I'll give that a try