@tscircuit/props 0.0.494 → 0.0.496
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 +2395 -26
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/lib/common/cadModel.ts +17 -0
- package/lib/components/group.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -66,11 +66,22 @@ var rotationPoint3 = z6.object({
|
|
|
66
66
|
y: z6.union([z6.number(), z6.string()]),
|
|
67
67
|
z: z6.union([z6.number(), z6.string()])
|
|
68
68
|
});
|
|
69
|
+
var cadModelAxisDirections = [
|
|
70
|
+
"x+",
|
|
71
|
+
"x-",
|
|
72
|
+
"y+",
|
|
73
|
+
"y-",
|
|
74
|
+
"z+",
|
|
75
|
+
"z-"
|
|
76
|
+
];
|
|
77
|
+
var cadModelAxisDirection = z6.enum(cadModelAxisDirections);
|
|
69
78
|
var cadModelBase = z6.object({
|
|
70
79
|
rotationOffset: z6.number().or(rotationPoint3).optional(),
|
|
71
80
|
positionOffset: point3.optional(),
|
|
72
81
|
size: point3.optional(),
|
|
73
82
|
modelUnitToMmScale: distance.optional(),
|
|
83
|
+
modelBoardNormalDirection: cadModelAxisDirection.optional(),
|
|
84
|
+
pcbRotationOffset: z6.number().optional(),
|
|
74
85
|
zOffsetFromSurface: distance.optional(),
|
|
75
86
|
showAsTranslucentModel: z6.boolean().optional()
|
|
76
87
|
});
|
|
@@ -16396,7 +16407,7 @@ var subcircuitGroupProps = baseGroupProps.extend({
|
|
|
16396
16407
|
pcbRouteCache: z36.custom((v) => true).optional(),
|
|
16397
16408
|
autorouter: autorouterProp.optional(),
|
|
16398
16409
|
autorouterEffortLevel: autorouterEffortLevel.optional(),
|
|
16399
|
-
autorouterVersion: z36.enum(["v1", "v2", "latest"]).optional(),
|
|
16410
|
+
autorouterVersion: z36.enum(["v1", "v2", "v3", "latest"]).optional(),
|
|
16400
16411
|
square: z36.boolean().optional(),
|
|
16401
16412
|
emptyArea: z36.string().optional(),
|
|
16402
16413
|
filledArea: z36.string().optional(),
|
|
@@ -18364,6 +18375,8 @@ export {
|
|
|
18364
18375
|
breakoutPointProps,
|
|
18365
18376
|
breakoutProps,
|
|
18366
18377
|
bugProps,
|
|
18378
|
+
cadModelAxisDirection,
|
|
18379
|
+
cadModelAxisDirections,
|
|
18367
18380
|
cadModelBase,
|
|
18368
18381
|
cadModelGlb,
|
|
18369
18382
|
cadModelGltf,
|