@tscircuit/props 0.0.472 → 0.0.474
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 +107 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +10 -0
- package/lib/components/port.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -399,6 +399,9 @@ var commonComponentProps = commonLayoutProps.merge(supplierProps).extend({
|
|
|
399
399
|
children: z15.any().optional(),
|
|
400
400
|
symbolName: z15.string().optional(),
|
|
401
401
|
doNotPlace: z15.boolean().optional(),
|
|
402
|
+
allowOffBoard: z15.boolean().optional().describe(
|
|
403
|
+
"Allows the PCB component to hang off the board (e.g. for USB ports or displays)"
|
|
404
|
+
),
|
|
402
405
|
obstructsWithinBounds: z15.boolean().optional().describe(
|
|
403
406
|
"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"
|
|
404
407
|
),
|
|
@@ -2622,6 +2625,7 @@ import { z as z116 } from "zod";
|
|
|
2622
2625
|
var portProps = commonLayoutProps.extend({
|
|
2623
2626
|
name: z116.string(),
|
|
2624
2627
|
pinNumber: z116.number().optional(),
|
|
2628
|
+
schStemLength: z116.number().optional(),
|
|
2625
2629
|
aliases: z116.array(z116.string()).optional(),
|
|
2626
2630
|
direction,
|
|
2627
2631
|
connectsTo: z116.string().or(z116.array(z116.string())).optional(),
|