Recommend approach to obtain 3D scene object state while dragging #3450
Closed
h0uter
started this conversation in
Ideas / Feature Requests
Replies: 3 comments
-
I believe that if you remove the line found nicegui/nicegui/elements/scene.js Line 152 in 277ada6 The problem with this might be that it would cause lag, so be weary of that. Note that I haven't actually tested it, but it seems like it'd work |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for pointing out this limitation, @h0uter! |
Beta Was this translation helpful? Give feedback.
0 replies
-
With PR #3466 being released in version 1.4.35, I'll close this feature request as completed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While using the draggable elements in the 3D scene we can define on
drag_start
anddrag_end
callbacks. However it would be useful if we could obtain the state of the 3D scene element while we are dragging it so we can update other 3D scene elements in tandem.Example
The following code snippet illustrates that the state of the dragged element is only updated on release.
Screen.Recording.2024-08-07.at.00.42.35.mov
Why would this be usefull
An example usecase for being able to read the state mid-drag is that it would allow end users to spatially mark areas by dragging the corner of a polygon while instantly updating that polygon to match the users selection. For example to take slices of 3D objects or to define a geofence.
Beta Was this translation helpful? Give feedback.
All reactions