circuit-json 0.0.337 → 0.0.339

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 CHANGED
@@ -3655,6 +3655,8 @@ declare const pcb_board: z.ZodObject<{
3655
3655
  x: string | number;
3656
3656
  y: string | number;
3657
3657
  }>;
3658
+ display_offset_x: z.ZodOptional<z.ZodString>;
3659
+ display_offset_y: z.ZodOptional<z.ZodString>;
3658
3660
  thickness: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
3659
3661
  num_layers: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3660
3662
  outline: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3669,6 +3671,18 @@ declare const pcb_board: z.ZodObject<{
3669
3671
  }>, "many">>;
3670
3672
  shape: z.ZodOptional<z.ZodEnum<["rect", "polygon"]>>;
3671
3673
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
3674
+ anchor_position: z.ZodOptional<z.ZodObject<{
3675
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
3676
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
3677
+ }, "strip", z.ZodTypeAny, {
3678
+ x: number;
3679
+ y: number;
3680
+ }, {
3681
+ x: string | number;
3682
+ y: string | number;
3683
+ }>>;
3684
+ anchor_alignment: z.ZodDefault<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
3685
+ position_mode: z.ZodOptional<z.ZodEnum<["relative_to_panel_anchor", "none"]>>;
3672
3686
  }, "strip", z.ZodTypeAny, {
3673
3687
  type: "pcb_board";
3674
3688
  center: {
@@ -3679,9 +3693,13 @@ declare const pcb_board: z.ZodObject<{
3679
3693
  thickness: number;
3680
3694
  num_layers: number;
3681
3695
  material: "fr4" | "fr1";
3696
+ anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
3682
3697
  width?: number | undefined;
3683
3698
  height?: number | undefined;
3699
+ display_offset_x?: string | undefined;
3700
+ display_offset_y?: string | undefined;
3684
3701
  subcircuit_id?: string | undefined;
3702
+ position_mode?: "none" | "relative_to_panel_anchor" | undefined;
3685
3703
  shape?: "rect" | "polygon" | undefined;
3686
3704
  pcb_panel_id?: string | undefined;
3687
3705
  is_subcircuit?: boolean | undefined;
@@ -3689,6 +3707,10 @@ declare const pcb_board: z.ZodObject<{
3689
3707
  x: number;
3690
3708
  y: number;
3691
3709
  }[] | undefined;
3710
+ anchor_position?: {
3711
+ x: number;
3712
+ y: number;
3713
+ } | undefined;
3692
3714
  }, {
3693
3715
  type: "pcb_board";
3694
3716
  center: {
@@ -3697,7 +3719,10 @@ declare const pcb_board: z.ZodObject<{
3697
3719
  };
3698
3720
  width?: string | number | undefined;
3699
3721
  height?: string | number | undefined;
3722
+ display_offset_x?: string | undefined;
3723
+ display_offset_y?: string | undefined;
3700
3724
  subcircuit_id?: string | undefined;
3725
+ position_mode?: "none" | "relative_to_panel_anchor" | undefined;
3701
3726
  shape?: "rect" | "polygon" | undefined;
3702
3727
  pcb_board_id?: string | undefined;
3703
3728
  pcb_panel_id?: string | undefined;
@@ -3709,6 +3734,11 @@ declare const pcb_board: z.ZodObject<{
3709
3734
  y: string | number;
3710
3735
  }[] | undefined;
3711
3736
  material?: "fr4" | "fr1" | undefined;
3737
+ anchor_position?: {
3738
+ x: string | number;
3739
+ y: string | number;
3740
+ } | undefined;
3741
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
3712
3742
  }>;
3713
3743
  /**
3714
3744
  * Defines the board outline of the PCB
@@ -3721,12 +3751,17 @@ interface PcbBoard {
3721
3751
  subcircuit_id?: string;
3722
3752
  width?: Length;
3723
3753
  height?: Length;
3754
+ display_offset_x?: string;
3755
+ display_offset_y?: string;
3724
3756
  thickness: Length;
3725
3757
  num_layers: number;
3726
3758
  center: Point;
3727
3759
  outline?: Point[];
3728
3760
  shape?: "rect" | "polygon";
3729
3761
  material: "fr4" | "fr1";
3762
+ anchor_position?: Point;
3763
+ anchor_alignment: NinePointAnchor;
3764
+ position_mode?: "relative_to_panel_anchor" | "none";
3730
3765
  }
3731
3766
  type PcbBoardInput = z.input<typeof pcb_board>;
3732
3767
  /**
@@ -4081,14 +4116,14 @@ declare const pcb_silkscreen_text: z.ZodObject<{
4081
4116
  pcb_component_id: string;
4082
4117
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4083
4118
  text: string;
4084
- pcb_silkscreen_text_id: string;
4085
- font: "tscircuit2024";
4086
- font_size: number;
4087
4119
  anchor_position: {
4088
4120
  x: number;
4089
4121
  y: number;
4090
4122
  };
4091
4123
  anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
4124
+ pcb_silkscreen_text_id: string;
4125
+ font: "tscircuit2024";
4126
+ font_size: number;
4092
4127
  subcircuit_id?: string | undefined;
4093
4128
  pcb_group_id?: string | undefined;
4094
4129
  ccw_rotation?: number | undefined;
@@ -4110,6 +4145,11 @@ declare const pcb_silkscreen_text: z.ZodObject<{
4110
4145
  subcircuit_id?: string | undefined;
4111
4146
  pcb_group_id?: string | undefined;
4112
4147
  ccw_rotation?: number | undefined;
4148
+ anchor_position?: {
4149
+ x: string | number;
4150
+ y: string | number;
4151
+ } | undefined;
4152
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
4113
4153
  pcb_silkscreen_text_id?: string | undefined;
4114
4154
  font?: "tscircuit2024" | undefined;
4115
4155
  font_size?: string | number | undefined;
@@ -4121,11 +4161,6 @@ declare const pcb_silkscreen_text: z.ZodObject<{
4121
4161
  right: string | number;
4122
4162
  } | undefined;
4123
4163
  is_mirrored?: boolean | undefined;
4124
- anchor_position?: {
4125
- x: string | number;
4126
- y: string | number;
4127
- } | undefined;
4128
- anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
4129
4164
  }>;
4130
4165
  type PcbSilkscreenTextInput = z.input<typeof pcb_silkscreen_text>;
4131
4166
  /**
@@ -4211,13 +4246,13 @@ declare const pcb_copper_text: z.ZodObject<{
4211
4246
  pcb_component_id: string;
4212
4247
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4213
4248
  text: string;
4214
- font: "tscircuit2024";
4215
- font_size: number;
4216
4249
  anchor_position: {
4217
4250
  x: number;
4218
4251
  y: number;
4219
4252
  };
4220
4253
  anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
4254
+ font: "tscircuit2024";
4255
+ font_size: number;
4221
4256
  pcb_copper_text_id: string;
4222
4257
  subcircuit_id?: string | undefined;
4223
4258
  pcb_group_id?: string | undefined;
@@ -4240,6 +4275,11 @@ declare const pcb_copper_text: z.ZodObject<{
4240
4275
  subcircuit_id?: string | undefined;
4241
4276
  pcb_group_id?: string | undefined;
4242
4277
  ccw_rotation?: number | undefined;
4278
+ anchor_position?: {
4279
+ x: string | number;
4280
+ y: string | number;
4281
+ } | undefined;
4282
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
4243
4283
  font?: "tscircuit2024" | undefined;
4244
4284
  font_size?: string | number | undefined;
4245
4285
  is_knockout?: boolean | undefined;
@@ -4250,11 +4290,6 @@ declare const pcb_copper_text: z.ZodObject<{
4250
4290
  right: string | number;
4251
4291
  } | undefined;
4252
4292
  is_mirrored?: boolean | undefined;
4253
- anchor_position?: {
4254
- x: string | number;
4255
- y: string | number;
4256
- } | undefined;
4257
- anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
4258
4293
  pcb_copper_text_id?: string | undefined;
4259
4294
  }>;
4260
4295
  type PcbCopperTextInput = z.input<typeof pcb_copper_text>;
@@ -4615,13 +4650,13 @@ declare const pcb_fabrication_note_text: z.ZodObject<{
4615
4650
  pcb_component_id: string;
4616
4651
  layer: "top" | "bottom";
4617
4652
  text: string;
4618
- font: "tscircuit2024";
4619
- font_size: number;
4620
4653
  anchor_position: {
4621
4654
  x: number;
4622
4655
  y: number;
4623
4656
  };
4624
4657
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
4658
+ font: "tscircuit2024";
4659
+ font_size: number;
4625
4660
  pcb_fabrication_note_text_id: string;
4626
4661
  subcircuit_id?: string | undefined;
4627
4662
  pcb_group_id?: string | undefined;
@@ -4633,13 +4668,13 @@ declare const pcb_fabrication_note_text: z.ZodObject<{
4633
4668
  text: string;
4634
4669
  subcircuit_id?: string | undefined;
4635
4670
  pcb_group_id?: string | undefined;
4636
- font?: "tscircuit2024" | undefined;
4637
- font_size?: string | number | undefined;
4638
4671
  anchor_position?: {
4639
4672
  x: string | number;
4640
4673
  y: string | number;
4641
4674
  } | undefined;
4642
4675
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
4676
+ font?: "tscircuit2024" | undefined;
4677
+ font_size?: string | number | undefined;
4643
4678
  pcb_fabrication_note_text_id?: string | undefined;
4644
4679
  color?: string | undefined;
4645
4680
  }>;
@@ -4983,13 +5018,13 @@ declare const pcb_note_text: z.ZodObject<{
4983
5018
  color: z.ZodOptional<z.ZodString>;
4984
5019
  }, "strip", z.ZodTypeAny, {
4985
5020
  type: "pcb_note_text";
4986
- font: "tscircuit2024";
4987
- font_size: number;
4988
5021
  anchor_position: {
4989
5022
  x: number;
4990
5023
  y: number;
4991
5024
  };
4992
5025
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
5026
+ font: "tscircuit2024";
5027
+ font_size: number;
4993
5028
  pcb_note_text_id: string;
4994
5029
  name?: string | undefined;
4995
5030
  pcb_component_id?: string | undefined;
@@ -5004,13 +5039,13 @@ declare const pcb_note_text: z.ZodObject<{
5004
5039
  subcircuit_id?: string | undefined;
5005
5040
  pcb_group_id?: string | undefined;
5006
5041
  text?: string | undefined;
5007
- font?: "tscircuit2024" | undefined;
5008
- font_size?: string | number | undefined;
5009
5042
  anchor_position?: {
5010
5043
  x: string | number;
5011
5044
  y: string | number;
5012
5045
  } | undefined;
5013
5046
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
5047
+ font?: "tscircuit2024" | undefined;
5048
+ font_size?: string | number | undefined;
5014
5049
  color?: string | undefined;
5015
5050
  pcb_note_text_id?: string | undefined;
5016
5051
  }>;
@@ -17230,6 +17265,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17230
17265
  x: string | number;
17231
17266
  y: string | number;
17232
17267
  }>;
17268
+ display_offset_x: z.ZodOptional<z.ZodString>;
17269
+ display_offset_y: z.ZodOptional<z.ZodString>;
17233
17270
  thickness: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
17234
17271
  num_layers: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
17235
17272
  outline: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -17244,6 +17281,18 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17244
17281
  }>, "many">>;
17245
17282
  shape: z.ZodOptional<z.ZodEnum<["rect", "polygon"]>>;
17246
17283
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
17284
+ anchor_position: z.ZodOptional<z.ZodObject<{
17285
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
17286
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
17287
+ }, "strip", z.ZodTypeAny, {
17288
+ x: number;
17289
+ y: number;
17290
+ }, {
17291
+ x: string | number;
17292
+ y: string | number;
17293
+ }>>;
17294
+ anchor_alignment: z.ZodDefault<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
17295
+ position_mode: z.ZodOptional<z.ZodEnum<["relative_to_panel_anchor", "none"]>>;
17247
17296
  }, "strip", z.ZodTypeAny, {
17248
17297
  type: "pcb_board";
17249
17298
  center: {
@@ -17254,9 +17303,13 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17254
17303
  thickness: number;
17255
17304
  num_layers: number;
17256
17305
  material: "fr4" | "fr1";
17306
+ anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
17257
17307
  width?: number | undefined;
17258
17308
  height?: number | undefined;
17309
+ display_offset_x?: string | undefined;
17310
+ display_offset_y?: string | undefined;
17259
17311
  subcircuit_id?: string | undefined;
17312
+ position_mode?: "none" | "relative_to_panel_anchor" | undefined;
17260
17313
  shape?: "rect" | "polygon" | undefined;
17261
17314
  pcb_panel_id?: string | undefined;
17262
17315
  is_subcircuit?: boolean | undefined;
@@ -17264,6 +17317,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17264
17317
  x: number;
17265
17318
  y: number;
17266
17319
  }[] | undefined;
17320
+ anchor_position?: {
17321
+ x: number;
17322
+ y: number;
17323
+ } | undefined;
17267
17324
  }, {
17268
17325
  type: "pcb_board";
17269
17326
  center: {
@@ -17272,7 +17329,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17272
17329
  };
17273
17330
  width?: string | number | undefined;
17274
17331
  height?: string | number | undefined;
17332
+ display_offset_x?: string | undefined;
17333
+ display_offset_y?: string | undefined;
17275
17334
  subcircuit_id?: string | undefined;
17335
+ position_mode?: "none" | "relative_to_panel_anchor" | undefined;
17276
17336
  shape?: "rect" | "polygon" | undefined;
17277
17337
  pcb_board_id?: string | undefined;
17278
17338
  pcb_panel_id?: string | undefined;
@@ -17284,6 +17344,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17284
17344
  y: string | number;
17285
17345
  }[] | undefined;
17286
17346
  material?: "fr4" | "fr1" | undefined;
17347
+ anchor_position?: {
17348
+ x: string | number;
17349
+ y: string | number;
17350
+ } | undefined;
17351
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
17287
17352
  }>, z.ZodObject<{
17288
17353
  type: z.ZodLiteral<"pcb_panel">;
17289
17354
  pcb_panel_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -17641,14 +17706,14 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17641
17706
  pcb_component_id: string;
17642
17707
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
17643
17708
  text: string;
17644
- pcb_silkscreen_text_id: string;
17645
- font: "tscircuit2024";
17646
- font_size: number;
17647
17709
  anchor_position: {
17648
17710
  x: number;
17649
17711
  y: number;
17650
17712
  };
17651
17713
  anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
17714
+ pcb_silkscreen_text_id: string;
17715
+ font: "tscircuit2024";
17716
+ font_size: number;
17652
17717
  subcircuit_id?: string | undefined;
17653
17718
  pcb_group_id?: string | undefined;
17654
17719
  ccw_rotation?: number | undefined;
@@ -17670,6 +17735,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17670
17735
  subcircuit_id?: string | undefined;
17671
17736
  pcb_group_id?: string | undefined;
17672
17737
  ccw_rotation?: number | undefined;
17738
+ anchor_position?: {
17739
+ x: string | number;
17740
+ y: string | number;
17741
+ } | undefined;
17742
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
17673
17743
  pcb_silkscreen_text_id?: string | undefined;
17674
17744
  font?: "tscircuit2024" | undefined;
17675
17745
  font_size?: string | number | undefined;
@@ -17681,11 +17751,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17681
17751
  right: string | number;
17682
17752
  } | undefined;
17683
17753
  is_mirrored?: boolean | undefined;
17684
- anchor_position?: {
17685
- x: string | number;
17686
- y: string | number;
17687
- } | undefined;
17688
- anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
17689
17754
  }>, z.ZodObject<{
17690
17755
  type: z.ZodLiteral<"pcb_silkscreen_pill">;
17691
17756
  pcb_silkscreen_pill_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -17794,13 +17859,13 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17794
17859
  pcb_component_id: string;
17795
17860
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
17796
17861
  text: string;
17797
- font: "tscircuit2024";
17798
- font_size: number;
17799
17862
  anchor_position: {
17800
17863
  x: number;
17801
17864
  y: number;
17802
17865
  };
17803
17866
  anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
17867
+ font: "tscircuit2024";
17868
+ font_size: number;
17804
17869
  pcb_copper_text_id: string;
17805
17870
  subcircuit_id?: string | undefined;
17806
17871
  pcb_group_id?: string | undefined;
@@ -17823,6 +17888,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17823
17888
  subcircuit_id?: string | undefined;
17824
17889
  pcb_group_id?: string | undefined;
17825
17890
  ccw_rotation?: number | undefined;
17891
+ anchor_position?: {
17892
+ x: string | number;
17893
+ y: string | number;
17894
+ } | undefined;
17895
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
17826
17896
  font?: "tscircuit2024" | undefined;
17827
17897
  font_size?: string | number | undefined;
17828
17898
  is_knockout?: boolean | undefined;
@@ -17833,11 +17903,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17833
17903
  right: string | number;
17834
17904
  } | undefined;
17835
17905
  is_mirrored?: boolean | undefined;
17836
- anchor_position?: {
17837
- x: string | number;
17838
- y: string | number;
17839
- } | undefined;
17840
- anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
17841
17906
  pcb_copper_text_id?: string | undefined;
17842
17907
  }>, z.ZodObject<{
17843
17908
  type: z.ZodLiteral<"pcb_silkscreen_rect">;
@@ -18279,13 +18344,13 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
18279
18344
  pcb_component_id: string;
18280
18345
  layer: "top" | "bottom";
18281
18346
  text: string;
18282
- font: "tscircuit2024";
18283
- font_size: number;
18284
18347
  anchor_position: {
18285
18348
  x: number;
18286
18349
  y: number;
18287
18350
  };
18288
18351
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
18352
+ font: "tscircuit2024";
18353
+ font_size: number;
18289
18354
  pcb_fabrication_note_text_id: string;
18290
18355
  subcircuit_id?: string | undefined;
18291
18356
  pcb_group_id?: string | undefined;
@@ -18297,13 +18362,13 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
18297
18362
  text: string;
18298
18363
  subcircuit_id?: string | undefined;
18299
18364
  pcb_group_id?: string | undefined;
18300
- font?: "tscircuit2024" | undefined;
18301
- font_size?: string | number | undefined;
18302
18365
  anchor_position?: {
18303
18366
  x: string | number;
18304
18367
  y: string | number;
18305
18368
  } | undefined;
18306
18369
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
18370
+ font?: "tscircuit2024" | undefined;
18371
+ font_size?: string | number | undefined;
18307
18372
  pcb_fabrication_note_text_id?: string | undefined;
18308
18373
  color?: string | undefined;
18309
18374
  }>, z.ZodObject<{
@@ -18492,13 +18557,13 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
18492
18557
  color: z.ZodOptional<z.ZodString>;
18493
18558
  }, "strip", z.ZodTypeAny, {
18494
18559
  type: "pcb_note_text";
18495
- font: "tscircuit2024";
18496
- font_size: number;
18497
18560
  anchor_position: {
18498
18561
  x: number;
18499
18562
  y: number;
18500
18563
  };
18501
18564
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
18565
+ font: "tscircuit2024";
18566
+ font_size: number;
18502
18567
  pcb_note_text_id: string;
18503
18568
  name?: string | undefined;
18504
18569
  pcb_component_id?: string | undefined;
@@ -18513,13 +18578,13 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
18513
18578
  subcircuit_id?: string | undefined;
18514
18579
  pcb_group_id?: string | undefined;
18515
18580
  text?: string | undefined;
18516
- font?: "tscircuit2024" | undefined;
18517
- font_size?: string | number | undefined;
18518
18581
  anchor_position?: {
18519
18582
  x: string | number;
18520
18583
  y: string | number;
18521
18584
  } | undefined;
18522
18585
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
18586
+ font?: "tscircuit2024" | undefined;
18587
+ font_size?: string | number | undefined;
18523
18588
  color?: string | undefined;
18524
18589
  pcb_note_text_id?: string | undefined;
18525
18590
  }>, z.ZodObject<{
@@ -25375,6 +25440,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25375
25440
  x: string | number;
25376
25441
  y: string | number;
25377
25442
  }>;
25443
+ display_offset_x: z.ZodOptional<z.ZodString>;
25444
+ display_offset_y: z.ZodOptional<z.ZodString>;
25378
25445
  thickness: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
25379
25446
  num_layers: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
25380
25447
  outline: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -25389,6 +25456,18 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25389
25456
  }>, "many">>;
25390
25457
  shape: z.ZodOptional<z.ZodEnum<["rect", "polygon"]>>;
25391
25458
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
25459
+ anchor_position: z.ZodOptional<z.ZodObject<{
25460
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
25461
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
25462
+ }, "strip", z.ZodTypeAny, {
25463
+ x: number;
25464
+ y: number;
25465
+ }, {
25466
+ x: string | number;
25467
+ y: string | number;
25468
+ }>>;
25469
+ anchor_alignment: z.ZodDefault<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
25470
+ position_mode: z.ZodOptional<z.ZodEnum<["relative_to_panel_anchor", "none"]>>;
25392
25471
  }, "strip", z.ZodTypeAny, {
25393
25472
  type: "pcb_board";
25394
25473
  center: {
@@ -25399,9 +25478,13 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25399
25478
  thickness: number;
25400
25479
  num_layers: number;
25401
25480
  material: "fr4" | "fr1";
25481
+ anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
25402
25482
  width?: number | undefined;
25403
25483
  height?: number | undefined;
25484
+ display_offset_x?: string | undefined;
25485
+ display_offset_y?: string | undefined;
25404
25486
  subcircuit_id?: string | undefined;
25487
+ position_mode?: "none" | "relative_to_panel_anchor" | undefined;
25405
25488
  shape?: "rect" | "polygon" | undefined;
25406
25489
  pcb_panel_id?: string | undefined;
25407
25490
  is_subcircuit?: boolean | undefined;
@@ -25409,6 +25492,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25409
25492
  x: number;
25410
25493
  y: number;
25411
25494
  }[] | undefined;
25495
+ anchor_position?: {
25496
+ x: number;
25497
+ y: number;
25498
+ } | undefined;
25412
25499
  }, {
25413
25500
  type: "pcb_board";
25414
25501
  center: {
@@ -25417,7 +25504,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25417
25504
  };
25418
25505
  width?: string | number | undefined;
25419
25506
  height?: string | number | undefined;
25507
+ display_offset_x?: string | undefined;
25508
+ display_offset_y?: string | undefined;
25420
25509
  subcircuit_id?: string | undefined;
25510
+ position_mode?: "none" | "relative_to_panel_anchor" | undefined;
25421
25511
  shape?: "rect" | "polygon" | undefined;
25422
25512
  pcb_board_id?: string | undefined;
25423
25513
  pcb_panel_id?: string | undefined;
@@ -25429,6 +25519,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25429
25519
  y: string | number;
25430
25520
  }[] | undefined;
25431
25521
  material?: "fr4" | "fr1" | undefined;
25522
+ anchor_position?: {
25523
+ x: string | number;
25524
+ y: string | number;
25525
+ } | undefined;
25526
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
25432
25527
  }>, z.ZodObject<{
25433
25528
  type: z.ZodLiteral<"pcb_panel">;
25434
25529
  pcb_panel_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -25786,14 +25881,14 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25786
25881
  pcb_component_id: string;
25787
25882
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
25788
25883
  text: string;
25789
- pcb_silkscreen_text_id: string;
25790
- font: "tscircuit2024";
25791
- font_size: number;
25792
25884
  anchor_position: {
25793
25885
  x: number;
25794
25886
  y: number;
25795
25887
  };
25796
25888
  anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
25889
+ pcb_silkscreen_text_id: string;
25890
+ font: "tscircuit2024";
25891
+ font_size: number;
25797
25892
  subcircuit_id?: string | undefined;
25798
25893
  pcb_group_id?: string | undefined;
25799
25894
  ccw_rotation?: number | undefined;
@@ -25815,6 +25910,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25815
25910
  subcircuit_id?: string | undefined;
25816
25911
  pcb_group_id?: string | undefined;
25817
25912
  ccw_rotation?: number | undefined;
25913
+ anchor_position?: {
25914
+ x: string | number;
25915
+ y: string | number;
25916
+ } | undefined;
25917
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
25818
25918
  pcb_silkscreen_text_id?: string | undefined;
25819
25919
  font?: "tscircuit2024" | undefined;
25820
25920
  font_size?: string | number | undefined;
@@ -25826,11 +25926,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25826
25926
  right: string | number;
25827
25927
  } | undefined;
25828
25928
  is_mirrored?: boolean | undefined;
25829
- anchor_position?: {
25830
- x: string | number;
25831
- y: string | number;
25832
- } | undefined;
25833
- anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
25834
25929
  }>, z.ZodObject<{
25835
25930
  type: z.ZodLiteral<"pcb_silkscreen_pill">;
25836
25931
  pcb_silkscreen_pill_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -25939,13 +26034,13 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25939
26034
  pcb_component_id: string;
25940
26035
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
25941
26036
  text: string;
25942
- font: "tscircuit2024";
25943
- font_size: number;
25944
26037
  anchor_position: {
25945
26038
  x: number;
25946
26039
  y: number;
25947
26040
  };
25948
26041
  anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
26042
+ font: "tscircuit2024";
26043
+ font_size: number;
25949
26044
  pcb_copper_text_id: string;
25950
26045
  subcircuit_id?: string | undefined;
25951
26046
  pcb_group_id?: string | undefined;
@@ -25968,6 +26063,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25968
26063
  subcircuit_id?: string | undefined;
25969
26064
  pcb_group_id?: string | undefined;
25970
26065
  ccw_rotation?: number | undefined;
26066
+ anchor_position?: {
26067
+ x: string | number;
26068
+ y: string | number;
26069
+ } | undefined;
26070
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
25971
26071
  font?: "tscircuit2024" | undefined;
25972
26072
  font_size?: string | number | undefined;
25973
26073
  is_knockout?: boolean | undefined;
@@ -25978,11 +26078,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25978
26078
  right: string | number;
25979
26079
  } | undefined;
25980
26080
  is_mirrored?: boolean | undefined;
25981
- anchor_position?: {
25982
- x: string | number;
25983
- y: string | number;
25984
- } | undefined;
25985
- anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
25986
26081
  pcb_copper_text_id?: string | undefined;
25987
26082
  }>, z.ZodObject<{
25988
26083
  type: z.ZodLiteral<"pcb_silkscreen_rect">;
@@ -26424,13 +26519,13 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
26424
26519
  pcb_component_id: string;
26425
26520
  layer: "top" | "bottom";
26426
26521
  text: string;
26427
- font: "tscircuit2024";
26428
- font_size: number;
26429
26522
  anchor_position: {
26430
26523
  x: number;
26431
26524
  y: number;
26432
26525
  };
26433
26526
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
26527
+ font: "tscircuit2024";
26528
+ font_size: number;
26434
26529
  pcb_fabrication_note_text_id: string;
26435
26530
  subcircuit_id?: string | undefined;
26436
26531
  pcb_group_id?: string | undefined;
@@ -26442,13 +26537,13 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
26442
26537
  text: string;
26443
26538
  subcircuit_id?: string | undefined;
26444
26539
  pcb_group_id?: string | undefined;
26445
- font?: "tscircuit2024" | undefined;
26446
- font_size?: string | number | undefined;
26447
26540
  anchor_position?: {
26448
26541
  x: string | number;
26449
26542
  y: string | number;
26450
26543
  } | undefined;
26451
26544
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
26545
+ font?: "tscircuit2024" | undefined;
26546
+ font_size?: string | number | undefined;
26452
26547
  pcb_fabrication_note_text_id?: string | undefined;
26453
26548
  color?: string | undefined;
26454
26549
  }>, z.ZodObject<{
@@ -26637,13 +26732,13 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
26637
26732
  color: z.ZodOptional<z.ZodString>;
26638
26733
  }, "strip", z.ZodTypeAny, {
26639
26734
  type: "pcb_note_text";
26640
- font: "tscircuit2024";
26641
- font_size: number;
26642
26735
  anchor_position: {
26643
26736
  x: number;
26644
26737
  y: number;
26645
26738
  };
26646
26739
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
26740
+ font: "tscircuit2024";
26741
+ font_size: number;
26647
26742
  pcb_note_text_id: string;
26648
26743
  name?: string | undefined;
26649
26744
  pcb_component_id?: string | undefined;
@@ -26658,13 +26753,13 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
26658
26753
  subcircuit_id?: string | undefined;
26659
26754
  pcb_group_id?: string | undefined;
26660
26755
  text?: string | undefined;
26661
- font?: "tscircuit2024" | undefined;
26662
- font_size?: string | number | undefined;
26663
26756
  anchor_position?: {
26664
26757
  x: string | number;
26665
26758
  y: string | number;
26666
26759
  } | undefined;
26667
26760
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
26761
+ font?: "tscircuit2024" | undefined;
26762
+ font_size?: string | number | undefined;
26668
26763
  color?: string | undefined;
26669
26764
  pcb_note_text_id?: string | undefined;
26670
26765
  }>, z.ZodObject<{