circuit-json 0.0.538 → 0.0.540
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 +38 -1
- package/dist/index.d.mts +388 -11
- package/dist/index.mjs +540 -478
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -115,6 +115,8 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
115
115
|
- [CadCable](#cadcable)
|
|
116
116
|
- [CadCollisionError](#cadcollisionerror)
|
|
117
117
|
- [CadComponent](#cadcomponent)
|
|
118
|
+
- [CadExplosionMove](#cadexplosionmove)
|
|
119
|
+
- [CadExplosionStage](#cadexplosionstage)
|
|
118
120
|
- [CadReferenceSurface](#cadreferencesurface)
|
|
119
121
|
- [PCB Elements](#pcb-elements)
|
|
120
122
|
- [PcbAutoroutingError](#pcbautoroutingerror)
|
|
@@ -1610,6 +1612,41 @@ interface CadComponent {
|
|
|
1610
1612
|
}
|
|
1611
1613
|
```
|
|
1612
1614
|
|
|
1615
|
+
### CadExplosionMove
|
|
1616
|
+
|
|
1617
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/cad/cad_explosion_move.ts)
|
|
1618
|
+
|
|
1619
|
+
```typescript
|
|
1620
|
+
interface CadExplosionMove {
|
|
1621
|
+
type: "cad_explosion_move"
|
|
1622
|
+
cad_explosion_move_id: string
|
|
1623
|
+
cad_explosion_stage_id: string
|
|
1624
|
+
order: number
|
|
1625
|
+
targets: CadExplosionTarget[]
|
|
1626
|
+
translation: Point3
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
type CadExplosionTarget =
|
|
1630
|
+
| { type: "cad_reference_surface"; cad_reference_surface_id: string }
|
|
1631
|
+
| { type: "cad_component"; cad_component_id: string }
|
|
1632
|
+
| { type: "cad_explosion_stage"; cad_explosion_stage_id: string }
|
|
1633
|
+
```
|
|
1634
|
+
|
|
1635
|
+
### CadExplosionStage
|
|
1636
|
+
|
|
1637
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/cad/cad_explosion_stage.ts)
|
|
1638
|
+
|
|
1639
|
+
```typescript
|
|
1640
|
+
interface CadExplosionStage {
|
|
1641
|
+
type: "cad_explosion_stage"
|
|
1642
|
+
cad_explosion_stage_id: string
|
|
1643
|
+
name: string
|
|
1644
|
+
order: number
|
|
1645
|
+
cad_component_ids: string[]
|
|
1646
|
+
cad_reference_surface_ids?: string[]
|
|
1647
|
+
}
|
|
1648
|
+
```
|
|
1649
|
+
|
|
1613
1650
|
### CadReferenceSurface
|
|
1614
1651
|
|
|
1615
1652
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/cad/cad_reference_surface.ts)
|
|
@@ -3335,7 +3372,7 @@ interface PcbSilkscreenText {
|
|
|
3335
3372
|
subcircuit_id?: string
|
|
3336
3373
|
font: "tscircuit2024"
|
|
3337
3374
|
font_size: Length
|
|
3338
|
-
pcb_component_id
|
|
3375
|
+
pcb_component_id?: string
|
|
3339
3376
|
text: string
|
|
3340
3377
|
is_knockout?: boolean
|
|
3341
3378
|
knockout_padding?: {
|