circuit-json 0.0.300 → 0.0.302
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 +5 -2
- package/dist/index.d.mts +50 -20
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -867,8 +867,8 @@ interface PcbBoard {
|
|
|
867
867
|
pcb_panel_id?: string
|
|
868
868
|
is_subcircuit?: boolean
|
|
869
869
|
subcircuit_id?: string
|
|
870
|
-
width
|
|
871
|
-
height
|
|
870
|
+
width?: Length
|
|
871
|
+
height?: Length
|
|
872
872
|
thickness: Length
|
|
873
873
|
num_layers: number
|
|
874
874
|
center: Point
|
|
@@ -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
|
/**
|
|
@@ -3045,8 +3053,8 @@ declare const pcb_board: z.ZodObject<{
|
|
|
3045
3053
|
pcb_panel_id: z.ZodOptional<z.ZodString>;
|
|
3046
3054
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
3047
3055
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
3048
|
-
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number
|
|
3049
|
-
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number
|
|
3056
|
+
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
3057
|
+
height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
3050
3058
|
center: z.ZodObject<{
|
|
3051
3059
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
3052
3060
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -3072,8 +3080,6 @@ declare const pcb_board: z.ZodObject<{
|
|
|
3072
3080
|
material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
|
|
3073
3081
|
}, "strip", z.ZodTypeAny, {
|
|
3074
3082
|
type: "pcb_board";
|
|
3075
|
-
width: number;
|
|
3076
|
-
height: number;
|
|
3077
3083
|
center: {
|
|
3078
3084
|
x: number;
|
|
3079
3085
|
y: number;
|
|
@@ -3082,6 +3088,8 @@ declare const pcb_board: z.ZodObject<{
|
|
|
3082
3088
|
thickness: number;
|
|
3083
3089
|
num_layers: number;
|
|
3084
3090
|
material: "fr4" | "fr1";
|
|
3091
|
+
width?: number | undefined;
|
|
3092
|
+
height?: number | undefined;
|
|
3085
3093
|
subcircuit_id?: string | undefined;
|
|
3086
3094
|
pcb_panel_id?: string | undefined;
|
|
3087
3095
|
is_subcircuit?: boolean | undefined;
|
|
@@ -3091,12 +3099,12 @@ declare const pcb_board: z.ZodObject<{
|
|
|
3091
3099
|
}[] | undefined;
|
|
3092
3100
|
}, {
|
|
3093
3101
|
type: "pcb_board";
|
|
3094
|
-
width: string | number;
|
|
3095
|
-
height: string | number;
|
|
3096
3102
|
center: {
|
|
3097
3103
|
x: string | number;
|
|
3098
3104
|
y: string | number;
|
|
3099
3105
|
};
|
|
3106
|
+
width?: string | number | undefined;
|
|
3107
|
+
height?: string | number | undefined;
|
|
3100
3108
|
subcircuit_id?: string | undefined;
|
|
3101
3109
|
pcb_board_id?: string | undefined;
|
|
3102
3110
|
pcb_panel_id?: string | undefined;
|
|
@@ -3118,8 +3126,8 @@ interface PcbBoard {
|
|
|
3118
3126
|
pcb_panel_id?: string;
|
|
3119
3127
|
is_subcircuit?: boolean;
|
|
3120
3128
|
subcircuit_id?: string;
|
|
3121
|
-
width
|
|
3122
|
-
height
|
|
3129
|
+
width?: Length;
|
|
3130
|
+
height?: Length;
|
|
3123
3131
|
thickness: Length;
|
|
3124
3132
|
num_layers: number;
|
|
3125
3133
|
center: Point;
|
|
@@ -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">;
|
|
@@ -15527,8 +15545,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15527
15545
|
pcb_panel_id: z.ZodOptional<z.ZodString>;
|
|
15528
15546
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
15529
15547
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
15530
|
-
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number
|
|
15531
|
-
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number
|
|
15548
|
+
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
15549
|
+
height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
15532
15550
|
center: z.ZodObject<{
|
|
15533
15551
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
15534
15552
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -15554,8 +15572,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15554
15572
|
material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
|
|
15555
15573
|
}, "strip", z.ZodTypeAny, {
|
|
15556
15574
|
type: "pcb_board";
|
|
15557
|
-
width: number;
|
|
15558
|
-
height: number;
|
|
15559
15575
|
center: {
|
|
15560
15576
|
x: number;
|
|
15561
15577
|
y: number;
|
|
@@ -15564,6 +15580,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15564
15580
|
thickness: number;
|
|
15565
15581
|
num_layers: number;
|
|
15566
15582
|
material: "fr4" | "fr1";
|
|
15583
|
+
width?: number | undefined;
|
|
15584
|
+
height?: number | undefined;
|
|
15567
15585
|
subcircuit_id?: string | undefined;
|
|
15568
15586
|
pcb_panel_id?: string | undefined;
|
|
15569
15587
|
is_subcircuit?: boolean | undefined;
|
|
@@ -15573,12 +15591,12 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15573
15591
|
}[] | undefined;
|
|
15574
15592
|
}, {
|
|
15575
15593
|
type: "pcb_board";
|
|
15576
|
-
width: string | number;
|
|
15577
|
-
height: string | number;
|
|
15578
15594
|
center: {
|
|
15579
15595
|
x: string | number;
|
|
15580
15596
|
y: string | number;
|
|
15581
15597
|
};
|
|
15598
|
+
width?: string | number | undefined;
|
|
15599
|
+
height?: string | number | undefined;
|
|
15582
15600
|
subcircuit_id?: string | undefined;
|
|
15583
15601
|
pcb_board_id?: string | undefined;
|
|
15584
15602
|
pcb_panel_id?: string | undefined;
|
|
@@ -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">;
|
|
@@ -23043,8 +23070,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23043
23070
|
pcb_panel_id: z.ZodOptional<z.ZodString>;
|
|
23044
23071
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
23045
23072
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
23046
|
-
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number
|
|
23047
|
-
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number
|
|
23073
|
+
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
23074
|
+
height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
23048
23075
|
center: z.ZodObject<{
|
|
23049
23076
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
23050
23077
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -23070,8 +23097,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23070
23097
|
material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
|
|
23071
23098
|
}, "strip", z.ZodTypeAny, {
|
|
23072
23099
|
type: "pcb_board";
|
|
23073
|
-
width: number;
|
|
23074
|
-
height: number;
|
|
23075
23100
|
center: {
|
|
23076
23101
|
x: number;
|
|
23077
23102
|
y: number;
|
|
@@ -23080,6 +23105,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23080
23105
|
thickness: number;
|
|
23081
23106
|
num_layers: number;
|
|
23082
23107
|
material: "fr4" | "fr1";
|
|
23108
|
+
width?: number | undefined;
|
|
23109
|
+
height?: number | undefined;
|
|
23083
23110
|
subcircuit_id?: string | undefined;
|
|
23084
23111
|
pcb_panel_id?: string | undefined;
|
|
23085
23112
|
is_subcircuit?: boolean | undefined;
|
|
@@ -23089,12 +23116,12 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23089
23116
|
}[] | undefined;
|
|
23090
23117
|
}, {
|
|
23091
23118
|
type: "pcb_board";
|
|
23092
|
-
width: string | number;
|
|
23093
|
-
height: string | number;
|
|
23094
23119
|
center: {
|
|
23095
23120
|
x: string | number;
|
|
23096
23121
|
y: string | number;
|
|
23097
23122
|
};
|
|
23123
|
+
width?: string | number | undefined;
|
|
23124
|
+
height?: string | number | undefined;
|
|
23098
23125
|
subcircuit_id?: string | undefined;
|
|
23099
23126
|
pcb_board_id?: string | undefined;
|
|
23100
23127
|
pcb_panel_id?: string | undefined;
|
|
@@ -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
|
)
|
|
@@ -1842,8 +1844,8 @@ var pcb_board = z83.object({
|
|
|
1842
1844
|
pcb_panel_id: z83.string().optional(),
|
|
1843
1845
|
is_subcircuit: z83.boolean().optional(),
|
|
1844
1846
|
subcircuit_id: z83.string().optional(),
|
|
1845
|
-
width: length,
|
|
1846
|
-
height: length,
|
|
1847
|
+
width: length.optional(),
|
|
1848
|
+
height: length.optional(),
|
|
1847
1849
|
center: point,
|
|
1848
1850
|
thickness: length.optional().default(1.4),
|
|
1849
1851
|
num_layers: z83.number().optional().default(4),
|
|
@@ -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(),
|