@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/eval/index.d.ts
CHANGED
|
@@ -457,6 +457,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
457
457
|
name?: string | undefined;
|
|
458
458
|
subcircuit_id?: string | undefined;
|
|
459
459
|
is_subcircuit?: boolean | undefined;
|
|
460
|
+
show_as_schematic_box?: boolean | undefined;
|
|
460
461
|
parent_subcircuit_id?: string | undefined;
|
|
461
462
|
parent_source_group_id?: string | undefined;
|
|
462
463
|
} | {
|
|
@@ -812,6 +813,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
812
813
|
pcb_plated_hole_id: string;
|
|
813
814
|
outer_width: number;
|
|
814
815
|
outer_height: number;
|
|
816
|
+
ccw_rotation: number;
|
|
815
817
|
pcb_component_id?: string | undefined;
|
|
816
818
|
subcircuit_id?: string | undefined;
|
|
817
819
|
pcb_group_id?: string | undefined;
|
|
@@ -914,6 +916,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
914
916
|
source_port_id: string;
|
|
915
917
|
subcircuit_id?: string | undefined;
|
|
916
918
|
pcb_group_id?: string | undefined;
|
|
919
|
+
is_board_pinout?: boolean | undefined;
|
|
917
920
|
} | {
|
|
918
921
|
type: "pcb_text";
|
|
919
922
|
width: number;
|
|
@@ -983,6 +986,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
983
986
|
pcb_group_id?: string | undefined;
|
|
984
987
|
port_hints?: string[] | undefined;
|
|
985
988
|
pcb_port_id?: string | undefined;
|
|
989
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
986
990
|
} | {
|
|
987
991
|
x: number;
|
|
988
992
|
y: number;
|
|
@@ -998,6 +1002,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
998
1002
|
port_hints?: string[] | undefined;
|
|
999
1003
|
pcb_port_id?: string | undefined;
|
|
1000
1004
|
rect_border_radius?: number | undefined;
|
|
1005
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
1001
1006
|
} | {
|
|
1002
1007
|
x: number;
|
|
1003
1008
|
y: number;
|
|
@@ -1006,14 +1011,15 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1006
1011
|
height: number;
|
|
1007
1012
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1008
1013
|
shape: "rotated_rect";
|
|
1009
|
-
pcb_smtpad_id: string;
|
|
1010
1014
|
ccw_rotation: number;
|
|
1015
|
+
pcb_smtpad_id: string;
|
|
1011
1016
|
pcb_component_id?: string | undefined;
|
|
1012
1017
|
subcircuit_id?: string | undefined;
|
|
1013
1018
|
pcb_group_id?: string | undefined;
|
|
1014
1019
|
port_hints?: string[] | undefined;
|
|
1015
1020
|
pcb_port_id?: string | undefined;
|
|
1016
1021
|
rect_border_radius?: number | undefined;
|
|
1022
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
1017
1023
|
} | {
|
|
1018
1024
|
x: number;
|
|
1019
1025
|
y: number;
|
|
@@ -1022,14 +1028,15 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1022
1028
|
height: number;
|
|
1023
1029
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1024
1030
|
shape: "rotated_pill";
|
|
1031
|
+
ccw_rotation: number;
|
|
1025
1032
|
pcb_smtpad_id: string;
|
|
1026
1033
|
radius: number;
|
|
1027
|
-
ccw_rotation: number;
|
|
1028
1034
|
pcb_component_id?: string | undefined;
|
|
1029
1035
|
subcircuit_id?: string | undefined;
|
|
1030
1036
|
pcb_group_id?: string | undefined;
|
|
1031
1037
|
port_hints?: string[] | undefined;
|
|
1032
1038
|
pcb_port_id?: string | undefined;
|
|
1039
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
1033
1040
|
} | {
|
|
1034
1041
|
x: number;
|
|
1035
1042
|
y: number;
|
|
@@ -1045,6 +1052,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1045
1052
|
pcb_group_id?: string | undefined;
|
|
1046
1053
|
port_hints?: string[] | undefined;
|
|
1047
1054
|
pcb_port_id?: string | undefined;
|
|
1055
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
1048
1056
|
} | {
|
|
1049
1057
|
type: "pcb_smtpad";
|
|
1050
1058
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -1059,6 +1067,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1059
1067
|
pcb_group_id?: string | undefined;
|
|
1060
1068
|
port_hints?: string[] | undefined;
|
|
1061
1069
|
pcb_port_id?: string | undefined;
|
|
1070
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
1062
1071
|
} | {
|
|
1063
1072
|
x: number;
|
|
1064
1073
|
y: number;
|
|
@@ -1534,7 +1543,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1534
1543
|
subcircuit_id?: string | undefined;
|
|
1535
1544
|
} | {
|
|
1536
1545
|
type: "schematic_component";
|
|
1537
|
-
source_component_id: string;
|
|
1538
1546
|
center: {
|
|
1539
1547
|
x: number;
|
|
1540
1548
|
y: number;
|
|
@@ -1544,7 +1552,9 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1544
1552
|
width: number;
|
|
1545
1553
|
height: number;
|
|
1546
1554
|
};
|
|
1555
|
+
source_component_id?: string | undefined;
|
|
1547
1556
|
subcircuit_id?: string | undefined;
|
|
1557
|
+
source_group_id?: string | undefined;
|
|
1548
1558
|
pin_spacing?: number | undefined;
|
|
1549
1559
|
pin_styles?: Record<string, {
|
|
1550
1560
|
left_margin?: number | undefined;
|
|
@@ -1580,6 +1590,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1580
1590
|
port_labels?: Record<string, string> | undefined;
|
|
1581
1591
|
symbol_display_value?: string | undefined;
|
|
1582
1592
|
schematic_group_id?: string | undefined;
|
|
1593
|
+
is_schematic_group?: boolean | undefined;
|
|
1583
1594
|
} | {
|
|
1584
1595
|
type: "schematic_port";
|
|
1585
1596
|
center: {
|
|
@@ -1734,6 +1745,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1734
1745
|
name?: string | undefined;
|
|
1735
1746
|
subcircuit_id?: string | undefined;
|
|
1736
1747
|
is_subcircuit?: boolean | undefined;
|
|
1748
|
+
show_as_schematic_box?: boolean | undefined;
|
|
1737
1749
|
} | {
|
|
1738
1750
|
type: "schematic_table";
|
|
1739
1751
|
anchor_position: {
|
|
@@ -2192,6 +2204,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2192
2204
|
name?: string | undefined;
|
|
2193
2205
|
subcircuit_id?: string | undefined;
|
|
2194
2206
|
is_subcircuit?: boolean | undefined;
|
|
2207
|
+
show_as_schematic_box?: boolean | undefined;
|
|
2195
2208
|
parent_subcircuit_id?: string | undefined;
|
|
2196
2209
|
parent_source_group_id?: string | undefined;
|
|
2197
2210
|
} | {
|
|
@@ -2547,6 +2560,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2547
2560
|
pcb_plated_hole_id: string;
|
|
2548
2561
|
outer_width: number;
|
|
2549
2562
|
outer_height: number;
|
|
2563
|
+
ccw_rotation: number;
|
|
2550
2564
|
pcb_component_id?: string | undefined;
|
|
2551
2565
|
subcircuit_id?: string | undefined;
|
|
2552
2566
|
pcb_group_id?: string | undefined;
|
|
@@ -2649,6 +2663,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2649
2663
|
source_port_id: string;
|
|
2650
2664
|
subcircuit_id?: string | undefined;
|
|
2651
2665
|
pcb_group_id?: string | undefined;
|
|
2666
|
+
is_board_pinout?: boolean | undefined;
|
|
2652
2667
|
} | {
|
|
2653
2668
|
type: "pcb_text";
|
|
2654
2669
|
width: number;
|
|
@@ -2718,6 +2733,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2718
2733
|
pcb_group_id?: string | undefined;
|
|
2719
2734
|
port_hints?: string[] | undefined;
|
|
2720
2735
|
pcb_port_id?: string | undefined;
|
|
2736
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
2721
2737
|
} | {
|
|
2722
2738
|
x: number;
|
|
2723
2739
|
y: number;
|
|
@@ -2733,6 +2749,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2733
2749
|
port_hints?: string[] | undefined;
|
|
2734
2750
|
pcb_port_id?: string | undefined;
|
|
2735
2751
|
rect_border_radius?: number | undefined;
|
|
2752
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
2736
2753
|
} | {
|
|
2737
2754
|
x: number;
|
|
2738
2755
|
y: number;
|
|
@@ -2741,14 +2758,15 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2741
2758
|
height: number;
|
|
2742
2759
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2743
2760
|
shape: "rotated_rect";
|
|
2744
|
-
pcb_smtpad_id: string;
|
|
2745
2761
|
ccw_rotation: number;
|
|
2762
|
+
pcb_smtpad_id: string;
|
|
2746
2763
|
pcb_component_id?: string | undefined;
|
|
2747
2764
|
subcircuit_id?: string | undefined;
|
|
2748
2765
|
pcb_group_id?: string | undefined;
|
|
2749
2766
|
port_hints?: string[] | undefined;
|
|
2750
2767
|
pcb_port_id?: string | undefined;
|
|
2751
2768
|
rect_border_radius?: number | undefined;
|
|
2769
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
2752
2770
|
} | {
|
|
2753
2771
|
x: number;
|
|
2754
2772
|
y: number;
|
|
@@ -2757,14 +2775,15 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2757
2775
|
height: number;
|
|
2758
2776
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2759
2777
|
shape: "rotated_pill";
|
|
2778
|
+
ccw_rotation: number;
|
|
2760
2779
|
pcb_smtpad_id: string;
|
|
2761
2780
|
radius: number;
|
|
2762
|
-
ccw_rotation: number;
|
|
2763
2781
|
pcb_component_id?: string | undefined;
|
|
2764
2782
|
subcircuit_id?: string | undefined;
|
|
2765
2783
|
pcb_group_id?: string | undefined;
|
|
2766
2784
|
port_hints?: string[] | undefined;
|
|
2767
2785
|
pcb_port_id?: string | undefined;
|
|
2786
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
2768
2787
|
} | {
|
|
2769
2788
|
x: number;
|
|
2770
2789
|
y: number;
|
|
@@ -2780,6 +2799,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2780
2799
|
pcb_group_id?: string | undefined;
|
|
2781
2800
|
port_hints?: string[] | undefined;
|
|
2782
2801
|
pcb_port_id?: string | undefined;
|
|
2802
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
2783
2803
|
} | {
|
|
2784
2804
|
type: "pcb_smtpad";
|
|
2785
2805
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -2794,6 +2814,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2794
2814
|
pcb_group_id?: string | undefined;
|
|
2795
2815
|
port_hints?: string[] | undefined;
|
|
2796
2816
|
pcb_port_id?: string | undefined;
|
|
2817
|
+
is_covered_with_solder_mask?: boolean | undefined;
|
|
2797
2818
|
} | {
|
|
2798
2819
|
x: number;
|
|
2799
2820
|
y: number;
|
|
@@ -3269,7 +3290,6 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3269
3290
|
subcircuit_id?: string | undefined;
|
|
3270
3291
|
} | {
|
|
3271
3292
|
type: "schematic_component";
|
|
3272
|
-
source_component_id: string;
|
|
3273
3293
|
center: {
|
|
3274
3294
|
x: number;
|
|
3275
3295
|
y: number;
|
|
@@ -3279,7 +3299,9 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3279
3299
|
width: number;
|
|
3280
3300
|
height: number;
|
|
3281
3301
|
};
|
|
3302
|
+
source_component_id?: string | undefined;
|
|
3282
3303
|
subcircuit_id?: string | undefined;
|
|
3304
|
+
source_group_id?: string | undefined;
|
|
3283
3305
|
pin_spacing?: number | undefined;
|
|
3284
3306
|
pin_styles?: Record<string, {
|
|
3285
3307
|
left_margin?: number | undefined;
|
|
@@ -3315,6 +3337,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3315
3337
|
port_labels?: Record<string, string> | undefined;
|
|
3316
3338
|
symbol_display_value?: string | undefined;
|
|
3317
3339
|
schematic_group_id?: string | undefined;
|
|
3340
|
+
is_schematic_group?: boolean | undefined;
|
|
3318
3341
|
} | {
|
|
3319
3342
|
type: "schematic_port";
|
|
3320
3343
|
center: {
|
|
@@ -3469,6 +3492,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3469
3492
|
name?: string | undefined;
|
|
3470
3493
|
subcircuit_id?: string | undefined;
|
|
3471
3494
|
is_subcircuit?: boolean | undefined;
|
|
3495
|
+
show_as_schematic_box?: boolean | undefined;
|
|
3472
3496
|
} | {
|
|
3473
3497
|
type: "schematic_table";
|
|
3474
3498
|
anchor_position: {
|