@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.cjs
CHANGED
|
@@ -1540,6 +1540,7 @@ __export(index_exports, {
|
|
|
1540
1540
|
UnderlayHandle: () => UnderlayHandle,
|
|
1541
1541
|
Vec3Components: () => Vec3Components,
|
|
1542
1542
|
Vec3Handle: () => Vec3Handle,
|
|
1543
|
+
Vec3Input: () => Vec3Input,
|
|
1543
1544
|
VertexHandle: () => VertexHandle,
|
|
1544
1545
|
XYZ: () => XYZ,
|
|
1545
1546
|
fromEnvelope: () => fromEnvelope,
|
|
@@ -1890,6 +1891,10 @@ var EdgeHandle = handleSchema("edge");
|
|
|
1890
1891
|
var HalfEdgeHandle = handleSchema("halfedge");
|
|
1891
1892
|
var VertexHandle = handleSchema("vertex");
|
|
1892
1893
|
var Vec3Components = z3.object({ x: z3.number(), y: z3.number(), z: z3.number() });
|
|
1894
|
+
var Vec3Input = z3.union(
|
|
1895
|
+
[Vec3Handle, Vec3Components],
|
|
1896
|
+
{ error: 'expected a "vec3" handle or a plain { x, y, z } point' }
|
|
1897
|
+
);
|
|
1893
1898
|
var QuatComponents = z3.object({
|
|
1894
1899
|
x: z3.number(),
|
|
1895
1900
|
y: z3.number(),
|
|
@@ -1906,35 +1911,35 @@ var PluginGeomCreateApi = class {
|
|
|
1906
1911
|
}
|
|
1907
1912
|
};
|
|
1908
1913
|
var PluginGeomCreateLineArgs = z4.object({
|
|
1909
|
-
startPoint:
|
|
1910
|
-
endPoint:
|
|
1914
|
+
startPoint: Vec3Input,
|
|
1915
|
+
endPoint: Vec3Input
|
|
1911
1916
|
});
|
|
1912
1917
|
var PluginGeomCreateArcArgs = z4.object({
|
|
1913
|
-
startPoint:
|
|
1914
|
-
endPoint:
|
|
1915
|
-
centrePoint:
|
|
1916
|
-
axis:
|
|
1918
|
+
startPoint: Vec3Input,
|
|
1919
|
+
endPoint: Vec3Input,
|
|
1920
|
+
centrePoint: Vec3Input,
|
|
1921
|
+
axis: Vec3Input
|
|
1917
1922
|
});
|
|
1918
1923
|
var PluginGeomCreateCircleArgs = z4.object({
|
|
1919
|
-
centrePoint:
|
|
1920
|
-
axis:
|
|
1924
|
+
centrePoint: Vec3Input,
|
|
1925
|
+
axis: Vec3Input,
|
|
1921
1926
|
radius: z4.number()
|
|
1922
1927
|
});
|
|
1923
1928
|
var PluginGeomCreateSplineFromPointsArgs = z4.object({
|
|
1924
|
-
points: z4.array(
|
|
1929
|
+
points: z4.array(Vec3Input).min(3).max(MAX_SPLINE_THROUGH_POINTS)
|
|
1925
1930
|
});
|
|
1926
1931
|
var PluginGeomCreateSplineFromControlPointsArgs = z4.object({
|
|
1927
|
-
controlPoints: z4.array(
|
|
1932
|
+
controlPoints: z4.array(Vec3Input).min(3).max(MAX_SPLINE_POLES),
|
|
1928
1933
|
options: z4.object({ degree: z4.number().int().min(2).max(3).optional() }).optional()
|
|
1929
1934
|
});
|
|
1930
1935
|
var PluginGeomCreateProfileFromLinePointsArgs = z4.object({
|
|
1931
|
-
points: z4.array(
|
|
1936
|
+
points: z4.array(Vec3Input)
|
|
1932
1937
|
});
|
|
1933
1938
|
var PluginGeomCreateProfileFromCurvesArgs = z4.object({
|
|
1934
1939
|
curves: z4.array(CurveHandle)
|
|
1935
1940
|
});
|
|
1936
1941
|
var PluginGeomCreateProfileFromSplinePointsArgs = z4.object({
|
|
1937
|
-
points: z4.array(
|
|
1942
|
+
points: z4.array(Vec3Input).min(3).max(MAX_SPLINE_THROUGH_POINTS)
|
|
1938
1943
|
});
|
|
1939
1944
|
var PluginGeomCreateContourFromProfileArgs = z4.object({
|
|
1940
1945
|
outer: ProfileHandle
|
|
@@ -2158,42 +2163,42 @@ var PluginGeomQueryCurveGetChordLengthArgs = z5.object({
|
|
|
2158
2163
|
});
|
|
2159
2164
|
var PluginGeomQueryCurveGetTangentArgs = z5.object({
|
|
2160
2165
|
curve: CurveHandle,
|
|
2161
|
-
point:
|
|
2166
|
+
point: Vec3Input
|
|
2162
2167
|
});
|
|
2163
2168
|
var PluginGeomQueryCurveGetNormalArgs = z5.object({
|
|
2164
2169
|
curve: CurveHandle,
|
|
2165
|
-
point:
|
|
2170
|
+
point: Vec3Input
|
|
2166
2171
|
});
|
|
2167
2172
|
var PluginGeomQueryCurveGetNearestPointArgs = z5.object({
|
|
2168
2173
|
curve: CurveHandle,
|
|
2169
|
-
point:
|
|
2174
|
+
point: Vec3Input
|
|
2170
2175
|
});
|
|
2171
2176
|
var PluginGeomQueryCurveGetProjectionArgs = z5.object({
|
|
2172
2177
|
curve: CurveHandle,
|
|
2173
|
-
point:
|
|
2178
|
+
point: Vec3Input
|
|
2174
2179
|
});
|
|
2175
2180
|
var PluginGeomQueryCurveGetPointAtDistanceArgs = z5.object({
|
|
2176
2181
|
curve: CurveHandle,
|
|
2177
|
-
referencePoint:
|
|
2182
|
+
referencePoint: Vec3Input,
|
|
2178
2183
|
distance: z5.number(),
|
|
2179
2184
|
forward: z5.boolean().optional()
|
|
2180
2185
|
});
|
|
2181
2186
|
var PluginGeomQueryCurveGetParameterAtPointArgs = z5.object({
|
|
2182
2187
|
curve: CurveHandle,
|
|
2183
|
-
point:
|
|
2188
|
+
point: Vec3Input
|
|
2184
2189
|
});
|
|
2185
2190
|
var PluginGeomQueryCurveGetCurvatureArgs = z5.object({
|
|
2186
2191
|
curve: CurveHandle,
|
|
2187
|
-
point:
|
|
2192
|
+
point: Vec3Input
|
|
2188
2193
|
});
|
|
2189
2194
|
var PluginGeomQueryCurveGetDistanceToPointArgs = z5.object({
|
|
2190
2195
|
curve: CurveHandle,
|
|
2191
|
-
point:
|
|
2196
|
+
point: Vec3Input
|
|
2192
2197
|
});
|
|
2193
2198
|
var PluginGeomQueryCurveGetDistanceAlongArgs = z5.object({
|
|
2194
2199
|
curve: CurveHandle,
|
|
2195
|
-
pointA:
|
|
2196
|
-
pointB:
|
|
2200
|
+
pointA: Vec3Input,
|
|
2201
|
+
pointB: Vec3Input
|
|
2197
2202
|
});
|
|
2198
2203
|
var PluginGeomQueryCurveListPointsArgs = z5.object({
|
|
2199
2204
|
curve: CurveHandle,
|
|
@@ -2208,12 +2213,12 @@ var PluginGeomQueryCurveIsLinearArgs = z5.object({
|
|
|
2208
2213
|
});
|
|
2209
2214
|
var PluginGeomQueryCurveIsOnCurveArgs = z5.object({
|
|
2210
2215
|
curve: CurveHandle,
|
|
2211
|
-
point:
|
|
2216
|
+
point: Vec3Input,
|
|
2212
2217
|
threshold: z5.number().optional()
|
|
2213
2218
|
});
|
|
2214
2219
|
var PluginGeomQueryCurveHasPointArgs = z5.object({
|
|
2215
2220
|
curve: CurveHandle,
|
|
2216
|
-
point:
|
|
2221
|
+
point: Vec3Input,
|
|
2217
2222
|
includeEndPoints: z5.boolean().optional()
|
|
2218
2223
|
});
|
|
2219
2224
|
var PluginGeomQueryCurveIsEqualArgs = z5.object({
|
|
@@ -2283,23 +2288,23 @@ var PluginGeomQueryCircleGetLengthArgs = z7.object({ circle: CircleHandle });
|
|
|
2283
2288
|
var PluginGeomQueryCircleIsValidArgs = z7.object({ circle: CircleHandle });
|
|
2284
2289
|
var PluginGeomQueryCircleGetNearestPointArgs = z7.object({
|
|
2285
2290
|
circle: CircleHandle,
|
|
2286
|
-
point:
|
|
2291
|
+
point: Vec3Input
|
|
2287
2292
|
});
|
|
2288
2293
|
var PluginGeomQueryCircleHasPointArgs = z7.object({
|
|
2289
2294
|
circle: CircleHandle,
|
|
2290
|
-
point:
|
|
2295
|
+
point: Vec3Input
|
|
2291
2296
|
});
|
|
2292
2297
|
var PluginGeomQueryCircleGetTangentArgs = z7.object({
|
|
2293
2298
|
circle: CircleHandle,
|
|
2294
|
-
point:
|
|
2299
|
+
point: Vec3Input
|
|
2295
2300
|
});
|
|
2296
2301
|
var PluginGeomQueryCircleGetNormalArgs = z7.object({
|
|
2297
2302
|
circle: CircleHandle,
|
|
2298
|
-
point:
|
|
2303
|
+
point: Vec3Input
|
|
2299
2304
|
});
|
|
2300
2305
|
var PluginGeomQueryCircleGetPointAtDistanceArgs = z7.object({
|
|
2301
2306
|
circle: CircleHandle,
|
|
2302
|
-
referencePoint:
|
|
2307
|
+
referencePoint: Vec3Input,
|
|
2303
2308
|
distance: z7.number(),
|
|
2304
2309
|
forward: z7.boolean().optional()
|
|
2305
2310
|
});
|
|
@@ -2338,15 +2343,15 @@ var PluginGeomQueryProfileGetNormalArgs = z8.object({
|
|
|
2338
2343
|
});
|
|
2339
2344
|
var PluginGeomQueryProfileGetNearestPointArgs = z8.object({
|
|
2340
2345
|
profile: ProfileHandle,
|
|
2341
|
-
point:
|
|
2346
|
+
point: Vec3Input
|
|
2342
2347
|
});
|
|
2343
2348
|
var PluginGeomQueryProfileHasPointArgs = z8.object({
|
|
2344
2349
|
profile: ProfileHandle,
|
|
2345
|
-
point:
|
|
2350
|
+
point: Vec3Input
|
|
2346
2351
|
});
|
|
2347
2352
|
var PluginGeomQueryProfileIsOnBoundaryArgs = z8.object({
|
|
2348
2353
|
profile: ProfileHandle,
|
|
2349
|
-
point:
|
|
2354
|
+
point: Vec3Input
|
|
2350
2355
|
});
|
|
2351
2356
|
var PluginGeomQueryProfileIsClosedArgs = z8.object({
|
|
2352
2357
|
profile: ProfileHandle
|
|
@@ -2397,15 +2402,15 @@ var PluginGeomQueryContourGetNormalArgs = z9.object({
|
|
|
2397
2402
|
});
|
|
2398
2403
|
var PluginGeomQueryContourGetNearestPointArgs = z9.object({
|
|
2399
2404
|
contour: ContourHandle,
|
|
2400
|
-
point:
|
|
2405
|
+
point: Vec3Input
|
|
2401
2406
|
});
|
|
2402
2407
|
var PluginGeomQueryContourHasPointArgs = z9.object({
|
|
2403
2408
|
contour: ContourHandle,
|
|
2404
|
-
point:
|
|
2409
|
+
point: Vec3Input
|
|
2405
2410
|
});
|
|
2406
2411
|
var PluginGeomQueryContourIsOnBoundaryArgs = z9.object({
|
|
2407
2412
|
contour: ContourHandle,
|
|
2408
|
-
point:
|
|
2413
|
+
point: Vec3Input
|
|
2409
2414
|
});
|
|
2410
2415
|
var PluginGeomQueryContourIsClockwiseArgs = z9.object({
|
|
2411
2416
|
contour: ContourHandle
|
|
@@ -2569,7 +2574,7 @@ var PluginGeomUpdateCurveExtendArgs = z15.object({
|
|
|
2569
2574
|
});
|
|
2570
2575
|
var PluginGeomUpdateCurveSplitArgs = z15.object({
|
|
2571
2576
|
curve: CurveHandle,
|
|
2572
|
-
point:
|
|
2577
|
+
point: Vec3Input
|
|
2573
2578
|
});
|
|
2574
2579
|
var PluginGeomUpdateCurveTrimArgs = z15.object({
|
|
2575
2580
|
curve: CurveHandle,
|
|
@@ -2578,7 +2583,7 @@ var PluginGeomUpdateCurveTrimArgs = z15.object({
|
|
|
2578
2583
|
});
|
|
2579
2584
|
var PluginGeomUpdateCurveOffsetArgs = z15.object({
|
|
2580
2585
|
curve: CurveHandle,
|
|
2581
|
-
vector:
|
|
2586
|
+
vector: Vec3Input
|
|
2582
2587
|
});
|
|
2583
2588
|
var PluginGeomUpdateCurveReverseArgs = z15.object({
|
|
2584
2589
|
curve: CurveHandle
|
|
@@ -2596,24 +2601,24 @@ var PluginGeomUpdateProfileOffsetArgs = z16.object({
|
|
|
2596
2601
|
});
|
|
2597
2602
|
var PluginGeomUpdateProfileMoveArgs = z16.object({
|
|
2598
2603
|
profile: ProfileHandle,
|
|
2599
|
-
translation:
|
|
2604
|
+
translation: Vec3Input
|
|
2600
2605
|
});
|
|
2601
2606
|
var PluginGeomUpdateProfileRotateArgs = z16.object({
|
|
2602
2607
|
profile: ProfileHandle,
|
|
2603
|
-
axis:
|
|
2608
|
+
axis: Vec3Input,
|
|
2604
2609
|
angle: z16.number(),
|
|
2605
|
-
pivot:
|
|
2610
|
+
pivot: Vec3Input.optional()
|
|
2606
2611
|
});
|
|
2607
2612
|
var PluginGeomUpdateProfileScaleArgs = z16.object({
|
|
2608
2613
|
profile: ProfileHandle,
|
|
2609
2614
|
factor: z16.union([z16.number(), Vec3Components]),
|
|
2610
|
-
pivot:
|
|
2615
|
+
pivot: Vec3Input.optional()
|
|
2611
2616
|
});
|
|
2612
2617
|
var PluginGeomUpdateProfileMirrorArgs = z16.object({
|
|
2613
2618
|
profile: ProfileHandle,
|
|
2614
2619
|
plane: z16.object({
|
|
2615
|
-
point:
|
|
2616
|
-
normal:
|
|
2620
|
+
point: Vec3Input,
|
|
2621
|
+
normal: Vec3Input
|
|
2617
2622
|
})
|
|
2618
2623
|
});
|
|
2619
2624
|
var PluginGeomUpdateProfileAddArgs = z16.object({
|
|
@@ -2644,24 +2649,24 @@ var PluginGeomUpdateContourOffsetArgs = z17.object({
|
|
|
2644
2649
|
});
|
|
2645
2650
|
var PluginGeomUpdateContourMoveArgs = z17.object({
|
|
2646
2651
|
contour: ContourHandle,
|
|
2647
|
-
translation:
|
|
2652
|
+
translation: Vec3Input
|
|
2648
2653
|
});
|
|
2649
2654
|
var PluginGeomUpdateContourRotateArgs = z17.object({
|
|
2650
2655
|
contour: ContourHandle,
|
|
2651
|
-
axis:
|
|
2656
|
+
axis: Vec3Input,
|
|
2652
2657
|
angle: z17.number(),
|
|
2653
|
-
pivot:
|
|
2658
|
+
pivot: Vec3Input.optional()
|
|
2654
2659
|
});
|
|
2655
2660
|
var PluginGeomUpdateContourScaleArgs = z17.object({
|
|
2656
2661
|
contour: ContourHandle,
|
|
2657
2662
|
factor: z17.union([z17.number(), Vec3Components]),
|
|
2658
|
-
pivot:
|
|
2663
|
+
pivot: Vec3Input.optional()
|
|
2659
2664
|
});
|
|
2660
2665
|
var PluginGeomUpdateContourMirrorArgs = z17.object({
|
|
2661
2666
|
contour: ContourHandle,
|
|
2662
2667
|
plane: z17.object({
|
|
2663
|
-
point:
|
|
2664
|
-
normal:
|
|
2668
|
+
point: Vec3Input,
|
|
2669
|
+
normal: Vec3Input
|
|
2665
2670
|
})
|
|
2666
2671
|
});
|
|
2667
2672
|
var PluginGeomUpdateContourAddHoleArgs = z17.object({
|
|
@@ -2760,8 +2765,8 @@ var PluginStandardView = z21.enum([
|
|
|
2760
2765
|
var PluginCameraMode = z21.enum(["2d", "3d"]);
|
|
2761
2766
|
var PluginCameraProjection = z21.enum(["perspective", "orthographic"]);
|
|
2762
2767
|
var PluginCameraLookFromArgs = z21.object({
|
|
2763
|
-
eye:
|
|
2764
|
-
target:
|
|
2768
|
+
eye: Vec3Input,
|
|
2769
|
+
target: Vec3Input
|
|
2765
2770
|
});
|
|
2766
2771
|
var PluginCameraSetStandardViewArgs = z21.object({
|
|
2767
2772
|
view: PluginStandardView
|
|
@@ -2897,7 +2902,7 @@ var PluginCommentApi = class {
|
|
|
2897
2902
|
var CommentHandle = z24.string().min(1).transform((s) => s);
|
|
2898
2903
|
var PluginCommentCreateArgs = z24.object({
|
|
2899
2904
|
component: ComponentHandle.optional(),
|
|
2900
|
-
position:
|
|
2905
|
+
position: Vec3Input.optional(),
|
|
2901
2906
|
message: z24.string(),
|
|
2902
2907
|
mentions: z24.array(z24.string()).optional()
|
|
2903
2908
|
});
|
|
@@ -3449,7 +3454,7 @@ var PluginImportModelArgs = z33.object({
|
|
|
3449
3454
|
source: ImportSource,
|
|
3450
3455
|
storey: z33.number().int().optional(),
|
|
3451
3456
|
format: ModelFormat.optional(),
|
|
3452
|
-
position:
|
|
3457
|
+
position: Vec3Input.optional(),
|
|
3453
3458
|
label: z33.string().optional()
|
|
3454
3459
|
});
|
|
3455
3460
|
var PluginImportTerrainArgs = z33.object({
|
|
@@ -3981,7 +3986,7 @@ var PluginPresentationGraphicsApi = class {
|
|
|
3981
3986
|
// src/api/entity/space.ts
|
|
3982
3987
|
var z42 = __toESM(require("zod"), 1);
|
|
3983
3988
|
var PluginSpaceCreateRectangularArgs = z42.object({
|
|
3984
|
-
position:
|
|
3989
|
+
position: Vec3Input,
|
|
3985
3990
|
dimensions: z42.object({
|
|
3986
3991
|
width: z42.number(),
|
|
3987
3992
|
height: z42.number(),
|
|
@@ -3995,7 +4000,7 @@ var PluginSpaceCreateFromProfileArgs = z42.object({
|
|
|
3995
4000
|
profile: ProfileHandle,
|
|
3996
4001
|
innerProfiles: z42.array(ProfileHandle).optional(),
|
|
3997
4002
|
extrudeHeight: z42.number(),
|
|
3998
|
-
position:
|
|
4003
|
+
position: Vec3Input
|
|
3999
4004
|
});
|
|
4000
4005
|
var PluginSpaceCreateFromProfileResult = z42.object({
|
|
4001
4006
|
spaceId: z42.string()
|
|
@@ -4144,7 +4149,7 @@ var PluginSpaceUpdateResult = z42.object({
|
|
|
4144
4149
|
var PluginSpaceBulkCreateItem = z42.discriminatedUnion("kind", [
|
|
4145
4150
|
z42.object({
|
|
4146
4151
|
kind: z42.literal("rectangular"),
|
|
4147
|
-
position:
|
|
4152
|
+
position: Vec3Input,
|
|
4148
4153
|
dimensions: z42.object({
|
|
4149
4154
|
width: z42.number(),
|
|
4150
4155
|
height: z42.number(),
|
|
@@ -4160,7 +4165,7 @@ var PluginSpaceBulkCreateItem = z42.discriminatedUnion("kind", [
|
|
|
4160
4165
|
profile: ProfileHandle,
|
|
4161
4166
|
innerProfiles: z42.array(ProfileHandle).optional(),
|
|
4162
4167
|
extrudeHeight: z42.number(),
|
|
4163
|
-
position:
|
|
4168
|
+
position: Vec3Input,
|
|
4164
4169
|
room_type: z42.string().optional(),
|
|
4165
4170
|
spaceType: PluginSpaceType.optional(),
|
|
4166
4171
|
massType: PluginMassType.optional(),
|
|
@@ -4205,9 +4210,9 @@ var PluginOpeningBaseOptions = {
|
|
|
4205
4210
|
version: z43.number().int().positive().optional(),
|
|
4206
4211
|
values: z43.record(z43.string(), z43.union([z43.number().finite(), z43.string()])).optional(),
|
|
4207
4212
|
hostWall: ComponentHandle,
|
|
4208
|
-
position:
|
|
4209
|
-
facing:
|
|
4210
|
-
hinge:
|
|
4213
|
+
position: Vec3Input,
|
|
4214
|
+
facing: Vec3Input.optional(),
|
|
4215
|
+
hinge: Vec3Input.optional(),
|
|
4211
4216
|
label: z43.string().optional(),
|
|
4212
4217
|
width: z43.number().finite().positive().optional(),
|
|
4213
4218
|
height: z43.number().finite().positive().optional()
|
|
@@ -4723,7 +4728,7 @@ var PluginDesignFamilyDeleteArgs = z46.object({
|
|
|
4723
4728
|
var PluginDesignFamilyPlaceArgs = z46.object({
|
|
4724
4729
|
id: z46.string().optional(),
|
|
4725
4730
|
version: z46.number().int().positive().optional(),
|
|
4726
|
-
position: z46.union([
|
|
4731
|
+
position: z46.union([Vec3Input, Vec3Components]).optional(),
|
|
4727
4732
|
rotation: z46.number().optional(),
|
|
4728
4733
|
values: z46.record(z46.string(), z46.union([z46.number(), z46.string()])).optional(),
|
|
4729
4734
|
storey: z46.number().int().optional(),
|
|
@@ -4931,7 +4936,7 @@ var PluginCreateWallRunItems = z48.array(PluginCreateWallRunItem).min(1).max(PLU
|
|
|
4931
4936
|
var PluginCreateFloorItem = z48.object({
|
|
4932
4937
|
contour: ContourHandle,
|
|
4933
4938
|
thickness: z48.number(),
|
|
4934
|
-
position:
|
|
4939
|
+
position: Vec3Input.optional()
|
|
4935
4940
|
});
|
|
4936
4941
|
var PluginCreateFloorItems = z48.array(PluginCreateFloorItem).min(1).max(PLUGIN_CREATE_BATCH_LIMIT);
|
|
4937
4942
|
var PluginCreateDoorItem = z48.object({ ...PluginOpeningBaseOptions }).strict();
|
|
@@ -4943,7 +4948,7 @@ var PluginCreateWindowItem = z48.object({
|
|
|
4943
4948
|
var PluginCreateWindowItems = z48.array(PluginCreateWindowItem).min(1).max(PLUGIN_CREATE_BATCH_LIMIT);
|
|
4944
4949
|
var PluginCreateFurnitureItem = z48.object({
|
|
4945
4950
|
catalogId: z48.string().min(1),
|
|
4946
|
-
position:
|
|
4951
|
+
position: Vec3Input,
|
|
4947
4952
|
label: z48.string().optional(),
|
|
4948
4953
|
angleInDegrees: z48.number().optional()
|
|
4949
4954
|
});
|
|
@@ -5028,7 +5033,7 @@ var PluginDesignCreateSpaceArgs = z50.object({
|
|
|
5028
5033
|
contour: ContourHandle,
|
|
5029
5034
|
height: z50.number(),
|
|
5030
5035
|
label: z50.string().optional(),
|
|
5031
|
-
position:
|
|
5036
|
+
position: Vec3Input.optional(),
|
|
5032
5037
|
spaceType: PluginSpaceType.optional(),
|
|
5033
5038
|
massType: PluginMassType.optional(),
|
|
5034
5039
|
departmentId: PluginDepartmentId.optional(),
|
|
@@ -5038,7 +5043,7 @@ var PluginDesignCreateMassArgs = z50.object({
|
|
|
5038
5043
|
contour: ContourHandle,
|
|
5039
5044
|
height: z50.number(),
|
|
5040
5045
|
label: z50.string().optional(),
|
|
5041
|
-
position:
|
|
5046
|
+
position: Vec3Input.optional(),
|
|
5042
5047
|
massType: PluginMassType.optional()
|
|
5043
5048
|
});
|
|
5044
5049
|
var PluginDesignCreateMassFromBrepArgs = z50.object({
|
|
@@ -5054,7 +5059,7 @@ var PluginDesignCreateSlabArgs = z50.object({
|
|
|
5054
5059
|
var PluginDesignCreateFloorArgs = z50.object({
|
|
5055
5060
|
contour: ContourHandle,
|
|
5056
5061
|
thickness: z50.number(),
|
|
5057
|
-
position:
|
|
5062
|
+
position: Vec3Input.optional()
|
|
5058
5063
|
});
|
|
5059
5064
|
var PluginDesignCreateRoofArgs = z50.object({
|
|
5060
5065
|
contour: ContourHandle,
|
|
@@ -5066,15 +5071,15 @@ var PluginDesignCreateCeilingArgs = z50.object({
|
|
|
5066
5071
|
heightFromFloor: z50.number().optional()
|
|
5067
5072
|
});
|
|
5068
5073
|
var PluginDesignCreateColumnArgs = z50.object({
|
|
5069
|
-
position:
|
|
5074
|
+
position: Vec3Input,
|
|
5070
5075
|
crossSection: ContourHandle,
|
|
5071
5076
|
height: z50.number(),
|
|
5072
|
-
directionUp:
|
|
5077
|
+
directionUp: Vec3Input.optional()
|
|
5073
5078
|
});
|
|
5074
5079
|
var PluginDesignCreateBeamArgs = z50.object({
|
|
5075
5080
|
section: ContourHandle,
|
|
5076
5081
|
length: z50.number(),
|
|
5077
|
-
direction:
|
|
5082
|
+
direction: Vec3Input.optional()
|
|
5078
5083
|
});
|
|
5079
5084
|
var PluginDesignCreateWallsArgs = z50.object({
|
|
5080
5085
|
profile: ProfileHandle,
|
|
@@ -5087,7 +5092,7 @@ var PluginDesignCreateWallsArgs = z50.object({
|
|
|
5087
5092
|
});
|
|
5088
5093
|
var PluginDesignCreateStaircaseArgs = z50.object({
|
|
5089
5094
|
preset: PluginStaircasePreset,
|
|
5090
|
-
position:
|
|
5095
|
+
position: Vec3Input,
|
|
5091
5096
|
label: z50.string().optional(),
|
|
5092
5097
|
structureId: z50.string().optional(),
|
|
5093
5098
|
level: z50.string().optional(),
|
|
@@ -5095,7 +5100,7 @@ var PluginDesignCreateStaircaseArgs = z50.object({
|
|
|
5095
5100
|
});
|
|
5096
5101
|
var PluginDesignCreateFurnitureArgs = z50.object({
|
|
5097
5102
|
catalogId: z50.string().min(1),
|
|
5098
|
-
position:
|
|
5103
|
+
position: Vec3Input,
|
|
5099
5104
|
label: z50.string().optional(),
|
|
5100
5105
|
createNewSourceMesh: z50.boolean().optional(),
|
|
5101
5106
|
angleInDegrees: z50.number().optional()
|
|
@@ -5171,7 +5176,7 @@ var PluginDesignCreateReferenceLinesArgs = z50.object({
|
|
|
5171
5176
|
var PluginCopyMode = z50.enum(["instance", "unique"]);
|
|
5172
5177
|
var PluginDesignCreateCopyArgs = z50.object({
|
|
5173
5178
|
components: z50.array(ComponentHandle).min(1),
|
|
5174
|
-
displacement:
|
|
5179
|
+
displacement: Vec3Input,
|
|
5175
5180
|
count: z50.number().int().positive().optional(),
|
|
5176
5181
|
mode: PluginCopyMode.optional()
|
|
5177
5182
|
});
|
|
@@ -5179,7 +5184,7 @@ var PluginCreateSpaceItem = z50.object({
|
|
|
5179
5184
|
contour: ContourHandle,
|
|
5180
5185
|
height: z50.number(),
|
|
5181
5186
|
label: z50.string().optional(),
|
|
5182
|
-
position:
|
|
5187
|
+
position: Vec3Input.optional(),
|
|
5183
5188
|
spaceType: PluginSpaceType.optional(),
|
|
5184
5189
|
massType: PluginMassType.optional(),
|
|
5185
5190
|
departmentId: PluginDepartmentId.optional(),
|
|
@@ -5749,7 +5754,13 @@ var PluginDesignMaterialsListByFaceArgs = PluginDesignMaterialsComponentArgs;
|
|
|
5749
5754
|
// src/api/design/lock.ts
|
|
5750
5755
|
var z61 = __toESM(require("zod"), 1);
|
|
5751
5756
|
var PluginDesignChangeResult = z61.object({
|
|
5752
|
-
affected: z61.array(ComponentHandle)
|
|
5757
|
+
affected: z61.array(ComponentHandle),
|
|
5758
|
+
/** Derived BIM (walls/floors/slabs) the parametric engine removed with its host. Delete only. */
|
|
5759
|
+
cascaded: z61.array(ComponentHandle).optional(),
|
|
5760
|
+
/** Handles that no longer resolved when the call ran and were skipped. Delete only. */
|
|
5761
|
+
missing: z61.array(ComponentHandle).optional(),
|
|
5762
|
+
/** Handles the engine accepted but left standing; delete them again or report them. Delete only. */
|
|
5763
|
+
rejected: z61.array(ComponentHandle).optional()
|
|
5753
5764
|
});
|
|
5754
5765
|
var PluginDesignLockArgs = z61.object({
|
|
5755
5766
|
components: z61.array(ComponentHandle)
|
|
@@ -5825,7 +5836,7 @@ var PluginDesignBooleanApi = class {
|
|
|
5825
5836
|
}
|
|
5826
5837
|
};
|
|
5827
5838
|
var BooleanOptions = z65.object({
|
|
5828
|
-
offset:
|
|
5839
|
+
offset: Vec3Input.optional()
|
|
5829
5840
|
});
|
|
5830
5841
|
var PluginDesignBooleanUnionArgs = z65.object({
|
|
5831
5842
|
components: z65.array(ComponentHandle).min(2),
|
|
@@ -5858,16 +5869,16 @@ var PluginAlignEdge = z66.enum([
|
|
|
5858
5869
|
]);
|
|
5859
5870
|
var PluginDesignMoveArgs = z66.object({
|
|
5860
5871
|
components: z66.array(ComponentHandle).min(1),
|
|
5861
|
-
displacement:
|
|
5872
|
+
displacement: Vec3Input,
|
|
5862
5873
|
is2D: z66.boolean().optional(),
|
|
5863
5874
|
trackParentChange: z66.boolean().optional()
|
|
5864
5875
|
});
|
|
5865
5876
|
var PluginDesignRotateArgs = z66.object({
|
|
5866
5877
|
components: z66.array(ComponentHandle).min(1),
|
|
5867
5878
|
angleInDegrees: z66.number(),
|
|
5868
|
-
axis:
|
|
5879
|
+
axis: Vec3Input.optional(),
|
|
5869
5880
|
is2D: z66.boolean().optional(),
|
|
5870
|
-
pivot:
|
|
5881
|
+
pivot: Vec3Input.optional()
|
|
5871
5882
|
});
|
|
5872
5883
|
var PluginDesignAlignArgs = z66.object({
|
|
5873
5884
|
components: z66.array(ComponentHandle).min(1),
|
|
@@ -5888,7 +5899,7 @@ var PluginDesignEditApi = class {
|
|
|
5888
5899
|
var PluginDesignOffsetSplitArgs = z67.object({
|
|
5889
5900
|
component: ComponentHandle,
|
|
5890
5901
|
offsetDistance: z67.number(),
|
|
5891
|
-
profilePickPoint:
|
|
5902
|
+
profilePickPoint: Vec3Input.optional()
|
|
5892
5903
|
});
|
|
5893
5904
|
|
|
5894
5905
|
// src/api/design/update/index.ts
|
|
@@ -6058,8 +6069,8 @@ var PluginDimensionsChangeResult = z70.object({
|
|
|
6058
6069
|
affected: z70.array(DimensionHandle)
|
|
6059
6070
|
});
|
|
6060
6071
|
var PluginDesignDimensionsCreateArgs = z70.object({
|
|
6061
|
-
from:
|
|
6062
|
-
to:
|
|
6072
|
+
from: Vec3Input,
|
|
6073
|
+
to: Vec3Input,
|
|
6063
6074
|
anchor: ComponentHandle,
|
|
6064
6075
|
anchorTo: ComponentHandle.optional(),
|
|
6065
6076
|
offset: z70.number().finite().optional()
|
|
@@ -7467,7 +7478,9 @@ var PluginPresentationViewsCreateArgs = z87.object({
|
|
|
7467
7478
|
kind: z87.enum(["view", "sitePlan"]).optional(),
|
|
7468
7479
|
storey: z87.number().optional()
|
|
7469
7480
|
});
|
|
7470
|
-
var PluginPresentationViewsCreateResult = PluginPresentationView
|
|
7481
|
+
var PluginPresentationViewsCreateResult = PluginPresentationView.extend({
|
|
7482
|
+
framed: z87.boolean().optional()
|
|
7483
|
+
});
|
|
7471
7484
|
var PluginPresentationViewColorMode = z87.union([
|
|
7472
7485
|
z87.enum(["monochrome", "texture", "department"]),
|
|
7473
7486
|
z87.templateLiteral(["tag:", z87.string()])
|
|
@@ -11638,6 +11651,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
11638
11651
|
UnderlayHandle,
|
|
11639
11652
|
Vec3Components,
|
|
11640
11653
|
Vec3Handle,
|
|
11654
|
+
Vec3Input,
|
|
11641
11655
|
VertexHandle,
|
|
11642
11656
|
XYZ,
|
|
11643
11657
|
fromEnvelope,
|