@tscircuit/eval 0.0.322 → 0.0.324
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 +30 -6
- package/dist/eval/index.js +3 -4
- package/dist/lib/index.d.ts +30 -6
- package/dist/lib/index.js +3 -4
- package/dist/webworker/entrypoint.js +312 -313
- package/package.json +7 -7
- package/webworker/import-local-file.ts +2 -3
package/dist/lib/index.d.ts
CHANGED
|
@@ -473,6 +473,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
473
473
|
name?: string | undefined;
|
|
474
474
|
subcircuit_id?: string | undefined;
|
|
475
475
|
is_subcircuit?: boolean | undefined;
|
|
476
|
+
show_as_schematic_box?: boolean | undefined;
|
|
476
477
|
parent_subcircuit_id?: string | undefined;
|
|
477
478
|
parent_source_group_id?: string | undefined;
|
|
478
479
|
} | {
|
|
@@ -828,6 +829,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
828
829
|
pcb_plated_hole_id: string;
|
|
829
830
|
outer_width: number;
|
|
830
831
|
outer_height: number;
|
|
832
|
+
ccw_rotation: number;
|
|
831
833
|
pcb_component_id?: string | undefined;
|
|
832
834
|
subcircuit_id?: string | undefined;
|
|
833
835
|
pcb_group_id?: string | undefined;
|
|
@@ -930,6 +932,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
930
932
|
source_port_id: string;
|
|
931
933
|
subcircuit_id?: string | undefined;
|
|
932
934
|
pcb_group_id?: string | undefined;
|
|
935
|
+
is_board_pinout?: boolean | undefined;
|
|
933
936
|
} | {
|
|
934
937
|
type: "pcb_text";
|
|
935
938
|
width: number;
|
|
@@ -999,6 +1002,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
999
1002
|
pcb_group_id?: string | undefined;
|
|
1000
1003
|
port_hints?: string[] | undefined;
|
|
1001
1004
|
pcb_port_id?: string | undefined;
|
|
1005
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
1002
1006
|
} | {
|
|
1003
1007
|
x: number;
|
|
1004
1008
|
y: number;
|
|
@@ -1014,6 +1018,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1014
1018
|
port_hints?: string[] | undefined;
|
|
1015
1019
|
pcb_port_id?: string | undefined;
|
|
1016
1020
|
rect_border_radius?: number | undefined;
|
|
1021
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
1017
1022
|
} | {
|
|
1018
1023
|
x: number;
|
|
1019
1024
|
y: number;
|
|
@@ -1022,14 +1027,15 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1022
1027
|
height: number;
|
|
1023
1028
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1024
1029
|
shape: "rotated_rect";
|
|
1025
|
-
pcb_smtpad_id: string;
|
|
1026
1030
|
ccw_rotation: number;
|
|
1031
|
+
pcb_smtpad_id: string;
|
|
1027
1032
|
pcb_component_id?: string | undefined;
|
|
1028
1033
|
subcircuit_id?: string | undefined;
|
|
1029
1034
|
pcb_group_id?: string | undefined;
|
|
1030
1035
|
port_hints?: string[] | undefined;
|
|
1031
1036
|
pcb_port_id?: string | undefined;
|
|
1032
1037
|
rect_border_radius?: number | undefined;
|
|
1038
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
1033
1039
|
} | {
|
|
1034
1040
|
x: number;
|
|
1035
1041
|
y: number;
|
|
@@ -1038,14 +1044,15 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1038
1044
|
height: number;
|
|
1039
1045
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1040
1046
|
shape: "rotated_pill";
|
|
1047
|
+
ccw_rotation: number;
|
|
1041
1048
|
pcb_smtpad_id: string;
|
|
1042
1049
|
radius: number;
|
|
1043
|
-
ccw_rotation: number;
|
|
1044
1050
|
pcb_component_id?: string | undefined;
|
|
1045
1051
|
subcircuit_id?: string | undefined;
|
|
1046
1052
|
pcb_group_id?: string | undefined;
|
|
1047
1053
|
port_hints?: string[] | undefined;
|
|
1048
1054
|
pcb_port_id?: string | undefined;
|
|
1055
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
1049
1056
|
} | {
|
|
1050
1057
|
x: number;
|
|
1051
1058
|
y: number;
|
|
@@ -1061,6 +1068,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1061
1068
|
pcb_group_id?: string | undefined;
|
|
1062
1069
|
port_hints?: string[] | undefined;
|
|
1063
1070
|
pcb_port_id?: string | undefined;
|
|
1071
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
1064
1072
|
} | {
|
|
1065
1073
|
type: "pcb_smtpad";
|
|
1066
1074
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -1075,6 +1083,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1075
1083
|
pcb_group_id?: string | undefined;
|
|
1076
1084
|
port_hints?: string[] | undefined;
|
|
1077
1085
|
pcb_port_id?: string | undefined;
|
|
1086
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
1078
1087
|
} | {
|
|
1079
1088
|
x: number;
|
|
1080
1089
|
y: number;
|
|
@@ -1550,7 +1559,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1550
1559
|
subcircuit_id?: string | undefined;
|
|
1551
1560
|
} | {
|
|
1552
1561
|
type: "schematic_component";
|
|
1553
|
-
source_component_id: string;
|
|
1554
1562
|
center: {
|
|
1555
1563
|
x: number;
|
|
1556
1564
|
y: number;
|
|
@@ -1560,7 +1568,9 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1560
1568
|
width: number;
|
|
1561
1569
|
height: number;
|
|
1562
1570
|
};
|
|
1571
|
+
source_component_id?: string | undefined;
|
|
1563
1572
|
subcircuit_id?: string | undefined;
|
|
1573
|
+
source_group_id?: string | undefined;
|
|
1564
1574
|
pin_spacing?: number | undefined;
|
|
1565
1575
|
pin_styles?: Record<string, {
|
|
1566
1576
|
left_margin?: number | undefined;
|
|
@@ -1596,6 +1606,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1596
1606
|
port_labels?: Record<string, string> | undefined;
|
|
1597
1607
|
symbol_display_value?: string | undefined;
|
|
1598
1608
|
schematic_group_id?: string | undefined;
|
|
1609
|
+
is_schematic_group?: boolean | undefined;
|
|
1599
1610
|
} | {
|
|
1600
1611
|
type: "schematic_port";
|
|
1601
1612
|
center: {
|
|
@@ -1750,6 +1761,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1750
1761
|
name?: string | undefined;
|
|
1751
1762
|
subcircuit_id?: string | undefined;
|
|
1752
1763
|
is_subcircuit?: boolean | undefined;
|
|
1764
|
+
show_as_schematic_box?: boolean | undefined;
|
|
1753
1765
|
} | {
|
|
1754
1766
|
type: "schematic_table";
|
|
1755
1767
|
anchor_position: {
|
|
@@ -2208,6 +2220,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2208
2220
|
name?: string | undefined;
|
|
2209
2221
|
subcircuit_id?: string | undefined;
|
|
2210
2222
|
is_subcircuit?: boolean | undefined;
|
|
2223
|
+
show_as_schematic_box?: boolean | undefined;
|
|
2211
2224
|
parent_subcircuit_id?: string | undefined;
|
|
2212
2225
|
parent_source_group_id?: string | undefined;
|
|
2213
2226
|
} | {
|
|
@@ -2563,6 +2576,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2563
2576
|
pcb_plated_hole_id: string;
|
|
2564
2577
|
outer_width: number;
|
|
2565
2578
|
outer_height: number;
|
|
2579
|
+
ccw_rotation: number;
|
|
2566
2580
|
pcb_component_id?: string | undefined;
|
|
2567
2581
|
subcircuit_id?: string | undefined;
|
|
2568
2582
|
pcb_group_id?: string | undefined;
|
|
@@ -2665,6 +2679,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2665
2679
|
source_port_id: string;
|
|
2666
2680
|
subcircuit_id?: string | undefined;
|
|
2667
2681
|
pcb_group_id?: string | undefined;
|
|
2682
|
+
is_board_pinout?: boolean | undefined;
|
|
2668
2683
|
} | {
|
|
2669
2684
|
type: "pcb_text";
|
|
2670
2685
|
width: number;
|
|
@@ -2734,6 +2749,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2734
2749
|
pcb_group_id?: string | undefined;
|
|
2735
2750
|
port_hints?: string[] | undefined;
|
|
2736
2751
|
pcb_port_id?: string | undefined;
|
|
2752
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
2737
2753
|
} | {
|
|
2738
2754
|
x: number;
|
|
2739
2755
|
y: number;
|
|
@@ -2749,6 +2765,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2749
2765
|
port_hints?: string[] | undefined;
|
|
2750
2766
|
pcb_port_id?: string | undefined;
|
|
2751
2767
|
rect_border_radius?: number | undefined;
|
|
2768
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
2752
2769
|
} | {
|
|
2753
2770
|
x: number;
|
|
2754
2771
|
y: number;
|
|
@@ -2757,14 +2774,15 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2757
2774
|
height: number;
|
|
2758
2775
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2759
2776
|
shape: "rotated_rect";
|
|
2760
|
-
pcb_smtpad_id: string;
|
|
2761
2777
|
ccw_rotation: number;
|
|
2778
|
+
pcb_smtpad_id: string;
|
|
2762
2779
|
pcb_component_id?: string | undefined;
|
|
2763
2780
|
subcircuit_id?: string | undefined;
|
|
2764
2781
|
pcb_group_id?: string | undefined;
|
|
2765
2782
|
port_hints?: string[] | undefined;
|
|
2766
2783
|
pcb_port_id?: string | undefined;
|
|
2767
2784
|
rect_border_radius?: number | undefined;
|
|
2785
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
2768
2786
|
} | {
|
|
2769
2787
|
x: number;
|
|
2770
2788
|
y: number;
|
|
@@ -2773,14 +2791,15 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2773
2791
|
height: number;
|
|
2774
2792
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2775
2793
|
shape: "rotated_pill";
|
|
2794
|
+
ccw_rotation: number;
|
|
2776
2795
|
pcb_smtpad_id: string;
|
|
2777
2796
|
radius: number;
|
|
2778
|
-
ccw_rotation: number;
|
|
2779
2797
|
pcb_component_id?: string | undefined;
|
|
2780
2798
|
subcircuit_id?: string | undefined;
|
|
2781
2799
|
pcb_group_id?: string | undefined;
|
|
2782
2800
|
port_hints?: string[] | undefined;
|
|
2783
2801
|
pcb_port_id?: string | undefined;
|
|
2802
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
2784
2803
|
} | {
|
|
2785
2804
|
x: number;
|
|
2786
2805
|
y: number;
|
|
@@ -2796,6 +2815,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2796
2815
|
pcb_group_id?: string | undefined;
|
|
2797
2816
|
port_hints?: string[] | undefined;
|
|
2798
2817
|
pcb_port_id?: string | undefined;
|
|
2818
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
2799
2819
|
} | {
|
|
2800
2820
|
type: "pcb_smtpad";
|
|
2801
2821
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -2810,6 +2830,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2810
2830
|
pcb_group_id?: string | undefined;
|
|
2811
2831
|
port_hints?: string[] | undefined;
|
|
2812
2832
|
pcb_port_id?: string | undefined;
|
|
2833
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
2813
2834
|
} | {
|
|
2814
2835
|
x: number;
|
|
2815
2836
|
y: number;
|
|
@@ -3285,7 +3306,6 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3285
3306
|
subcircuit_id?: string | undefined;
|
|
3286
3307
|
} | {
|
|
3287
3308
|
type: "schematic_component";
|
|
3288
|
-
source_component_id: string;
|
|
3289
3309
|
center: {
|
|
3290
3310
|
x: number;
|
|
3291
3311
|
y: number;
|
|
@@ -3295,7 +3315,9 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3295
3315
|
width: number;
|
|
3296
3316
|
height: number;
|
|
3297
3317
|
};
|
|
3318
|
+
source_component_id?: string | undefined;
|
|
3298
3319
|
subcircuit_id?: string | undefined;
|
|
3320
|
+
source_group_id?: string | undefined;
|
|
3299
3321
|
pin_spacing?: number | undefined;
|
|
3300
3322
|
pin_styles?: Record<string, {
|
|
3301
3323
|
left_margin?: number | undefined;
|
|
@@ -3331,6 +3353,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3331
3353
|
port_labels?: Record<string, string> | undefined;
|
|
3332
3354
|
symbol_display_value?: string | undefined;
|
|
3333
3355
|
schematic_group_id?: string | undefined;
|
|
3356
|
+
is_schematic_group?: boolean | undefined;
|
|
3334
3357
|
} | {
|
|
3335
3358
|
type: "schematic_port";
|
|
3336
3359
|
center: {
|
|
@@ -3485,6 +3508,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3485
3508
|
name?: string | undefined;
|
|
3486
3509
|
subcircuit_id?: string | undefined;
|
|
3487
3510
|
is_subcircuit?: boolean | undefined;
|
|
3511
|
+
show_as_schematic_box?: boolean | undefined;
|
|
3488
3512
|
} | {
|
|
3489
3513
|
type: "schematic_table";
|
|
3490
3514
|
anchor_position: {
|