circuit-json 0.0.377 → 0.0.379
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/dist/index.d.mts +30 -0
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -406,6 +406,7 @@ declare const pcb_component: z.ZodObject<{
|
|
|
406
406
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
407
407
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
408
408
|
do_not_place: z.ZodOptional<z.ZodBoolean>;
|
|
409
|
+
is_allowed_to_be_off_board: z.ZodOptional<z.ZodBoolean>;
|
|
409
410
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
410
411
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
411
412
|
position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
|
|
@@ -428,6 +429,7 @@ declare const pcb_component: z.ZodObject<{
|
|
|
428
429
|
display_offset_x?: string | undefined;
|
|
429
430
|
display_offset_y?: string | undefined;
|
|
430
431
|
do_not_place?: boolean | undefined;
|
|
432
|
+
is_allowed_to_be_off_board?: boolean | undefined;
|
|
431
433
|
subcircuit_id?: string | undefined;
|
|
432
434
|
pcb_group_id?: string | undefined;
|
|
433
435
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
@@ -450,6 +452,7 @@ declare const pcb_component: z.ZodObject<{
|
|
|
450
452
|
display_offset_x?: string | undefined;
|
|
451
453
|
display_offset_y?: string | undefined;
|
|
452
454
|
do_not_place?: boolean | undefined;
|
|
455
|
+
is_allowed_to_be_off_board?: boolean | undefined;
|
|
453
456
|
subcircuit_id?: string | undefined;
|
|
454
457
|
pcb_group_id?: string | undefined;
|
|
455
458
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
@@ -474,6 +477,7 @@ interface PcbComponent {
|
|
|
474
477
|
width: Length;
|
|
475
478
|
height: Length;
|
|
476
479
|
do_not_place?: boolean;
|
|
480
|
+
is_allowed_to_be_off_board?: boolean;
|
|
477
481
|
pcb_group_id?: string;
|
|
478
482
|
position_mode?: "packed" | "relative_to_group_anchor" | "none";
|
|
479
483
|
positioned_relative_to_pcb_group_id?: string;
|
|
@@ -3709,8 +3713,10 @@ declare const pcb_board: z.ZodObject<{
|
|
|
3709
3713
|
type: z.ZodLiteral<"pcb_board">;
|
|
3710
3714
|
pcb_board_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
3711
3715
|
pcb_panel_id: z.ZodOptional<z.ZodString>;
|
|
3716
|
+
carrier_pcb_board_id: z.ZodOptional<z.ZodString>;
|
|
3712
3717
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
3713
3718
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
3719
|
+
is_mounted_to_carrier_board: z.ZodOptional<z.ZodBoolean>;
|
|
3714
3720
|
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
3715
3721
|
height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
3716
3722
|
center: z.ZodObject<{
|
|
@@ -3769,7 +3775,9 @@ declare const pcb_board: z.ZodObject<{
|
|
|
3769
3775
|
position_mode?: "none" | "relative_to_panel_anchor" | undefined;
|
|
3770
3776
|
shape?: "rect" | "polygon" | undefined;
|
|
3771
3777
|
pcb_panel_id?: string | undefined;
|
|
3778
|
+
carrier_pcb_board_id?: string | undefined;
|
|
3772
3779
|
is_subcircuit?: boolean | undefined;
|
|
3780
|
+
is_mounted_to_carrier_board?: boolean | undefined;
|
|
3773
3781
|
outline?: {
|
|
3774
3782
|
x: number;
|
|
3775
3783
|
y: number;
|
|
@@ -3794,7 +3802,9 @@ declare const pcb_board: z.ZodObject<{
|
|
|
3794
3802
|
shape?: "rect" | "polygon" | undefined;
|
|
3795
3803
|
pcb_board_id?: string | undefined;
|
|
3796
3804
|
pcb_panel_id?: string | undefined;
|
|
3805
|
+
carrier_pcb_board_id?: string | undefined;
|
|
3797
3806
|
is_subcircuit?: boolean | undefined;
|
|
3807
|
+
is_mounted_to_carrier_board?: boolean | undefined;
|
|
3798
3808
|
thickness?: string | number | undefined;
|
|
3799
3809
|
num_layers?: number | undefined;
|
|
3800
3810
|
outline?: {
|
|
@@ -3815,8 +3825,10 @@ interface PcbBoard {
|
|
|
3815
3825
|
type: "pcb_board";
|
|
3816
3826
|
pcb_board_id: string;
|
|
3817
3827
|
pcb_panel_id?: string;
|
|
3828
|
+
carrier_pcb_board_id?: string;
|
|
3818
3829
|
is_subcircuit?: boolean;
|
|
3819
3830
|
subcircuit_id?: string;
|
|
3831
|
+
is_mounted_to_carrier_board?: boolean;
|
|
3820
3832
|
width?: Length;
|
|
3821
3833
|
height?: Length;
|
|
3822
3834
|
display_offset_x?: string;
|
|
@@ -16740,6 +16752,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16740
16752
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
16741
16753
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
16742
16754
|
do_not_place: z.ZodOptional<z.ZodBoolean>;
|
|
16755
|
+
is_allowed_to_be_off_board: z.ZodOptional<z.ZodBoolean>;
|
|
16743
16756
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
16744
16757
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
16745
16758
|
position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
|
|
@@ -16762,6 +16775,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16762
16775
|
display_offset_x?: string | undefined;
|
|
16763
16776
|
display_offset_y?: string | undefined;
|
|
16764
16777
|
do_not_place?: boolean | undefined;
|
|
16778
|
+
is_allowed_to_be_off_board?: boolean | undefined;
|
|
16765
16779
|
subcircuit_id?: string | undefined;
|
|
16766
16780
|
pcb_group_id?: string | undefined;
|
|
16767
16781
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
@@ -16784,6 +16798,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16784
16798
|
display_offset_x?: string | undefined;
|
|
16785
16799
|
display_offset_y?: string | undefined;
|
|
16786
16800
|
do_not_place?: boolean | undefined;
|
|
16801
|
+
is_allowed_to_be_off_board?: boolean | undefined;
|
|
16787
16802
|
subcircuit_id?: string | undefined;
|
|
16788
16803
|
pcb_group_id?: string | undefined;
|
|
16789
16804
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
@@ -18675,8 +18690,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18675
18690
|
type: z.ZodLiteral<"pcb_board">;
|
|
18676
18691
|
pcb_board_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
18677
18692
|
pcb_panel_id: z.ZodOptional<z.ZodString>;
|
|
18693
|
+
carrier_pcb_board_id: z.ZodOptional<z.ZodString>;
|
|
18678
18694
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
18679
18695
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
18696
|
+
is_mounted_to_carrier_board: z.ZodOptional<z.ZodBoolean>;
|
|
18680
18697
|
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
18681
18698
|
height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
18682
18699
|
center: z.ZodObject<{
|
|
@@ -18735,7 +18752,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18735
18752
|
position_mode?: "none" | "relative_to_panel_anchor" | undefined;
|
|
18736
18753
|
shape?: "rect" | "polygon" | undefined;
|
|
18737
18754
|
pcb_panel_id?: string | undefined;
|
|
18755
|
+
carrier_pcb_board_id?: string | undefined;
|
|
18738
18756
|
is_subcircuit?: boolean | undefined;
|
|
18757
|
+
is_mounted_to_carrier_board?: boolean | undefined;
|
|
18739
18758
|
outline?: {
|
|
18740
18759
|
x: number;
|
|
18741
18760
|
y: number;
|
|
@@ -18760,7 +18779,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18760
18779
|
shape?: "rect" | "polygon" | undefined;
|
|
18761
18780
|
pcb_board_id?: string | undefined;
|
|
18762
18781
|
pcb_panel_id?: string | undefined;
|
|
18782
|
+
carrier_pcb_board_id?: string | undefined;
|
|
18763
18783
|
is_subcircuit?: boolean | undefined;
|
|
18784
|
+
is_mounted_to_carrier_board?: boolean | undefined;
|
|
18764
18785
|
thickness?: string | number | undefined;
|
|
18765
18786
|
num_layers?: number | undefined;
|
|
18766
18787
|
outline?: {
|
|
@@ -25572,6 +25593,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
25572
25593
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
25573
25594
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
25574
25595
|
do_not_place: z.ZodOptional<z.ZodBoolean>;
|
|
25596
|
+
is_allowed_to_be_off_board: z.ZodOptional<z.ZodBoolean>;
|
|
25575
25597
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
25576
25598
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
25577
25599
|
position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
|
|
@@ -25594,6 +25616,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
25594
25616
|
display_offset_x?: string | undefined;
|
|
25595
25617
|
display_offset_y?: string | undefined;
|
|
25596
25618
|
do_not_place?: boolean | undefined;
|
|
25619
|
+
is_allowed_to_be_off_board?: boolean | undefined;
|
|
25597
25620
|
subcircuit_id?: string | undefined;
|
|
25598
25621
|
pcb_group_id?: string | undefined;
|
|
25599
25622
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
@@ -25616,6 +25639,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
25616
25639
|
display_offset_x?: string | undefined;
|
|
25617
25640
|
display_offset_y?: string | undefined;
|
|
25618
25641
|
do_not_place?: boolean | undefined;
|
|
25642
|
+
is_allowed_to_be_off_board?: boolean | undefined;
|
|
25619
25643
|
subcircuit_id?: string | undefined;
|
|
25620
25644
|
pcb_group_id?: string | undefined;
|
|
25621
25645
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
@@ -27507,8 +27531,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
27507
27531
|
type: z.ZodLiteral<"pcb_board">;
|
|
27508
27532
|
pcb_board_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
27509
27533
|
pcb_panel_id: z.ZodOptional<z.ZodString>;
|
|
27534
|
+
carrier_pcb_board_id: z.ZodOptional<z.ZodString>;
|
|
27510
27535
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
27511
27536
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
27537
|
+
is_mounted_to_carrier_board: z.ZodOptional<z.ZodBoolean>;
|
|
27512
27538
|
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
27513
27539
|
height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
27514
27540
|
center: z.ZodObject<{
|
|
@@ -27567,7 +27593,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
27567
27593
|
position_mode?: "none" | "relative_to_panel_anchor" | undefined;
|
|
27568
27594
|
shape?: "rect" | "polygon" | undefined;
|
|
27569
27595
|
pcb_panel_id?: string | undefined;
|
|
27596
|
+
carrier_pcb_board_id?: string | undefined;
|
|
27570
27597
|
is_subcircuit?: boolean | undefined;
|
|
27598
|
+
is_mounted_to_carrier_board?: boolean | undefined;
|
|
27571
27599
|
outline?: {
|
|
27572
27600
|
x: number;
|
|
27573
27601
|
y: number;
|
|
@@ -27592,7 +27620,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
27592
27620
|
shape?: "rect" | "polygon" | undefined;
|
|
27593
27621
|
pcb_board_id?: string | undefined;
|
|
27594
27622
|
pcb_panel_id?: string | undefined;
|
|
27623
|
+
carrier_pcb_board_id?: string | undefined;
|
|
27595
27624
|
is_subcircuit?: boolean | undefined;
|
|
27625
|
+
is_mounted_to_carrier_board?: boolean | undefined;
|
|
27596
27626
|
thickness?: string | number | undefined;
|
|
27597
27627
|
num_layers?: number | undefined;
|
|
27598
27628
|
outline?: {
|
package/dist/index.mjs
CHANGED
|
@@ -1428,6 +1428,7 @@ var pcb_component = z80.object({
|
|
|
1428
1428
|
width: length,
|
|
1429
1429
|
height: length,
|
|
1430
1430
|
do_not_place: z80.boolean().optional(),
|
|
1431
|
+
is_allowed_to_be_off_board: z80.boolean().optional(),
|
|
1431
1432
|
subcircuit_id: z80.string().optional(),
|
|
1432
1433
|
pcb_group_id: z80.string().optional(),
|
|
1433
1434
|
position_mode: z80.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
|
|
@@ -2101,8 +2102,10 @@ var pcb_board = z94.object({
|
|
|
2101
2102
|
type: z94.literal("pcb_board"),
|
|
2102
2103
|
pcb_board_id: getZodPrefixedIdWithDefault("pcb_board"),
|
|
2103
2104
|
pcb_panel_id: z94.string().optional(),
|
|
2105
|
+
carrier_pcb_board_id: z94.string().optional(),
|
|
2104
2106
|
is_subcircuit: z94.boolean().optional(),
|
|
2105
2107
|
subcircuit_id: z94.string().optional(),
|
|
2108
|
+
is_mounted_to_carrier_board: z94.boolean().optional(),
|
|
2106
2109
|
width: length.optional(),
|
|
2107
2110
|
height: length.optional(),
|
|
2108
2111
|
center: point,
|