circuit-json 0.0.240 → 0.0.242
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 +827 -79
- package/dist/index.mjs +75 -33
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -82,6 +82,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
82
82
|
- [PcbBoard](#pcbboard)
|
|
83
83
|
- [PcbBreakoutPoint](#pcbbreakoutpoint)
|
|
84
84
|
- [PcbComponent](#pcbcomponent)
|
|
85
|
+
- [PcbCopperPour](#pcbcopperpour)
|
|
85
86
|
- [PcbCutout](#pcbcutout)
|
|
86
87
|
- [PcbFabricationNotePath](#pcbfabricationnotepath)
|
|
87
88
|
- [PcbFabricationNoteText](#pcbfabricationnotetext)
|
|
@@ -799,6 +800,29 @@ interface PcbComponent {
|
|
|
799
800
|
}
|
|
800
801
|
```
|
|
801
802
|
|
|
803
|
+
### PcbCopperPour
|
|
804
|
+
|
|
805
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_copper_pour.ts)
|
|
806
|
+
|
|
807
|
+
Defines a rectangular copper pour on the PCB.
|
|
808
|
+
|
|
809
|
+
```typescript
|
|
810
|
+
/** Defines a rectangular copper pour on the PCB. */
|
|
811
|
+
interface PcbCopperPourRect {
|
|
812
|
+
type: "pcb_copper_pour"
|
|
813
|
+
pcb_copper_pour_id: string
|
|
814
|
+
pcb_group_id?: string
|
|
815
|
+
subcircuit_id?: string
|
|
816
|
+
layer: LayerRef
|
|
817
|
+
source_net_id?: string
|
|
818
|
+
shape: "rect"
|
|
819
|
+
center: Point
|
|
820
|
+
width: Length
|
|
821
|
+
height: Length
|
|
822
|
+
rotation?: Rotation
|
|
823
|
+
}
|
|
824
|
+
```
|
|
825
|
+
|
|
802
826
|
### PcbCutout
|
|
803
827
|
|
|
804
828
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_cutout.ts)
|