@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.cjs
CHANGED
|
@@ -1525,6 +1525,7 @@ __export(index_exports, {
|
|
|
1525
1525
|
UnderlayHandle: () => UnderlayHandle,
|
|
1526
1526
|
Vec3Components: () => Vec3Components,
|
|
1527
1527
|
Vec3Handle: () => Vec3Handle,
|
|
1528
|
+
Vec3Input: () => Vec3Input,
|
|
1528
1529
|
VertexHandle: () => VertexHandle,
|
|
1529
1530
|
XYZ: () => XYZ,
|
|
1530
1531
|
fromEnvelope: () => fromEnvelope,
|
|
@@ -1875,6 +1876,10 @@ var EdgeHandle = handleSchema("edge");
|
|
|
1875
1876
|
var HalfEdgeHandle = handleSchema("halfedge");
|
|
1876
1877
|
var VertexHandle = handleSchema("vertex");
|
|
1877
1878
|
var Vec3Components = z3.object({ x: z3.number(), y: z3.number(), z: z3.number() });
|
|
1879
|
+
var Vec3Input = z3.union(
|
|
1880
|
+
[Vec3Handle, Vec3Components],
|
|
1881
|
+
{ error: 'expected a "vec3" handle or a plain { x, y, z } point' }
|
|
1882
|
+
);
|
|
1878
1883
|
var QuatComponents = z3.object({
|
|
1879
1884
|
x: z3.number(),
|
|
1880
1885
|
y: z3.number(),
|
|
@@ -1891,35 +1896,35 @@ var PluginGeomCreateApi = class {
|
|
|
1891
1896
|
}
|
|
1892
1897
|
};
|
|
1893
1898
|
var PluginGeomCreateLineArgs = z4.object({
|
|
1894
|
-
startPoint:
|
|
1895
|
-
endPoint:
|
|
1899
|
+
startPoint: Vec3Input,
|
|
1900
|
+
endPoint: Vec3Input
|
|
1896
1901
|
});
|
|
1897
1902
|
var PluginGeomCreateArcArgs = z4.object({
|
|
1898
|
-
startPoint:
|
|
1899
|
-
endPoint:
|
|
1900
|
-
centrePoint:
|
|
1901
|
-
axis:
|
|
1903
|
+
startPoint: Vec3Input,
|
|
1904
|
+
endPoint: Vec3Input,
|
|
1905
|
+
centrePoint: Vec3Input,
|
|
1906
|
+
axis: Vec3Input
|
|
1902
1907
|
});
|
|
1903
1908
|
var PluginGeomCreateCircleArgs = z4.object({
|
|
1904
|
-
centrePoint:
|
|
1905
|
-
axis:
|
|
1909
|
+
centrePoint: Vec3Input,
|
|
1910
|
+
axis: Vec3Input,
|
|
1906
1911
|
radius: z4.number()
|
|
1907
1912
|
});
|
|
1908
1913
|
var PluginGeomCreateSplineFromPointsArgs = z4.object({
|
|
1909
|
-
points: z4.array(
|
|
1914
|
+
points: z4.array(Vec3Input).min(3).max(MAX_SPLINE_THROUGH_POINTS)
|
|
1910
1915
|
});
|
|
1911
1916
|
var PluginGeomCreateSplineFromControlPointsArgs = z4.object({
|
|
1912
|
-
controlPoints: z4.array(
|
|
1917
|
+
controlPoints: z4.array(Vec3Input).min(3).max(MAX_SPLINE_POLES),
|
|
1913
1918
|
options: z4.object({ degree: z4.number().int().min(2).max(3).optional() }).optional()
|
|
1914
1919
|
});
|
|
1915
1920
|
var PluginGeomCreateProfileFromLinePointsArgs = z4.object({
|
|
1916
|
-
points: z4.array(
|
|
1921
|
+
points: z4.array(Vec3Input)
|
|
1917
1922
|
});
|
|
1918
1923
|
var PluginGeomCreateProfileFromCurvesArgs = z4.object({
|
|
1919
1924
|
curves: z4.array(CurveHandle)
|
|
1920
1925
|
});
|
|
1921
1926
|
var PluginGeomCreateProfileFromSplinePointsArgs = z4.object({
|
|
1922
|
-
points: z4.array(
|
|
1927
|
+
points: z4.array(Vec3Input).min(3).max(MAX_SPLINE_THROUGH_POINTS)
|
|
1923
1928
|
});
|
|
1924
1929
|
var PluginGeomCreateContourFromProfileArgs = z4.object({
|
|
1925
1930
|
outer: ProfileHandle
|
|
@@ -2143,42 +2148,42 @@ var PluginGeomQueryCurveGetChordLengthArgs = z5.object({
|
|
|
2143
2148
|
});
|
|
2144
2149
|
var PluginGeomQueryCurveGetTangentArgs = z5.object({
|
|
2145
2150
|
curve: CurveHandle,
|
|
2146
|
-
point:
|
|
2151
|
+
point: Vec3Input
|
|
2147
2152
|
});
|
|
2148
2153
|
var PluginGeomQueryCurveGetNormalArgs = z5.object({
|
|
2149
2154
|
curve: CurveHandle,
|
|
2150
|
-
point:
|
|
2155
|
+
point: Vec3Input
|
|
2151
2156
|
});
|
|
2152
2157
|
var PluginGeomQueryCurveGetNearestPointArgs = z5.object({
|
|
2153
2158
|
curve: CurveHandle,
|
|
2154
|
-
point:
|
|
2159
|
+
point: Vec3Input
|
|
2155
2160
|
});
|
|
2156
2161
|
var PluginGeomQueryCurveGetProjectionArgs = z5.object({
|
|
2157
2162
|
curve: CurveHandle,
|
|
2158
|
-
point:
|
|
2163
|
+
point: Vec3Input
|
|
2159
2164
|
});
|
|
2160
2165
|
var PluginGeomQueryCurveGetPointAtDistanceArgs = z5.object({
|
|
2161
2166
|
curve: CurveHandle,
|
|
2162
|
-
referencePoint:
|
|
2167
|
+
referencePoint: Vec3Input,
|
|
2163
2168
|
distance: z5.number(),
|
|
2164
2169
|
forward: z5.boolean().optional()
|
|
2165
2170
|
});
|
|
2166
2171
|
var PluginGeomQueryCurveGetParameterAtPointArgs = z5.object({
|
|
2167
2172
|
curve: CurveHandle,
|
|
2168
|
-
point:
|
|
2173
|
+
point: Vec3Input
|
|
2169
2174
|
});
|
|
2170
2175
|
var PluginGeomQueryCurveGetCurvatureArgs = z5.object({
|
|
2171
2176
|
curve: CurveHandle,
|
|
2172
|
-
point:
|
|
2177
|
+
point: Vec3Input
|
|
2173
2178
|
});
|
|
2174
2179
|
var PluginGeomQueryCurveGetDistanceToPointArgs = z5.object({
|
|
2175
2180
|
curve: CurveHandle,
|
|
2176
|
-
point:
|
|
2181
|
+
point: Vec3Input
|
|
2177
2182
|
});
|
|
2178
2183
|
var PluginGeomQueryCurveGetDistanceAlongArgs = z5.object({
|
|
2179
2184
|
curve: CurveHandle,
|
|
2180
|
-
pointA:
|
|
2181
|
-
pointB:
|
|
2185
|
+
pointA: Vec3Input,
|
|
2186
|
+
pointB: Vec3Input
|
|
2182
2187
|
});
|
|
2183
2188
|
var PluginGeomQueryCurveListPointsArgs = z5.object({
|
|
2184
2189
|
curve: CurveHandle,
|
|
@@ -2193,12 +2198,12 @@ var PluginGeomQueryCurveIsLinearArgs = z5.object({
|
|
|
2193
2198
|
});
|
|
2194
2199
|
var PluginGeomQueryCurveIsOnCurveArgs = z5.object({
|
|
2195
2200
|
curve: CurveHandle,
|
|
2196
|
-
point:
|
|
2201
|
+
point: Vec3Input,
|
|
2197
2202
|
threshold: z5.number().optional()
|
|
2198
2203
|
});
|
|
2199
2204
|
var PluginGeomQueryCurveHasPointArgs = z5.object({
|
|
2200
2205
|
curve: CurveHandle,
|
|
2201
|
-
point:
|
|
2206
|
+
point: Vec3Input,
|
|
2202
2207
|
includeEndPoints: z5.boolean().optional()
|
|
2203
2208
|
});
|
|
2204
2209
|
var PluginGeomQueryCurveIsEqualArgs = z5.object({
|
|
@@ -2268,23 +2273,23 @@ var PluginGeomQueryCircleGetLengthArgs = z7.object({ circle: CircleHandle });
|
|
|
2268
2273
|
var PluginGeomQueryCircleIsValidArgs = z7.object({ circle: CircleHandle });
|
|
2269
2274
|
var PluginGeomQueryCircleGetNearestPointArgs = z7.object({
|
|
2270
2275
|
circle: CircleHandle,
|
|
2271
|
-
point:
|
|
2276
|
+
point: Vec3Input
|
|
2272
2277
|
});
|
|
2273
2278
|
var PluginGeomQueryCircleHasPointArgs = z7.object({
|
|
2274
2279
|
circle: CircleHandle,
|
|
2275
|
-
point:
|
|
2280
|
+
point: Vec3Input
|
|
2276
2281
|
});
|
|
2277
2282
|
var PluginGeomQueryCircleGetTangentArgs = z7.object({
|
|
2278
2283
|
circle: CircleHandle,
|
|
2279
|
-
point:
|
|
2284
|
+
point: Vec3Input
|
|
2280
2285
|
});
|
|
2281
2286
|
var PluginGeomQueryCircleGetNormalArgs = z7.object({
|
|
2282
2287
|
circle: CircleHandle,
|
|
2283
|
-
point:
|
|
2288
|
+
point: Vec3Input
|
|
2284
2289
|
});
|
|
2285
2290
|
var PluginGeomQueryCircleGetPointAtDistanceArgs = z7.object({
|
|
2286
2291
|
circle: CircleHandle,
|
|
2287
|
-
referencePoint:
|
|
2292
|
+
referencePoint: Vec3Input,
|
|
2288
2293
|
distance: z7.number(),
|
|
2289
2294
|
forward: z7.boolean().optional()
|
|
2290
2295
|
});
|
|
@@ -2323,15 +2328,15 @@ var PluginGeomQueryProfileGetNormalArgs = z8.object({
|
|
|
2323
2328
|
});
|
|
2324
2329
|
var PluginGeomQueryProfileGetNearestPointArgs = z8.object({
|
|
2325
2330
|
profile: ProfileHandle,
|
|
2326
|
-
point:
|
|
2331
|
+
point: Vec3Input
|
|
2327
2332
|
});
|
|
2328
2333
|
var PluginGeomQueryProfileHasPointArgs = z8.object({
|
|
2329
2334
|
profile: ProfileHandle,
|
|
2330
|
-
point:
|
|
2335
|
+
point: Vec3Input
|
|
2331
2336
|
});
|
|
2332
2337
|
var PluginGeomQueryProfileIsOnBoundaryArgs = z8.object({
|
|
2333
2338
|
profile: ProfileHandle,
|
|
2334
|
-
point:
|
|
2339
|
+
point: Vec3Input
|
|
2335
2340
|
});
|
|
2336
2341
|
var PluginGeomQueryProfileIsClosedArgs = z8.object({
|
|
2337
2342
|
profile: ProfileHandle
|
|
@@ -2382,15 +2387,15 @@ var PluginGeomQueryContourGetNormalArgs = z9.object({
|
|
|
2382
2387
|
});
|
|
2383
2388
|
var PluginGeomQueryContourGetNearestPointArgs = z9.object({
|
|
2384
2389
|
contour: ContourHandle,
|
|
2385
|
-
point:
|
|
2390
|
+
point: Vec3Input
|
|
2386
2391
|
});
|
|
2387
2392
|
var PluginGeomQueryContourHasPointArgs = z9.object({
|
|
2388
2393
|
contour: ContourHandle,
|
|
2389
|
-
point:
|
|
2394
|
+
point: Vec3Input
|
|
2390
2395
|
});
|
|
2391
2396
|
var PluginGeomQueryContourIsOnBoundaryArgs = z9.object({
|
|
2392
2397
|
contour: ContourHandle,
|
|
2393
|
-
point:
|
|
2398
|
+
point: Vec3Input
|
|
2394
2399
|
});
|
|
2395
2400
|
var PluginGeomQueryContourIsClockwiseArgs = z9.object({
|
|
2396
2401
|
contour: ContourHandle
|
|
@@ -2554,7 +2559,7 @@ var PluginGeomUpdateCurveExtendArgs = z15.object({
|
|
|
2554
2559
|
});
|
|
2555
2560
|
var PluginGeomUpdateCurveSplitArgs = z15.object({
|
|
2556
2561
|
curve: CurveHandle,
|
|
2557
|
-
point:
|
|
2562
|
+
point: Vec3Input
|
|
2558
2563
|
});
|
|
2559
2564
|
var PluginGeomUpdateCurveTrimArgs = z15.object({
|
|
2560
2565
|
curve: CurveHandle,
|
|
@@ -2563,7 +2568,7 @@ var PluginGeomUpdateCurveTrimArgs = z15.object({
|
|
|
2563
2568
|
});
|
|
2564
2569
|
var PluginGeomUpdateCurveOffsetArgs = z15.object({
|
|
2565
2570
|
curve: CurveHandle,
|
|
2566
|
-
vector:
|
|
2571
|
+
vector: Vec3Input
|
|
2567
2572
|
});
|
|
2568
2573
|
var PluginGeomUpdateCurveReverseArgs = z15.object({
|
|
2569
2574
|
curve: CurveHandle
|
|
@@ -2581,24 +2586,24 @@ var PluginGeomUpdateProfileOffsetArgs = z16.object({
|
|
|
2581
2586
|
});
|
|
2582
2587
|
var PluginGeomUpdateProfileMoveArgs = z16.object({
|
|
2583
2588
|
profile: ProfileHandle,
|
|
2584
|
-
translation:
|
|
2589
|
+
translation: Vec3Input
|
|
2585
2590
|
});
|
|
2586
2591
|
var PluginGeomUpdateProfileRotateArgs = z16.object({
|
|
2587
2592
|
profile: ProfileHandle,
|
|
2588
|
-
axis:
|
|
2593
|
+
axis: Vec3Input,
|
|
2589
2594
|
angle: z16.number(),
|
|
2590
|
-
pivot:
|
|
2595
|
+
pivot: Vec3Input.optional()
|
|
2591
2596
|
});
|
|
2592
2597
|
var PluginGeomUpdateProfileScaleArgs = z16.object({
|
|
2593
2598
|
profile: ProfileHandle,
|
|
2594
2599
|
factor: z16.union([z16.number(), Vec3Components]),
|
|
2595
|
-
pivot:
|
|
2600
|
+
pivot: Vec3Input.optional()
|
|
2596
2601
|
});
|
|
2597
2602
|
var PluginGeomUpdateProfileMirrorArgs = z16.object({
|
|
2598
2603
|
profile: ProfileHandle,
|
|
2599
2604
|
plane: z16.object({
|
|
2600
|
-
point:
|
|
2601
|
-
normal:
|
|
2605
|
+
point: Vec3Input,
|
|
2606
|
+
normal: Vec3Input
|
|
2602
2607
|
})
|
|
2603
2608
|
});
|
|
2604
2609
|
var PluginGeomUpdateProfileAddArgs = z16.object({
|
|
@@ -2629,24 +2634,24 @@ var PluginGeomUpdateContourOffsetArgs = z17.object({
|
|
|
2629
2634
|
});
|
|
2630
2635
|
var PluginGeomUpdateContourMoveArgs = z17.object({
|
|
2631
2636
|
contour: ContourHandle,
|
|
2632
|
-
translation:
|
|
2637
|
+
translation: Vec3Input
|
|
2633
2638
|
});
|
|
2634
2639
|
var PluginGeomUpdateContourRotateArgs = z17.object({
|
|
2635
2640
|
contour: ContourHandle,
|
|
2636
|
-
axis:
|
|
2641
|
+
axis: Vec3Input,
|
|
2637
2642
|
angle: z17.number(),
|
|
2638
|
-
pivot:
|
|
2643
|
+
pivot: Vec3Input.optional()
|
|
2639
2644
|
});
|
|
2640
2645
|
var PluginGeomUpdateContourScaleArgs = z17.object({
|
|
2641
2646
|
contour: ContourHandle,
|
|
2642
2647
|
factor: z17.union([z17.number(), Vec3Components]),
|
|
2643
|
-
pivot:
|
|
2648
|
+
pivot: Vec3Input.optional()
|
|
2644
2649
|
});
|
|
2645
2650
|
var PluginGeomUpdateContourMirrorArgs = z17.object({
|
|
2646
2651
|
contour: ContourHandle,
|
|
2647
2652
|
plane: z17.object({
|
|
2648
|
-
point:
|
|
2649
|
-
normal:
|
|
2653
|
+
point: Vec3Input,
|
|
2654
|
+
normal: Vec3Input
|
|
2650
2655
|
})
|
|
2651
2656
|
});
|
|
2652
2657
|
var PluginGeomUpdateContourAddHoleArgs = z17.object({
|
|
@@ -2745,8 +2750,8 @@ var PluginStandardView = z21.enum([
|
|
|
2745
2750
|
var PluginCameraMode = z21.enum(["2d", "3d"]);
|
|
2746
2751
|
var PluginCameraProjection = z21.enum(["perspective", "orthographic"]);
|
|
2747
2752
|
var PluginCameraLookFromArgs = z21.object({
|
|
2748
|
-
eye:
|
|
2749
|
-
target:
|
|
2753
|
+
eye: Vec3Input,
|
|
2754
|
+
target: Vec3Input
|
|
2750
2755
|
});
|
|
2751
2756
|
var PluginCameraSetStandardViewArgs = z21.object({
|
|
2752
2757
|
view: PluginStandardView
|
|
@@ -2882,7 +2887,7 @@ var PluginCommentApi = class {
|
|
|
2882
2887
|
var CommentHandle = z24.string().min(1).transform((s) => s);
|
|
2883
2888
|
var PluginCommentCreateArgs = z24.object({
|
|
2884
2889
|
component: ComponentHandle.optional(),
|
|
2885
|
-
position:
|
|
2890
|
+
position: Vec3Input.optional(),
|
|
2886
2891
|
message: z24.string(),
|
|
2887
2892
|
mentions: z24.array(z24.string()).optional()
|
|
2888
2893
|
});
|
|
@@ -3434,7 +3439,7 @@ var PluginImportModelArgs = z33.object({
|
|
|
3434
3439
|
source: ImportSource,
|
|
3435
3440
|
storey: z33.number().int().optional(),
|
|
3436
3441
|
format: ModelFormat.optional(),
|
|
3437
|
-
position:
|
|
3442
|
+
position: Vec3Input.optional(),
|
|
3438
3443
|
label: z33.string().optional()
|
|
3439
3444
|
});
|
|
3440
3445
|
var PluginImportTerrainArgs = z33.object({
|
|
@@ -3965,7 +3970,7 @@ var PluginPresentationGraphicsApi = class {
|
|
|
3965
3970
|
// src/api/entity/space.ts
|
|
3966
3971
|
var z42 = __toESM(require("zod"), 1);
|
|
3967
3972
|
var PluginSpaceCreateRectangularArgs = z42.object({
|
|
3968
|
-
position:
|
|
3973
|
+
position: Vec3Input,
|
|
3969
3974
|
dimensions: z42.object({
|
|
3970
3975
|
width: z42.number(),
|
|
3971
3976
|
height: z42.number(),
|
|
@@ -3979,7 +3984,7 @@ var PluginSpaceCreateFromProfileArgs = z42.object({
|
|
|
3979
3984
|
profile: ProfileHandle,
|
|
3980
3985
|
innerProfiles: z42.array(ProfileHandle).optional(),
|
|
3981
3986
|
extrudeHeight: z42.number(),
|
|
3982
|
-
position:
|
|
3987
|
+
position: Vec3Input
|
|
3983
3988
|
});
|
|
3984
3989
|
var PluginSpaceCreateFromProfileResult = z42.object({
|
|
3985
3990
|
spaceId: z42.string()
|
|
@@ -4128,7 +4133,7 @@ var PluginSpaceUpdateResult = z42.object({
|
|
|
4128
4133
|
var PluginSpaceBulkCreateItem = z42.discriminatedUnion("kind", [
|
|
4129
4134
|
z42.object({
|
|
4130
4135
|
kind: z42.literal("rectangular"),
|
|
4131
|
-
position:
|
|
4136
|
+
position: Vec3Input,
|
|
4132
4137
|
dimensions: z42.object({
|
|
4133
4138
|
width: z42.number(),
|
|
4134
4139
|
height: z42.number(),
|
|
@@ -4144,7 +4149,7 @@ var PluginSpaceBulkCreateItem = z42.discriminatedUnion("kind", [
|
|
|
4144
4149
|
profile: ProfileHandle,
|
|
4145
4150
|
innerProfiles: z42.array(ProfileHandle).optional(),
|
|
4146
4151
|
extrudeHeight: z42.number(),
|
|
4147
|
-
position:
|
|
4152
|
+
position: Vec3Input,
|
|
4148
4153
|
room_type: z42.string().optional(),
|
|
4149
4154
|
spaceType: PluginSpaceType.optional(),
|
|
4150
4155
|
massType: PluginMassType.optional(),
|
|
@@ -4707,7 +4712,7 @@ var PluginDesignFamilyDeleteArgs = z46.object({
|
|
|
4707
4712
|
var PluginDesignFamilyPlaceArgs = z46.object({
|
|
4708
4713
|
id: z46.string().optional(),
|
|
4709
4714
|
version: z46.number().int().positive().optional(),
|
|
4710
|
-
position: z46.union([
|
|
4715
|
+
position: z46.union([Vec3Input, Vec3Components]).optional(),
|
|
4711
4716
|
rotation: z46.number().optional(),
|
|
4712
4717
|
values: z46.record(z46.string(), z46.union([z46.number(), z46.string()])).optional(),
|
|
4713
4718
|
storey: z46.number().int().optional(),
|
|
@@ -4915,7 +4920,7 @@ var PluginCreateWallRunItems = z48.array(PluginCreateWallRunItem).min(1).max(PLU
|
|
|
4915
4920
|
var PluginCreateFloorItem = z48.object({
|
|
4916
4921
|
contour: ContourHandle,
|
|
4917
4922
|
thickness: z48.number(),
|
|
4918
|
-
position:
|
|
4923
|
+
position: Vec3Input.optional()
|
|
4919
4924
|
});
|
|
4920
4925
|
var PluginCreateFloorItems = z48.array(PluginCreateFloorItem).min(1).max(PLUGIN_CREATE_BATCH_LIMIT);
|
|
4921
4926
|
var PluginCreateDoorItem = z48.object({ ...PluginOpeningBaseOptions }).strict();
|
|
@@ -4927,7 +4932,7 @@ var PluginCreateWindowItem = z48.object({
|
|
|
4927
4932
|
var PluginCreateWindowItems = z48.array(PluginCreateWindowItem).min(1).max(PLUGIN_CREATE_BATCH_LIMIT);
|
|
4928
4933
|
var PluginCreateFurnitureItem = z48.object({
|
|
4929
4934
|
catalogId: z48.string().min(1),
|
|
4930
|
-
position:
|
|
4935
|
+
position: Vec3Input,
|
|
4931
4936
|
label: z48.string().optional(),
|
|
4932
4937
|
angleInDegrees: z48.number().optional()
|
|
4933
4938
|
});
|
|
@@ -5012,7 +5017,7 @@ var PluginDesignCreateSpaceArgs = z50.object({
|
|
|
5012
5017
|
contour: ContourHandle,
|
|
5013
5018
|
height: z50.number(),
|
|
5014
5019
|
label: z50.string().optional(),
|
|
5015
|
-
position:
|
|
5020
|
+
position: Vec3Input.optional(),
|
|
5016
5021
|
spaceType: PluginSpaceType.optional(),
|
|
5017
5022
|
massType: PluginMassType.optional(),
|
|
5018
5023
|
departmentId: PluginDepartmentId.optional(),
|
|
@@ -5022,7 +5027,7 @@ var PluginDesignCreateMassArgs = z50.object({
|
|
|
5022
5027
|
contour: ContourHandle,
|
|
5023
5028
|
height: z50.number(),
|
|
5024
5029
|
label: z50.string().optional(),
|
|
5025
|
-
position:
|
|
5030
|
+
position: Vec3Input.optional(),
|
|
5026
5031
|
massType: PluginMassType.optional()
|
|
5027
5032
|
});
|
|
5028
5033
|
var PluginDesignCreateMassFromBrepArgs = z50.object({
|
|
@@ -5038,7 +5043,7 @@ var PluginDesignCreateSlabArgs = z50.object({
|
|
|
5038
5043
|
var PluginDesignCreateFloorArgs = z50.object({
|
|
5039
5044
|
contour: ContourHandle,
|
|
5040
5045
|
thickness: z50.number(),
|
|
5041
|
-
position:
|
|
5046
|
+
position: Vec3Input.optional()
|
|
5042
5047
|
});
|
|
5043
5048
|
var PluginDesignCreateRoofArgs = z50.object({
|
|
5044
5049
|
contour: ContourHandle,
|
|
@@ -5050,15 +5055,15 @@ var PluginDesignCreateCeilingArgs = z50.object({
|
|
|
5050
5055
|
heightFromFloor: z50.number().optional()
|
|
5051
5056
|
});
|
|
5052
5057
|
var PluginDesignCreateColumnArgs = z50.object({
|
|
5053
|
-
position:
|
|
5058
|
+
position: Vec3Input,
|
|
5054
5059
|
crossSection: ContourHandle,
|
|
5055
5060
|
height: z50.number(),
|
|
5056
|
-
directionUp:
|
|
5061
|
+
directionUp: Vec3Input.optional()
|
|
5057
5062
|
});
|
|
5058
5063
|
var PluginDesignCreateBeamArgs = z50.object({
|
|
5059
5064
|
section: ContourHandle,
|
|
5060
5065
|
length: z50.number(),
|
|
5061
|
-
direction:
|
|
5066
|
+
direction: Vec3Input.optional()
|
|
5062
5067
|
});
|
|
5063
5068
|
var PluginDesignCreateWallsArgs = z50.object({
|
|
5064
5069
|
profile: ProfileHandle,
|
|
@@ -5071,7 +5076,7 @@ var PluginDesignCreateWallsArgs = z50.object({
|
|
|
5071
5076
|
});
|
|
5072
5077
|
var PluginDesignCreateStaircaseArgs = z50.object({
|
|
5073
5078
|
preset: PluginStaircasePreset,
|
|
5074
|
-
position:
|
|
5079
|
+
position: Vec3Input,
|
|
5075
5080
|
label: z50.string().optional(),
|
|
5076
5081
|
structureId: z50.string().optional(),
|
|
5077
5082
|
level: z50.string().optional(),
|
|
@@ -5079,7 +5084,7 @@ var PluginDesignCreateStaircaseArgs = z50.object({
|
|
|
5079
5084
|
});
|
|
5080
5085
|
var PluginDesignCreateFurnitureArgs = z50.object({
|
|
5081
5086
|
catalogId: z50.string().min(1),
|
|
5082
|
-
position:
|
|
5087
|
+
position: Vec3Input,
|
|
5083
5088
|
label: z50.string().optional(),
|
|
5084
5089
|
createNewSourceMesh: z50.boolean().optional(),
|
|
5085
5090
|
angleInDegrees: z50.number().optional()
|
|
@@ -5155,7 +5160,7 @@ var PluginDesignCreateReferenceLinesArgs = z50.object({
|
|
|
5155
5160
|
var PluginCopyMode = z50.enum(["instance", "unique"]);
|
|
5156
5161
|
var PluginDesignCreateCopyArgs = z50.object({
|
|
5157
5162
|
components: z50.array(ComponentHandle).min(1),
|
|
5158
|
-
displacement:
|
|
5163
|
+
displacement: Vec3Input,
|
|
5159
5164
|
count: z50.number().int().positive().optional(),
|
|
5160
5165
|
mode: PluginCopyMode.optional()
|
|
5161
5166
|
});
|
|
@@ -5163,7 +5168,7 @@ var PluginCreateSpaceItem = z50.object({
|
|
|
5163
5168
|
contour: ContourHandle,
|
|
5164
5169
|
height: z50.number(),
|
|
5165
5170
|
label: z50.string().optional(),
|
|
5166
|
-
position:
|
|
5171
|
+
position: Vec3Input.optional(),
|
|
5167
5172
|
spaceType: PluginSpaceType.optional(),
|
|
5168
5173
|
massType: PluginMassType.optional(),
|
|
5169
5174
|
departmentId: PluginDepartmentId.optional(),
|
|
@@ -5670,7 +5675,13 @@ var PluginDesignMaterialsListByFaceArgs = PluginDesignMaterialsComponentArgs;
|
|
|
5670
5675
|
// src/api/design/lock.ts
|
|
5671
5676
|
var z60 = __toESM(require("zod"), 1);
|
|
5672
5677
|
var PluginDesignChangeResult = z60.object({
|
|
5673
|
-
affected: z60.array(ComponentHandle)
|
|
5678
|
+
affected: z60.array(ComponentHandle),
|
|
5679
|
+
/** Derived BIM (walls/floors/slabs) the parametric engine removed with its host. Delete only. */
|
|
5680
|
+
cascaded: z60.array(ComponentHandle).optional(),
|
|
5681
|
+
/** Handles that no longer resolved when the call ran and were skipped. Delete only. */
|
|
5682
|
+
missing: z60.array(ComponentHandle).optional(),
|
|
5683
|
+
/** Handles the engine accepted but left standing; delete them again or report them. Delete only. */
|
|
5684
|
+
rejected: z60.array(ComponentHandle).optional()
|
|
5674
5685
|
});
|
|
5675
5686
|
var PluginDesignLockArgs = z60.object({
|
|
5676
5687
|
components: z60.array(ComponentHandle)
|
|
@@ -5702,7 +5713,7 @@ var ErasableEdgeRef = z61.object({
|
|
|
5702
5713
|
/** 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). */
|
|
5703
5714
|
components: z61.array(ComponentHandle),
|
|
5704
5715
|
/** A representative point on the edge (its head endpoint). Diagnostic only. */
|
|
5705
|
-
snapPoint:
|
|
5716
|
+
snapPoint: Vec3Input
|
|
5706
5717
|
});
|
|
5707
5718
|
var PluginDesignListErasableEdgesArgs = z61.object({
|
|
5708
5719
|
components: z61.array(ComponentHandle).optional(),
|
|
@@ -5746,7 +5757,7 @@ var PluginDesignBooleanApi = class {
|
|
|
5746
5757
|
}
|
|
5747
5758
|
};
|
|
5748
5759
|
var BooleanOptions = z64.object({
|
|
5749
|
-
offset:
|
|
5760
|
+
offset: Vec3Input.optional()
|
|
5750
5761
|
});
|
|
5751
5762
|
var PluginDesignBooleanUnionArgs = z64.object({
|
|
5752
5763
|
components: z64.array(ComponentHandle).min(2),
|
|
@@ -5779,16 +5790,16 @@ var PluginAlignEdge = z65.enum([
|
|
|
5779
5790
|
]);
|
|
5780
5791
|
var PluginDesignMoveArgs = z65.object({
|
|
5781
5792
|
components: z65.array(ComponentHandle).min(1),
|
|
5782
|
-
displacement:
|
|
5793
|
+
displacement: Vec3Input,
|
|
5783
5794
|
is2D: z65.boolean().optional(),
|
|
5784
5795
|
trackParentChange: z65.boolean().optional()
|
|
5785
5796
|
});
|
|
5786
5797
|
var PluginDesignRotateArgs = z65.object({
|
|
5787
5798
|
components: z65.array(ComponentHandle).min(1),
|
|
5788
5799
|
angleInDegrees: z65.number(),
|
|
5789
|
-
axis:
|
|
5800
|
+
axis: Vec3Input.optional(),
|
|
5790
5801
|
is2D: z65.boolean().optional(),
|
|
5791
|
-
pivot:
|
|
5802
|
+
pivot: Vec3Input.optional()
|
|
5792
5803
|
});
|
|
5793
5804
|
var PluginDesignAlignArgs = z65.object({
|
|
5794
5805
|
components: z65.array(ComponentHandle).min(1),
|
|
@@ -5809,7 +5820,7 @@ var PluginDesignEditApi = class {
|
|
|
5809
5820
|
var PluginDesignOffsetSplitArgs = z66.object({
|
|
5810
5821
|
component: ComponentHandle,
|
|
5811
5822
|
offsetDistance: z66.number(),
|
|
5812
|
-
profilePickPoint:
|
|
5823
|
+
profilePickPoint: Vec3Input.optional()
|
|
5813
5824
|
});
|
|
5814
5825
|
|
|
5815
5826
|
// src/api/design/update/index.ts
|
|
@@ -5979,8 +5990,8 @@ var PluginDimensionsChangeResult = z69.object({
|
|
|
5979
5990
|
affected: z69.array(DimensionHandle)
|
|
5980
5991
|
});
|
|
5981
5992
|
var PluginDesignDimensionsCreateArgs = z69.object({
|
|
5982
|
-
from:
|
|
5983
|
-
to:
|
|
5993
|
+
from: Vec3Input,
|
|
5994
|
+
to: Vec3Input,
|
|
5984
5995
|
anchor: ComponentHandle,
|
|
5985
5996
|
anchorTo: ComponentHandle.optional(),
|
|
5986
5997
|
offset: z69.number().finite().optional()
|
|
@@ -11464,6 +11475,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
11464
11475
|
UnderlayHandle,
|
|
11465
11476
|
Vec3Components,
|
|
11466
11477
|
Vec3Handle,
|
|
11478
|
+
Vec3Input,
|
|
11467
11479
|
VertexHandle,
|
|
11468
11480
|
XYZ,
|
|
11469
11481
|
fromEnvelope,
|