@tscircuit/eval 0.0.765 → 0.0.766
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/blob-url.js +1 -1
- package/dist/eval/index.d.ts +150 -14
- package/dist/lib/index.d.ts +150 -14
- package/dist/webworker/entrypoint.js +4 -4
- package/package.json +4 -4
package/dist/eval/index.d.ts
CHANGED
|
@@ -369,6 +369,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
369
369
|
display_name?: string | undefined;
|
|
370
370
|
are_pins_interchangeable?: boolean | undefined;
|
|
371
371
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
372
|
+
display_inductance?: string | undefined;
|
|
372
373
|
max_current_rating?: number | undefined;
|
|
373
374
|
} | {
|
|
374
375
|
type: "source_component";
|
|
@@ -829,6 +830,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
829
830
|
display_name?: string | undefined;
|
|
830
831
|
are_pins_interchangeable?: boolean | undefined;
|
|
831
832
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
833
|
+
display_inductance?: string | undefined;
|
|
832
834
|
max_current_rating?: number | undefined;
|
|
833
835
|
} | {
|
|
834
836
|
type: "source_component";
|
|
@@ -1125,6 +1127,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1125
1127
|
x: number;
|
|
1126
1128
|
y: number;
|
|
1127
1129
|
} | undefined;
|
|
1130
|
+
insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
|
|
1128
1131
|
metadata?: {
|
|
1129
1132
|
kicad_footprint?: {
|
|
1130
1133
|
layer?: string | undefined;
|
|
@@ -1372,8 +1375,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1372
1375
|
type: "pcb_manual_edit_conflict_warning";
|
|
1373
1376
|
pcb_component_id: string;
|
|
1374
1377
|
source_component_id: string;
|
|
1375
|
-
pcb_manual_edit_conflict_warning_id: string;
|
|
1376
1378
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
1379
|
+
pcb_manual_edit_conflict_warning_id: string;
|
|
1377
1380
|
subcircuit_id?: string | undefined;
|
|
1378
1381
|
pcb_group_id?: string | undefined;
|
|
1379
1382
|
} | {
|
|
@@ -1609,6 +1612,20 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1609
1612
|
should_round_corners?: boolean | undefined;
|
|
1610
1613
|
trace_length?: number | undefined;
|
|
1611
1614
|
highlight_color?: string | undefined;
|
|
1615
|
+
} | {
|
|
1616
|
+
message: string;
|
|
1617
|
+
type: "pcb_trace_warning";
|
|
1618
|
+
source_trace_id: string;
|
|
1619
|
+
pcb_trace_id: string;
|
|
1620
|
+
pcb_trace_warning_id: string;
|
|
1621
|
+
warning_type: "pcb_trace_warning";
|
|
1622
|
+
pcb_component_ids: string[];
|
|
1623
|
+
pcb_port_ids: string[];
|
|
1624
|
+
center?: {
|
|
1625
|
+
x: number;
|
|
1626
|
+
y: number;
|
|
1627
|
+
} | undefined;
|
|
1628
|
+
subcircuit_id?: string | undefined;
|
|
1612
1629
|
} | {
|
|
1613
1630
|
x: number;
|
|
1614
1631
|
y: number;
|
|
@@ -1815,6 +1832,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1815
1832
|
material: "fr4" | "fr1";
|
|
1816
1833
|
width?: number | undefined;
|
|
1817
1834
|
height?: number | undefined;
|
|
1835
|
+
min_trace_width?: number | undefined;
|
|
1836
|
+
min_via_to_via_spacing?: number | undefined;
|
|
1837
|
+
min_trace_to_pad_spacing?: number | undefined;
|
|
1838
|
+
min_pad_to_pad_spacing?: number | undefined;
|
|
1839
|
+
min_via_hole_diameter?: number | undefined;
|
|
1840
|
+
min_via_pad_diameter?: number | undefined;
|
|
1818
1841
|
shape?: "rect" | "polygon" | undefined;
|
|
1819
1842
|
display_offset_x?: string | undefined;
|
|
1820
1843
|
display_offset_y?: string | undefined;
|
|
@@ -2030,10 +2053,10 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2030
2053
|
type: "pcb_trace_error";
|
|
2031
2054
|
source_trace_id: string;
|
|
2032
2055
|
pcb_trace_id: string;
|
|
2033
|
-
error_type: "pcb_trace_error";
|
|
2034
|
-
pcb_trace_error_id: string;
|
|
2035
2056
|
pcb_component_ids: string[];
|
|
2036
2057
|
pcb_port_ids: string[];
|
|
2058
|
+
error_type: "pcb_trace_error";
|
|
2059
|
+
pcb_trace_error_id: string;
|
|
2037
2060
|
center?: {
|
|
2038
2061
|
x: number;
|
|
2039
2062
|
y: number;
|
|
@@ -2044,9 +2067,9 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2044
2067
|
message: string;
|
|
2045
2068
|
type: "pcb_trace_missing_error";
|
|
2046
2069
|
source_trace_id: string;
|
|
2047
|
-
error_type: "pcb_trace_missing_error";
|
|
2048
2070
|
pcb_component_ids: string[];
|
|
2049
2071
|
pcb_port_ids: string[];
|
|
2072
|
+
error_type: "pcb_trace_missing_error";
|
|
2050
2073
|
pcb_trace_missing_error_id: string;
|
|
2051
2074
|
center?: {
|
|
2052
2075
|
x: number;
|
|
@@ -2073,17 +2096,17 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2073
2096
|
} | {
|
|
2074
2097
|
message: string;
|
|
2075
2098
|
type: "pcb_port_not_matched_error";
|
|
2076
|
-
error_type: "pcb_port_not_matched_error";
|
|
2077
2099
|
pcb_component_ids: string[];
|
|
2100
|
+
error_type: "pcb_port_not_matched_error";
|
|
2078
2101
|
pcb_error_id: string;
|
|
2079
2102
|
subcircuit_id?: string | undefined;
|
|
2080
2103
|
is_fatal?: boolean | undefined;
|
|
2081
2104
|
} | {
|
|
2082
2105
|
message: string;
|
|
2083
2106
|
type: "pcb_port_not_connected_error";
|
|
2084
|
-
error_type: "pcb_port_not_connected_error";
|
|
2085
2107
|
pcb_component_ids: string[];
|
|
2086
2108
|
pcb_port_ids: string[];
|
|
2109
|
+
error_type: "pcb_port_not_connected_error";
|
|
2087
2110
|
pcb_port_not_connected_error_id: string;
|
|
2088
2111
|
subcircuit_id?: string | undefined;
|
|
2089
2112
|
is_fatal?: boolean | undefined;
|
|
@@ -2101,6 +2124,50 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2101
2124
|
x?: number | undefined;
|
|
2102
2125
|
y?: number | undefined;
|
|
2103
2126
|
} | undefined;
|
|
2127
|
+
} | {
|
|
2128
|
+
message: string;
|
|
2129
|
+
type: "pcb_via_trace_clearance_error";
|
|
2130
|
+
pcb_trace_id: string;
|
|
2131
|
+
error_type: "pcb_via_trace_clearance_error";
|
|
2132
|
+
pcb_via_id: string;
|
|
2133
|
+
pcb_via_trace_clearance_error_id: string;
|
|
2134
|
+
center?: {
|
|
2135
|
+
x?: number | undefined;
|
|
2136
|
+
y?: number | undefined;
|
|
2137
|
+
} | undefined;
|
|
2138
|
+
subcircuit_id?: string | undefined;
|
|
2139
|
+
is_fatal?: boolean | undefined;
|
|
2140
|
+
minimum_clearance?: number | undefined;
|
|
2141
|
+
actual_clearance?: number | undefined;
|
|
2142
|
+
} | {
|
|
2143
|
+
message: string;
|
|
2144
|
+
type: "pcb_pad_pad_clearance_error";
|
|
2145
|
+
error_type: "pcb_pad_pad_clearance_error";
|
|
2146
|
+
pcb_pad_pad_clearance_error_id: string;
|
|
2147
|
+
pcb_pad_ids: string[];
|
|
2148
|
+
center?: {
|
|
2149
|
+
x?: number | undefined;
|
|
2150
|
+
y?: number | undefined;
|
|
2151
|
+
} | undefined;
|
|
2152
|
+
subcircuit_id?: string | undefined;
|
|
2153
|
+
is_fatal?: boolean | undefined;
|
|
2154
|
+
minimum_clearance?: number | undefined;
|
|
2155
|
+
actual_clearance?: number | undefined;
|
|
2156
|
+
} | {
|
|
2157
|
+
message: string;
|
|
2158
|
+
type: "pcb_pad_trace_clearance_error";
|
|
2159
|
+
pcb_trace_id: string;
|
|
2160
|
+
error_type: "pcb_pad_trace_clearance_error";
|
|
2161
|
+
pcb_pad_trace_clearance_error_id: string;
|
|
2162
|
+
pcb_pad_id: string;
|
|
2163
|
+
center?: {
|
|
2164
|
+
x?: number | undefined;
|
|
2165
|
+
y?: number | undefined;
|
|
2166
|
+
} | undefined;
|
|
2167
|
+
subcircuit_id?: string | undefined;
|
|
2168
|
+
is_fatal?: boolean | undefined;
|
|
2169
|
+
minimum_clearance?: number | undefined;
|
|
2170
|
+
actual_clearance?: number | undefined;
|
|
2104
2171
|
} | {
|
|
2105
2172
|
type: "pcb_fabrication_note_path";
|
|
2106
2173
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -2192,6 +2259,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2192
2259
|
pcb_group_id?: string | undefined;
|
|
2193
2260
|
text?: string | undefined;
|
|
2194
2261
|
color?: string | undefined;
|
|
2262
|
+
is_mirrored_from_top_view?: boolean | undefined;
|
|
2195
2263
|
} | {
|
|
2196
2264
|
type: "pcb_note_rect";
|
|
2197
2265
|
width: number;
|
|
@@ -2291,8 +2359,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2291
2359
|
} | {
|
|
2292
2360
|
message: string;
|
|
2293
2361
|
type: "pcb_courtyard_overlap_error";
|
|
2294
|
-
error_type: "pcb_courtyard_overlap_error";
|
|
2295
2362
|
pcb_component_ids: [string, string];
|
|
2363
|
+
error_type: "pcb_courtyard_overlap_error";
|
|
2296
2364
|
pcb_error_id: string;
|
|
2297
2365
|
is_fatal?: boolean | undefined;
|
|
2298
2366
|
} | {
|
|
@@ -4629,6 +4697,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
4629
4697
|
display_name?: string | undefined;
|
|
4630
4698
|
are_pins_interchangeable?: boolean | undefined;
|
|
4631
4699
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
4700
|
+
display_inductance?: string | undefined;
|
|
4632
4701
|
max_current_rating?: number | undefined;
|
|
4633
4702
|
} | {
|
|
4634
4703
|
type: "source_component";
|
|
@@ -5089,6 +5158,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5089
5158
|
display_name?: string | undefined;
|
|
5090
5159
|
are_pins_interchangeable?: boolean | undefined;
|
|
5091
5160
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
5161
|
+
display_inductance?: string | undefined;
|
|
5092
5162
|
max_current_rating?: number | undefined;
|
|
5093
5163
|
} | {
|
|
5094
5164
|
type: "source_component";
|
|
@@ -5385,6 +5455,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5385
5455
|
x: number;
|
|
5386
5456
|
y: number;
|
|
5387
5457
|
} | undefined;
|
|
5458
|
+
insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
|
|
5388
5459
|
metadata?: {
|
|
5389
5460
|
kicad_footprint?: {
|
|
5390
5461
|
layer?: string | undefined;
|
|
@@ -5632,8 +5703,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5632
5703
|
type: "pcb_manual_edit_conflict_warning";
|
|
5633
5704
|
pcb_component_id: string;
|
|
5634
5705
|
source_component_id: string;
|
|
5635
|
-
pcb_manual_edit_conflict_warning_id: string;
|
|
5636
5706
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
5707
|
+
pcb_manual_edit_conflict_warning_id: string;
|
|
5637
5708
|
subcircuit_id?: string | undefined;
|
|
5638
5709
|
pcb_group_id?: string | undefined;
|
|
5639
5710
|
} | {
|
|
@@ -5869,6 +5940,20 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5869
5940
|
should_round_corners?: boolean | undefined;
|
|
5870
5941
|
trace_length?: number | undefined;
|
|
5871
5942
|
highlight_color?: string | undefined;
|
|
5943
|
+
} | {
|
|
5944
|
+
message: string;
|
|
5945
|
+
type: "pcb_trace_warning";
|
|
5946
|
+
source_trace_id: string;
|
|
5947
|
+
pcb_trace_id: string;
|
|
5948
|
+
pcb_trace_warning_id: string;
|
|
5949
|
+
warning_type: "pcb_trace_warning";
|
|
5950
|
+
pcb_component_ids: string[];
|
|
5951
|
+
pcb_port_ids: string[];
|
|
5952
|
+
center?: {
|
|
5953
|
+
x: number;
|
|
5954
|
+
y: number;
|
|
5955
|
+
} | undefined;
|
|
5956
|
+
subcircuit_id?: string | undefined;
|
|
5872
5957
|
} | {
|
|
5873
5958
|
x: number;
|
|
5874
5959
|
y: number;
|
|
@@ -6075,6 +6160,12 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
6075
6160
|
material: "fr4" | "fr1";
|
|
6076
6161
|
width?: number | undefined;
|
|
6077
6162
|
height?: number | undefined;
|
|
6163
|
+
min_trace_width?: number | undefined;
|
|
6164
|
+
min_via_to_via_spacing?: number | undefined;
|
|
6165
|
+
min_trace_to_pad_spacing?: number | undefined;
|
|
6166
|
+
min_pad_to_pad_spacing?: number | undefined;
|
|
6167
|
+
min_via_hole_diameter?: number | undefined;
|
|
6168
|
+
min_via_pad_diameter?: number | undefined;
|
|
6078
6169
|
shape?: "rect" | "polygon" | undefined;
|
|
6079
6170
|
display_offset_x?: string | undefined;
|
|
6080
6171
|
display_offset_y?: string | undefined;
|
|
@@ -6290,10 +6381,10 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
6290
6381
|
type: "pcb_trace_error";
|
|
6291
6382
|
source_trace_id: string;
|
|
6292
6383
|
pcb_trace_id: string;
|
|
6293
|
-
error_type: "pcb_trace_error";
|
|
6294
|
-
pcb_trace_error_id: string;
|
|
6295
6384
|
pcb_component_ids: string[];
|
|
6296
6385
|
pcb_port_ids: string[];
|
|
6386
|
+
error_type: "pcb_trace_error";
|
|
6387
|
+
pcb_trace_error_id: string;
|
|
6297
6388
|
center?: {
|
|
6298
6389
|
x: number;
|
|
6299
6390
|
y: number;
|
|
@@ -6304,9 +6395,9 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
6304
6395
|
message: string;
|
|
6305
6396
|
type: "pcb_trace_missing_error";
|
|
6306
6397
|
source_trace_id: string;
|
|
6307
|
-
error_type: "pcb_trace_missing_error";
|
|
6308
6398
|
pcb_component_ids: string[];
|
|
6309
6399
|
pcb_port_ids: string[];
|
|
6400
|
+
error_type: "pcb_trace_missing_error";
|
|
6310
6401
|
pcb_trace_missing_error_id: string;
|
|
6311
6402
|
center?: {
|
|
6312
6403
|
x: number;
|
|
@@ -6333,17 +6424,17 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
6333
6424
|
} | {
|
|
6334
6425
|
message: string;
|
|
6335
6426
|
type: "pcb_port_not_matched_error";
|
|
6336
|
-
error_type: "pcb_port_not_matched_error";
|
|
6337
6427
|
pcb_component_ids: string[];
|
|
6428
|
+
error_type: "pcb_port_not_matched_error";
|
|
6338
6429
|
pcb_error_id: string;
|
|
6339
6430
|
subcircuit_id?: string | undefined;
|
|
6340
6431
|
is_fatal?: boolean | undefined;
|
|
6341
6432
|
} | {
|
|
6342
6433
|
message: string;
|
|
6343
6434
|
type: "pcb_port_not_connected_error";
|
|
6344
|
-
error_type: "pcb_port_not_connected_error";
|
|
6345
6435
|
pcb_component_ids: string[];
|
|
6346
6436
|
pcb_port_ids: string[];
|
|
6437
|
+
error_type: "pcb_port_not_connected_error";
|
|
6347
6438
|
pcb_port_not_connected_error_id: string;
|
|
6348
6439
|
subcircuit_id?: string | undefined;
|
|
6349
6440
|
is_fatal?: boolean | undefined;
|
|
@@ -6361,6 +6452,50 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
6361
6452
|
x?: number | undefined;
|
|
6362
6453
|
y?: number | undefined;
|
|
6363
6454
|
} | undefined;
|
|
6455
|
+
} | {
|
|
6456
|
+
message: string;
|
|
6457
|
+
type: "pcb_via_trace_clearance_error";
|
|
6458
|
+
pcb_trace_id: string;
|
|
6459
|
+
error_type: "pcb_via_trace_clearance_error";
|
|
6460
|
+
pcb_via_id: string;
|
|
6461
|
+
pcb_via_trace_clearance_error_id: string;
|
|
6462
|
+
center?: {
|
|
6463
|
+
x?: number | undefined;
|
|
6464
|
+
y?: number | undefined;
|
|
6465
|
+
} | undefined;
|
|
6466
|
+
subcircuit_id?: string | undefined;
|
|
6467
|
+
is_fatal?: boolean | undefined;
|
|
6468
|
+
minimum_clearance?: number | undefined;
|
|
6469
|
+
actual_clearance?: number | undefined;
|
|
6470
|
+
} | {
|
|
6471
|
+
message: string;
|
|
6472
|
+
type: "pcb_pad_pad_clearance_error";
|
|
6473
|
+
error_type: "pcb_pad_pad_clearance_error";
|
|
6474
|
+
pcb_pad_pad_clearance_error_id: string;
|
|
6475
|
+
pcb_pad_ids: string[];
|
|
6476
|
+
center?: {
|
|
6477
|
+
x?: number | undefined;
|
|
6478
|
+
y?: number | undefined;
|
|
6479
|
+
} | undefined;
|
|
6480
|
+
subcircuit_id?: string | undefined;
|
|
6481
|
+
is_fatal?: boolean | undefined;
|
|
6482
|
+
minimum_clearance?: number | undefined;
|
|
6483
|
+
actual_clearance?: number | undefined;
|
|
6484
|
+
} | {
|
|
6485
|
+
message: string;
|
|
6486
|
+
type: "pcb_pad_trace_clearance_error";
|
|
6487
|
+
pcb_trace_id: string;
|
|
6488
|
+
error_type: "pcb_pad_trace_clearance_error";
|
|
6489
|
+
pcb_pad_trace_clearance_error_id: string;
|
|
6490
|
+
pcb_pad_id: string;
|
|
6491
|
+
center?: {
|
|
6492
|
+
x?: number | undefined;
|
|
6493
|
+
y?: number | undefined;
|
|
6494
|
+
} | undefined;
|
|
6495
|
+
subcircuit_id?: string | undefined;
|
|
6496
|
+
is_fatal?: boolean | undefined;
|
|
6497
|
+
minimum_clearance?: number | undefined;
|
|
6498
|
+
actual_clearance?: number | undefined;
|
|
6364
6499
|
} | {
|
|
6365
6500
|
type: "pcb_fabrication_note_path";
|
|
6366
6501
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -6452,6 +6587,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
6452
6587
|
pcb_group_id?: string | undefined;
|
|
6453
6588
|
text?: string | undefined;
|
|
6454
6589
|
color?: string | undefined;
|
|
6590
|
+
is_mirrored_from_top_view?: boolean | undefined;
|
|
6455
6591
|
} | {
|
|
6456
6592
|
type: "pcb_note_rect";
|
|
6457
6593
|
width: number;
|
|
@@ -6551,8 +6687,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
6551
6687
|
} | {
|
|
6552
6688
|
message: string;
|
|
6553
6689
|
type: "pcb_courtyard_overlap_error";
|
|
6554
|
-
error_type: "pcb_courtyard_overlap_error";
|
|
6555
6690
|
pcb_component_ids: [string, string];
|
|
6691
|
+
error_type: "pcb_courtyard_overlap_error";
|
|
6556
6692
|
pcb_error_id: string;
|
|
6557
6693
|
is_fatal?: boolean | undefined;
|
|
6558
6694
|
} | {
|