@tscircuit/eval 0.0.380 → 0.0.381
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/lib/index.d.ts
CHANGED
|
@@ -789,6 +789,27 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
789
789
|
hole_height: number;
|
|
790
790
|
subcircuit_id?: string | undefined;
|
|
791
791
|
pcb_group_id?: string | undefined;
|
|
792
|
+
} | {
|
|
793
|
+
x: number;
|
|
794
|
+
y: number;
|
|
795
|
+
type: "pcb_hole";
|
|
796
|
+
pcb_hole_id: string;
|
|
797
|
+
hole_shape: "pill";
|
|
798
|
+
hole_width: number;
|
|
799
|
+
hole_height: number;
|
|
800
|
+
subcircuit_id?: string | undefined;
|
|
801
|
+
pcb_group_id?: string | undefined;
|
|
802
|
+
} | {
|
|
803
|
+
x: number;
|
|
804
|
+
y: number;
|
|
805
|
+
type: "pcb_hole";
|
|
806
|
+
pcb_hole_id: string;
|
|
807
|
+
hole_shape: "rotated_pill";
|
|
808
|
+
hole_width: number;
|
|
809
|
+
hole_height: number;
|
|
810
|
+
ccw_rotation: number;
|
|
811
|
+
subcircuit_id?: string | undefined;
|
|
812
|
+
pcb_group_id?: string | undefined;
|
|
792
813
|
} | {
|
|
793
814
|
message: string;
|
|
794
815
|
type: "pcb_missing_footprint_error";
|
|
@@ -846,12 +867,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
846
867
|
type: "pcb_plated_hole";
|
|
847
868
|
hole_width: number;
|
|
848
869
|
hole_height: number;
|
|
870
|
+
ccw_rotation: number;
|
|
849
871
|
shape: "oval" | "pill";
|
|
850
872
|
layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
|
|
851
873
|
pcb_plated_hole_id: string;
|
|
852
874
|
outer_width: number;
|
|
853
875
|
outer_height: number;
|
|
854
|
-
ccw_rotation: number;
|
|
855
876
|
pcb_component_id?: string | undefined;
|
|
856
877
|
subcircuit_id?: string | undefined;
|
|
857
878
|
pcb_group_id?: string | undefined;
|
|
@@ -1058,8 +1079,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1058
1079
|
width: number;
|
|
1059
1080
|
height: number;
|
|
1060
1081
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1061
|
-
shape: "rotated_rect";
|
|
1062
1082
|
ccw_rotation: number;
|
|
1083
|
+
shape: "rotated_rect";
|
|
1063
1084
|
pcb_smtpad_id: string;
|
|
1064
1085
|
pcb_component_id?: string | undefined;
|
|
1065
1086
|
subcircuit_id?: string | undefined;
|
|
@@ -1075,8 +1096,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1075
1096
|
width: number;
|
|
1076
1097
|
height: number;
|
|
1077
1098
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1078
|
-
shape: "rotated_pill";
|
|
1079
1099
|
ccw_rotation: number;
|
|
1100
|
+
shape: "rotated_pill";
|
|
1080
1101
|
pcb_smtpad_id: string;
|
|
1081
1102
|
radius: number;
|
|
1082
1103
|
pcb_component_id?: string | undefined;
|
|
@@ -1162,8 +1183,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1162
1183
|
width: number;
|
|
1163
1184
|
height: number;
|
|
1164
1185
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1165
|
-
shape: "rotated_rect";
|
|
1166
1186
|
ccw_rotation: number;
|
|
1187
|
+
shape: "rotated_rect";
|
|
1167
1188
|
pcb_solder_paste_id: string;
|
|
1168
1189
|
pcb_component_id?: string | undefined;
|
|
1169
1190
|
subcircuit_id?: string | undefined;
|
|
@@ -1431,6 +1452,82 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1431
1452
|
has_stroke?: boolean | undefined;
|
|
1432
1453
|
is_stroke_dashed?: boolean | undefined;
|
|
1433
1454
|
color?: string | undefined;
|
|
1455
|
+
} | {
|
|
1456
|
+
type: "pcb_note_text";
|
|
1457
|
+
text: string;
|
|
1458
|
+
font: "tscircuit2024";
|
|
1459
|
+
font_size: number;
|
|
1460
|
+
anchor_position: {
|
|
1461
|
+
x: number;
|
|
1462
|
+
y: number;
|
|
1463
|
+
};
|
|
1464
|
+
anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
1465
|
+
pcb_note_text_id: string;
|
|
1466
|
+
pcb_component_id?: string | undefined;
|
|
1467
|
+
subcircuit_id?: string | undefined;
|
|
1468
|
+
pcb_group_id?: string | undefined;
|
|
1469
|
+
color?: string | undefined;
|
|
1470
|
+
} | {
|
|
1471
|
+
type: "pcb_note_rect";
|
|
1472
|
+
width: number;
|
|
1473
|
+
height: number;
|
|
1474
|
+
center: {
|
|
1475
|
+
x: number;
|
|
1476
|
+
y: number;
|
|
1477
|
+
};
|
|
1478
|
+
stroke_width: number;
|
|
1479
|
+
pcb_note_rect_id: string;
|
|
1480
|
+
pcb_component_id?: string | undefined;
|
|
1481
|
+
subcircuit_id?: string | undefined;
|
|
1482
|
+
pcb_group_id?: string | undefined;
|
|
1483
|
+
is_filled?: boolean | undefined;
|
|
1484
|
+
has_stroke?: boolean | undefined;
|
|
1485
|
+
is_stroke_dashed?: boolean | undefined;
|
|
1486
|
+
color?: string | undefined;
|
|
1487
|
+
} | {
|
|
1488
|
+
type: "pcb_note_path";
|
|
1489
|
+
route: {
|
|
1490
|
+
x: number;
|
|
1491
|
+
y: number;
|
|
1492
|
+
}[];
|
|
1493
|
+
stroke_width: number;
|
|
1494
|
+
pcb_note_path_id: string;
|
|
1495
|
+
pcb_component_id?: string | undefined;
|
|
1496
|
+
subcircuit_id?: string | undefined;
|
|
1497
|
+
pcb_group_id?: string | undefined;
|
|
1498
|
+
color?: string | undefined;
|
|
1499
|
+
} | {
|
|
1500
|
+
type: "pcb_note_line";
|
|
1501
|
+
stroke_width: number;
|
|
1502
|
+
x1: number;
|
|
1503
|
+
y1: number;
|
|
1504
|
+
x2: number;
|
|
1505
|
+
y2: number;
|
|
1506
|
+
pcb_note_line_id: string;
|
|
1507
|
+
pcb_component_id?: string | undefined;
|
|
1508
|
+
subcircuit_id?: string | undefined;
|
|
1509
|
+
pcb_group_id?: string | undefined;
|
|
1510
|
+
color?: string | undefined;
|
|
1511
|
+
is_dashed?: boolean | undefined;
|
|
1512
|
+
} | {
|
|
1513
|
+
type: "pcb_note_dimension";
|
|
1514
|
+
font: "tscircuit2024";
|
|
1515
|
+
font_size: number;
|
|
1516
|
+
pcb_note_dimension_id: string;
|
|
1517
|
+
from: {
|
|
1518
|
+
x: number;
|
|
1519
|
+
y: number;
|
|
1520
|
+
};
|
|
1521
|
+
to: {
|
|
1522
|
+
x: number;
|
|
1523
|
+
y: number;
|
|
1524
|
+
};
|
|
1525
|
+
arrow_size: number;
|
|
1526
|
+
pcb_component_id?: string | undefined;
|
|
1527
|
+
subcircuit_id?: string | undefined;
|
|
1528
|
+
pcb_group_id?: string | undefined;
|
|
1529
|
+
text?: string | undefined;
|
|
1530
|
+
color?: string | undefined;
|
|
1434
1531
|
} | {
|
|
1435
1532
|
message: string;
|
|
1436
1533
|
type: "pcb_autorouting_error";
|
|
@@ -1652,8 +1749,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1652
1749
|
x2: number;
|
|
1653
1750
|
y2: number;
|
|
1654
1751
|
color: string;
|
|
1655
|
-
schematic_component_id: string;
|
|
1656
1752
|
is_dashed: boolean;
|
|
1753
|
+
schematic_component_id: string;
|
|
1657
1754
|
schematic_line_id: string;
|
|
1658
1755
|
subcircuit_id?: string | undefined;
|
|
1659
1756
|
stroke_width?: number | null | undefined;
|
|
@@ -1668,8 +1765,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1668
1765
|
rotation: number;
|
|
1669
1766
|
is_filled: boolean;
|
|
1670
1767
|
color: string;
|
|
1671
|
-
schematic_component_id: string;
|
|
1672
1768
|
is_dashed: boolean;
|
|
1769
|
+
schematic_component_id: string;
|
|
1673
1770
|
schematic_rect_id: string;
|
|
1674
1771
|
subcircuit_id?: string | undefined;
|
|
1675
1772
|
stroke_width?: number | null | undefined;
|
|
@@ -1683,8 +1780,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1683
1780
|
radius: number;
|
|
1684
1781
|
is_filled: boolean;
|
|
1685
1782
|
color: string;
|
|
1686
|
-
schematic_component_id: string;
|
|
1687
1783
|
is_dashed: boolean;
|
|
1784
|
+
schematic_component_id: string;
|
|
1688
1785
|
schematic_circle_id: string;
|
|
1689
1786
|
subcircuit_id?: string | undefined;
|
|
1690
1787
|
stroke_width?: number | null | undefined;
|
|
@@ -1697,8 +1794,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1697
1794
|
};
|
|
1698
1795
|
radius: number;
|
|
1699
1796
|
color: string;
|
|
1700
|
-
schematic_component_id: string;
|
|
1701
1797
|
is_dashed: boolean;
|
|
1798
|
+
schematic_component_id: string;
|
|
1702
1799
|
direction: "clockwise" | "counterclockwise";
|
|
1703
1800
|
schematic_arc_id: string;
|
|
1704
1801
|
start_angle_degrees: number;
|
|
@@ -2715,6 +2812,27 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2715
2812
|
hole_height: number;
|
|
2716
2813
|
subcircuit_id?: string | undefined;
|
|
2717
2814
|
pcb_group_id?: string | undefined;
|
|
2815
|
+
} | {
|
|
2816
|
+
x: number;
|
|
2817
|
+
y: number;
|
|
2818
|
+
type: "pcb_hole";
|
|
2819
|
+
pcb_hole_id: string;
|
|
2820
|
+
hole_shape: "pill";
|
|
2821
|
+
hole_width: number;
|
|
2822
|
+
hole_height: number;
|
|
2823
|
+
subcircuit_id?: string | undefined;
|
|
2824
|
+
pcb_group_id?: string | undefined;
|
|
2825
|
+
} | {
|
|
2826
|
+
x: number;
|
|
2827
|
+
y: number;
|
|
2828
|
+
type: "pcb_hole";
|
|
2829
|
+
pcb_hole_id: string;
|
|
2830
|
+
hole_shape: "rotated_pill";
|
|
2831
|
+
hole_width: number;
|
|
2832
|
+
hole_height: number;
|
|
2833
|
+
ccw_rotation: number;
|
|
2834
|
+
subcircuit_id?: string | undefined;
|
|
2835
|
+
pcb_group_id?: string | undefined;
|
|
2718
2836
|
} | {
|
|
2719
2837
|
message: string;
|
|
2720
2838
|
type: "pcb_missing_footprint_error";
|
|
@@ -2772,12 +2890,12 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2772
2890
|
type: "pcb_plated_hole";
|
|
2773
2891
|
hole_width: number;
|
|
2774
2892
|
hole_height: number;
|
|
2893
|
+
ccw_rotation: number;
|
|
2775
2894
|
shape: "oval" | "pill";
|
|
2776
2895
|
layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
|
|
2777
2896
|
pcb_plated_hole_id: string;
|
|
2778
2897
|
outer_width: number;
|
|
2779
2898
|
outer_height: number;
|
|
2780
|
-
ccw_rotation: number;
|
|
2781
2899
|
pcb_component_id?: string | undefined;
|
|
2782
2900
|
subcircuit_id?: string | undefined;
|
|
2783
2901
|
pcb_group_id?: string | undefined;
|
|
@@ -2984,8 +3102,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2984
3102
|
width: number;
|
|
2985
3103
|
height: number;
|
|
2986
3104
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2987
|
-
shape: "rotated_rect";
|
|
2988
3105
|
ccw_rotation: number;
|
|
3106
|
+
shape: "rotated_rect";
|
|
2989
3107
|
pcb_smtpad_id: string;
|
|
2990
3108
|
pcb_component_id?: string | undefined;
|
|
2991
3109
|
subcircuit_id?: string | undefined;
|
|
@@ -3001,8 +3119,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3001
3119
|
width: number;
|
|
3002
3120
|
height: number;
|
|
3003
3121
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3004
|
-
shape: "rotated_pill";
|
|
3005
3122
|
ccw_rotation: number;
|
|
3123
|
+
shape: "rotated_pill";
|
|
3006
3124
|
pcb_smtpad_id: string;
|
|
3007
3125
|
radius: number;
|
|
3008
3126
|
pcb_component_id?: string | undefined;
|
|
@@ -3088,8 +3206,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3088
3206
|
width: number;
|
|
3089
3207
|
height: number;
|
|
3090
3208
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3091
|
-
shape: "rotated_rect";
|
|
3092
3209
|
ccw_rotation: number;
|
|
3210
|
+
shape: "rotated_rect";
|
|
3093
3211
|
pcb_solder_paste_id: string;
|
|
3094
3212
|
pcb_component_id?: string | undefined;
|
|
3095
3213
|
subcircuit_id?: string | undefined;
|
|
@@ -3357,6 +3475,82 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3357
3475
|
has_stroke?: boolean | undefined;
|
|
3358
3476
|
is_stroke_dashed?: boolean | undefined;
|
|
3359
3477
|
color?: string | undefined;
|
|
3478
|
+
} | {
|
|
3479
|
+
type: "pcb_note_text";
|
|
3480
|
+
text: string;
|
|
3481
|
+
font: "tscircuit2024";
|
|
3482
|
+
font_size: number;
|
|
3483
|
+
anchor_position: {
|
|
3484
|
+
x: number;
|
|
3485
|
+
y: number;
|
|
3486
|
+
};
|
|
3487
|
+
anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
3488
|
+
pcb_note_text_id: string;
|
|
3489
|
+
pcb_component_id?: string | undefined;
|
|
3490
|
+
subcircuit_id?: string | undefined;
|
|
3491
|
+
pcb_group_id?: string | undefined;
|
|
3492
|
+
color?: string | undefined;
|
|
3493
|
+
} | {
|
|
3494
|
+
type: "pcb_note_rect";
|
|
3495
|
+
width: number;
|
|
3496
|
+
height: number;
|
|
3497
|
+
center: {
|
|
3498
|
+
x: number;
|
|
3499
|
+
y: number;
|
|
3500
|
+
};
|
|
3501
|
+
stroke_width: number;
|
|
3502
|
+
pcb_note_rect_id: string;
|
|
3503
|
+
pcb_component_id?: string | undefined;
|
|
3504
|
+
subcircuit_id?: string | undefined;
|
|
3505
|
+
pcb_group_id?: string | undefined;
|
|
3506
|
+
is_filled?: boolean | undefined;
|
|
3507
|
+
has_stroke?: boolean | undefined;
|
|
3508
|
+
is_stroke_dashed?: boolean | undefined;
|
|
3509
|
+
color?: string | undefined;
|
|
3510
|
+
} | {
|
|
3511
|
+
type: "pcb_note_path";
|
|
3512
|
+
route: {
|
|
3513
|
+
x: number;
|
|
3514
|
+
y: number;
|
|
3515
|
+
}[];
|
|
3516
|
+
stroke_width: number;
|
|
3517
|
+
pcb_note_path_id: string;
|
|
3518
|
+
pcb_component_id?: string | undefined;
|
|
3519
|
+
subcircuit_id?: string | undefined;
|
|
3520
|
+
pcb_group_id?: string | undefined;
|
|
3521
|
+
color?: string | undefined;
|
|
3522
|
+
} | {
|
|
3523
|
+
type: "pcb_note_line";
|
|
3524
|
+
stroke_width: number;
|
|
3525
|
+
x1: number;
|
|
3526
|
+
y1: number;
|
|
3527
|
+
x2: number;
|
|
3528
|
+
y2: number;
|
|
3529
|
+
pcb_note_line_id: string;
|
|
3530
|
+
pcb_component_id?: string | undefined;
|
|
3531
|
+
subcircuit_id?: string | undefined;
|
|
3532
|
+
pcb_group_id?: string | undefined;
|
|
3533
|
+
color?: string | undefined;
|
|
3534
|
+
is_dashed?: boolean | undefined;
|
|
3535
|
+
} | {
|
|
3536
|
+
type: "pcb_note_dimension";
|
|
3537
|
+
font: "tscircuit2024";
|
|
3538
|
+
font_size: number;
|
|
3539
|
+
pcb_note_dimension_id: string;
|
|
3540
|
+
from: {
|
|
3541
|
+
x: number;
|
|
3542
|
+
y: number;
|
|
3543
|
+
};
|
|
3544
|
+
to: {
|
|
3545
|
+
x: number;
|
|
3546
|
+
y: number;
|
|
3547
|
+
};
|
|
3548
|
+
arrow_size: number;
|
|
3549
|
+
pcb_component_id?: string | undefined;
|
|
3550
|
+
subcircuit_id?: string | undefined;
|
|
3551
|
+
pcb_group_id?: string | undefined;
|
|
3552
|
+
text?: string | undefined;
|
|
3553
|
+
color?: string | undefined;
|
|
3360
3554
|
} | {
|
|
3361
3555
|
message: string;
|
|
3362
3556
|
type: "pcb_autorouting_error";
|
|
@@ -3578,8 +3772,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3578
3772
|
x2: number;
|
|
3579
3773
|
y2: number;
|
|
3580
3774
|
color: string;
|
|
3581
|
-
schematic_component_id: string;
|
|
3582
3775
|
is_dashed: boolean;
|
|
3776
|
+
schematic_component_id: string;
|
|
3583
3777
|
schematic_line_id: string;
|
|
3584
3778
|
subcircuit_id?: string | undefined;
|
|
3585
3779
|
stroke_width?: number | null | undefined;
|
|
@@ -3594,8 +3788,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3594
3788
|
rotation: number;
|
|
3595
3789
|
is_filled: boolean;
|
|
3596
3790
|
color: string;
|
|
3597
|
-
schematic_component_id: string;
|
|
3598
3791
|
is_dashed: boolean;
|
|
3792
|
+
schematic_component_id: string;
|
|
3599
3793
|
schematic_rect_id: string;
|
|
3600
3794
|
subcircuit_id?: string | undefined;
|
|
3601
3795
|
stroke_width?: number | null | undefined;
|
|
@@ -3609,8 +3803,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3609
3803
|
radius: number;
|
|
3610
3804
|
is_filled: boolean;
|
|
3611
3805
|
color: string;
|
|
3612
|
-
schematic_component_id: string;
|
|
3613
3806
|
is_dashed: boolean;
|
|
3807
|
+
schematic_component_id: string;
|
|
3614
3808
|
schematic_circle_id: string;
|
|
3615
3809
|
subcircuit_id?: string | undefined;
|
|
3616
3810
|
stroke_width?: number | null | undefined;
|
|
@@ -3623,8 +3817,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3623
3817
|
};
|
|
3624
3818
|
radius: number;
|
|
3625
3819
|
color: string;
|
|
3626
|
-
schematic_component_id: string;
|
|
3627
3820
|
is_dashed: boolean;
|
|
3821
|
+
schematic_component_id: string;
|
|
3628
3822
|
direction: "clockwise" | "counterclockwise";
|
|
3629
3823
|
schematic_arc_id: string;
|
|
3630
3824
|
start_angle_degrees: number;
|