circuit-json 0.0.300 → 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
  ```
@@ -1302,6 +1304,7 @@ interface PcbGroup {
1302
1304
  | "bottom_left"
1303
1305
  | "bottom_right"
1304
1306
  pcb_component_ids: string[]
1307
+ child_layout_mode?: "packed" | "none"
1305
1308
  name?: string
1306
1309
  description?: string
1307
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;
@@ -13897,6 +13909,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13897
13909
  do_not_place: z.ZodOptional<z.ZodBoolean>;
13898
13910
  subcircuit_id: z.ZodOptional<z.ZodString>;
13899
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>;
13900
13914
  obstructs_within_bounds: z.ZodDefault<z.ZodBoolean>;
13901
13915
  }, "strip", z.ZodTypeAny, {
13902
13916
  type: "pcb_component";
@@ -13914,6 +13928,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13914
13928
  do_not_place?: boolean | undefined;
13915
13929
  subcircuit_id?: string | undefined;
13916
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;
13917
13933
  }, {
13918
13934
  type: "pcb_component";
13919
13935
  width: string | number;
@@ -13931,6 +13947,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13931
13947
  do_not_place?: boolean | undefined;
13932
13948
  subcircuit_id?: string | undefined;
13933
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;
13934
13952
  obstructs_within_bounds?: boolean | undefined;
13935
13953
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
13936
13954
  type: z.ZodLiteral<"pcb_hole">;
@@ -15648,6 +15666,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15648
15666
  }>>;
15649
15667
  anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
15650
15668
  pcb_component_ids: z.ZodArray<z.ZodString, "many">;
15669
+ child_layout_mode: z.ZodOptional<z.ZodEnum<["packed", "none"]>>;
15651
15670
  name: z.ZodOptional<z.ZodString>;
15652
15671
  description: z.ZodOptional<z.ZodString>;
15653
15672
  layout_mode: z.ZodOptional<z.ZodString>;
@@ -15683,6 +15702,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15683
15702
  y: number;
15684
15703
  } | undefined;
15685
15704
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
15705
+ child_layout_mode?: "packed" | "none" | undefined;
15686
15706
  layout_mode?: string | undefined;
15687
15707
  autorouter_configuration?: {
15688
15708
  trace_clearance: number;
@@ -15712,6 +15732,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15712
15732
  y: string | number;
15713
15733
  } | undefined;
15714
15734
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
15735
+ child_layout_mode?: "packed" | "none" | undefined;
15715
15736
  layout_mode?: string | undefined;
15716
15737
  autorouter_configuration?: {
15717
15738
  trace_clearance: string | number;
@@ -21413,6 +21434,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
21413
21434
  do_not_place: z.ZodOptional<z.ZodBoolean>;
21414
21435
  subcircuit_id: z.ZodOptional<z.ZodString>;
21415
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>;
21416
21439
  obstructs_within_bounds: z.ZodDefault<z.ZodBoolean>;
21417
21440
  }, "strip", z.ZodTypeAny, {
21418
21441
  type: "pcb_component";
@@ -21430,6 +21453,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
21430
21453
  do_not_place?: boolean | undefined;
21431
21454
  subcircuit_id?: string | undefined;
21432
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;
21433
21458
  }, {
21434
21459
  type: "pcb_component";
21435
21460
  width: string | number;
@@ -21447,6 +21472,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
21447
21472
  do_not_place?: boolean | undefined;
21448
21473
  subcircuit_id?: string | undefined;
21449
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;
21450
21477
  obstructs_within_bounds?: boolean | undefined;
21451
21478
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
21452
21479
  type: z.ZodLiteral<"pcb_hole">;
@@ -23164,6 +23191,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23164
23191
  }>>;
23165
23192
  anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
23166
23193
  pcb_component_ids: z.ZodArray<z.ZodString, "many">;
23194
+ child_layout_mode: z.ZodOptional<z.ZodEnum<["packed", "none"]>>;
23167
23195
  name: z.ZodOptional<z.ZodString>;
23168
23196
  description: z.ZodOptional<z.ZodString>;
23169
23197
  layout_mode: z.ZodOptional<z.ZodString>;
@@ -23199,6 +23227,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23199
23227
  y: number;
23200
23228
  } | undefined;
23201
23229
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
23230
+ child_layout_mode?: "packed" | "none" | undefined;
23202
23231
  layout_mode?: string | undefined;
23203
23232
  autorouter_configuration?: {
23204
23233
  trace_clearance: number;
@@ -23228,6 +23257,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23228
23257
  y: string | number;
23229
23258
  } | undefined;
23230
23259
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
23260
+ child_layout_mode?: "packed" | "none" | undefined;
23231
23261
  layout_mode?: string | undefined;
23232
23262
  autorouter_configuration?: {
23233
23263
  trace_clearance: string | number;
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(),