circuit-json 0.0.375 → 0.0.376

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
@@ -7668,10 +7668,6 @@ declare const pcb_courtyard_outline: z.ZodObject<{
7668
7668
  x: string | number;
7669
7669
  y: string | number;
7670
7670
  }>, "many">;
7671
- stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
7672
- is_closed: z.ZodOptional<z.ZodBoolean>;
7673
- is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
7674
- color: z.ZodOptional<z.ZodString>;
7675
7671
  }, "strip", z.ZodTypeAny, {
7676
7672
  type: "pcb_courtyard_outline";
7677
7673
  pcb_component_id: string;
@@ -7680,13 +7676,9 @@ declare const pcb_courtyard_outline: z.ZodObject<{
7680
7676
  x: number;
7681
7677
  y: number;
7682
7678
  }[];
7683
- stroke_width: number;
7684
7679
  pcb_courtyard_outline_id: string;
7685
7680
  subcircuit_id?: string | undefined;
7686
7681
  pcb_group_id?: string | undefined;
7687
- is_stroke_dashed?: boolean | undefined;
7688
- color?: string | undefined;
7689
- is_closed?: boolean | undefined;
7690
7682
  }, {
7691
7683
  type: "pcb_courtyard_outline";
7692
7684
  pcb_component_id: string;
@@ -7697,11 +7689,7 @@ declare const pcb_courtyard_outline: z.ZodObject<{
7697
7689
  }[];
7698
7690
  subcircuit_id?: string | undefined;
7699
7691
  pcb_group_id?: string | undefined;
7700
- stroke_width?: string | number | undefined;
7701
- is_stroke_dashed?: boolean | undefined;
7702
- color?: string | undefined;
7703
7692
  pcb_courtyard_outline_id?: string | undefined;
7704
- is_closed?: boolean | undefined;
7705
7693
  }>;
7706
7694
  type PcbCourtyardOutlineInput = z.input<typeof pcb_courtyard_outline>;
7707
7695
  /**
@@ -7715,10 +7703,6 @@ interface PcbCourtyardOutline {
7715
7703
  subcircuit_id?: string;
7716
7704
  layer: VisibleLayer;
7717
7705
  outline: Point[];
7718
- stroke_width: Length;
7719
- is_closed?: boolean;
7720
- is_stroke_dashed?: boolean;
7721
- color?: string;
7722
7706
  }
7723
7707
  /**
7724
7708
  * @deprecated use PcbCourtyardOutline
@@ -21188,10 +21172,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
21188
21172
  x: string | number;
21189
21173
  y: string | number;
21190
21174
  }>, "many">;
21191
- stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
21192
- is_closed: z.ZodOptional<z.ZodBoolean>;
21193
- is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
21194
- color: z.ZodOptional<z.ZodString>;
21195
21175
  }, "strip", z.ZodTypeAny, {
21196
21176
  type: "pcb_courtyard_outline";
21197
21177
  pcb_component_id: string;
@@ -21200,13 +21180,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
21200
21180
  x: number;
21201
21181
  y: number;
21202
21182
  }[];
21203
- stroke_width: number;
21204
21183
  pcb_courtyard_outline_id: string;
21205
21184
  subcircuit_id?: string | undefined;
21206
21185
  pcb_group_id?: string | undefined;
21207
- is_stroke_dashed?: boolean | undefined;
21208
- color?: string | undefined;
21209
- is_closed?: boolean | undefined;
21210
21186
  }, {
21211
21187
  type: "pcb_courtyard_outline";
21212
21188
  pcb_component_id: string;
@@ -21217,11 +21193,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
21217
21193
  }[];
21218
21194
  subcircuit_id?: string | undefined;
21219
21195
  pcb_group_id?: string | undefined;
21220
- stroke_width?: string | number | undefined;
21221
- is_stroke_dashed?: boolean | undefined;
21222
- color?: string | undefined;
21223
21196
  pcb_courtyard_outline_id?: string | undefined;
21224
- is_closed?: boolean | undefined;
21225
21197
  }>, z.ZodObject<{
21226
21198
  type: z.ZodLiteral<"pcb_courtyard_polygon">;
21227
21199
  pcb_courtyard_polygon_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -30032,10 +30004,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
30032
30004
  x: string | number;
30033
30005
  y: string | number;
30034
30006
  }>, "many">;
30035
- stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
30036
- is_closed: z.ZodOptional<z.ZodBoolean>;
30037
- is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
30038
- color: z.ZodOptional<z.ZodString>;
30039
30007
  }, "strip", z.ZodTypeAny, {
30040
30008
  type: "pcb_courtyard_outline";
30041
30009
  pcb_component_id: string;
@@ -30044,13 +30012,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
30044
30012
  x: number;
30045
30013
  y: number;
30046
30014
  }[];
30047
- stroke_width: number;
30048
30015
  pcb_courtyard_outline_id: string;
30049
30016
  subcircuit_id?: string | undefined;
30050
30017
  pcb_group_id?: string | undefined;
30051
- is_stroke_dashed?: boolean | undefined;
30052
- color?: string | undefined;
30053
- is_closed?: boolean | undefined;
30054
30018
  }, {
30055
30019
  type: "pcb_courtyard_outline";
30056
30020
  pcb_component_id: string;
@@ -30061,11 +30025,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
30061
30025
  }[];
30062
30026
  subcircuit_id?: string | undefined;
30063
30027
  pcb_group_id?: string | undefined;
30064
- stroke_width?: string | number | undefined;
30065
- is_stroke_dashed?: boolean | undefined;
30066
- color?: string | undefined;
30067
30028
  pcb_courtyard_outline_id?: string | undefined;
30068
- is_closed?: boolean | undefined;
30069
30029
  }>, z.ZodObject<{
30070
30030
  type: z.ZodLiteral<"pcb_courtyard_polygon">;
30071
30031
  pcb_courtyard_polygon_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
package/dist/index.mjs CHANGED
@@ -294,10 +294,10 @@ expectTypesMatch(true);
294
294
 
295
295
  // src/common/getZodPrefixedIdWithDefault.ts
296
296
  import { z as z5 } from "zod";
297
- var randomId = (length3) => {
297
+ var randomId = (length4) => {
298
298
  const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
299
299
  return Array.from(
300
- { length: length3 },
300
+ { length: length4 },
301
301
  () => chars[Math.floor(Math.random() * chars.length)]
302
302
  ).join("");
303
303
  };
@@ -2912,11 +2912,7 @@ var pcb_courtyard_outline = z134.object({
2912
2912
  pcb_group_id: z134.string().optional(),
2913
2913
  subcircuit_id: z134.string().optional(),
2914
2914
  layer: visible_layer,
2915
- outline: z134.array(point).min(2),
2916
- stroke_width: length.default("0.1mm"),
2917
- is_closed: z134.boolean().optional(),
2918
- is_stroke_dashed: z134.boolean().optional(),
2919
- color: z134.string().optional()
2915
+ outline: z134.array(point).min(2)
2920
2916
  }).describe("Defines a courtyard outline on the PCB");
2921
2917
  expectTypesMatch(true);
2922
2918