@tscircuit/eval 0.0.711 → 0.0.712

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.
@@ -1569,6 +1569,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1569
1569
  width: number;
1570
1570
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1571
1571
  route_type: "wire";
1572
+ copper_pour_id?: string | undefined;
1573
+ is_inside_copper_pour?: boolean | undefined;
1572
1574
  start_pcb_port_id?: string | undefined;
1573
1575
  end_pcb_port_id?: string | undefined;
1574
1576
  } | {
@@ -1579,6 +1581,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1579
1581
  from_layer: string;
1580
1582
  hole_diameter?: number | undefined;
1581
1583
  outer_diameter?: number | undefined;
1584
+ copper_pour_id?: string | undefined;
1585
+ is_inside_copper_pour?: boolean | undefined;
1582
1586
  })[];
1583
1587
  pcb_component_id?: string | undefined;
1584
1588
  subcircuit_id?: string | undefined;
@@ -2261,6 +2265,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2261
2265
  pcb_plated_hole_ids?: string[] | undefined;
2262
2266
  pcb_hole_ids?: string[] | undefined;
2263
2267
  pcb_keepout_ids?: string[] | undefined;
2268
+ } | {
2269
+ message: string;
2270
+ type: "pcb_courtyard_overlap_error";
2271
+ error_type: "pcb_courtyard_overlap_error";
2272
+ pcb_component_ids: [string, string];
2273
+ pcb_error_id: string;
2274
+ is_fatal?: boolean | undefined;
2264
2275
  } | {
2265
2276
  x: number;
2266
2277
  y: number;
@@ -4217,7 +4228,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
4217
4228
  type: "cad_component";
4218
4229
  pcb_component_id: string;
4219
4230
  source_component_id: string;
4220
- anchor_alignment: "center" | "xy_center_z_board";
4231
+ anchor_alignment: "center" | "center_of_component_on_board_surface";
4221
4232
  position: {
4222
4233
  x: number;
4223
4234
  y: number;
@@ -4251,13 +4262,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
4251
4262
  mimetype: string;
4252
4263
  } | undefined;
4253
4264
  model_unit_to_mm_scale_factor?: number | undefined;
4254
- model_board_normal_direction?: "y+" | "z+" | undefined;
4265
+ model_board_normal_direction?: "x-" | "x+" | "y+" | "y-" | "z+" | "z-" | undefined;
4255
4266
  model_origin_position?: {
4256
4267
  x: number;
4257
4268
  y: number;
4258
4269
  z: number;
4259
4270
  } | undefined;
4260
- model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
4271
+ model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | "bottom_center_of_component" | undefined;
4261
4272
  model_jscad?: any;
4262
4273
  show_as_translucent_model?: boolean | undefined;
4263
4274
  } | {
@@ -5794,6 +5805,8 @@ declare const runTscircuitModule: (module: string, opts?: {
5794
5805
  width: number;
5795
5806
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
5796
5807
  route_type: "wire";
5808
+ copper_pour_id?: string | undefined;
5809
+ is_inside_copper_pour?: boolean | undefined;
5797
5810
  start_pcb_port_id?: string | undefined;
5798
5811
  end_pcb_port_id?: string | undefined;
5799
5812
  } | {
@@ -5804,6 +5817,8 @@ declare const runTscircuitModule: (module: string, opts?: {
5804
5817
  from_layer: string;
5805
5818
  hole_diameter?: number | undefined;
5806
5819
  outer_diameter?: number | undefined;
5820
+ copper_pour_id?: string | undefined;
5821
+ is_inside_copper_pour?: boolean | undefined;
5807
5822
  })[];
5808
5823
  pcb_component_id?: string | undefined;
5809
5824
  subcircuit_id?: string | undefined;
@@ -6486,6 +6501,13 @@ declare const runTscircuitModule: (module: string, opts?: {
6486
6501
  pcb_plated_hole_ids?: string[] | undefined;
6487
6502
  pcb_hole_ids?: string[] | undefined;
6488
6503
  pcb_keepout_ids?: string[] | undefined;
6504
+ } | {
6505
+ message: string;
6506
+ type: "pcb_courtyard_overlap_error";
6507
+ error_type: "pcb_courtyard_overlap_error";
6508
+ pcb_component_ids: [string, string];
6509
+ pcb_error_id: string;
6510
+ is_fatal?: boolean | undefined;
6489
6511
  } | {
6490
6512
  x: number;
6491
6513
  y: number;
@@ -8442,7 +8464,7 @@ declare const runTscircuitModule: (module: string, opts?: {
8442
8464
  type: "cad_component";
8443
8465
  pcb_component_id: string;
8444
8466
  source_component_id: string;
8445
- anchor_alignment: "center" | "xy_center_z_board";
8467
+ anchor_alignment: "center" | "center_of_component_on_board_surface";
8446
8468
  position: {
8447
8469
  x: number;
8448
8470
  y: number;
@@ -8476,13 +8498,13 @@ declare const runTscircuitModule: (module: string, opts?: {
8476
8498
  mimetype: string;
8477
8499
  } | undefined;
8478
8500
  model_unit_to_mm_scale_factor?: number | undefined;
8479
- model_board_normal_direction?: "y+" | "z+" | undefined;
8501
+ model_board_normal_direction?: "x-" | "x+" | "y+" | "y-" | "z+" | "z-" | undefined;
8480
8502
  model_origin_position?: {
8481
8503
  x: number;
8482
8504
  y: number;
8483
8505
  z: number;
8484
8506
  } | undefined;
8485
- model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
8507
+ model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | "bottom_center_of_component" | undefined;
8486
8508
  model_jscad?: any;
8487
8509
  show_as_translucent_model?: boolean | undefined;
8488
8510
  } | {
@@ -1585,6 +1585,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1585
1585
  width: number;
1586
1586
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1587
1587
  route_type: "wire";
1588
+ copper_pour_id?: string | undefined;
1589
+ is_inside_copper_pour?: boolean | undefined;
1588
1590
  start_pcb_port_id?: string | undefined;
1589
1591
  end_pcb_port_id?: string | undefined;
1590
1592
  } | {
@@ -1595,6 +1597,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1595
1597
  from_layer: string;
1596
1598
  hole_diameter?: number | undefined;
1597
1599
  outer_diameter?: number | undefined;
1600
+ copper_pour_id?: string | undefined;
1601
+ is_inside_copper_pour?: boolean | undefined;
1598
1602
  })[];
1599
1603
  pcb_component_id?: string | undefined;
1600
1604
  subcircuit_id?: string | undefined;
@@ -2277,6 +2281,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2277
2281
  pcb_plated_hole_ids?: string[] | undefined;
2278
2282
  pcb_hole_ids?: string[] | undefined;
2279
2283
  pcb_keepout_ids?: string[] | undefined;
2284
+ } | {
2285
+ message: string;
2286
+ type: "pcb_courtyard_overlap_error";
2287
+ error_type: "pcb_courtyard_overlap_error";
2288
+ pcb_component_ids: [string, string];
2289
+ pcb_error_id: string;
2290
+ is_fatal?: boolean | undefined;
2280
2291
  } | {
2281
2292
  x: number;
2282
2293
  y: number;
@@ -4233,7 +4244,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
4233
4244
  type: "cad_component";
4234
4245
  pcb_component_id: string;
4235
4246
  source_component_id: string;
4236
- anchor_alignment: "center" | "xy_center_z_board";
4247
+ anchor_alignment: "center" | "center_of_component_on_board_surface";
4237
4248
  position: {
4238
4249
  x: number;
4239
4250
  y: number;
@@ -4267,13 +4278,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
4267
4278
  mimetype: string;
4268
4279
  } | undefined;
4269
4280
  model_unit_to_mm_scale_factor?: number | undefined;
4270
- model_board_normal_direction?: "y+" | "z+" | undefined;
4281
+ model_board_normal_direction?: "x-" | "x+" | "y+" | "y-" | "z+" | "z-" | undefined;
4271
4282
  model_origin_position?: {
4272
4283
  x: number;
4273
4284
  y: number;
4274
4285
  z: number;
4275
4286
  } | undefined;
4276
- model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
4287
+ model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | "bottom_center_of_component" | undefined;
4277
4288
  model_jscad?: any;
4278
4289
  show_as_translucent_model?: boolean | undefined;
4279
4290
  } | {
@@ -5810,6 +5821,8 @@ declare const runTscircuitModule: (module: string, opts?: {
5810
5821
  width: number;
5811
5822
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
5812
5823
  route_type: "wire";
5824
+ copper_pour_id?: string | undefined;
5825
+ is_inside_copper_pour?: boolean | undefined;
5813
5826
  start_pcb_port_id?: string | undefined;
5814
5827
  end_pcb_port_id?: string | undefined;
5815
5828
  } | {
@@ -5820,6 +5833,8 @@ declare const runTscircuitModule: (module: string, opts?: {
5820
5833
  from_layer: string;
5821
5834
  hole_diameter?: number | undefined;
5822
5835
  outer_diameter?: number | undefined;
5836
+ copper_pour_id?: string | undefined;
5837
+ is_inside_copper_pour?: boolean | undefined;
5823
5838
  })[];
5824
5839
  pcb_component_id?: string | undefined;
5825
5840
  subcircuit_id?: string | undefined;
@@ -6502,6 +6517,13 @@ declare const runTscircuitModule: (module: string, opts?: {
6502
6517
  pcb_plated_hole_ids?: string[] | undefined;
6503
6518
  pcb_hole_ids?: string[] | undefined;
6504
6519
  pcb_keepout_ids?: string[] | undefined;
6520
+ } | {
6521
+ message: string;
6522
+ type: "pcb_courtyard_overlap_error";
6523
+ error_type: "pcb_courtyard_overlap_error";
6524
+ pcb_component_ids: [string, string];
6525
+ pcb_error_id: string;
6526
+ is_fatal?: boolean | undefined;
6505
6527
  } | {
6506
6528
  x: number;
6507
6529
  y: number;
@@ -8458,7 +8480,7 @@ declare const runTscircuitModule: (module: string, opts?: {
8458
8480
  type: "cad_component";
8459
8481
  pcb_component_id: string;
8460
8482
  source_component_id: string;
8461
- anchor_alignment: "center" | "xy_center_z_board";
8483
+ anchor_alignment: "center" | "center_of_component_on_board_surface";
8462
8484
  position: {
8463
8485
  x: number;
8464
8486
  y: number;
@@ -8492,13 +8514,13 @@ declare const runTscircuitModule: (module: string, opts?: {
8492
8514
  mimetype: string;
8493
8515
  } | undefined;
8494
8516
  model_unit_to_mm_scale_factor?: number | undefined;
8495
- model_board_normal_direction?: "y+" | "z+" | undefined;
8517
+ model_board_normal_direction?: "x-" | "x+" | "y+" | "y-" | "z+" | "z-" | undefined;
8496
8518
  model_origin_position?: {
8497
8519
  x: number;
8498
8520
  y: number;
8499
8521
  z: number;
8500
8522
  } | undefined;
8501
- model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
8523
+ model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | "bottom_center_of_component" | undefined;
8502
8524
  model_jscad?: any;
8503
8525
  show_as_translucent_model?: boolean | undefined;
8504
8526
  } | {