@tscircuit/circuit-json-util 0.0.92 → 0.0.94
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/dist/index.d.ts +403 -29
- package/dist/index.js +64 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -70,6 +70,11 @@ type GetIndexedCircuitJsonUtilFn = ((soup: AnyCircuitElement[], options?: Indexe
|
|
|
70
70
|
};
|
|
71
71
|
declare const cjuIndexed: GetIndexedCircuitJsonUtilFn;
|
|
72
72
|
|
|
73
|
+
type PcbInsertionDirection = "from_above" | "from_left" | "from_right" | "from_front" | "from_back";
|
|
74
|
+
declare const transformInsertionDirection: (direction: PcbInsertionDirection | undefined, opts: {
|
|
75
|
+
rotationDegrees: number;
|
|
76
|
+
isFlipped: boolean;
|
|
77
|
+
}) => "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
|
|
73
78
|
declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
74
79
|
type: "source_trace";
|
|
75
80
|
source_trace_id: string;
|
|
@@ -294,6 +299,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
294
299
|
display_name?: string | undefined;
|
|
295
300
|
are_pins_interchangeable?: boolean | undefined;
|
|
296
301
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
302
|
+
display_inductance?: string | undefined;
|
|
297
303
|
max_current_rating?: number | undefined;
|
|
298
304
|
} | {
|
|
299
305
|
type: "source_component";
|
|
@@ -601,6 +607,14 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
601
607
|
warning_type: "source_pin_missing_trace_warning";
|
|
602
608
|
source_pin_missing_trace_warning_id: string;
|
|
603
609
|
subcircuit_id?: string | undefined;
|
|
610
|
+
} | {
|
|
611
|
+
message: string;
|
|
612
|
+
type: "source_missing_manufacturer_part_number_warning";
|
|
613
|
+
source_component_id: string;
|
|
614
|
+
warning_type: "source_missing_manufacturer_part_number_warning";
|
|
615
|
+
standard: string;
|
|
616
|
+
source_missing_manufacturer_part_number_warning_id: string;
|
|
617
|
+
subcircuit_id?: string | undefined;
|
|
604
618
|
} | {
|
|
605
619
|
message: string;
|
|
606
620
|
type: "source_i2c_misconfigured_error";
|
|
@@ -746,6 +760,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
746
760
|
display_name?: string | undefined;
|
|
747
761
|
are_pins_interchangeable?: boolean | undefined;
|
|
748
762
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
763
|
+
display_inductance?: string | undefined;
|
|
749
764
|
max_current_rating?: number | undefined;
|
|
750
765
|
} | {
|
|
751
766
|
type: "source_component";
|
|
@@ -947,6 +962,14 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
947
962
|
warning_type: "source_pin_missing_trace_warning";
|
|
948
963
|
source_pin_missing_trace_warning_id: string;
|
|
949
964
|
subcircuit_id?: string | undefined;
|
|
965
|
+
} | {
|
|
966
|
+
message: string;
|
|
967
|
+
type: "source_missing_manufacturer_part_number_warning";
|
|
968
|
+
source_component_id: string;
|
|
969
|
+
warning_type: "source_missing_manufacturer_part_number_warning";
|
|
970
|
+
standard: string;
|
|
971
|
+
source_missing_manufacturer_part_number_warning_id: string;
|
|
972
|
+
subcircuit_id?: string | undefined;
|
|
950
973
|
} | {
|
|
951
974
|
message: string;
|
|
952
975
|
type: "source_no_power_pin_defined_warning";
|
|
@@ -1034,6 +1057,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1034
1057
|
x: number;
|
|
1035
1058
|
y: number;
|
|
1036
1059
|
} | undefined;
|
|
1060
|
+
insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
|
|
1037
1061
|
metadata?: {
|
|
1038
1062
|
kicad_footprint?: {
|
|
1039
1063
|
layer?: string | undefined;
|
|
@@ -1281,8 +1305,8 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1281
1305
|
type: "pcb_manual_edit_conflict_warning";
|
|
1282
1306
|
pcb_component_id: string;
|
|
1283
1307
|
source_component_id: string;
|
|
1284
|
-
pcb_manual_edit_conflict_warning_id: string;
|
|
1285
1308
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
1309
|
+
pcb_manual_edit_conflict_warning_id: string;
|
|
1286
1310
|
subcircuit_id?: string | undefined;
|
|
1287
1311
|
pcb_group_id?: string | undefined;
|
|
1288
1312
|
} | {
|
|
@@ -1518,6 +1542,20 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1518
1542
|
should_round_corners?: boolean | undefined;
|
|
1519
1543
|
trace_length?: number | undefined;
|
|
1520
1544
|
highlight_color?: string | undefined;
|
|
1545
|
+
} | {
|
|
1546
|
+
message: string;
|
|
1547
|
+
type: "pcb_trace_warning";
|
|
1548
|
+
source_trace_id: string;
|
|
1549
|
+
pcb_trace_id: string;
|
|
1550
|
+
pcb_trace_warning_id: string;
|
|
1551
|
+
warning_type: "pcb_trace_warning";
|
|
1552
|
+
pcb_component_ids: string[];
|
|
1553
|
+
pcb_port_ids: string[];
|
|
1554
|
+
center?: {
|
|
1555
|
+
x: number;
|
|
1556
|
+
y: number;
|
|
1557
|
+
} | undefined;
|
|
1558
|
+
subcircuit_id?: string | undefined;
|
|
1521
1559
|
} | {
|
|
1522
1560
|
x: number;
|
|
1523
1561
|
y: number;
|
|
@@ -1724,6 +1762,13 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1724
1762
|
material: "fr4" | "fr1";
|
|
1725
1763
|
width?: number | undefined;
|
|
1726
1764
|
height?: number | undefined;
|
|
1765
|
+
min_trace_width?: number | undefined;
|
|
1766
|
+
min_board_edge_clearance?: number | undefined;
|
|
1767
|
+
min_via_to_via_clearance?: number | undefined;
|
|
1768
|
+
min_trace_to_pad_clearance?: number | undefined;
|
|
1769
|
+
min_pad_to_pad_clearance?: number | undefined;
|
|
1770
|
+
min_via_hole_diameter?: number | undefined;
|
|
1771
|
+
min_via_pad_diameter?: number | undefined;
|
|
1727
1772
|
shape?: "rect" | "polygon" | undefined;
|
|
1728
1773
|
display_offset_x?: string | undefined;
|
|
1729
1774
|
display_offset_y?: string | undefined;
|
|
@@ -1939,10 +1984,10 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1939
1984
|
type: "pcb_trace_error";
|
|
1940
1985
|
source_trace_id: string;
|
|
1941
1986
|
pcb_trace_id: string;
|
|
1942
|
-
error_type: "pcb_trace_error";
|
|
1943
|
-
pcb_trace_error_id: string;
|
|
1944
1987
|
pcb_component_ids: string[];
|
|
1945
1988
|
pcb_port_ids: string[];
|
|
1989
|
+
error_type: "pcb_trace_error";
|
|
1990
|
+
pcb_trace_error_id: string;
|
|
1946
1991
|
center?: {
|
|
1947
1992
|
x: number;
|
|
1948
1993
|
y: number;
|
|
@@ -1953,9 +1998,9 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1953
1998
|
message: string;
|
|
1954
1999
|
type: "pcb_trace_missing_error";
|
|
1955
2000
|
source_trace_id: string;
|
|
1956
|
-
error_type: "pcb_trace_missing_error";
|
|
1957
2001
|
pcb_component_ids: string[];
|
|
1958
2002
|
pcb_port_ids: string[];
|
|
2003
|
+
error_type: "pcb_trace_missing_error";
|
|
1959
2004
|
pcb_trace_missing_error_id: string;
|
|
1960
2005
|
center?: {
|
|
1961
2006
|
x: number;
|
|
@@ -1982,17 +2027,17 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1982
2027
|
} | {
|
|
1983
2028
|
message: string;
|
|
1984
2029
|
type: "pcb_port_not_matched_error";
|
|
1985
|
-
error_type: "pcb_port_not_matched_error";
|
|
1986
2030
|
pcb_component_ids: string[];
|
|
2031
|
+
error_type: "pcb_port_not_matched_error";
|
|
1987
2032
|
pcb_error_id: string;
|
|
1988
2033
|
subcircuit_id?: string | undefined;
|
|
1989
2034
|
is_fatal?: boolean | undefined;
|
|
1990
2035
|
} | {
|
|
1991
2036
|
message: string;
|
|
1992
2037
|
type: "pcb_port_not_connected_error";
|
|
1993
|
-
error_type: "pcb_port_not_connected_error";
|
|
1994
2038
|
pcb_component_ids: string[];
|
|
1995
2039
|
pcb_port_ids: string[];
|
|
2040
|
+
error_type: "pcb_port_not_connected_error";
|
|
1996
2041
|
pcb_port_not_connected_error_id: string;
|
|
1997
2042
|
subcircuit_id?: string | undefined;
|
|
1998
2043
|
is_fatal?: boolean | undefined;
|
|
@@ -2010,6 +2055,50 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
2010
2055
|
x?: number | undefined;
|
|
2011
2056
|
y?: number | undefined;
|
|
2012
2057
|
} | undefined;
|
|
2058
|
+
} | {
|
|
2059
|
+
message: string;
|
|
2060
|
+
type: "pcb_via_trace_clearance_error";
|
|
2061
|
+
pcb_trace_id: string;
|
|
2062
|
+
error_type: "pcb_via_trace_clearance_error";
|
|
2063
|
+
pcb_via_id: string;
|
|
2064
|
+
pcb_via_trace_clearance_error_id: string;
|
|
2065
|
+
center?: {
|
|
2066
|
+
x?: number | undefined;
|
|
2067
|
+
y?: number | undefined;
|
|
2068
|
+
} | undefined;
|
|
2069
|
+
subcircuit_id?: string | undefined;
|
|
2070
|
+
is_fatal?: boolean | undefined;
|
|
2071
|
+
minimum_clearance?: number | undefined;
|
|
2072
|
+
actual_clearance?: number | undefined;
|
|
2073
|
+
} | {
|
|
2074
|
+
message: string;
|
|
2075
|
+
type: "pcb_pad_pad_clearance_error";
|
|
2076
|
+
error_type: "pcb_pad_pad_clearance_error";
|
|
2077
|
+
pcb_pad_pad_clearance_error_id: string;
|
|
2078
|
+
pcb_pad_ids: string[];
|
|
2079
|
+
center?: {
|
|
2080
|
+
x?: number | undefined;
|
|
2081
|
+
y?: number | undefined;
|
|
2082
|
+
} | undefined;
|
|
2083
|
+
subcircuit_id?: string | undefined;
|
|
2084
|
+
is_fatal?: boolean | undefined;
|
|
2085
|
+
minimum_clearance?: number | undefined;
|
|
2086
|
+
actual_clearance?: number | undefined;
|
|
2087
|
+
} | {
|
|
2088
|
+
message: string;
|
|
2089
|
+
type: "pcb_pad_trace_clearance_error";
|
|
2090
|
+
pcb_trace_id: string;
|
|
2091
|
+
error_type: "pcb_pad_trace_clearance_error";
|
|
2092
|
+
pcb_pad_trace_clearance_error_id: string;
|
|
2093
|
+
pcb_pad_id: string;
|
|
2094
|
+
center?: {
|
|
2095
|
+
x?: number | undefined;
|
|
2096
|
+
y?: number | undefined;
|
|
2097
|
+
} | undefined;
|
|
2098
|
+
subcircuit_id?: string | undefined;
|
|
2099
|
+
is_fatal?: boolean | undefined;
|
|
2100
|
+
minimum_clearance?: number | undefined;
|
|
2101
|
+
actual_clearance?: number | undefined;
|
|
2013
2102
|
} | {
|
|
2014
2103
|
type: "pcb_fabrication_note_path";
|
|
2015
2104
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -2101,6 +2190,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
2101
2190
|
pcb_group_id?: string | undefined;
|
|
2102
2191
|
text?: string | undefined;
|
|
2103
2192
|
color?: string | undefined;
|
|
2193
|
+
is_mirrored_from_top_view?: boolean | undefined;
|
|
2104
2194
|
} | {
|
|
2105
2195
|
type: "pcb_note_rect";
|
|
2106
2196
|
width: number;
|
|
@@ -2200,8 +2290,8 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
2200
2290
|
} | {
|
|
2201
2291
|
message: string;
|
|
2202
2292
|
type: "pcb_courtyard_overlap_error";
|
|
2203
|
-
error_type: "pcb_courtyard_overlap_error";
|
|
2204
2293
|
pcb_component_ids: [string, string];
|
|
2294
|
+
error_type: "pcb_courtyard_overlap_error";
|
|
2205
2295
|
pcb_error_id: string;
|
|
2206
2296
|
is_fatal?: boolean | undefined;
|
|
2207
2297
|
} | {
|
|
@@ -4532,6 +4622,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
4532
4622
|
display_name?: string | undefined;
|
|
4533
4623
|
are_pins_interchangeable?: boolean | undefined;
|
|
4534
4624
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
4625
|
+
display_inductance?: string | undefined;
|
|
4535
4626
|
max_current_rating?: number | undefined;
|
|
4536
4627
|
} | {
|
|
4537
4628
|
type: "source_component";
|
|
@@ -4839,6 +4930,14 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
4839
4930
|
warning_type: "source_pin_missing_trace_warning";
|
|
4840
4931
|
source_pin_missing_trace_warning_id: string;
|
|
4841
4932
|
subcircuit_id?: string | undefined;
|
|
4933
|
+
} | {
|
|
4934
|
+
message: string;
|
|
4935
|
+
type: "source_missing_manufacturer_part_number_warning";
|
|
4936
|
+
source_component_id: string;
|
|
4937
|
+
warning_type: "source_missing_manufacturer_part_number_warning";
|
|
4938
|
+
standard: string;
|
|
4939
|
+
source_missing_manufacturer_part_number_warning_id: string;
|
|
4940
|
+
subcircuit_id?: string | undefined;
|
|
4842
4941
|
} | {
|
|
4843
4942
|
message: string;
|
|
4844
4943
|
type: "source_i2c_misconfigured_error";
|
|
@@ -4984,6 +5083,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
4984
5083
|
display_name?: string | undefined;
|
|
4985
5084
|
are_pins_interchangeable?: boolean | undefined;
|
|
4986
5085
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
5086
|
+
display_inductance?: string | undefined;
|
|
4987
5087
|
max_current_rating?: number | undefined;
|
|
4988
5088
|
} | {
|
|
4989
5089
|
type: "source_component";
|
|
@@ -5185,6 +5285,14 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5185
5285
|
warning_type: "source_pin_missing_trace_warning";
|
|
5186
5286
|
source_pin_missing_trace_warning_id: string;
|
|
5187
5287
|
subcircuit_id?: string | undefined;
|
|
5288
|
+
} | {
|
|
5289
|
+
message: string;
|
|
5290
|
+
type: "source_missing_manufacturer_part_number_warning";
|
|
5291
|
+
source_component_id: string;
|
|
5292
|
+
warning_type: "source_missing_manufacturer_part_number_warning";
|
|
5293
|
+
standard: string;
|
|
5294
|
+
source_missing_manufacturer_part_number_warning_id: string;
|
|
5295
|
+
subcircuit_id?: string | undefined;
|
|
5188
5296
|
} | {
|
|
5189
5297
|
message: string;
|
|
5190
5298
|
type: "source_no_power_pin_defined_warning";
|
|
@@ -5272,6 +5380,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5272
5380
|
x: number;
|
|
5273
5381
|
y: number;
|
|
5274
5382
|
} | undefined;
|
|
5383
|
+
insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
|
|
5275
5384
|
metadata?: {
|
|
5276
5385
|
kicad_footprint?: {
|
|
5277
5386
|
layer?: string | undefined;
|
|
@@ -5519,8 +5628,8 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5519
5628
|
type: "pcb_manual_edit_conflict_warning";
|
|
5520
5629
|
pcb_component_id: string;
|
|
5521
5630
|
source_component_id: string;
|
|
5522
|
-
pcb_manual_edit_conflict_warning_id: string;
|
|
5523
5631
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
5632
|
+
pcb_manual_edit_conflict_warning_id: string;
|
|
5524
5633
|
subcircuit_id?: string | undefined;
|
|
5525
5634
|
pcb_group_id?: string | undefined;
|
|
5526
5635
|
} | {
|
|
@@ -5756,6 +5865,20 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5756
5865
|
should_round_corners?: boolean | undefined;
|
|
5757
5866
|
trace_length?: number | undefined;
|
|
5758
5867
|
highlight_color?: string | undefined;
|
|
5868
|
+
} | {
|
|
5869
|
+
message: string;
|
|
5870
|
+
type: "pcb_trace_warning";
|
|
5871
|
+
source_trace_id: string;
|
|
5872
|
+
pcb_trace_id: string;
|
|
5873
|
+
pcb_trace_warning_id: string;
|
|
5874
|
+
warning_type: "pcb_trace_warning";
|
|
5875
|
+
pcb_component_ids: string[];
|
|
5876
|
+
pcb_port_ids: string[];
|
|
5877
|
+
center?: {
|
|
5878
|
+
x: number;
|
|
5879
|
+
y: number;
|
|
5880
|
+
} | undefined;
|
|
5881
|
+
subcircuit_id?: string | undefined;
|
|
5759
5882
|
} | {
|
|
5760
5883
|
x: number;
|
|
5761
5884
|
y: number;
|
|
@@ -5962,6 +6085,13 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5962
6085
|
material: "fr4" | "fr1";
|
|
5963
6086
|
width?: number | undefined;
|
|
5964
6087
|
height?: number | undefined;
|
|
6088
|
+
min_trace_width?: number | undefined;
|
|
6089
|
+
min_board_edge_clearance?: number | undefined;
|
|
6090
|
+
min_via_to_via_clearance?: number | undefined;
|
|
6091
|
+
min_trace_to_pad_clearance?: number | undefined;
|
|
6092
|
+
min_pad_to_pad_clearance?: number | undefined;
|
|
6093
|
+
min_via_hole_diameter?: number | undefined;
|
|
6094
|
+
min_via_pad_diameter?: number | undefined;
|
|
5965
6095
|
shape?: "rect" | "polygon" | undefined;
|
|
5966
6096
|
display_offset_x?: string | undefined;
|
|
5967
6097
|
display_offset_y?: string | undefined;
|
|
@@ -6177,10 +6307,10 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6177
6307
|
type: "pcb_trace_error";
|
|
6178
6308
|
source_trace_id: string;
|
|
6179
6309
|
pcb_trace_id: string;
|
|
6180
|
-
error_type: "pcb_trace_error";
|
|
6181
|
-
pcb_trace_error_id: string;
|
|
6182
6310
|
pcb_component_ids: string[];
|
|
6183
6311
|
pcb_port_ids: string[];
|
|
6312
|
+
error_type: "pcb_trace_error";
|
|
6313
|
+
pcb_trace_error_id: string;
|
|
6184
6314
|
center?: {
|
|
6185
6315
|
x: number;
|
|
6186
6316
|
y: number;
|
|
@@ -6191,9 +6321,9 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6191
6321
|
message: string;
|
|
6192
6322
|
type: "pcb_trace_missing_error";
|
|
6193
6323
|
source_trace_id: string;
|
|
6194
|
-
error_type: "pcb_trace_missing_error";
|
|
6195
6324
|
pcb_component_ids: string[];
|
|
6196
6325
|
pcb_port_ids: string[];
|
|
6326
|
+
error_type: "pcb_trace_missing_error";
|
|
6197
6327
|
pcb_trace_missing_error_id: string;
|
|
6198
6328
|
center?: {
|
|
6199
6329
|
x: number;
|
|
@@ -6220,17 +6350,17 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6220
6350
|
} | {
|
|
6221
6351
|
message: string;
|
|
6222
6352
|
type: "pcb_port_not_matched_error";
|
|
6223
|
-
error_type: "pcb_port_not_matched_error";
|
|
6224
6353
|
pcb_component_ids: string[];
|
|
6354
|
+
error_type: "pcb_port_not_matched_error";
|
|
6225
6355
|
pcb_error_id: string;
|
|
6226
6356
|
subcircuit_id?: string | undefined;
|
|
6227
6357
|
is_fatal?: boolean | undefined;
|
|
6228
6358
|
} | {
|
|
6229
6359
|
message: string;
|
|
6230
6360
|
type: "pcb_port_not_connected_error";
|
|
6231
|
-
error_type: "pcb_port_not_connected_error";
|
|
6232
6361
|
pcb_component_ids: string[];
|
|
6233
6362
|
pcb_port_ids: string[];
|
|
6363
|
+
error_type: "pcb_port_not_connected_error";
|
|
6234
6364
|
pcb_port_not_connected_error_id: string;
|
|
6235
6365
|
subcircuit_id?: string | undefined;
|
|
6236
6366
|
is_fatal?: boolean | undefined;
|
|
@@ -6248,6 +6378,50 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6248
6378
|
x?: number | undefined;
|
|
6249
6379
|
y?: number | undefined;
|
|
6250
6380
|
} | undefined;
|
|
6381
|
+
} | {
|
|
6382
|
+
message: string;
|
|
6383
|
+
type: "pcb_via_trace_clearance_error";
|
|
6384
|
+
pcb_trace_id: string;
|
|
6385
|
+
error_type: "pcb_via_trace_clearance_error";
|
|
6386
|
+
pcb_via_id: string;
|
|
6387
|
+
pcb_via_trace_clearance_error_id: string;
|
|
6388
|
+
center?: {
|
|
6389
|
+
x?: number | undefined;
|
|
6390
|
+
y?: number | undefined;
|
|
6391
|
+
} | undefined;
|
|
6392
|
+
subcircuit_id?: string | undefined;
|
|
6393
|
+
is_fatal?: boolean | undefined;
|
|
6394
|
+
minimum_clearance?: number | undefined;
|
|
6395
|
+
actual_clearance?: number | undefined;
|
|
6396
|
+
} | {
|
|
6397
|
+
message: string;
|
|
6398
|
+
type: "pcb_pad_pad_clearance_error";
|
|
6399
|
+
error_type: "pcb_pad_pad_clearance_error";
|
|
6400
|
+
pcb_pad_pad_clearance_error_id: string;
|
|
6401
|
+
pcb_pad_ids: string[];
|
|
6402
|
+
center?: {
|
|
6403
|
+
x?: number | undefined;
|
|
6404
|
+
y?: number | undefined;
|
|
6405
|
+
} | undefined;
|
|
6406
|
+
subcircuit_id?: string | undefined;
|
|
6407
|
+
is_fatal?: boolean | undefined;
|
|
6408
|
+
minimum_clearance?: number | undefined;
|
|
6409
|
+
actual_clearance?: number | undefined;
|
|
6410
|
+
} | {
|
|
6411
|
+
message: string;
|
|
6412
|
+
type: "pcb_pad_trace_clearance_error";
|
|
6413
|
+
pcb_trace_id: string;
|
|
6414
|
+
error_type: "pcb_pad_trace_clearance_error";
|
|
6415
|
+
pcb_pad_trace_clearance_error_id: string;
|
|
6416
|
+
pcb_pad_id: string;
|
|
6417
|
+
center?: {
|
|
6418
|
+
x?: number | undefined;
|
|
6419
|
+
y?: number | undefined;
|
|
6420
|
+
} | undefined;
|
|
6421
|
+
subcircuit_id?: string | undefined;
|
|
6422
|
+
is_fatal?: boolean | undefined;
|
|
6423
|
+
minimum_clearance?: number | undefined;
|
|
6424
|
+
actual_clearance?: number | undefined;
|
|
6251
6425
|
} | {
|
|
6252
6426
|
type: "pcb_fabrication_note_path";
|
|
6253
6427
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -6339,6 +6513,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6339
6513
|
pcb_group_id?: string | undefined;
|
|
6340
6514
|
text?: string | undefined;
|
|
6341
6515
|
color?: string | undefined;
|
|
6516
|
+
is_mirrored_from_top_view?: boolean | undefined;
|
|
6342
6517
|
} | {
|
|
6343
6518
|
type: "pcb_note_rect";
|
|
6344
6519
|
width: number;
|
|
@@ -6438,8 +6613,8 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6438
6613
|
} | {
|
|
6439
6614
|
message: string;
|
|
6440
6615
|
type: "pcb_courtyard_overlap_error";
|
|
6441
|
-
error_type: "pcb_courtyard_overlap_error";
|
|
6442
6616
|
pcb_component_ids: [string, string];
|
|
6617
|
+
error_type: "pcb_courtyard_overlap_error";
|
|
6443
6618
|
pcb_error_id: string;
|
|
6444
6619
|
is_fatal?: boolean | undefined;
|
|
6445
6620
|
} | {
|
|
@@ -8770,6 +8945,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
8770
8945
|
display_name?: string | undefined;
|
|
8771
8946
|
are_pins_interchangeable?: boolean | undefined;
|
|
8772
8947
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
8948
|
+
display_inductance?: string | undefined;
|
|
8773
8949
|
max_current_rating?: number | undefined;
|
|
8774
8950
|
} | {
|
|
8775
8951
|
type: "source_component";
|
|
@@ -9077,6 +9253,14 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9077
9253
|
warning_type: "source_pin_missing_trace_warning";
|
|
9078
9254
|
source_pin_missing_trace_warning_id: string;
|
|
9079
9255
|
subcircuit_id?: string | undefined;
|
|
9256
|
+
} | {
|
|
9257
|
+
message: string;
|
|
9258
|
+
type: "source_missing_manufacturer_part_number_warning";
|
|
9259
|
+
source_component_id: string;
|
|
9260
|
+
warning_type: "source_missing_manufacturer_part_number_warning";
|
|
9261
|
+
standard: string;
|
|
9262
|
+
source_missing_manufacturer_part_number_warning_id: string;
|
|
9263
|
+
subcircuit_id?: string | undefined;
|
|
9080
9264
|
} | {
|
|
9081
9265
|
message: string;
|
|
9082
9266
|
type: "source_i2c_misconfigured_error";
|
|
@@ -9222,6 +9406,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9222
9406
|
display_name?: string | undefined;
|
|
9223
9407
|
are_pins_interchangeable?: boolean | undefined;
|
|
9224
9408
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
9409
|
+
display_inductance?: string | undefined;
|
|
9225
9410
|
max_current_rating?: number | undefined;
|
|
9226
9411
|
} | {
|
|
9227
9412
|
type: "source_component";
|
|
@@ -9423,6 +9608,14 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9423
9608
|
warning_type: "source_pin_missing_trace_warning";
|
|
9424
9609
|
source_pin_missing_trace_warning_id: string;
|
|
9425
9610
|
subcircuit_id?: string | undefined;
|
|
9611
|
+
} | {
|
|
9612
|
+
message: string;
|
|
9613
|
+
type: "source_missing_manufacturer_part_number_warning";
|
|
9614
|
+
source_component_id: string;
|
|
9615
|
+
warning_type: "source_missing_manufacturer_part_number_warning";
|
|
9616
|
+
standard: string;
|
|
9617
|
+
source_missing_manufacturer_part_number_warning_id: string;
|
|
9618
|
+
subcircuit_id?: string | undefined;
|
|
9426
9619
|
} | {
|
|
9427
9620
|
message: string;
|
|
9428
9621
|
type: "source_no_power_pin_defined_warning";
|
|
@@ -9510,6 +9703,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9510
9703
|
x: number;
|
|
9511
9704
|
y: number;
|
|
9512
9705
|
} | undefined;
|
|
9706
|
+
insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
|
|
9513
9707
|
metadata?: {
|
|
9514
9708
|
kicad_footprint?: {
|
|
9515
9709
|
layer?: string | undefined;
|
|
@@ -9757,8 +9951,8 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9757
9951
|
type: "pcb_manual_edit_conflict_warning";
|
|
9758
9952
|
pcb_component_id: string;
|
|
9759
9953
|
source_component_id: string;
|
|
9760
|
-
pcb_manual_edit_conflict_warning_id: string;
|
|
9761
9954
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
9955
|
+
pcb_manual_edit_conflict_warning_id: string;
|
|
9762
9956
|
subcircuit_id?: string | undefined;
|
|
9763
9957
|
pcb_group_id?: string | undefined;
|
|
9764
9958
|
} | {
|
|
@@ -9994,6 +10188,20 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9994
10188
|
should_round_corners?: boolean | undefined;
|
|
9995
10189
|
trace_length?: number | undefined;
|
|
9996
10190
|
highlight_color?: string | undefined;
|
|
10191
|
+
} | {
|
|
10192
|
+
message: string;
|
|
10193
|
+
type: "pcb_trace_warning";
|
|
10194
|
+
source_trace_id: string;
|
|
10195
|
+
pcb_trace_id: string;
|
|
10196
|
+
pcb_trace_warning_id: string;
|
|
10197
|
+
warning_type: "pcb_trace_warning";
|
|
10198
|
+
pcb_component_ids: string[];
|
|
10199
|
+
pcb_port_ids: string[];
|
|
10200
|
+
center?: {
|
|
10201
|
+
x: number;
|
|
10202
|
+
y: number;
|
|
10203
|
+
} | undefined;
|
|
10204
|
+
subcircuit_id?: string | undefined;
|
|
9997
10205
|
} | {
|
|
9998
10206
|
x: number;
|
|
9999
10207
|
y: number;
|
|
@@ -10200,6 +10408,13 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10200
10408
|
material: "fr4" | "fr1";
|
|
10201
10409
|
width?: number | undefined;
|
|
10202
10410
|
height?: number | undefined;
|
|
10411
|
+
min_trace_width?: number | undefined;
|
|
10412
|
+
min_board_edge_clearance?: number | undefined;
|
|
10413
|
+
min_via_to_via_clearance?: number | undefined;
|
|
10414
|
+
min_trace_to_pad_clearance?: number | undefined;
|
|
10415
|
+
min_pad_to_pad_clearance?: number | undefined;
|
|
10416
|
+
min_via_hole_diameter?: number | undefined;
|
|
10417
|
+
min_via_pad_diameter?: number | undefined;
|
|
10203
10418
|
shape?: "rect" | "polygon" | undefined;
|
|
10204
10419
|
display_offset_x?: string | undefined;
|
|
10205
10420
|
display_offset_y?: string | undefined;
|
|
@@ -10415,10 +10630,10 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10415
10630
|
type: "pcb_trace_error";
|
|
10416
10631
|
source_trace_id: string;
|
|
10417
10632
|
pcb_trace_id: string;
|
|
10418
|
-
error_type: "pcb_trace_error";
|
|
10419
|
-
pcb_trace_error_id: string;
|
|
10420
10633
|
pcb_component_ids: string[];
|
|
10421
10634
|
pcb_port_ids: string[];
|
|
10635
|
+
error_type: "pcb_trace_error";
|
|
10636
|
+
pcb_trace_error_id: string;
|
|
10422
10637
|
center?: {
|
|
10423
10638
|
x: number;
|
|
10424
10639
|
y: number;
|
|
@@ -10429,9 +10644,9 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10429
10644
|
message: string;
|
|
10430
10645
|
type: "pcb_trace_missing_error";
|
|
10431
10646
|
source_trace_id: string;
|
|
10432
|
-
error_type: "pcb_trace_missing_error";
|
|
10433
10647
|
pcb_component_ids: string[];
|
|
10434
10648
|
pcb_port_ids: string[];
|
|
10649
|
+
error_type: "pcb_trace_missing_error";
|
|
10435
10650
|
pcb_trace_missing_error_id: string;
|
|
10436
10651
|
center?: {
|
|
10437
10652
|
x: number;
|
|
@@ -10458,17 +10673,17 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10458
10673
|
} | {
|
|
10459
10674
|
message: string;
|
|
10460
10675
|
type: "pcb_port_not_matched_error";
|
|
10461
|
-
error_type: "pcb_port_not_matched_error";
|
|
10462
10676
|
pcb_component_ids: string[];
|
|
10677
|
+
error_type: "pcb_port_not_matched_error";
|
|
10463
10678
|
pcb_error_id: string;
|
|
10464
10679
|
subcircuit_id?: string | undefined;
|
|
10465
10680
|
is_fatal?: boolean | undefined;
|
|
10466
10681
|
} | {
|
|
10467
10682
|
message: string;
|
|
10468
10683
|
type: "pcb_port_not_connected_error";
|
|
10469
|
-
error_type: "pcb_port_not_connected_error";
|
|
10470
10684
|
pcb_component_ids: string[];
|
|
10471
10685
|
pcb_port_ids: string[];
|
|
10686
|
+
error_type: "pcb_port_not_connected_error";
|
|
10472
10687
|
pcb_port_not_connected_error_id: string;
|
|
10473
10688
|
subcircuit_id?: string | undefined;
|
|
10474
10689
|
is_fatal?: boolean | undefined;
|
|
@@ -10486,6 +10701,50 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10486
10701
|
x?: number | undefined;
|
|
10487
10702
|
y?: number | undefined;
|
|
10488
10703
|
} | undefined;
|
|
10704
|
+
} | {
|
|
10705
|
+
message: string;
|
|
10706
|
+
type: "pcb_via_trace_clearance_error";
|
|
10707
|
+
pcb_trace_id: string;
|
|
10708
|
+
error_type: "pcb_via_trace_clearance_error";
|
|
10709
|
+
pcb_via_id: string;
|
|
10710
|
+
pcb_via_trace_clearance_error_id: string;
|
|
10711
|
+
center?: {
|
|
10712
|
+
x?: number | undefined;
|
|
10713
|
+
y?: number | undefined;
|
|
10714
|
+
} | undefined;
|
|
10715
|
+
subcircuit_id?: string | undefined;
|
|
10716
|
+
is_fatal?: boolean | undefined;
|
|
10717
|
+
minimum_clearance?: number | undefined;
|
|
10718
|
+
actual_clearance?: number | undefined;
|
|
10719
|
+
} | {
|
|
10720
|
+
message: string;
|
|
10721
|
+
type: "pcb_pad_pad_clearance_error";
|
|
10722
|
+
error_type: "pcb_pad_pad_clearance_error";
|
|
10723
|
+
pcb_pad_pad_clearance_error_id: string;
|
|
10724
|
+
pcb_pad_ids: string[];
|
|
10725
|
+
center?: {
|
|
10726
|
+
x?: number | undefined;
|
|
10727
|
+
y?: number | undefined;
|
|
10728
|
+
} | undefined;
|
|
10729
|
+
subcircuit_id?: string | undefined;
|
|
10730
|
+
is_fatal?: boolean | undefined;
|
|
10731
|
+
minimum_clearance?: number | undefined;
|
|
10732
|
+
actual_clearance?: number | undefined;
|
|
10733
|
+
} | {
|
|
10734
|
+
message: string;
|
|
10735
|
+
type: "pcb_pad_trace_clearance_error";
|
|
10736
|
+
pcb_trace_id: string;
|
|
10737
|
+
error_type: "pcb_pad_trace_clearance_error";
|
|
10738
|
+
pcb_pad_trace_clearance_error_id: string;
|
|
10739
|
+
pcb_pad_id: string;
|
|
10740
|
+
center?: {
|
|
10741
|
+
x?: number | undefined;
|
|
10742
|
+
y?: number | undefined;
|
|
10743
|
+
} | undefined;
|
|
10744
|
+
subcircuit_id?: string | undefined;
|
|
10745
|
+
is_fatal?: boolean | undefined;
|
|
10746
|
+
minimum_clearance?: number | undefined;
|
|
10747
|
+
actual_clearance?: number | undefined;
|
|
10489
10748
|
} | {
|
|
10490
10749
|
type: "pcb_fabrication_note_path";
|
|
10491
10750
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -10577,6 +10836,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10577
10836
|
pcb_group_id?: string | undefined;
|
|
10578
10837
|
text?: string | undefined;
|
|
10579
10838
|
color?: string | undefined;
|
|
10839
|
+
is_mirrored_from_top_view?: boolean | undefined;
|
|
10580
10840
|
} | {
|
|
10581
10841
|
type: "pcb_note_rect";
|
|
10582
10842
|
width: number;
|
|
@@ -10676,8 +10936,8 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10676
10936
|
} | {
|
|
10677
10937
|
message: string;
|
|
10678
10938
|
type: "pcb_courtyard_overlap_error";
|
|
10679
|
-
error_type: "pcb_courtyard_overlap_error";
|
|
10680
10939
|
pcb_component_ids: [string, string];
|
|
10940
|
+
error_type: "pcb_courtyard_overlap_error";
|
|
10681
10941
|
pcb_error_id: string;
|
|
10682
10942
|
is_fatal?: boolean | undefined;
|
|
10683
10943
|
} | {
|
|
@@ -13008,6 +13268,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13008
13268
|
display_name?: string | undefined;
|
|
13009
13269
|
are_pins_interchangeable?: boolean | undefined;
|
|
13010
13270
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
13271
|
+
display_inductance?: string | undefined;
|
|
13011
13272
|
max_current_rating?: number | undefined;
|
|
13012
13273
|
} | {
|
|
13013
13274
|
type: "source_component";
|
|
@@ -13315,6 +13576,14 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13315
13576
|
warning_type: "source_pin_missing_trace_warning";
|
|
13316
13577
|
source_pin_missing_trace_warning_id: string;
|
|
13317
13578
|
subcircuit_id?: string | undefined;
|
|
13579
|
+
} | {
|
|
13580
|
+
message: string;
|
|
13581
|
+
type: "source_missing_manufacturer_part_number_warning";
|
|
13582
|
+
source_component_id: string;
|
|
13583
|
+
warning_type: "source_missing_manufacturer_part_number_warning";
|
|
13584
|
+
standard: string;
|
|
13585
|
+
source_missing_manufacturer_part_number_warning_id: string;
|
|
13586
|
+
subcircuit_id?: string | undefined;
|
|
13318
13587
|
} | {
|
|
13319
13588
|
message: string;
|
|
13320
13589
|
type: "source_i2c_misconfigured_error";
|
|
@@ -13460,6 +13729,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13460
13729
|
display_name?: string | undefined;
|
|
13461
13730
|
are_pins_interchangeable?: boolean | undefined;
|
|
13462
13731
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
13732
|
+
display_inductance?: string | undefined;
|
|
13463
13733
|
max_current_rating?: number | undefined;
|
|
13464
13734
|
} | {
|
|
13465
13735
|
type: "source_component";
|
|
@@ -13661,6 +13931,14 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13661
13931
|
warning_type: "source_pin_missing_trace_warning";
|
|
13662
13932
|
source_pin_missing_trace_warning_id: string;
|
|
13663
13933
|
subcircuit_id?: string | undefined;
|
|
13934
|
+
} | {
|
|
13935
|
+
message: string;
|
|
13936
|
+
type: "source_missing_manufacturer_part_number_warning";
|
|
13937
|
+
source_component_id: string;
|
|
13938
|
+
warning_type: "source_missing_manufacturer_part_number_warning";
|
|
13939
|
+
standard: string;
|
|
13940
|
+
source_missing_manufacturer_part_number_warning_id: string;
|
|
13941
|
+
subcircuit_id?: string | undefined;
|
|
13664
13942
|
} | {
|
|
13665
13943
|
message: string;
|
|
13666
13944
|
type: "source_no_power_pin_defined_warning";
|
|
@@ -13748,6 +14026,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13748
14026
|
x: number;
|
|
13749
14027
|
y: number;
|
|
13750
14028
|
} | undefined;
|
|
14029
|
+
insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
|
|
13751
14030
|
metadata?: {
|
|
13752
14031
|
kicad_footprint?: {
|
|
13753
14032
|
layer?: string | undefined;
|
|
@@ -13995,8 +14274,8 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13995
14274
|
type: "pcb_manual_edit_conflict_warning";
|
|
13996
14275
|
pcb_component_id: string;
|
|
13997
14276
|
source_component_id: string;
|
|
13998
|
-
pcb_manual_edit_conflict_warning_id: string;
|
|
13999
14277
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
14278
|
+
pcb_manual_edit_conflict_warning_id: string;
|
|
14000
14279
|
subcircuit_id?: string | undefined;
|
|
14001
14280
|
pcb_group_id?: string | undefined;
|
|
14002
14281
|
} | {
|
|
@@ -14232,6 +14511,20 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14232
14511
|
should_round_corners?: boolean | undefined;
|
|
14233
14512
|
trace_length?: number | undefined;
|
|
14234
14513
|
highlight_color?: string | undefined;
|
|
14514
|
+
} | {
|
|
14515
|
+
message: string;
|
|
14516
|
+
type: "pcb_trace_warning";
|
|
14517
|
+
source_trace_id: string;
|
|
14518
|
+
pcb_trace_id: string;
|
|
14519
|
+
pcb_trace_warning_id: string;
|
|
14520
|
+
warning_type: "pcb_trace_warning";
|
|
14521
|
+
pcb_component_ids: string[];
|
|
14522
|
+
pcb_port_ids: string[];
|
|
14523
|
+
center?: {
|
|
14524
|
+
x: number;
|
|
14525
|
+
y: number;
|
|
14526
|
+
} | undefined;
|
|
14527
|
+
subcircuit_id?: string | undefined;
|
|
14235
14528
|
} | {
|
|
14236
14529
|
x: number;
|
|
14237
14530
|
y: number;
|
|
@@ -14438,6 +14731,13 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14438
14731
|
material: "fr4" | "fr1";
|
|
14439
14732
|
width?: number | undefined;
|
|
14440
14733
|
height?: number | undefined;
|
|
14734
|
+
min_trace_width?: number | undefined;
|
|
14735
|
+
min_board_edge_clearance?: number | undefined;
|
|
14736
|
+
min_via_to_via_clearance?: number | undefined;
|
|
14737
|
+
min_trace_to_pad_clearance?: number | undefined;
|
|
14738
|
+
min_pad_to_pad_clearance?: number | undefined;
|
|
14739
|
+
min_via_hole_diameter?: number | undefined;
|
|
14740
|
+
min_via_pad_diameter?: number | undefined;
|
|
14441
14741
|
shape?: "rect" | "polygon" | undefined;
|
|
14442
14742
|
display_offset_x?: string | undefined;
|
|
14443
14743
|
display_offset_y?: string | undefined;
|
|
@@ -14653,10 +14953,10 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14653
14953
|
type: "pcb_trace_error";
|
|
14654
14954
|
source_trace_id: string;
|
|
14655
14955
|
pcb_trace_id: string;
|
|
14656
|
-
error_type: "pcb_trace_error";
|
|
14657
|
-
pcb_trace_error_id: string;
|
|
14658
14956
|
pcb_component_ids: string[];
|
|
14659
14957
|
pcb_port_ids: string[];
|
|
14958
|
+
error_type: "pcb_trace_error";
|
|
14959
|
+
pcb_trace_error_id: string;
|
|
14660
14960
|
center?: {
|
|
14661
14961
|
x: number;
|
|
14662
14962
|
y: number;
|
|
@@ -14667,9 +14967,9 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14667
14967
|
message: string;
|
|
14668
14968
|
type: "pcb_trace_missing_error";
|
|
14669
14969
|
source_trace_id: string;
|
|
14670
|
-
error_type: "pcb_trace_missing_error";
|
|
14671
14970
|
pcb_component_ids: string[];
|
|
14672
14971
|
pcb_port_ids: string[];
|
|
14972
|
+
error_type: "pcb_trace_missing_error";
|
|
14673
14973
|
pcb_trace_missing_error_id: string;
|
|
14674
14974
|
center?: {
|
|
14675
14975
|
x: number;
|
|
@@ -14696,17 +14996,17 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14696
14996
|
} | {
|
|
14697
14997
|
message: string;
|
|
14698
14998
|
type: "pcb_port_not_matched_error";
|
|
14699
|
-
error_type: "pcb_port_not_matched_error";
|
|
14700
14999
|
pcb_component_ids: string[];
|
|
15000
|
+
error_type: "pcb_port_not_matched_error";
|
|
14701
15001
|
pcb_error_id: string;
|
|
14702
15002
|
subcircuit_id?: string | undefined;
|
|
14703
15003
|
is_fatal?: boolean | undefined;
|
|
14704
15004
|
} | {
|
|
14705
15005
|
message: string;
|
|
14706
15006
|
type: "pcb_port_not_connected_error";
|
|
14707
|
-
error_type: "pcb_port_not_connected_error";
|
|
14708
15007
|
pcb_component_ids: string[];
|
|
14709
15008
|
pcb_port_ids: string[];
|
|
15009
|
+
error_type: "pcb_port_not_connected_error";
|
|
14710
15010
|
pcb_port_not_connected_error_id: string;
|
|
14711
15011
|
subcircuit_id?: string | undefined;
|
|
14712
15012
|
is_fatal?: boolean | undefined;
|
|
@@ -14724,6 +15024,50 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14724
15024
|
x?: number | undefined;
|
|
14725
15025
|
y?: number | undefined;
|
|
14726
15026
|
} | undefined;
|
|
15027
|
+
} | {
|
|
15028
|
+
message: string;
|
|
15029
|
+
type: "pcb_via_trace_clearance_error";
|
|
15030
|
+
pcb_trace_id: string;
|
|
15031
|
+
error_type: "pcb_via_trace_clearance_error";
|
|
15032
|
+
pcb_via_id: string;
|
|
15033
|
+
pcb_via_trace_clearance_error_id: string;
|
|
15034
|
+
center?: {
|
|
15035
|
+
x?: number | undefined;
|
|
15036
|
+
y?: number | undefined;
|
|
15037
|
+
} | undefined;
|
|
15038
|
+
subcircuit_id?: string | undefined;
|
|
15039
|
+
is_fatal?: boolean | undefined;
|
|
15040
|
+
minimum_clearance?: number | undefined;
|
|
15041
|
+
actual_clearance?: number | undefined;
|
|
15042
|
+
} | {
|
|
15043
|
+
message: string;
|
|
15044
|
+
type: "pcb_pad_pad_clearance_error";
|
|
15045
|
+
error_type: "pcb_pad_pad_clearance_error";
|
|
15046
|
+
pcb_pad_pad_clearance_error_id: string;
|
|
15047
|
+
pcb_pad_ids: string[];
|
|
15048
|
+
center?: {
|
|
15049
|
+
x?: number | undefined;
|
|
15050
|
+
y?: number | undefined;
|
|
15051
|
+
} | undefined;
|
|
15052
|
+
subcircuit_id?: string | undefined;
|
|
15053
|
+
is_fatal?: boolean | undefined;
|
|
15054
|
+
minimum_clearance?: number | undefined;
|
|
15055
|
+
actual_clearance?: number | undefined;
|
|
15056
|
+
} | {
|
|
15057
|
+
message: string;
|
|
15058
|
+
type: "pcb_pad_trace_clearance_error";
|
|
15059
|
+
pcb_trace_id: string;
|
|
15060
|
+
error_type: "pcb_pad_trace_clearance_error";
|
|
15061
|
+
pcb_pad_trace_clearance_error_id: string;
|
|
15062
|
+
pcb_pad_id: string;
|
|
15063
|
+
center?: {
|
|
15064
|
+
x?: number | undefined;
|
|
15065
|
+
y?: number | undefined;
|
|
15066
|
+
} | undefined;
|
|
15067
|
+
subcircuit_id?: string | undefined;
|
|
15068
|
+
is_fatal?: boolean | undefined;
|
|
15069
|
+
minimum_clearance?: number | undefined;
|
|
15070
|
+
actual_clearance?: number | undefined;
|
|
14727
15071
|
} | {
|
|
14728
15072
|
type: "pcb_fabrication_note_path";
|
|
14729
15073
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -14815,6 +15159,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14815
15159
|
pcb_group_id?: string | undefined;
|
|
14816
15160
|
text?: string | undefined;
|
|
14817
15161
|
color?: string | undefined;
|
|
15162
|
+
is_mirrored_from_top_view?: boolean | undefined;
|
|
14818
15163
|
} | {
|
|
14819
15164
|
type: "pcb_note_rect";
|
|
14820
15165
|
width: number;
|
|
@@ -14914,8 +15259,8 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14914
15259
|
} | {
|
|
14915
15260
|
message: string;
|
|
14916
15261
|
type: "pcb_courtyard_overlap_error";
|
|
14917
|
-
error_type: "pcb_courtyard_overlap_error";
|
|
14918
15262
|
pcb_component_ids: [string, string];
|
|
15263
|
+
error_type: "pcb_courtyard_overlap_error";
|
|
14919
15264
|
pcb_error_id: string;
|
|
14920
15265
|
is_fatal?: boolean | undefined;
|
|
14921
15266
|
} | {
|
|
@@ -17163,6 +17508,35 @@ declare const computeGapBetweenCopper: (elm1: AnyCircuitElement, elm2: AnyCircui
|
|
|
17163
17508
|
|
|
17164
17509
|
declare const computeClearanceBetweenElements: (elm1: AnyCircuitElement, elm2: AnyCircuitElement) => number;
|
|
17165
17510
|
|
|
17511
|
+
type Point = {
|
|
17512
|
+
x: number;
|
|
17513
|
+
y: number;
|
|
17514
|
+
};
|
|
17515
|
+
type Circle = {
|
|
17516
|
+
kind: "circle";
|
|
17517
|
+
x: number;
|
|
17518
|
+
y: number;
|
|
17519
|
+
radius: number;
|
|
17520
|
+
};
|
|
17521
|
+
type Rect = {
|
|
17522
|
+
kind: "rect";
|
|
17523
|
+
centerX: number;
|
|
17524
|
+
centerY: number;
|
|
17525
|
+
width: number;
|
|
17526
|
+
height: number;
|
|
17527
|
+
rotationDegrees: number;
|
|
17528
|
+
};
|
|
17529
|
+
type Polygon = {
|
|
17530
|
+
kind: "polygon";
|
|
17531
|
+
points: Point[];
|
|
17532
|
+
};
|
|
17533
|
+
type CopperShape = Circle | Rect | Polygon;
|
|
17534
|
+
|
|
17535
|
+
declare const distanceBetweenCircleAndCircle: (a: Circle, b: Circle) => number;
|
|
17536
|
+
declare const distanceBetweenPolygonAndPolygon: (a: Polygon, b: Polygon) => number;
|
|
17537
|
+
declare const distanceBetweenCircleAndPolygon: (circle: Circle, polygon: Polygon) => number;
|
|
17538
|
+
declare const distanceBetweenShapes: (a: CopperShape, b: CopperShape) => number;
|
|
17539
|
+
|
|
17166
17540
|
type DrcCategory = "netlist" | "pin_specification" | "placement" | "routing" | "unknown";
|
|
17167
17541
|
type DrcLike = {
|
|
17168
17542
|
type?: string;
|
|
@@ -17171,4 +17545,4 @@ type DrcLike = {
|
|
|
17171
17545
|
};
|
|
17172
17546
|
declare const categorizeErrorOrWarning: (value: string | DrcLike) => DrcCategory;
|
|
17173
17547
|
|
|
17174
|
-
export { type BoardBounds, type CircuitJsonInputUtilObjects, type CircuitJsonOps, type CircuitJsonTreeNode, type CircuitJsonUtilObjects, type CircuitJsonUtilOptions, type DrcCategory, type GetCircuitJsonUtilFn, type GetIndexedCircuitJsonUtilFn, type IndexedCircuitJsonUtilOptions, type Size, type SubtreeOptions, applySelector, applySelectorAST, buildSubtree, categorizeErrorOrWarning, cju, cjuIndexed, computeClearanceBetweenElements, computeGapBetweenCopper, directionToVec, findBoundsAndCenter, getBoardBounds, getBoundsOfPcbElements, getCircuitJsonTree, getElementById, getElementId, getElementRenderLayers, getMinimumFlexContainer, getPrimaryId, getReadableNameForElement, getReadableNameForPcbPort, getReadableNameForPcbSmtpad, getReadableNameForPcbTrace, getStringFromCircuitJsonTree, oppositeDirection, oppositeSide, repositionPcbComponentTo, repositionPcbGroupTo, repositionSchematicComponentTo, repositionSchematicGroupTo, rotateClockwise, rotateCounterClockwise, rotateDirection, su, transformPCBElement, transformPCBElements, transformPCBElement as transformPcbElement, transformPCBElements as transformPcbElements, transformSchematicElement, transformSchematicElements, vecToDirection };
|
|
17548
|
+
export { type BoardBounds, type CircuitJsonInputUtilObjects, type CircuitJsonOps, type CircuitJsonTreeNode, type CircuitJsonUtilObjects, type CircuitJsonUtilOptions, type DrcCategory, type GetCircuitJsonUtilFn, type GetIndexedCircuitJsonUtilFn, type IndexedCircuitJsonUtilOptions, type Size, type SubtreeOptions, applySelector, applySelectorAST, buildSubtree, categorizeErrorOrWarning, cju, cjuIndexed, computeClearanceBetweenElements, computeGapBetweenCopper, directionToVec, distanceBetweenCircleAndCircle, distanceBetweenCircleAndPolygon, distanceBetweenPolygonAndPolygon, distanceBetweenShapes, findBoundsAndCenter, getBoardBounds, getBoundsOfPcbElements, getCircuitJsonTree, getElementById, getElementId, getElementRenderLayers, getMinimumFlexContainer, getPrimaryId, getReadableNameForElement, getReadableNameForPcbPort, getReadableNameForPcbSmtpad, getReadableNameForPcbTrace, getStringFromCircuitJsonTree, oppositeDirection, oppositeSide, repositionPcbComponentTo, repositionPcbGroupTo, repositionSchematicComponentTo, repositionSchematicGroupTo, rotateClockwise, rotateCounterClockwise, rotateDirection, su, transformInsertionDirection, transformPCBElement, transformPCBElements, transformPCBElement as transformPcbElement, transformPCBElements as transformPcbElements, transformSchematicElement, transformSchematicElements, vecToDirection };
|