@tscircuit/props 0.0.352 → 0.0.354
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 +24 -10
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/lib/components/board.ts +4 -0
- package/package.json +1 -1
package/lib/components/board.ts
CHANGED
|
@@ -24,10 +24,12 @@ export type BoardColor = AutocompleteString<BoardColorPreset>
|
|
|
24
24
|
const boardColor = z.custom<BoardColor>((value) => typeof value === "string")
|
|
25
25
|
|
|
26
26
|
export interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit"> {
|
|
27
|
+
title?: string
|
|
27
28
|
material?: "fr4" | "fr1"
|
|
28
29
|
/** Number of layers for the PCB */
|
|
29
30
|
layers?: 2 | 4
|
|
30
31
|
borderRadius?: Distance
|
|
32
|
+
thickness?: Distance
|
|
31
33
|
boardAnchorPosition?: Point
|
|
32
34
|
boardAnchorAlignment?: z.infer<typeof ninePointAnchor>
|
|
33
35
|
/** Color applied to both top and bottom solder masks */
|
|
@@ -48,8 +50,10 @@ export const boardProps = subcircuitGroupProps.extend({
|
|
|
48
50
|
material: z.enum(["fr4", "fr1"]).default("fr4"),
|
|
49
51
|
layers: z.union([z.literal(2), z.literal(4)]).default(2),
|
|
50
52
|
borderRadius: distance.optional(),
|
|
53
|
+
thickness: distance.optional(),
|
|
51
54
|
boardAnchorPosition: point.optional(),
|
|
52
55
|
boardAnchorAlignment: ninePointAnchor.optional(),
|
|
56
|
+
title: z.string().optional(),
|
|
53
57
|
solderMaskColor: boardColor.optional(),
|
|
54
58
|
topSolderMaskColor: boardColor.optional(),
|
|
55
59
|
bottomSolderMaskColor: boardColor.optional(),
|