circuit-json 0.0.341 → 0.0.342

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
@@ -3681,7 +3681,7 @@ declare const pcb_board: z.ZodObject<{
3681
3681
  x: string | number;
3682
3682
  y: string | number;
3683
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"]>>;
3684
+ anchor_alignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
3685
3685
  position_mode: z.ZodOptional<z.ZodEnum<["relative_to_panel_anchor", "none"]>>;
3686
3686
  }, "strip", z.ZodTypeAny, {
3687
3687
  type: "pcb_board";
@@ -3693,7 +3693,6 @@ declare const pcb_board: z.ZodObject<{
3693
3693
  thickness: number;
3694
3694
  num_layers: number;
3695
3695
  material: "fr4" | "fr1";
3696
- anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
3697
3696
  width?: number | undefined;
3698
3697
  height?: number | undefined;
3699
3698
  display_offset_x?: string | undefined;
@@ -3711,6 +3710,7 @@ declare const pcb_board: z.ZodObject<{
3711
3710
  x: number;
3712
3711
  y: number;
3713
3712
  } | undefined;
3713
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
3714
3714
  }, {
3715
3715
  type: "pcb_board";
3716
3716
  center: {
@@ -3760,7 +3760,7 @@ interface PcbBoard {
3760
3760
  shape?: "rect" | "polygon";
3761
3761
  material: "fr4" | "fr1";
3762
3762
  anchor_position?: Point;
3763
- anchor_alignment: NinePointAnchor;
3763
+ anchor_alignment?: NinePointAnchor;
3764
3764
  position_mode?: "relative_to_panel_anchor" | "none";
3765
3765
  }
3766
3766
  type PcbBoardInput = z.input<typeof pcb_board>;
@@ -17468,7 +17468,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17468
17468
  x: string | number;
17469
17469
  y: string | number;
17470
17470
  }>>;
17471
- anchor_alignment: z.ZodDefault<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
17471
+ anchor_alignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
17472
17472
  position_mode: z.ZodOptional<z.ZodEnum<["relative_to_panel_anchor", "none"]>>;
17473
17473
  }, "strip", z.ZodTypeAny, {
17474
17474
  type: "pcb_board";
@@ -17480,7 +17480,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17480
17480
  thickness: number;
17481
17481
  num_layers: number;
17482
17482
  material: "fr4" | "fr1";
17483
- anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
17484
17483
  width?: number | undefined;
17485
17484
  height?: number | undefined;
17486
17485
  display_offset_x?: string | undefined;
@@ -17498,6 +17497,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17498
17497
  x: number;
17499
17498
  y: number;
17500
17499
  } | undefined;
17500
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
17501
17501
  }, {
17502
17502
  type: "pcb_board";
17503
17503
  center: {
@@ -25712,7 +25712,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25712
25712
  x: string | number;
25713
25713
  y: string | number;
25714
25714
  }>>;
25715
- anchor_alignment: z.ZodDefault<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
25715
+ anchor_alignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
25716
25716
  position_mode: z.ZodOptional<z.ZodEnum<["relative_to_panel_anchor", "none"]>>;
25717
25717
  }, "strip", z.ZodTypeAny, {
25718
25718
  type: "pcb_board";
@@ -25724,7 +25724,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25724
25724
  thickness: number;
25725
25725
  num_layers: number;
25726
25726
  material: "fr4" | "fr1";
25727
- anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
25728
25727
  width?: number | undefined;
25729
25728
  height?: number | undefined;
25730
25729
  display_offset_x?: string | undefined;
@@ -25742,6 +25741,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25742
25741
  x: number;
25743
25742
  y: number;
25744
25743
  } | undefined;
25744
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
25745
25745
  }, {
25746
25746
  type: "pcb_board";
25747
25747
  center: {
package/dist/index.mjs CHANGED
@@ -2019,7 +2019,7 @@ var pcb_board = z88.object({
2019
2019
  shape: z88.enum(["rect", "polygon"]).optional(),
2020
2020
  material: z88.enum(["fr4", "fr1"]).default("fr4"),
2021
2021
  anchor_position: point.optional(),
2022
- anchor_alignment: ninePointAnchor.default("center"),
2022
+ anchor_alignment: ninePointAnchor.optional(),
2023
2023
  position_mode: z88.enum(["relative_to_panel_anchor", "none"]).optional()
2024
2024
  }).describe("Defines the board outline of the PCB");
2025
2025
  expectTypesMatch(true);