circuit-json 0.0.255 → 0.0.256

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
@@ -701,6 +701,7 @@ interface PcbPlatedHoleOval {
701
701
  hole_height: number;
702
702
  x: Distance;
703
703
  y: Distance;
704
+ ccw_rotation: Rotation;
704
705
  layers: LayerRef[];
705
706
  port_hints?: string[];
706
707
  pcb_component_id?: string;
@@ -833,6 +834,7 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
833
834
  hole_height: z.ZodNumber;
834
835
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
835
836
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
837
+ ccw_rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
836
838
  layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
837
839
  name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
838
840
  }, "strip", z.ZodTypeAny, {
@@ -857,6 +859,7 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
857
859
  pcb_plated_hole_id: string;
858
860
  outer_width: number;
859
861
  outer_height: number;
862
+ ccw_rotation: number;
860
863
  pcb_component_id?: string | undefined;
861
864
  subcircuit_id?: string | undefined;
862
865
  pcb_group_id?: string | undefined;
@@ -874,6 +877,7 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
874
877
  })[];
875
878
  outer_width: number;
876
879
  outer_height: number;
880
+ ccw_rotation: string | number;
877
881
  pcb_component_id?: string | undefined;
878
882
  subcircuit_id?: string | undefined;
879
883
  pcb_group_id?: string | undefined;
@@ -1373,8 +1377,8 @@ declare const pcb_smtpad: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
1373
1377
  height: number;
1374
1378
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1375
1379
  shape: "rotated_rect";
1376
- pcb_smtpad_id: string;
1377
1380
  ccw_rotation: number;
1381
+ pcb_smtpad_id: string;
1378
1382
  pcb_component_id?: string | undefined;
1379
1383
  subcircuit_id?: string | undefined;
1380
1384
  pcb_group_id?: string | undefined;
@@ -1434,9 +1438,9 @@ declare const pcb_smtpad: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
1434
1438
  height: number;
1435
1439
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1436
1440
  shape: "rotated_pill";
1441
+ ccw_rotation: number;
1437
1442
  pcb_smtpad_id: string;
1438
1443
  radius: number;
1439
- ccw_rotation: number;
1440
1444
  pcb_component_id?: string | undefined;
1441
1445
  subcircuit_id?: string | undefined;
1442
1446
  pcb_group_id?: string | undefined;
@@ -1453,8 +1457,8 @@ declare const pcb_smtpad: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
1453
1457
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1454
1458
  };
1455
1459
  shape: "rotated_pill";
1456
- radius: number;
1457
1460
  ccw_rotation: string | number;
1461
+ radius: number;
1458
1462
  pcb_component_id?: string | undefined;
1459
1463
  subcircuit_id?: string | undefined;
1460
1464
  pcb_group_id?: string | undefined;
@@ -11997,6 +12001,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
11997
12001
  hole_height: z.ZodNumber;
11998
12002
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
11999
12003
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12004
+ ccw_rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12000
12005
  layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
12001
12006
  name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
12002
12007
  }, "strip", z.ZodTypeAny, {
@@ -12021,6 +12026,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12021
12026
  pcb_plated_hole_id: string;
12022
12027
  outer_width: number;
12023
12028
  outer_height: number;
12029
+ ccw_rotation: number;
12024
12030
  pcb_component_id?: string | undefined;
12025
12031
  subcircuit_id?: string | undefined;
12026
12032
  pcb_group_id?: string | undefined;
@@ -12038,6 +12044,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12038
12044
  })[];
12039
12045
  outer_width: number;
12040
12046
  outer_height: number;
12047
+ ccw_rotation: string | number;
12041
12048
  pcb_component_id?: string | undefined;
12042
12049
  subcircuit_id?: string | undefined;
12043
12050
  pcb_group_id?: string | undefined;
@@ -12791,8 +12798,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12791
12798
  height: number;
12792
12799
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
12793
12800
  shape: "rotated_rect";
