circuit-json 0.0.332 → 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
@@ -2672,6 +2667,7 @@ interface SchematicVoltageProbe {
2672
2667
  voltage?: number
2673
2668
  subcircuit_id?: string
2674
2669
  color?: string
2670
+ label_alignment?: NinePointAnchor
2675
2671
  }
2676
2672
  ```
2677
2673
 
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;
@@ -9090,6 +9090,7 @@ interface SchematicVoltageProbe {
9090
9090
  voltage?: number;
9091
9091
  subcircuit_id?: string;
9092
9092
  color?: string;
9093
+ label_alignment?: NinePointAnchor;
9093
9094
  }
9094
9095
  declare const schematic_voltage_probe: z.ZodObject<{
9095
9096
  type: z.ZodLiteral<"schematic_voltage_probe">;
@@ -9110,6 +9111,7 @@ declare const schematic_voltage_probe: z.ZodObject<{
9110
9111
  voltage: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
9111
9112
  subcircuit_id: z.ZodOptional<z.ZodString>;
9112
9113
  color: z.ZodOptional<z.ZodString>;
9114
+ label_alignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
9113
9115
  }, "strip", z.ZodTypeAny, {
9114
9116
  type: "schematic_voltage_probe";
9115
9117
  schematic_trace_id: string;
@@ -9123,6 +9125,7 @@ declare const schematic_voltage_probe: z.ZodObject<{
9123
9125
  subcircuit_id?: string | undefined;
9124
9126
  color?: string | undefined;
9125
9127
  voltage?: number | undefined;
9128
+ label_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
9126
9129
  }, {
9127
9130
  type: "schematic_voltage_probe";
9128
9131
  schematic_trace_id: string;
@@ -9136,6 +9139,7 @@ declare const schematic_voltage_probe: z.ZodObject<{
9136
9139
  subcircuit_id?: string | undefined;
9137
9140
  color?: string | undefined;
9138
9141
  voltage?: string | number | undefined;
9142
+ label_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
9139
9143
  }>;
9140
9144
  type SchematicVoltageProbeInput = z.input<typeof schematic_voltage_probe>;
9141
9145
 
@@ -17082,7 +17086,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17082
17086
  x: string | number;
17083
17087
  y: string | number;
17084
17088
  }>>;
17085
- 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"]>>;
17086
17090
  position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
17087
17091
  positioned_relative_to_pcb_group_id: z.ZodOptional<z.ZodString>;
17088
17092
  positioned_relative_to_pcb_board_id: z.ZodOptional<z.ZodString>;
@@ -17107,6 +17111,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17107
17111
  };
17108
17112
  pcb_group_id: string;
17109
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";
17110
17115
  source_group_id: string;
17111
17116
  description?: string | undefined;
17112
17117
  width?: number | undefined;
@@ -17127,7 +17132,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17127
17132
  x: number;
17128
17133
  y: number;
17129
17134
  } | undefined;
17130
- anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
17131
17135
  child_layout_mode?: "packed" | "none" | undefined;
17132
17136
  layout_mode?: string | undefined;
17133
17137
  autorouter_configuration?: {
@@ -17162,7 +17166,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17162
17166
  x: string | number;
17163
17167
  y: string | number;
17164
17168
  } | undefined;
17165
- 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;
17166
17170
  child_layout_mode?: "packed" | "none" | undefined;
17167
17171
  layout_mode?: string | undefined;
17168
17172
  autorouter_configuration?: {
@@ -20343,6 +20347,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
20343
20347
  voltage: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
20344
20348
  subcircuit_id: z.ZodOptional<z.ZodString>;
20345
20349
  color: z.ZodOptional<z.ZodString>;
20350
+ label_alignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
20346
20351
  }, "strip", z.ZodTypeAny, {
20347
20352
  type: "schematic_voltage_probe";
20348
20353
  schematic_trace_id: string;
@@ -20356,6 +20361,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
20356
20361
  subcircuit_id?: string | undefined;
20357
20362
  color?: string | undefined;
20358
20363
  voltage?: number | undefined;
20364
+ label_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
20359
20365
  }, {
20360
20366
  type: "schematic_voltage_probe";
20361
20367
  schematic_trace_id: string;
@@ -20369,6 +20375,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
20369
20375
  subcircuit_id?: string | undefined;
20370
20376
  color?: string | undefined;
20371
20377
  voltage?: string | number | undefined;
20378
+ label_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
20372
20379
  }>, z.ZodObject<{
20373
20380
  type: z.ZodLiteral<"schematic_manual_edit_conflict_warning">;
20374
20381
  schematic_manual_edit_conflict_warning_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -25114,7 +25121,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25114
25121
  x: string | number;
25115
25122
  y: string | number;
25116
25123
  }>>;
25117
- 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"]>>;
25118
25125
  position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
25119
25126
  positioned_relative_to_pcb_group_id: z.ZodOptional<z.ZodString>;
25120
25127
  positioned_relative_to_pcb_board_id: z.ZodOptional<z.ZodString>;
@@ -25139,6 +25146,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25139
25146
  };
25140
25147
  pcb_group_id: string;
25141
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";
25142
25150
  source_group_id: string;
25143
25151
  description?: string | undefined;
25144
25152
  width?: number | undefined;
@@ -25159,7 +25167,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25159
25167
  x: number;
25160
25168
  y: number;
25161
25169
  } | undefined;
25162
- anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
25163
25170
  child_layout_mode?: "packed" | "none" | undefined;
25164
25171
  layout_mode?: string | undefined;
25165
25172
  autorouter_configuration?: {
@@ -25194,7 +25201,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25194
25201
  x: string | number;
25195
25202
  y: string | number;
25196
25203
  } | undefined;
25197
- 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;
25198
25205
  child_layout_mode?: "packed" | "none" | undefined;
25199
25206
  layout_mode?: string | undefined;
25200
25207
  autorouter_configuration?: {
@@ -28375,6 +28382,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
28375
28382
  voltage: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
28376
28383
  subcircuit_id: z.ZodOptional<z.ZodString>;
28377
28384
  color: z.ZodOptional<z.ZodString>;
28385
+ label_alignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
28378
28386
  }, "strip", z.ZodTypeAny, {
28379
28387
  type: "schematic_voltage_probe";
28380
28388
  schematic_trace_id: string;
@@ -28388,6 +28396,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
28388
28396
  subcircuit_id?: string | undefined;
28389
28397
  color?: string | undefined;
28390
28398
  voltage?: number | undefined;
28399
+ label_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
28391
28400
  }, {
28392
28401
  type: "schematic_voltage_probe";
28393
28402
  schematic_trace_id: string;
@@ -28401,6 +28410,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
28401
28410
  subcircuit_id?: string | undefined;
28402
28411
  color?: string | undefined;
28403
28412
  voltage?: string | number | undefined;
28413
+ label_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
28404
28414
  }>, z.ZodObject<{
28405
28415
  type: z.ZodLiteral<"schematic_manual_edit_conflict_warning">;
28406
28416
  schematic_manual_edit_conflict_warning_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
package/dist/index.mjs CHANGED
@@ -1175,7 +1175,8 @@ var schematic_voltage_probe = z64.object({
1175
1175
  schematic_trace_id: z64.string(),
1176
1176
  voltage: voltage.optional(),
1177
1177
  subcircuit_id: z64.string().optional(),
1178
- color: z64.string().optional()
1178
+ color: z64.string().optional(),
1179
+ label_alignment: ninePointAnchor.optional()
1179
1180
  }).describe("Defines a voltage probe measurement point on a schematic trace");
1180
1181
  expectTypesMatch(true);
1181
1182
 
@@ -2537,7 +2538,7 @@ var pcb_group = z113.object({
2537
2538
  ),
2538
2539
  outline: z113.array(point).optional(),
2539
2540
  anchor_position: point.optional(),
2540
- anchor_alignment: z113.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
2541
+ anchor_alignment: ninePointAnchor.default("center"),
2541
2542
  position_mode: z113.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
2542
2543
  positioned_relative_to_pcb_group_id: z113.string().optional(),
2543
2544
  positioned_relative_to_pcb_board_id: z113.string().optional(),