@snaptrude/plugin-core 1.1.0-pbr-20261102.2 → 1.1.0
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 +19 -0
- 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 +146 -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/doors/index.d.ts +25 -0
- package/dist/api/design/doors/index.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/index.d.ts +1 -0
- package/dist/api/design/index.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 +135 -0
- package/dist/api/design/opening-placement.d.ts.map +1 -0
- package/dist/api/design/transform/index.d.ts +28 -8
- package/dist/api/design/transform/index.d.ts.map +1 -1
- package/dist/api/design/windows/index.d.ts +23 -0
- package/dist/api/design/windows/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/lighting.d.ts +28 -5
- package/dist/api/presentation/lighting.d.ts.map +1 -1
- package/dist/api/presentation/views.d.ts +15 -3
- 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 +2526 -2435
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2521 -2435
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- 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 +46 -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/doors/index.ts +31 -0
- package/src/api/design/edit/index.ts +3 -3
- package/src/api/design/family.ts +2 -1
- package/src/api/design/index.ts +1 -0
- package/src/api/design/lock.ts +6 -0
- package/src/api/design/opening-placement.ts +79 -0
- package/src/api/design/transform/index.ts +15 -7
- package/src/api/design/windows/index.ts +29 -0
- package/src/api/entity/space.ts +5 -4
- package/src/api/entity/story.ts +4 -0
- package/src/api/presentation/lighting.ts +29 -5
- package/src/api/presentation/views.ts +17 -4
- package/src/handles.ts +11 -0
- package/test/handles.test.mjs +36 -0
- package/api-manifest.json +0 -10774
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { PluginApiReturn } from "../../../../types";
|
|
3
|
-
import { ProfileHandle,
|
|
3
|
+
import { ProfileHandle, Vec3Input, CurveHandle, Vec3Components } from "../../../../handles";
|
|
4
4
|
/**
|
|
5
5
|
* Profile editing — produce NEW profiles from an existing one (all-handle model, §11).
|
|
6
6
|
*
|
|
@@ -53,7 +53,7 @@ export declare abstract class PluginGeomUpdateProfileApi {
|
|
|
53
53
|
* const moved = await snaptrude.core.geom.update.profile.move(rect, shift)
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
abstract move(profile: ProfileHandle, translation:
|
|
56
|
+
abstract move(profile: ProfileHandle, translation: Vec3Input): PluginApiReturn<ProfileHandle>;
|
|
57
57
|
/**
|
|
58
58
|
* Rotate a profile about an axis through an optional pivot. Immutable — returns a
|
|
59
59
|
* NEW profile and leaves the input unchanged.
|
|
@@ -74,7 +74,7 @@ export declare abstract class PluginGeomUpdateProfileApi {
|
|
|
74
74
|
* const rotated = await snaptrude.core.geom.update.profile.rotate(rect, axis, Math.PI / 6)
|
|
75
75
|
* ```
|
|
76
76
|
*/
|
|
77
|
-
abstract rotate(profile: ProfileHandle, axis:
|
|
77
|
+
abstract rotate(profile: ProfileHandle, axis: Vec3Input, angle: number, pivot?: Vec3Input): PluginApiReturn<ProfileHandle>;
|
|
78
78
|
/**
|
|
79
79
|
* Scale a profile uniformly or per-axis about an optional pivot. Immutable —
|
|
80
80
|
* returns a NEW profile and leaves the input unchanged.
|
|
@@ -94,7 +94,7 @@ export declare abstract class PluginGeomUpdateProfileApi {
|
|
|
94
94
|
* const stretched = await snaptrude.core.geom.update.profile.scale(rect, { x: 2, y: 1, z: 1 })
|
|
95
95
|
* ```
|
|
96
96
|
*/
|
|
97
|
-
abstract scale(profile: ProfileHandle, factor: number | Vec3Components, pivot?:
|
|
97
|
+
abstract scale(profile: ProfileHandle, factor: number | Vec3Components, pivot?: Vec3Input): PluginApiReturn<ProfileHandle>;
|
|
98
98
|
/**
|
|
99
99
|
* Mirror a profile across a plane. Immutable — returns a NEW profile and leaves
|
|
100
100
|
* the input unchanged.
|
|
@@ -115,8 +115,8 @@ export declare abstract class PluginGeomUpdateProfileApi {
|
|
|
115
115
|
* ```
|
|
116
116
|
*/
|
|
117
117
|
abstract mirror(profile: ProfileHandle, plane: {
|
|
118
|
-
point:
|
|
119
|
-
normal:
|
|
118
|
+
point: Vec3Input;
|
|
119
|
+
normal: Vec3Input;
|
|
120
120
|
}): PluginApiReturn<ProfileHandle>;
|
|
121
121
|
/**
|
|
122
122
|
* Append a curve to the start or end of a profile. The curve must connect to the
|
|
@@ -217,7 +217,11 @@ export type PluginGeomUpdateProfileOffsetArgs = z.infer<typeof PluginGeomUpdateP
|
|
|
217
217
|
*/
|
|
218
218
|
export declare const PluginGeomUpdateProfileMoveArgs: z.ZodObject<{
|
|
219
219
|
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"profile">, string>>;
|
|
220
|
-
translation: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string
|
|
220
|
+
translation: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
221
|
+
x: z.ZodNumber;
|
|
222
|
+
y: z.ZodNumber;
|
|
223
|
+
z: z.ZodNumber;
|
|
224
|
+
}, z.core.$strip>]>;
|
|
221
225
|
}, z.core.$strip>;
|
|
222
226
|
export type PluginGeomUpdateProfileMoveArgs = z.infer<typeof PluginGeomUpdateProfileMoveArgs>;
|
|
223
227
|
/**
|
|
@@ -232,9 +236,17 @@ export type PluginGeomUpdateProfileMoveArgs = z.infer<typeof PluginGeomUpdatePro
|
|
|
232
236
|
*/
|
|
233
237
|
export declare const PluginGeomUpdateProfileRotateArgs: z.ZodObject<{
|
|
234
238
|
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"profile">, string>>;
|
|
235
|
-
axis: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string
|
|
239
|
+
axis: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
240
|
+
x: z.ZodNumber;
|
|
241
|
+
y: z.ZodNumber;
|
|
242
|
+
z: z.ZodNumber;
|
|
243
|
+
}, z.core.$strip>]>;
|
|
236
244
|
angle: z.ZodNumber;
|
|
237
|
-
pivot: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string
|
|
245
|
+
pivot: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
246
|
+
x: z.ZodNumber;
|
|
247
|
+
y: z.ZodNumber;
|
|
248
|
+
z: z.ZodNumber;
|
|
249
|
+
}, z.core.$strip>]>>;
|
|
238
250
|
}, z.core.$strip>;
|
|
239
251
|
export type PluginGeomUpdateProfileRotateArgs = z.infer<typeof PluginGeomUpdateProfileRotateArgs>;
|
|
240
252
|
/**
|
|
@@ -253,7 +265,11 @@ export declare const PluginGeomUpdateProfileScaleArgs: z.ZodObject<{
|
|
|
253
265
|
y: z.ZodNumber;
|
|
254
266
|
z: z.ZodNumber;
|
|
255
267
|
}, z.core.$strip>]>;
|
|
256
|
-
pivot: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string
|
|
268
|
+
pivot: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
269
|
+
x: z.ZodNumber;
|
|
270
|
+
y: z.ZodNumber;
|
|
271
|
+
z: z.ZodNumber;
|
|
272
|
+
}, z.core.$strip>]>>;
|
|
257
273
|
}, z.core.$strip>;
|
|
258
274
|
export type PluginGeomUpdateProfileScaleArgs = z.infer<typeof PluginGeomUpdateProfileScaleArgs>;
|
|
259
275
|
/**
|
|
@@ -267,8 +283,16 @@ export type PluginGeomUpdateProfileScaleArgs = z.infer<typeof PluginGeomUpdatePr
|
|
|
267
283
|
export declare const PluginGeomUpdateProfileMirrorArgs: z.ZodObject<{
|
|
268
284
|
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"profile">, string>>;
|
|
269
285
|
plane: z.ZodObject<{
|
|
270
|
-
point: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string
|
|
271
|
-
|
|
286
|
+
point: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
287
|
+
x: z.ZodNumber;
|
|
288
|
+
y: z.ZodNumber;
|
|
289
|
+
z: z.ZodNumber;
|
|
290
|
+
}, z.core.$strip>]>;
|
|
291
|
+
normal: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
292
|
+
x: z.ZodNumber;
|
|
293
|
+
y: z.ZodNumber;
|
|
294
|
+
z: z.ZodNumber;
|
|
295
|
+
}, z.core.$strip>]>;
|
|
272
296
|
}, z.core.$strip>;
|
|
273
297
|
}, z.core.$strip>;
|
|
274
298
|
export type PluginGeomUpdateProfileMirrorArgs = z.infer<typeof PluginGeomUpdateProfileMirrorArgs>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/geom/update/profile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,aAAa,
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/geom/update/profile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,aAAa,EAEb,SAAS,EACT,WAAW,EACX,cAAc,EACf,MAAM,qBAAqB,CAAA;AAE5B;;;;;;;;;;GAUG;AACH,8BAAsB,0BAA0B;;IAG9C;;;;;;;;;;;;;;;;;;;OAmBG;aACa,MAAM,CACpB,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,MAAM,GACf,eAAe,CAAC,aAAa,CAAC;IAEjC;;;;;;;;;;;;;;;;;OAiBG;aACa,IAAI,CAClB,OAAO,EAAE,aAAa,EACtB,WAAW,EAAE,SAAS,GACrB,eAAe,CAAC,aAAa,CAAC;IAEjC;;;;;;;;;;;;;;;;;;;OAmBG;aACa,MAAM,CACpB,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,SAAS,GAChB,eAAe,CAAC,aAAa,CAAC;IAEjC;;;;;;;;;;;;;;;;;;OAkBG;aACa,KAAK,CACnB,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,MAAM,GAAG,cAAc,EAC/B,KAAK,CAAC,EAAE,SAAS,GAChB,eAAe,CAAC,aAAa,CAAC;IAEjC;;;;;;;;;;;;;;;;;;OAkBG;aACa,MAAM,CACpB,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE;QAAE,KAAK,EAAE,SAAS,CAAC;QAAC,MAAM,EAAE,SAAS,CAAA;KAAE,GAC7C,eAAe,CAAC,aAAa,CAAC;IAEjC;;;;;;;;;;;;;;;;;;;;OAoBG;aACa,GAAG,CACjB,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,WAAW,EAClB,QAAQ,CAAC,EAAE,OAAO,G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AM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAE3F;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC;;;;;;iBAG5C,CAAA;AAEF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAEjG;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC;;iBAE7C,CAAA;AAEF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAEnG;;;;;;GAMG;AACH,eAAO,MAAM,mCAAmC;;iBAE9C,CAAA;AAEF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { PluginApiReturn } from "../../../../types";
|
|
3
|
-
import {
|
|
3
|
+
import { Vec3Input, UnderlayHandle, TerrainHandle, ImportJobHandle, ComponentHandle } from "../../../../handles";
|
|
4
4
|
/**
|
|
5
5
|
* A file `source` accepted by every importer: an `https://` URL or a `data:`
|
|
6
6
|
* URL (base64). Validated for shape at the boundary — other schemes (`http:`,
|
|
@@ -226,7 +226,7 @@ export declare abstract class PluginCoreIoImportApi {
|
|
|
226
226
|
* )
|
|
227
227
|
* ```
|
|
228
228
|
*/
|
|
229
|
-
abstract model(source: string, storey?: number, format?: ModelFormat, position?:
|
|
229
|
+
abstract model(source: string, storey?: number, format?: ModelFormat, position?: Vec3Input, label?: string): PluginApiReturn<ComponentHandle>;
|
|
230
230
|
/**
|
|
231
231
|
* Import **site terrain** for a location — Mapbox topography (elevation +
|
|
232
232
|
* satellite/streets imagery, optional neighborhood buildings and parcels).
|
|
@@ -398,7 +398,11 @@ export declare const PluginImportModelArgs: z.ZodObject<{
|
|
|
398
398
|
"3ds": "3ds";
|
|
399
399
|
zip: "zip";
|
|
400
400
|
}>>;
|
|
401
|
-
position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string
|
|
401
|
+
position: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
402
|
+
x: z.ZodNumber;
|
|
403
|
+
y: z.ZodNumber;
|
|
404
|
+
z: z.ZodNumber;
|
|
405
|
+
}, z.core.$strip>]>>;
|
|
402
406
|
label: z.ZodOptional<z.ZodString>;
|
|
403
407
|
}, z.core.$strip>;
|
|
404
408
|
export type PluginImportModelArgs = z.infer<typeof PluginImportModelArgs>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/io/import/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/io/import/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAEL,SAAS,EACT,cAAc,EACd,aAAa,EACb,eAAe,EACf,eAAe,EAChB,MAAM,qBAAqB,CAAA;AAE5B;;;;GAIG;AACH,eAAO,MAAM,YAAY,aAKrB,CAAA;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,8BAAsB,qBAAqB;;IAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;aACa,KAAK,CACnB,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf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C,OAAO,uBAAuB,CAAC,CAAA;AAE7E;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;iBAE9B,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB;;;iBAGhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PluginApiReturn } from "../../../types";
|
|
2
|
-
import { Vec3Handle, QuatHandle, QuatComponents } from "../../../handles";
|
|
2
|
+
import { Vec3Handle, Vec3Input, QuatHandle, QuatComponents } from "../../../handles";
|
|
3
3
|
/**
|
|
4
4
|
* Quaternion operations (all-handle model, §11).
|
|
5
5
|
*
|
|
@@ -37,7 +37,7 @@ export declare abstract class PluginQuatApi {
|
|
|
37
37
|
* const quarterTurn = await snaptrude.core.math.quat.fromAxisAngle(axis, Math.PI / 2)
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
|
-
abstract fromAxisAngle(axis:
|
|
40
|
+
abstract fromAxisAngle(axis: Vec3Input, angle: number): PluginApiReturn<QuatHandle>;
|
|
41
41
|
/**
|
|
42
42
|
* Build a quaternion from Euler angles in radians.
|
|
43
43
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quat.d.ts","sourceRoot":"","sources":["../../../../src/api/core/math/quat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"quat.d.ts","sourceRoot":"","sources":["../../../../src/api/core/math/quat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA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U,GAAG,eAAe,CAAC;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACzF;;;;;;;;;OASG;IACH,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,UAAU,CAAC;IACpF;;;;;;;;;OASG;IACH,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,eAAe,CAAC,MAAM,CAAC;IACnE;;;;;;;;;OASG;IACH,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,eAAe,CAAC,OAAO,CAAC;IACvE;;;;;;;;;OASG;IACH,QAAQ,CAAC,YAAY,CACnB,CAAC,EAAE,UAAU,EACb,CAAC,EAAE,UAAU,EACb,OAAO,CAAC,EAAE,MAAM,GACf,eAAe,CAAC,OAAO,CAAC;IAC3B;;;;;;;;OAQG;IACH,QAAQ,CAAC,UAAU,CAAC,CAAC,EAAE,UAAU,GAAG,eAAe,CAAC,cAAc,CAAC;CACpE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PluginApiReturn } from "../../../types";
|
|
2
|
-
import { Vec3Handle, Vec3Components } from "../../../handles";
|
|
2
|
+
import { Vec3Handle, Vec3Input, Vec3Components } from "../../../handles";
|
|
3
3
|
/**
|
|
4
4
|
* 3D vector operations (all-handle model, §11).
|
|
5
5
|
*
|
|
@@ -29,7 +29,7 @@ export declare abstract class PluginVec3Api {
|
|
|
29
29
|
* const sum = await snaptrude.core.math.vec3.add(a, b)
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
abstract add(a:
|
|
32
|
+
abstract add(a: Vec3Input, b: Vec3Input): PluginApiReturn<Vec3Handle>;
|
|
33
33
|
/**
|
|
34
34
|
* Subtract vector `b` from `a` component-wise (`a - b`).
|
|
35
35
|
*
|
|
@@ -40,7 +40,7 @@ export declare abstract class PluginVec3Api {
|
|
|
40
40
|
* const diff = await snaptrude.core.math.vec3.subtract(a, b)
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
|
-
abstract subtract(a:
|
|
43
|
+
abstract subtract(a: Vec3Input, b: Vec3Input): PluginApiReturn<Vec3Handle>;
|
|
44
44
|
/**
|
|
45
45
|
* Scale `v` by a scalar.
|
|
46
46
|
*
|
|
@@ -50,7 +50,7 @@ export declare abstract class PluginVec3Api {
|
|
|
50
50
|
* const doubled = await snaptrude.core.math.vec3.scale(v, 2)
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
|
-
abstract scale(v:
|
|
53
|
+
abstract scale(v: Vec3Input, scalar: number): PluginApiReturn<Vec3Handle>;
|
|
54
54
|
/**
|
|
55
55
|
* Compute the dot product of two vectors.
|
|
56
56
|
*
|
|
@@ -61,7 +61,7 @@ export declare abstract class PluginVec3Api {
|
|
|
61
61
|
* const d = await snaptrude.core.math.vec3.dot(a, b) // 0.5
|
|
62
62
|
* ```
|
|
63
63
|
*/
|
|
64
|
-
abstract dot(a:
|
|
64
|
+
abstract dot(a: Vec3Input, b: Vec3Input): PluginApiReturn<number>;
|
|
65
65
|
/**
|
|
66
66
|
* Compute the cross product `a × b` — the vector perpendicular to both.
|
|
67
67
|
*
|
|
@@ -72,7 +72,7 @@ export declare abstract class PluginVec3Api {
|
|
|
72
72
|
* const perpendicular = await snaptrude.core.math.vec3.cross(a, b)
|
|
73
73
|
* ```
|
|
74
74
|
*/
|
|
75
|
-
abstract cross(a:
|
|
75
|
+
abstract cross(a: Vec3Input, b: Vec3Input): PluginApiReturn<Vec3Handle>;
|
|
76
76
|
/**
|
|
77
77
|
* Compute the Euclidean length (magnitude) of a vector.
|
|
78
78
|
*
|
|
@@ -82,7 +82,7 @@ export declare abstract class PluginVec3Api {
|
|
|
82
82
|
* const len = await snaptrude.core.math.vec3.length(v) // 5
|
|
83
83
|
* ```
|
|
84
84
|
*/
|
|
85
|
-
abstract length(v:
|
|
85
|
+
abstract length(v: Vec3Input): PluginApiReturn<number>;
|
|
86
86
|
/**
|
|
87
87
|
* Compute the squared Euclidean length of a vector (avoids the sqrt).
|
|
88
88
|
*
|
|
@@ -92,7 +92,7 @@ export declare abstract class PluginVec3Api {
|
|
|
92
92
|
* const sq = await snaptrude.core.math.vec3.lengthSquared(v) // 25
|
|
93
93
|
* ```
|
|
94
94
|
*/
|
|
95
|
-
abstract lengthSquared(v:
|
|
95
|
+
abstract lengthSquared(v: Vec3Input): PluginApiReturn<number>;
|
|
96
96
|
/**
|
|
97
97
|
* Return the unit vector in the same direction (the zero vector if length is 0).
|
|
98
98
|
*
|
|
@@ -102,7 +102,7 @@ export declare abstract class PluginVec3Api {
|
|
|
102
102
|
* const unit = await snaptrude.core.math.vec3.normalize(v) // (0, 0, 1)
|
|
103
103
|
* ```
|
|
104
104
|
*/
|
|
105
|
-
abstract normalize(v:
|
|
105
|
+
abstract normalize(v: Vec3Input): PluginApiReturn<Vec3Handle>;
|
|
106
106
|
/**
|
|
107
107
|
* Measure the straight-line (Euclidean) distance between two points.
|
|
108
108
|
*
|
|
@@ -116,7 +116,7 @@ export declare abstract class PluginVec3Api {
|
|
|
116
116
|
* const dist = await snaptrude.core.math.vec3.distance(a, b) // 5
|
|
117
117
|
* ```
|
|
118
118
|
*/
|
|
119
|
-
abstract distance(a:
|
|
119
|
+
abstract distance(a: Vec3Input, b: Vec3Input): PluginApiReturn<number>;
|
|
120
120
|
/**
|
|
121
121
|
* Linearly interpolate between two vectors: `a + (b - a) * t`.
|
|
122
122
|
*
|
|
@@ -127,7 +127,7 @@ export declare abstract class PluginVec3Api {
|
|
|
127
127
|
* const midpoint = await snaptrude.core.math.vec3.lerp(a, b, 0.5)
|
|
128
128
|
* ```
|
|
129
129
|
*/
|
|
130
|
-
abstract lerp(a:
|
|
130
|
+
abstract lerp(a: Vec3Input, b: Vec3Input, t: number): PluginApiReturn<Vec3Handle>;
|
|
131
131
|
/**
|
|
132
132
|
* Negate a vector, reversing its direction.
|
|
133
133
|
*
|
|
@@ -137,7 +137,7 @@ export declare abstract class PluginVec3Api {
|
|
|
137
137
|
* const reversed = await snaptrude.core.math.vec3.negate(v) // (-1, 2, -3)
|
|
138
138
|
* ```
|
|
139
139
|
*/
|
|
140
|
-
abstract negate(v:
|
|
140
|
+
abstract negate(v: Vec3Input): PluginApiReturn<Vec3Handle>;
|
|
141
141
|
/**
|
|
142
142
|
* Test whether two vectors have exactly equal components.
|
|
143
143
|
*
|
|
@@ -148,7 +148,7 @@ export declare abstract class PluginVec3Api {
|
|
|
148
148
|
* const same = await snaptrude.core.math.vec3.equals(a, b) // true
|
|
149
149
|
* ```
|
|
150
150
|
*/
|
|
151
|
-
abstract equals(a:
|
|
151
|
+
abstract equals(a: Vec3Input, b: Vec3Input): PluginApiReturn<boolean>;
|
|
152
152
|
/**
|
|
153
153
|
* Test whether two vectors are equal within a tolerance `epsilon` (default `1e-6`).
|
|
154
154
|
*
|
|
@@ -159,7 +159,7 @@ export declare abstract class PluginVec3Api {
|
|
|
159
159
|
* const close = await snaptrude.core.math.vec3.equalsApprox(a, b, 1e-3) // true
|
|
160
160
|
* ```
|
|
161
161
|
*/
|
|
162
|
-
abstract equalsApprox(a:
|
|
162
|
+
abstract equalsApprox(a: Vec3Input, b: Vec3Input, epsilon?: number): PluginApiReturn<boolean>;
|
|
163
163
|
/**
|
|
164
164
|
* Read the primitive `{ x, y, z }` components of a vector handle.
|
|
165
165
|
*
|
|
@@ -169,6 +169,6 @@ export declare abstract class PluginVec3Api {
|
|
|
169
169
|
* const { x, y, z } = await snaptrude.core.math.vec3.components(v)
|
|
170
170
|
* ```
|
|
171
171
|
*/
|
|
172
|
-
abstract components(v:
|
|
172
|
+
abstract components(v: Vec3Input): PluginApiReturn<Vec3Components>;
|
|
173
173
|
}
|
|
174
174
|
//# sourceMappingURL=vec3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vec3.d.ts","sourceRoot":"","sources":["../../../../src/api/core/math/vec3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"vec3.d.ts","sourceRoot":"","sources":["../../../../src/api/core/math/vec3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAExE;;;;;;GAMG;AACH,8BAAsB,aAAa;;IAGjC;;;;;;;;OAQG;IACH,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,UAAU,CAAC;IAC1E;;;;;;;;;OASG;IACH,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,GAAG,eAAe,CAAC,UAAU,CAAC;IACrE;;;;;;;;;OASG;IACH,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,GAAG,eAAe,CAAC,UAAU,CAAC;IAC1E;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,eAAe,CAAC,UAAU,CAAC;IACzE;;;;;;;;;OASG;IACH,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,GAAG,eAAe,CAAC,MAAM,CAAC;IACjE;;;;;;;;;OASG;IACH,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,GAAG,eAAe,CAAC,UAAU,CAAC;IACvE;;;;;;;;OAQG;IACH,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,GAAG,eAAe,CAAC,MAAM,CAAC;IACtD;;;;;;;;OAQG;IACH,QAAQ,CAAC,aAAa,CAAC,CAAC,EAAE,SAAS,GAAG,eAAe,CAAC,MAAM,CAAC;IAC7D;;;;;;;;OAQG;IACH,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,GAAG,eAAe,CAAC,UAAU,CAAC;IAC7D;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,GAAG,eAAe,CAAC,MAAM,CAAC;IACtE;;;;;;;;;OASG;IACH,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,UAAU,CAAC;IACjF;;;;;;;;OAQG;IACH,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,GAAG,eAAe,CAAC,UAAU,CAAC;IAC1D;;;;;;;;;OASG;IACH,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,GAAG,eAAe,CAAC,OAAO,CAAC;IACrE;;;;;;;;;OASG;IACH,QAAQ,CAAC,YAAY,CACnB,CAAC,EAAE,SAAS,EACZ,CAAC,EAAE,SAAS,EACZ,OAAO,CAAC,EAAE,MAAM,GACf,eAAe,CAAC,OAAO,CAAC;IAC3B;;;;;;;;OAQG;IACH,QAAQ,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,GAAG,eAAe,CAAC,cAAc,CAAC;CACnE"}
|
|
@@ -84,6 +84,11 @@ export declare abstract class PluginCoreStoreysApi {
|
|
|
84
84
|
* The new storey is inserted at the position specified by `storyValue`. This
|
|
85
85
|
* operation is undoable.
|
|
86
86
|
*
|
|
87
|
+
* Storeys are added at the ends of the stack only. A value above the top (or below the
|
|
88
|
+
* bottom) also creates every storey in between at the default height — `create(5)` on a
|
|
89
|
+
* stack of 1–2 adds 3, 4 and 5 and returns only 5 — and a value inside a gap of the
|
|
90
|
+
* stack is refused (PRECONDITION_FAILED). Read the stack back with `list` afterwards.
|
|
91
|
+
*
|
|
87
92
|
* @param storyValue - Integer storey number
|
|
88
93
|
* to create (e.g. `3` to add a third floor)
|
|
89
94
|
* @param height - Optional height in Babylon
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/storeys/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EAEpB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAErD;;;;;;;;;;;;;;;;;GAiBG;AACH,8BAAsB,oBAAoB;;IAGxC;;;;OAIG;IACH,SAAgB,MAAM,EAAE,0BAA0B,CAAA;IAElD;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;aACa,GAAG,CACjB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,sBAAsB,EAAE,GACnC,eAAe,CAAC,oBAAoB,CAAC;IAExC;;;;;;;;;;;;;;;;;;;;;OAqBG;aACa,IAAI,IAAI,eAAe,CAAC,2BAA2B,CAAC;IAEpE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/storeys/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,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;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;aACa,IAAI,CAClB,SAAS,EAAE,IAAI,GAAG,MAAM,EACxB,OAAO,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,GAC7D,eAAe,CAAC,0BAA0B,CAAC;CAC/C;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B;;;;;;iBAEtC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,2BAA2B,CACnC,CAAA;AAED,cAAc,UAAU,CAAA"}
|
|
@@ -117,7 +117,11 @@ export declare abstract class PluginDesignBooleanApi {
|
|
|
117
117
|
* | `offset` | {@linkcode Vec3Handle} | Translation added to the created result mass(es) (default: none) |
|
|
118
118
|
*/
|
|
119
119
|
export declare const BooleanOptions: z.ZodObject<{
|
|
120
|
-
offset: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string
|
|
120
|
+
offset: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
121
|
+
x: z.ZodNumber;
|
|
122
|
+
y: z.ZodNumber;
|
|
123
|
+
z: z.ZodNumber;
|
|
124
|
+
}, z.core.$strip>]>>;
|
|
121
125
|
}, z.core.$strip>;
|
|
122
126
|
export type BooleanOptions = z.infer<typeof BooleanOptions>;
|
|
123
127
|
/**
|
|
@@ -131,7 +135,11 @@ export type BooleanOptions = z.infer<typeof BooleanOptions>;
|
|
|
131
135
|
export declare const PluginDesignBooleanUnionArgs: z.ZodObject<{
|
|
132
136
|
components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
133
137
|
options: z.ZodOptional<z.ZodObject<{
|
|
134
|
-
offset: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string
|
|
138
|
+
offset: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
139
|
+
x: z.ZodNumber;
|
|
140
|
+
y: z.ZodNumber;
|
|
141
|
+
z: z.ZodNumber;
|
|
142
|
+
}, z.core.$strip>]>>;
|
|
135
143
|
}, z.core.$strip>>;
|
|
136
144
|
}, z.core.$strip>;
|
|
137
145
|
export type PluginDesignBooleanUnionArgs = z.infer<typeof PluginDesignBooleanUnionArgs>;
|
|
@@ -148,7 +156,11 @@ export declare const PluginDesignBooleanSubtractArgs: z.ZodObject<{
|
|
|
148
156
|
target: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
149
157
|
tools: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
150
158
|
options: z.ZodOptional<z.ZodObject<{
|
|
151
|
-
offset: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string
|
|
159
|
+
offset: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
160
|
+
x: z.ZodNumber;
|
|
161
|
+
y: z.ZodNumber;
|
|
162
|
+
z: z.ZodNumber;
|
|
163
|
+
}, z.core.$strip>]>>;
|
|
152
164
|
}, z.core.$strip>>;
|
|
153
165
|
}, z.core.$strip>;
|
|
154
166
|
export type PluginDesignBooleanSubtractArgs = z.infer<typeof PluginDesignBooleanSubtractArgs>;
|
|
@@ -163,7 +175,11 @@ export type PluginDesignBooleanSubtractArgs = z.infer<typeof PluginDesignBoolean
|
|
|
163
175
|
export declare const PluginDesignBooleanIntersectArgs: z.ZodObject<{
|
|
164
176
|
components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
165
177
|
options: z.ZodOptional<z.ZodObject<{
|
|
166
|
-
offset: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string
|
|
178
|
+
offset: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
179
|
+
x: z.ZodNumber;
|
|
180
|
+
y: z.ZodNumber;
|
|
181
|
+
z: z.ZodNumber;
|
|
182
|
+
}, z.core.$strip>]>>;
|
|
167
183
|
}, z.core.$strip>>;
|
|
168
184
|
}, z.core.$strip>;
|
|
169
185
|
export type PluginDesignBooleanIntersectArgs = z.infer<typeof PluginDesignBooleanIntersectArgs>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/boolean/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/boolean/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAyB,MAAM,kBAAkB,CAAA;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C;;;;;;;;;;;;;;;;;;GAkBG;AACH,8BAAsB,sBAAsB;;IAG1C;;;;;;;;;;;;;;;;;;;;;;;OAuBG;aACa,KAAK,CACnB,UAAU,EAAE,eAAe,EAAE,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,eAAe,CAAC,cAAc,CAAC;IAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;aACa,QAAQ,CACtB,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,eAAe,EAAE,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,eAAe,CAAC,cAAc,CAAC;IAElC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;aACa,SAAS,CACvB,UAAU,EAAE,eAAe,EAAE,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,eAAe,CAAC,cAAc,CAAC;CACnC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;;;;iBAEzB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;iBAGvC,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEvF;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;iBAI1C,CAAA;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE7F;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;iBAG3C,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA"}
|
|
@@ -20,6 +20,10 @@ export declare const PluginWallTopProfilePoint: z.ZodObject<{
|
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
export type PluginWallTopProfilePoint = z.infer<typeof PluginWallTopProfilePoint>;
|
|
22
22
|
/**
|
|
23
|
+
* Current hosts refuse a non-null top profile (`PRECONDITION_FAILED`, "Walls have one
|
|
24
|
+
* height: sloped or stepped tops are not supported") and create nothing; the shape is
|
|
25
|
+
* kept for compatibility. The description below is the original contract.
|
|
26
|
+
*
|
|
23
27
|
* The top edge of ONE wall as a polyline over its centerline: at least two
|
|
24
28
|
* points, `along` strictly increasing from `0` (curve start) to `1` (curve end),
|
|
25
29
|
* straight segments between them. Two points give a single slope (a raked
|
|
@@ -100,14 +104,22 @@ export type PluginCreateWallRunItems = z.infer<typeof PluginCreateWallRunItems>;
|
|
|
100
104
|
export declare const PluginCreateFloorItem: z.ZodObject<{
|
|
101
105
|
contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
|
|
102
106
|
thickness: z.ZodNumber;
|
|
103
|
-
position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string
|
|
107
|
+
position: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
108
|
+
x: z.ZodNumber;
|
|
109
|
+
y: z.ZodNumber;
|
|
110
|
+
z: z.ZodNumber;
|
|
111
|
+
}, z.core.$strip>]>>;
|
|
104
112
|
}, z.core.$strip>;
|
|
105
113
|
export type PluginCreateFloorItem = z.infer<typeof PluginCreateFloorItem>;
|
|
106
114
|
/** The `items` array of {@linkcode PluginDesignCreateApi.floors} (1…1000). */
|
|
107
115
|
export declare const PluginCreateFloorItems: z.ZodArray<z.ZodObject<{
|
|
108
116
|
contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
|
|
109
117
|
thickness: z.ZodNumber;
|
|
110
|
-
position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string
|
|
118
|
+
position: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
119
|
+
x: z.ZodNumber;
|
|
120
|
+
y: z.ZodNumber;
|
|
121
|
+
z: z.ZodNumber;
|
|
122
|
+
}, z.core.$strip>]>>;
|
|
111
123
|
}, z.core.$strip>>;
|
|
112
124
|
export type PluginCreateFloorItems = z.infer<typeof PluginCreateFloorItems>;
|
|
113
125
|
/**
|
|
@@ -138,9 +150,21 @@ export declare const PluginCreateDoorItem: z.ZodObject<{
|
|
|
138
150
|
version: z.ZodOptional<z.ZodNumber>;
|
|
139
151
|
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
140
152
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
141
|
-
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string
|
|
142
|
-
|
|
143
|
-
|
|
153
|
+
position: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
154
|
+
x: z.ZodNumber;
|
|
155
|
+
y: z.ZodNumber;
|
|
156
|
+
z: z.ZodNumber;
|
|
157
|
+
}, z.core.$strip>]>;
|
|
158
|
+
facing: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
159
|
+
x: z.ZodNumber;
|
|
160
|
+
y: z.ZodNumber;
|
|
161
|
+
z: z.ZodNumber;
|
|
162
|
+
}, z.core.$strip>]>>;
|
|
163
|
+
hinge: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
164
|
+
x: z.ZodNumber;
|
|
165
|
+
y: z.ZodNumber;
|
|
166
|
+
z: z.ZodNumber;
|
|
167
|
+
}, z.core.$strip>]>>;
|
|
144
168
|
label: z.ZodOptional<z.ZodString>;
|
|
145
169
|
width: z.ZodOptional<z.ZodNumber>;
|
|
146
170
|
height: z.ZodOptional<z.ZodNumber>;
|
|
@@ -152,9 +176,21 @@ export declare const PluginCreateDoorItems: z.ZodArray<z.ZodObject<{
|
|
|
152
176
|
version: z.ZodOptional<z.ZodNumber>;
|
|
153
177
|
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
154
178
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
155
|
-
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string
|
|
156
|
-
|
|
157
|
-
|
|
179
|
+
position: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
180
|
+
x: z.ZodNumber;
|
|
181
|
+
y: z.ZodNumber;
|
|
182
|
+
z: z.ZodNumber;
|
|
183
|
+
}, z.core.$strip>]>;
|
|
184
|
+
facing: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
185
|
+
x: z.ZodNumber;
|
|
186
|
+
y: z.ZodNumber;
|
|
187
|
+
z: z.ZodNumber;
|
|
188
|
+
}, z.core.$strip>]>>;
|
|
189
|
+
hinge: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
190
|
+
x: z.ZodNumber;
|
|
191
|
+
y: z.ZodNumber;
|
|
192
|
+
z: z.ZodNumber;
|
|
193
|
+
}, z.core.$strip>]>>;
|
|
158
194
|
label: z.ZodOptional<z.ZodString>;
|
|
159
195
|
width: z.ZodOptional<z.ZodNumber>;
|
|
160
196
|
height: z.ZodOptional<z.ZodNumber>;
|
|
@@ -189,9 +225,21 @@ export declare const PluginCreateWindowItem: z.ZodObject<{
|
|
|
189
225
|
version: z.ZodOptional<z.ZodNumber>;
|
|
190
226
|
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
191
227
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
192
|
-
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string
|
|
193
|
-
|
|
194
|
-
|
|
228
|
+
position: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
229
|
+
x: z.ZodNumber;
|
|
230
|
+
y: z.ZodNumber;
|
|
231
|
+
z: z.ZodNumber;
|
|
232
|
+
}, z.core.$strip>]>;
|
|
233
|
+
facing: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
234
|
+
x: z.ZodNumber;
|
|
235
|
+
y: z.ZodNumber;
|
|
236
|
+
z: z.ZodNumber;
|
|
237
|
+
}, z.core.$strip>]>>;
|
|
238
|
+
hinge: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
239
|
+
x: z.ZodNumber;
|
|
240
|
+
y: z.ZodNumber;
|
|
241
|
+
z: z.ZodNumber;
|
|
242
|
+
}, z.core.$strip>]>>;
|
|
195
243
|
label: z.ZodOptional<z.ZodString>;
|
|
196
244
|
width: z.ZodOptional<z.ZodNumber>;
|
|
197
245
|
height: z.ZodOptional<z.ZodNumber>;
|
|
@@ -204,9 +252,21 @@ export declare const PluginCreateWindowItems: z.ZodArray<z.ZodObject<{
|
|
|
204
252
|
version: z.ZodOptional<z.ZodNumber>;
|
|
205
253
|
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
206
254
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
207
|
-
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string
|
|
208
|
-
|
|
209
|
-
|
|
255
|
+
position: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
256
|
+
x: z.ZodNumber;
|
|
257
|
+
y: z.ZodNumber;
|
|
258
|
+
z: z.ZodNumber;
|
|
259
|
+
}, z.core.$strip>]>;
|
|
260
|
+
facing: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
261
|
+
x: z.ZodNumber;
|
|
262
|
+
y: z.ZodNumber;
|
|
263
|
+
z: z.ZodNumber;
|
|
264
|
+
}, z.core.$strip>]>>;
|
|
265
|
+
hinge: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
266
|
+
x: z.ZodNumber;
|
|
267
|
+
y: z.ZodNumber;
|
|
268
|
+
z: z.ZodNumber;
|
|
269
|
+
}, z.core.$strip>]>>;
|
|
210
270
|
label: z.ZodOptional<z.ZodString>;
|
|
211
271
|
width: z.ZodOptional<z.ZodNumber>;
|
|
212
272
|
height: z.ZodOptional<z.ZodNumber>;
|
|
@@ -233,7 +293,11 @@ export type PluginCreateWindowItems = z.infer<typeof PluginCreateWindowItems>;
|
|
|
233
293
|
*/
|
|
234
294
|
export declare const PluginCreateFurnitureItem: z.ZodObject<{
|
|
235
295
|
catalogId: z.ZodString;
|
|
236
|
-
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string
|
|
296
|
+
position: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
297
|
+
x: z.ZodNumber;
|
|
298
|
+
y: z.ZodNumber;
|
|
299
|
+
z: z.ZodNumber;
|
|
300
|
+
}, z.core.$strip>]>;
|
|
237
301
|
label: z.ZodOptional<z.ZodString>;
|
|
238
302
|
angleInDegrees: z.ZodOptional<z.ZodNumber>;
|
|
239
303
|
}, z.core.$strip>;
|
|
@@ -244,7 +308,11 @@ export type PluginCreateFurnitureItem = z.infer<typeof PluginCreateFurnitureItem
|
|
|
244
308
|
*/
|
|
245
309
|
export declare const PluginCreateFurnitureItems: z.ZodArray<z.ZodObject<{
|
|
246
310
|
catalogId: z.ZodString;
|
|
247
|
-
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string
|
|
311
|
+
position: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>, z.ZodObject<{
|
|
312
|
+
x: z.ZodNumber;
|
|
313
|
+
y: z.ZodNumber;
|
|
314
|
+
z: z.ZodNumber;
|
|
315
|
+
}, z.core.$strip>]>;
|
|
248
316
|
label: z.ZodOptional<z.ZodString>;
|
|
249
317
|
angleInDegrees: z.ZodOptional<z.ZodNumber>;
|
|
250
318
|
}, z.core.$strip>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-items.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/bulk-items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EACL,eAAe,
|
|
1
|
+
{"version":3,"file":"bulk-items.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/bulk-items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EACL,eAAe,EAKhB,MAAM,kBAAkB,CAAA;AAKzB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,OAAO,CAAA;AAM7C;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,oBAAoB;;;kBA0B7B,CAAA;AACJ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAMvE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAA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