Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Sync the zoom between the two sides of a model diff

7d989146a0e792a4df512cdcb13b46f8c3918fde · Keenan Nemetz · 8d ago · parent f865b269

Sync the zoom between the two sides of a model diff

The pair shared a turn but not the camera distance, so a linked diff could show each side at a different zoom. Share the distance on every controls change, adopt it when the other side loads, and publish both halves on reset and on Sync re-link. Framing a model stays local so a load or a resize cannot overwrite the shared view, and adoption does not publish the value straight back.

server/web/static/models/README.md +2−1

@@ -4,7 +4,8 @@
4 4 drag-to-turn (a turntable: sideways spins the model about its own up axis, up
5 5 and down tips it over the top, and the two mix without rolling it), wheel,
6 6 pinch or button zoom, a six-face orientation cube for snap views, a wireframe
7 toggle, and a Sync button that turns the two viewers of a diff together.
7 toggle, and a Sync button that turns and zooms the two viewers of a diff
8 together.
8 9 `app.js` imports it only when a page contains a `[data-model]` element, so no
9 10 other page downloads it.
10 11