@tscircuit/props 0.0.481 → 0.0.482
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/dist/index.d.ts +317 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +4 -0
- package/package.json +1 -1
package/lib/common/layout.ts
CHANGED
|
@@ -49,6 +49,7 @@ export interface PcbLayoutProps {
|
|
|
49
49
|
pcbRotation?: string | number
|
|
50
50
|
pcbPositionAnchor?: string
|
|
51
51
|
pcbPositionMode?: PcbPositionMode
|
|
52
|
+
shouldBeOnEdgeOfBoard?: boolean
|
|
52
53
|
layer?: LayerRefInput
|
|
53
54
|
pcbMarginTop?: string | number
|
|
54
55
|
pcbMarginRight?: string | number
|
|
@@ -84,6 +85,7 @@ export interface CommonLayoutProps {
|
|
|
84
85
|
pcbRotation?: string | number
|
|
85
86
|
pcbPositionAnchor?: string
|
|
86
87
|
pcbPositionMode?: PcbPositionMode
|
|
88
|
+
shouldBeOnEdgeOfBoard?: boolean
|
|
87
89
|
|
|
88
90
|
pcbMarginTop?: string | number
|
|
89
91
|
pcbMarginRight?: string | number
|
|
@@ -145,6 +147,7 @@ export const pcbLayoutProps = z.object({
|
|
|
145
147
|
"relative_to_component_anchor",
|
|
146
148
|
])
|
|
147
149
|
.optional(),
|
|
150
|
+
shouldBeOnEdgeOfBoard: z.boolean().optional(),
|
|
148
151
|
layer: layer_ref.optional(),
|
|
149
152
|
pcbMarginTop: distance.optional(),
|
|
150
153
|
pcbMarginRight: distance.optional(),
|
|
@@ -179,6 +182,7 @@ export const commonLayoutProps = z.object({
|
|
|
179
182
|
"relative_to_component_anchor",
|
|
180
183
|
])
|
|
181
184
|
.optional(),
|
|
185
|
+
shouldBeOnEdgeOfBoard: z.boolean().optional(),
|
|
182
186
|
pcbMarginTop: distance.optional(),
|
|
183
187
|
pcbMarginRight: distance.optional(),
|
|
184
188
|
pcbMarginBottom: distance.optional(),
|