@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;
@@ -57,6 +59,7 @@ interface ExecutionContext extends WebWorkerConfiguration {
57
59
  declare function createExecutionContext(webWorkerConfiguration: WebWorkerConfiguration, opts?: {
58
60
  name?: string;
59
61
  platform?: PlatformConfig;
62
+ projectConfig?: Partial<PlatformConfig>;
60
63
  debugNamespace?: string;
61
64
  }): ExecutionContext;
62
65
 
@@ -88,6 +91,7 @@ declare class CircuitRunner implements CircuitRunnerApi {
88
91
  kill(): Promise<void>;
89
92
  setSnippetsApiBaseUrl(baseUrl: string): Promise<void>;
90
93
  setPlatformConfig(platform: PlatformConfig): Promise<void>;
94
+ setProjectConfig(project: Partial<PlatformConfig>): Promise<void>;
91
95
  enableDebug(namespace: string): Promise<void>;
92
96
  private _bindEventListeners;
93
97
  }
@@ -457,6 +461,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
457
461
  name?: string | undefined;
458
462
  subcircuit_id?: string | undefined;
459
463
  is_subcircuit?: boolean | undefined;
464
+ show_as_schematic_box?: boolean | undefined;
460
465
  parent_subcircuit_id?: string | undefined;
461
466
  parent_source_group_id?: string | undefined;
462
467
  } | {
@@ -812,6 +817,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
812
817
  pcb_plated_hole_id: string;
813
818
  outer_width: number;
814
819
  outer_height: number;
820
+ ccw_rotation: number;
815
821
  pcb_component_id?: string | undefined;
816
822
  subcircuit_id?: string | undefined;
817
823
  pcb_group_id?: string | undefined;
@@ -914,6 +920,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
914
920
  source_port_id: string;
915
921
  subcircuit_id?: string | undefined;
916
922
  pcb_group_id?: string | undefined;
923
+ is_board_pinout?: boolean | undefined;
917
924
  } | {
918
925
  type: "pcb_text";
919
926
  width: number;
@@ -983,6 +990,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
983
990
  pcb_group_id?: string | undefined;
984
991
  port_hints?: string[] | undefined;
985
992
  pcb_port_id?: string | undefined;
993
+ is_covered_with_solder_mask?: boolean | undefined;
986
994
  } | {
987
995
  x: number;
988
996
  y: number;
@@ -998,6 +1006,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
998
1006
  port_hints?: string[] | undefined;
999
1007
  pcb_port_id?: string | undefined;
1000
1008
  rect_border_radius?: number | undefined;
1009
+ is_covered_with_solder_mask?: boolean | undefined;
1001
1010
  } | {
1002
1011
  x: number;
1003
1012
  y: number;
@@ -1006,14 +1015,15 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1006
1015
  height: number;
1007
1016
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1008
1017
  shape: "rotated_rect";
1009
- pcb_smtpad_id: string;
1010
1018
  ccw_rotation: number;
1019
+ pcb_smtpad_id: string;
1011
1020
  pcb_component_id?: string | undefined;
1012
1021
  subcircuit_id?: string | undefined;
1013
1022
  pcb_group_id?: string | undefined;
1014
1023
  port_hints?: string[] | undefined;
1015
1024
  pcb_port_id?: string | undefined;
1016
1025
  rect_border_radius?: number | undefined;
1026
+ is_covered_with_solder_mask?: boolean | undefined;
1017
1027
  } | {
1018
1028
  x: number;
1019
1029
  y: number;
@@ -1022,14 +1032,15 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1022
1032
  height: number;
1023
1033
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1024
1034
  shape: "rotated_pill";
1035
+ ccw_rotation: number;
1025
1036
  pcb_smtpad_id: string;
1026
1037
  radius: number;
1027
- ccw_rotation: number;
1028
1038
  pcb_component_id?: string | undefined;
1029
1039
  subcircuit_id?: string | undefined;
1030
1040
  pcb_group_id?: string | undefined;
1031
1041
  port_hints?: string[] | undefined;
1032
1042
  pcb_port_id?: string | undefined;
1043
+ is_covered_with_solder_mask?: boolean | undefined;
1033
1044
  } | {
1034
1045
  x: number;
1035
1046
  y: number;
@@ -1045,6 +1056,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1045
1056
  pcb_group_id?: string | undefined;
1046
1057
  port_hints?: string[] | undefined;
1047
1058
  pcb_port_id?: string | undefined;
1059
+ is_covered_with_solder_mask?: boolean | undefined;
1048
1060
  } | {
1049
1061
  type: "pcb_smtpad";
1050
1062
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
@@ -1059,6 +1071,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1059
1071
  pcb_group_id?: string | undefined;
1060
1072
  port_hints?: string[] | undefined;
1061
1073
  pcb_port_id?: string | undefined;
1074
+ is_covered_with_solder_mask?: boolean | undefined;
1062
1075
  } | {
1063
1076
  x: number;
1064
1077
  y: number;
@@ -1534,7 +1547,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1534
1547
  subcircuit_id?: string | undefined;
1535
1548
  } | {
1536
1549
  type: "schematic_component";
1537
- source_component_id: string;
1538
1550
  center: {
1539
1551
  x: number;
1540
1552
  y: number;
@@ -1544,7 +1556,9 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1544
1556
  width: number;
1545
1557
  height: number;
1546
1558
  };
1559
+ source_component_id?: string | undefined;
1547
1560
  subcircuit_id?: string | undefined;
1561
+ source_group_id?: string | undefined;
1548
1562
  pin_spacing?: number | undefined;
1549
1563
  pin_styles?: Record<string, {
1550
1564
  left_margin?: number | undefined;
@@ -1580,6 +1594,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1580
1594
  port_labels?: Record<string, string> | undefined;
1581
1595
  symbol_display_value?: string | undefined;
1582
1596
  schematic_group_id?: string | undefined;
1597
+ is_schematic_group?: boolean | undefined;
1583
1598
  } | {
1584
1599
  type: "schematic_port";
1585
1600
  center: {
@@ -1734,6 +1749,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1734
1749
  name?: string | undefined;
1735
1750
  subcircuit_id?: string | undefined;
1736
1751
  is_subcircuit?: boolean | undefined;
1752
+ show_as_schematic_box?: boolean | undefined;
1737
1753
  } | {
1738
1754
  type: "schematic_table";
1739
1755
  anchor_position: {
@@ -2192,6 +2208,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2192
2208
  name?: string | undefined;
2193
2209
  subcircuit_id?: string | undefined;
2194
2210
  is_subcircuit?: boolean | undefined;
2211
+ show_as_schematic_box?: boolean | undefined;
2195
2212
  parent_subcircuit_id?: string | undefined;
2196
2213
  parent_source_group_id?: string | undefined;
2197
2214
  } | {
@@ -2547,6 +2564,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2547
2564
  pcb_plated_hole_id: string;
2548
2565
  outer_width: number;
2549
2566
  outer_height: number;
2567
+ ccw_rotation: number;
2550
2568
  pcb_component_id?: string | undefined;
2551
2569
  subcircuit_id?: string | undefined;
2552
2570
  pcb_group_id?: string | undefined;
@@ -2649,6 +2667,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2649
2667
  source_port_id: string;
2650
2668
  subcircuit_id?: string | undefined;
2651
2669
  pcb_group_id?: string | undefined;
2670
+ is_board_pinout?: boolean | undefined;
2652
2671
  } | {
2653
2672
  type: "pcb_text";
2654
2673
  width: number;
@@ -2718,6 +2737,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2718
2737
  pcb_group_id?: string | undefined;
2719
2738
  port_hints?: string[] | undefined;
2720
2739
  pcb_port_id?: string | undefined;
2740
+ is_covered_with_solder_mask?: boolean | undefined;
2721
2741
  } | {
2722
2742
  x: number;
2723
2743
  y: number;
@@ -2733,6 +2753,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2733
2753
  port_hints?: string[] | undefined;
2734
2754
  pcb_port_id?: string | undefined;
2735
2755
  rect_border_radius?: number | undefined;
2756
+ is_covered_with_solder_mask?: boolean | undefined;
2736
2757
  } | {
2737
2758
  x: number;
2738
2759
  y: number;
@@ -2741,14 +2762,15 @@ declare const runTscircuitModule: (module: string, opts?: {
2741
2762
  height: number;
2742
2763
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2743
2764
  shape: "rotated_rect";
2744
- pcb_smtpad_id: string;
2745
2765
  ccw_rotation: number;
2766
+ pcb_smtpad_id: string;
2746
2767
  pcb_component_id?: string | undefined;
2747
2768
  subcircuit_id?: string | undefined;
2748
2769
  pcb_group_id?: string | undefined;
2749
2770
  port_hints?: string[] | undefined;
2750
2771
  pcb_port_id?: string | undefined;
2751
2772
  rect_border_radius?: number | undefined;
2773
+ is_covered_with_solder_mask?: boolean | undefined;
2752
2774
  } | {
2753
2775
  x: number;
2754
2776
  y: number;
@@ -2757,14 +2779,15 @@ declare const runTscircuitModule: (module: string, opts?: {
2757
2779
  height: number;
2758
2780
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2759
2781
  shape: "rotated_pill";
2782
+ ccw_rotation: number;
2760
2783
  pcb_smtpad_id: string;
2761
2784
  radius: number;
2762
- ccw_rotation: number;
2763
2785
  pcb_component_id?: string | undefined;
2764
2786
  subcircuit_id?: string | undefined;
2765
2787
  pcb_group_id?: string | undefined;
2766
2788
  port_hints?: string[] | undefined;
2767
2789
  pcb_port_id?: string | undefined;
2790
+ is_covered_with_solder_mask?: boolean | undefined;
2768
2791
  } | {
2769
2792
  x: number;
2770
2793
  y: number;
@@ -2780,6 +2803,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2780
2803
  pcb_group_id?: string | undefined;
2781
2804
  port_hints?: string[] | undefined;
2782
2805
  pcb_port_id?: string | undefined;
2806
+ is_covered_with_solder_mask?: boolean | undefined;
2783
2807
  } | {
2784
2808
  type: "pcb_smtpad";
2785
2809
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
@@ -2794,6 +2818,7 @@ declare const runTscircuitModule: (module: string, opts?: {
2794
2818
  pcb_group_id?: string | undefined;
2795
2819
  port_hints?: string[] | undefined;
2796
2820
  pcb_port_id?: string | undefined;
2821
+ is_covered_with_solder_mask?: boolean | undefined;
2797
2822
  } | {
2798
2823
  x: number;
2799
2824
  y: number;
@@ -3269,7 +3294,6 @@ declare const runTscircuitModule: (module: string, opts?: {
3269
3294
  subcircuit_id?: string | undefined;
3270
3295
  } | {
3271
3296
  type: "schematic_component";
3272
- source_component_id: string;
3273
3297
  center: {
3274
3298
  x: number;
3275
3299
  y: number;
@@ -3279,7 +3303,9 @@ declare const runTscircuitModule: (module: string, opts?: {
3279
3303
  width: number;
3280
3304
  height: number;
3281
3305
  };
3306
+ source_component_id?: string | undefined;
3282
3307
  subcircuit_id?: string | undefined;
3308
+ source_group_id?: string | undefined;
3283
3309
  pin_spacing?: number | undefined;
3284
3310
  pin_styles?: Record<string, {
3285
3311
  left_margin?: number | undefined;
@@ -3315,6 +3341,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3315
3341
  port_labels?: Record<string, string> | undefined;
3316
3342
  symbol_display_value?: string | undefined;
3317
3343
  schematic_group_id?: string | undefined;
3344
+ is_schematic_group?: boolean | undefined;
3318
3345
  } | {
3319
3346
  type: "schematic_port";
3320
3347
  center: {
@@ -3469,6 +3496,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3469
3496
  name?: string | undefined;
3470
3497
  subcircuit_id?: string | undefined;
3471
3498
  is_subcircuit?: boolean | undefined;
3499
+ show_as_schematic_box?: boolean | undefined;
3472
3500
  } | {
3473
3501
  type: "schematic_table";
3474
3502
  anchor_position: {