circuit-json 0.0.333 → 0.0.334

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
@@ -1371,12 +1371,7 @@ interface PcbGroup {
1371
1371
  display_offset_y?: string
1372
1372
  outline?: Point[]
1373
1373
  anchor_position?: Point
1374
- anchor_alignment?:
1375
- | "center"
1376
- | "top_left"
1377
- | "top_right"
1378
- | "bottom_left"
1379
- | "bottom_right"
1374
+ anchor_alignment: NinePointAnchor
1380
1375
  position_mode?: "packed" | "relative_to_group_anchor" | "none"
1381
1376
  positioned_relative_to_pcb_group_id?: string
1382
1377
  positioned_relative_to_pcb_board_id?: string
package/dist/index.d.mts CHANGED
@@ -6050,7 +6050,7 @@ declare const pcb_group: z.ZodObject<{
6050
6050
  x: string | number;
6051
6051
  y: string | number;
6052
6052
  }>>;
6053
- anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
6053
+ anchor_alignment: z.ZodDefault<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
6054
6054
  position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
6055
6055
  positioned_relative_to_pcb_group_id: z.ZodOptional<z.ZodString>;
6056
6056
  positioned_relative_to_pcb_board_id: z.ZodOptional<z.ZodString>;
@@ -6075,6 +6075,7 @@ declare const pcb_group: z.ZodObject<{
6075
6075
  };
6076
6076
  pcb_group_id: string;
6077
6077
  pcb_component_ids: string[];
6078
+ anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
6078
6079
  source_group_id: string;
6079
6080
  description?: string | undefined;
6080
6081
  width?: number | undefined;
@@ -6095,7 +6096,6 @@ declare const pcb_group: z.ZodObject<{
6095
6096
  x: number;
6096
6097
  y: number;
6097
6098
  } | undefined;
6098
- anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
6099
6099
  child_layout_mode?: "packed" | "none" | undefined;
6100
6100
  layout_mode?: string | undefined;
6101
6101
  autorouter_configuration?: {
@@ -6130,7 +6130,7 @@ declare const pcb_group: z.ZodObject<{
6130
6130
  x: string | number;
6131
6131
  y: string | number;
6132
6132
  } | undefined;
6133
- anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
6133
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
6134
6134
  child_layout_mode?: "packed" | "none" | undefined;
6135
6135
  layout_mode?: string | undefined;
6136
6136
  autorouter_configuration?: {
@@ -6155,7 +6155,7 @@ interface PcbGroup {
6155
6155
  display_offset_y?: string;
6156
6156
  outline?: Point[];
6157
6157
  anchor_position?: Point;
6158
- anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
6158
+ anchor_alignment: NinePointAnchor;
6159
6159
  position_mode?: "packed" | "relative_to_group_anchor" | "none";
6160
6160
  positioned_relative_to_pcb_group_id?: string;
6161
6161
  positioned_relative_to_pcb_board_id?: string;
@@ -17086,7 +17086,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17086
17086
  x: string | number;
17087
17087
  y: string | number;
17088
17088
  }>>;
17089
- anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
17089
+ anchor_alignment: z.ZodDefault<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
17090
17090
  position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
17091
17091
  positioned_relative_to_pcb_group_id: z.ZodOptional<z.ZodString>;
17092
17092
  positioned_relative_to_pcb_board_id: z.ZodOptional<z.ZodString>;
@@ -17111,6 +17111,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17111
17111
  };
17112
17112
  pcb_group_id: string;
17113
17113
  pcb_component_ids: string[];
17114
+ anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
17114
17115
  source_group_id: string;
17115
17116
  description?: string | undefined;
17116
17117
  width?: number | undefined;
@@ -17131,7 +17132,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17131
17132
  x: number;
17132
17133
  y: number;
17133
17134
  } | undefined;
17134
- anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
17135
17135
  child_layout_mode?: "packed" | "none" | undefined;
17136
17136
  layout_mode?: string | undefined;
17137
17137
  autorouter_configuration?: {
@@ -17166,7 +17166,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17166
17166
  x: string | number;
17167
17167
  y: string | number;
17168
17168
  } | undefined;
17169
- anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
17169
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
17170
17170
  child_layout_mode?: "packed" | "none" | undefined;
17171
17171
  layout_mode?: string | undefined;
17172
17172
  autorouter_configuration?: {
@@ -25121,7 +25121,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25121
25121
  x: string | number;
25122
25122
  y: string | number;
25123
25123
  }>>;
25124
- anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
25124
+ anchor_alignment: z.ZodDefault<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
25125
25125
  position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
25126
25126
  positioned_relative_to_pcb_group_id: z.ZodOptional<z.ZodString>;
25127
25127
  positioned_relative_to_pcb_board_id: z.ZodOptional<z.ZodString>;
@@ -25146,6 +25146,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25146
25146
  };
25147
25147
  pcb_group_id: string;
25148
25148
  pcb_component_ids: string[];
25149
+ anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
25149
25150
  source_group_id: string;
25150
25151
  description?: string | undefined;
25151
25152
  width?: number | undefined;
@@ -25166,7 +25167,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25166
25167
  x: number;
25167
25168
  y: number;
25168
25169
  } | undefined;
25169
- anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
25170
25170
  child_layout_mode?: "packed" | "none" | undefined;
25171
25171
  layout_mode?: string | undefined;
25172
25172
  autorouter_configuration?: {
@@ -25201,7 +25201,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25201
25201
  x: string | number;
25202
25202
  y: string | number;
25203
25203
  } | undefined;
25204
- anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
25204
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
25205
25205
  child_layout_mode?: "packed" | "none" | undefined;
25206
25206
  layout_mode?: string | undefined;
25207
25207
  autorouter_configuration?: {
package/dist/index.mjs CHANGED
@@ -2538,7 +2538,7 @@ var pcb_group = z113.object({
2538
2538
  ),
2539
2539
  outline: z113.array(point).optional(),
2540
2540
  anchor_position: point.optional(),
2541
- anchor_alignment: z113.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
2541
+ anchor_alignment: ninePointAnchor.default("center"),
2542
2542
  position_mode: z113.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
2543
2543
  positioned_relative_to_pcb_group_id: z113.string().optional(),
2544
2544
  positioned_relative_to_pcb_board_id: z113.string().optional(),