@tscircuit/props 0.0.602 → 0.0.604
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 +2 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/lib/components/bus.ts +1 -1
- package/lib/components/pcb-keepout.ts +12 -0
- package/package.json +1 -1
package/lib/components/bus.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface BusProps {
|
|
|
11
11
|
name?: string
|
|
12
12
|
/** Trace names or port selectors for the connections in the bus. */
|
|
13
13
|
connections: string[]
|
|
14
|
-
/**
|
|
14
|
+
/** If set, every trace in this bus is assigned to this autorouting phase. */
|
|
15
15
|
routingPhaseIndex?: number | null
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -7,12 +7,24 @@ export const pcbKeepoutProps = z.union([
|
|
|
7
7
|
shape: z.literal("circle"),
|
|
8
8
|
radius: distance,
|
|
9
9
|
layers: z.array(layer_ref).optional(),
|
|
10
|
+
excludeRefs: z
|
|
11
|
+
.array(z.string())
|
|
12
|
+
.optional()
|
|
13
|
+
.describe(
|
|
14
|
+
'Component selectors excluded from the keepout, such as ".ANT1"',
|
|
15
|
+
),
|
|
10
16
|
}),
|
|
11
17
|
pcbLayoutProps.extend({
|
|
12
18
|
shape: z.literal("rect"),
|
|
13
19
|
width: distance,
|
|
14
20
|
height: distance,
|
|
15
21
|
layers: z.array(layer_ref).optional(),
|
|
22
|
+
excludeRefs: z
|
|
23
|
+
.array(z.string())
|
|
24
|
+
.optional()
|
|
25
|
+
.describe(
|
|
26
|
+
'Component selectors excluded from the keepout, such as ".ANT1"',
|
|
27
|
+
),
|
|
16
28
|
}),
|
|
17
29
|
])
|
|
18
30
|
export type PcbKeepoutProps = z.input<typeof pcbKeepoutProps>
|