circuit-json 0.0.239 → 0.0.241
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 +46 -0
- package/dist/index.d.mts +937 -62
- package/dist/index.mjs +766 -706
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,6 +49,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
49
49
|
- [SourceComponentBase](#sourcecomponentbase)
|
|
50
50
|
- [SourceFailedToCreateComponentError](#sourcefailedtocreatecomponenterror)
|
|
51
51
|
- [SourceGroup](#sourcegroup)
|
|
52
|
+
- [SourceManuallyPlacedVia](#sourcemanuallyplacedvia)
|
|
52
53
|
- [SourceMissingPropertyError](#sourcemissingpropertyerror)
|
|
53
54
|
- [SourceNet](#sourcenet)
|
|
54
55
|
- [SourcePcbGroundPlane](#sourcepcbgroundplane)
|
|
@@ -81,6 +82,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
81
82
|
- [PcbBoard](#pcbboard)
|
|
82
83
|
- [PcbBreakoutPoint](#pcbbreakoutpoint)
|
|
83
84
|
- [PcbComponent](#pcbcomponent)
|
|
85
|
+
- [PcbCopperPour](#pcbcopperpour)
|
|
84
86
|
- [PcbCutout](#pcbcutout)
|
|
85
87
|
- [PcbFabricationNotePath](#pcbfabricationnotepath)
|
|
86
88
|
- [PcbFabricationNoteText](#pcbfabricationnotetext)
|
|
@@ -268,6 +270,27 @@ interface SourceGroup {
|
|
|
268
270
|
}
|
|
269
271
|
```
|
|
270
272
|
|
|
273
|
+
### SourceManuallyPlacedVia
|
|
274
|
+
|
|
275
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_manually_placed_via.ts)
|
|
276
|
+
|
|
277
|
+
Defines a via that is manually placed in the source domain
|
|
278
|
+
|
|
279
|
+
```typescript
|
|
280
|
+
/** Defines a via that is manually placed in the source domain */
|
|
281
|
+
interface SourceManuallyPlacedVia {
|
|
282
|
+
type: "source_manually_placed_via"
|
|
283
|
+
source_manually_placed_via_id: string
|
|
284
|
+
source_group_id: string
|
|
285
|
+
source_net_id: string
|
|
286
|
+
x: Distance
|
|
287
|
+
y: Distance
|
|
288
|
+
layers: LayerRef[]
|
|
289
|
+
subcircuit_id?: string
|
|
290
|
+
source_trace_id?: string
|
|
291
|
+
}
|
|
292
|
+
```
|
|
293
|
+
|
|
271
294
|
### SourceMissingPropertyError
|
|
272
295
|
|
|
273
296
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_missing_property_error.ts)
|
|
@@ -777,6 +800,29 @@ interface PcbComponent {
|
|
|
777
800
|
}
|
|
778
801
|
```
|
|
779
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
|
+
|
|
780
826
|
### PcbCutout
|
|
781
827
|
|
|
782
828
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_cutout.ts)
|