@tscircuit/eval 0.0.299 → 0.0.300
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 +178 -4
- package/dist/lib/index.d.ts +178 -4
- package/dist/webworker/entrypoint.js +363 -454
- package/package.json +11 -10
package/dist/eval/index.d.ts
CHANGED
|
@@ -104,8 +104,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
104
104
|
source_port_id: string;
|
|
105
105
|
subcircuit_id?: string | undefined;
|
|
106
106
|
port_hints?: string[] | undefined;
|
|
107
|
-
pin_number?: number | undefined;
|
|
108
107
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
108
|
+
pin_number?: number | undefined;
|
|
109
109
|
} | {
|
|
110
110
|
type: "source_component";
|
|
111
111
|
name: string;
|
|
@@ -279,6 +279,18 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
279
279
|
display_value?: string | undefined;
|
|
280
280
|
are_pins_interchangeable?: boolean | undefined;
|
|
281
281
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
282
|
+
} | {
|
|
283
|
+
type: "source_component";
|
|
284
|
+
name: string;
|
|
285
|
+
source_component_id: string;
|
|
286
|
+
ftype: "simple_pinout";
|
|
287
|
+
subcircuit_id?: string | undefined;
|
|
288
|
+
source_group_id?: string | undefined;
|
|
289
|
+
manufacturer_part_number?: string | undefined;
|
|
290
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
291
|
+
display_value?: string | undefined;
|
|
292
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
293
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
282
294
|
} | {
|
|
283
295
|
type: "source_component";
|
|
284
296
|
name: string;
|
|
@@ -433,6 +445,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
433
445
|
is_ground?: boolean | undefined;
|
|
434
446
|
is_digital_signal?: boolean | undefined;
|
|
435
447
|
is_analog_signal?: boolean | undefined;
|
|
448
|
+
is_positive_voltage_source?: boolean | undefined;
|
|
436
449
|
} | {
|
|
437
450
|
type: "source_group";
|
|
438
451
|
source_group_id: string;
|
|
@@ -563,6 +576,18 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
563
576
|
display_value?: string | undefined;
|
|
564
577
|
are_pins_interchangeable?: boolean | undefined;
|
|
565
578
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
579
|
+
} | {
|
|
580
|
+
type: "source_component";
|
|
581
|
+
name: string;
|
|
582
|
+
source_component_id: string;
|
|
583
|
+
ftype: "simple_pinout";
|
|
584
|
+
subcircuit_id?: string | undefined;
|
|
585
|
+
source_group_id?: string | undefined;
|
|
586
|
+
manufacturer_part_number?: string | undefined;
|
|
587
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
588
|
+
display_value?: string | undefined;
|
|
589
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
590
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
566
591
|
} | {
|
|
567
592
|
type: "source_component";
|
|
568
593
|
name: string;
|
|
@@ -666,6 +691,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
666
691
|
source_net_id: string;
|
|
667
692
|
source_pcb_ground_plane_id: string;
|
|
668
693
|
subcircuit_id?: string | undefined;
|
|
694
|
+
} | {
|
|
695
|
+
type: "source_manually_placed_via";
|
|
696
|
+
source_group_id: string;
|
|
697
|
+
source_net_id: string;
|
|
698
|
+
source_manually_placed_via_id: string;
|
|
699
|
+
subcircuit_id?: string | undefined;
|
|
700
|
+
source_trace_id?: string | undefined;
|
|
669
701
|
} | {
|
|
670
702
|
type: "source_project_metadata";
|
|
671
703
|
name?: string | undefined;
|
|
@@ -1370,6 +1402,57 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1370
1402
|
spoke_outer_diameter: number;
|
|
1371
1403
|
subcircuit_id?: string | undefined;
|
|
1372
1404
|
pcb_plated_hole_id?: string | undefined;
|
|
1405
|
+
} | {
|
|
1406
|
+
type: "pcb_copper_pour";
|
|
1407
|
+
width: number;
|
|
1408
|
+
height: number;
|
|
1409
|
+
center: {
|
|
1410
|
+
x: number;
|
|
1411
|
+
y: number;
|
|
1412
|
+
};
|
|
1413
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1414
|
+
shape: "rect";
|
|
1415
|
+
pcb_copper_pour_id: string;
|
|
1416
|
+
rotation?: number | undefined;
|
|
1417
|
+
subcircuit_id?: string | undefined;
|
|
1418
|
+
pcb_group_id?: string | undefined;
|
|
1419
|
+
source_net_id?: string | undefined;
|
|
1420
|
+
} | {
|
|
1421
|
+
type: "pcb_copper_pour";
|
|
1422
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1423
|
+
shape: "brep";
|
|
1424
|
+
pcb_copper_pour_id: string;
|
|
1425
|
+
brep_shape: {
|
|
1426
|
+
outer_ring: {
|
|
1427
|
+
vertices: {
|
|
1428
|
+
x: number;
|
|
1429
|
+
y: number;
|
|
1430
|
+
bulge?: number | undefined;
|
|
1431
|
+
}[];
|
|
1432
|
+
};
|
|
1433
|
+
inner_rings: {
|
|
1434
|
+
vertices: {
|
|
1435
|
+
x: number;
|
|
1436
|
+
y: number;
|
|
1437
|
+
bulge?: number | undefined;
|
|
1438
|
+
}[];
|
|
1439
|
+
}[];
|
|
1440
|
+
};
|
|
1441
|
+
subcircuit_id?: string | undefined;
|
|
1442
|
+
pcb_group_id?: string | undefined;
|
|
1443
|
+
source_net_id?: string | undefined;
|
|
1444
|
+
} | {
|
|
1445
|
+
type: "pcb_copper_pour";
|
|
1446
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1447
|
+
shape: "polygon";
|
|
1448
|
+
points: {
|
|
1449
|
+
x: number;
|
|
1450
|
+
y: number;
|
|
1451
|
+
}[];
|
|
1452
|
+
pcb_copper_pour_id: string;
|
|
1453
|
+
subcircuit_id?: string | undefined;
|
|
1454
|
+
pcb_group_id?: string | undefined;
|
|
1455
|
+
source_net_id?: string | undefined;
|
|
1373
1456
|
} | {
|
|
1374
1457
|
x: number;
|
|
1375
1458
|
y: number;
|
|
@@ -1470,7 +1553,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1470
1553
|
has_output_arrow?: boolean | undefined;
|
|
1471
1554
|
} | {
|
|
1472
1555
|
type: "schematic_trace";
|
|
1473
|
-
source_trace_id: string;
|
|
1474
1556
|
schematic_trace_id: string;
|
|
1475
1557
|
junctions: {
|
|
1476
1558
|
x: number;
|
|
@@ -1490,6 +1572,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1490
1572
|
to_schematic_port_id?: string | undefined;
|
|
1491
1573
|
}[];
|
|
1492
1574
|
subcircuit_id?: string | undefined;
|
|
1575
|
+
source_trace_id?: string | undefined;
|
|
1576
|
+
subcircuit_connectivity_map_key?: string | undefined;
|
|
1493
1577
|
} | {
|
|
1494
1578
|
type: "schematic_path";
|
|
1495
1579
|
points: {
|
|
@@ -1661,6 +1745,9 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1661
1745
|
model_obj_url?: string | undefined;
|
|
1662
1746
|
model_stl_url?: string | undefined;
|
|
1663
1747
|
model_3mf_url?: string | undefined;
|
|
1748
|
+
model_gltf_url?: string | undefined;
|
|
1749
|
+
model_glb_url?: string | undefined;
|
|
1750
|
+
model_step_url?: string | undefined;
|
|
1664
1751
|
model_jscad?: any;
|
|
1665
1752
|
} | {
|
|
1666
1753
|
type: "simulation_voltage_source";
|
|
@@ -1707,8 +1794,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
1707
1794
|
source_port_id: string;
|
|
1708
1795
|
subcircuit_id?: string | undefined;
|
|
1709
1796
|
port_hints?: string[] | undefined;
|
|
1710
|
-
pin_number?: number | undefined;
|
|
1711
1797
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
1798
|
+
pin_number?: number | undefined;
|
|
1712
1799
|
} | {
|
|
1713
1800
|
type: "source_component";
|
|
1714
1801
|
name: string;
|
|
@@ -1882,6 +1969,18 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
1882
1969
|
display_value?: string | undefined;
|
|
1883
1970
|
are_pins_interchangeable?: boolean | undefined;
|
|
1884
1971
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
1972
|
+
} | {
|
|
1973
|
+
type: "source_component";
|
|
1974
|
+
name: string;
|
|
1975
|
+
source_component_id: string;
|
|
1976
|
+
ftype: "simple_pinout";
|
|
1977
|
+
subcircuit_id?: string | undefined;
|
|
1978
|
+
source_group_id?: string | undefined;
|
|
1979
|
+
manufacturer_part_number?: string | undefined;
|
|
1980
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
1981
|
+
display_value?: string | undefined;
|
|
1982
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
1983
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
1885
1984
|
} | {
|
|
1886
1985
|
type: "source_component";
|
|
1887
1986
|
name: string;
|
|
@@ -2036,6 +2135,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2036
2135
|
is_ground?: boolean | undefined;
|
|
2037
2136
|
is_digital_signal?: boolean | undefined;
|
|
2038
2137
|
is_analog_signal?: boolean | undefined;
|
|
2138
|
+
is_positive_voltage_source?: boolean | undefined;
|
|
2039
2139
|
} | {
|
|
2040
2140
|
type: "source_group";
|
|
2041
2141
|
source_group_id: string;
|
|
@@ -2166,6 +2266,18 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2166
2266
|
display_value?: string | undefined;
|
|
2167
2267
|
are_pins_interchangeable?: boolean | undefined;
|
|
2168
2268
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
2269
|
+
} | {
|
|
2270
|
+
type: "source_component";
|
|
2271
|
+
name: string;
|
|
2272
|
+
source_component_id: string;
|
|
2273
|
+
ftype: "simple_pinout";
|
|
2274
|
+
subcircuit_id?: string | undefined;
|
|
2275
|
+
source_group_id?: string | undefined;
|
|
2276
|
+
manufacturer_part_number?: string | undefined;
|
|
2277
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
2278
|
+
display_value?: string | undefined;
|
|
2279
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
2280
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
2169
2281
|
} | {
|
|
2170
2282
|
type: "source_component";
|
|
2171
2283
|
name: string;
|
|
@@ -2269,6 +2381,13 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2269
2381
|
source_net_id: string;
|
|
2270
2382
|
source_pcb_ground_plane_id: string;
|
|
2271
2383
|
subcircuit_id?: string | undefined;
|
|
2384
|
+
} | {
|
|
2385
|
+
type: "source_manually_placed_via";
|
|
2386
|
+
source_group_id: string;
|
|
2387
|
+
source_net_id: string;
|
|
2388
|
+
source_manually_placed_via_id: string;
|
|
2389
|
+
subcircuit_id?: string | undefined;
|
|
2390
|
+
source_trace_id?: string | undefined;
|
|
2272
2391
|
} | {
|
|
2273
2392
|
type: "source_project_metadata";
|
|
2274
2393
|
name?: string | undefined;
|
|
@@ -2973,6 +3092,57 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2973
3092
|
spoke_outer_diameter: number;
|
|
2974
3093
|
subcircuit_id?: string | undefined;
|
|
2975
3094
|
pcb_plated_hole_id?: string | undefined;
|
|
3095
|
+
} | {
|
|
3096
|
+
type: "pcb_copper_pour";
|
|
3097
|
+
width: number;
|
|
3098
|
+
height: number;
|
|
3099
|
+
center: {
|
|
3100
|
+
x: number;
|
|
3101
|
+
y: number;
|
|
3102
|
+
};
|
|
3103
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3104
|
+
shape: "rect";
|
|
3105
|
+
pcb_copper_pour_id: string;
|
|
3106
|
+
rotation?: number | undefined;
|
|
3107
|
+
subcircuit_id?: string | undefined;
|
|
3108
|
+
pcb_group_id?: string | undefined;
|
|
3109
|
+
source_net_id?: string | undefined;
|
|
3110
|
+
} | {
|
|
3111
|
+
type: "pcb_copper_pour";
|
|
3112
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3113
|
+
shape: "brep";
|
|
3114
|
+
pcb_copper_pour_id: string;
|
|
3115
|
+
brep_shape: {
|
|
3116
|
+
outer_ring: {
|
|
3117
|
+
vertices: {
|
|
3118
|
+
x: number;
|
|
3119
|
+
y: number;
|
|
3120
|
+
bulge?: number | undefined;
|
|
3121
|
+
}[];
|
|
3122
|
+
};
|
|
3123
|
+
inner_rings: {
|
|
3124
|
+
vertices: {
|
|
3125
|
+
x: number;
|
|
3126
|
+
y: number;
|
|
3127
|
+
bulge?: number | undefined;
|
|
3128
|
+
}[];
|
|
3129
|
+
}[];
|
|
3130
|
+
};
|
|
3131
|
+
subcircuit_id?: string | undefined;
|
|
3132
|
+
pcb_group_id?: string | undefined;
|
|
3133
|
+
source_net_id?: string | undefined;
|
|
3134
|
+
} | {
|
|
3135
|
+
type: "pcb_copper_pour";
|
|
3136
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3137
|
+
shape: "polygon";
|
|
3138
|
+
points: {
|
|
3139
|
+
x: number;
|
|
3140
|
+
y: number;
|
|
3141
|
+
}[];
|
|
3142
|
+
pcb_copper_pour_id: string;
|
|
3143
|
+
subcircuit_id?: string | undefined;
|
|
3144
|
+
pcb_group_id?: string | undefined;
|
|
3145
|
+
source_net_id?: string | undefined;
|
|
2976
3146
|
} | {
|
|
2977
3147
|
x: number;
|
|
2978
3148
|
y: number;
|
|
@@ -3073,7 +3243,6 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3073
3243
|
has_output_arrow?: boolean | undefined;
|
|
3074
3244
|
} | {
|
|
3075
3245
|
type: "schematic_trace";
|
|
3076
|
-
source_trace_id: string;
|
|
3077
3246
|
schematic_trace_id: string;
|
|
3078
3247
|
junctions: {
|
|
3079
3248
|
x: number;
|
|
@@ -3093,6 +3262,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3093
3262
|
to_schematic_port_id?: string | undefined;
|
|
3094
3263
|
}[];
|
|
3095
3264
|
subcircuit_id?: string | undefined;
|
|
3265
|
+
source_trace_id?: string | undefined;
|
|
3266
|
+
subcircuit_connectivity_map_key?: string | undefined;
|
|
3096
3267
|
} | {
|
|
3097
3268
|
type: "schematic_path";
|
|
3098
3269
|
points: {
|
|
@@ -3264,6 +3435,9 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3264
3435
|
model_obj_url?: string | undefined;
|
|
3265
3436
|
model_stl_url?: string | undefined;
|
|
3266
3437
|
model_3mf_url?: string | undefined;
|
|
3438
|
+
model_gltf_url?: string | undefined;
|
|
3439
|
+
model_glb_url?: string | undefined;
|
|
3440
|
+
model_step_url?: string | undefined;
|
|
3267
3441
|
model_jscad?: any;
|
|
3268
3442
|
} | {
|
|
3269
3443
|
type: "simulation_voltage_source";
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -119,8 +119,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
119
119
|
source_port_id: string;
|
|
120
120
|
subcircuit_id?: string | undefined;
|
|
121
121
|
port_hints?: string[] | undefined;
|
|
122
|
-
pin_number?: number | undefined;
|
|
123
122
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
123
|
+
pin_number?: number | undefined;
|
|
124
124
|
} | {
|
|
125
125
|
type: "source_component";
|
|
126
126
|
name: string;
|
|
@@ -294,6 +294,18 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
294
294
|
display_value?: string | undefined;
|
|
295
295
|
are_pins_interchangeable?: boolean | undefined;
|
|
296
296
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
297
|
+
} | {
|
|
298
|
+
type: "source_component";
|
|
299
|
+
name: string;
|
|
300
|
+
source_component_id: string;
|
|
301
|
+
ftype: "simple_pinout";
|
|
302
|
+
subcircuit_id?: string | undefined;
|
|
303
|
+
source_group_id?: string | undefined;
|
|
304
|
+
manufacturer_part_number?: string | undefined;
|
|
305
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
306
|
+
display_value?: string | undefined;
|
|
307
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
308
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
297
309
|
} | {
|
|
298
310
|
type: "source_component";
|
|
299
311
|
name: string;
|
|
@@ -448,6 +460,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
448
460
|
is_ground?: boolean | undefined;
|
|
449
461
|
is_digital_signal?: boolean | undefined;
|
|
450
462
|
is_analog_signal?: boolean | undefined;
|
|
463
|
+
is_positive_voltage_source?: boolean | undefined;
|
|
451
464
|
} | {
|
|
452
465
|
type: "source_group";
|
|
453
466
|
source_group_id: string;
|
|
@@ -578,6 +591,18 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
578
591
|
display_value?: string | undefined;
|
|
579
592
|
are_pins_interchangeable?: boolean | undefined;
|
|
580
593
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
594
|
+
} | {
|
|
595
|
+
type: "source_component";
|
|
596
|
+
name: string;
|
|
597
|
+
source_component_id: string;
|
|
598
|
+
ftype: "simple_pinout";
|
|
599
|
+
subcircuit_id?: string | undefined;
|
|
600
|
+
source_group_id?: string | undefined;
|
|
601
|
+
manufacturer_part_number?: string | undefined;
|
|
602
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
603
|
+
display_value?: string | undefined;
|
|
604
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
605
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
581
606
|
} | {
|
|
582
607
|
type: "source_component";
|
|
583
608
|
name: string;
|
|
@@ -681,6 +706,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
681
706
|
source_net_id: string;
|
|
682
707
|
source_pcb_ground_plane_id: string;
|
|
683
708
|
subcircuit_id?: string | undefined;
|
|
709
|
+
} | {
|
|
710
|
+
type: "source_manually_placed_via";
|
|
711
|
+
source_group_id: string;
|
|
712
|
+
source_net_id: string;
|
|
713
|
+
source_manually_placed_via_id: string;
|
|
714
|
+
subcircuit_id?: string | undefined;
|
|
715
|
+
source_trace_id?: string | undefined;
|
|
684
716
|
} | {
|
|
685
717
|
type: "source_project_metadata";
|
|
686
718
|
name?: string | undefined;
|
|
@@ -1385,6 +1417,57 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1385
1417
|
spoke_outer_diameter: number;
|
|
1386
1418
|
subcircuit_id?: string | undefined;
|
|
1387
1419
|
pcb_plated_hole_id?: string | undefined;
|
|
1420
|
+
} | {
|
|
1421
|
+
type: "pcb_copper_pour";
|
|
1422
|
+
width: number;
|
|
1423
|
+
height: number;
|
|
1424
|
+
center: {
|
|
1425
|
+
x: number;
|
|
1426
|
+
y: number;
|
|
1427
|
+
};
|
|
1428
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1429
|
+
shape: "rect";
|
|
1430
|
+
pcb_copper_pour_id: string;
|
|
1431
|
+
rotation?: number | undefined;
|
|
1432
|
+
subcircuit_id?: string | undefined;
|
|
1433
|
+
pcb_group_id?: string | undefined;
|
|
1434
|
+
source_net_id?: string | undefined;
|
|
1435
|
+
} | {
|
|
1436
|
+
type: "pcb_copper_pour";
|
|
1437
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1438
|
+
shape: "brep";
|
|
1439
|
+
pcb_copper_pour_id: string;
|
|
1440
|
+
brep_shape: {
|
|
1441
|
+
outer_ring: {
|
|
1442
|
+
vertices: {
|
|
1443
|
+
x: number;
|
|
1444
|
+
y: number;
|
|
1445
|
+
bulge?: number | undefined;
|
|
1446
|
+
}[];
|
|
1447
|
+
};
|
|
1448
|
+
inner_rings: {
|
|
1449
|
+
vertices: {
|
|
1450
|
+
x: number;
|
|
1451
|
+
y: number;
|
|
1452
|
+
bulge?: number | undefined;
|
|
1453
|
+
}[];
|
|
1454
|
+
}[];
|
|
1455
|
+
};
|
|
1456
|
+
subcircuit_id?: string | undefined;
|
|
1457
|
+
pcb_group_id?: string | undefined;
|
|
1458
|
+
source_net_id?: string | undefined;
|
|
1459
|
+
} | {
|
|
1460
|
+
type: "pcb_copper_pour";
|
|
1461
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1462
|
+
shape: "polygon";
|
|
1463
|
+
points: {
|
|
1464
|
+
x: number;
|
|
1465
|
+
y: number;
|
|
1466
|
+
}[];
|
|
1467
|
+
pcb_copper_pour_id: string;
|
|
1468
|
+
subcircuit_id?: string | undefined;
|
|
1469
|
+
pcb_group_id?: string | undefined;
|
|
1470
|
+
source_net_id?: string | undefined;
|
|
1388
1471
|
} | {
|
|
1389
1472
|
x: number;
|
|
1390
1473
|
y: number;
|
|
@@ -1485,7 +1568,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1485
1568
|
has_output_arrow?: boolean | undefined;
|
|
1486
1569
|
} | {
|
|
1487
1570
|
type: "schematic_trace";
|
|
1488
|
-
source_trace_id: string;
|
|
1489
1571
|
schematic_trace_id: string;
|
|
1490
1572
|
junctions: {
|
|
1491
1573
|
x: number;
|
|
@@ -1505,6 +1587,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1505
1587
|
to_schematic_port_id?: string | undefined;
|
|
1506
1588
|
}[];
|
|
1507
1589
|
subcircuit_id?: string | undefined;
|
|
1590
|
+
source_trace_id?: string | undefined;
|
|
1591
|
+
subcircuit_connectivity_map_key?: string | undefined;
|
|
1508
1592
|
} | {
|
|
1509
1593
|
type: "schematic_path";
|
|
1510
1594
|
points: {
|
|
@@ -1676,6 +1760,9 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1676
1760
|
model_obj_url?: string | undefined;
|
|
1677
1761
|
model_stl_url?: string | undefined;
|
|
1678
1762
|
model_3mf_url?: string | undefined;
|
|
1763
|
+
model_gltf_url?: string | undefined;
|
|
1764
|
+
model_glb_url?: string | undefined;
|
|
1765
|
+
model_step_url?: string | undefined;
|
|
1679
1766
|
model_jscad?: any;
|
|
1680
1767
|
} | {
|
|
1681
1768
|
type: "simulation_voltage_source";
|
|
@@ -1722,8 +1809,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
1722
1809
|
source_port_id: string;
|
|
1723
1810
|
subcircuit_id?: string | undefined;
|
|
1724
1811
|
port_hints?: string[] | undefined;
|
|
1725
|
-
pin_number?: number | undefined;
|
|
1726
1812
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
1813
|
+
pin_number?: number | undefined;
|
|
1727
1814
|
} | {
|
|
1728
1815
|
type: "source_component";
|
|
1729
1816
|
name: string;
|
|
@@ -1897,6 +1984,18 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
1897
1984
|
display_value?: string | undefined;
|
|
1898
1985
|
are_pins_interchangeable?: boolean | undefined;
|
|
1899
1986
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
1987
|
+
} | {
|
|
1988
|
+
type: "source_component";
|
|
1989
|
+
name: string;
|
|
1990
|
+
source_component_id: string;
|
|
1991
|
+
ftype: "simple_pinout";
|
|
1992
|
+
subcircuit_id?: string | undefined;
|
|
1993
|
+
source_group_id?: string | undefined;
|
|
1994
|
+
manufacturer_part_number?: string | undefined;
|
|
1995
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
1996
|
+
display_value?: string | undefined;
|
|
1997
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
1998
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
1900
1999
|
} | {
|
|
1901
2000
|
type: "source_component";
|
|
1902
2001
|
name: string;
|
|
@@ -2051,6 +2150,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2051
2150
|
is_ground?: boolean | undefined;
|
|
2052
2151
|
is_digital_signal?: boolean | undefined;
|
|
2053
2152
|
is_analog_signal?: boolean | undefined;
|
|
2153
|
+
is_positive_voltage_source?: boolean | undefined;
|
|
2054
2154
|
} | {
|
|
2055
2155
|
type: "source_group";
|
|
2056
2156
|
source_group_id: string;
|
|
@@ -2181,6 +2281,18 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2181
2281
|
display_value?: string | undefined;
|
|
2182
2282
|
are_pins_interchangeable?: boolean | undefined;
|
|
2183
2283
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
2284
|
+
} | {
|
|
2285
|
+
type: "source_component";
|
|
2286
|
+
name: string;
|
|
2287
|
+
source_component_id: string;
|
|
2288
|
+
ftype: "simple_pinout";
|
|
2289
|
+
subcircuit_id?: string | undefined;
|
|
2290
|
+
source_group_id?: string | undefined;
|
|
2291
|
+
manufacturer_part_number?: string | undefined;
|
|
2292
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
2293
|
+
display_value?: string | undefined;
|
|
2294
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
2295
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
2184
2296
|
} | {
|
|
2185
2297
|
type: "source_component";
|
|
2186
2298
|
name: string;
|
|
@@ -2284,6 +2396,13 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2284
2396
|
source_net_id: string;
|
|
2285
2397
|
source_pcb_ground_plane_id: string;
|
|
2286
2398
|
subcircuit_id?: string | undefined;
|
|
2399
|
+
} | {
|
|
2400
|
+
type: "source_manually_placed_via";
|
|
2401
|
+
source_group_id: string;
|
|
2402
|
+
source_net_id: string;
|
|
2403
|
+
source_manually_placed_via_id: string;
|
|
2404
|
+
subcircuit_id?: string | undefined;
|
|
2405
|
+
source_trace_id?: string | undefined;
|
|
2287
2406
|
} | {
|
|
2288
2407
|
type: "source_project_metadata";
|
|
2289
2408
|
name?: string | undefined;
|
|
@@ -2988,6 +3107,57 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2988
3107
|
spoke_outer_diameter: number;
|
|
2989
3108
|
subcircuit_id?: string | undefined;
|
|
2990
3109
|
pcb_plated_hole_id?: string | undefined;
|
|
3110
|
+
} | {
|
|
3111
|
+
type: "pcb_copper_pour";
|
|
3112
|
+
width: number;
|
|
3113
|
+
height: number;
|
|
3114
|
+
center: {
|
|
3115
|
+
x: number;
|
|
3116
|
+
y: number;
|
|
3117
|
+
};
|
|
3118
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3119
|
+
shape: "rect";
|
|
3120
|
+
pcb_copper_pour_id: string;
|
|
3121
|
+
rotation?: number | undefined;
|
|
3122
|
+
subcircuit_id?: string | undefined;
|
|
3123
|
+
pcb_group_id?: string | undefined;
|
|
3124
|
+
source_net_id?: string | undefined;
|
|
3125
|
+
} | {
|
|
3126
|
+
type: "pcb_copper_pour";
|
|
3127
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3128
|
+
shape: "brep";
|
|
3129
|
+
pcb_copper_pour_id: string;
|
|
3130
|
+
brep_shape: {
|
|
3131
|
+
outer_ring: {
|
|
3132
|
+
vertices: {
|
|
3133
|
+
x: number;
|
|
3134
|
+
y: number;
|
|
3135
|
+
bulge?: number | undefined;
|
|
3136
|
+
}[];
|
|
3137
|
+
};
|
|
3138
|
+
inner_rings: {
|
|
3139
|
+
vertices: {
|
|
3140
|
+
x: number;
|
|
3141
|
+
y: number;
|
|
3142
|
+
bulge?: number | undefined;
|
|
3143
|
+
}[];
|
|
3144
|
+
}[];
|
|
3145
|
+
};
|
|
3146
|
+
subcircuit_id?: string | undefined;
|
|
3147
|
+
pcb_group_id?: string | undefined;
|
|
3148
|
+
source_net_id?: string | undefined;
|
|
3149
|
+
} | {
|
|
3150
|
+
type: "pcb_copper_pour";
|
|
3151
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3152
|
+
shape: "polygon";
|
|
3153
|
+
points: {
|
|
3154
|
+
x: number;
|
|
3155
|
+
y: number;
|
|
3156
|
+
}[];
|
|
3157
|
+
pcb_copper_pour_id: string;
|
|
3158
|
+
subcircuit_id?: string | undefined;
|
|
3159
|
+
pcb_group_id?: string | undefined;
|
|
3160
|
+
source_net_id?: string | undefined;
|
|
2991
3161
|
} | {
|
|
2992
3162
|
x: number;
|
|
2993
3163
|
y: number;
|
|
@@ -3088,7 +3258,6 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3088
3258
|
has_output_arrow?: boolean | undefined;
|
|
3089
3259
|
} | {
|
|
3090
3260
|
type: "schematic_trace";
|
|
3091
|
-
source_trace_id: string;
|
|
3092
3261
|
schematic_trace_id: string;
|
|
3093
3262
|
junctions: {
|
|
3094
3263
|
x: number;
|
|
@@ -3108,6 +3277,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3108
3277
|
to_schematic_port_id?: string | undefined;
|
|
3109
3278
|
}[];
|
|
3110
3279
|
subcircuit_id?: string | undefined;
|
|
3280
|
+
source_trace_id?: string | undefined;
|
|
3281
|
+
subcircuit_connectivity_map_key?: string | undefined;
|
|
3111
3282
|
} | {
|
|
3112
3283
|
type: "schematic_path";
|
|
3113
3284
|
points: {
|
|
@@ -3279,6 +3450,9 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3279
3450
|
model_obj_url?: string | undefined;
|
|
3280
3451
|
model_stl_url?: string | undefined;
|
|
3281
3452
|
model_3mf_url?: string | undefined;
|
|
3453
|
+
model_gltf_url?: string | undefined;
|
|
3454
|
+
model_glb_url?: string | undefined;
|
|
3455
|
+
model_step_url?: string | undefined;
|
|
3282
3456
|
model_jscad?: any;
|
|
3283
3457
|
} | {
|
|
3284
3458
|
type: "simulation_voltage_source";
|