@tscircuit/props 0.0.631 → 0.0.632
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 +5 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/lib/components/breakout.ts +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -422,6 +422,11 @@ export interface BreakoutProps
|
|
|
422
422
|
paddingRight?: Distance;
|
|
423
423
|
paddingTop?: Distance;
|
|
424
424
|
paddingBottom?: Distance;
|
|
425
|
+
/**
|
|
426
|
+
* Minimum clearance between this fanout boundary and another fanout
|
|
427
|
+
* boundary. Fanout boundaries may never overlap, even when this is omitted.
|
|
428
|
+
*/
|
|
429
|
+
fanoutMargin?: Distance;
|
|
425
430
|
}
|
|
426
431
|
```
|
|
427
432
|
|
package/dist/index.d.ts
CHANGED
|
@@ -31545,6 +31545,11 @@ interface BreakoutProps extends Omit<SubcircuitGroupProps, "subcircuit">, Fanout
|
|
|
31545
31545
|
paddingRight?: Distance;
|
|
31546
31546
|
paddingTop?: Distance;
|
|
31547
31547
|
paddingBottom?: Distance;
|
|
31548
|
+
/**
|
|
31549
|
+
* Minimum clearance between this fanout boundary and another fanout
|
|
31550
|
+
* boundary. Fanout boundaries may never overlap, even when this is omitted.
|
|
31551
|
+
*/
|
|
31552
|
+
fanoutMargin?: Distance;
|
|
31548
31553
|
}
|
|
31549
31554
|
declare const breakoutProps: z.ZodObject<{
|
|
31550
31555
|
pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
@@ -32353,6 +32358,7 @@ declare const breakoutProps: z.ZodObject<{
|
|
|
32353
32358
|
paddingRight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
32354
32359
|
paddingTop: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
32355
32360
|
paddingBottom: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
32361
|
+
fanoutMargin: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, number, string | number>>;
|
|
32356
32362
|
}, "strip", z.ZodTypeAny, {
|
|
32357
32363
|
autorouter: AutorouterProp;
|
|
32358
32364
|
symbol?: SymbolProp | undefined;
|
|
@@ -32683,6 +32689,7 @@ declare const breakoutProps: z.ZodObject<{
|
|
|
32683
32689
|
} | undefined;
|
|
32684
32690
|
fanoutRoutingLayers?: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8")[] | undefined;
|
|
32685
32691
|
fanoutPourNetMap?: Partial<Record<"top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8", string | string[]>> | undefined;
|
|
32692
|
+
fanoutMargin?: number | undefined;
|
|
32686
32693
|
}, {
|
|
32687
32694
|
symbol?: SymbolProp | undefined;
|
|
32688
32695
|
width?: string | number | undefined;
|
|
@@ -33021,6 +33028,7 @@ declare const breakoutProps: z.ZodObject<{
|
|
|
33021
33028
|
fanoutPourNetMap?: Partial<Record<"top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8" | {
|
|
33022
33029
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
33023
33030
|
}, string | string[]>> | undefined;
|
|
33031
|
+
fanoutMargin?: string | number | undefined;
|
|
33024
33032
|
}>;
|
|
33025
33033
|
|
|
33026
33034
|
/**
|
package/dist/index.js
CHANGED
|
@@ -16686,6 +16686,9 @@ expectTypesMatch(true);
|
|
|
16686
16686
|
|
|
16687
16687
|
// lib/components/breakout.ts
|
|
16688
16688
|
import "zod";
|
|
16689
|
+
var nonnegativeFanoutMargin = distance.refine((value) => value >= 0, {
|
|
16690
|
+
message: "Fanout margin cannot be negative"
|
|
16691
|
+
});
|
|
16689
16692
|
var breakoutProps = subcircuitGroupProps.extend({
|
|
16690
16693
|
autorouter: autorouterProp.default("fanout"),
|
|
16691
16694
|
padding: distance.optional(),
|
|
@@ -16693,6 +16696,7 @@ var breakoutProps = subcircuitGroupProps.extend({
|
|
|
16693
16696
|
paddingRight: distance.optional(),
|
|
16694
16697
|
paddingTop: distance.optional(),
|
|
16695
16698
|
paddingBottom: distance.optional(),
|
|
16699
|
+
fanoutMargin: nonnegativeFanoutMargin.optional(),
|
|
16696
16700
|
...fanoutProps.shape
|
|
16697
16701
|
});
|
|
16698
16702
|
expectTypesMatch(true);
|