circuit-json-to-gltf 0.0.159 → 0.0.161

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 CHANGED
@@ -90,7 +90,11 @@ beside each view is the source that authored that stage.
90
90
  ![RP2040 assembly explosion stages with TSX](./docs/images/rp2040-explosion-stages.png)
91
91
 
92
92
  `cad_explosion_stage` and `cad_explosion_move` records describe a playback program.
93
- Exports remain assembled by default. Select a pose with the `explosion` option:
93
+ Exports remain assembled by default. Select a pose with the `explosion` option.
94
+ Exploded exports always include motion paths in the selected scene's
95
+ `extras.poppygl.explosionLines`, using final glTF world coordinates (+Y up, mm).
96
+ PoppyGL renders these as dashed overlays; they do not add meshes or affect model
97
+ bounds. Generic glTF viewers may ignore the extras.
94
98
 
95
99
  ```typescript
96
100
  import {
package/dist/index.d.ts CHANGED
@@ -188,7 +188,14 @@ interface Box3D {
188
188
  isTranslucent?: boolean;
189
189
  showHiddenEdges?: boolean;
190
190
  }
191
+ /** Guide points in Scene3D world coordinates: +Y up, mm, before glTF X reflection. */
192
+ interface SceneExplosionLine {
193
+ stageRef: string;
194
+ targetRef: string;
195
+ points: Point3[];
196
+ }
191
197
  interface Scene3D {
198
+ explosionLines?: SceneExplosionLine[];
192
199
  boxes: Box3D[];
193
200
  camera?: Camera3D;
194
201
  lights?: Light3D[];