@tscircuit/eval 0.0.314 → 0.0.315
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 +62 -2
- package/dist/lib/index.d.ts +62 -2
- package/dist/webworker/entrypoint.js +303 -303
- package/package.json +4 -4
package/dist/eval/index.d.ts
CHANGED
|
@@ -768,6 +768,16 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
768
768
|
pcb_missing_footprint_error_id: string;
|
|
769
769
|
subcircuit_id?: string | undefined;
|
|
770
770
|
pcb_group_id?: string | undefined;
|
|
771
|
+
} | {
|
|
772
|
+
message: string;
|
|
773
|
+
type: "external_footprint_load_error";
|
|
774
|
+
pcb_component_id: string;
|
|
775
|
+
source_component_id: string;
|
|
776
|
+
error_type: "external_footprint_load_error";
|
|
777
|
+
external_footprint_load_error_id: string;
|
|
778
|
+
subcircuit_id?: string | undefined;
|
|
779
|
+
pcb_group_id?: string | undefined;
|
|
780
|
+
footprinter_string?: string | undefined;
|
|
771
781
|
} | {
|
|
772
782
|
message: string;
|
|
773
783
|
type: "pcb_manual_edit_conflict_warning";
|
|
@@ -1458,6 +1468,25 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1458
1468
|
subcircuit_id?: string | undefined;
|
|
1459
1469
|
pcb_group_id?: string | undefined;
|
|
1460
1470
|
source_net_id?: string | undefined;
|
|
1471
|
+
} | {
|
|
1472
|
+
message: string;
|
|
1473
|
+
type: "pcb_component_outside_board_error";
|
|
1474
|
+
pcb_component_id: string;
|
|
1475
|
+
error_type: "pcb_component_outside_board_error";
|
|
1476
|
+
pcb_board_id: string;
|
|
1477
|
+
pcb_component_outside_board_error_id: string;
|
|
1478
|
+
component_center: {
|
|
1479
|
+
x: number;
|
|
1480
|
+
y: number;
|
|
1481
|
+
};
|
|
1482
|
+
component_bounds: {
|
|
1483
|
+
min_x: number;
|
|
1484
|
+
max_x: number;
|
|
1485
|
+
min_y: number;
|
|
1486
|
+
max_y: number;
|
|
1487
|
+
};
|
|
1488
|
+
source_component_id?: string | undefined;
|
|
1489
|
+
subcircuit_id?: string | undefined;
|
|
1461
1490
|
} | {
|
|
1462
1491
|
x: number;
|
|
1463
1492
|
y: number;
|
|
@@ -1741,12 +1770,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1741
1770
|
z: number;
|
|
1742
1771
|
} | undefined;
|
|
1743
1772
|
subcircuit_id?: string | undefined;
|
|
1773
|
+
footprinter_string?: string | undefined;
|
|
1744
1774
|
size?: {
|
|
1745
1775
|
x: number;
|
|
1746
1776
|
y: number;
|
|
1747
1777
|
z: number;
|
|
1748
1778
|
} | undefined;
|
|
1749
|
-
footprinter_string?: string | undefined;
|
|
1750
1779
|
model_obj_url?: string | undefined;
|
|
1751
1780
|
model_stl_url?: string | undefined;
|
|
1752
1781
|
model_3mf_url?: string | undefined;
|
|
@@ -1754,6 +1783,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1754
1783
|
model_glb_url?: string | undefined;
|
|
1755
1784
|
model_step_url?: string | undefined;
|
|
1756
1785
|
model_wrl_url?: string | undefined;
|
|
1786
|
+
model_unit_to_mm_scale_factor?: number | undefined;
|
|
1757
1787
|
model_jscad?: any;
|
|
1758
1788
|
} | {
|
|
1759
1789
|
type: "simulation_voltage_source";
|
|
@@ -2459,6 +2489,16 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2459
2489
|
pcb_missing_footprint_error_id: string;
|
|
2460
2490
|
subcircuit_id?: string | undefined;
|
|
2461
2491
|
pcb_group_id?: string | undefined;
|
|
2492
|
+
} | {
|
|
2493
|
+
message: string;
|
|
2494
|
+
type: "external_footprint_load_error";
|
|
2495
|
+
pcb_component_id: string;
|
|
2496
|
+
source_component_id: string;
|
|
2497
|
+
error_type: "external_footprint_load_error";
|
|
2498
|
+
external_footprint_load_error_id: string;
|
|
2499
|
+
subcircuit_id?: string | undefined;
|
|
2500
|
+
pcb_group_id?: string | undefined;
|
|
2501
|
+
footprinter_string?: string | undefined;
|
|
2462
2502
|
} | {
|
|
2463
2503
|
message: string;
|
|
2464
2504
|
type: "pcb_manual_edit_conflict_warning";
|
|
@@ -3149,6 +3189,25 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3149
3189
|
subcircuit_id?: string | undefined;
|
|
3150
3190
|
pcb_group_id?: string | undefined;
|
|
3151
3191
|
source_net_id?: string | undefined;
|
|
3192
|
+
} | {
|
|
3193
|
+
message: string;
|
|
3194
|
+
type: "pcb_component_outside_board_error";
|
|
3195
|
+
pcb_component_id: string;
|
|
3196
|
+
error_type: "pcb_component_outside_board_error";
|
|
3197
|
+
pcb_board_id: string;
|
|
3198
|
+
pcb_component_outside_board_error_id: string;
|
|
3199
|
+
component_center: {
|
|
3200
|
+
x: number;
|
|
3201
|
+
y: number;
|
|
3202
|
+
};
|
|
3203
|
+
component_bounds: {
|
|
3204
|
+
min_x: number;
|
|
3205
|
+
max_x: number;
|
|
3206
|
+
min_y: number;
|
|
3207
|
+
max_y: number;
|
|
3208
|
+
};
|
|
3209
|
+
source_component_id?: string | undefined;
|
|
3210
|
+
subcircuit_id?: string | undefined;
|
|
3152
3211
|
} | {
|
|
3153
3212
|
x: number;
|
|
3154
3213
|
y: number;
|
|
@@ -3432,12 +3491,12 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3432
3491
|
z: number;
|
|
3433
3492
|
} | undefined;
|
|
3434
3493
|
subcircuit_id?: string | undefined;
|
|
3494
|
+
footprinter_string?: string | undefined;
|
|
3435
3495
|
size?: {
|
|
3436
3496
|
x: number;
|
|
3437
3497
|
y: number;
|
|
3438
3498
|
z: number;
|
|
3439
3499
|
} | undefined;
|
|
3440
|
-
footprinter_string?: string | undefined;
|
|
3441
3500
|
model_obj_url?: string | undefined;
|
|
3442
3501
|
model_stl_url?: string | undefined;
|
|
3443
3502
|
model_3mf_url?: string | undefined;
|
|
@@ -3445,6 +3504,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3445
3504
|
model_glb_url?: string | undefined;
|
|
3446
3505
|
model_step_url?: string | undefined;
|
|
3447
3506
|
model_wrl_url?: string | undefined;
|
|
3507
|
+
model_unit_to_mm_scale_factor?: number | undefined;
|
|
3448
3508
|
model_jscad?: any;
|
|
3449
3509
|
} | {
|
|
3450
3510
|
type: "simulation_voltage_source";
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -784,6 +784,16 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
784
784
|
pcb_missing_footprint_error_id: string;
|
|
785
785
|
subcircuit_id?: string | undefined;
|
|
786
786
|
pcb_group_id?: string | undefined;
|
|
787
|
+
} | {
|
|
788
|
+
message: string;
|
|
789
|
+
type: "external_footprint_load_error";
|
|
790
|
+
pcb_component_id: string;
|
|
791
|
+
source_component_id: string;
|
|
792
|
+
error_type: "external_footprint_load_error";
|
|
793
|
+
external_footprint_load_error_id: string;
|
|
794
|
+
subcircuit_id?: string | undefined;
|
|
795
|
+
pcb_group_id?: string | undefined;
|
|
796
|
+
footprinter_string?: string | undefined;
|
|
787
797
|
} | {
|
|
788
798
|
message: string;
|
|
789
799
|
type: "pcb_manual_edit_conflict_warning";
|
|
@@ -1474,6 +1484,25 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1474
1484
|
subcircuit_id?: string | undefined;
|
|
1475
1485
|
pcb_group_id?: string | undefined;
|
|
1476
1486
|
source_net_id?: string | undefined;
|
|
1487
|
+
} | {
|
|
1488
|
+
message: string;
|
|
1489
|
+
type: "pcb_component_outside_board_error";
|
|
1490
|
+
pcb_component_id: string;
|
|
1491
|
+
error_type: "pcb_component_outside_board_error";
|
|
1492
|
+
pcb_board_id: string;
|
|
1493
|
+
pcb_component_outside_board_error_id: string;
|
|
1494
|
+
component_center: {
|
|
1495
|
+
x: number;
|
|
1496
|
+
y: number;
|
|
1497
|
+
};
|
|
1498
|
+
component_bounds: {
|
|
1499
|
+
min_x: number;
|
|
1500
|
+
max_x: number;
|
|
1501
|
+
min_y: number;
|
|
1502
|
+
max_y: number;
|
|
1503
|
+
};
|
|
1504
|
+
source_component_id?: string | undefined;
|
|
1505
|
+
subcircuit_id?: string | undefined;
|
|
1477
1506
|
} | {
|
|
1478
1507
|
x: number;
|
|
1479
1508
|
y: number;
|
|
@@ -1757,12 +1786,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1757
1786
|
z: number;
|
|
1758
1787
|
} | undefined;
|
|
1759
1788
|
subcircuit_id?: string | undefined;
|
|
1789
|
+
footprinter_string?: string | undefined;
|
|
1760
1790
|
size?: {
|
|
1761
1791
|
x: number;
|
|
1762
1792
|
y: number;
|
|
1763
1793
|
z: number;
|
|
1764
1794
|
} | undefined;
|
|
1765
|
-
footprinter_string?: string | undefined;
|
|
1766
1795
|
model_obj_url?: string | undefined;
|
|
1767
1796
|
model_stl_url?: string | undefined;
|
|
1768
1797
|
model_3mf_url?: string | undefined;
|
|
@@ -1770,6 +1799,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1770
1799
|
model_glb_url?: string | undefined;
|
|
1771
1800
|
model_step_url?: string | undefined;
|
|
1772
1801
|
model_wrl_url?: string | undefined;
|
|
1802
|
+
model_unit_to_mm_scale_factor?: number | undefined;
|
|
1773
1803
|
model_jscad?: any;
|
|
1774
1804
|
} | {
|
|
1775
1805
|
type: "simulation_voltage_source";
|
|
@@ -2475,6 +2505,16 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2475
2505
|
pcb_missing_footprint_error_id: string;
|
|
2476
2506
|
subcircuit_id?: string | undefined;
|
|
2477
2507
|
pcb_group_id?: string | undefined;
|
|
2508
|
+
} | {
|
|
2509
|
+
message: string;
|
|
2510
|
+
type: "external_footprint_load_error";
|
|
2511
|
+
pcb_component_id: string;
|
|
2512
|
+
source_component_id: string;
|
|
2513
|
+
error_type: "external_footprint_load_error";
|
|
2514
|
+
external_footprint_load_error_id: string;
|
|
2515
|
+
subcircuit_id?: string | undefined;
|
|
2516
|
+
pcb_group_id?: string | undefined;
|
|
2517
|
+
footprinter_string?: string | undefined;
|
|
2478
2518
|
} | {
|
|
2479
2519
|
message: string;
|
|
2480
2520
|
type: "pcb_manual_edit_conflict_warning";
|
|
@@ -3165,6 +3205,25 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3165
3205
|
subcircuit_id?: string | undefined;
|
|
3166
3206
|
pcb_group_id?: string | undefined;
|
|
3167
3207
|
source_net_id?: string | undefined;
|
|
3208
|
+
} | {
|
|
3209
|
+
message: string;
|
|
3210
|
+
type: "pcb_component_outside_board_error";
|
|
3211
|
+
pcb_component_id: string;
|
|
3212
|
+
error_type: "pcb_component_outside_board_error";
|
|
3213
|
+
pcb_board_id: string;
|
|
3214
|
+
pcb_component_outside_board_error_id: string;
|
|
3215
|
+
component_center: {
|
|
3216
|
+
x: number;
|
|
3217
|
+
y: number;
|
|
3218
|
+
};
|
|
3219
|
+
component_bounds: {
|
|
3220
|
+
min_x: number;
|
|
3221
|
+
max_x: number;
|
|
3222
|
+
min_y: number;
|
|
3223
|
+
max_y: number;
|
|
3224
|
+
};
|
|
3225
|
+
source_component_id?: string | undefined;
|
|
3226
|
+
subcircuit_id?: string | undefined;
|
|
3168
3227
|
} | {
|
|
3169
3228
|
x: number;
|
|
3170
3229
|
y: number;
|
|
@@ -3448,12 +3507,12 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3448
3507
|
z: number;
|
|
3449
3508
|
} | undefined;
|
|
3450
3509
|
subcircuit_id?: string | undefined;
|
|
3510
|
+
footprinter_string?: string | undefined;
|
|
3451
3511
|
size?: {
|
|
3452
3512
|
x: number;
|
|
3453
3513
|
y: number;
|
|
3454
3514
|
z: number;
|
|
3455
3515
|
} | undefined;
|
|
3456
|
-
footprinter_string?: string | undefined;
|
|
3457
3516
|
model_obj_url?: string | undefined;
|
|
3458
3517
|
model_stl_url?: string | undefined;
|
|
3459
3518
|
model_3mf_url?: string | undefined;
|
|
@@ -3461,6 +3520,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3461
3520
|
model_glb_url?: string | undefined;
|
|
3462
3521
|
model_step_url?: string | undefined;
|
|
3463
3522
|
model_wrl_url?: string | undefined;
|
|
3523
|
+
model_unit_to_mm_scale_factor?: number | undefined;
|
|
3464
3524
|
model_jscad?: any;
|
|
3465
3525
|
} | {
|
|
3466
3526
|
type: "simulation_voltage_source";
|