circuit-json 0.0.179 → 0.0.181
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 +24 -0
- package/dist/index.d.mts +909 -23
- package/dist/index.mjs +88 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -71,6 +71,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
71
71
|
- [PcbAutoroutingError](#pcbautoroutingerror)
|
|
72
72
|
- [PcbBoard](#pcbboard)
|
|
73
73
|
- [PcbComponent](#pcbcomponent)
|
|
74
|
+
- [PcbCutout](#pcbcutout)
|
|
74
75
|
- [PcbFabricationNotePath](#pcbfabricationnotepath)
|
|
75
76
|
- [PcbFabricationNoteText](#pcbfabricationnotetext)
|
|
76
77
|
- [PcbGroup](#pcbgroup)
|
|
@@ -195,6 +196,7 @@ interface SourceComponentBase {
|
|
|
195
196
|
display_value?: string
|
|
196
197
|
are_pins_interchangeable?: boolean
|
|
197
198
|
internally_connected_source_port_ids?: string[][]
|
|
199
|
+
source_group_id?: string
|
|
198
200
|
}
|
|
199
201
|
```
|
|
200
202
|
|
|
@@ -555,6 +557,28 @@ interface PcbComponent {
|
|
|
555
557
|
rotation: Rotation
|
|
556
558
|
width: Length
|
|
557
559
|
height: Length
|
|
560
|
+
pcb_group_id?: string
|
|
561
|
+
}
|
|
562
|
+
```
|
|
563
|
+
|
|
564
|
+
### PcbCutout
|
|
565
|
+
|
|
566
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_cutout.ts)
|
|
567
|
+
|
|
568
|
+
Defines a rectangular cutout on the PCB.
|
|
569
|
+
|
|
570
|
+
```typescript
|
|
571
|
+
/** Defines a rectangular cutout on the PCB. */
|
|
572
|
+
interface PcbCutoutRect {
|
|
573
|
+
type: "pcb_cutout"
|
|
574
|
+
pcb_cutout_id: string
|
|
575
|
+
pcb_group_id?: string
|
|
576
|
+
subcircuit_id?: string
|
|
577
|
+
shape: "rect"
|
|
578
|
+
center: Point
|
|
579
|
+
width: Length
|
|
580
|
+
height: Length
|
|
581
|
+
rotation?: Rotation
|
|
558
582
|
}
|
|
559
583
|
```
|
|
560
584
|
|