@tscircuit/props 0.0.603 → 0.0.605
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 +4 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/lib/components/board.ts +8 -0
- package/lib/components/pcb-keepout.ts +12 -0
- package/package.json +1 -1
package/lib/components/board.ts
CHANGED
|
@@ -48,6 +48,8 @@ export interface BoardProps
|
|
|
48
48
|
bottomSilkscreenColor?: BoardColor
|
|
49
49
|
/** Whether the board should be assembled on both sides */
|
|
50
50
|
doubleSidedAssembly?: boolean
|
|
51
|
+
/** Whether vias may be placed inside PCB pads */
|
|
52
|
+
isViaInPadAllowed?: boolean
|
|
51
53
|
/** Whether this board should be omitted from the schematic view */
|
|
52
54
|
schematicDisabled?: boolean
|
|
53
55
|
}
|
|
@@ -81,6 +83,12 @@ export const boardProps = subcircuitGroupProps
|
|
|
81
83
|
topSilkscreenColor: boardColor.optional(),
|
|
82
84
|
bottomSilkscreenColor: boardColor.optional(),
|
|
83
85
|
doubleSidedAssembly: z.boolean().optional().default(false),
|
|
86
|
+
isViaInPadAllowed: z
|
|
87
|
+
.boolean()
|
|
88
|
+
.optional()
|
|
89
|
+
.describe(
|
|
90
|
+
"Allows intentional via-in-pad designs to pass DRC. Omitted or false keeps via-in-pad disallowed.",
|
|
91
|
+
),
|
|
84
92
|
schematicDisabled: z.boolean().optional(),
|
|
85
93
|
})
|
|
86
94
|
|
|
@@ -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>
|