circuit-json 0.0.299 → 0.0.301

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/README.md CHANGED
@@ -918,6 +918,8 @@ interface PcbComponent {
918
918
  height: Length
919
919
  do_not_place?: boolean
920
920
  pcb_group_id?: string
921
+ position_mode?: "packed" | "relative_to_group_anchor" | "none"
922
+ positioned_relative_to_pcb_group_id?: string
921
923
  obstructs_within_bounds: boolean
922
924
  }
923
925
  ```
@@ -980,6 +982,7 @@ Defines a rectangular copper pour on the PCB.
980
982
  interface PcbCopperPourRect {
981
983
  type: "pcb_copper_pour"
982
984
  pcb_copper_pour_id: string
985
+ covered_with_solder_mask: boolean
983
986
  pcb_group_id?: string
984
987
  subcircuit_id?: string
985
988
  layer: LayerRef
@@ -1301,6 +1304,7 @@ interface PcbGroup {
1301
1304
  | "bottom_left"
1302
1305
  | "bottom_right"
1303
1306
  pcb_component_ids: string[]
1307
+ child_layout_mode?: "packed" | "none"
1304
1308
  name?: string
1305
1309
  description?: string
1306
1310
  layout_mode?: string
package/dist/index.d.mts CHANGED
@@ -406,6 +406,8 @@ declare const pcb_component: z.ZodObject<{
406
406
  do_not_place: z.ZodOptional<z.ZodBoolean>;
407
407
  subcircuit_id: z.ZodOptional<z.ZodString>;
408
408
  pcb_group_id: z.ZodOptional<z.ZodString>;
409
+ position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
410
+ positioned_relative_to_pcb_group_id: z.ZodOptional<z.ZodString>;
409
411
  obstructs_within_bounds: z.ZodDefault<z.ZodBoolean>;
410
412
  }, "strip", z.ZodTypeAny, {
411
413
  type: "pcb_component";
@@ -423,6 +425,8 @@ declare const pcb_component: z.ZodObject<{
423
425
  do_not_place?: boolean | undefined;
424
426
  subcircuit_id?: string | undefined;
425
427
  pcb_group_id?: string | undefined;
428
+ position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
429
+ positioned_relative_to_pcb_group_id?: string | undefined;
426
430
  }, {
427
431
  type: "pcb_component";
428
432
  width: string | number;
@@ -440,6 +444,8 @@ declare const pcb_component: z.ZodObject<{
440
444
  do_not_place?: boolean | undefined;
441
445
  subcircuit_id?: string | undefined;
442
446
  pcb_group_id?: string | undefined;
447
+ position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
448
+ positioned_relative_to_pcb_group_id?: string | undefined;
443
449
  obstructs_within_bounds?: boolean | undefined;
444
450
  }>;
445
451
  type PcbComponentInput = z.input<typeof pcb_component>;
@@ -458,6 +464,8 @@ interface PcbComponent {
458
464
  height: Length;
459
465
  do_not_place?: boolean;
460
466
  pcb_group_id?: string;
467
+ position_mode?: "packed" | "relative_to_group_anchor" | "none";
468
+ positioned_relative_to_pcb_group_id?: string;
461
469
  obstructs_within_bounds: boolean;
462
470
  }
463
471
  /**
@@ -5308,6 +5316,7 @@ declare const pcb_group: z.ZodObject<{
5308
5316
  }>>;
5309
5317
  anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
5310
5318
  pcb_component_ids: z.ZodArray<z.ZodString, "many">;
5319
+ child_layout_mode: z.ZodOptional<z.ZodEnum<["packed", "none"]>>;
5311
5320
  name: z.ZodOptional<z.ZodString>;
5312
5321
  description: z.ZodOptional<z.ZodString>;
5313
5322
  layout_mode: z.ZodOptional<z.ZodString>;
@@ -5343,6 +5352,7 @@ declare const pcb_group: z.ZodObject<{
5343
5352
  y: number;
5344
5353
  } | undefined;
5345
5354
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
5355
+ child_layout_mode?: "packed" | "none" | undefined;
5346
5356
  layout_mode?: string | undefined;
5347
5357
  autorouter_configuration?: {
5348
5358
  trace_clearance: number;
@@ -5372,6 +5382,7 @@ declare const pcb_group: z.ZodObject<{
5372
5382
  y: string | number;
5373
5383
  } | undefined;
5374
5384
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
5385
+ child_layout_mode?: "packed" | "none" | undefined;
5375
5386
  layout_mode?: string | undefined;
5376
5387
  autorouter_configuration?: {
5377
5388
  trace_clearance: string | number;
@@ -5395,6 +5406,7 @@ interface PcbGroup {
5395
5406
  anchor_position?: Point;
5396
5407
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
5397
5408
  pcb_component_ids: string[];
5409
+ child_layout_mode?: "packed" | "none";
5398
5410
  name?: string;
5399
5411
  description?: string;
5400
5412
  layout_mode?: string;
@@ -5688,6 +5700,7 @@ declare const pcb_copper_pour_rect: z.ZodObject<{
5688
5700
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
5689
5701
  }>;
5690
5702
  source_net_id: z.ZodOptional<z.ZodString>;
5703
+ covered_with_solder_mask: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5691
5704
  } & {
5692
5705
  shape: z.ZodLiteral<"rect">;
5693
5706
  center: z.ZodObject<{
@@ -5713,6 +5726,7 @@ declare const pcb_copper_pour_rect: z.ZodObject<{
5713
5726
  };
5714
5727
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
5715
5728
  shape: "rect";
5729
+ covered_with_solder_mask: boolean;
5716
5730
  pcb_copper_pour_id: string;
5717
5731
  rotation?: number | undefined;
5718
5732
  subcircuit_id?: string | undefined;
@@ -5734,6 +5748,7 @@ declare const pcb_copper_pour_rect: z.ZodObject<{
5734
5748
  subcircuit_id?: string | undefined;
5735
5749
  pcb_group_id?: string | undefined;
5736
5750
  source_net_id?: string | undefined;
5751
+ covered_with_solder_mask?: boolean | undefined;
5737
5752
  pcb_copper_pour_id?: string | undefined;
5738
5753
  }>;
5739
5754
  type PcbCopperPourRectInput = z.input<typeof pcb_copper_pour_rect>;
@@ -5743,6 +5758,7 @@ type PcbCopperPourRectInput = z.input<typeof pcb_copper_pour_rect>;
5743
5758
  interface PcbCopperPourRect {
5744
5759
  type: "pcb_copper_pour";
5745
5760
  pcb_copper_pour_id: string;
5761
+ covered_with_solder_mask: boolean;
5746
5762
  pcb_group_id?: string;
5747
5763
  subcircuit_id?: string;
5748
5764
  layer: LayerRef;
@@ -5768,6 +5784,7 @@ declare const pcb_copper_pour_brep: z.ZodObject<{
5768
5784
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
5769
5785
  }>;
5770
5786
  source_net_id: z.ZodOptional<z.ZodString>;
5787
+ covered_with_solder_mask: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5771
5788
  } & {
5772
5789
  shape: z.ZodLiteral<"brep">;
5773
5790
  brep_shape: z.ZodObject<{
@@ -5860,6 +5877,7 @@ declare const pcb_copper_pour_brep: z.ZodObject<{
5860
5877
  type: "pcb_copper_pour";
5861
5878
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
5862
5879
  shape: "brep";
5880
+ covered_with_solder_mask: boolean;
5863
5881
  pcb_copper_pour_id: string;
5864
5882
  brep_shape: {
5865
5883
  outer_ring: {
@@ -5905,6 +5923,7 @@ declare const pcb_copper_pour_brep: z.ZodObject<{
5905
5923
  subcircuit_id?: string | undefined;
5906
5924
  pcb_group_id?: string | undefined;
5907
5925
  source_net_id?: string | undefined;
5926
+ covered_with_solder_mask?: boolean | undefined;
5908
5927
  pcb_copper_pour_id?: string | undefined;
5909
5928
  }>;
5910
5929
  type PcbCopperPourBRepInput = z.input<typeof pcb_copper_pour_brep>;
@@ -5914,6 +5933,7 @@ type PcbCopperPourBRepInput = z.input<typeof pcb_copper_pour_brep>;
5914
5933
  interface PcbCopperPourBRep {
5915
5934
  type: "pcb_copper_pour";
5916
5935
  pcb_copper_pour_id: string;
5936
+ covered_with_solder_mask: boolean;
5917
5937
  pcb_group_id?: string;
5918
5938
  subcircuit_id?: string;
5919
5939
  layer: LayerRef;
@@ -5936,6 +5956,7 @@ declare const pcb_copper_pour_polygon: z.ZodObject<{
5936
5956
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
5937
5957
  }>;
5938
5958
  source_net_id: z.ZodOptional<z.ZodString>;
5959
+ covered_with_solder_mask: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5939
5960
  } & {
5940
5961
  shape: z.ZodLiteral<"polygon">;
5941
5962
  points: z.ZodArray<z.ZodObject<{
@@ -5956,6 +5977,7 @@ declare const pcb_copper_pour_polygon: z.ZodObject<{
5956
5977
  x: number;
5957
5978
  y: number;
5958
5979
  }[];
5980
+ covered_with_solder_mask: boolean;
5959
5981
  pcb_copper_pour_id: string;
5960
5982
  subcircuit_id?: string | undefined;
5961
5983
  pcb_group_id?: string | undefined;
@@ -5973,6 +5995,7 @@ declare const pcb_copper_pour_polygon: z.ZodObject<{
5973
5995
  subcircuit_id?: string | undefined;
5974
5996
  pcb_group_id?: string | undefined;
5975
5997
  source_net_id?: string | undefined;
5998
+ covered_with_solder_mask?: boolean | undefined;
5976
5999
  pcb_copper_pour_id?: string | undefined;
5977
6000
  }>;
5978
6001
  type PcbCopperPourPolygonInput = z.input<typeof pcb_copper_pour_polygon>;
@@ -5983,6 +6006,7 @@ type PcbCopperPourPolygonInput = z.input<typeof pcb_copper_pour_polygon>;
5983
6006
  interface PcbCopperPourPolygon {
5984
6007
  type: "pcb_copper_pour";
5985
6008
  pcb_copper_pour_id: string;
6009
+ covered_with_solder_mask: boolean;
5986
6010
  pcb_group_id?: string;
5987
6011
  subcircuit_id?: string;
5988
6012
  layer: LayerRef;
@@ -6005,6 +6029,7 @@ declare const pcb_copper_pour: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
6005
6029
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6006
6030
  }>;
6007
6031
  source_net_id: z.ZodOptional<z.ZodString>;
6032
+ covered_with_solder_mask: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6008
6033
  } & {
6009
6034
  shape: z.ZodLiteral<"rect">;
6010
6035
  center: z.ZodObject<{
@@ -6030,6 +6055,7 @@ declare const pcb_copper_pour: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
6030
6055
  };
6031
6056
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6032
6057
  shape: "rect";
6058
+ covered_with_solder_mask: boolean;
6033
6059
  pcb_copper_pour_id: string;
6034
6060
  rotation?: number | undefined;
6035
6061
  subcircuit_id?: string | undefined;
@@ -6051,6 +6077,7 @@ declare const pcb_copper_pour: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
6051
6077
  subcircuit_id?: string | undefined;
6052
6078
  pcb_group_id?: string | undefined;
6053
6079
  source_net_id?: string | undefined;
6080
+ covered_with_solder_mask?: boolean | undefined;
6054
6081
  pcb_copper_pour_id?: string | undefined;
6055
6082
  }>, z.ZodObject<{
6056
6083
  type: z.ZodLiteral<"pcb_copper_pour">;
@@ -6067,6 +6094,7 @@ declare const pcb_copper_pour: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
6067
6094
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6068
6095
  }>;
6069
6096
  source_net_id: z.ZodOptional<z.ZodString>;
6097
+ covered_with_solder_mask: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6070
6098
  } & {
6071
6099
  shape: z.ZodLiteral<"brep">;
6072
6100
  brep_shape: z.ZodObject<{
@@ -6159,6 +6187,7 @@ declare const pcb_copper_pour: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
6159
6187
  type: "pcb_copper_pour";
6160
6188
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6161
6189
  shape: "brep";
6190
+ covered_with_solder_mask: boolean;
6162
6191
  pcb_copper_pour_id: string;
6163
6192
  brep_shape: {
6164
6193
  outer_ring: {
@@ -6204,6 +6233,7 @@ declare const pcb_copper_pour: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
6204
6233
  subcircuit_id?: string | undefined;
6205
6234
  pcb_group_id?: string | undefined;
6206
6235
  source_net_id?: string | undefined;
6236
+ covered_with_solder_mask?: boolean | undefined;
6207
6237
  pcb_copper_pour_id?: string | undefined;
6208
6238
  }>, z.ZodObject<{
6209
6239
  type: z.ZodLiteral<"pcb_copper_pour">;
@@ -6220,6 +6250,7 @@ declare const pcb_copper_pour: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
6220
6250
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6221
6251
  }>;
6222
6252
  source_net_id: z.ZodOptional<z.ZodString>;
6253
+ covered_with_solder_mask: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6223
6254
  } & {
6224
6255
  shape: z.ZodLiteral<"polygon">;
6225
6256
  points: z.ZodArray<z.ZodObject<{
@@ -6240,6 +6271,7 @@ declare const pcb_copper_pour: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
6240
6271
  x: number;
6241
6272
  y: number;
6242
6273
  }[];
6274
+ covered_with_solder_mask: boolean;
6243
6275
  pcb_copper_pour_id: string;
6244
6276
  subcircuit_id?: string | undefined;
6245
6277
  pcb_group_id?: string | undefined;
@@ -6257,6 +6289,7 @@ declare const pcb_copper_pour: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
6257
6289
  subcircuit_id?: string | undefined;
6258
6290
  pcb_group_id?: string | undefined;
6259
6291
  source_net_id?: string | undefined;
6292
+ covered_with_solder_mask?: boolean | undefined;
6260
6293
  pcb_copper_pour_id?: string | undefined;
6261
6294
  }>]>;
6262
6295
  type PcbCopperPourInput = z.input<typeof pcb_copper_pour>;
@@ -13876,6 +13909,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13876
13909
  do_not_place: z.ZodOptional<z.ZodBoolean>;
13877
13910
  subcircuit_id: z.ZodOptional<z.ZodString>;
13878
13911
  pcb_group_id: z.ZodOptional<z.ZodString>;
13912
+ position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
13913
+ positioned_relative_to_pcb_group_id: z.ZodOptional<z.ZodString>;
13879
13914
  obstructs_within_bounds: z.ZodDefault<z.ZodBoolean>;
13880
13915
  }, "strip", z.ZodTypeAny, {
13881
13916
  type: "pcb_component";
@@ -13893,6 +13928,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13893
13928
  do_not_place?: boolean | undefined;
13894
13929
  subcircuit_id?: string | undefined;
13895
13930
  pcb_group_id?: string | undefined;
13931
+ position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
13932
+ positioned_relative_to_pcb_group_id?: string | undefined;
13896
13933
  }, {
13897
13934
  type: "pcb_component";
13898
13935
  width: string | number;
@@ -13910,6 +13947,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13910
13947
  do_not_place?: boolean | undefined;
13911
13948
  subcircuit_id?: string | undefined;
13912
13949
  pcb_group_id?: string | undefined;
13950
+ position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
13951
+ positioned_relative_to_pcb_group_id?: string | undefined;
13913
13952
  obstructs_within_bounds?: boolean | undefined;
13914
13953
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
13915
13954
  type: z.ZodLiteral<"pcb_hole">;
@@ -15627,6 +15666,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15627
15666
  }>>;
15628
15667
  anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
15629
15668
  pcb_component_ids: z.ZodArray<z.ZodString, "many">;
15669
+ child_layout_mode: z.ZodOptional<z.ZodEnum<["packed", "none"]>>;
15630
15670
  name: z.ZodOptional<z.ZodString>;
15631
15671
  description: z.ZodOptional<z.ZodString>;
15632
15672
  layout_mode: z.ZodOptional<z.ZodString>;
@@ -15662,6 +15702,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15662
15702
  y: number;
15663
15703
  } | undefined;
15664
15704
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
15705
+ child_layout_mode?: "packed" | "none" | undefined;
15665
15706
  layout_mode?: string | undefined;
15666
15707
  autorouter_configuration?: {
15667
15708
  trace_clearance: number;
@@ -15691,6 +15732,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15691
15732
  y: string | number;
15692
15733
  } | undefined;
15693
15734
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
15735
+ child_layout_mode?: "packed" | "none" | undefined;
15694
15736
  layout_mode?: string | undefined;
15695
15737
  autorouter_configuration?: {
15696
15738
  trace_clearance: string | number;
@@ -17287,6 +17329,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17287
17329
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
17288
17330
  }>;
17289
17331
  source_net_id: z.ZodOptional<z.ZodString>;
17332
+ covered_with_solder_mask: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
17290
17333
  } & {
17291
17334
  shape: z.ZodLiteral<"rect">;
17292
17335
  center: z.ZodObject<{
@@ -17312,6 +17355,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17312
17355
  };
17313
17356
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
17314
17357
  shape: "rect";
17358
+ covered_with_solder_mask: boolean;
17315
17359
  pcb_copper_pour_id: string;
17316
17360
  rotation?: number | undefined;
17317
17361
  subcircuit_id?: string | undefined;
@@ -17333,6 +17377,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17333
17377
  subcircuit_id?: string | undefined;
17334
17378
  pcb_group_id?: string | undefined;
17335
17379
  source_net_id?: string | undefined;
17380
+ covered_with_solder_mask?: boolean | undefined;
17336
17381
  pcb_copper_pour_id?: string | undefined;
17337
17382
  }>, z.ZodObject<{
17338
17383
  type: z.ZodLiteral<"pcb_copper_pour">;
@@ -17349,6 +17394,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17349
17394
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
17350
17395
  }>;
17351
17396
  source_net_id: z.ZodOptional<z.ZodString>;
17397
+ covered_with_solder_mask: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
17352
17398
  } & {
17353
17399
  shape: z.ZodLiteral<"brep">;
17354
17400
  brep_shape: z.ZodObject<{
@@ -17441,6 +17487,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17441
17487
  type: "pcb_copper_pour";
17442
17488
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
17443
17489
  shape: "brep";
17490
+ covered_with_solder_mask: boolean;
17444
17491
  pcb_copper_pour_id: string;
17445
17492
  brep_shape: {
17446
17493
  outer_ring: {
@@ -17486,6 +17533,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17486
17533
  subcircuit_id?: string | undefined;
17487
17534
  pcb_group_id?: string | undefined;
17488
17535
  source_net_id?: string | undefined;
17536
+ covered_with_solder_mask?: boolean | undefined;
17489
17537
  pcb_copper_pour_id?: string | undefined;
17490
17538
  }>, z.ZodObject<{
17491
17539
  type: z.ZodLiteral<"pcb_copper_pour">;
@@ -17502,6 +17550,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17502
17550
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
17503
17551
  }>;
17504
17552
  source_net_id: z.ZodOptional<z.ZodString>;
17553
+ covered_with_solder_mask: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
17505
17554
  } & {
17506
17555
  shape: z.ZodLiteral<"polygon">;
17507
17556
  points: z.ZodArray<z.ZodObject<{
@@ -17522,6 +17571,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17522
17571
  x: number;
17523
17572
  y: number;
17524
17573
  }[];
17574
+ covered_with_solder_mask: boolean;
17525
17575
  pcb_copper_pour_id: string;
17526
17576
  subcircuit_id?: string | undefined;
17527
17577
  pcb_group_id?: string | undefined;
@@ -17539,6 +17589,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17539
17589
  subcircuit_id?: string | undefined;
17540
17590
  pcb_group_id?: string | undefined;
17541
17591
  source_net_id?: string | undefined;
17592
+ covered_with_solder_mask?: boolean | undefined;
17542
17593
  pcb_copper_pour_id?: string | undefined;
17543
17594
  }>]>, z.ZodObject<{
17544
17595
  type: z.ZodLiteral<"pcb_component_outside_board_error">;
@@ -21383,6 +21434,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
21383
21434
  do_not_place: z.ZodOptional<z.ZodBoolean>;
21384
21435
  subcircuit_id: z.ZodOptional<z.ZodString>;
21385
21436
  pcb_group_id: z.ZodOptional<z.ZodString>;
21437
+ position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
21438
+ positioned_relative_to_pcb_group_id: z.ZodOptional<z.ZodString>;
21386
21439
  obstructs_within_bounds: z.ZodDefault<z.ZodBoolean>;
21387
21440
  }, "strip", z.ZodTypeAny, {
21388
21441
  type: "pcb_component";
@@ -21400,6 +21453,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
21400
21453
  do_not_place?: boolean | undefined;
21401
21454
  subcircuit_id?: string | undefined;
21402
21455
  pcb_group_id?: string | undefined;
21456
+ position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
21457
+ positioned_relative_to_pcb_group_id?: string | undefined;
21403
21458
  }, {
21404
21459
  type: "pcb_component";
21405
21460
  width: string | number;
@@ -21417,6 +21472,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
21417
21472
  do_not_place?: boolean | undefined;
21418
21473
  subcircuit_id?: string | undefined;
21419
21474
  pcb_group_id?: string | undefined;
21475
+ position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
21476
+ positioned_relative_to_pcb_group_id?: string | undefined;
21420
21477
  obstructs_within_bounds?: boolean | undefined;
21421
21478
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
21422
21479
  type: z.ZodLiteral<"pcb_hole">;
@@ -23134,6 +23191,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23134
23191
  }>>;
23135
23192
  anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
23136
23193
  pcb_component_ids: z.ZodArray<z.ZodString, "many">;
23194
+ child_layout_mode: z.ZodOptional<z.ZodEnum<["packed", "none"]>>;
23137
23195
  name: z.ZodOptional<z.ZodString>;
23138
23196
  description: z.ZodOptional<z.ZodString>;
23139
23197
  layout_mode: z.ZodOptional<z.ZodString>;
@@ -23169,6 +23227,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23169
23227
  y: number;
23170
23228
  } | undefined;
23171
23229
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
23230
+ child_layout_mode?: "packed" | "none" | undefined;
23172
23231
  layout_mode?: string | undefined;
23173
23232
  autorouter_configuration?: {
23174
23233
  trace_clearance: number;
@@ -23198,6 +23257,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23198
23257
  y: string | number;
23199
23258
  } | undefined;
23200
23259
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
23260
+ child_layout_mode?: "packed" | "none" | undefined;
23201
23261
  layout_mode?: string | undefined;
23202
23262
  autorouter_configuration?: {
23203
23263
  trace_clearance: string | number;
@@ -24794,6 +24854,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
24794
24854
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
24795
24855
  }>;
24796
24856
  source_net_id: z.ZodOptional<z.ZodString>;
24857
+ covered_with_solder_mask: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
24797
24858
  } & {
24798
24859
  shape: z.ZodLiteral<"rect">;
24799
24860
  center: z.ZodObject<{
@@ -24819,6 +24880,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
24819
24880
  };
24820
24881
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
24821
24882
  shape: "rect";
24883
+ covered_with_solder_mask: boolean;
24822
24884
  pcb_copper_pour_id: string;
24823
24885
  rotation?: number | undefined;
24824
24886
  subcircuit_id?: string | undefined;
@@ -24840,6 +24902,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
24840
24902
  subcircuit_id?: string | undefined;
24841
24903
  pcb_group_id?: string | undefined;
24842
24904
  source_net_id?: string | undefined;
24905
+ covered_with_solder_mask?: boolean | undefined;
24843
24906
  pcb_copper_pour_id?: string | undefined;
24844
24907
  }>, z.ZodObject<{
24845
24908
  type: z.ZodLiteral<"pcb_copper_pour">;
@@ -24856,6 +24919,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
24856
24919
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
24857
24920
  }>;
24858
24921
  source_net_id: z.ZodOptional<z.ZodString>;
24922
+ covered_with_solder_mask: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
24859
24923
  } & {
24860
24924
  shape: z.ZodLiteral<"brep">;
24861
24925
  brep_shape: z.ZodObject<{
@@ -24948,6 +25012,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
24948
25012
  type: "pcb_copper_pour";
24949
25013
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
24950
25014
  shape: "brep";
25015
+ covered_with_solder_mask: boolean;
24951
25016
  pcb_copper_pour_id: string;
24952
25017
  brep_shape: {
24953
25018
  outer_ring: {
@@ -24993,6 +25058,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
24993
25058
  subcircuit_id?: string | undefined;
24994
25059
  pcb_group_id?: string | undefined;
24995
25060
  source_net_id?: string | undefined;
25061
+ covered_with_solder_mask?: boolean | undefined;
24996
25062
  pcb_copper_pour_id?: string | undefined;
24997
25063
  }>, z.ZodObject<{
24998
25064
  type: z.ZodLiteral<"pcb_copper_pour">;
@@ -25009,6 +25075,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25009
25075
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
25010
25076
  }>;
25011
25077
  source_net_id: z.ZodOptional<z.ZodString>;
25078
+ covered_with_solder_mask: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
25012
25079
  } & {
25013
25080
  shape: z.ZodLiteral<"polygon">;
25014
25081
  points: z.ZodArray<z.ZodObject<{
@@ -25029,6 +25096,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25029
25096
  x: number;
25030
25097
  y: number;
25031
25098
  }[];
25099
+ covered_with_solder_mask: boolean;
25032
25100
  pcb_copper_pour_id: string;
25033
25101
  subcircuit_id?: string | undefined;
25034
25102
  pcb_group_id?: string | undefined;
@@ -25046,6 +25114,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25046
25114
  subcircuit_id?: string | undefined;
25047
25115
  pcb_group_id?: string | undefined;
25048
25116
  source_net_id?: string | undefined;
25117
+ covered_with_solder_mask?: boolean | undefined;
25049
25118
  pcb_copper_pour_id?: string | undefined;
25050
25119
  }>]>, z.ZodObject<{
25051
25120
  type: z.ZodLiteral<"pcb_component_outside_board_error">;
package/dist/index.mjs CHANGED
@@ -1271,6 +1271,8 @@ var pcb_component = z69.object({
1271
1271
  do_not_place: z69.boolean().optional(),
1272
1272
  subcircuit_id: z69.string().optional(),
1273
1273
  pcb_group_id: z69.string().optional(),
1274
+ position_mode: z69.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
1275
+ positioned_relative_to_pcb_group_id: z69.string().optional(),
1274
1276
  obstructs_within_bounds: z69.boolean().default(true).describe(
1275
1277
  "Does this component take up all the space within its bounds on a layer. This is generally true except for when separated pin headers are being represented by a single component (in which case, chips can be placed between the pin headers) or for tall modules where chips fit underneath"
1276
1278
  )
@@ -2371,6 +2373,7 @@ var pcb_group = z109.object({
2371
2373
  anchor_position: point.optional(),
2372
2374
  anchor_alignment: z109.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
2373
2375
  pcb_component_ids: z109.array(z109.string()),
2376
+ child_layout_mode: z109.enum(["packed", "none"]).optional(),
2374
2377
  name: z109.string().optional(),
2375
2378
  description: z109.string().optional(),
2376
2379
  layout_mode: z109.string().optional(),
@@ -2478,7 +2481,8 @@ var pcb_copper_pour_base = z116.object({
2478
2481
  pcb_group_id: z116.string().optional(),
2479
2482
  subcircuit_id: z116.string().optional(),
2480
2483
  layer: layer_ref,
2481
- source_net_id: z116.string().optional()
2484
+ source_net_id: z116.string().optional(),
2485
+ covered_with_solder_mask: z116.boolean().optional().default(true)
2482
2486
  });
2483
2487
  var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
2484
2488
  shape: z116.literal("rect"),