@tscircuit/eval 0.0.402 → 0.0.404

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.
@@ -1081,6 +1081,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1081
1081
  pcb_port_id?: string | undefined;
1082
1082
  rect_border_radius?: number | undefined;
1083
1083
  is_covered_with_solder_mask?: boolean | undefined;
1084
+ corner_radius?: number | undefined;
1084
1085
  } | {
1085
1086
  x: number;
1086
1087
  y: number;
@@ -1098,6 +1099,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1098
1099
  pcb_port_id?: string | undefined;
1099
1100
  rect_border_radius?: number | undefined;
1100
1101
  is_covered_with_solder_mask?: boolean | undefined;
1102
+ corner_radius?: number | undefined;
1101
1103
  } | {
1102
1104
  x: number;
1103
1105
  y: number;
@@ -1245,6 +1247,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1245
1247
  name?: string | undefined;
1246
1248
  subcircuit_id?: string | undefined;
1247
1249
  is_subcircuit?: boolean | undefined;
1250
+ anchor_position?: {
1251
+ x: number;
1252
+ y: number;
1253
+ } | undefined;
1254
+ anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
1248
1255
  layout_mode?: string | undefined;
1249
1256
  autorouter_configuration?: {
1250
1257
  trace_clearance: number;
@@ -1468,11 +1475,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1468
1475
  font: "tscircuit2024";
1469
1476
  font_size: number;
1470
1477
  pcb_fabrication_note_dimension_id: string;
1471
- from: string | {
1478
+ from: {
1472
1479
  x: number;
1473
1480
  y: number;
1474
1481
  };
1475
- to: string | {
1482
+ to: {
1476
1483
  x: number;
1477
1484
  y: number;
1478
1485
  };
@@ -1716,6 +1723,15 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1716
1723
  };
1717
1724
  source_component_id?: string | undefined;
1718
1725
  subcircuit_id?: string | undefined;
1726
+ } | {
1727
+ message: string;
1728
+ type: "pcb_component_invalid_layer_error";
1729
+ source_component_id: string;
1730
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1731
+ error_type: "pcb_component_invalid_layer_error";
1732
+ pcb_component_invalid_layer_error_id: string;
1733
+ pcb_component_id?: string | undefined;
1734
+ subcircuit_id?: string | undefined;
1719
1735
  } | {
1720
1736
  type: "pcb_courtyard_rect";
1721
1737
  width: number;
@@ -2146,6 +2162,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2146
2162
  subcircuit_connectivity_map_key?: string | undefined;
2147
2163
  schematic_voltage_probe_id?: string | undefined;
2148
2164
  timestamps_ms?: number[] | undefined;
2165
+ simulation_voltage_probe_id?: string | undefined;
2149
2166
  } | {
2150
2167
  type: "simulation_switch";
2151
2168
  simulation_switch_id: string;
@@ -3125,6 +3142,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3125
3142
  pcb_port_id?: string | undefined;
3126
3143
  rect_border_radius?: number | undefined;
3127
3144
  is_covered_with_solder_mask?: boolean | undefined;
3145
+ corner_radius?: number | undefined;
3128
3146
  } | {
3129
3147
  x: number;
3130
3148
  y: number;
@@ -3142,6 +3160,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3142
3160
  pcb_port_id?: string | undefined;
3143
3161
  rect_border_radius?: number | undefined;
3144
3162
  is_covered_with_solder_mask?: boolean | undefined;
3163
+ corner_radius?: number | undefined;
3145
3164
  } | {
3146
3165
  x: number;
3147
3166
  y: number;
@@ -3289,6 +3308,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3289
3308
  name?: string | undefined;
3290
3309
  subcircuit_id?: string | undefined;
3291
3310
  is_subcircuit?: boolean | undefined;
3311
+ anchor_position?: {
3312
+ x: number;
3313
+ y: number;
3314
+ } | undefined;
3315
+ anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
3292
3316
  layout_mode?: string | undefined;
3293
3317
  autorouter_configuration?: {
3294
3318
  trace_clearance: number;
@@ -3512,11 +3536,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3512
3536
  font: "tscircuit2024";
3513
3537
  font_size: number;
3514
3538
  pcb_fabrication_note_dimension_id: string;
3515
- from: string | {
3539
+ from: {
3516
3540
  x: number;
3517
3541
  y: number;
3518
3542
  };
3519
- to: string | {
3543
+ to: {
3520
3544
  x: number;
3521
3545
  y: number;
3522
3546
  };
@@ -3760,6 +3784,15 @@ declare const runTscircuitModule: (module: string, opts?: {
3760
3784
  };
3761
3785
  source_component_id?: string | undefined;
3762
3786
  subcircuit_id?: string | undefined;
3787
+ } | {
3788
+ message: string;
3789
+ type: "pcb_component_invalid_layer_error";
3790
+ source_component_id: string;
3791
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3792
+ error_type: "pcb_component_invalid_layer_error";
3793
+ pcb_component_invalid_layer_error_id: string;
3794
+ pcb_component_id?: string | undefined;
3795
+ subcircuit_id?: string | undefined;
3763
3796
  } | {
3764
3797
  type: "pcb_courtyard_rect";
3765
3798
  width: number;
@@ -4190,6 +4223,7 @@ declare const runTscircuitModule: (module: string, opts?: {
4190
4223
  subcircuit_connectivity_map_key?: string | undefined;
4191
4224
  schematic_voltage_probe_id?: string | undefined;
4192
4225
  timestamps_ms?: number[] | undefined;
4226
+ simulation_voltage_probe_id?: string | undefined;
4193
4227
  } | {
4194
4228
  type: "simulation_switch";
4195
4229
  simulation_switch_id: string;
@@ -1097,6 +1097,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1097
1097
  pcb_port_id?: string | undefined;
1098
1098
  rect_border_radius?: number | undefined;
1099
1099
  is_covered_with_solder_mask?: boolean | undefined;
1100
+ corner_radius?: number | undefined;
1100
1101
  } | {
1101
1102
  x: number;
1102
1103
  y: number;
@@ -1114,6 +1115,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1114
1115
  pcb_port_id?: string | undefined;
1115
1116
  rect_border_radius?: number | undefined;
1116
1117
  is_covered_with_solder_mask?: boolean | undefined;
1118
+ corner_radius?: number | undefined;
1117
1119
  } | {
1118
1120
  x: number;
1119
1121
  y: number;
@@ -1261,6 +1263,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1261
1263
  name?: string | undefined;
1262
1264
  subcircuit_id?: string | undefined;
1263
1265
  is_subcircuit?: boolean | undefined;
1266
+ anchor_position?: {
1267
+ x: number;
1268
+ y: number;
1269
+ } | undefined;
1270
+ anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
1264
1271
  layout_mode?: string | undefined;
1265
1272
  autorouter_configuration?: {
1266
1273
  trace_clearance: number;
@@ -1484,11 +1491,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1484
1491
  font: "tscircuit2024";
1485
1492
  font_size: number;
1486
1493
  pcb_fabrication_note_dimension_id: string;
1487
- from: string | {
1494
+ from: {
1488
1495
  x: number;
1489
1496
  y: number;
1490
1497
  };
1491
- to: string | {
1498
+ to: {
1492
1499
  x: number;
1493
1500
  y: number;
1494
1501
  };
@@ -1732,6 +1739,15 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1732
1739
  };
1733
1740
  source_component_id?: string | undefined;
1734
1741
  subcircuit_id?: string | undefined;
1742
+ } | {
1743
+ message: string;
1744
+ type: "pcb_component_invalid_layer_error";
1745
+ source_component_id: string;
1746
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1747
+ error_type: "pcb_component_invalid_layer_error";
1748
+ pcb_component_invalid_layer_error_id: string;
1749
+ pcb_component_id?: string | undefined;
1750
+ subcircuit_id?: string | undefined;
1735
1751
  } | {
1736
1752
  type: "pcb_courtyard_rect";
1737
1753
  width: number;
@@ -2162,6 +2178,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2162
2178
  subcircuit_connectivity_map_key?: string | undefined;
2163
2179
  schematic_voltage_probe_id?: string | undefined;
2164
2180
  timestamps_ms?: number[] | undefined;
2181
+ simulation_voltage_probe_id?: string | undefined;
2165
2182
  } | {
2166
2183
  type: "simulation_switch";
2167
2184
  simulation_switch_id: string;
@@ -3141,6 +3158,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3141
3158
  pcb_port_id?: string | undefined;
3142
3159
  rect_border_radius?: number | undefined;
3143
3160
  is_covered_with_solder_mask?: boolean | undefined;
3161
+ corner_radius?: number | undefined;
3144
3162
  } | {
3145
3163
  x: number;
3146
3164
  y: number;
@@ -3158,6 +3176,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3158
3176
  pcb_port_id?: string | undefined;
3159
3177
  rect_border_radius?: number | undefined;
3160
3178
  is_covered_with_solder_mask?: boolean | undefined;
3179
+ corner_radius?: number | undefined;
3161
3180
  } | {
3162
3181
  x: number;
3163
3182
  y: number;
@@ -3305,6 +3324,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3305
3324
  name?: string | undefined;
3306
3325
  subcircuit_id?: string | undefined;
3307
3326
  is_subcircuit?: boolean | undefined;
3327
+ anchor_position?: {
3328
+ x: number;
3329
+ y: number;
3330
+ } | undefined;
3331
+ anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
3308
3332
  layout_mode?: string | undefined;
3309
3333
  autorouter_configuration?: {
3310
3334
  trace_clearance: number;
@@ -3528,11 +3552,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3528
3552
  font: "tscircuit2024";
3529
3553
  font_size: number;
3530
3554
  pcb_fabrication_note_dimension_id: string;
3531
- from: string | {
3555
+ from: {
3532
3556
  x: number;
3533
3557
  y: number;
3534
3558
  };
3535
- to: string | {
3559
+ to: {
3536
3560
  x: number;
3537
3561
  y: number;
3538
3562
  };
@@ -3776,6 +3800,15 @@ declare const runTscircuitModule: (module: string, opts?: {
3776
3800
  };
3777
3801
  source_component_id?: string | undefined;
3778
3802
  subcircuit_id?: string | undefined;
3803
+ } | {
3804
+ message: string;
3805
+ type: "pcb_component_invalid_layer_error";
3806
+ source_component_id: string;
3807
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3808
+ error_type: "pcb_component_invalid_layer_error";
3809
+ pcb_component_invalid_layer_error_id: string;
3810
+ pcb_component_id?: string | undefined;
3811
+ subcircuit_id?: string | undefined;
3779
3812
  } | {
3780
3813
  type: "pcb_courtyard_rect";
3781
3814
  width: number;
@@ -4206,6 +4239,7 @@ declare const runTscircuitModule: (module: string, opts?: {
4206
4239
  subcircuit_connectivity_map_key?: string | undefined;
4207
4240
  schematic_voltage_probe_id?: string | undefined;
4208
4241
  timestamps_ms?: number[] | undefined;
4242
+ simulation_voltage_probe_id?: string | undefined;
4209
4243
  } | {
4210
4244
  type: "simulation_switch";
4211
4245
  simulation_switch_id: string;