@toolpath/viewer 0.3.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/dist/{chunk-RICG6UVH.js → chunk-4BU4QZCL.js} +921 -202
- package/dist/engine/index.d.ts +2 -2
- package/dist/engine/index.js +1 -1
- package/dist/index.d.ts +491 -12
- package/dist/index.js +60 -231
- package/dist/{normalize-Bzzwwxt4.d.ts → normalize-DsoIyM8B.d.ts} +37 -95
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -103,9 +103,19 @@ Use a ref or `useViewerControls()` beneath a viewer to call `fit`, `reset`, `set
|
|
|
103
103
|
|
|
104
104
|
- `controls="toolpath"` (default) — left-drag orbits, right-drag pans.
|
|
105
105
|
- `controls="fusion"` — middle-drag and two-finger scroll pan, shift orbits, pinch zooms.
|
|
106
|
-
- `projection
|
|
107
|
-
measure the same size wherever they
|
|
106
|
+
- `projection` — `"orthographic"` by default, because it is what a machinist reads a part in:
|
|
107
|
+
parallel edges stay parallel, so two features the same size measure the same size wherever they
|
|
108
|
+
sit. `"perspective"` is the better answer for reading a deep pocket as depth.
|
|
108
109
|
- `freeOrbit` (default on) — orbiting past a pole keeps going instead of sticking there.
|
|
110
|
+
- `retargetOnDoubleClick` (default on) — a double **left** click on the part orbits about what was
|
|
111
|
+
clicked from then on. It moves to the middle of the view at the same size and angle, and the move
|
|
112
|
+
is immediate — the damping these controls ship with settles a transition inside one frame. Turn
|
|
113
|
+
on `showOrbitTarget` if the pivot moving needs to be visible. The click is still a click: its pick
|
|
114
|
+
carries `doubled: true`, so what a second click means to the part is yours to decide. Double
|
|
115
|
+
**middle** click re-frames the whole part, which is the way back.
|
|
116
|
+
- `showOrbitTarget` (default **off**) — a dot inside a ring at the point the view turns and zooms
|
|
117
|
+
about. Up while a gesture is running, flashed when the pivot moves on its own, then faded. It is
|
|
118
|
+
what makes zooming to the cursor legible: the pivot moves with it, and nothing else reports that.
|
|
109
119
|
|
|
110
120
|
`<ViewCube>` offers all 26 standard views: six faces, twelve edge chamfers, and eight corners, so
|
|
111
121
|
an isometric is a click rather than a drag. `<Grid>` sizes itself from the part — 5 mm cells under a
|