@snaptrude/plugin-core 0.0.0-dev-20260907135026 → 0.0.0-dev-20260908074328
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 +23 -0
- package/api-manifest.json +12 -151
- package/dist/api/core/geom/create/index.d.ts +86 -559
- package/dist/api/core/geom/create/index.d.ts.map +1 -1
- package/dist/api/core/geom/query/brep.d.ts +0 -50
- package/dist/api/core/geom/query/brep.d.ts.map +1 -1
- package/dist/api/core/geom/query/curve.d.ts +35 -58
- package/dist/api/core/geom/query/curve.d.ts.map +1 -1
- package/dist/api/core/geom/query/edge.d.ts +2 -2
- package/dist/api/core/geom/query/face.d.ts +0 -45
- package/dist/api/core/geom/query/face.d.ts.map +1 -1
- package/dist/api/core/geom/update/curve.d.ts +5 -5
- package/dist/api/core/geom/update/profile.d.ts +1 -1
- package/dist/api/design/create/index.d.ts +29 -6
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/delete/index.d.ts +20 -2
- package/dist/api/design/delete/index.d.ts.map +1 -1
- package/dist/api/design/query/geometry/index.d.ts +1 -27
- package/dist/api/design/query/geometry/index.d.ts.map +1 -1
- package/dist/api/design/query/index.d.ts +2 -47
- package/dist/api/design/query/index.d.ts.map +1 -1
- package/dist/api/design/query/spaces.d.ts +66 -5
- package/dist/api/design/query/spaces.d.ts.map +1 -1
- package/dist/api/design/update/index.d.ts +0 -87
- package/dist/api/design/update/index.d.ts.map +1 -1
- package/dist/api/entity/referenceLine.d.ts +2 -2
- package/dist/api/entity/referenceLine.d.ts.map +1 -1
- package/dist/api/entity/space.d.ts +7 -5
- package/dist/api/entity/space.d.ts.map +1 -1
- package/dist/api/entity/story.d.ts +4 -4
- package/dist/api/presentation/placedViews.d.ts +35 -1
- package/dist/api/presentation/placedViews.d.ts.map +1 -1
- package/dist/api/presentation/sheets.d.ts +20 -2
- package/dist/api/presentation/sheets.d.ts.map +1 -1
- package/dist/api/program/spreadsheet.d.ts +4 -4
- package/dist/errors/codes.d.ts +8 -3
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/handles.d.ts +3 -12
- package/dist/handles.d.ts.map +1 -1
- package/dist/index.cjs +2766 -3030
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2761 -2996
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/snaptrude-plugin-core-0.11.0.tgz +0 -0
- package/src/api/core/geom/create/index.ts +84 -588
- package/src/api/core/geom/query/brep.ts +0 -51
- package/src/api/core/geom/query/curve.ts +2 -25
- package/src/api/core/geom/query/edge.ts +2 -2
- package/src/api/core/geom/query/face.ts +0 -49
- package/src/api/design/create/index.ts +34 -8
- package/src/api/design/delete/index.ts +20 -1
- package/src/api/design/query/geometry/index.ts +0 -29
- package/src/api/design/query/index.ts +2 -50
- package/src/api/design/query/spaces.ts +68 -0
- package/src/api/design/update/index.ts +0 -94
- package/src/api/entity/space.ts +2 -0
- package/src/api/presentation/placedViews.ts +29 -1
- package/src/api/presentation/sheets.ts +19 -3
- package/src/errors/codes.ts +30 -2
- package/src/handles.ts +3 -15
- package/src/index.ts +0 -1
- package/test/errors.test.mjs +4 -0
- package/dist/massParameters.d.ts +0 -319
- package/dist/massParameters.d.ts.map +0 -1
- package/src/massParameters.ts +0 -472
- package/test/massParameters.test.mjs +0 -500
|
@@ -120,7 +120,7 @@ export declare abstract class PluginGeomUpdateCurveApi {
|
|
|
120
120
|
* | `fromStart` | `boolean` | Extend from the start end when `true`, otherwise from the end |
|
|
121
121
|
*/
|
|
122
122
|
export declare const PluginGeomUpdateCurveExtendArgs: z.ZodObject<{
|
|
123
|
-
curve: z.
|
|
123
|
+
curve: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"arc">, string>>]>;
|
|
124
124
|
distance: z.ZodNumber;
|
|
125
125
|
fromStart: z.ZodBoolean;
|
|
126
126
|
}, z.core.$strip>;
|
|
@@ -134,7 +134,7 @@ export type PluginGeomUpdateCurveExtendArgs = z.infer<typeof PluginGeomUpdateCur
|
|
|
134
134
|
* | `point` | {@linkcode Vec3Handle} | Point on the curve to split at |
|
|
135
135
|
*/
|
|
136
136
|
export declare const PluginGeomUpdateCurveSplitArgs: z.ZodObject<{
|
|
137
|
-
curve: z.
|
|
137
|
+
curve: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"arc">, string>>]>;
|
|
138
138
|
point: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>;
|
|
139
139
|
}, z.core.$strip>;
|
|
140
140
|
export type PluginGeomUpdateCurveSplitArgs = z.infer<typeof PluginGeomUpdateCurveSplitArgs>;
|
|
@@ -148,7 +148,7 @@ export type PluginGeomUpdateCurveSplitArgs = z.infer<typeof PluginGeomUpdateCurv
|
|
|
148
148
|
* | `endParam` | `number` | End parameter of the portion to keep |
|
|
149
149
|
*/
|
|
150
150
|
export declare const PluginGeomUpdateCurveTrimArgs: z.ZodObject<{
|
|
151
|
-
curve: z.
|
|
151
|
+
curve: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"arc">, string>>]>;
|
|
152
152
|
startParam: z.ZodNumber;
|
|
153
153
|
endParam: z.ZodNumber;
|
|
154
154
|
}, z.core.$strip>;
|
|
@@ -162,7 +162,7 @@ export type PluginGeomUpdateCurveTrimArgs = z.infer<typeof PluginGeomUpdateCurve
|
|
|
162
162
|
* | `vector` | {@linkcode Vec3Handle} | Translation vector to offset the curve by |
|
|
163
163
|
*/
|
|
164
164
|
export declare const PluginGeomUpdateCurveOffsetArgs: z.ZodObject<{
|
|
165
|
-
curve: z.
|
|
165
|
+
curve: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"arc">, string>>]>;
|
|
166
166
|
vector: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>;
|
|
167
167
|
}, z.core.$strip>;
|
|
168
168
|
export type PluginGeomUpdateCurveOffsetArgs = z.infer<typeof PluginGeomUpdateCurveOffsetArgs>;
|
|
@@ -174,7 +174,7 @@ export type PluginGeomUpdateCurveOffsetArgs = z.infer<typeof PluginGeomUpdateCur
|
|
|
174
174
|
* | `curve` | {@linkcode CurveHandle} | The curve to reverse |
|
|
175
175
|
*/
|
|
176
176
|
export declare const PluginGeomUpdateCurveReverseArgs: z.ZodObject<{
|
|
177
|
-
curve: z.
|
|
177
|
+
curve: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"arc">, string>>]>;
|
|
178
178
|
}, z.core.$strip>;
|
|
179
179
|
export type PluginGeomUpdateCurveReverseArgs = z.infer<typeof PluginGeomUpdateCurveReverseArgs>;
|
|
180
180
|
//# sourceMappingURL=curve.d.ts.map
|
|
@@ -281,7 +281,7 @@ export type PluginGeomUpdateProfileMirrorArgs = z.infer<typeof PluginGeomUpdateP
|
|
|
281
281
|
*/
|
|
282
282
|
export declare const PluginGeomUpdateProfileAddArgs: z.ZodObject<{
|
|
283
283
|
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"profile">, string>>;
|
|
284
|
-
curve: z.
|
|
284
|
+
curve: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"arc">, string>>]>;
|
|
285
285
|
position: z.ZodOptional<z.ZodEnum<{
|
|
286
286
|
start: "start";
|
|
287
287
|
end: "end";
|
|
@@ -173,11 +173,26 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
173
173
|
* Create a **floor** by extruding a footprint contour by `thickness`
|
|
174
174
|
* (extruded upward).
|
|
175
175
|
*
|
|
176
|
+
* The parametric engine owns floor topology and may resolve the request
|
|
177
|
+
* differently than asked: drawing against existing floors can **split** the
|
|
178
|
+
* footprint into several floors, or **merge** it into a pre-existing
|
|
179
|
+
* neighbour (that floor's region grows; nothing new is created). The call
|
|
180
|
+
* honors the engine's resolution and returns **every floor that covers the
|
|
181
|
+
* requested footprint after the operation** — the newly created floor(s),
|
|
182
|
+
* and/or the pre-existing floor that absorbed it. The array is never empty
|
|
183
|
+
* on success; a lone independently-created floor comes back as `[floor]`.
|
|
184
|
+
*
|
|
185
|
+
* **Breaking change in 0.11.0** — previously returned a single
|
|
186
|
+
* {@linkcode ComponentHandle}; callers must switch to the array (the first
|
|
187
|
+
* element preserves the old single-floor behavior for simple creates).
|
|
188
|
+
*
|
|
176
189
|
* @param contour - Footprint (outer + holes)
|
|
177
190
|
* @param thickness - Floor thickness (> 0)
|
|
178
191
|
* @param position - Offset from origin
|
|
179
|
-
* @returns the {@linkcode ComponentHandle} of
|
|
180
|
-
*
|
|
192
|
+
* @returns the {@linkcode ComponentHandle}s of every floor covering the
|
|
193
|
+
* requested footprint after parametric resolution (created and/or absorbing)
|
|
194
|
+
* @throws if the contour is invalid, the thickness is not positive, or the
|
|
195
|
+
* engine rejected the operation (nothing covers the footprint)
|
|
181
196
|
*
|
|
182
197
|
* @examplePrompt Create a floor from this room outline
|
|
183
198
|
* @examplePrompt Add a 100mm thick floor over the footprint
|
|
@@ -188,10 +203,10 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
188
203
|
* ```ts
|
|
189
204
|
* const rect = await snaptrude.core.geom.create.profileRect(5, 4)
|
|
190
205
|
* const contour = await snaptrude.core.geom.create.contourFromProfile(rect)
|
|
191
|
-
* const floor = await snaptrude.design.create.floor(contour, 0.1)
|
|
206
|
+
* const [floor, ...siblings] = await snaptrude.design.create.floor(contour, 0.1)
|
|
192
207
|
* ```
|
|
193
208
|
*/
|
|
194
|
-
abstract floor(contour: ContourHandle, thickness: number, position?: Vec3Handle): PluginApiReturn<ComponentHandle>;
|
|
209
|
+
abstract floor(contour: ContourHandle, thickness: number, position?: Vec3Handle): PluginApiReturn<ComponentHandle[]>;
|
|
195
210
|
/**
|
|
196
211
|
* Create a **roof** by extruding a footprint contour by `thickness`. Created
|
|
197
212
|
* flat (extruded downward); pitch/slope is a separate post-creation edit.
|
|
@@ -326,7 +341,13 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
326
341
|
* single undo entry. The storey must already exist
|
|
327
342
|
* (`core.storeys.create` first). Default: geometry-derived — a profile
|
|
328
343
|
* drawn at y = 0 lands on storey 1; the ACTIVE storey is NOT consulted.
|
|
329
|
-
* @returns
|
|
344
|
+
* @returns the actually-created wall {@linkcode ComponentHandle}s. The
|
|
345
|
+
* parametric engine owns wall topology — curves touching existing walls
|
|
346
|
+
* may merge into or split against them, so the returned count can differ
|
|
347
|
+
* from the input curve count. Profile-ordered 1:1 matches come first,
|
|
348
|
+
* then the remaining merged/split products in creation order. Re-query
|
|
349
|
+
* (e.g. `design.query.spaces.listGeneratedBim`) rather than assuming a
|
|
350
|
+
* wall per input curve.
|
|
330
351
|
* @throws if the profile is empty, `wallType` names no wall type in the
|
|
331
352
|
* project, `storey` does not exist, or wall creation fails
|
|
332
353
|
*
|
|
@@ -446,7 +467,9 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
446
467
|
* the item's height yourself.
|
|
447
468
|
* @param options - Optional placement options: `label` — instance name
|
|
448
469
|
* (default auto `${name}Ins${n}`); `createNewSourceMesh` — emit a
|
|
449
|
-
* source-mesh creation command (default `true`)
|
|
470
|
+
* source-mesh creation command (default `true`). `position.y` is always
|
|
471
|
+
* grounded: the placed instance's bounding-box bottom rests at it (the
|
|
472
|
+
* surface-flush grounding described above)
|
|
450
473
|
* @param angleInDegrees - Optional signed rotation about the vertical axis, in
|
|
451
474
|
* degrees (same convention as {@linkcode PluginDesignTransformApi.rotate}).
|
|
452
475
|
* Applied at creation time so it is part of the placement's single undo entry.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EACL,UAAU,EACV,eAAe,EACf,aAAa,EACb,aAAa,EACb,UAAU,EACX,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,eAAe,EACf,cAAc,EACd,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACpC,MAAM,gCAAgC,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,8BAAsB,qBAAqB;;IAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkDG;aACa,KAAK,CACnB,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,UAAU,EACrB,SAAS,CAAC,EAAE,eAAe,EAC3B,QAAQ,CAAC,EAAE,cAAc,EACzB,YAAY,CAAC,EAAE,kBAAkB,EACjC,MAAM,CAAC,EAAE,MAAM,GACd,eAAe,CAAC,eAAe,CAAC;IAEnC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;aACa,IAAI,CAClB,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,UAAU,EACrB,QAAQ,CAAC,EAAE,cAAc,GACxB,eAAe,CAAC,eAAe,CAAC;IAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;aACa,YAAY,CAC1B,IAAI,EAAE,UAAU,EAChB,KAAK,CAAC,EAAE,MAAM,GACb,eAAe,CAAC,eAAe,CAAC;IAEnC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;aACa,IAAI,CAClB,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,EACzB,QAAQ,CAAC,EAAE,cAAc,GACxB,eAAe,CAAC,eAAe,CAAC;IAEnC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EACL,UAAU,EACV,eAAe,EACf,aAAa,EACb,aAAa,EACb,UAAU,EACX,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,eAAe,EACf,cAAc,EACd,kBAAkB,EACnB,MAAM,oBAAoB,CAAA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AAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,gCAAgC,CACxC,CAAA;AAMD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB;;;;;iBAc/B,CAAA;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;iBASlC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAM7E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;iBAM/C,CAAA;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAA;AAMD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;EAAiC,CAAA;AAC5D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;iBAKrC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAQD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAShC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { PluginApiReturn } from "../../../types";
|
|
3
3
|
import { ComponentHandle } from "../../../handles";
|
|
4
|
-
import { PluginDesignChangeResult } from "../lock";
|
|
5
4
|
/**
|
|
6
5
|
* Arguments for {@linkcode PluginDesignDeleteApi.entities}.
|
|
7
6
|
*
|
|
@@ -18,6 +17,22 @@ export declare const PluginDesignDeleteEntitiesArgs: z.ZodObject<{
|
|
|
18
17
|
components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
19
18
|
}, z.core.$strip>;
|
|
20
19
|
export type PluginDesignDeleteEntitiesArgs = z.infer<typeof PluginDesignDeleteEntitiesArgs>;
|
|
20
|
+
/**
|
|
21
|
+
* Result of {@linkcode PluginDesignDeleteApi.entities} — the shared
|
|
22
|
+
* change-result shape plus the delete cascade. Deliberately a delete-specific
|
|
23
|
+
* extension of {@linkcode PluginDesignChangeResult} (which other change
|
|
24
|
+
* mutations keep unchanged).
|
|
25
|
+
*
|
|
26
|
+
* | Property | Type | Description |
|
|
27
|
+
* |---|---|---|
|
|
28
|
+
* | `affected` | {@linkcode ComponentHandle}`[]` | The entities that were deleted (the resolved input set) |
|
|
29
|
+
* | `cascaded` | {@linkcode ComponentHandle}`[]`? | Components PG2 removed as a consequence — derived walls/floors/slabs of deleted spaces; returned so callers can invalidate cached handles |
|
|
30
|
+
*/
|
|
31
|
+
export declare const PluginDesignDeleteResult: z.ZodObject<{
|
|
32
|
+
affected: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
33
|
+
cascaded: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type PluginDesignDeleteResult = z.infer<typeof PluginDesignDeleteResult>;
|
|
21
36
|
/**
|
|
22
37
|
* `snaptrude.design.delete.*` — **hard removal** of scene BIM entities.
|
|
23
38
|
*
|
|
@@ -40,6 +55,9 @@ export declare abstract class PluginDesignDeleteApi {
|
|
|
40
55
|
* @returns The entities that were deleted, as {@linkcode ComponentHandle}`[]`
|
|
41
56
|
* (echoed host-side from the resolved+deleted set — the engine returns no ids).
|
|
42
57
|
* Deleted handles are **stale** afterwards: re-resolving one throws `HANDLE_INVALID`.
|
|
58
|
+
* When the parametric engine removes further components as a consequence
|
|
59
|
+
* (derived walls/floors/slabs of deleted spaces), those are reported in the
|
|
60
|
+
* optional `cascaded` array — invalidate any cached handles to them too.
|
|
43
61
|
* @throws If any supplied handle is unknown/forged (`HANDLE_INVALID`) — the whole
|
|
44
62
|
* call rejects before anything is deleted (all-or-nothing resolution).
|
|
45
63
|
*
|
|
@@ -61,6 +79,6 @@ export declare abstract class PluginDesignDeleteApi {
|
|
|
61
79
|
* }
|
|
62
80
|
* ```
|
|
63
81
|
*/
|
|
64
|
-
abstract entities(components: ComponentHandle[]): PluginApiReturn<
|
|
82
|
+
abstract entities(components: ComponentHandle[]): PluginApiReturn<PluginDesignDeleteResult>;
|
|
65
83
|
}
|
|
66
84
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/delete/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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/delete/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;AAGlD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,8BAA8B;;iBAEzC,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAE3F;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB;;;iBAEnC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE/E;;;;;;;;;GASG;AACH,8BAAsB,qBAAqB;;IAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;aACa,QAAQ,CACtB,UAAU,EAAE,eAAe,EAAE,GAC5B,eAAe,CAAC,wBAAwB,CAAC;CAC7C"}
|
|
@@ -27,25 +27,10 @@ export declare abstract class PluginDesignQueryGeometryApi {
|
|
|
27
27
|
* scene entity, as a reusable {@linkcode BrepHandle} for the
|
|
28
28
|
* `core.geom.query.brep.*` reads.
|
|
29
29
|
*
|
|
30
|
-
* **Frame.** By default the brep comes back in the component's own LOCAL frame
|
|
31
|
-
* (its vertices are relative to the mesh origin, exactly as stored) — the
|
|
32
|
-
* behaviour every 0.9.x caller relies on. Pass `{ frame: "world" }` to get the
|
|
33
|
-
* same solid placed where it sits in the scene (world coordinates, like
|
|
34
|
-
* `getBottomContour` / `getTriangulatedMeshes` and every `design.query.measure`
|
|
35
|
-
* read). Use `"world"` whenever the handle will be COMBINED with other scene
|
|
36
|
-
* geometry or committed back beside its source: booleans between two scene
|
|
37
|
-
* masses, `brepFromFillet` / `brepFromShell` / `brepFromOffset` /
|
|
38
|
-
* `brepFromChamfer` on a scene mass followed by `massFromBrep`, or comparing
|
|
39
|
-
* its vertices with a bounding box. A world-frame handle from a parametrically
|
|
40
|
-
* live mass also carries that mass's recipe, so an operation result keeps an
|
|
41
|
-
* editable record.
|
|
42
|
-
*
|
|
43
30
|
* @param component - The scene component to read
|
|
44
|
-
* @param options - `frame`: `"local"` (default, mesh-local coordinates) or `"world"` (scene coordinates)
|
|
45
31
|
* @returns The brep as a {@linkcode BrepHandle}, or `null` if the component has no brep geometry
|
|
46
32
|
*
|
|
47
33
|
* @examplePrompt Get the 3D solid geometry of the selected wall
|
|
48
|
-
* @examplePrompt Round the top rim of this column and put it back where it is
|
|
49
34
|
* @examplePrompt How many faces does this mass have?
|
|
50
35
|
* @examplePrompt Inspect the mesh of this slab so I can look at its faces and edges
|
|
51
36
|
* @examplePrompt Read the vertices of the selected column's geometry
|
|
@@ -56,14 +41,9 @@ export declare abstract class PluginDesignQueryGeometryApi {
|
|
|
56
41
|
* if (brep) {
|
|
57
42
|
* const faces = await snaptrude.core.geom.query.brep.listFaces(brep)
|
|
58
43
|
* }
|
|
59
|
-
*
|
|
60
|
-
* // Operate on a scene mass and commit the result where the mass sits:
|
|
61
|
-
* const placed = await snaptrude.design.query.geometry.getBrep(mass, { frame: "world" })
|
|
62
|
-
* const rounded = await snaptrude.core.geom.create.brepFromFillet(placed, edges, 0.2)
|
|
63
|
-
* await snaptrude.design.create.massFromBrep(rounded, "Rounded")
|
|
64
44
|
* ```
|
|
65
45
|
*/
|
|
66
|
-
abstract getBrep(component: ComponentHandle
|
|
46
|
+
abstract getBrep(component: ComponentHandle): PluginApiReturn<BrepHandle | null>;
|
|
67
47
|
/**
|
|
68
48
|
* Get the **bottom-face contour** of a component — the footprint outline (outer
|
|
69
49
|
* profile + holes) of its lowest horizontal face, as a reusable
|
|
@@ -189,14 +169,8 @@ export declare abstract class PluginDesignQueryGeometryApi {
|
|
|
189
169
|
* |---|---|---|
|
|
190
170
|
* | `component` | {@linkcode ComponentHandle} | The scene component to read |
|
|
191
171
|
*/
|
|
192
|
-
/** Options for {@linkcode PluginDesignQueryGeometryApi.getBrep}: `frame` defaults to `"local"`. */
|
|
193
|
-
export type PluginDesignQueryGeometryGetBrepOptions = {
|
|
194
|
-
frame?: "local" | "world";
|
|
195
|
-
};
|
|
196
|
-
export declare const PluginDesignQueryGeometryGetBrepOptions: z.ZodType<PluginDesignQueryGeometryGetBrepOptions, PluginDesignQueryGeometryGetBrepOptions>;
|
|
197
172
|
export declare const PluginDesignQueryGeometryGetBrepArgs: z.ZodObject<{
|
|
198
173
|
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
199
|
-
options: z.ZodOptional<z.ZodType<PluginDesignQueryGeometryGetBrepOptions, PluginDesignQueryGeometryGetBrepOptions, z.core.$ZodTypeInternals<PluginDesignQueryGeometryGetBrepOptions, PluginDesignQueryGeometryGetBrepOptions>>>;
|
|
200
174
|
}, z.core.$strip>;
|
|
201
175
|
export type PluginDesignQueryGeometryGetBrepArgs = z.infer<typeof PluginDesignQueryGeometryGetBrepArgs>;
|
|
202
176
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/design/query/geometry/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,eAAe,EACf,UAAU,EACV,aAAa,EACb,WAAW,EACZ,MAAM,qBAAqB,CAAA;AAE5B;;;;;;;;;;;;;;;;;GAiBG;AACH,8BAAsB,4BAA4B;;IAGhD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/design/query/geometry/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,eAAe,EACf,UAAU,EACV,aAAa,EACb,WAAW,EACZ,MAAM,qBAAqB,CAAA;AAE5B;;;;;;;;;;;;;;;;;GAiBG;AACH,8BAAsB,4BAA4B;;IAGhD;;;;;;;;;;;;;;;;;;;;;OAqBG;aACa,OAAO,CACrB,SAAS,EAAE,eAAe,GACzB,eAAe,CAAC,UAAU,GAAG,IAAI,CAAC;IAErC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;aACa,gBAAgB,CAC9B,SAAS,EAAE,eAAe,GACzB,eAAe,CAAC,aAAa,GAAG,IAAI,CAAC;IAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;aACa,aAAa,CAC3B,SAAS,EA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
3
|
import { ComponentHandle, BBoxComponents } from "../../../handles";
|
|
4
|
-
import type { MassParametersRecord } from "../../../massParameters";
|
|
5
4
|
import { PluginDesignQueryGeometryApi } from "./geometry";
|
|
6
5
|
import { PluginDesignQuerySpacesApi } from "./spaces";
|
|
7
6
|
import { PluginDesignQueryReferenceLinesApi } from "./referenceLines";
|
|
@@ -291,6 +290,7 @@ export type PluginDesignQueryComponentsArgs = z.infer<typeof PluginDesignQueryCo
|
|
|
291
290
|
* | `isLocked` | `boolean` | Lock flag |
|
|
292
291
|
* | `isHidden` | `boolean` | User-hidden flag |
|
|
293
292
|
* | `isSelected` | `boolean` | Current selection state |
|
|
293
|
+
* | `isVisible` | `boolean` | Whether the entity currently has a visible representation on canvas (user hide flag AND LOD/mode gating both considered); read-only |
|
|
294
294
|
* | `boundingBox` | {@linkcode BBoxComponents} | World-space AABB |
|
|
295
295
|
* | `adjacency` | `{ spaceId: string; value: number }[]` | Adjacency relationships (spaces/masses only). `value`: `2` = Direct (required), `1` = Indirect or physical contact, `-1` = Restricted; `0` entries are filtered out. `[]` when adjacency has never been computed — see `program.adjacency.compute`. |
|
|
296
296
|
*/
|
|
@@ -343,6 +343,7 @@ export declare const PluginEntityProperties: z.ZodObject<{
|
|
|
343
343
|
isLocked: z.ZodOptional<z.ZodBoolean>;
|
|
344
344
|
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
345
345
|
isSelected: z.ZodOptional<z.ZodBoolean>;
|
|
346
|
+
isVisible: z.ZodOptional<z.ZodBoolean>;
|
|
346
347
|
boundingBox: z.ZodOptional<z.ZodObject<{
|
|
347
348
|
min: z.ZodObject<{
|
|
348
349
|
x: z.ZodNumber;
|
|
@@ -1128,52 +1129,6 @@ export declare abstract class PluginDesignQueryApi {
|
|
|
1128
1129
|
* ```
|
|
1129
1130
|
*/
|
|
1130
1131
|
abstract getStaircaseParams(staircase: ComponentHandle): PluginApiReturn<PluginStaircaseParams | null>;
|
|
1131
|
-
/**
|
|
1132
|
-
* Read a mass's creation-parameter record — the recipe it was built from
|
|
1133
|
-
* (`kind` plus the values that constructor was called with). Present on
|
|
1134
|
-
* masses committed from a `core.geom.create` brep constructor that carries a
|
|
1135
|
-
* recipe: {@linkcode MassParametersRecord} covers the four primitives
|
|
1136
|
-
* (sphere, cylinder, cone, torus), extrusions, revolutions, lofts and sweeps.
|
|
1137
|
-
*
|
|
1138
|
-
* A fillet, chamfer, shell or offset of a recorded solid keeps the record
|
|
1139
|
-
* too: `kind` stays the base constructor and the operation is appended to the
|
|
1140
|
-
* record's `operations` list. Edit any of it with `design.update.parameters`.
|
|
1141
|
-
*
|
|
1142
|
-
* `null` for everything else — drawn masses, imported geometry, booleans,
|
|
1143
|
-
* split parts, `brepFromFaces` / `brepFromMesh`, and results built on a
|
|
1144
|
-
* source that carried no record — and for a mass whose record no longer
|
|
1145
|
-
* matches what is on
|
|
1146
|
-
* screen (a later free-form edit dropped the recipe, or the mass carries a
|
|
1147
|
-
* baked scale). `null` too when the recipe was not recordable: the record
|
|
1148
|
-
* schema has its own caps (a sweep path of at most 512 points, a loft of at
|
|
1149
|
-
* most 32 sections, at most 8 chained `operations`, at most 256 curves in one
|
|
1150
|
-
* profile loop and 64 holes in one contour), and a mass built past one of
|
|
1151
|
-
* them — through a route that does not enforce the matching creator cap —
|
|
1152
|
-
* commits as ordinary geometry carrying no record. The `operations` cap is
|
|
1153
|
-
* the one an agent can walk into by accident: a 9th chained
|
|
1154
|
-
* fillet/chamfer/shell/offset drops the record silently, so the result
|
|
1155
|
-
* commits as ordinary geometry and reads back `null` here. A record is never
|
|
1156
|
-
* reported unless it is still the truth.
|
|
1157
|
-
*
|
|
1158
|
-
* Points and axes come back in **world** coordinates. Pure read — nothing is
|
|
1159
|
-
* created or modified.
|
|
1160
|
-
*
|
|
1161
|
-
* @param component - the mass's {@linkcode ComponentHandle}
|
|
1162
|
-
* @returns the {@linkcode MassParametersRecord}, or `null`
|
|
1163
|
-
*
|
|
1164
|
-
* @examplePrompt What radius is this sphere?
|
|
1165
|
-
* @examplePrompt Is this mass parametric?
|
|
1166
|
-
* @examplePrompt Read back the dome's creation parameters
|
|
1167
|
-
* @examplePrompt How tall was this cylinder made?
|
|
1168
|
-
*
|
|
1169
|
-
* # Example
|
|
1170
|
-
* ```ts
|
|
1171
|
-
* const [mass] = await snaptrude.design.query.listMasses({ isSelected: true })
|
|
1172
|
-
* const params = await snaptrude.design.query.getParameters(mass)
|
|
1173
|
-
* if (params?.kind === "sphere") console.log("radius:", params.values.radius)
|
|
1174
|
-
* ```
|
|
1175
|
-
*/
|
|
1176
|
-
abstract getParameters(component: ComponentHandle): PluginApiReturn<MassParametersRecord | null>;
|
|
1177
1132
|
/**
|
|
1178
1133
|
* Get the **union** axis-aligned bounding box enclosing a set of entities.
|
|
1179
1134
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAQlE,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AACrD,OAAO,EAAE,kCAAkC,EAAE,MAAM,kBAAkB,CAAA;AAMrE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;aACa,kBAAkB,CAChC,SAAS,EAAE,eAAe,GACzB,eAAe,CAAC,qBAAqB,GAAG,IAAI,CAAC;IAEhD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;aACa,cAAc,CAC5B,UAAU,EAAE,eAAe,EAAE,GAC5B,eAAe,CAAC,cAAc,GAAG,IAAI,CAAC;IAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;aACa,aAAa,CAC3B,OAAO,CAAC,EAAE,0BAA0B,GACnC,eAAe,CAAC,yBAAyB,CAAC;CAC9C;AAGD,mFAAmF;AACnF,eAAO,MAAM,sBAAsB;;;iBAA6C,CAAA;AAChF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;iBAIrC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;iBAUhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,4DAA4D;AAC5D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;iBAKpC,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAA;AAED,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
|
|
@@ -112,6 +112,38 @@ export declare abstract class PluginDesignQuerySpacesApi {
|
|
|
112
112
|
* ```
|
|
113
113
|
*/
|
|
114
114
|
abstract getEnclosure(space: ComponentHandle): PluginApiReturn<PluginSpaceEnclosure | null>;
|
|
115
|
+
/**
|
|
116
|
+
* List the space's **engine-generated BIM components** — the walls, floors
|
|
117
|
+
* and slabs the parametric engine derived from this space, grouped by kind.
|
|
118
|
+
*
|
|
119
|
+
* Unlike {@linkcode getEnclosure} (a geometric best-effort match), this read
|
|
120
|
+
* reports the engine's own derivation records, so every returned handle is a
|
|
121
|
+
* component the engine created *for this space*.
|
|
122
|
+
*
|
|
123
|
+
* The derived set is NOT stable across writes: a merge/split/rebuild of the
|
|
124
|
+
* space graph retires members and creates successors — re-query after any
|
|
125
|
+
* write that touches the space. This is the churn-recovery anchor: when a
|
|
126
|
+
* cached derived handle goes stale, call this again to pick up the current
|
|
127
|
+
* set.
|
|
128
|
+
*
|
|
129
|
+
* @param space - The space (room mass) to read
|
|
130
|
+
* @returns the generated component handles, grouped by kind
|
|
131
|
+
* ({@linkcode PluginSpaceGeneratedBim}); a group is `[]` when the engine
|
|
132
|
+
* derived nothing of that kind
|
|
133
|
+
* @throws If the space does not exist or the component is not a space/mass
|
|
134
|
+
*
|
|
135
|
+
* @examplePrompt Which walls did this room generate?
|
|
136
|
+
* @examplePrompt List the BIM components derived from the selected space
|
|
137
|
+
* @examplePrompt Get the floors and slabs that belong to this room
|
|
138
|
+
*
|
|
139
|
+
* # Example
|
|
140
|
+
* ```ts
|
|
141
|
+
* const [space] = await snaptrude.design.query.listSpaces()
|
|
142
|
+
* const bim = await snaptrude.design.query.spaces.listGeneratedBim(space)
|
|
143
|
+
* console.log(`${bim.walls.length} walls, ${bim.floors.length} floors`)
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
abstract listGeneratedBim(space: ComponentHandle): PluginApiReturn<PluginSpaceGeneratedBim>;
|
|
115
147
|
}
|
|
116
148
|
/**
|
|
117
149
|
* Arguments for {@linkcode PluginDesignQuerySpacesApi.getFootprint}.
|
|
@@ -134,10 +166,10 @@ export declare const PluginDesignQuerySpacesGetProperty: z.ZodEnum<{
|
|
|
134
166
|
profile: "profile";
|
|
135
167
|
type: "type";
|
|
136
168
|
id: "id";
|
|
137
|
-
height: "height";
|
|
138
169
|
position: "position";
|
|
139
170
|
name: "name";
|
|
140
171
|
storey: "storey";
|
|
172
|
+
height: "height";
|
|
141
173
|
depth: "depth";
|
|
142
174
|
innerProfiles: "innerProfiles";
|
|
143
175
|
room_type: "room_type";
|
|
@@ -170,10 +202,10 @@ export declare const PluginDesignQuerySpacesGetArgs: z.ZodObject<{
|
|
|
170
202
|
profile: "profile";
|
|
171
203
|
type: "type";
|
|
172
204
|
id: "id";
|
|
173
|
-
height: "height";
|
|
174
205
|
position: "position";
|
|
175
206
|
name: "name";
|
|
176
207
|
storey: "storey";
|
|
208
|
+
height: "height";
|
|
177
209
|
depth: "depth";
|
|
178
210
|
innerProfiles: "innerProfiles";
|
|
179
211
|
room_type: "room_type";
|
|
@@ -199,10 +231,9 @@ export type PluginDesignQuerySpacesGetArgs = z.infer<typeof PluginDesignQuerySpa
|
|
|
199
231
|
* requested properties are present.
|
|
200
232
|
*/
|
|
201
233
|
export declare const PluginDesignQuerySpacesGetResult: z.ZodObject<{
|
|
202
|
-
profile: z.ZodOptional<z.ZodArray<z.
|
|
234
|
+
profile: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"arc">, string>>]>>>;
|
|
203
235
|
type: z.ZodOptional<z.ZodString>;
|
|
204
236
|
id: z.ZodOptional<z.ZodString>;
|
|
205
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
206
237
|
position: z.ZodOptional<z.ZodObject<{
|
|
207
238
|
x: z.ZodNumber;
|
|
208
239
|
y: z.ZodNumber;
|
|
@@ -210,8 +241,9 @@ export declare const PluginDesignQuerySpacesGetResult: z.ZodObject<{
|
|
|
210
241
|
}, z.core.$strip>>;
|
|
211
242
|
name: z.ZodOptional<z.ZodString>;
|
|
212
243
|
storey: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
244
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
213
245
|
depth: z.ZodOptional<z.ZodNumber>;
|
|
214
|
-
innerProfiles: z.ZodOptional<z.ZodArray<z.ZodArray<z.
|
|
246
|
+
innerProfiles: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"arc">, string>>]>>>>;
|
|
215
247
|
room_type: z.ZodOptional<z.ZodString>;
|
|
216
248
|
area: z.ZodOptional<z.ZodNumber>;
|
|
217
249
|
breadth: z.ZodOptional<z.ZodNumber>;
|
|
@@ -391,4 +423,33 @@ export declare const PluginSpaceEnclosure: z.ZodObject<{
|
|
|
391
423
|
}, z.core.$strip>>;
|
|
392
424
|
}, z.core.$strip>;
|
|
393
425
|
export type PluginSpaceEnclosure = z.infer<typeof PluginSpaceEnclosure>;
|
|
426
|
+
/**
|
|
427
|
+
* Arguments for {@linkcode PluginDesignQuerySpacesApi.listGeneratedBim}.
|
|
428
|
+
*
|
|
429
|
+
* | Property | Type | Description |
|
|
430
|
+
* |---|---|---|
|
|
431
|
+
* | `space` | {@linkcode ComponentHandle} | The space (room mass) to read |
|
|
432
|
+
*/
|
|
433
|
+
export declare const PluginDesignQuerySpacesListGeneratedBimArgs: z.ZodObject<{
|
|
434
|
+
space: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
435
|
+
}, z.core.$strip>;
|
|
436
|
+
export type PluginDesignQuerySpacesListGeneratedBimArgs = z.infer<typeof PluginDesignQuerySpacesListGeneratedBimArgs>;
|
|
437
|
+
/**
|
|
438
|
+
* Result of {@linkcode PluginDesignQuerySpacesApi.listGeneratedBim} — the
|
|
439
|
+
* space's engine-generated BIM component handles, grouped by kind. The set
|
|
440
|
+
* changes whenever a write merges/splits/rebuilds the space graph — re-query
|
|
441
|
+
* after writes rather than caching it.
|
|
442
|
+
*
|
|
443
|
+
* | Property | Type | Description |
|
|
444
|
+
* |---|---|---|
|
|
445
|
+
* | `walls` | {@linkcode ComponentHandle}`[]` | Walls the engine derived from the space |
|
|
446
|
+
* | `floors` | {@linkcode ComponentHandle}`[]` | Floors the engine derived from the space |
|
|
447
|
+
* | `slabs` | {@linkcode ComponentHandle}`[]` | Slabs the engine derived from the space |
|
|
448
|
+
*/
|
|
449
|
+
export declare const PluginSpaceGeneratedBim: z.ZodObject<{
|
|
450
|
+
walls: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
451
|
+
floors: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
452
|
+
slabs: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
export type PluginSpaceGeneratedBim = z.infer<typeof PluginSpaceGeneratedBim>;
|
|
394
455
|
//# sourceMappingURL=spaces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spaces.d.ts","sourceRoot":"","sources":["../../../../src/api/design/query/spaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAGjE;;;;;;;;;;;GAWG;AACH,8BAAsB,0BAA0B;;IAG9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;aACa,GAAG,CACjB,KAAK,EAAE,eAAe,EACtB,UAAU,EAAE,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