@snaptrude/plugin-core 1.0.1 → 1.0.2-plainpoint-20261026.2
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 +0 -6
- package/api-manifest.json +1581 -94
- package/dist/api/core/camera/index.d.ts +12 -4
- 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/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 +20 -4
- package/dist/api/design/create/bulk-items.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +67 -27
- package/dist/api/design/create/index.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/erase/index.d.ts +10 -2
- package/dist/api/design/erase/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/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/presentation/drawings.d.ts +1 -1
- package/dist/handles.d.ts +8 -0
- package/dist/handles.d.ts.map +1 -1
- package/dist/index.cjs +91 -79
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +90 -79
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
- package/src/api/core/camera/index.ts +5 -5
- 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/design/boolean/index.ts +2 -2
- package/src/api/design/create/bulk-items.ts +3 -2
- package/src/api/design/create/index.ts +27 -26
- 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/erase/index.ts +2 -2
- 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/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({
|
|
@@ -2427,7 +2431,7 @@ var PluginPresentationGraphicsApi = class {
|
|
|
2427
2431
|
// src/api/entity/space.ts
|
|
2428
2432
|
import * as z42 from "zod";
|
|
2429
2433
|
var PluginSpaceCreateRectangularArgs = z42.object({
|
|
2430
|
-
position:
|
|
2434
|
+
position: Vec3Input,
|
|
2431
2435
|
dimensions: z42.object({
|
|
2432
2436
|
width: z42.number(),
|
|
2433
2437
|
height: z42.number(),
|
|
@@ -2441,7 +2445,7 @@ var PluginSpaceCreateFromProfileArgs = z42.object({
|
|
|
2441
2445
|
profile: ProfileHandle,
|
|
2442
2446
|
innerProfiles: z42.array(ProfileHandle).optional(),
|
|
2443
2447
|
extrudeHeight: z42.number(),
|
|
2444
|
-
position:
|
|
2448
|
+
position: Vec3Input
|
|
2445
2449
|
});
|
|
2446
2450
|
var PluginSpaceCreateFromProfileResult = z42.object({
|
|
2447
2451
|
spaceId: z42.string()
|
|
@@ -2590,7 +2594,7 @@ var PluginSpaceUpdateResult = z42.object({
|
|
|
2590
2594
|
var PluginSpaceBulkCreateItem = z42.discriminatedUnion("kind", [
|
|
2591
2595
|
z42.object({
|
|
2592
2596
|
kind: z42.literal("rectangular"),
|
|
2593
|
-
position:
|
|
2597
|
+
position: Vec3Input,
|
|
2594
2598
|
dimensions: z42.object({
|
|
2595
2599
|
width: z42.number(),
|
|
2596
2600
|
height: z42.number(),
|
|
@@ -2606,7 +2610,7 @@ var PluginSpaceBulkCreateItem = z42.discriminatedUnion("kind", [
|
|
|
2606
2610
|
profile: ProfileHandle,
|
|
2607
2611
|
innerProfiles: z42.array(ProfileHandle).optional(),
|
|
2608
2612
|
extrudeHeight: z42.number(),
|
|
2609
|
-
position:
|
|
2613
|
+
position: Vec3Input,
|
|
2610
2614
|
room_type: z42.string().optional(),
|
|
2611
2615
|
spaceType: PluginSpaceType.optional(),
|
|
2612
2616
|
massType: PluginMassType.optional(),
|
|
@@ -3169,7 +3173,7 @@ var PluginDesignFamilyDeleteArgs = z46.object({
|
|
|
3169
3173
|
var PluginDesignFamilyPlaceArgs = z46.object({
|
|
3170
3174
|
id: z46.string().optional(),
|
|
3171
3175
|
version: z46.number().int().positive().optional(),
|
|
3172
|
-
position: z46.union([
|
|
3176
|
+
position: z46.union([Vec3Input, Vec3Components]).optional(),
|
|
3173
3177
|
rotation: z46.number().optional(),
|
|
3174
3178
|
values: z46.record(z46.string(), z46.union([z46.number(), z46.string()])).optional(),
|
|
3175
3179
|
storey: z46.number().int().optional(),
|
|
@@ -3377,7 +3381,7 @@ var PluginCreateWallRunItems = z48.array(PluginCreateWallRunItem).min(1).max(PLU
|
|
|
3377
3381
|
var PluginCreateFloorItem = z48.object({
|
|
3378
3382
|
contour: ContourHandle,
|
|
3379
3383
|
thickness: z48.number(),
|
|
3380
|
-
position:
|
|
3384
|
+
position: Vec3Input.optional()
|
|
3381
3385
|
});
|
|
3382
3386
|
var PluginCreateFloorItems = z48.array(PluginCreateFloorItem).min(1).max(PLUGIN_CREATE_BATCH_LIMIT);
|
|
3383
3387
|
var PluginCreateDoorItem = z48.object({ ...PluginOpeningBaseOptions }).strict();
|
|
@@ -3389,7 +3393,7 @@ var PluginCreateWindowItem = z48.object({
|
|
|
3389
3393
|
var PluginCreateWindowItems = z48.array(PluginCreateWindowItem).min(1).max(PLUGIN_CREATE_BATCH_LIMIT);
|
|
3390
3394
|
var PluginCreateFurnitureItem = z48.object({
|
|
3391
3395
|
catalogId: z48.string().min(1),
|
|
3392
|
-
position:
|
|
3396
|
+
position: Vec3Input,
|
|
3393
3397
|
label: z48.string().optional(),
|
|
3394
3398
|
angleInDegrees: z48.number().optional()
|
|
3395
3399
|
});
|
|
@@ -3474,7 +3478,7 @@ var PluginDesignCreateSpaceArgs = z50.object({
|
|
|
3474
3478
|
contour: ContourHandle,
|
|
3475
3479
|
height: z50.number(),
|
|
3476
3480
|
label: z50.string().optional(),
|
|
3477
|
-
position:
|
|
3481
|
+
position: Vec3Input.optional(),
|
|
3478
3482
|
spaceType: PluginSpaceType.optional(),
|
|
3479
3483
|
massType: PluginMassType.optional(),
|
|
3480
3484
|
departmentId: PluginDepartmentId.optional(),
|
|
@@ -3484,7 +3488,7 @@ var PluginDesignCreateMassArgs = z50.object({
|
|
|
3484
3488
|
contour: ContourHandle,
|
|
3485
3489
|
height: z50.number(),
|
|
3486
3490
|
label: z50.string().optional(),
|
|
3487
|
-
position:
|
|
3491
|
+
position: Vec3Input.optional(),
|
|
3488
3492
|
massType: PluginMassType.optional()
|
|
3489
3493
|
});
|
|
3490
3494
|
var PluginDesignCreateMassFromBrepArgs = z50.object({
|
|
@@ -3500,7 +3504,7 @@ var PluginDesignCreateSlabArgs = z50.object({
|
|
|
3500
3504
|
var PluginDesignCreateFloorArgs = z50.object({
|
|
3501
3505
|
contour: ContourHandle,
|
|
3502
3506
|
thickness: z50.number(),
|
|
3503
|
-
position:
|
|
3507
|
+
position: Vec3Input.optional()
|
|
3504
3508
|
});
|
|
3505
3509
|
var PluginDesignCreateRoofArgs = z50.object({
|
|
3506
3510
|
contour: ContourHandle,
|
|
@@ -3512,15 +3516,15 @@ var PluginDesignCreateCeilingArgs = z50.object({
|
|
|
3512
3516
|
heightFromFloor: z50.number().optional()
|
|
3513
3517
|
});
|
|
3514
3518
|
var PluginDesignCreateColumnArgs = z50.object({
|
|
3515
|
-
position:
|
|
3519
|
+
position: Vec3Input,
|
|
3516
3520
|
crossSection: ContourHandle,
|
|
3517
3521
|
height: z50.number(),
|
|
3518
|
-
directionUp:
|
|
3522
|
+
directionUp: Vec3Input.optional()
|
|
3519
3523
|
});
|
|
3520
3524
|
var PluginDesignCreateBeamArgs = z50.object({
|
|
3521
3525
|
section: ContourHandle,
|
|
3522
3526
|
length: z50.number(),
|
|
3523
|
-
direction:
|
|
3527
|
+
direction: Vec3Input.optional()
|
|
3524
3528
|
});
|
|
3525
3529
|
var PluginDesignCreateWallsArgs = z50.object({
|
|
3526
3530
|
profile: ProfileHandle,
|
|
@@ -3533,7 +3537,7 @@ var PluginDesignCreateWallsArgs = z50.object({
|
|
|
3533
3537
|
});
|
|
3534
3538
|
var PluginDesignCreateStaircaseArgs = z50.object({
|
|
3535
3539
|
preset: PluginStaircasePreset,
|
|
3536
|
-
position:
|
|
3540
|
+
position: Vec3Input,
|
|
3537
3541
|
label: z50.string().optional(),
|
|
3538
3542
|
structureId: z50.string().optional(),
|
|
3539
3543
|
level: z50.string().optional(),
|
|
@@ -3541,7 +3545,7 @@ var PluginDesignCreateStaircaseArgs = z50.object({
|
|
|
3541
3545
|
});
|
|
3542
3546
|
var PluginDesignCreateFurnitureArgs = z50.object({
|
|
3543
3547
|
catalogId: z50.string().min(1),
|
|
3544
|
-
position:
|
|
3548
|
+
position: Vec3Input,
|
|
3545
3549
|
label: z50.string().optional(),
|
|
3546
3550
|
createNewSourceMesh: z50.boolean().optional(),
|
|
3547
3551
|
angleInDegrees: z50.number().optional()
|
|
@@ -3617,7 +3621,7 @@ var PluginDesignCreateReferenceLinesArgs = z50.object({
|
|
|
3617
3621
|
var PluginCopyMode = z50.enum(["instance", "unique"]);
|
|
3618
3622
|
var PluginDesignCreateCopyArgs = z50.object({
|
|
3619
3623
|
components: z50.array(ComponentHandle).min(1),
|
|
3620
|
-
displacement:
|
|
3624
|
+
displacement: Vec3Input,
|
|
3621
3625
|
count: z50.number().int().positive().optional(),
|
|
3622
3626
|
mode: PluginCopyMode.optional()
|
|
3623
3627
|
});
|
|
@@ -3625,7 +3629,7 @@ var PluginCreateSpaceItem = z50.object({
|
|
|
3625
3629
|
contour: ContourHandle,
|
|
3626
3630
|
height: z50.number(),
|
|
3627
3631
|
label: z50.string().optional(),
|
|
3628
|
-
position:
|
|
3632
|
+
position: Vec3Input.optional(),
|
|
3629
3633
|
spaceType: PluginSpaceType.optional(),
|
|
3630
3634
|
massType: PluginMassType.optional(),
|
|
3631
3635
|
departmentId: PluginDepartmentId.optional(),
|
|
@@ -4132,7 +4136,13 @@ var PluginDesignMaterialsListByFaceArgs = PluginDesignMaterialsComponentArgs;
|
|
|
4132
4136
|
// src/api/design/lock.ts
|
|
4133
4137
|
import * as z60 from "zod";
|
|
4134
4138
|
var PluginDesignChangeResult = z60.object({
|
|
4135
|
-
affected: z60.array(ComponentHandle)
|
|
4139
|
+
affected: z60.array(ComponentHandle),
|
|
4140
|
+
/** Derived BIM (walls/floors/slabs) the parametric engine removed with its host. Delete only. */
|
|
4141
|
+
cascaded: z60.array(ComponentHandle).optional(),
|
|
4142
|
+
/** Handles that no longer resolved when the call ran and were skipped. Delete only. */
|
|
4143
|
+
missing: z60.array(ComponentHandle).optional(),
|
|
4144
|
+
/** Handles the engine accepted but left standing; delete them again or report them. Delete only. */
|
|
4145
|
+
rejected: z60.array(ComponentHandle).optional()
|
|
4136
4146
|
});
|
|
4137
4147
|
var PluginDesignLockArgs = z60.object({
|
|
4138
4148
|
components: z60.array(ComponentHandle)
|
|
@@ -4164,7 +4174,7 @@ var ErasableEdgeRef = z61.object({
|
|
|
4164
4174
|
/** The components this edge is incident to — one for external (DirectDelete); two or more for internal (DirectUnion; 3+ at T-junctions where several masses share the edge). */
|
|
4165
4175
|
components: z61.array(ComponentHandle),
|
|
4166
4176
|
/** A representative point on the edge (its head endpoint). Diagnostic only. */
|
|
4167
|
-
snapPoint:
|
|
4177
|
+
snapPoint: Vec3Input
|
|
4168
4178
|
});
|
|
4169
4179
|
var PluginDesignListErasableEdgesArgs = z61.object({
|
|
4170
4180
|
components: z61.array(ComponentHandle).optional(),
|
|
@@ -4208,7 +4218,7 @@ var PluginDesignBooleanApi = class {
|
|
|
4208
4218
|
}
|
|
4209
4219
|
};
|
|
4210
4220
|
var BooleanOptions = z64.object({
|
|
4211
|
-
offset:
|
|
4221
|
+
offset: Vec3Input.optional()
|
|
4212
4222
|
});
|
|
4213
4223
|
var PluginDesignBooleanUnionArgs = z64.object({
|
|
4214
4224
|
components: z64.array(ComponentHandle).min(2),
|
|
@@ -4241,16 +4251,16 @@ var PluginAlignEdge = z65.enum([
|
|
|
4241
4251
|
]);
|
|
4242
4252
|
var PluginDesignMoveArgs = z65.object({
|
|
4243
4253
|
components: z65.array(ComponentHandle).min(1),
|
|
4244
|
-
displacement:
|
|
4254
|
+
displacement: Vec3Input,
|
|
4245
4255
|
is2D: z65.boolean().optional(),
|
|
4246
4256
|
trackParentChange: z65.boolean().optional()
|
|
4247
4257
|
});
|
|
4248
4258
|
var PluginDesignRotateArgs = z65.object({
|
|
4249
4259
|
components: z65.array(ComponentHandle).min(1),
|
|
4250
4260
|
angleInDegrees: z65.number(),
|
|
4251
|
-
axis:
|
|
4261
|
+
axis: Vec3Input.optional(),
|
|
4252
4262
|
is2D: z65.boolean().optional(),
|
|
4253
|
-
pivot:
|
|
4263
|
+
pivot: Vec3Input.optional()
|
|
4254
4264
|
});
|
|
4255
4265
|
var PluginDesignAlignArgs = z65.object({
|
|
4256
4266
|
components: z65.array(ComponentHandle).min(1),
|
|
@@ -4271,7 +4281,7 @@ var PluginDesignEditApi = class {
|
|
|
4271
4281
|
var PluginDesignOffsetSplitArgs = z66.object({
|
|
4272
4282
|
component: ComponentHandle,
|
|
4273
4283
|
offsetDistance: z66.number(),
|
|
4274
|
-
profilePickPoint:
|
|
4284
|
+
profilePickPoint: Vec3Input.optional()
|
|
4275
4285
|
});
|
|
4276
4286
|
|
|
4277
4287
|
// src/api/design/update/index.ts
|
|
@@ -4441,8 +4451,8 @@ var PluginDimensionsChangeResult = z69.object({
|
|
|
4441
4451
|
affected: z69.array(DimensionHandle)
|
|
4442
4452
|
});
|
|
4443
4453
|
var PluginDesignDimensionsCreateArgs = z69.object({
|
|
4444
|
-
from:
|
|
4445
|
-
to:
|
|
4454
|
+
from: Vec3Input,
|
|
4455
|
+
to: Vec3Input,
|
|
4446
4456
|
anchor: ComponentHandle,
|
|
4447
4457
|
anchorTo: ComponentHandle.optional(),
|
|
4448
4458
|
offset: z69.number().finite().optional()
|
|
@@ -9925,6 +9935,7 @@ export {
|
|
|
9925
9935
|
UnderlayHandle,
|
|
9926
9936
|
Vec3Components,
|
|
9927
9937
|
Vec3Handle,
|
|
9938
|
+
Vec3Input,
|
|
9928
9939
|
VertexHandle,
|
|
9929
9940
|
XYZ,
|
|
9930
9941
|
fromEnvelope,
|