@tscircuit/props 0.0.339 → 0.0.340
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 +91 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +12 -0
- package/package.json +1 -1
package/lib/common/layout.ts
CHANGED
|
@@ -179,6 +179,12 @@ export interface CommonComponentProps<PinLabel extends string = string>
|
|
|
179
179
|
children?: any
|
|
180
180
|
symbolName?: string
|
|
181
181
|
doNotPlace?: boolean
|
|
182
|
+
/**
|
|
183
|
+
* Does this component take up all the space within its bounds on a layer. This is generally true
|
|
184
|
+
* except for when separated pin headers are being represented by a single component (in which case,
|
|
185
|
+
* chips can be placed between the pin headers) or for tall modules where chips fit underneath.
|
|
186
|
+
*/
|
|
187
|
+
obstructsWithinBounds?: boolean
|
|
182
188
|
}
|
|
183
189
|
|
|
184
190
|
export const commonComponentProps = commonLayoutProps
|
|
@@ -190,6 +196,12 @@ export const commonComponentProps = commonLayoutProps
|
|
|
190
196
|
children: z.any().optional(),
|
|
191
197
|
symbolName: z.string().optional(),
|
|
192
198
|
doNotPlace: z.boolean().optional(),
|
|
199
|
+
obstructsWithinBounds: z
|
|
200
|
+
.boolean()
|
|
201
|
+
.optional()
|
|
202
|
+
.describe(
|
|
203
|
+
"Does this component take up all the space within its bounds on a layer. This is generally true except for when separated pin headers are being represented by a single component (in which case, chips can be placed between the pin headers) or for tall modules where chips fit underneath",
|
|
204
|
+
),
|
|
193
205
|
pinAttributes: z.record(z.string(), pinAttributeMap).optional(),
|
|
194
206
|
})
|
|
195
207
|
|