@tscircuit/props 0.0.618 → 0.0.620

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.js CHANGED
@@ -63,9 +63,13 @@ var assemblyProps = {
63
63
  // lib/enclosure/cutout-aperture.ts
64
64
  import { z as z5 } from "zod";
65
65
  var enclosureCutoutApertureShapes = ["pill", "rect", "circle"];
66
- var apertureOnlyProps = {
67
- margin: distance.optional()
68
- };
66
+ var cutoutApertureBaseProps = z5.object({
67
+ margin: distance.optional(),
68
+ widthDimensionOffset: distance.optional(),
69
+ heightDimensionOffset: distance.optional(),
70
+ depth: distance.optional()
71
+ });
72
+ var apertureOnlyProps = cutoutApertureBaseProps.shape;
69
73
  var enclosureCutoutApertureProps = z5.discriminatedUnion("shape", [
70
74
  pillShapeProps.extend(apertureOnlyProps),
71
75
  rectShapeProps.extend(apertureOnlyProps),
@@ -76,11 +80,20 @@ expectTypesMatch(true);
76
80
  // lib/enclosure/fdm/box.ts
77
81
  import { z as z6 } from "zod";
78
82
  var enclosureFdmBoxProps = z6.object({
83
+ name: z6.string().optional(),
79
84
  boardRef: z6.string().min(1),
80
85
  width: distance.optional(),
81
86
  height: distance.optional(),
82
87
  depth: distance.optional(),
83
- wallThickness: distance.default("2mm")
88
+ wallThickness: distance.default("2mm"),
89
+ floorThickness: distance.optional(),
90
+ lidThickness: distance.optional(),
91
+ boardClearance: distance.optional(),
92
+ standoffHeight: distance.optional(),
93
+ topHeadroom: distance.optional(),
94
+ lidLipDepth: distance.optional(),
95
+ disableCutouts: z6.boolean().optional(),
96
+ showHiddenEdges: z6.boolean().optional()
84
97
  });
85
98
  expectTypesMatch(true);
86
99
 
@@ -146,6 +159,7 @@ var cadModelBase = z10.object({
146
159
  rotationOffset: z10.number().or(rotationPoint3).optional(),
147
160
  positionOffset: point3.optional(),
148
161
  modelOriginPosition: point3.optional(),
162
+ modelBounds: z10.object({ min: point3, max: point3 }).optional(),
149
163
  size: point3.optional(),
150
164
  modelUnitToMmScale: distance.optional(),
151
165
  modelBoardNormalDirection: cadModelAxisDirection.optional(),
@@ -17483,6 +17497,9 @@ var footprintProps = z73.object({
17483
17497
  src: footprintProp.describe("Can be a footprint or kicad string").optional(),
17484
17498
  insertionDirection: footprintInsertionDirection.optional().describe(
17485
17499
  "Direction a cable or mating part is attached from, named for the side of the footprint it approaches from, in its unrotated orientation."
17500
+ ),
17501
+ cutoutApertureDirection: footprintInsertionDirection.optional().describe(
17502
+ "Direction the part's enclosure opening faces, in its unrotated orientation. Distinct from insertionDirection: a side-actuated switch is installed from above and actuated from the side. Falls back to insertionDirection when absent."
17486
17503
  )
17487
17504
  });
17488
17505
  expectTypesMatch(true);
@@ -19144,6 +19161,7 @@ export {
19144
19161
  currentSourcePins,
19145
19162
  currentSourceProps,
19146
19163
  customDrcCheckFn,
19164
+ cutoutApertureBaseProps,
19147
19165
  cutoutProps,
19148
19166
  differentialPairProps,
19149
19167
  diodePinLabelsProp,