@tscircuit/props 0.0.365 → 0.0.367
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 +22 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/lib/components/board.ts +3 -0
- package/lib/components/smtpad.ts +4 -0
- package/package.json +1 -1
package/lib/components/board.ts
CHANGED
|
@@ -45,6 +45,8 @@ export interface BoardProps
|
|
|
45
45
|
topSilkscreenColor?: BoardColor
|
|
46
46
|
/** Color of the bottom silkscreen */
|
|
47
47
|
bottomSilkscreenColor?: BoardColor
|
|
48
|
+
/** Whether the board should be assembled on both sides */
|
|
49
|
+
doubleSidedAssembly?: boolean
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
export const boardProps = subcircuitGroupProps
|
|
@@ -63,6 +65,7 @@ export const boardProps = subcircuitGroupProps
|
|
|
63
65
|
silkscreenColor: boardColor.optional(),
|
|
64
66
|
topSilkscreenColor: boardColor.optional(),
|
|
65
67
|
bottomSilkscreenColor: boardColor.optional(),
|
|
68
|
+
doubleSidedAssembly: z.boolean().optional().default(false),
|
|
66
69
|
})
|
|
67
70
|
|
|
68
71
|
type InferredBoardProps = z.input<typeof boardProps>
|
package/lib/components/smtpad.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface RectSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
|
15
15
|
width: Distance
|
|
16
16
|
height: Distance
|
|
17
17
|
rectBorderRadius?: Distance
|
|
18
|
+
cornerRadius?: Distance
|
|
18
19
|
portHints?: PortHints
|
|
19
20
|
coveredWithSolderMask?: boolean
|
|
20
21
|
}
|
|
@@ -25,6 +26,7 @@ export interface RotatedRectSmtPadProps
|
|
|
25
26
|
shape: "rotated_rect"
|
|
26
27
|
width: Distance
|
|
27
28
|
height: Distance
|
|
29
|
+
cornerRadius?: Distance
|
|
28
30
|
ccwRotation: number
|
|
29
31
|
portHints?: PortHints
|
|
30
32
|
coveredWithSolderMask?: boolean
|
|
@@ -76,6 +78,7 @@ export const rectSmtPadProps = pcbLayoutProps
|
|
|
76
78
|
width: distance,
|
|
77
79
|
height: distance,
|
|
78
80
|
rectBorderRadius: distance.optional(),
|
|
81
|
+
cornerRadius: distance.optional(),
|
|
79
82
|
portHints: portHints.optional(),
|
|
80
83
|
coveredWithSolderMask: z.boolean().optional(),
|
|
81
84
|
})
|
|
@@ -90,6 +93,7 @@ export const rotatedRectSmtPadProps = pcbLayoutProps
|
|
|
90
93
|
width: distance,
|
|
91
94
|
height: distance,
|
|
92
95
|
ccwRotation: z.number(),
|
|
96
|
+
cornerRadius: distance.optional(),
|
|
93
97
|
portHints: portHints.optional(),
|
|
94
98
|
coveredWithSolderMask: z.boolean().optional(),
|
|
95
99
|
})
|