circuit-json 0.0.207 → 0.0.209
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 +117 -247
- package/dist/index.mjs +725 -716
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -48,7 +48,9 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
48
48
|
- [Source Components](#source-components)
|
|
49
49
|
- [SourceComponentBase](#sourcecomponentbase)
|
|
50
50
|
- [SourceFailedToCreateComponentError](#sourcefailedtocreatecomponenterror)
|
|
51
|
+
- [SourceGroup](#sourcegroup)
|
|
51
52
|
- [SourceMissingPropertyError](#sourcemissingpropertyerror)
|
|
53
|
+
- [SourceNet](#sourcenet)
|
|
52
54
|
- [SourcePcbGroundPlane](#sourcepcbgroundplane)
|
|
53
55
|
- [SourcePort](#sourceport)
|
|
54
56
|
- [SourceProjectMetadata](#sourceprojectmetadata)
|
|
@@ -230,6 +232,21 @@ interface SourceFailedToCreateComponentError {
|
|
|
230
232
|
}
|
|
231
233
|
```
|
|
232
234
|
|
|
235
|
+
### SourceGroup
|
|
236
|
+
|
|
237
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_group.ts)
|
|
238
|
+
|
|
239
|
+
```typescript
|
|
240
|
+
interface SourceGroup {
|
|
241
|
+
type: "source_group"
|
|
242
|
+
source_group_id: string
|
|
243
|
+
subcircuit_id?: string
|
|
244
|
+
parent_subcircuit_id?: string
|
|
245
|
+
is_subcircuit?: boolean
|
|
246
|
+
name?: string
|
|
247
|
+
}
|
|
248
|
+
```
|
|
249
|
+
|
|
233
250
|
### SourceMissingPropertyError
|
|
234
251
|
|
|
235
252
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_missing_property_error.ts)
|
|
@@ -248,6 +265,26 @@ interface SourceMissingPropertyError {
|
|
|
248
265
|
}
|
|
249
266
|
```
|
|
250
267
|
|
|
268
|
+
### SourceNet
|
|
269
|
+
|
|
270
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_net.ts)
|
|
271
|
+
|
|
272
|
+
```typescript
|
|
273
|
+
interface SourceNet {
|
|
274
|
+
type: "source_net"
|
|
275
|
+
source_net_id: string
|
|
276
|
+
name: string
|
|
277
|
+
member_source_group_ids: string[]
|
|
278
|
+
is_power?: boolean
|
|
279
|
+
is_ground?: boolean
|
|
280
|
+
is_digital_signal?: boolean
|
|
281
|
+
is_analog_signal?: boolean
|
|
282
|
+
trace_width?: number
|
|
283
|
+
subcircuit_id?: string
|
|
284
|
+
subcircuit_connectivity_map_key?: string
|
|
285
|
+
}
|
|
286
|
+
```
|
|
287
|
+
|
|
251
288
|
### SourcePcbGroundPlane
|
|
252
289
|
|
|
253
290
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_pcb_ground_plane.ts)
|
|
@@ -1239,7 +1276,7 @@ interface PcbTraceHint {
|
|
|
1239
1276
|
```typescript
|
|
1240
1277
|
interface SchematicBox {
|
|
1241
1278
|
type: "schematic_box"
|
|
1242
|
-
schematic_component_id
|
|
1279
|
+
schematic_component_id?: string
|
|
1243
1280
|
width: number
|
|
1244
1281
|
height: number
|
|
1245
1282
|
is_dashed: boolean
|