circuit-json 0.0.491 → 0.0.492
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 +65 -0
- package/dist/index.d.mts +349 -32
- package/dist/index.mjs +1629 -1574
- 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
|
- [Source Components](#source-components)
|
|
50
50
|
- [SourceAmbiguousPortReference](#sourceambiguousportreference)
|
|
51
51
|
- [SourceBoard](#sourceboard)
|
|
52
|
+
- [SourceBus](#sourcebus)
|
|
52
53
|
- [SourceComponentBase](#sourcecomponentbase)
|
|
53
54
|
- [SourceComponentInternalConnection](#sourcecomponentinternalconnection)
|
|
54
55
|
- [SourceComponentMisconfiguredError](#sourcecomponentmisconfigurederror)
|
|
@@ -112,6 +113,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
112
113
|
- [PcbAutoroutingError](#pcbautoroutingerror)
|
|
113
114
|
- [PcbBoard](#pcbboard)
|
|
114
115
|
- [PcbBreakoutPoint](#pcbbreakoutpoint)
|
|
116
|
+
- [PcbBusLengthSkewError](#pcbbuslengthskewerror)
|
|
115
117
|
- [PcbComponent](#pcbcomponent)
|
|
116
118
|
- [PcbComponentInvalidLayerError](#pcbcomponentinvalidlayererror)
|
|
117
119
|
- [PcbComponentNotOnBoardEdgeError](#pcbcomponentnotonboardedgeerror)
|
|
@@ -171,6 +173,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
171
173
|
- [PcbTraceError](#pcbtraceerror)
|
|
172
174
|
- [PcbTraceHint](#pcbtracehint)
|
|
173
175
|
- [PcbTraceMissingError](#pcbtracemissingerror)
|
|
176
|
+
- [PcbTraceTooLongError](#pcbtracetoolongerror)
|
|
174
177
|
- [PcbTraceTooLongWarning](#pcbtracetoolongwarning)
|
|
175
178
|
- [PcbTraceTooManyViasWarning](#pcbtracetoomanyviaswarning)
|
|
176
179
|
- [PcbTraceWarning](#pcbtracewarning)
|
|
@@ -335,6 +338,25 @@ interface SourceBoard {
|
|
|
335
338
|
}
|
|
336
339
|
```
|
|
337
340
|
|
|
341
|
+
### SourceBus
|
|
342
|
+
|
|
343
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_bus.ts)
|
|
344
|
+
|
|
345
|
+
A group of resolved source traces with a maximum routed-length difference.
|
|
346
|
+
|
|
347
|
+
```typescript
|
|
348
|
+
/** A group of resolved source traces with a maximum routed-length difference. */
|
|
349
|
+
interface SourceBus {
|
|
350
|
+
type: "source_bus"
|
|
351
|
+
source_bus_id: string
|
|
352
|
+
name?: string
|
|
353
|
+
source_trace_ids: string[]
|
|
354
|
+
/** Maximum difference between the longest and shortest member, in millimeters. */
|
|
355
|
+
max_length_skew?: number
|
|
356
|
+
subcircuit_id?: string
|
|
357
|
+
}
|
|
358
|
+
```
|
|
359
|
+
|
|
338
360
|
### SourceComponentBase
|
|
339
361
|
|
|
340
362
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/base/source_component_base.ts)
|
|
@@ -1453,6 +1475,27 @@ interface PcbBreakoutPoint {
|
|
|
1453
1475
|
}
|
|
1454
1476
|
```
|
|
1455
1477
|
|
|
1478
|
+
### PcbBusLengthSkewError
|
|
1479
|
+
|
|
1480
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_bus_length_skew_error.ts)
|
|
1481
|
+
|
|
1482
|
+
The routed lengths of a bus's members exceed its allowed skew.
|
|
1483
|
+
|
|
1484
|
+
```typescript
|
|
1485
|
+
/** The routed lengths of a bus's members exceed its allowed skew. */
|
|
1486
|
+
interface PcbBusLengthSkewError extends BaseCircuitJsonError {
|
|
1487
|
+
type: "pcb_bus_length_skew_error"
|
|
1488
|
+
pcb_bus_length_skew_error_id: string
|
|
1489
|
+
error_type: "pcb_bus_length_skew_error"
|
|
1490
|
+
source_bus_id: string
|
|
1491
|
+
source_trace_ids: string[]
|
|
1492
|
+
pcb_trace_ids: string[]
|
|
1493
|
+
actual_length_skew: number
|
|
1494
|
+
maximum_length_skew: number
|
|
1495
|
+
subcircuit_id?: string
|
|
1496
|
+
}
|
|
1497
|
+
```
|
|
1498
|
+
|
|
1456
1499
|
### PcbComponent
|
|
1457
1500
|
|
|
1458
1501
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_component.ts)
|
|
@@ -2907,6 +2950,28 @@ interface PcbTraceMissingError extends BaseCircuitJsonError {
|
|
|
2907
2950
|
}
|
|
2908
2951
|
```
|
|
2909
2952
|
|
|
2953
|
+
### PcbTraceTooLongError
|
|
2954
|
+
|
|
2955
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_trace_too_long_error.ts)
|
|
2956
|
+
|
|
2957
|
+
Error emitted when a PCB trace is longer than its maximum allowed length
|
|
2958
|
+
|
|
2959
|
+
```typescript
|
|
2960
|
+
/** Error emitted when a PCB trace is longer than its maximum allowed length */
|
|
2961
|
+
interface PcbTraceTooLongError {
|
|
2962
|
+
type: "pcb_trace_too_long_error"
|
|
2963
|
+
pcb_trace_too_long_error_id: string
|
|
2964
|
+
error_type: "pcb_trace_too_long_error"
|
|
2965
|
+
message: string
|
|
2966
|
+
pcb_trace_id: string
|
|
2967
|
+
source_net_id?: string
|
|
2968
|
+
source_trace_id?: string
|
|
2969
|
+
actual_trace_length: Distance
|
|
2970
|
+
maximum_trace_length: Distance
|
|
2971
|
+
subcircuit_id?: string
|
|
2972
|
+
}
|
|
2973
|
+
```
|
|
2974
|
+
|
|
2910
2975
|
### PcbTraceTooLongWarning
|
|
2911
2976
|
|
|
2912
2977
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_trace_too_long_warning.ts)
|