@tscircuit/eval 0.0.380 → 0.0.382
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 +210 -16
- package/dist/lib/index.d.ts +210 -16
- package/dist/webworker/entrypoint.js +121 -121
- package/package.json +6 -6
package/dist/eval/index.d.ts
CHANGED
|
@@ -773,6 +773,27 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
773
773
|
hole_height: number;
|
|
774
774
|
subcircuit_id?: string | undefined;
|
|
775
775
|
pcb_group_id?: string | undefined;
|
|
776
|
+
} | {
|
|
777
|
+
x: number;
|
|
778
|
+
y: number;
|
|
779
|
+
type: "pcb_hole";
|
|
780
|
+
pcb_hole_id: string;
|
|
781
|
+
hole_shape: "pill";
|
|
782
|
+
hole_width: number;
|
|
783
|
+
hole_height: number;
|
|
784
|
+
subcircuit_id?: string | undefined;
|
|
785
|
+
pcb_group_id?: string | undefined;
|
|
786
|
+
} | {
|
|
787
|
+
x: number;
|
|
788
|
+
y: number;
|
|
789
|
+
type: "pcb_hole";
|
|
790
|
+
pcb_hole_id: string;
|
|
791
|
+
hole_shape: "rotated_pill";
|
|
792
|
+
hole_width: number;
|
|
793
|
+
hole_height: number;
|
|
794
|
+
ccw_rotation: number;
|
|
795
|
+
subcircuit_id?: string | undefined;
|
|
796
|
+
pcb_group_id?: string | undefined;
|
|
776
797
|
} | {
|
|
777
798
|
message: string;
|
|
778
799
|
type: "pcb_missing_footprint_error";
|
|
@@ -830,12 +851,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
830
851
|
type: "pcb_plated_hole";
|
|
831
852
|
hole_width: number;
|
|
832
853
|
hole_height: number;
|
|
854
|
+
ccw_rotation: number;
|
|
833
855
|
shape: "oval" | "pill";
|
|
834
856
|
layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
|
|
835
857
|
pcb_plated_hole_id: string;
|
|
836
858
|
outer_width: number;
|
|
837
859
|
outer_height: number;
|
|
838
|
-
ccw_rotation: number;
|
|
839
860
|
pcb_component_id?: string | undefined;
|
|
840
861
|
subcircuit_id?: string | undefined;
|
|
841
862
|
pcb_group_id?: string | undefined;
|
|
@@ -1042,8 +1063,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1042
1063
|
width: number;
|
|
1043
1064
|
height: number;
|
|
1044
1065
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1045
|
-
shape: "rotated_rect";
|
|
1046
1066
|
ccw_rotation: number;
|
|
1067
|
+
shape: "rotated_rect";
|
|
1047
1068
|
pcb_smtpad_id: string;
|
|
1048
1069
|
pcb_component_id?: string | undefined;
|
|
1049
1070
|
subcircuit_id?: string | undefined;
|
|
@@ -1059,8 +1080,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1059
1080
|
width: number;
|
|
1060
1081
|
height: number;
|
|
1061
1082
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1062
|
-
shape: "rotated_pill";
|
|
1063
1083
|
ccw_rotation: number;
|
|
1084
|
+
shape: "rotated_pill";
|
|
1064
1085
|
pcb_smtpad_id: string;
|
|
1065
1086
|
radius: number;
|
|
1066
1087
|
pcb_component_id?: string | undefined;
|
|
@@ -1146,8 +1167,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1146
1167
|
width: number;
|
|
1147
1168
|
height: number;
|
|
1148
1169
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1149
|
-
shape: "rotated_rect";
|
|
1150
1170
|
ccw_rotation: number;
|
|
1171
|
+
shape: "rotated_rect";
|
|
1151
1172
|
pcb_solder_paste_id: string;
|
|
1152
1173
|
pcb_component_id?: string | undefined;
|
|
1153
1174
|
subcircuit_id?: string | undefined;
|
|
@@ -1415,6 +1436,82 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1415
1436
|
has_stroke?: boolean | undefined;
|
|
1416
1437
|
is_stroke_dashed?: boolean | undefined;
|
|
1417
1438
|
color?: string | undefined;
|
|
1439
|
+
} | {
|
|
1440
|
+
type: "pcb_note_text";
|
|
1441
|
+
text: string;
|
|
1442
|
+
font: "tscircuit2024";
|
|
1443
|
+
font_size: number;
|
|
1444
|
+
anchor_position: {
|
|
1445
|
+
x: number;
|
|
1446
|
+
y: number;
|
|
1447
|
+
};
|
|
1448
|
+
anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
1449
|
+
pcb_note_text_id: string;
|
|
1450
|
+
pcb_component_id?: string | undefined;
|
|
1451
|
+
subcircuit_id?: string | undefined;
|
|
1452
|
+
pcb_group_id?: string | undefined;
|
|
1453
|
+
color?: string | undefined;
|
|
1454
|
+
} | {
|
|
1455
|
+
type: "pcb_note_rect";
|
|
1456
|
+
width: number;
|
|
1457
|
+
height: number;
|
|
1458
|
+
center: {
|
|
1459
|
+
x: number;
|
|
1460
|
+
y: number;
|
|
1461
|
+
};
|
|
1462
|
+
stroke_width: number;
|
|
1463
|
+
pcb_note_rect_id: string;
|
|
1464
|
+
pcb_component_id?: string | undefined;
|
|
1465
|
+
subcircuit_id?: string | undefined;
|
|
1466
|
+
pcb_group_id?: string | undefined;
|
|
1467
|
+
is_filled?: boolean | undefined;
|
|
1468
|
+
has_stroke?: boolean | undefined;
|
|
1469
|
+
is_stroke_dashed?: boolean | undefined;
|
|
1470
|
+
color?: string | undefined;
|
|
1471
|
+
} | {
|
|
1472
|
+
type: "pcb_note_path";
|
|
1473
|
+
route: {
|
|
1474
|
+
x: number;
|
|
1475
|
+
y: number;
|
|
1476
|
+
}[];
|
|
1477
|
+
stroke_width: number;
|
|
1478
|
+
pcb_note_path_id: string;
|
|
1479
|
+
pcb_component_id?: string | undefined;
|
|
1480
|
+
subcircuit_id?: string | undefined;
|
|
1481
|
+
pcb_group_id?: string | undefined;
|
|
1482
|
+
color?: string | undefined;
|
|
1483
|
+
} | {
|
|
1484
|
+
type: "pcb_note_line";
|
|
1485
|
+
stroke_width: number;
|
|
1486
|
+
x1: number;
|
|
1487
|
+
y1: number;
|
|
1488
|
+
x2: number;
|
|
1489
|
+
y2: number;
|
|
1490
|
+
pcb_note_line_id: string;
|
|
1491
|
+
pcb_component_id?: string | undefined;
|
|
1492
|
+
subcircuit_id?: string | undefined;
|
|
1493
|
+
pcb_group_id?: string | undefined;
|
|
1494
|
+
color?: string | undefined;
|
|
1495
|
+
is_dashed?: boolean | undefined;
|
|
1496
|
+
} | {
|
|
1497
|
+
type: "pcb_note_dimension";
|
|
1498
|
+
font: "tscircuit2024";
|
|
1499
|
+
font_size: number;
|
|
1500
|
+
pcb_note_dimension_id: string;
|
|
1501
|
+
from: {
|
|
1502
|
+
x: number;
|
|
1503
|
+
y: number;
|
|
1504
|
+
};
|
|
1505
|
+
to: {
|
|
1506
|
+
x: number;
|
|
1507
|
+
y: number;
|
|
1508
|
+
};
|
|
1509
|
+
arrow_size: number;
|
|
1510
|
+
pcb_component_id?: string | undefined;
|
|
1511
|
+
subcircuit_id?: string | undefined;
|
|
1512
|
+
pcb_group_id?: string | undefined;
|
|
1513
|
+
text?: string | undefined;
|
|
1514
|
+
color?: string | undefined;
|
|
1418
1515
|
} | {
|
|
1419
1516
|
message: string;
|
|
1420
1517
|
type: "pcb_autorouting_error";
|
|
@@ -1636,8 +1733,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1636
1733
|
x2: number;
|
|
1637
1734
|
y2: number;
|
|
1638
1735
|
color: string;
|
|
1639
|
-
schematic_component_id: string;
|
|
1640
1736
|
is_dashed: boolean;
|
|
1737
|
+
schematic_component_id: string;
|
|
1641
1738
|
schematic_line_id: string;
|
|
1642
1739
|
subcircuit_id?: string | undefined;
|
|
1643
1740
|
stroke_width?: number | null | undefined;
|
|
@@ -1652,8 +1749,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1652
1749
|
rotation: number;
|
|
1653
1750
|
is_filled: boolean;
|
|
1654
1751
|
color: string;
|
|
1655
|
-
schematic_component_id: string;
|
|
1656
1752
|
is_dashed: boolean;
|
|
1753
|
+
schematic_component_id: string;
|
|
1657
1754
|
schematic_rect_id: string;
|
|
1658
1755
|
subcircuit_id?: string | undefined;
|
|
1659
1756
|
stroke_width?: number | null | undefined;
|
|
@@ -1667,8 +1764,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1667
1764
|
radius: number;
|
|
1668
1765
|
is_filled: boolean;
|
|
1669
1766
|
color: string;
|
|
1670
|
-
schematic_component_id: string;
|
|
1671
1767
|
is_dashed: boolean;
|
|
1768
|
+
schematic_component_id: string;
|
|
1672
1769
|
schematic_circle_id: string;
|
|
1673
1770
|
subcircuit_id?: string | undefined;
|
|
1674
1771
|
stroke_width?: number | null | undefined;
|
|
@@ -1681,8 +1778,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1681
1778
|
};
|
|
1682
1779
|
radius: number;
|
|
1683
1780
|
color: string;
|
|
1684
|
-
schematic_component_id: string;
|
|
1685
1781
|
is_dashed: boolean;
|
|
1782
|
+
schematic_component_id: string;
|
|
1686
1783
|
direction: "clockwise" | "counterclockwise";
|
|
1687
1784
|
schematic_arc_id: string;
|
|
1688
1785
|
start_angle_degrees: number;
|
|
@@ -2699,6 +2796,27 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2699
2796
|
hole_height: number;
|
|
2700
2797
|
subcircuit_id?: string | undefined;
|
|
2701
2798
|
pcb_group_id?: string | undefined;
|
|
2799
|
+
} | {
|
|
2800
|
+
x: number;
|
|
2801
|
+
y: number;
|
|
2802
|
+
type: "pcb_hole";
|
|
2803
|
+
pcb_hole_id: string;
|
|
2804
|
+
hole_shape: "pill";
|
|
2805
|
+
hole_width: number;
|
|
2806
|
+
hole_height: number;
|
|
2807
|
+
subcircuit_id?: string | undefined;
|
|
2808
|
+
pcb_group_id?: string | undefined;
|
|
2809
|
+
} | {
|
|
2810
|
+
x: number;
|
|
2811
|
+
y: number;
|
|
2812
|
+
type: "pcb_hole";
|
|
2813
|
+
pcb_hole_id: string;
|
|
2814
|
+
hole_shape: "rotated_pill";
|
|
2815
|
+
hole_width: number;
|
|
2816
|
+
hole_height: number;
|
|
2817
|
+
ccw_rotation: number;
|
|
2818
|
+
subcircuit_id?: string | undefined;
|
|
2819
|
+
pcb_group_id?: string | undefined;
|
|
2702
2820
|
} | {
|
|
2703
2821
|
message: string;
|
|
2704
2822
|
type: "pcb_missing_footprint_error";
|
|
@@ -2756,12 +2874,12 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2756
2874
|
type: "pcb_plated_hole";
|
|
2757
2875
|
hole_width: number;
|
|
2758
2876
|
hole_height: number;
|
|
2877
|
+
ccw_rotation: number;
|
|
2759
2878
|
shape: "oval" | "pill";
|
|
2760
2879
|
layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
|
|
2761
2880
|
pcb_plated_hole_id: string;
|
|
2762
2881
|
outer_width: number;
|
|
2763
2882
|
outer_height: number;
|
|
2764
|
-
ccw_rotation: number;
|
|
2765
2883
|
pcb_component_id?: string | undefined;
|
|
2766
2884
|
subcircuit_id?: string | undefined;
|
|
2767
2885
|
pcb_group_id?: string | undefined;
|
|
@@ -2968,8 +3086,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2968
3086
|
width: number;
|
|
2969
3087
|
height: number;
|
|
2970
3088
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2971
|
-
shape: "rotated_rect";
|
|
2972
3089
|
ccw_rotation: number;
|
|
3090
|
+
shape: "rotated_rect";
|
|
2973
3091
|
pcb_smtpad_id: string;
|
|
2974
3092
|
pcb_component_id?: string | undefined;
|
|
2975
3093
|
subcircuit_id?: string | undefined;
|
|
@@ -2985,8 +3103,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2985
3103
|
width: number;
|
|
2986
3104
|
height: number;
|
|
2987
3105
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2988
|
-
shape: "rotated_pill";
|
|
2989
3106
|
ccw_rotation: number;
|
|
3107
|
+
shape: "rotated_pill";
|
|
2990
3108
|
pcb_smtpad_id: string;
|
|
2991
3109
|
radius: number;
|
|
2992
3110
|
pcb_component_id?: string | undefined;
|
|
@@ -3072,8 +3190,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3072
3190
|
width: number;
|
|
3073
3191
|
height: number;
|
|
3074
3192
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3075
|
-
shape: "rotated_rect";
|
|
3076
3193
|
ccw_rotation: number;
|
|
3194
|
+
shape: "rotated_rect";
|
|
3077
3195
|
pcb_solder_paste_id: string;
|
|
3078
3196
|
pcb_component_id?: string | undefined;
|
|
3079
3197
|
subcircuit_id?: string | undefined;
|
|
@@ -3341,6 +3459,82 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3341
3459
|
has_stroke?: boolean | undefined;
|
|
3342
3460
|
is_stroke_dashed?: boolean | undefined;
|
|
3343
3461
|
color?: string | undefined;
|
|
3462
|
+
} | {
|
|
3463
|
+
type: "pcb_note_text";
|
|
3464
|
+
text: string;
|
|
3465
|
+
font: "tscircuit2024";
|
|
3466
|
+
font_size: number;
|
|
3467
|
+
anchor_position: {
|
|
3468
|
+
x: number;
|
|
3469
|
+
y: number;
|
|
3470
|
+
};
|
|
3471
|
+
anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
3472
|
+
pcb_note_text_id: string;
|
|
3473
|
+
pcb_component_id?: string | undefined;
|
|
3474
|
+
subcircuit_id?: string | undefined;
|
|
3475
|
+
pcb_group_id?: string | undefined;
|
|
3476
|
+
color?: string | undefined;
|
|
3477
|
+
} | {
|
|
3478
|
+
type: "pcb_note_rect";
|
|
3479
|
+
width: number;
|
|
3480
|
+
height: number;
|
|
3481
|
+
center: {
|
|
3482
|
+
x: number;
|
|
3483
|
+
y: number;
|
|
3484
|
+
};
|
|
3485
|
+
stroke_width: number;
|
|
3486
|
+
pcb_note_rect_id: string;
|
|
3487
|
+
pcb_component_id?: string | undefined;
|
|
3488
|
+
subcircuit_id?: string | undefined;
|
|
3489
|
+
pcb_group_id?: string | undefined;
|
|
3490
|
+
is_filled?: boolean | undefined;
|
|
3491
|
+
has_stroke?: boolean | undefined;
|
|
3492
|
+
is_stroke_dashed?: boolean | undefined;
|
|
3493
|
+
color?: string | undefined;
|
|
3494
|
+
} | {
|
|
3495
|
+
type: "pcb_note_path";
|
|
3496
|
+
route: {
|
|
3497
|
+
x: number;
|
|
3498
|
+
y: number;
|
|
3499
|
+
}[];
|
|
3500
|
+
stroke_width: number;
|
|
3501
|
+
pcb_note_path_id: string;
|
|
3502
|
+
pcb_component_id?: string | undefined;
|
|
3503
|
+
subcircuit_id?: string | undefined;
|
|
3504
|
+
pcb_group_id?: string | undefined;
|
|
3505
|
+
color?: string | undefined;
|
|
3506
|
+
} | {
|
|
3507
|
+
type: "pcb_note_line";
|
|
3508
|
+
stroke_width: number;
|
|
3509
|
+
x1: number;
|
|
3510
|
+
y1: number;
|
|
3511
|
+
x2: number;
|
|
3512
|
+
y2: number;
|
|
3513
|
+
pcb_note_line_id: string;
|
|
3514
|
+
pcb_component_id?: string | undefined;
|
|
3515
|
+
subcircuit_id?: string | undefined;
|
|
3516
|
+
pcb_group_id?: string | undefined;
|
|
3517
|
+
color?: string | undefined;
|
|
3518
|
+
is_dashed?: boolean | undefined;
|
|
3519
|
+
} | {
|
|
3520
|
+
type: "pcb_note_dimension";
|
|
3521
|
+
font: "tscircuit2024";
|
|
3522
|
+
font_size: number;
|
|
3523
|
+
pcb_note_dimension_id: string;
|
|
3524
|
+
from: {
|
|
3525
|
+
x: number;
|
|
3526
|
+
y: number;
|
|
3527
|
+
};
|
|
3528
|
+
to: {
|
|
3529
|
+
x: number;
|
|
3530
|
+
y: number;
|
|
3531
|
+
};
|
|
3532
|
+
arrow_size: number;
|
|
3533
|
+
pcb_component_id?: string | undefined;
|
|
3534
|
+
subcircuit_id?: string | undefined;
|
|
3535
|
+
pcb_group_id?: string | undefined;
|
|
3536
|
+
text?: string | undefined;
|
|
3537
|
+
color?: string | undefined;
|
|
3344
3538
|
} | {
|
|
3345
3539
|
message: string;
|
|
3346
3540
|
type: "pcb_autorouting_error";
|
|
@@ -3562,8 +3756,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3562
3756
|
x2: number;
|
|
3563
3757
|
y2: number;
|
|
3564
3758
|
color: string;
|
|
3565
|
-
schematic_component_id: string;
|
|
3566
3759
|
is_dashed: boolean;
|
|
3760
|
+
schematic_component_id: string;
|
|
3567
3761
|
schematic_line_id: string;
|
|
3568
3762
|
subcircuit_id?: string | undefined;
|
|
3569
3763
|
stroke_width?: number | null | undefined;
|
|
@@ -3578,8 +3772,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3578
3772
|
rotation: number;
|
|
3579
3773
|
is_filled: boolean;
|
|
3580
3774
|
color: string;
|
|
3581
|
-
schematic_component_id: string;
|
|
3582
3775
|
is_dashed: boolean;
|
|
3776
|
+
schematic_component_id: string;
|
|
3583
3777
|
schematic_rect_id: string;
|
|
3584
3778
|
subcircuit_id?: string | undefined;
|
|
3585
3779
|
stroke_width?: number | null | undefined;
|
|
@@ -3593,8 +3787,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3593
3787
|
radius: number;
|
|
3594
3788
|
is_filled: boolean;
|
|
3595
3789
|
color: string;
|
|
3596
|
-
schematic_component_id: string;
|
|
3597
3790
|
is_dashed: boolean;
|
|
3791
|
+
schematic_component_id: string;
|
|
3598
3792
|
schematic_circle_id: string;
|
|
3599
3793
|
subcircuit_id?: string | undefined;
|
|
3600
3794
|
stroke_width?: number | null | undefined;
|
|
@@ -3607,8 +3801,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3607
3801
|
};
|
|
3608
3802
|
radius: number;
|
|
3609
3803
|
color: string;
|
|
3610
|
-
schematic_component_id: string;
|
|
3611
3804
|
is_dashed: boolean;
|
|
3805
|
+
schematic_component_id: string;
|
|
3612
3806
|
direction: "clockwise" | "counterclockwise";
|
|
3613
3807
|
schematic_arc_id: string;
|
|
3614
3808
|
start_angle_degrees: number;
|