12794
- pcb_smtpad_id: string;
12795
12801
  ccw_rotation: number;
12802
+ pcb_smtpad_id: string;
12796
12803
  pcb_component_id?: string | undefined;
12797
12804
  subcircuit_id?: string | undefined;
12798
12805
  pcb_group_id?: string | undefined;
@@ -12852,9 +12859,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12852
12859
  height: number;
12853
12860
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
12854
12861
  shape: "rotated_pill";
12862
+ ccw_rotation: number;
12855
12863
  pcb_smtpad_id: string;
12856
12864
  radius: number;
12857
- ccw_rotation: number;
12858
12865
  pcb_component_id?: string | undefined;
12859
12866
  subcircuit_id?: string | undefined;
12860
12867
  pcb_group_id?: string | undefined;
@@ -12871,8 +12878,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12871
12878
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
12872
12879
  };
12873
12880
  shape: "rotated_pill";
12874
- radius: number;
12875
12881
  ccw_rotation: string | number;
12882
+ radius: number;
12876
12883
  pcb_component_id?: string | undefined;
12877
12884
  subcircuit_id?: string | undefined;
12878
12885
  pcb_group_id?: string | undefined;
@@ -18128,6 +18135,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18128
18135
  hole_height: z.ZodNumber;
18129
18136
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18130
18137
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18138
+ ccw_rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18131
18139
  layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
18132
18140
  name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
18133
18141
  }, "strip", z.ZodTypeAny, {
@@ -18152,6 +18160,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18152
18160
  pcb_plated_hole_id: string;
18153
18161
  outer_width: number;
18154
18162
  outer_height: number;
18163
+ ccw_rotation: number;
18155
18164
  pcb_component_id?: string | undefined;
18156
18165
  subcircuit_id?: string | undefined;
18157
18166
  pcb_group_id?: string | undefined;
@@ -18169,6 +18178,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18169
18178
  })[];
18170
18179
  outer_width: number;
18171
18180
  outer_height: number;
18181
+ ccw_rotation: string | number;
18172
18182
  pcb_component_id?: string | undefined;
18173
18183
  subcircuit_id?: string | undefined;
18174
18184
  pcb_group_id?: string | undefined;
@@ -18922,8 +18932,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18922
18932
  height: number;
18923
18933
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
18924
18934
  shape: "rotated_rect";
18925
- pcb_smtpad_id: string;
18926
18935
  ccw_rotation: number;
18936
+ pcb_smtpad_id: string;
18927
18937
  pcb_component_id?: string | undefined;
18928
18938
  subcircuit_id?: string | undefined;
18929
18939
  pcb_group_id?: string | undefined;
@@ -18983,9 +18993,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18983
18993
  height: number;
18984
18994
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
18985
18995
  shape: "rotated_pill";
18996
+ ccw_rotation: number;
18986
18997
  pcb_smtpad_id: string;
18987
18998
  radius: number;
18988
- ccw_rotation: number;
18989
18999
  pcb_component_id?: string | undefined;
18990
19000
  subcircuit_id?: string | undefined;
18991
19001
  pcb_group_id?: string | undefined;
@@ -19002,8 +19012,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
19002
19012
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
19003
19013
  };
19004
19014
  shape: "rotated_pill";
19005
- radius: number;
19006
19015
  ccw_rotation: string | number;
19016
+ radius: number;
19007
19017
  pcb_component_id?: string | undefined;
19008
19018
  subcircuit_id?: string | undefined;
19009
19019
  pcb_group_id?: string | undefined;
package/dist/index.mjs CHANGED
@@ -1221,6 +1221,7 @@ var pcb_plated_hole_oval = z65.object({
1221
1221
  hole_height: z65.number(),
1222
1222
  x: distance,
1223
1223
  y: distance,
1224
+ ccw_rotation: rotation,
1224
1225
  layers: z65.array(layer_ref),
1225
1226
  port_hints: z65.array(z65.string()).optional(),
1226
1227
  pcb_component_id: z65.string().optional(),