@tscircuit/eval 0.0.323 → 0.0.325

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.
@@ -8,6 +8,7 @@ interface CircuitRunnerConfiguration {
8
8
  cjsRegistryUrl: string;
9
9
  verbose?: boolean;
10
10
  platform?: PlatformConfig;
11
+ projectConfig?: Partial<PlatformConfig>;
11
12
  }
12
13
  interface WebWorkerConfiguration extends CircuitRunnerConfiguration {
13
14
  evalVersion?: string;
@@ -42,6 +43,7 @@ interface CircuitRunnerApi {
42
43
  getCircuitJson: () => Promise<AnyCircuitElement[]>;
43
44
  setSnippetsApiBaseUrl: (baseUrl: string) => Promise<void>;
44
45
  setPlatformConfig: (platform: PlatformConfig) => Promise<void>;
46
+ setProjectConfig: (project: Partial<PlatformConfig>) => Promise<void>;
45
47
  enableDebug: (namespace: string) => Promise<void>;
46
48
  on: (event: RootCircuitEventName, callback: (...args: any[]) => void) => void;
47
49
  clearEventListeners: () => void;
@@ -73,6 +75,7 @@ interface ExecutionContext extends WebWorkerConfiguration {
73
75
  declare function createExecutionContext(webWorkerConfiguration: WebWorkerConfiguration, opts?: {
74
76
  name?: string;
75
77
  platform?: PlatformConfig;
78
+ projectConfig?: Partial<PlatformConfig>;
76
79
  debugNamespace?: string;
77
80
  }): ExecutionContext;
78
81
 
@@ -104,6 +107,7 @@ declare class CircuitRunner implements CircuitRunnerApi {
104
107
  kill(): Promise<void>;
105
108
  setSnippetsApiBaseUrl(baseUrl: string): Promise<void>;
106
109
  setPlatformConfig(platform: PlatformConfig): Promise<void>;
110
+ setProjectConfig(project: Partial<PlatformConfig>): Promise<void>;
107
111
  enableDebug(namespace: string): Promise<void>;
108
112
  private _bindEventListeners;
109
113
  }
@@ -473,6 +477,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
473
477
  name?: string | undefined;
474
478
  subcircuit_id?: string | undefined;
475
479
  is_subcircuit?: boolean | undefined;
480
+ show_as_schematic_box?: boolean | undefined;
476
481
  parent_subcircuit_id?: string | undefined;
477
482
  parent_source_group_id?: string | undefined;
478
483
  } | {
@@ -828,6 +833,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
828
833
  pcb_plated_hole_id: string;
829
834
  outer_width: number;
830
835
  outer_height: number;
836
+ ccw_rotation: number;
831
837
  pcb_component_id?: string | undefined;
832
838
  subcircuit_id?: string | undefined;
833
839
  pcb_group_id?: string | undefined;
@@ -930,6 +936,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
930
936
  source_port_id: string;
931
937
  subcircuit_id?: string | undefined;
932
938
  pcb_group_id?: string | undefined;
939
+ is_board_pinout?: boolean | undefined;
933
940
  } | {
934
941
  type: "pcb_text";
935
942
  width: number;
@@ -999,6 +1006,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
999
1006
  pcb_group_id?: string | undefined;
1000
1007
  port_hints?: string[] | undefined;
1001
1008
  pcb_port_id?: string | undefined;
1009
+ is_covered_with_solder_mask?: boolean | undefined;
1002
1010
  } | {
1003
1011
  x: number;
1004
1012
  y: number;
@@ -1014,6 +1022,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1014
1022
  port_hints?: string[] | undefined;
1015
1023
  pcb_port_id?: string | undefined;
1016
1024
  rect_border_radius?: number | undefined;
1025
+ is_covered_with_solder_mask?: boolean | undefined;
1017
1026
  } | {
1018
1027
  x: number;
1019
1028
  y: number;
@@ -1022,14 +1031,15 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1022
1031
  height: number;
1023
1032
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1024
1033
  shape: "rotated_rect";
1025
- pcb_smtpad_id: string;
1026
1034
  ccw_rotation: number;
1035
+ pcb_smtpad_id: string;
1027
1036
  pcb_component_id?: string | undefined;
1028
1037
  subcircuit_id?: string | undefined;
1029
1038
  pcb_group_id?: string | undefined;
1030
1039
  port_hints?: string[] | undefined;
1031
1040
  pcb_port_id?: string | undefined;
1032
1041
  rect_border_radius?: number | undefined;
1042
+ is_covered_with_solder_mask?: boolean | undefined;
1033
1043
  } | {
1034
1044
  x: number;
1035
1045
  y: number;
@@ -1038,14 +1048,15 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1038
1048
  height: number;
1039
1049
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1040
1050
  shape: "rotated_pill";
1051
+ ccw_rotation: number;
1041
1052
  pcb_smtpad_id: string;
1042
1053
  radius: number;
1043
- ccw_rotation: number;
1044
1054
  pcb_component_id?: string | undefined;
1045
1055
  subcircuit_id?: string | undefined;
1046
1056
  pcb_group_id?: string | undefined;
1047
1057
  port_hints?: string[] | undefined;
1048
1058
  pcb_port_id?: string | undefined;
1059
+ is_covered_with_solder_mask?: boolean | undefined;
1049
1060
  } | {
1050
1061
  x: number;
1051
1062
  y: number;
@@ -1061,6 +1072,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1061
1072
  pcb_group_id?: string | undefined;
1062
1073
  port_hints?: string[] | undefined;
1063
1074
  pcb_port_id?: string | undefined;
1075
+ is_covered_with_solder_mask?: boolean | undefined;
1064
1076
  } | {
1065
1077
  type: "pcb_smtpad";
1066
1078
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
@@ -1075,6 +1087,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1075
1087
  pcb_group_id?: string | undefined;
1076
1088
  port_hints?: string[] | undefined;
1077
1089
  pcb_port_id?: string | undefined;
1090
+ is_covered_with_solder_mask?: boolean | undefined;
1078
1091
  } | {
1079
1092
  x: number;
1080
1093
  y: number;
@@ -1550,7 +1563,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1550
1563
  subcircuit_id?: string | undefined;
1551
1564
  } | {
1552
1565
  type: "schematic_component";
1553
- source_component_id: string;
1554
1566
  center: {
1555
1567
  x: number;
1556
1568
  y: number;
@@ -1560,7 +1572,9 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1560
1572
  width: number;
1561
1573
  height: number;
1562
1574
  };
1575
+ source_component_id?: string | undefined;
1563
1576
  subcircuit_id?: string | undefined;
1577
+ source_group_id?: string | undefined;
1564
1578
  pin_spacing?: number | undefined;
1565
1579
  pin_styles?: Record<string, {
1566
1580
  left_margin?: number | undefined;
@@ -1596,6 +1610,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1596
1610
  port_labels?: Record<string, string> | undefined;
1597
1611
  symbol_display_value?: string | undefined;
1598
1612
  schematic_group_id?: string | undefined;
1613
+ is_schematic_group?: boolean | undefined;
1599
1614
  } | {
1600
1615
  type: "schematic_port";
1601
1616
  center: {
@@ -1750,6 +1765,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1750
1765
  name?: string | undefined;
1751
1766
  subcircuit_id?: string | undefined;
1752
1767
  is_subcircuit?: boolean | undefined;
1768
+ show_as_schematic_box?: boolean | undefined;
1753
1769
  } | {
1754
1770
  type: "schematic_table";
1755
1771
  anchor_position: {
@@ -2208,6 +2224,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2208
2224
  name?: string | undefined;
2209
2225
  subcircuit_id?: string | undefined;
2210
2226
  is_subcircuit?: boolean | undefined;
2227
+ show_as_schematic_box?: boolean | undefined;
2211
2228
  parent_subcircuit_id?: string | undefined;
2212
2229
  parent_source_group_id?: string | undefined;
2213
2230
  } | {
@@ -2563,6 +2580,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2563
2580
  pcb_plated_hole_id: string;
2564
2581
  outer_width: number;
2565
2582
  outer_height: number;
2583
+ ccw_rotation: number;
2566
2584
  pcb_component_id?: string | undefined;
2567
2585
  subcircuit_id?: string | undefined;
2568
2586
  pcb_group_id?: string | undefined;
@@ -2665,6 +2683,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2665
2683
  source_port_id: string;
2666
2684
  subcircuit_id?: string | undefined;
2667
2685
  pcb_group_id?: string | undefined;
2686
+ is_board_pinout?: boolean | undefined;
2668
2687
  } | {
2669
2688
  type: "pcb_text";
2670
2689
  width: number;
@@ -2734,6 +2753,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2734
2753
  pcb_group_id?: string | undefined;
2735
2754
  port_hints?: string[] | undefined;
2736
2755
  pcb_port_id?: string | undefined;
2756
+ is_covered_with_solder_mask?: boolean | undefined;
2737
2757
  } | {
2738
2758
  x: number;
2739
2759
  y: number;
@@ -2749,6 +2769,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2749
2769
  port_hints?: string[] | undefined;
2750
2770
  pcb_port_id?: string | undefined;
2751
2771
  rect_border_radius?: number | undefined;
2772
+ is_covered_with_solder_mask?: boolean | undefined;
2752
2773
  } | {
2753
2774
  x: number;
2754
2775
  y: number;
@@ -2757,14 +2778,15 @@ declare const runTscircuitModule: (module: string, opts?: {
2757
2778
  height: number;
2758
2779
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2759
2780
  shape: "rotated_rect";
2760
- pcb_smtpad_id: string;
2761
2781
  ccw_rotation: number;
2782
+ pcb_smtpad_id: string;
2762
2783
  pcb_component_id?: string | undefined;
2763
2784
  subcircuit_id?: string | undefined;
2764
2785
  pcb_group_id?: string | undefined;
2765
2786
  port_hints?: string[] | undefined;
2766
2787
  pcb_port_id?: string | undefined;
2767
2788
  rect_border_radius?: number | undefined;
2789
+ is_covered_with_solder_mask?: boolean | undefined;
2768
2790
  } | {
2769
2791
  x: number;
2770
2792
  y: number;
@@ -2773,14 +2795,15 @@ declare const runTscircuitModule: (module: string, opts?: {
2773
2795
  height: number;
2774
2796
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2775
2797
  shape: "rotated_pill";
2798
+ ccw_rotation: number;
2776
2799
  pcb_smtpad_id: string;
2777
2800
  radius: number;
2778
- ccw_rotation: number;
2779
2801
  pcb_component_id?: string | undefined;
2780
2802
  subcircuit_id?: string | undefined;
2781
2803
  pcb_group_id?: string | undefined;
2782
2804
  port_hints?: string[] | undefined;
2783
2805
  pcb_port_id?: string | undefined;
2806
+ is_covered_with_solder_mask?: boolean | undefined;
2784
2807
  } | {
2785
2808
  x: number;
2786
2809
  y: number;
@@ -2796,6 +2819,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2796
2819
  pcb_group_id?: string | undefined;
2797
2820
  port_hints?: string[] | undefined;
2798
2821
  pcb_port_id?: string | undefined;
2822
+ is_covered_with_solder_mask?: boolean | undefined;
2799
2823
  } | {
2800
2824
  type: "pcb_smtpad";
2801
2825
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
@@ -2810,6 +2834,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2810
2834
  pcb_group_id?: string | undefined;
2811
2835
  port_hints?: string[] | undefined;
2812
2836
  pcb_port_id?: string | undefined;
2837
+ is_covered_with_solder_mask?: boolean | undefined;
2813
2838
  } | {
2814
2839
  x: number;
2815
2840
  y: number;
@@ -3285,7 +3310,6 @@ declare const runTscircuitModule: (module: string, opts?: {
3285
3310
  subcircuit_id?: string | undefined;
3286
3311
  } | {
3287
3312
  type: "schematic_component";
3288
- source_component_id: string;
3289
3313
  center: {
3290
3314
  x: number;
3291
3315
  y: number;
@@ -3295,7 +3319,9 @@ declare const runTscircuitModule: (module: string, opts?: {
3295
3319
  width: number;
3296
3320
  height: number;
3297
3321
  };
3322
+ source_component_id?: string | undefined;
3298
3323
  subcircuit_id?: string | undefined;
3324
+ source_group_id?: string | undefined;
3299
3325
  pin_spacing?: number | undefined;
3300
3326
  pin_styles?: Record<string, {
3301
3327
  left_margin?: number | undefined;
@@ -3331,6 +3357,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3331
3357
  port_labels?: Record<string, string> | undefined;
3332
3358
  symbol_display_value?: string | undefined;
3333
3359
  schematic_group_id?: string | undefined;
3360
+ is_schematic_group?: boolean | undefined;
3334
3361
  } | {
3335
3362
  type: "schematic_port";
3336
3363
  center: {
@@ -3485,6 +3512,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3485
3512
  name?: string | undefined;
3486
3513
  subcircuit_id?: string | undefined;
3487
3514
  is_subcircuit?: boolean | undefined;
3515
+ show_as_schematic_box?: boolean | undefined;
3488
3516
  } | {
3489
3517
  type: "schematic_table";
3490
3518
  anchor_position: {