@snaptrude/plugin-core 1.0.3 → 1.0.4
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/CHANGELOG.md +6 -0
- package/api-manifest.json +146 -2135
- package/dist/api/core/camera/index.d.ts +16 -6
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/core/comment/index.d.ts +7 -3
- package/dist/api/core/comment/index.d.ts.map +1 -1
- package/dist/api/core/geom/create/index.d.ts +69 -21
- package/dist/api/core/geom/create/index.d.ts.map +1 -1
- package/dist/api/core/geom/query/circle.d.ts +31 -11
- package/dist/api/core/geom/query/circle.d.ts.map +1 -1
- package/dist/api/core/geom/query/contour.d.ts +19 -7
- package/dist/api/core/geom/query/contour.d.ts.map +1 -1
- package/dist/api/core/geom/query/curve.d.ts +72 -24
- package/dist/api/core/geom/query/curve.d.ts.map +1 -1
- package/dist/api/core/geom/query/profile.d.ts +19 -7
- package/dist/api/core/geom/query/profile.d.ts.map +1 -1
- package/dist/api/core/geom/update/contour.d.ts +36 -12
- package/dist/api/core/geom/update/contour.d.ts.map +1 -1
- package/dist/api/core/geom/update/curve.d.ts +13 -5
- package/dist/api/core/geom/update/curve.d.ts.map +1 -1
- package/dist/api/core/geom/update/profile.d.ts +36 -12
- package/dist/api/core/geom/update/profile.d.ts.map +1 -1
- package/dist/api/core/io/import/index.d.ts +7 -3
- package/dist/api/core/io/import/index.d.ts.map +1 -1
- package/dist/api/core/math/quat.d.ts +2 -2
- package/dist/api/core/math/quat.d.ts.map +1 -1
- package/dist/api/core/math/vec3.d.ts +15 -15
- package/dist/api/core/math/vec3.d.ts.map +1 -1
- package/dist/api/core/storeys/index.d.ts +5 -0
- package/dist/api/core/storeys/index.d.ts.map +1 -1
- package/dist/api/design/boolean/index.d.ts +20 -4
- package/dist/api/design/boolean/index.d.ts.map +1 -1
- package/dist/api/design/create/bulk-items.d.ts +84 -16
- package/dist/api/design/create/bulk-items.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +134 -59
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/create/opening-fields.d.ts +18 -6
- package/dist/api/design/create/opening-fields.d.ts.map +1 -1
- package/dist/api/design/delete/index.d.ts +14 -7
- package/dist/api/design/delete/index.d.ts.map +1 -1
- package/dist/api/design/dimensions.d.ts +12 -4
- package/dist/api/design/dimensions.d.ts.map +1 -1
- package/dist/api/design/edit/index.d.ts +7 -3
- package/dist/api/design/edit/index.d.ts.map +1 -1
- package/dist/api/design/family.d.ts +5 -1
- package/dist/api/design/family.d.ts.map +1 -1
- package/dist/api/design/lock.d.ts +3 -0
- package/dist/api/design/lock.d.ts.map +1 -1
- package/dist/api/design/opening-placement.d.ts +15 -3
- package/dist/api/design/opening-placement.d.ts.map +1 -1
- package/dist/api/design/transform/index.d.ts +28 -8
- package/dist/api/design/transform/index.d.ts.map +1 -1
- package/dist/api/entity/space.d.ts +30 -6
- package/dist/api/entity/space.d.ts.map +1 -1
- package/dist/api/entity/story.d.ts +4 -0
- package/dist/api/entity/story.d.ts.map +1 -1
- package/dist/api/presentation/drawings.d.ts +1 -1
- package/dist/api/presentation/views.d.ts +5 -1
- package/dist/api/presentation/views.d.ts.map +1 -1
- package/dist/handles.d.ts +8 -0
- package/dist/handles.d.ts.map +1 -1
- package/dist/index.cjs +96 -82
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +95 -82
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
- package/src/api/core/camera/index.ts +9 -7
- package/src/api/core/comment/index.ts +3 -3
- package/src/api/core/geom/create/index.ts +25 -25
- package/src/api/core/geom/query/circle.ts +11 -11
- package/src/api/core/geom/query/contour.ts +7 -6
- package/src/api/core/geom/query/curve.ts +25 -25
- package/src/api/core/geom/query/profile.ts +7 -6
- package/src/api/core/geom/update/contour.ts +12 -11
- package/src/api/core/geom/update/curve.ts +5 -5
- package/src/api/core/geom/update/profile.ts +12 -11
- package/src/api/core/io/import/index.ts +3 -2
- package/src/api/core/math/quat.ts +2 -2
- package/src/api/core/math/vec3.ts +16 -16
- package/src/api/core/storeys/index.ts +5 -0
- package/src/api/design/boolean/index.ts +2 -2
- package/src/api/design/create/bulk-items.ts +7 -2
- package/src/api/design/create/index.ts +34 -46
- package/src/api/design/create/opening-fields.ts +7 -7
- package/src/api/design/delete/index.ts +14 -7
- package/src/api/design/dimensions.ts +5 -4
- package/src/api/design/edit/index.ts +3 -3
- package/src/api/design/family.ts +2 -1
- package/src/api/design/lock.ts +6 -0
- package/src/api/design/transform/index.ts +15 -7
- package/src/api/entity/space.ts +5 -4
- package/src/api/entity/story.ts +4 -0
- package/src/api/presentation/views.ts +7 -2
- package/src/handles.ts +11 -0
- package/test/handles.test.mjs +36 -0
package/dist/index.js
CHANGED
|
@@ -337,6 +337,10 @@ var EdgeHandle = handleSchema("edge");
|
|
|
337
337
|
var HalfEdgeHandle = handleSchema("halfedge");
|
|
338
338
|
var VertexHandle = handleSchema("vertex");
|
|
339
339
|
var Vec3Components = z3.object({ x: z3.number(), y: z3.number(), z: z3.number() });
|
|
340
|
+
var Vec3Input = z3.union(
|
|
341
|
+
[Vec3Handle, Vec3Components],
|
|
342
|
+
{ error: 'expected a "vec3" handle or a plain { x, y, z } point' }
|
|
343
|
+
);
|
|
340
344
|
var QuatComponents = z3.object({
|
|
341
345
|
x: z3.number(),
|
|
342
346
|
y: z3.number(),
|
|
@@ -353,35 +357,35 @@ var PluginGeomCreateApi = class {
|
|
|
353
357
|
}
|
|
354
358
|
};
|
|
355
359
|
var PluginGeomCreateLineArgs = z4.object({
|
|
356
|
-
startPoint:
|
|
357
|
-
endPoint:
|
|
360
|
+
startPoint: Vec3Input,
|
|
361
|
+
endPoint: Vec3Input
|
|
358
362
|
});
|
|
359
363
|
var PluginGeomCreateArcArgs = z4.object({
|
|
360
|
-
startPoint:
|
|
361
|
-
endPoint:
|
|
362
|
-
centrePoint:
|
|
363
|
-
axis:
|
|
364
|
+
startPoint: Vec3Input,
|
|
365
|
+
endPoint: Vec3Input,
|
|
366
|
+
centrePoint: Vec3Input,
|
|
367
|
+
axis: Vec3Input
|
|
364
368
|
});
|
|
365
369
|
var PluginGeomCreateCircleArgs = z4.object({
|
|
366
|
-
centrePoint:
|
|
367
|
-
axis:
|
|
370
|
+
centrePoint: Vec3Input,
|
|
371
|
+
axis: Vec3Input,
|
|
368
372
|
radius: z4.number()
|
|
369
373
|
});
|
|
370
374
|
var PluginGeomCreateSplineFromPointsArgs = z4.object({
|
|
371
|
-
points: z4.array(
|
|
375
|
+
points: z4.array(Vec3Input).min(3).max(MAX_SPLINE_THROUGH_POINTS)
|
|
372
376
|
});
|
|
373
377
|
var PluginGeomCreateSplineFromControlPointsArgs = z4.object({
|
|
374
|
-
controlPoints: z4.array(
|
|
378
|
+
controlPoints: z4.array(Vec3Input).min(3).max(MAX_SPLINE_POLES),
|
|
375
379
|
options: z4.object({ degree: z4.number().int().min(2).max(3).optional() }).optional()
|
|
376
380
|
});
|
|
377
381
|
var PluginGeomCreateProfileFromLinePointsArgs = z4.object({
|
|
378
|
-
points: z4.array(
|
|
382
|
+
points: z4.array(Vec3Input)
|
|
379
383
|
});
|
|
380
384
|
var PluginGeomCreateProfileFromCurvesArgs = z4.object({
|
|
381
385
|
curves: z4.array(CurveHandle)
|
|
382
386
|
});
|
|
383
387
|
var PluginGeomCreateProfileFromSplinePointsArgs = z4.object({
|
|
384
|
-
points: z4.array(
|
|
388
|
+
points: z4.array(Vec3Input).min(3).max(MAX_SPLINE_THROUGH_POINTS)
|
|
385
389
|
});
|
|
386
390
|
var PluginGeomCreateContourFromProfileArgs = z4.object({
|
|
387
391
|
outer: ProfileHandle
|
|
@@ -605,42 +609,42 @@ var PluginGeomQueryCurveGetChordLengthArgs = z5.object({
|
|
|
605
609
|
});
|
|
606
610
|
var PluginGeomQueryCurveGetTangentArgs = z5.object({
|
|
607
611
|
curve: CurveHandle,
|
|
608
|
-
point:
|
|
612
|
+
point: Vec3Input
|
|
609
613
|
});
|
|
610
614
|
var PluginGeomQueryCurveGetNormalArgs = z5.object({
|
|
611
615
|
curve: CurveHandle,
|
|
612
|
-
point:
|
|
616
|
+
point: Vec3Input
|
|
613
617
|
});
|
|
614
618
|
var PluginGeomQueryCurveGetNearestPointArgs = z5.object({
|
|
615
619
|
curve: CurveHandle,
|
|
616
|
-
point:
|
|
620
|
+
point: Vec3Input
|
|
617
621
|
});
|
|
618
622
|
var PluginGeomQueryCurveGetProjectionArgs = z5.object({
|
|
619
623
|
curve: CurveHandle,
|
|
620
|
-
point:
|
|
624
|
+
point: Vec3Input
|
|
621
625
|
});
|
|
622
626
|
var PluginGeomQueryCurveGetPointAtDistanceArgs = z5.object({
|
|
623
627
|
curve: CurveHandle,
|
|
624
|
-
referencePoint:
|
|
628
|
+
referencePoint: Vec3Input,
|
|
625
629
|
distance: z5.number(),
|
|
626
630
|
forward: z5.boolean().optional()
|
|
627
631
|
});
|
|
628
632
|
var PluginGeomQueryCurveGetParameterAtPointArgs = z5.object({
|
|
629
633
|
curve: CurveHandle,
|
|
630
|
-
point:
|
|
634
|
+
point: Vec3Input
|
|
631
635
|
});
|
|
632
636
|
var PluginGeomQueryCurveGetCurvatureArgs = z5.object({
|
|
633
637
|
curve: CurveHandle,
|
|
634
|
-
point:
|
|
638
|
+
point: Vec3Input
|
|
635
639
|
});
|
|
636
640
|
var PluginGeomQueryCurveGetDistanceToPointArgs = z5.object({
|
|
637
641
|
curve: CurveHandle,
|
|
638
|
-
point:
|
|
642
|
+
point: Vec3Input
|
|
639
643
|
});
|
|
640
644
|
var PluginGeomQueryCurveGetDistanceAlongArgs = z5.object({
|
|
641
645
|
curve: CurveHandle,
|
|
642
|
-
pointA:
|
|
643
|
-
pointB:
|
|
646
|
+
pointA: Vec3Input,
|
|
647
|
+
pointB: Vec3Input
|
|
644
648
|
});
|
|
645
649
|
var PluginGeomQueryCurveListPointsArgs = z5.object({
|
|
646
650
|
curve: CurveHandle,
|
|
@@ -655,12 +659,12 @@ var PluginGeomQueryCurveIsLinearArgs = z5.object({
|
|
|
655
659
|
});
|
|
656
660
|
var PluginGeomQueryCurveIsOnCurveArgs = z5.object({
|
|
657
661
|
curve: CurveHandle,
|
|
658
|
-
point:
|
|
662
|
+
point: Vec3Input,
|
|
659
663
|
threshold: z5.number().optional()
|
|
660
664
|
});
|
|
661
665
|
var PluginGeomQueryCurveHasPointArgs = z5.object({
|
|
662
666
|
curve: CurveHandle,
|
|
663
|
-
point:
|
|
667
|
+
point: Vec3Input,
|
|
664
668
|
includeEndPoints: z5.boolean().optional()
|
|
665
669
|
});
|
|
666
670
|
var PluginGeomQueryCurveIsEqualArgs = z5.object({
|
|
@@ -730,23 +734,23 @@ var PluginGeomQueryCircleGetLengthArgs = z7.object({ circle: CircleHandle });
|
|
|
730
734
|
var PluginGeomQueryCircleIsValidArgs = z7.object({ circle: CircleHandle });
|
|
731
735
|
var PluginGeomQueryCircleGetNearestPointArgs = z7.object({
|
|
732
736
|
circle: CircleHandle,
|
|
733
|
-
point:
|
|
737
|
+
point: Vec3Input
|
|
734
738
|
});
|
|
735
739
|
var PluginGeomQueryCircleHasPointArgs = z7.object({
|
|
736
740
|
circle: CircleHandle,
|
|
737
|
-
point:
|
|
741
|
+
point: Vec3Input
|
|
738
742
|
});
|
|
739
743
|
var PluginGeomQueryCircleGetTangentArgs = z7.object({
|
|
740
744
|
circle: CircleHandle,
|
|
741
|
-
point:
|
|
745
|
+
point: Vec3Input
|
|
742
746
|
});
|
|
743
747
|
var PluginGeomQueryCircleGetNormalArgs = z7.object({
|
|
744
748
|
circle: CircleHandle,
|
|
745
|
-
point:
|
|
749
|
+
point: Vec3Input
|
|
746
750
|
});
|
|
747
751
|
var PluginGeomQueryCircleGetPointAtDistanceArgs = z7.object({
|
|
748
752
|
circle: CircleHandle,
|
|
749
|
-
referencePoint:
|
|
753
|
+
referencePoint: Vec3Input,
|
|
750
754
|
distance: z7.number(),
|
|
751
755
|
forward: z7.boolean().optional()
|
|
752
756
|
});
|
|
@@ -785,15 +789,15 @@ var PluginGeomQueryProfileGetNormalArgs = z8.object({
|
|
|
785
789
|
});
|
|
786
790
|
var PluginGeomQueryProfileGetNearestPointArgs = z8.object({
|
|
787
791
|
profile: ProfileHandle,
|
|
788
|
-
point:
|
|
792
|
+
point: Vec3Input
|
|
789
793
|
});
|
|
790
794
|
var PluginGeomQueryProfileHasPointArgs = z8.object({
|
|
791
795
|
profile: ProfileHandle,
|
|
792
|
-
point:
|
|
796
|
+
point: Vec3Input
|
|
793
797
|
});
|
|
794
798
|
var PluginGeomQueryProfileIsOnBoundaryArgs = z8.object({
|
|
795
799
|
profile: ProfileHandle,
|
|
796
|
-
point:
|
|
800
|
+
point: Vec3Input
|
|
797
801
|
});
|
|
798
802
|
var PluginGeomQueryProfileIsClosedArgs = z8.object({
|
|
799
803
|
profile: ProfileHandle
|
|
@@ -844,15 +848,15 @@ var PluginGeomQueryContourGetNormalArgs = z9.object({
|
|
|
844
848
|
});
|
|
845
849
|
var PluginGeomQueryContourGetNearestPointArgs = z9.object({
|
|
846
850
|
contour: ContourHandle,
|
|
847
|
-
point:
|
|
851
|
+
point: Vec3Input
|
|
848
852
|
});
|
|
849
853
|
var PluginGeomQueryContourHasPointArgs = z9.object({
|
|
850
854
|
contour: ContourHandle,
|
|
851
|
-
point:
|
|
855
|
+
point: Vec3Input
|
|
852
856
|
});
|
|
853
857
|
var PluginGeomQueryContourIsOnBoundaryArgs = z9.object({
|
|
854
858
|
contour: ContourHandle,
|
|
855
|
-
point:
|
|
859
|
+
point: Vec3Input
|
|
856
860
|
});
|
|
857
861
|
var PluginGeomQueryContourIsClockwiseArgs = z9.object({
|
|
858
862
|
contour: ContourHandle
|
|
@@ -1016,7 +1020,7 @@ var PluginGeomUpdateCurveExtendArgs = z15.object({
|
|
|
1016
1020
|
});
|
|
1017
1021
|
var PluginGeomUpdateCurveSplitArgs = z15.object({
|
|
1018
1022
|
curve: CurveHandle,
|
|
1019
|
-
point:
|
|
1023
|
+
point: Vec3Input
|
|
1020
1024
|
});
|
|
1021
1025
|
var PluginGeomUpdateCurveTrimArgs = z15.object({
|
|
1022
1026
|
curve: CurveHandle,
|
|
@@ -1025,7 +1029,7 @@ var PluginGeomUpdateCurveTrimArgs = z15.object({
|
|
|
1025
1029
|
});
|
|
1026
1030
|
var PluginGeomUpdateCurveOffsetArgs = z15.object({
|
|
1027
1031
|
curve: CurveHandle,
|
|
1028
|
-
vector:
|
|
1032
|
+
vector: Vec3Input
|
|
1029
1033
|
});
|
|
1030
1034
|
var PluginGeomUpdateCurveReverseArgs = z15.object({
|
|
1031
1035
|
curve: CurveHandle
|
|
@@ -1043,24 +1047,24 @@ var PluginGeomUpdateProfileOffsetArgs = z16.object({
|
|
|
1043
1047
|
});
|
|
1044
1048
|
var PluginGeomUpdateProfileMoveArgs = z16.object({
|
|
1045
1049
|
profile: ProfileHandle,
|
|
1046
|
-
translation:
|
|
1050
|
+
translation: Vec3Input
|
|
1047
1051
|
});
|
|
1048
1052
|
var PluginGeomUpdateProfileRotateArgs = z16.object({
|
|
1049
1053
|
profile: ProfileHandle,
|
|
1050
|
-
axis:
|
|
1054
|
+
axis: Vec3Input,
|
|
1051
1055
|
angle: z16.number(),
|
|
1052
|
-
pivot:
|
|
1056
|
+
pivot: Vec3Input.optional()
|
|
1053
1057
|
});
|
|
1054
1058
|
var PluginGeomUpdateProfileScaleArgs = z16.object({
|
|
1055
1059
|
profile: ProfileHandle,
|
|
1056
1060
|
factor: z16.union([z16.number(), Vec3Components]),
|
|
1057
|
-
pivot:
|
|
1061
|
+
pivot: Vec3Input.optional()
|
|
1058
1062
|
});
|
|
1059
1063
|
var PluginGeomUpdateProfileMirrorArgs = z16.object({
|
|
1060
1064
|
profile: ProfileHandle,
|
|
1061
1065
|
plane: z16.object({
|
|
1062
|
-
point:
|
|
1063
|
-
normal:
|
|
1066
|
+
point: Vec3Input,
|
|
1067
|
+
normal: Vec3Input
|
|
1064
1068
|
})
|
|
1065
1069
|
});
|
|
1066
1070
|
var PluginGeomUpdateProfileAddArgs = z16.object({
|
|
@@ -1091,24 +1095,24 @@ var PluginGeomUpdateContourOffsetArgs = z17.object({
|
|
|
1091
1095
|
});
|
|
1092
1096
|
var PluginGeomUpdateContourMoveArgs = z17.object({
|
|
1093
1097
|
contour: ContourHandle,
|
|
1094
|
-
translation:
|
|
1098
|
+
translation: Vec3Input
|
|
1095
1099
|
});
|
|
1096
1100
|
var PluginGeomUpdateContourRotateArgs = z17.object({
|
|
1097
1101
|
contour: ContourHandle,
|
|
1098
|
-
axis:
|
|
1102
|
+
axis: Vec3Input,
|
|
1099
1103
|
angle: z17.number(),
|
|
1100
|
-
pivot:
|
|
1104
|
+
pivot: Vec3Input.optional()
|
|
1101
1105
|
});
|
|
1102
1106
|
var PluginGeomUpdateContourScaleArgs = z17.object({
|
|
1103
1107
|
contour: ContourHandle,
|
|
1104
1108
|
factor: z17.union([z17.number(), Vec3Components]),
|
|
1105
|
-
pivot:
|
|
1109
|
+
pivot: Vec3Input.optional()
|
|
1106
1110
|
});
|
|
1107
1111
|
var PluginGeomUpdateContourMirrorArgs = z17.object({
|
|
1108
1112
|
contour: ContourHandle,
|
|
1109
1113
|
plane: z17.object({
|
|
1110
|
-
point:
|
|
1111
|
-
normal:
|
|
1114
|
+
point: Vec3Input,
|
|
1115
|
+
normal: Vec3Input
|
|
1112
1116
|
})
|
|
1113
1117
|
});
|
|
1114
1118
|
var PluginGeomUpdateContourAddHoleArgs = z17.object({
|
|
@@ -1207,8 +1211,8 @@ var PluginStandardView = z21.enum([
|
|
|
1207
1211
|
var PluginCameraMode = z21.enum(["2d", "3d"]);
|
|
1208
1212
|
var PluginCameraProjection = z21.enum(["perspective", "orthographic"]);
|
|
1209
1213
|
var PluginCameraLookFromArgs = z21.object({
|
|
1210
|
-
eye:
|
|
1211
|
-
target:
|
|
1214
|
+
eye: Vec3Input,
|
|
1215
|
+
target: Vec3Input
|
|
1212
1216
|
});
|
|
1213
1217
|
var PluginCameraSetStandardViewArgs = z21.object({
|
|
1214
1218
|
view: PluginStandardView
|
|
@@ -1344,7 +1348,7 @@ var PluginCommentApi = class {
|
|
|
1344
1348
|
var CommentHandle = z24.string().min(1).transform((s) => s);
|
|
1345
1349
|
var PluginCommentCreateArgs = z24.object({
|
|
1346
1350
|
component: ComponentHandle.optional(),
|
|
1347
|
-
position:
|
|
1351
|
+
position: Vec3Input.optional(),
|
|
1348
1352
|
message: z24.string(),
|
|
1349
1353
|
mentions: z24.array(z24.string()).optional()
|
|
1350
1354
|
});
|
|
@@ -1896,7 +1900,7 @@ var PluginImportModelArgs = z33.object({
|
|
|
1896
1900
|
source: ImportSource,
|
|
1897
1901
|
storey: z33.number().int().optional(),
|
|
1898
1902
|
format: ModelFormat.optional(),
|
|
1899
|
-
position:
|
|
1903
|
+
position: Vec3Input.optional(),
|
|
1900
1904
|
label: z33.string().optional()
|
|
1901
1905
|
});
|
|
1902
1906
|
var PluginImportTerrainArgs = z33.object({
|
|
@@ -2428,7 +2432,7 @@ var PluginPresentationGraphicsApi = class {
|
|
|
2428
2432
|
// src/api/entity/space.ts
|
|
2429
2433
|
import * as z42 from "zod";
|
|
2430
2434
|
var PluginSpaceCreateRectangularArgs = z42.object({
|
|
2431
|
-
position:
|
|
2435
|
+
position: Vec3Input,
|
|
2432
2436
|
dimensions: z42.object({
|
|
2433
2437
|
width: z42.number(),
|
|
2434
2438
|
height: z42.number(),
|
|
@@ -2442,7 +2446,7 @@ var PluginSpaceCreateFromProfileArgs = z42.object({
|
|
|
2442
2446
|
profile: ProfileHandle,
|
|
2443
2447
|
innerProfiles: z42.array(ProfileHandle).optional(),
|
|
2444
2448
|
extrudeHeight: z42.number(),
|
|
2445
|
-
position:
|
|
2449
|
+
position: Vec3Input
|
|
2446
2450
|
});
|
|
2447
2451
|
var PluginSpaceCreateFromProfileResult = z42.object({
|
|
2448
2452
|
spaceId: z42.string()
|
|
@@ -2591,7 +2595,7 @@ var PluginSpaceUpdateResult = z42.object({
|
|
|
2591
2595
|
var PluginSpaceBulkCreateItem = z42.discriminatedUnion("kind", [
|
|
2592
2596
|
z42.object({
|
|
2593
2597
|
kind: z42.literal("rectangular"),
|
|
2594
|
-
position:
|
|
2598
|
+
position: Vec3Input,
|
|
2595
2599
|
dimensions: z42.object({
|
|
2596
2600
|
width: z42.number(),
|
|
2597
2601
|
height: z42.number(),
|
|
@@ -2607,7 +2611,7 @@ var PluginSpaceBulkCreateItem = z42.discriminatedUnion("kind", [
|
|
|
2607
2611
|
profile: ProfileHandle,
|
|
2608
2612
|
innerProfiles: z42.array(ProfileHandle).optional(),
|
|
2609
2613
|
extrudeHeight: z42.number(),
|
|
2610
|
-
position:
|
|
2614
|
+
position: Vec3Input,
|
|
2611
2615
|
room_type: z42.string().optional(),
|
|
2612
2616
|
spaceType: PluginSpaceType.optional(),
|
|
2613
2617
|
massType: PluginMassType.optional(),
|
|
@@ -2652,9 +2656,9 @@ var PluginOpeningBaseOptions = {
|
|
|
2652
2656
|
version: z43.number().int().positive().optional(),
|
|
2653
2657
|
values: z43.record(z43.string(), z43.union([z43.number().finite(), z43.string()])).optional(),
|
|
2654
2658
|
hostWall: ComponentHandle,
|
|
2655
|
-
position:
|
|
2656
|
-
facing:
|
|
2657
|
-
hinge:
|
|
2659
|
+
position: Vec3Input,
|
|
2660
|
+
facing: Vec3Input.optional(),
|
|
2661
|
+
hinge: Vec3Input.optional(),
|
|
2658
2662
|
label: z43.string().optional(),
|
|
2659
2663
|
width: z43.number().finite().positive().optional(),
|
|
2660
2664
|
height: z43.number().finite().positive().optional()
|
|
@@ -3170,7 +3174,7 @@ var PluginDesignFamilyDeleteArgs = z46.object({
|
|
|
3170
3174
|
var PluginDesignFamilyPlaceArgs = z46.object({
|
|
3171
3175
|
id: z46.string().optional(),
|
|
3172
3176
|
version: z46.number().int().positive().optional(),
|
|
3173
|
-
position: z46.union([
|
|
3177
|
+
position: z46.union([Vec3Input, Vec3Components]).optional(),
|
|
3174
3178
|
rotation: z46.number().optional(),
|
|
3175
3179
|
values: z46.record(z46.string(), z46.union([z46.number(), z46.string()])).optional(),
|
|
3176
3180
|
storey: z46.number().int().optional(),
|
|
@@ -3378,7 +3382,7 @@ var PluginCreateWallRunItems = z48.array(PluginCreateWallRunItem).min(1).max(PLU
|
|
|
3378
3382
|
var PluginCreateFloorItem = z48.object({
|
|
3379
3383
|
contour: ContourHandle,
|
|
3380
3384
|
thickness: z48.number(),
|
|
3381
|
-
position:
|
|
3385
|
+
position: Vec3Input.optional()
|
|
3382
3386
|
});
|
|
3383
3387
|
var PluginCreateFloorItems = z48.array(PluginCreateFloorItem).min(1).max(PLUGIN_CREATE_BATCH_LIMIT);
|
|
3384
3388
|
var PluginCreateDoorItem = z48.object({ ...PluginOpeningBaseOptions }).strict();
|
|
@@ -3390,7 +3394,7 @@ var PluginCreateWindowItem = z48.object({
|
|
|
3390
3394
|
var PluginCreateWindowItems = z48.array(PluginCreateWindowItem).min(1).max(PLUGIN_CREATE_BATCH_LIMIT);
|
|
3391
3395
|
var PluginCreateFurnitureItem = z48.object({
|
|
3392
3396
|
catalogId: z48.string().min(1),
|
|
3393
|
-
position:
|
|
3397
|
+
position: Vec3Input,
|
|
3394
3398
|
label: z48.string().optional(),
|
|
3395
3399
|
angleInDegrees: z48.number().optional()
|
|
3396
3400
|
});
|
|
@@ -3475,7 +3479,7 @@ var PluginDesignCreateSpaceArgs = z50.object({
|
|
|
3475
3479
|
contour: ContourHandle,
|
|
3476
3480
|
height: z50.number(),
|
|
3477
3481
|
label: z50.string().optional(),
|
|
3478
|
-
position:
|
|
3482
|
+
position: Vec3Input.optional(),
|
|
3479
3483
|
spaceType: PluginSpaceType.optional(),
|
|
3480
3484
|
massType: PluginMassType.optional(),
|
|
3481
3485
|
departmentId: PluginDepartmentId.optional(),
|
|
@@ -3485,7 +3489,7 @@ var PluginDesignCreateMassArgs = z50.object({
|
|
|
3485
3489
|
contour: ContourHandle,
|
|
3486
3490
|
height: z50.number(),
|
|
3487
3491
|
label: z50.string().optional(),
|
|
3488
|
-
position:
|
|
3492
|
+
position: Vec3Input.optional(),
|
|
3489
3493
|
massType: PluginMassType.optional()
|
|
3490
3494
|
});
|
|
3491
3495
|
var PluginDesignCreateMassFromBrepArgs = z50.object({
|
|
@@ -3501,7 +3505,7 @@ var PluginDesignCreateSlabArgs = z50.object({
|
|
|
3501
3505
|
var PluginDesignCreateFloorArgs = z50.object({
|
|
3502
3506
|
contour: ContourHandle,
|
|
3503
3507
|
thickness: z50.number(),
|
|
3504
|
-
position:
|
|
3508
|
+
position: Vec3Input.optional()
|
|
3505
3509
|
});
|
|
3506
3510
|
var PluginDesignCreateRoofArgs = z50.object({
|
|
3507
3511
|
contour: ContourHandle,
|
|
@@ -3513,15 +3517,15 @@ var PluginDesignCreateCeilingArgs = z50.object({
|
|
|
3513
3517
|
heightFromFloor: z50.number().optional()
|
|
3514
3518
|
});
|
|
3515
3519
|
var PluginDesignCreateColumnArgs = z50.object({
|
|
3516
|
-
position:
|
|
3520
|
+
position: Vec3Input,
|
|
3517
3521
|
crossSection: ContourHandle,
|
|
3518
3522
|
height: z50.number(),
|
|
3519
|
-
directionUp:
|
|
3523
|
+
directionUp: Vec3Input.optional()
|
|
3520
3524
|
});
|
|
3521
3525
|
var PluginDesignCreateBeamArgs = z50.object({
|
|
3522
3526
|
section: ContourHandle,
|
|
3523
3527
|
length: z50.number(),
|
|
3524
|
-
direction:
|
|
3528
|
+
direction: Vec3Input.optional()
|
|
3525
3529
|
});
|
|
3526
3530
|
var PluginDesignCreateWallsArgs = z50.object({
|
|
3527
3531
|
profile: ProfileHandle,
|
|
@@ -3534,7 +3538,7 @@ var PluginDesignCreateWallsArgs = z50.object({
|
|
|
3534
3538
|
});
|
|
3535
3539
|
var PluginDesignCreateStaircaseArgs = z50.object({
|
|
3536
3540
|
preset: PluginStaircasePreset,
|
|
3537
|
-
position:
|
|
3541
|
+
position: Vec3Input,
|
|
3538
3542
|
label: z50.string().optional(),
|
|
3539
3543
|
structureId: z50.string().optional(),
|
|
3540
3544
|
level: z50.string().optional(),
|
|
@@ -3542,7 +3546,7 @@ var PluginDesignCreateStaircaseArgs = z50.object({
|
|
|
3542
3546
|
});
|
|
3543
3547
|
var PluginDesignCreateFurnitureArgs = z50.object({
|
|
3544
3548
|
catalogId: z50.string().min(1),
|
|
3545
|
-
position:
|
|
3549
|
+
position: Vec3Input,
|
|
3546
3550
|
label: z50.string().optional(),
|
|
3547
3551
|
createNewSourceMesh: z50.boolean().optional(),
|
|
3548
3552
|
angleInDegrees: z50.number().optional()
|
|
@@ -3618,7 +3622,7 @@ var PluginDesignCreateReferenceLinesArgs = z50.object({
|
|
|
3618
3622
|
var PluginCopyMode = z50.enum(["instance", "unique"]);
|
|
3619
3623
|
var PluginDesignCreateCopyArgs = z50.object({
|
|
3620
3624
|
components: z50.array(ComponentHandle).min(1),
|
|
3621
|
-
displacement:
|
|
3625
|
+
displacement: Vec3Input,
|
|
3622
3626
|
count: z50.number().int().positive().optional(),
|
|
3623
3627
|
mode: PluginCopyMode.optional()
|
|
3624
3628
|
});
|
|
@@ -3626,7 +3630,7 @@ var PluginCreateSpaceItem = z50.object({
|
|
|
3626
3630
|
contour: ContourHandle,
|
|
3627
3631
|
height: z50.number(),
|
|
3628
3632
|
label: z50.string().optional(),
|
|
3629
|
-
position:
|
|
3633
|
+
position: Vec3Input.optional(),
|
|
3630
3634
|
spaceType: PluginSpaceType.optional(),
|
|
3631
3635
|
massType: PluginMassType.optional(),
|
|
3632
3636
|
departmentId: PluginDepartmentId.optional(),
|
|
@@ -4196,7 +4200,13 @@ var PluginDesignMaterialsListByFaceArgs = PluginDesignMaterialsComponentArgs;
|
|
|
4196
4200
|
// src/api/design/lock.ts
|
|
4197
4201
|
import * as z61 from "zod";
|
|
4198
4202
|
var PluginDesignChangeResult = z61.object({
|
|
4199
|
-
affected: z61.array(ComponentHandle)
|
|
4203
|
+
affected: z61.array(ComponentHandle),
|
|
4204
|
+
/** Derived BIM (walls/floors/slabs) the parametric engine removed with its host. Delete only. */
|
|
4205
|
+
cascaded: z61.array(ComponentHandle).optional(),
|
|
4206
|
+
/** Handles that no longer resolved when the call ran and were skipped. Delete only. */
|
|
4207
|
+
missing: z61.array(ComponentHandle).optional(),
|
|
4208
|
+
/** Handles the engine accepted but left standing; delete them again or report them. Delete only. */
|
|
4209
|
+
rejected: z61.array(ComponentHandle).optional()
|
|
4200
4210
|
});
|
|
4201
4211
|
var PluginDesignLockArgs = z61.object({
|
|
4202
4212
|
components: z61.array(ComponentHandle)
|
|
@@ -4272,7 +4282,7 @@ var PluginDesignBooleanApi = class {
|
|
|
4272
4282
|
}
|
|
4273
4283
|
};
|
|
4274
4284
|
var BooleanOptions = z65.object({
|
|
4275
|
-
offset:
|
|
4285
|
+
offset: Vec3Input.optional()
|
|
4276
4286
|
});
|
|
4277
4287
|
var PluginDesignBooleanUnionArgs = z65.object({
|
|
4278
4288
|
components: z65.array(ComponentHandle).min(2),
|
|
@@ -4305,16 +4315,16 @@ var PluginAlignEdge = z66.enum([
|
|
|
4305
4315
|
]);
|
|
4306
4316
|
var PluginDesignMoveArgs = z66.object({
|
|
4307
4317
|
components: z66.array(ComponentHandle).min(1),
|
|
4308
|
-
displacement:
|
|
4318
|
+
displacement: Vec3Input,
|
|
4309
4319
|
is2D: z66.boolean().optional(),
|
|
4310
4320
|
trackParentChange: z66.boolean().optional()
|
|
4311
4321
|
});
|
|
4312
4322
|
var PluginDesignRotateArgs = z66.object({
|
|
4313
4323
|
components: z66.array(ComponentHandle).min(1),
|
|
4314
4324
|
angleInDegrees: z66.number(),
|
|
4315
|
-
axis:
|
|
4325
|
+
axis: Vec3Input.optional(),
|
|
4316
4326
|
is2D: z66.boolean().optional(),
|
|
4317
|
-
pivot:
|
|
4327
|
+
pivot: Vec3Input.optional()
|
|
4318
4328
|
});
|
|
4319
4329
|
var PluginDesignAlignArgs = z66.object({
|
|
4320
4330
|
components: z66.array(ComponentHandle).min(1),
|
|
@@ -4335,7 +4345,7 @@ var PluginDesignEditApi = class {
|
|
|
4335
4345
|
var PluginDesignOffsetSplitArgs = z67.object({
|
|
4336
4346
|
component: ComponentHandle,
|
|
4337
4347
|
offsetDistance: z67.number(),
|
|
4338
|
-
profilePickPoint:
|
|
4348
|
+
profilePickPoint: Vec3Input.optional()
|
|
4339
4349
|
});
|
|
4340
4350
|
|
|
4341
4351
|
// src/api/design/update/index.ts
|
|
@@ -4505,8 +4515,8 @@ var PluginDimensionsChangeResult = z70.object({
|
|
|
4505
4515
|
affected: z70.array(DimensionHandle)
|
|
4506
4516
|
});
|
|
4507
4517
|
var PluginDesignDimensionsCreateArgs = z70.object({
|
|
4508
|
-
from:
|
|
4509
|
-
to:
|
|
4518
|
+
from: Vec3Input,
|
|
4519
|
+
to: Vec3Input,
|
|
4510
4520
|
anchor: ComponentHandle,
|
|
4511
4521
|
anchorTo: ComponentHandle.optional(),
|
|
4512
4522
|
offset: z70.number().finite().optional()
|
|
@@ -5914,7 +5924,9 @@ var PluginPresentationViewsCreateArgs = z87.object({
|
|
|
5914
5924
|
kind: z87.enum(["view", "sitePlan"]).optional(),
|
|
5915
5925
|
storey: z87.number().optional()
|
|
5916
5926
|
});
|
|
5917
|
-
var PluginPresentationViewsCreateResult = PluginPresentationView
|
|
5927
|
+
var PluginPresentationViewsCreateResult = PluginPresentationView.extend({
|
|
5928
|
+
framed: z87.boolean().optional()
|
|
5929
|
+
});
|
|
5918
5930
|
var PluginPresentationViewColorMode = z87.union([
|
|
5919
5931
|
z87.enum(["monochrome", "texture", "department"]),
|
|
5920
5932
|
z87.templateLiteral(["tag:", z87.string()])
|
|
@@ -10084,6 +10096,7 @@ export {
|
|
|
10084
10096
|
UnderlayHandle,
|
|
10085
10097
|
Vec3Components,
|
|
10086
10098
|
Vec3Handle,
|
|
10099
|
+
Vec3Input,
|
|
10087
10100
|
VertexHandle,
|
|
10088
10101
|
XYZ,
|
|
10089
10102
|
fromEnvelope,
|