@tscircuit/props 0.0.444 → 0.0.446
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 +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/lib/components/copper-pour.ts +3 -0
- package/lib/components/group.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -5674,6 +5674,7 @@ interface AutorouterConfig {
|
|
|
5674
5674
|
serverCacheEnabled?: boolean;
|
|
5675
5675
|
cache?: PcbRouteCache;
|
|
5676
5676
|
traceClearance?: Distance;
|
|
5677
|
+
availableJumperTypes?: Array<"1206x4" | "0603">;
|
|
5677
5678
|
groupMode?: "sequential_trace" | "subcircuit" | /** @deprecated Use "sequential_trace" */ "sequential-trace";
|
|
5678
5679
|
local?: boolean;
|
|
5679
5680
|
algorithmFn?: (simpleRouteJson: any) => Promise<any>;
|
|
@@ -5688,6 +5689,7 @@ declare const autorouterConfig: z.ZodObject<{
|
|
|
5688
5689
|
serverCacheEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
5689
5690
|
cache: z.ZodOptional<z.ZodType<PcbRouteCache, z.ZodTypeDef, PcbRouteCache>>;
|
|
5690
5691
|
traceClearance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5692
|
+
availableJumperTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["1206x4", "0603"]>, "many">>;
|
|
5691
5693
|
groupMode: z.ZodOptional<z.ZodEnum<["sequential_trace", "subcircuit", "sequential-trace"]>>;
|
|
5692
5694
|
algorithmFn: z.ZodOptional<z.ZodType<(simpleRouteJson: any) => Promise<any>, z.ZodTypeDef, (simpleRouteJson: any) => Promise<any>>>;
|
|
5693
5695
|
preset: z.ZodOptional<z.ZodEnum<["sequential_trace", "subcircuit", "auto", "auto_local", "auto_cloud", "auto_jumper", "tscircuit_beta", "freerouting", "laser_prefab", "auto-jumper", "sequential-trace", "auto-local", "auto-cloud"]>>;
|
|
@@ -5699,6 +5701,7 @@ declare const autorouterConfig: z.ZodObject<{
|
|
|
5699
5701
|
serverCacheEnabled?: boolean | undefined;
|
|
5700
5702
|
cache?: PcbRouteCache | undefined;
|
|
5701
5703
|
traceClearance?: number | undefined;
|
|
5704
|
+
availableJumperTypes?: ("0603" | "1206x4")[] | undefined;
|
|
5702
5705
|
groupMode?: "sequential_trace" | "subcircuit" | "sequential-trace" | undefined;
|
|
5703
5706
|
algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
|
|
5704
5707
|
preset?: "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "freerouting" | "laser_prefab" | "auto-jumper" | "auto-local" | "auto-cloud" | undefined;
|
|
@@ -5710,6 +5713,7 @@ declare const autorouterConfig: z.ZodObject<{
|
|
|
5710
5713
|
serverCacheEnabled?: boolean | undefined;
|
|
5711
5714
|
cache?: PcbRouteCache | undefined;
|
|
5712
5715
|
traceClearance?: string | number | undefined;
|
|
5716
|
+
availableJumperTypes?: ("0603" | "1206x4")[] | undefined;
|
|
5713
5717
|
groupMode?: "sequential_trace" | "subcircuit" | "sequential-trace" | undefined;
|
|
5714
5718
|
algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
|
|
5715
5719
|
preset?: "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "freerouting" | "laser_prefab" | "auto-jumper" | "auto-local" | "auto-cloud" | undefined;
|
|
@@ -60252,6 +60256,7 @@ interface CopperPourProps {
|
|
|
60252
60256
|
clearance?: Distance;
|
|
60253
60257
|
boardEdgeMargin?: Distance;
|
|
60254
60258
|
cutoutMargin?: Distance;
|
|
60259
|
+
outline?: Point[];
|
|
60255
60260
|
coveredWithSolderMask?: boolean;
|
|
60256
60261
|
}
|
|
60257
60262
|
declare const copperPourProps: z.ZodObject<{
|
|
@@ -60271,12 +60276,26 @@ declare const copperPourProps: z.ZodObject<{
|
|
|
60271
60276
|
clearance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
60272
60277
|
boardEdgeMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
60273
60278
|
cutoutMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
60279
|
+
outline: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
60280
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
60281
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
60282
|
+
}, "strip", z.ZodTypeAny, {
|
|
60283
|
+
x: number;
|
|
60284
|
+
y: number;
|
|
60285
|
+
}, {
|
|
60286
|
+
x: string | number;
|
|
60287
|
+
y: string | number;
|
|
60288
|
+
}>, "many">>;
|
|
60274
60289
|
coveredWithSolderMask: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
60275
60290
|
}, "strip", z.ZodTypeAny, {
|
|
60276
60291
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
60277
60292
|
connectsTo: string;
|
|
60278
60293
|
coveredWithSolderMask: boolean;
|
|
60279
60294
|
name?: string | undefined;
|
|
60295
|
+
outline?: {
|
|
60296
|
+
x: number;
|
|
60297
|
+
y: number;
|
|
60298
|
+
}[] | undefined;
|
|
60280
60299
|
padMargin?: number | undefined;
|
|
60281
60300
|
traceMargin?: number | undefined;
|
|
60282
60301
|
clearance?: number | undefined;
|
|
@@ -60288,6 +60307,10 @@ declare const copperPourProps: z.ZodObject<{
|
|
|
60288
60307
|
};
|
|
60289
60308
|
connectsTo: string;
|
|
60290
60309
|
name?: string | undefined;
|
|
60310
|
+
outline?: {
|
|
60311
|
+
x: string | number;
|
|
60312
|
+
y: string | number;
|
|
60313
|
+
}[] | undefined;
|
|
60291
60314
|
coveredWithSolderMask?: boolean | undefined;
|
|
60292
60315
|
padMargin?: string | number | undefined;
|
|
60293
60316
|
traceMargin?: string | number | undefined;
|
package/dist/index.js
CHANGED
|
@@ -576,6 +576,7 @@ var autorouterConfig = z30.object({
|
|
|
576
576
|
serverCacheEnabled: z30.boolean().optional(),
|
|
577
577
|
cache: z30.custom((v) => true).optional(),
|
|
578
578
|
traceClearance: length2.optional(),
|
|
579
|
+
availableJumperTypes: z30.array(z30.enum(["1206x4", "0603"])).optional(),
|
|
579
580
|
groupMode: z30.enum(["sequential_trace", "subcircuit", "sequential-trace"]).optional(),
|
|
580
581
|
algorithmFn: z30.custom(
|
|
581
582
|
(v) => typeof v === "function" || v === void 0
|
|
@@ -1954,6 +1955,7 @@ var copperPourProps = z84.object({
|
|
|
1954
1955
|
clearance: distance.optional(),
|
|
1955
1956
|
boardEdgeMargin: distance.optional(),
|
|
1956
1957
|
cutoutMargin: distance.optional(),
|
|
1958
|
+
outline: z84.array(point).optional(),
|
|
1957
1959
|
coveredWithSolderMask: z84.boolean().optional().default(true)
|
|
1958
1960
|
});
|
|
1959
1961
|
expectTypesMatch(true);
|