circuit-json 0.0.490 → 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 +81 -0
- package/dist/index.d.mts +437 -56
- package/dist/index.mjs +1629 -1570
- 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)
|
|
@@ -1409,6 +1431,8 @@ interface PcbBoard extends ManufacturingDrcProperties {
|
|
|
1409
1431
|
subcircuit_id?: string
|
|
1410
1432
|
is_mounted_to_carrier_board?: boolean
|
|
1411
1433
|
is_via_in_pad_allowed?: boolean
|
|
1434
|
+
default_via_tented_on_top?: boolean
|
|
1435
|
+
default_via_tented_on_bottom?: boolean
|
|
1412
1436
|
width?: Length
|
|
1413
1437
|
height?: Length
|
|
1414
1438
|
display_offset_x?: string
|
|
@@ -1451,6 +1475,27 @@ interface PcbBreakoutPoint {
|
|
|
1451
1475
|
}
|
|
1452
1476
|
```
|
|
1453
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
|
+
|
|
1454
1499
|
### PcbComponent
|
|
1455
1500
|
|
|
1456
1501
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_component.ts)
|
|
@@ -2826,6 +2871,20 @@ interface PcbTraceRoutePointWire {
|
|
|
2826
2871
|
layer: LayerRef
|
|
2827
2872
|
}
|
|
2828
2873
|
|
|
2874
|
+
interface PcbTraceRoutePointVia {
|
|
2875
|
+
route_type: "via"
|
|
2876
|
+
x: Distance
|
|
2877
|
+
y: Distance
|
|
2878
|
+
copper_pour_id?: string
|
|
2879
|
+
is_inside_copper_pour?: boolean
|
|
2880
|
+
hole_diameter?: Distance
|
|
2881
|
+
outer_diameter?: Distance
|
|
2882
|
+
tented_on_top?: boolean
|
|
2883
|
+
tented_on_bottom?: boolean
|
|
2884
|
+
from_layer: LayerRef
|
|
2885
|
+
to_layer: LayerRef
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2829
2888
|
type PcbTraceRoutePoint =
|
|
2830
2889
|
| PcbTraceRoutePointWire
|
|
2831
2890
|
| PcbTraceRoutePointVia
|
|
@@ -2891,6 +2950,28 @@ interface PcbTraceMissingError extends BaseCircuitJsonError {
|
|
|
2891
2950
|
}
|
|
2892
2951
|
```
|
|
2893
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
|
+
|
|
2894
2975
|
### PcbTraceTooLongWarning
|
|
2895
2976
|
|
|
2896
2977
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_trace_too_long_warning.ts)
|