@tscircuit/props 0.0.619 → 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.d.ts +8 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/lib/enclosure/fdm/box.ts +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -322,6 +322,8 @@ interface EnclosureFdmBoxProps {
|
|
|
322
322
|
lidLipDepth?: Distance;
|
|
323
323
|
/** Disable placement of apertures explicitly declared by enclosed components. */
|
|
324
324
|
disableCutouts?: boolean;
|
|
325
|
+
/** Show edges hidden behind the enclosure surface in compatible 3D viewers. */
|
|
326
|
+
showHiddenEdges?: boolean;
|
|
325
327
|
}
|
|
326
328
|
declare const enclosureFdmBoxProps: z.ZodObject<{
|
|
327
329
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -337,6 +339,7 @@ declare const enclosureFdmBoxProps: z.ZodObject<{
|
|
|
337
339
|
topHeadroom: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
338
340
|
lidLipDepth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
339
341
|
disableCutouts: z.ZodOptional<z.ZodBoolean>;
|
|
342
|
+
showHiddenEdges: z.ZodOptional<z.ZodBoolean>;
|
|
340
343
|
}, "strip", z.ZodTypeAny, {
|
|
341
344
|
boardRef: string;
|
|
342
345
|
wallThickness: number;
|
|
@@ -351,6 +354,7 @@ declare const enclosureFdmBoxProps: z.ZodObject<{
|
|
|
351
354
|
topHeadroom?: number | undefined;
|
|
352
355
|
lidLipDepth?: number | undefined;
|
|
353
356
|
disableCutouts?: boolean | undefined;
|
|
357
|
+
showHiddenEdges?: boolean | undefined;
|
|
354
358
|
}, {
|
|
355
359
|
boardRef: string;
|
|
356
360
|
width?: string | number | undefined;
|
|
@@ -365,6 +369,7 @@ declare const enclosureFdmBoxProps: z.ZodObject<{
|
|
|
365
369
|
topHeadroom?: string | number | undefined;
|
|
366
370
|
lidLipDepth?: string | number | undefined;
|
|
367
371
|
disableCutouts?: boolean | undefined;
|
|
372
|
+
showHiddenEdges?: boolean | undefined;
|
|
368
373
|
}>;
|
|
369
374
|
type EnclosureFdmBoxPropsInput = z.input<typeof enclosureFdmBoxProps>;
|
|
370
375
|
|
|
@@ -457,6 +462,7 @@ declare const enclosureProps: {
|
|
|
457
462
|
topHeadroom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
458
463
|
lidLipDepth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
459
464
|
disableCutouts: zod.ZodOptional<zod.ZodBoolean>;
|
|
465
|
+
showHiddenEdges: zod.ZodOptional<zod.ZodBoolean>;
|
|
460
466
|
}, "strip", zod.ZodTypeAny, {
|
|
461
467
|
boardRef: string;
|
|
462
468
|
wallThickness: number;
|
|
@@ -471,6 +477,7 @@ declare const enclosureProps: {
|
|
|
471
477
|
topHeadroom?: number | undefined;
|
|
472
478
|
lidLipDepth?: number | undefined;
|
|
473
479
|
disableCutouts?: boolean | undefined;
|
|
480
|
+
showHiddenEdges?: boolean | undefined;
|
|
474
481
|
}, {
|
|
475
482
|
boardRef: string;
|
|
476
483
|
width?: string | number | undefined;
|
|
@@ -485,6 +492,7 @@ declare const enclosureProps: {
|
|
|
485
492
|
topHeadroom?: string | number | undefined;
|
|
486
493
|
lidLipDepth?: string | number | undefined;
|
|
487
494
|
disableCutouts?: boolean | undefined;
|
|
495
|
+
showHiddenEdges?: boolean | undefined;
|
|
488
496
|
}>;
|
|
489
497
|
};
|
|
490
498
|
};
|
package/dist/index.js
CHANGED
|
@@ -92,7 +92,8 @@ var enclosureFdmBoxProps = z6.object({
|
|
|
92
92
|
standoffHeight: distance.optional(),
|
|
93
93
|
topHeadroom: distance.optional(),
|
|
94
94
|
lidLipDepth: distance.optional(),
|
|
95
|
-
disableCutouts: z6.boolean().optional()
|
|
95
|
+
disableCutouts: z6.boolean().optional(),
|
|
96
|
+
showHiddenEdges: z6.boolean().optional()
|
|
96
97
|
});
|
|
97
98
|
expectTypesMatch(true);
|
|
98
99
|
|