xeokit / xeokit-sdk

Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
https://xeokit.io
Other
718 stars 285 forks source link

[FEATURE] Editable measurements #1545

Closed MichalDybizbanskiCreoox closed 3 months ago

MichalDybizbanskiCreoox commented 3 months ago

This PR introduces components that enable users to interactively edit angle and distance measurements using both mouse and touch input.

Demos

The examples below showcase this feature using mouse input for both angle and distance measurements. Although not depicted here, editing is also supported for touch input.

In these examples, after creating a measurement, right-click on it to open a context menu, then select "Edit" to start editing.

Click and drag the measurement's endpoints to reposition them.

When you're done editing, right-click away from the measurement to open a context menu, then select "End Editing".

Screenshot from 2024-06-19 17-16-18

Screenshot from 2024-06-19 17-16-28

Screenshot from 2024-06-19 17-22-02