@tscircuit/3d-viewer 0.0.629 → 0.0.631
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 +20 -0
- package/dist/index.js +2069 -1185
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -306,6 +306,26 @@ We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) f
|
|
|
306
306
|
|
|
307
307
|
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
308
308
|
|
|
309
|
+
|
|
310
|
+
### Section views
|
|
311
|
+
|
|
312
|
+
Right-click the viewer and choose **Advanced → Section View…**.
|
|
313
|
+
The Advanced submenu also contains the engine switch for generated scenes.
|
|
314
|
+
Choose X, Y, or Z, then drag the translucent plane or its arrow to move the cut.
|
|
315
|
+
The slider and millimeter field provide precise positioning; **Flip side** changes
|
|
316
|
+
which half remains visible. **Look perpendicular** faces the cut directly; in that
|
|
317
|
+
view, drag vertically to change its depth. Closing the controls preserves the cut;
|
|
318
|
+
**Clear** restores the complete assembly.
|
|
319
|
+
|
|
320
|
+
Cut faces use a 45-degree diagonal hatch, with holes and cavities left empty.
|
|
321
|
+
Sections work with both rendering engines and are baked into downloaded glTFs.
|
|
322
|
+
Cap loops are computed in a worker, with a synchronous fallback if workers are
|
|
323
|
+
unavailable. Open model boundaries are left uncapped and reported in the panel.
|
|
324
|
+
|
|
325
|
+
Run section geometry, drag, and export checks with `bun test tests/section-*`.
|
|
326
|
+
Browser interaction checks, including GLB URLs, are available with `bun run test:sections`.
|
|
327
|
+
Sections also support pre-rendered `glbUrl` and `glbData` sources, including model replacement.
|
|
328
|
+
|
|
309
329
|
### Pre-rendered GLB scenes
|
|
310
330
|
|
|
311
331
|
To open a self-contained GLB produced by `circuit-json-to-gltf` without rebuilding
|