@tscircuit/props 0.0.390 → 0.0.392

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/README.md CHANGED
@@ -425,6 +425,8 @@ export interface CopperPourProps {
425
425
  connectsTo: string;
426
426
  padMargin?: Distance;
427
427
  traceMargin?: Distance;
428
+ clearance?: Distance;
429
+ coveredWithSolderMask?: boolean;
428
430
  }
429
431
  ```
430
432
 
package/dist/index.d.ts CHANGED
@@ -52103,6 +52103,8 @@ interface CopperPourProps {
52103
52103
  connectsTo: string;
52104
52104
  padMargin?: Distance;
52105
52105
  traceMargin?: Distance;
52106
+ clearance?: Distance;
52107
+ coveredWithSolderMask?: boolean;
52106
52108
  }
52107
52109
  declare const copperPourProps: z.ZodObject<{
52108
52110
  name: z.ZodOptional<z.ZodString>;
@@ -52118,20 +52120,26 @@ declare const copperPourProps: z.ZodObject<{
52118
52120
  connectsTo: z.ZodString;
52119
52121
  padMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
52120
52122
  traceMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
52123
+ clearance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
52124
+ coveredWithSolderMask: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
52121
52125
  }, "strip", z.ZodTypeAny, {
52122
52126
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
52123
52127
  connectsTo: string;
52128
+ coveredWithSolderMask: boolean;
52124
52129
  name?: string | undefined;
52125
52130
  padMargin?: number | undefined;
52126
52131
  traceMargin?: number | undefined;
52132
+ clearance?: number | undefined;
52127
52133
  }, {
52128
52134
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
52129
52135
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
52130
52136
  };
52131
52137
  connectsTo: string;
52132
52138
  name?: string | undefined;
52139
+ coveredWithSolderMask?: boolean | undefined;
52133
52140
  padMargin?: string | number | undefined;
52134
52141
  traceMargin?: string | number | undefined;
52142
+ clearance?: string | number | undefined;
52135
52143
  }>;
52136
52144
  type CopperPourPropsInput = z.input<typeof copperPourProps>;
52137
52145
 
@@ -57891,7 +57899,11 @@ interface PlatformConfig {
57891
57899
  schematicDisabled?: boolean;
57892
57900
  partsEngineDisabled?: boolean;
57893
57901
  spiceEngineMap?: Record<string, SpiceEngine>;
57894
- footprintLibraryMap?: Record<string, ((path: string) => Promise<FootprintLibraryResult>) | Record<string, any[] | ((path: string) => Promise<FootprintLibraryResult>)>>;
57902
+ footprintLibraryMap?: Record<string, ((path: string, options?: {
57903
+ resolvedPcbStyle?: PcbStyle;
57904
+ }) => Promise<FootprintLibraryResult>) | Record<string, any[] | ((path: string, options?: {
57905
+ resolvedPcbStyle?: PcbStyle;
57906
+ }) => Promise<FootprintLibraryResult>)>>;
57895
57907
  footprintFileParserMap?: Record<string, FootprintFileParserEntry>;
57896
57908
  resolveProjectStaticFileImportUrl?: (path: string) => Promise<string>;
57897
57909
  }
package/dist/index.js CHANGED
@@ -1736,7 +1736,9 @@ var copperPourProps = z78.object({
1736
1736
  layer: layer_ref6,
1737
1737
  connectsTo: z78.string(),
1738
1738
  padMargin: distance.optional(),
1739
- traceMargin: distance.optional()
1739
+ traceMargin: distance.optional(),
1740
+ clearance: distance.optional(),
1741
+ coveredWithSolderMask: z78.boolean().optional().default(true)
1740
1742
  });
1741
1743
  expectTypesMatch(true);
1742
1744
 
@@ -2181,7 +2183,12 @@ var footprintLibraryResult = z106.object({
2181
2183
  footprintCircuitJson: z106.array(z106.any()),
2182
2184
  cadModel: cadModelProp.optional()
2183
2185
  });
2184
- var pathToCircuitJsonFn = z106.function().args(z106.string()).returns(z106.promise(footprintLibraryResult)).describe("A function that takes a path and returns Circuit JSON");
2186
+ var pathToCircuitJsonFn = z106.function().args(z106.string()).returns(z106.promise(footprintLibraryResult)).or(
2187
+ z106.function().args(
2188
+ z106.string(),
2189
+ z106.object({ resolvedPcbStyle: pcbStyle.optional() }).optional()
2190
+ ).returns(z106.promise(footprintLibraryResult))
2191
+ ).describe("A function that takes a path and returns Circuit JSON");
2185
2192
  var footprintFileParserEntry = z106.object({
2186
2193
  loadFromUrl: z106.function().args(z106.string()).returns(z106.promise(footprintLibraryResult)).describe(
2187
2194
  "A function that takes a footprint file URL and returns Circuit JSON"