circuit-json 0.0.347 → 0.0.349

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
@@ -4504,6 +4504,7 @@ declare const pcb_silkscreen_oval: z.ZodObject<{
4504
4504
  radius_x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4505
4505
  radius_y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4506
4506
  layer: z.ZodEnum<["top", "bottom"]>;
4507
+ ccw_rotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
4507
4508
  }, "strip", z.ZodTypeAny, {
4508
4509
  type: "pcb_silkscreen_oval";
4509
4510
  pcb_component_id: string;
@@ -4517,6 +4518,7 @@ declare const pcb_silkscreen_oval: z.ZodObject<{
4517
4518
  radius_y: number;
4518
4519
  subcircuit_id?: string | undefined;
4519
4520
  pcb_group_id?: string | undefined;
4521
+ ccw_rotation?: number | undefined;
4520
4522
  }, {
4521
4523
  type: "pcb_silkscreen_oval";
4522
4524
  pcb_component_id: string;
@@ -4529,6 +4531,7 @@ declare const pcb_silkscreen_oval: z.ZodObject<{
4529
4531
  radius_y: string | number;
4530
4532
  subcircuit_id?: string | undefined;
4531
4533
  pcb_group_id?: string | undefined;
4534
+ ccw_rotation?: string | number | undefined;
4532
4535
  pcb_silkscreen_oval_id?: string | undefined;
4533
4536
  }>;
4534
4537
  type PcbSilkscreenOvalInput = z.input<typeof pcb_silkscreen_oval>;
@@ -4545,6 +4548,7 @@ interface PcbSilkscreenOval {
4545
4548
  radius_x: Distance;
4546
4549
  radius_y: Distance;
4547
4550
  layer: VisibleLayer;
4551
+ ccw_rotation?: number;
4548
4552
  }
4549
4553
  /**
4550
4554
  * @deprecated use PcbSilkscreenOval
@@ -4578,6 +4582,7 @@ declare const pcb_silkscreen_pill: z.ZodObject<{
4578
4582
  }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
4579
4583
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4580
4584
  }>;
4585
+ ccw_rotation: z.ZodOptional<z.ZodNumber>;
4581
4586
  }, "strip", z.ZodTypeAny, {
4582
4587
  type: "pcb_silkscreen_pill";
4583
4588
  width: number;
@@ -4591,6 +4596,7 @@ declare const pcb_silkscreen_pill: z.ZodObject<{
4591
4596
  pcb_silkscreen_pill_id: string;
4592
4597
  subcircuit_id?: string | undefined;
4593
4598
  pcb_group_id?: string | undefined;
4599
+ ccw_rotation?: number | undefined;
4594
4600
  }, {
4595
4601
  type: "pcb_silkscreen_pill";
4596
4602
  width: string | number;
@@ -4605,6 +4611,7 @@ declare const pcb_silkscreen_pill: z.ZodObject<{
4605
4611
  };
4606
4612
  subcircuit_id?: string | undefined;
4607
4613
  pcb_group_id?: string | undefined;
4614
+ ccw_rotation?: number | undefined;
4608
4615
  pcb_silkscreen_pill_id?: string | undefined;
4609
4616
  }>;
4610
4617
  type PcbSilkscreenPillInput = z.input<typeof pcb_silkscreen_pill>;
@@ -4621,6 +4628,7 @@ interface PcbSilkscreenPill {
4621
4628
  width: Length;
4622
4629
  height: Length;
4623
4630
  layer: LayerRef;
4631
+ ccw_rotation?: number;
4624
4632
  }
4625
4633
  /**
4626
4634
  * @deprecated use PcbSilkscreenPill
@@ -17962,6 +17970,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17962
17970
  }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
17963
17971
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
17964
17972
  }>;
17973
+ ccw_rotation: z.ZodOptional<z.ZodNumber>;
17965
17974
  }, "strip", z.ZodTypeAny, {
17966
17975
  type: "pcb_silkscreen_pill";
17967
17976
  width: number;
@@ -17975,6 +17984,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17975
17984
  pcb_silkscreen_pill_id: string;
17976
17985
  subcircuit_id?: string | undefined;
17977
17986
  pcb_group_id?: string | undefined;
17987
+ ccw_rotation?: number | undefined;
17978
17988
  }, {
17979
17989
  type: "pcb_silkscreen_pill";
17980
17990
  width: string | number;
@@ -17989,6 +17999,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17989
17999
  };
17990
18000
  subcircuit_id?: string | undefined;
17991
18001
  pcb_group_id?: string | undefined;
18002
+ ccw_rotation?: number | undefined;
17992
18003
  pcb_silkscreen_pill_id?: string | undefined;
17993
18004
  }>, z.ZodObject<{
17994
18005
  type: z.ZodLiteral<"pcb_copper_text">;
@@ -18225,6 +18236,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
18225
18236
  radius_x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18226
18237
  radius_y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18227
18238
  layer: z.ZodEnum<["top", "bottom"]>;
18239
+ ccw_rotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
18228
18240
  }, "strip", z.ZodTypeAny, {
18229
18241
  type: "pcb_silkscreen_oval";
18230
18242
  pcb_component_id: string;
@@ -18238,6 +18250,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
18238
18250
  radius_y: number;
18239
18251
  subcircuit_id?: string | undefined;
18240
18252
  pcb_group_id?: string | undefined;
18253
+ ccw_rotation?: number | undefined;
18241
18254
  }, {
18242
18255
  type: "pcb_silkscreen_oval";
18243
18256
  pcb_component_id: string;
@@ -18250,6 +18263,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
18250
18263
  radius_y: string | number;
18251
18264
  subcircuit_id?: string | undefined;
18252
18265
  pcb_group_id?: string | undefined;
18266
+ ccw_rotation?: string | number | undefined;
18253
18267
  pcb_silkscreen_oval_id?: string | undefined;
18254
18268
  }>, z.ZodObject<{
18255
18269
  type: z.ZodLiteral<"pcb_trace_error">;
@@ -26209,6 +26223,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
26209
26223
  }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
26210
26224
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
26211
26225
  }>;
26226
+ ccw_rotation: z.ZodOptional<z.ZodNumber>;
26212
26227
  }, "strip", z.ZodTypeAny, {
26213
26228
  type: "pcb_silkscreen_pill";
26214
26229
  width: number;
@@ -26222,6 +26237,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
26222
26237
  pcb_silkscreen_pill_id: string;
26223
26238
  subcircuit_id?: string | undefined;
26224
26239
  pcb_group_id?: string | undefined;
26240
+ ccw_rotation?: number | undefined;
26225
26241
  }, {
26226
26242
  type: "pcb_silkscreen_pill";
26227
26243
  width: string | number;
@@ -26236,6 +26252,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
26236
26252
  };
26237
26253
  subcircuit_id?: string | undefined;
26238
26254
  pcb_group_id?: string | undefined;
26255
+ ccw_rotation?: number | undefined;
26239
26256
  pcb_silkscreen_pill_id?: string | undefined;
26240
26257
  }>, z.ZodObject<{
26241
26258
  type: z.ZodLiteral<"pcb_copper_text">;
@@ -26472,6 +26489,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
26472
26489
  radius_x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
26473
26490
  radius_y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
26474
26491
  layer: z.ZodEnum<["top", "bottom"]>;
26492
+ ccw_rotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
26475
26493
  }, "strip", z.ZodTypeAny, {
26476
26494
  type: "pcb_silkscreen_oval";
26477
26495
  pcb_component_id: string;
@@ -26485,6 +26503,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
26485
26503
  radius_y: number;
26486
26504
  subcircuit_id?: string | undefined;
26487
26505
  pcb_group_id?: string | undefined;
26506
+ ccw_rotation?: number | undefined;
26488
26507
  }, {
26489
26508
  type: "pcb_silkscreen_oval";
26490
26509
  pcb_component_id: string;
@@ -26497,6 +26516,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
26497
26516
  radius_y: string | number;
26498
26517
  subcircuit_id?: string | undefined;
26499
26518
  pcb_group_id?: string | undefined;
26519
+ ccw_rotation?: string | number | undefined;
26500
26520
  pcb_silkscreen_oval_id?: string | undefined;
26501
26521
  }>, z.ZodObject<{
26502
26522
  type: z.ZodLiteral<"pcb_trace_error">;
package/dist/index.mjs CHANGED
@@ -2221,7 +2221,8 @@ var pcb_silkscreen_oval = z99.object({
2221
2221
  center: point,
2222
2222
  radius_x: distance,
2223
2223
  radius_y: distance,
2224
- layer: visible_layer
2224
+ layer: visible_layer,
2225
+ ccw_rotation: rotation.optional()
2225
2226
  }).describe("Defines a silkscreen oval on the PCB");
2226
2227
  expectTypesMatch(true);
2227
2228
 
@@ -2236,7 +2237,8 @@ var pcb_silkscreen_pill = z100.object({
2236
2237
  center: point,
2237
2238
  width: length,
2238
2239
  height: length,
2239
- layer: layer_ref
2240
+ layer: layer_ref,
2241
+ ccw_rotation: z100.number().optional()
2240
2242
  }).describe("Defines a silkscreen pill on the PCB");
2241
2243
  expectTypesMatch(true);
2242
2244