jupytercad / JupyterCAD

A JupyterLab extension for 3D geometry modeling
https://jupytercad.github.io/JupyterCAD
BSD 3-Clause "New" or "Revised" License
133 stars 18 forks source link

Improve UX of the exploded view toolbar button #443

Open martinRenou opened 1 month ago

martinRenou commented 1 month ago

Similar to making the clip-plane and wireframe buttons toggle-able https://github.com/jupytercad/JupyterCAD/pull/441 we should look into making the exploded view button toggle-able too.

I'm thinking that once the exploded view is toggled, we could see the exploded view factor input widget on the 3D view itself as per the image below (sorry for the very bad editing 😅).

As of today the widget is an <input> tag, but I'm also thinking a slider could be nice.

imageedit_2_4836533169

arjxn-py commented 1 month ago

Same could be done for AxesHelper too.

martinRenou commented 1 month ago

As suggested by @SylvainCorlay

I propose to make the exploded view toolbar button a toggle.

The exploded view factor number input could be set either in a separate dropdown in the toolbar (at first), or in a text input overlayed on the view.

On a separate note, maybe there should be a visual indication in the view that the exploded view is not the normal position of objects - and how to leave this view, in case someone does not know how to set it back to normal.

martinRenou commented 1 month ago

there should be a indication in the view that the exploded view is not the normal position of objects

There is actually!