circuit-json 0.0.275 → 0.0.276

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.mjs CHANGED
@@ -1279,7 +1279,38 @@ var pcb_hole_oval_shape = pcb_hole_oval.describe(
1279
1279
  "Defines an oval hole on the PCB"
1280
1280
  );
1281
1281
  expectTypesMatch(true);
1282
- var pcb_hole = pcb_hole_circle_or_square.or(pcb_hole_oval);
1282
+ var pcb_hole_pill = z68.object({
1283
+ type: z68.literal("pcb_hole"),
1284
+ pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
1285
+ pcb_group_id: z68.string().optional(),
1286
+ subcircuit_id: z68.string().optional(),
1287
+ hole_shape: z68.literal("pill"),
1288
+ hole_width: z68.number(),
1289
+ hole_height: z68.number(),
1290
+ x: distance,
1291
+ y: distance
1292
+ });
1293
+ var pcb_hole_pill_shape = pcb_hole_pill.describe(
1294
+ "Defines a pill-shaped hole on the PCB"
1295
+ );
1296
+ expectTypesMatch(true);
1297
+ var pcb_hole_rotated_pill = z68.object({
1298
+ type: z68.literal("pcb_hole"),
1299
+ pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
1300
+ pcb_group_id: z68.string().optional(),
1301
+ subcircuit_id: z68.string().optional(),
1302
+ hole_shape: z68.literal("rotated_pill"),
1303
+ hole_width: z68.number(),
1304
+ hole_height: z68.number(),
1305
+ x: distance,
1306
+ y: distance,
1307
+ ccw_rotation: rotation
1308
+ });
1309
+ var pcb_hole_rotated_pill_shape = pcb_hole_rotated_pill.describe(
1310
+ "Defines a rotated pill-shaped hole on the PCB"
1311
+ );
1312
+ expectTypesMatch(true);
1313
+ var pcb_hole = pcb_hole_circle_or_square.or(pcb_hole_oval).or(pcb_hole_pill).or(pcb_hole_rotated_pill);
1283
1314
 
1284
1315
  // src/pcb/pcb_plated_hole.ts
1285
1316
  import { z as z69 } from "zod";
@@ -2645,6 +2676,8 @@ export {
2645
2676
  pcb_hole,
2646
2677
  pcb_hole_circle_or_square_shape,
2647
2678
  pcb_hole_oval_shape,
2679
+ pcb_hole_pill_shape,
2680
+ pcb_hole_rotated_pill_shape,
2648
2681
  pcb_keepout,
2649
2682
  pcb_manual_edit_conflict_warning,
2650
2683
  pcb_missing_footprint_error,