@tscircuit/props 0.0.415 → 0.0.417
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 +1 -1
- package/dist/index.d.ts +102 -7
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +10 -0
- package/lib/components/board.ts +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -214,6 +214,9 @@ var commonComponentProps = commonLayoutProps.merge(supplierProps).extend({
|
|
|
214
214
|
obstructsWithinBounds: z9.boolean().optional().describe(
|
|
215
215
|
"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"
|
|
216
216
|
),
|
|
217
|
+
showAsTranslucentModel: z9.boolean().optional().describe(
|
|
218
|
+
"Whether to show this component's CAD model as translucent in the 3D viewer."
|
|
219
|
+
),
|
|
217
220
|
pinAttributes: z9.record(z9.string(), pinAttributeMap).optional()
|
|
218
221
|
});
|
|
219
222
|
expectTypesMatch(true);
|
|
@@ -705,7 +708,13 @@ expectTypesMatch(true);
|
|
|
705
708
|
var boardColor = z29.custom((value) => typeof value === "string");
|
|
706
709
|
var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
|
|
707
710
|
material: z29.enum(["fr4", "fr1"]).default("fr4"),
|
|
708
|
-
layers: z29.union([
|
|
711
|
+
layers: z29.union([
|
|
712
|
+
z29.literal(1),
|
|
713
|
+
z29.literal(2),
|
|
714
|
+
z29.literal(4),
|
|
715
|
+
z29.literal(6),
|
|
716
|
+
z29.literal(8)
|
|
717
|
+
]).default(2),
|
|
709
718
|
borderRadius: distance.optional(),
|
|
710
719
|
thickness: distance.optional(),
|
|
711
720
|
boardAnchorPosition: point.optional(),
|