Features
- #13862
3353446- Expose live camera and slider position to event handlers. Thanks @abidlabs!/ncamera_positionongr.Model3Dandslider_positionongr.ImageSlidernow follow the user, so a function whose parameter is annotated with the component reads the view that is actually on screen. Both can still be set from the backend to move the camera or the divider./n Also fixes, in the same area:/n -camera_positionis applied on load fordisplay_mode="point_cloud"anddisplay_mode="wireframe", not only for"solid"./n -camera_positionis applied to interactive (uploadable)gr.Model3D, andslider_positionto interactivegr.ImageSlider; both previously ignored it./n -pan_speedis passed through to thegr.Model3Dviewer; it was silently stuck at its default./n - A Model3D camera observer was added on every camera update without ever being removed; exactly one is now registered, and it is cleaned up with the component.
Dependency updates
- @gradio/utils@0.14.2
- @gradio/client@2.7.0