circuit-json 0.0.383 → 0.0.384

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
@@ -4954,6 +4954,7 @@ interface PcbHoleCircularWithRectPad {
4954
4954
  pcb_port_id?: string;
4955
4955
  pcb_plated_hole_id: string;
4956
4956
  soldermask_margin?: number;
4957
+ rect_ccw_rotation?: Rotation;
4957
4958
  }
4958
4959
  /**
4959
4960
  * Defines a plated hole with a polygonal pad on the PCB
@@ -5139,6 +5140,7 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
5139
5140
  pcb_port_id: z.ZodOptional<z.ZodString>;
5140
5141
  pcb_plated_hole_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
5141
5142
  soldermask_margin: z.ZodOptional<z.ZodNumber>;
5143
+ rect_ccw_rotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
5142
5144
  }, "strip", z.ZodTypeAny, {
5143
5145
  x: number;
5144
5146
  y: number;
@@ -5161,6 +5163,7 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
5161
5163
  port_hints?: string[] | undefined;
5162
5164
  pcb_port_id?: string | undefined;
5163
5165
  rect_border_radius?: number | undefined;
5166
+ rect_ccw_rotation?: number | undefined;
5164
5167
  }, {
5165
5168
  x: string | number;
5166
5169
  y: string | number;
@@ -5185,6 +5188,7 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
5185
5188
  rect_border_radius?: number | undefined;
5186
5189
  hole_offset_x?: string | number | undefined;
5187
5190
  hole_offset_y?: string | number | undefined;
5191
+ rect_ccw_rotation?: string | number | undefined;
5188
5192
  }>, z.ZodObject<{
5189
5193
  type: z.ZodLiteral<"pcb_plated_hole">;
5190
5194
  shape: z.ZodLiteral<"pill_hole_with_rect_pad">;
@@ -5312,8 +5316,8 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
5312
5316
  rect_pad_height: number;
5313
5317
  hole_offset_x: number;
5314
5318
  hole_offset_y: number;
5315
- hole_ccw_rotation: number;
5316
5319
  rect_ccw_rotation: number;
5320
+ hole_ccw_rotation: number;
5317
5321
  pcb_component_id?: string | undefined;
5318
5322
  subcircuit_id?: string | undefined;
5319
5323
  pcb_group_id?: string | undefined;
@@ -5336,8 +5340,8 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
5336
5340
  pad_shape: "rect";
5337
5341
  rect_pad_width: number;
5338
5342
  rect_pad_height: number;
5339
- hole_ccw_rotation: string | number;
5340
5343
  rect_ccw_rotation: string | number;
5344
+ hole_ccw_rotation: string | number;
5341
5345
  pcb_component_id?: string | undefined;
5342
5346
  subcircuit_id?: string | undefined;
5343
5347
  pcb_group_id?: string | undefined;
@@ -35865,6 +35869,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
35865
35869
  pcb_port_id: z.ZodOptional<z.ZodString>;
35866
35870
  pcb_plated_hole_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
35867
35871
  soldermask_margin: z.ZodOptional<z.ZodNumber>;
35872
+ rect_ccw_rotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
35868
35873
  }, "strip", z.ZodTypeAny, {
35869
35874
  x: number;
35870
35875
  y: number;
@@ -35887,6 +35892,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
35887
35892
  port_hints?: string[] | undefined;
35888
35893
  pcb_port_id?: string | undefined;
35889
35894
  rect_border_radius?: number | undefined;
35895
+ rect_ccw_rotation?: number | undefined;
35890
35896
  }, {
35891
35897
  x: string | number;
35892
35898
  y: string | number;
@@ -35911,6 +35917,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
35911
35917
  rect_border_radius?: number | undefined;
35912
35918
  hole_offset_x?: string | number | undefined;
35913
35919
  hole_offset_y?: string | number | undefined;
35920
+ rect_ccw_rotation?: string | number | undefined;
35914
35921
  }>, z.ZodObject<{
35915
35922
  type: z.ZodLiteral<"pcb_plated_hole">;
35916
35923
  shape: z.ZodLiteral<"pill_hole_with_rect_pad">;
@@ -36038,8 +36045,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
36038
36045
  rect_pad_height: number;
36039
36046
  hole_offset_x: number;
36040
36047
  hole_offset_y: number;
36041
- hole_ccw_rotation: number;
36042
36048
  rect_ccw_rotation: number;
36049
+ hole_ccw_rotation: number;
36043
36050
  pcb_component_id?: string | undefined;
36044
36051
  subcircuit_id?: string | undefined;
36045
36052
  pcb_group_id?: string | undefined;
@@ -36062,8 +36069,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
36062
36069
  pad_shape: "rect";
36063
36070
  rect_pad_width: number;
36064
36071
  rect_pad_height: number;
36065
- hole_ccw_rotation: string | number;
36066
36072
  rect_ccw_rotation: string | number;
36073
+ hole_ccw_rotation: string | number;
36067
36074
  pcb_component_id?: string | undefined;
36068
36075
  subcircuit_id?: string | undefined;
36069
36076
  pcb_group_id?: string | undefined;
@@ -53053,6 +53060,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
53053
53060
  pcb_port_id: z.ZodOptional<z.ZodString>;
53054
53061
  pcb_plated_hole_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
53055
53062
  soldermask_margin: z.ZodOptional<z.ZodNumber>;
53063
+ rect_ccw_rotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
53056
53064
  }, "strip", z.ZodTypeAny, {
53057
53065
  x: number;
53058
53066
  y: number;
@@ -53075,6 +53083,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
53075
53083
  port_hints?: string[] | undefined;
53076
53084
  pcb_port_id?: string | undefined;
53077
53085
  rect_border_radius?: number | undefined;
53086
+ rect_ccw_rotation?: number | undefined;
53078
53087
  }, {
53079
53088
  x: string | number;
53080
53089
  y: string | number;
@@ -53099,6 +53108,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
53099
53108
  rect_border_radius?: number | undefined;
53100
53109
  hole_offset_x?: string | number | undefined;
53101
53110
  hole_offset_y?: string | number | undefined;
53111
+ rect_ccw_rotation?: string | number | undefined;
53102
53112
  }>, z.ZodObject<{
53103
53113
  type: z.ZodLiteral<"pcb_plated_hole">;
53104
53114
  shape: z.ZodLiteral<"pill_hole_with_rect_pad">;
@@ -53226,8 +53236,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
53226
53236
  rect_pad_height: number;
53227
53237
  hole_offset_x: number;
53228
53238
  hole_offset_y: number;
53229
- hole_ccw_rotation: number;
53230
53239
  rect_ccw_rotation: number;
53240
+ hole_ccw_rotation: number;
53231
53241
  pcb_component_id?: string | undefined;
53232
53242
  subcircuit_id?: string | undefined;
53233
53243
  pcb_group_id?: string | undefined;
@@ -53250,8 +53260,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
53250
53260
  pad_shape: "rect";
53251
53261
  rect_pad_width: number;
53252
53262
  rect_pad_height: number;
53253
- hole_ccw_rotation: string | number;
53254
53263
  rect_ccw_rotation: string | number;
53264
+ hole_ccw_rotation: string | number;
53255
53265
  pcb_component_id?: string | undefined;
53256
53266
  subcircuit_id?: string | undefined;
53257
53267
  pcb_group_id?: string | undefined;
package/dist/index.mjs CHANGED
@@ -1750,7 +1750,8 @@ var pcb_circular_hole_with_rect_pad = z85.object({
1750
1750
  pcb_component_id: z85.string().optional(),
1751
1751
  pcb_port_id: z85.string().optional(),
1752
1752
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
1753
- soldermask_margin: z85.number().optional()
1753
+ soldermask_margin: z85.number().optional(),
1754
+ rect_ccw_rotation: rotation.optional()
1754
1755
  });
1755
1756
  var pcb_pill_hole_with_rect_pad = z85.object({
1756
1757
  type: z85.literal("pcb_plated_hole"),