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