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.

docs/media.md +9−10

@@ -45,16 +45,15 @@ An image larger than 32 MiB is a download rather than an inline preview.
45 45 | `.glb` | glTF (binary) |
46 46 | `.3mf` | 3D Manufacturing Format |
47 47
48 The viewer runs in the browser and needs only the file. Drag to turn the model,
49 which has no stop: a drag rolls it about the screen's own axes, so it can be
50 turned over in any direction rather than orbiting to a pole. A gesture commits
51 to the axis it starts on, so a mostly horizontal drag stays horizontal. Scroll,
52 pinch, or use the + and − buttons to zoom; Front, Top and Right put a known side
53 toward you; the remaining buttons reset the view and toggle a wireframe. On a
54 diff the before and after models turn together, and Sync turns that link off for
55 a reader who wants each side at its own angle. It is loaded on demand, so a page
56 without a model downloads none of it. Without JavaScript or WebGL, the file's
57 download link stays visible.
48 The viewer runs in the browser and needs only the file. Drag to turn the model
49 like a turntable: sideways spins it about its own up axis, up and down tips it
50 over the top, and the two mix without rolling it. Scroll, pinch, or use the + and
51 − buttons to zoom; Front, Top and Right put a known side toward you; the
52 remaining buttons reset the view and toggle a wireframe. On a diff the before
53 and after models turn and zoom together, and Sync turns that link off for a
54 reader who wants each side at its own angle and zoom. It is loaded on demand, so
55 a page without a model downloads none of it. Without JavaScript or WebGL, the
56 file's download link stays visible.
58 57
59 58 A Markdown document names a model the same way it names a picture: a relative
60 59 image path whose extension is on the list above. A README can therefore show an