@snaptrude/plugin-core 0.8.0 → 0.9.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 +16 -1
- package/api-manifest.full.json +1350 -89
- package/api-manifest.json +826 -40
- package/dist/api/analysis/daylight.d.ts +603 -0
- package/dist/api/analysis/daylight.d.ts.map +1 -0
- package/dist/api/analysis/heatmaps.d.ts +438 -14
- package/dist/api/analysis/heatmaps.d.ts.map +1 -1
- package/dist/api/analysis/index.d.ts +15 -0
- package/dist/api/analysis/index.d.ts.map +1 -1
- package/dist/api/analysis/solar.d.ts +249 -0
- package/dist/api/analysis/solar.d.ts.map +1 -0
- package/dist/api/analysis/weather.d.ts +193 -0
- package/dist/api/analysis/weather.d.ts.map +1 -0
- package/dist/api/core/camera/index.d.ts +37 -0
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/core/geom/create/index.d.ts +318 -1
- package/dist/api/core/geom/create/index.d.ts.map +1 -1
- package/dist/api/core/index.d.ts +9 -0
- package/dist/api/core/index.d.ts.map +1 -1
- package/dist/api/core/io/export/index.d.ts +3 -1
- package/dist/api/core/io/export/index.d.ts.map +1 -1
- package/dist/api/core/io/import/index.d.ts +61 -0
- package/dist/api/core/io/import/index.d.ts.map +1 -1
- package/dist/api/core/mode/index.d.ts +99 -0
- package/dist/api/core/mode/index.d.ts.map +1 -0
- package/dist/api/core/storeys/index.d.ts +251 -0
- package/dist/api/core/storeys/index.d.ts.map +1 -0
- package/dist/api/core/tags.d.ts +24 -0
- package/dist/api/core/tags.d.ts.map +1 -1
- package/dist/api/core/zoom/index.d.ts +4 -0
- package/dist/api/core/zoom/index.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +115 -4
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/delete/index.d.ts +3 -0
- package/dist/api/design/delete/index.d.ts.map +1 -1
- package/dist/api/design/query/geometry/index.d.ts +112 -0
- package/dist/api/design/query/geometry/index.d.ts.map +1 -1
- package/dist/api/design/query/index.d.ts +4 -0
- package/dist/api/design/query/index.d.ts.map +1 -1
- package/dist/api/design/query/referenceLines.d.ts +45 -0
- package/dist/api/design/query/referenceLines.d.ts.map +1 -0
- package/dist/api/design/query/spaces.d.ts +173 -0
- package/dist/api/design/query/spaces.d.ts.map +1 -1
- package/dist/api/design/transform/index.d.ts +12 -0
- package/dist/api/design/transform/index.d.ts.map +1 -1
- package/dist/api/design/update/index.d.ts +51 -1
- package/dist/api/design/update/index.d.ts.map +1 -1
- package/dist/api/entity/buildableEnvelope.d.ts +4 -0
- package/dist/api/entity/buildableEnvelope.d.ts.map +1 -1
- package/dist/api/entity/referenceLine.d.ts +8 -0
- package/dist/api/entity/referenceLine.d.ts.map +1 -1
- package/dist/api/entity/story.d.ts +20 -0
- package/dist/api/entity/story.d.ts.map +1 -1
- package/dist/api/index.d.ts +5 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/presentation/export.d.ts +4 -0
- package/dist/api/presentation/export.d.ts.map +1 -1
- package/dist/api/presentation/import.d.ts +6 -0
- package/dist/api/presentation/import.d.ts.map +1 -1
- package/dist/api/presentation/index.d.ts +9 -0
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +370 -0
- package/dist/api/presentation/placedViews.d.ts.map +1 -0
- package/dist/api/presentation/shapes.d.ts +481 -0
- package/dist/api/presentation/shapes.d.ts.map +1 -0
- package/dist/api/program/site.d.ts +94 -0
- package/dist/api/program/site.d.ts.map +1 -1
- package/dist/api/program/spreadsheet.d.ts +260 -28
- package/dist/api/program/spreadsheet.d.ts.map +1 -1
- package/dist/api/workspace/index.d.ts +460 -0
- package/dist/api/workspace/index.d.ts.map +1 -0
- package/dist/index.cjs +2625 -1758
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2515 -1758
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/scripts/generate-manifest.mjs +45 -0
- package/src/api/analysis/daylight.ts +470 -0
- package/src/api/analysis/heatmaps.ts +444 -17
- package/src/api/analysis/index.ts +15 -0
- package/src/api/analysis/solar.ts +237 -0
- package/src/api/analysis/weather.ts +179 -0
- package/src/api/core/camera/index.ts +39 -0
- package/src/api/core/geom/create/index.ts +344 -1
- package/src/api/core/index.ts +9 -0
- package/src/api/core/io/export/index.ts +3 -1
- package/src/api/core/io/import/index.ts +64 -0
- package/src/api/core/mode/index.ts +96 -0
- package/src/api/core/storeys/index.ts +279 -0
- package/src/api/core/tags.ts +27 -0
- package/src/api/core/zoom/index.ts +4 -0
- package/src/api/design/create/index.ts +138 -1
- package/src/api/design/delete/index.ts +3 -0
- package/src/api/design/query/geometry/index.ts +125 -3
- package/src/api/design/query/index.ts +4 -0
- package/src/api/design/query/referenceLines.ts +52 -0
- package/src/api/design/query/spaces.ts +143 -0
- package/src/api/design/transform/index.ts +12 -0
- package/src/api/design/update/index.ts +66 -1
- package/src/api/entity/buildableEnvelope.ts +4 -0
- package/src/api/entity/referenceLine.ts +8 -0
- package/src/api/entity/story.ts +20 -0
- package/src/api/index.ts +5 -0
- package/src/api/presentation/export.ts +4 -0
- package/src/api/presentation/import.ts +6 -0
- package/src/api/presentation/index.ts +9 -0
- package/src/api/presentation/placedViews.ts +363 -0
- package/src/api/presentation/shapes.ts +274 -0
- package/src/api/program/site.ts +95 -0
- package/src/api/program/spreadsheet.ts +251 -6
- package/src/api/workspace/index.ts +516 -0
|
@@ -12,6 +12,9 @@ import { ComponentHandle, BrepHandle, ContourHandle, CurveHandle } from "../../.
|
|
|
12
12
|
* {@linkcode ContourHandle} for its footprint outline;
|
|
13
13
|
* {@linkcode PluginDesignQueryGeometryApi.getCenterline} mints a
|
|
14
14
|
* {@linkcode CurveHandle} for a wall's core curve.
|
|
15
|
+
* {@linkcode PluginDesignQueryGeometryApi.getTriangulatedMeshes} is the
|
|
16
|
+
* handle-free exception: it returns the triangulated render meshes as plain
|
|
17
|
+
* world-space arrays.
|
|
15
18
|
*
|
|
16
19
|
* Returned handles are session-ephemeral and go stale on undo/redo/re-topologize
|
|
17
20
|
* — re-fetch a fresh one after edits.
|
|
@@ -103,6 +106,61 @@ export declare abstract class PluginDesignQueryGeometryApi {
|
|
|
103
106
|
* ```
|
|
104
107
|
*/
|
|
105
108
|
abstract getCenterline(component: ComponentHandle): PluginApiReturn<CurveHandle | null>;
|
|
109
|
+
/**
|
|
110
|
+
* Get the **triangulated render meshes** of scene components as plain,
|
|
111
|
+
* serializable arrays — flat world-space vertex `positions` (`[x0, y0, z0,
|
|
112
|
+
* x1, …]`) and triangle `indices` (three per triangle), one record per
|
|
113
|
+
* requested component.
|
|
114
|
+
*
|
|
115
|
+
* Unlike the other `geometry.*` reads this does NOT mint kernel handles — the
|
|
116
|
+
* raw arrays cross the boundary directly, ready for export, custom analysis,
|
|
117
|
+
* or feeding an external renderer. Positions are **always world-space**
|
|
118
|
+
* (instance/transform baked in; there is no local-coordinates mode) in plan
|
|
119
|
+
* units — no conversion needed. Raw doubles, unrounded.
|
|
120
|
+
*
|
|
121
|
+
* With `includeMaterialIds: true` each record also carries `materialIds`: one
|
|
122
|
+
* entry **per triangle** (`indices.length / 3` entries), the material *name*
|
|
123
|
+
* painted on that triangle, or `null` for unpainted/default faces.
|
|
124
|
+
*
|
|
125
|
+
* With `includeFaceIndices: true` each record also carries `faceIds`: one
|
|
126
|
+
* entry **per triangle** (input order), the B-rep face index owning that
|
|
127
|
+
* triangle (same ids as {@linkcode getBrep} faces), or `null` where there is
|
|
128
|
+
* no provenance. Non-B-rep meshes (Revit imports, generic models, furniture)
|
|
129
|
+
* yield all-`null` rather than an error.
|
|
130
|
+
*
|
|
131
|
+
* A resolvable component with no readable mesh geometry yields
|
|
132
|
+
* `{ id, positions: [], indices: [] }` — nothing is silently omitted.
|
|
133
|
+
*
|
|
134
|
+
* The call is capped at **500 000 triangles total**; over the cap it throws a
|
|
135
|
+
* `VALIDATION` error whose message includes the actual total — split the
|
|
136
|
+
* component list into smaller batches and call again.
|
|
137
|
+
*
|
|
138
|
+
* @param components - The scene components to triangulate
|
|
139
|
+
* @param options - `includeMaterialIds` adds the per-triangle material names;
|
|
140
|
+
* `includeFaceIndices` adds the per-triangle B-rep face indices
|
|
141
|
+
* @returns `{ meshes }` — one {@linkcode PluginTriangulatedMesh} per requested
|
|
142
|
+
* component, in input order
|
|
143
|
+
* @throws `HANDLE_INVALID` if any component handle is gone/forged;
|
|
144
|
+
* `VALIDATION` if the combined mesh exceeds 500 000 triangles
|
|
145
|
+
*
|
|
146
|
+
* @examplePrompt Export the selected masses as a triangle mesh
|
|
147
|
+
* @examplePrompt Get the raw vertices and triangles of this wall in world coordinates
|
|
148
|
+
* @examplePrompt Give me the triangulated geometry of every space with its materials
|
|
149
|
+
* @examplePrompt Compute the surface area of this roof from its triangles
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```ts
|
|
153
|
+
* const spaces = await snaptrude.design.query.listSpaces()
|
|
154
|
+
* const { meshes } = await snaptrude.design.query.geometry.getTriangulatedMeshes(spaces, {
|
|
155
|
+
* includeMaterialIds: true,
|
|
156
|
+
* })
|
|
157
|
+
* for (const mesh of meshes) {
|
|
158
|
+
* const triangleCount = mesh.indices.length / 3
|
|
159
|
+
* console.log(mesh.id, triangleCount, mesh.materialIds?.[0])
|
|
160
|
+
* }
|
|
161
|
+
* ```
|
|
162
|
+
*/
|
|
163
|
+
abstract getTriangulatedMeshes(components: ComponentHandle[], options?: PluginDesignQueryGeometryGetTriangulatedMeshesArgs["options"]): PluginApiReturn<PluginDesignQueryGeometryGetTriangulatedMeshesResult>;
|
|
106
164
|
}
|
|
107
165
|
/**
|
|
108
166
|
* Arguments for {@linkcode PluginDesignQueryGeometryApi.getBrep}.
|
|
@@ -137,4 +195,58 @@ export declare const PluginDesignQueryGeometryGetCenterlineArgs: z.ZodObject<{
|
|
|
137
195
|
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
138
196
|
}, z.core.$strip>;
|
|
139
197
|
export type PluginDesignQueryGeometryGetCenterlineArgs = z.infer<typeof PluginDesignQueryGeometryGetCenterlineArgs>;
|
|
198
|
+
/**
|
|
199
|
+
* One component's triangulated world-space mesh, as plain serializable arrays
|
|
200
|
+
* (no handles).
|
|
201
|
+
*
|
|
202
|
+
* | Property | Type | Description |
|
|
203
|
+
* |---|---|---|
|
|
204
|
+
* | `id` | `string` | The component's id (its {@linkcode ComponentHandle} token) |
|
|
205
|
+
* | `positions` | `number[]` | Flat world-space vertex coordinates `[x0, y0, z0, x1, …]`, plan units, raw doubles |
|
|
206
|
+
* | `indices` | `number[]` | Triangle vertex indices, three per triangle, into `positions / 3` |
|
|
207
|
+
* | `materialIds` | `(string \| null)[]` _(optional)_ | One entry per triangle: the painted material's name, `null` for unpainted/default faces. Present only when requested via `includeMaterialIds` |
|
|
208
|
+
* | `faceIds` | `(number \| null)[]` _(optional)_ | One entry per triangle: the B-rep face index owning it (same ids as {@linkcode PluginDesignQueryGeometryApi.getBrep} faces), `null` where there is no provenance (non-B-rep mesh). Present only when requested via `includeFaceIndices` |
|
|
209
|
+
*/
|
|
210
|
+
export declare const PluginTriangulatedMesh: z.ZodObject<{
|
|
211
|
+
id: z.ZodString;
|
|
212
|
+
positions: z.ZodArray<z.ZodNumber>;
|
|
213
|
+
indices: z.ZodArray<z.ZodNumber>;
|
|
214
|
+
materialIds: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>>>;
|
|
215
|
+
faceIds: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>>>;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
export type PluginTriangulatedMesh = z.infer<typeof PluginTriangulatedMesh>;
|
|
218
|
+
/**
|
|
219
|
+
* Arguments for {@linkcode PluginDesignQueryGeometryApi.getTriangulatedMeshes}.
|
|
220
|
+
*
|
|
221
|
+
* | Property | Type | Description |
|
|
222
|
+
* |---|---|---|
|
|
223
|
+
* | `components` | {@linkcode ComponentHandle}`[]` | The scene components to triangulate |
|
|
224
|
+
* | `options.includeMaterialIds` | `boolean` _(optional)_ | Also return the per-triangle material names |
|
|
225
|
+
* | `options.includeFaceIndices` | `boolean` _(optional)_ | Also return the per-triangle B-rep face indices |
|
|
226
|
+
*/
|
|
227
|
+
export declare const PluginDesignQueryGeometryGetTriangulatedMeshesArgs: z.ZodObject<{
|
|
228
|
+
components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
229
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
includeMaterialIds: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
+
includeFaceIndices: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
+
}, z.core.$strip>>;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
export type PluginDesignQueryGeometryGetTriangulatedMeshesArgs = z.infer<typeof PluginDesignQueryGeometryGetTriangulatedMeshesArgs>;
|
|
235
|
+
/**
|
|
236
|
+
* Result of {@linkcode PluginDesignQueryGeometryApi.getTriangulatedMeshes}.
|
|
237
|
+
*
|
|
238
|
+
* | Property | Type | Description |
|
|
239
|
+
* |---|---|---|
|
|
240
|
+
* | `meshes` | {@linkcode PluginTriangulatedMesh}`[]` | One record per requested component, in input order |
|
|
241
|
+
*/
|
|
242
|
+
export declare const PluginDesignQueryGeometryGetTriangulatedMeshesResult: z.ZodObject<{
|
|
243
|
+
meshes: z.ZodArray<z.ZodObject<{
|
|
244
|
+
id: z.ZodString;
|
|
245
|
+
positions: z.ZodArray<z.ZodNumber>;
|
|
246
|
+
indices: z.ZodArray<z.ZodNumber>;
|
|
247
|
+
materialIds: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>>>;
|
|
248
|
+
faceIds: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>>>;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
export type PluginDesignQueryGeometryGetTriangulatedMeshesResult = z.infer<typeof PluginDesignQueryGeometryGetTriangulatedMeshesResult>;
|
|
140
252
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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
|
|
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,EAAE,eAAe,GACzB,eAAe,CAAC,WAAW,GAAG,IAAI,CAAC;IAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqDG;aACa,qBAAqB,CACnC,UAAU,EAAE,eAAe,EAAE,EAC7B,OAAO,CAAC,EAAE,kDAAkD,CAAC,SAAS,CAAC,GACtE,eAAe,CAAC,oDAAoD,CAAC;CACzE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC;;iBAE/C,CAAA;AAEF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,6CAA6C;;iBAExD,CAAA;AAEF,MAAM,MAAM,6CAA6C,GAAG,CAAC,CAAC,KAAK,CACjE,OAAO,6CAA6C,CACrD,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,0CAA0C;;iBAErD,CAAA;AAEF,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAC9D,OAAO,0CAA0C,CAClD,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB;;;;;;iBAMjC,CAAA;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E;;;;;;;;GAQG;AACH,eAAO,MAAM,kDAAkD;;;;;;iBAQ7D,CAAA;AAEF,MAAM,MAAM,kDAAkD,GAAG,CAAC,CAAC,KAAK,CACtE,OAAO,kDAAkD,CAC1D,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oDAAoD;;;;;;;;iBAE/D,CAAA;AAEF,MAAM,MAAM,oDAAoD,GAAG,CAAC,CAAC,KAAK,CACxE,OAAO,oDAAoD,CAC5D,CAAA"}
|
|
@@ -3,6 +3,7 @@ import { PluginApiReturn } from "../../../types";
|
|
|
3
3
|
import { ComponentHandle, BBoxComponents } from "../../../handles";
|
|
4
4
|
import { PluginDesignQueryGeometryApi } from "./geometry";
|
|
5
5
|
import { PluginDesignQuerySpacesApi } from "./spaces";
|
|
6
|
+
import { PluginDesignQueryReferenceLinesApi } from "./referenceLines";
|
|
6
7
|
/**
|
|
7
8
|
* The kind of a BIM entity — the discovery/filter vocabulary for the whole
|
|
8
9
|
* `design.query.*` surface. Values are clean `lowerCamel` tokens; the host maps
|
|
@@ -496,6 +497,8 @@ export declare abstract class PluginDesignQueryApi {
|
|
|
496
497
|
abstract geometry: PluginDesignQueryGeometryApi;
|
|
497
498
|
/** Space-specific reads (footprint, …). See {@linkcode PluginDesignQuerySpacesApi}. */
|
|
498
499
|
abstract spaces: PluginDesignQuerySpacesApi;
|
|
500
|
+
/** Reference-line-specific reads. See {@linkcode PluginDesignQueryReferenceLinesApi}. */
|
|
501
|
+
abstract referenceLines: PluginDesignQueryReferenceLinesApi;
|
|
499
502
|
constructor();
|
|
500
503
|
/**
|
|
501
504
|
* List **all** BIM entities in the project matching the filter.
|
|
@@ -1148,4 +1151,5 @@ export declare abstract class PluginDesignQueryApi {
|
|
|
1148
1151
|
}
|
|
1149
1152
|
export * from "./geometry";
|
|
1150
1153
|
export * from "./spaces";
|
|
1154
|
+
export * from "./referenceLines";
|
|
1151
1155
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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;AAQlE,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,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,YA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S,EAAE,eAAe,GACzB,eAAe,CAAC,sBAAsB,CAAC;IAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;aACa,OAAO,CACrB,SAAS,EAAE,eAAe,GACzB,eAAe,CAAC,wBAAwB,GAAG,IAAI,CAAC;IAEnD;;;;;;;;;;;;;;;;;;;;;;;;;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;CAC1C;AAED,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { PluginApiReturn } from "../../../types";
|
|
3
|
+
import { PluginReferenceLineGetProperty, PluginReferenceLineGetResult } from "../../entity/referenceLine";
|
|
4
|
+
/**
|
|
5
|
+
* `design.query.referenceLines.*` — reference-line-specific reads.
|
|
6
|
+
*
|
|
7
|
+
* A **reference line** is a 2D guide line (or arc) in the scene, typically used
|
|
8
|
+
* for grid lines and alignment guides. Enumerate reference lines with
|
|
9
|
+
* `design.query.listReferenceLines`; read an individual line's properties here.
|
|
10
|
+
* This is the canonical home of the read formerly at `entity.referenceLine.get`
|
|
11
|
+
* (now deprecated).
|
|
12
|
+
*
|
|
13
|
+
* Accessed via `snaptrude.design.query.referenceLines`.
|
|
14
|
+
*/
|
|
15
|
+
export declare abstract class PluginDesignQueryReferenceLinesApi {
|
|
16
|
+
constructor();
|
|
17
|
+
/**
|
|
18
|
+
* Get properties of a reference line by its ID.
|
|
19
|
+
*
|
|
20
|
+
* Only the properties listed in `properties` are returned — unlisted
|
|
21
|
+
* properties will be `undefined` in the result.
|
|
22
|
+
*
|
|
23
|
+
* @param referenceLineId - The unique reference line ID
|
|
24
|
+
* @param properties - Array of property names to retrieve. See
|
|
25
|
+
* {@linkcode PluginReferenceLineGetProperty}.
|
|
26
|
+
* @returns A partial {@linkcode PluginReferenceLineGetResult} containing only the
|
|
27
|
+
* requested properties
|
|
28
|
+
* @throws If the reference line does not exist
|
|
29
|
+
*
|
|
30
|
+
* @examplePrompt Get the curve geometry of this reference line
|
|
31
|
+
* @examplePrompt Where does this grid line run?
|
|
32
|
+
* @examplePrompt Read the geometry of a guide line by its id
|
|
33
|
+
* @examplePrompt Look up the curve of the selected reference line
|
|
34
|
+
*
|
|
35
|
+
* # Example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const [refLine] = await snaptrude.design.query.listReferenceLines()
|
|
38
|
+
* const result = await snaptrude.design.query.referenceLines.get(refLine, ["curve"])
|
|
39
|
+
* // result.curve is an opaque CurveHandle; read its coordinates via
|
|
40
|
+
* // `snaptrude.core.geom.curve`.
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
abstract get(referenceLineId: string, properties: z.infer<typeof PluginReferenceLineGetProperty>[]): PluginApiReturn<PluginReferenceLineGetResult>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=referenceLines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"referenceLines.d.ts","sourceRoot":"","sources":["../../../../src/api/design/query/referenceLines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAC7B,MAAM,4BAA4B,CAAA;AAEnC;;;;;;;;;;GAUG;AACH,8BAAsB,kCAAkC;;IAGtD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;aACa,GAAG,CACjB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,EAAE,GAC3D,eAAe,CAAC,4BAA4B,CAAC;CACjD"}
|
|
@@ -66,6 +66,52 @@ export declare abstract class PluginDesignQuerySpacesApi {
|
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
68
|
abstract getFootprint(space: ComponentHandle): PluginApiReturn<ContourHandle | null>;
|
|
69
|
+
/**
|
|
70
|
+
* Get the **enclosure** of a space — the floor and ceiling that cap it, the
|
|
71
|
+
* bounding walls around it (with each wall's door/window openings), and the
|
|
72
|
+
* neighbouring spaces it shares a boundary with.
|
|
73
|
+
*
|
|
74
|
+
* **Geometric v1 — best effort.** The engine has no persisted space→surface
|
|
75
|
+
* topology, so this read is derived purely from *plan geometry*: the space
|
|
76
|
+
* footprint is matched against the plan footprints/baselines of the slabs and
|
|
77
|
+
* walls on the same storey. Consequences a caller must account for:
|
|
78
|
+
*
|
|
79
|
+
* - `faceIndices` is **always `[]`**. The triangle→B-rep-face provenance that
|
|
80
|
+
* would populate it is a separate engine capability that does not exist yet;
|
|
81
|
+
* read a surface's full geometry via
|
|
82
|
+
* {@linkcode PluginDesignQueryGeometryApi.getBrep} on its `component` instead.
|
|
83
|
+
* - After heavy edits (move / stretch / boolean) or on imported models the plan
|
|
84
|
+
* match can miss or mis-attribute a surface — treat the result as advisory,
|
|
85
|
+
* not authoritative.
|
|
86
|
+
* - `adjacentSpaces` comes from the same adjacency data as
|
|
87
|
+
* {@linkcode PluginProgramAdjacencyApi.getMatrix} (so the two agree on which
|
|
88
|
+
* spaces neighbour). `sharedEdgeLength` is `0` because that data exposes no
|
|
89
|
+
* edge length, and `sharedSurface` is the common boundary wall only when one
|
|
90
|
+
* is found geometrically (else `null`).
|
|
91
|
+
*
|
|
92
|
+
* Read-only; never mutates the model.
|
|
93
|
+
*
|
|
94
|
+
* @param space - The space (room mass) to read
|
|
95
|
+
* @returns the {@linkcode PluginSpaceEnclosure}, or `null` when `space` is not a
|
|
96
|
+
* space (room mass) or has no extractable plan footprint
|
|
97
|
+
*
|
|
98
|
+
* @examplePrompt What walls, floor and ceiling enclose this room?
|
|
99
|
+
* @examplePrompt Which of this room's walls are external?
|
|
100
|
+
* @examplePrompt List the doors and windows around the selected space
|
|
101
|
+
* @examplePrompt Which spaces are adjacent to this room, and through which wall?
|
|
102
|
+
*
|
|
103
|
+
* # Example
|
|
104
|
+
* ```ts
|
|
105
|
+
* const [space] = await snaptrude.design.query.listSpaces()
|
|
106
|
+
* const enclosure = await snaptrude.design.query.spaces.getEnclosure(space)
|
|
107
|
+
* if (enclosure) {
|
|
108
|
+
* const walls = enclosure.surfaces.filter((s) => s.role === "wall")
|
|
109
|
+
* const external = walls.filter((s) => s.isExternal)
|
|
110
|
+
* console.log(`${walls.length} walls, ${external.length} external`)
|
|
111
|
+
* }
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
abstract getEnclosure(space: ComponentHandle): PluginApiReturn<PluginSpaceEnclosure | null>;
|
|
69
115
|
}
|
|
70
116
|
/**
|
|
71
117
|
* Arguments for {@linkcode PluginDesignQuerySpacesApi.getFootprint}.
|
|
@@ -218,4 +264,131 @@ export declare const PluginDesignQuerySpacesGetResult: z.ZodObject<{
|
|
|
218
264
|
}, z.core.$strip>>>>;
|
|
219
265
|
}, z.core.$strip>;
|
|
220
266
|
export type PluginDesignQuerySpacesGetResult = z.infer<typeof PluginDesignQuerySpacesGetResult>;
|
|
267
|
+
/**
|
|
268
|
+
* Arguments for {@linkcode PluginDesignQuerySpacesApi.getEnclosure}.
|
|
269
|
+
*
|
|
270
|
+
* | Property | Type | Description |
|
|
271
|
+
* |---|---|---|
|
|
272
|
+
* | `space` | {@linkcode ComponentHandle} | The space (room mass) to read |
|
|
273
|
+
*/
|
|
274
|
+
export declare const PluginDesignQuerySpacesGetEnclosureArgs: z.ZodObject<{
|
|
275
|
+
space: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
276
|
+
}, z.core.$strip>;
|
|
277
|
+
export type PluginDesignQuerySpacesGetEnclosureArgs = z.infer<typeof PluginDesignQuerySpacesGetEnclosureArgs>;
|
|
278
|
+
/**
|
|
279
|
+
* The role a bounding surface plays in a {@linkcode PluginSpaceEnclosure}:
|
|
280
|
+
* `"floor"` (slab below), `"ceiling"` (slab/roof above), or `"wall"`.
|
|
281
|
+
*/
|
|
282
|
+
export declare const PluginEnclosureRole: z.ZodEnum<{
|
|
283
|
+
floor: "floor";
|
|
284
|
+
wall: "wall";
|
|
285
|
+
ceiling: "ceiling";
|
|
286
|
+
}>;
|
|
287
|
+
export type PluginEnclosureRole = z.infer<typeof PluginEnclosureRole>;
|
|
288
|
+
/** The kind of opening hosted in a bounding wall. */
|
|
289
|
+
export declare const PluginEnclosureOpeningKind: z.ZodEnum<{
|
|
290
|
+
void: "void";
|
|
291
|
+
door: "door";
|
|
292
|
+
window: "window";
|
|
293
|
+
}>;
|
|
294
|
+
export type PluginEnclosureOpeningKind = z.infer<typeof PluginEnclosureOpeningKind>;
|
|
295
|
+
/**
|
|
296
|
+
* One opening (door / window / void) in a bounding wall.
|
|
297
|
+
*
|
|
298
|
+
* | Property | Type | Description |
|
|
299
|
+
* |---|---|---|
|
|
300
|
+
* | `kind` | {@linkcode PluginEnclosureOpeningKind} | `"door"`, `"window"`, or `"void"` |
|
|
301
|
+
* | `component` | {@linkcode ComponentHandle} | The opening entity |
|
|
302
|
+
*/
|
|
303
|
+
export declare const PluginEnclosureOpening: z.ZodObject<{
|
|
304
|
+
kind: z.ZodEnum<{
|
|
305
|
+
void: "void";
|
|
306
|
+
door: "door";
|
|
307
|
+
window: "window";
|
|
308
|
+
}>;
|
|
309
|
+
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
export type PluginEnclosureOpening = z.infer<typeof PluginEnclosureOpening>;
|
|
312
|
+
/**
|
|
313
|
+
* One bounding surface of a space's enclosure.
|
|
314
|
+
*
|
|
315
|
+
* | Property | Type | Description |
|
|
316
|
+
* |---|---|---|
|
|
317
|
+
* | `role` | {@linkcode PluginEnclosureRole} | `"floor"`, `"ceiling"`, or `"wall"` |
|
|
318
|
+
* | `component` | {@linkcode ComponentHandle} | The wall / slab / roof entity |
|
|
319
|
+
* | `faceIndices` | `number[]` | B-rep face indices facing the space. **Always `[]` in geometric v1** (no triangle→face provenance yet) |
|
|
320
|
+
* | `isExternal` | `boolean` | No space on the other side — for a wall, no other room bounds it; for a floor/ceiling, no room caps the storey below/above |
|
|
321
|
+
* | `openings` | {@linkcode PluginEnclosureOpening}`[]` | Doors/windows/voids in the surface (walls only; `[]` for floor/ceiling in v1) |
|
|
322
|
+
*/
|
|
323
|
+
export declare const PluginEnclosureSurface: z.ZodObject<{
|
|
324
|
+
role: z.ZodEnum<{
|
|
325
|
+
floor: "floor";
|
|
326
|
+
wall: "wall";
|
|
327
|
+
ceiling: "ceiling";
|
|
328
|
+
}>;
|
|
329
|
+
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
330
|
+
faceIndices: z.ZodArray<z.ZodNumber>;
|
|
331
|
+
isExternal: z.ZodBoolean;
|
|
332
|
+
openings: z.ZodArray<z.ZodObject<{
|
|
333
|
+
kind: z.ZodEnum<{
|
|
334
|
+
void: "void";
|
|
335
|
+
door: "door";
|
|
336
|
+
window: "window";
|
|
337
|
+
}>;
|
|
338
|
+
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
339
|
+
}, z.core.$strip>>;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
export type PluginEnclosureSurface = z.infer<typeof PluginEnclosureSurface>;
|
|
342
|
+
/**
|
|
343
|
+
* A space that neighbours the queried space.
|
|
344
|
+
*
|
|
345
|
+
* | Property | Type | Description |
|
|
346
|
+
* |---|---|---|
|
|
347
|
+
* | `space` | {@linkcode ComponentHandle} | The neighbouring space |
|
|
348
|
+
* | `sharedSurface` | {@linkcode ComponentHandle}` \| null` | The common boundary wall when one is found geometrically, else `null` (e.g. an open-plan or non-physical adjacency) |
|
|
349
|
+
* | `sharedEdgeLength` | `number` | Plan-unit length of the shared boundary — **always `0` in geometric v1** (the adjacency data exposes no edge length) |
|
|
350
|
+
*/
|
|
351
|
+
export declare const PluginAdjacentSpace: z.ZodObject<{
|
|
352
|
+
space: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
353
|
+
sharedSurface: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
354
|
+
sharedEdgeLength: z.ZodNumber;
|
|
355
|
+
}, z.core.$strip>;
|
|
356
|
+
export type PluginAdjacentSpace = z.infer<typeof PluginAdjacentSpace>;
|
|
357
|
+
/**
|
|
358
|
+
* Result of {@linkcode PluginDesignQuerySpacesApi.getEnclosure} — the geometric
|
|
359
|
+
* v1 enclosure of a space.
|
|
360
|
+
*
|
|
361
|
+
* | Property | Type | Description |
|
|
362
|
+
* |---|---|---|
|
|
363
|
+
* | `space` | {@linkcode ComponentHandle} | The queried space |
|
|
364
|
+
* | `surfaces` | {@linkcode PluginEnclosureSurface}`[]` | Floor + ceiling + bounding walls, as a flat list (any of the three may be absent when no plan match is found) |
|
|
365
|
+
* | `adjacentSpaces` | {@linkcode PluginAdjacentSpace}`[]` | Neighbouring spaces from the adjacency data (`[]` when adjacency was never computed) |
|
|
366
|
+
*/
|
|
367
|
+
export declare const PluginSpaceEnclosure: z.ZodObject<{
|
|
368
|
+
space: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
369
|
+
surfaces: z.ZodArray<z.ZodObject<{
|
|
370
|
+
role: z.ZodEnum<{
|
|
371
|
+
floor: "floor";
|
|
372
|
+
wall: "wall";
|
|
373
|
+
ceiling: "ceiling";
|
|
374
|
+
}>;
|
|
375
|
+
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
376
|
+
faceIndices: z.ZodArray<z.ZodNumber>;
|
|
377
|
+
isExternal: z.ZodBoolean;
|
|
378
|
+
openings: z.ZodArray<z.ZodObject<{
|
|
379
|
+
kind: z.ZodEnum<{
|
|
380
|
+
void: "void";
|
|
381
|
+
door: "door";
|
|
382
|
+
window: "window";
|
|
383
|
+
}>;
|
|
384
|
+
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
385
|
+
}, z.core.$strip>>;
|
|
386
|
+
}, z.core.$strip>>;
|
|
387
|
+
adjacentSpaces: z.ZodArray<z.ZodObject<{
|
|
388
|
+
space: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
389
|
+
sharedSurface: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
390
|
+
sharedEdgeLength: z.ZodNumber;
|
|
391
|
+
}, z.core.$strip>>;
|
|
392
|
+
}, z.core.$strip>;
|
|
393
|
+
export type PluginSpaceEnclosure = z.infer<typeof PluginSpaceEnclosure>;
|
|
221
394
|
//# 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,8BAA8B,CAAC,YAAY,CAAC,GACvD,eAAe,CAAC,gCAAgC,CAAC;IAEpD;;;;;;;;;;;;;;;;;;;OAmBG;aACa,YAAY,CAC1B,KAAK,EAAE,eAAe,GACrB,eAAe,CAAC,aAAa,GAAG,IAAI,CAAC;
|
|
1
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+30,9 @@ export declare abstract class PluginDesignTransformApi {
|
|
|
30
30
|
* @examplePrompt Translate the furniture block by (10, 0, 5)
|
|
31
31
|
* @examplePrompt Move these masses up one storey
|
|
32
32
|
*
|
|
33
|
+
* @performance Array API — one host round-trip for the whole set. Pass every target in a
|
|
34
|
+
* single call; never loop `design.transform.move` per entity.
|
|
35
|
+
*
|
|
33
36
|
* # Example
|
|
34
37
|
* ```ts
|
|
35
38
|
* const { vec3 } = snaptrude.core.math
|
|
@@ -60,6 +63,9 @@ export declare abstract class PluginDesignTransformApi {
|
|
|
60
63
|
* @examplePrompt Rotate these masses 30 degrees around the vertical axis
|
|
61
64
|
* @examplePrompt Rotate these walls 90 degrees about the origin
|
|
62
65
|
*
|
|
66
|
+
* @performance Array API — one host round-trip for the whole set. Pass every target in a
|
|
67
|
+
* single call; never loop `design.transform.rotate` per entity.
|
|
68
|
+
*
|
|
63
69
|
* # Example
|
|
64
70
|
* ```ts
|
|
65
71
|
* await snaptrude.design.transform.rotate(["space-id"], 90)
|
|
@@ -103,6 +109,9 @@ export declare abstract class PluginDesignTransformApi {
|
|
|
103
109
|
* @examplePrompt Align all the walls to the left edge of this reference wall
|
|
104
110
|
* @examplePrompt Snap the bottom edges of these spaces together
|
|
105
111
|
*
|
|
112
|
+
* @performance Array API — one host round-trip for the whole set. Pass every target in a
|
|
113
|
+
* single call; never loop `design.transform.align` per entity.
|
|
114
|
+
*
|
|
106
115
|
* # Example
|
|
107
116
|
* ```ts
|
|
108
117
|
* const rooms = await snaptrude.design.selection.get()
|
|
@@ -142,6 +151,9 @@ export declare abstract class PluginDesignTransformApi {
|
|
|
142
151
|
* @examplePrompt Flip the selected walls front to back
|
|
143
152
|
* @examplePrompt Create a mirror image of these masses about the z axis
|
|
144
153
|
*
|
|
154
|
+
* @performance Array API — one host round-trip for the whole set. Pass every target in a
|
|
155
|
+
* single call; never loop `design.transform.mirror` per entity.
|
|
156
|
+
*
|
|
145
157
|
* # Example
|
|
146
158
|
* ```ts
|
|
147
159
|
* const rooms = await snaptrude.design.selection.get()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/transform/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAElD;;;;;;;;;;GAUG;AACH,8BAAsB,wBAAwB;;IAG5C
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/transform/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAElD;;;;;;;;;;GAUG;AACH,8BAAsB,wBAAwB;;IAG5C;;;;;;;;;;;;;;;;;;;;;;;OAuBG;aACa,IAAI,CAClB,UAAU,EAAE,eAAe,EAAE,EAC7B,YAAY,EAAE,UAAU,EACxB,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,OAAO,CAAC;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAE,GACxD,eAAe,CAAC,wBAAwB,CAAC;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;aACa,MAAM,CACpB,UAAU,EAAE,eAAe,EAAE,EAC7B,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,UAAU,CAAC;QAAC,KAAK,CAAC,EAAE,UAAU,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;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AsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
|
|
@@ -3,6 +3,7 @@ import { PluginApiReturn } from "../../../types";
|
|
|
3
3
|
import { ComponentHandle } from "../../../handles";
|
|
4
4
|
import { PluginSpaceUpdateResult } from "../../entity/space";
|
|
5
5
|
import { PluginDesignChangeResult } from "../lock";
|
|
6
|
+
import { PluginBuildableEnvelopePolygonVertex, PluginBuildableEnvelopeSetbackTier, PluginBuildableEnvelopeVerticalCap, PluginBuildableEnvelopeUpdateResult } from "../../entity/buildableEnvelope";
|
|
6
7
|
/**
|
|
7
8
|
* Sparse property updates for a space. Only provided fields change.
|
|
8
9
|
*
|
|
@@ -340,6 +341,9 @@ export declare abstract class PluginDesignUpdateApi {
|
|
|
340
341
|
* @examplePrompt Move this space into the Circulation department
|
|
341
342
|
* @examplePrompt Exclude this room from the area calculations
|
|
342
343
|
*
|
|
344
|
+
* @performance For MORE THAN ONE space, call `design.update.spaces(items[])` — the whole
|
|
345
|
+
* batch is one host round-trip. Looping this single-space updater is N round-trips.
|
|
346
|
+
*
|
|
343
347
|
* # Example
|
|
344
348
|
* ```ts
|
|
345
349
|
* await snaptrude.design.update.space("space-id", { properties: { room_type: "Office" } })
|
|
@@ -366,6 +370,9 @@ export declare abstract class PluginDesignUpdateApi {
|
|
|
366
370
|
* @examplePrompt Bulk-assign these spaces to the Service department
|
|
367
371
|
* @examplePrompt Mark all of these rooms as excluded from area in one update
|
|
368
372
|
*
|
|
373
|
+
* @performance Bulk update — the whole batch is ONE host round-trip. Prefer over looping
|
|
374
|
+
* `design.update.space`: build the `items[]` array first, then make one call.
|
|
375
|
+
*
|
|
369
376
|
* # Example
|
|
370
377
|
* ```ts
|
|
371
378
|
* // Re-label every selected room and mark it NET area — one undoable bulk update
|
|
@@ -650,7 +657,7 @@ export declare abstract class PluginDesignUpdateApi {
|
|
|
650
657
|
* `storey` is an integer storey number in the `entity.story` convention
|
|
651
658
|
* (`1` is the ground storey, `-1` the first basement; `0` does not exist)
|
|
652
659
|
* and **must already exist** in each component's building — this call never
|
|
653
|
-
* creates storeys (use `
|
|
660
|
+
* creates storeys (use `core.storeys.create` first). Components already on
|
|
654
661
|
* the target storey are skipped (no-op) and are not echoed in `affected`.
|
|
655
662
|
*
|
|
656
663
|
* Throws when the target storey does not exist, when any component is
|
|
@@ -675,5 +682,48 @@ export declare abstract class PluginDesignUpdateApi {
|
|
|
675
682
|
* ```
|
|
676
683
|
*/
|
|
677
684
|
abstract setStorey(components: ComponentHandle[], storey: number): PluginApiReturn<PluginDesignChangeResult>;
|
|
685
|
+
/**
|
|
686
|
+
* Update an existing parametric buildable envelope — regenerate the zoning
|
|
687
|
+
* volume from a revised site polygon, setbacks, vertical cap, or FAR and
|
|
688
|
+
* lot-coverage limits, keeping the same envelope id. Canonical home of the
|
|
689
|
+
* update formerly at `entity.buildableEnvelope.update` (now deprecated).
|
|
690
|
+
*
|
|
691
|
+
* @param buildableEnvelopeId - Existing envelope ID to update; non-empty and
|
|
692
|
+
* must match an existing envelope on the canvas.
|
|
693
|
+
* @param sitePolygon - Site polygon vertices in `lengthUnit`; minimum 3 vertices.
|
|
694
|
+
* @param lengthUnit - Unit used by all length fields (`"ft" | "m"`).
|
|
695
|
+
* @param setbacks - Setback profile, ground tier first; minimum 1 tier.
|
|
696
|
+
* @param verticalCap - Maximum height or floor count.
|
|
697
|
+
* @param floorToFloor - Required floor-to-floor height in `lengthUnit`.
|
|
698
|
+
* @param farRatio - Optional FAR value, positive when provided.
|
|
699
|
+
* @param lotCoverageMaxPct - Optional lot coverage cap, `0..100`.
|
|
700
|
+
* @returns A {@linkcode PluginBuildableEnvelopeUpdateResult} with the
|
|
701
|
+
* `buildableEnvelopeId` of the updated envelope.
|
|
702
|
+
* @throws If validation fails, the envelope does not exist, or generation
|
|
703
|
+
* produces no renderable geometry.
|
|
704
|
+
*
|
|
705
|
+
* @examplePrompt Change the envelope's height limit to 175 feet
|
|
706
|
+
* @examplePrompt Update the setbacks on the buildable envelope
|
|
707
|
+
* @examplePrompt Regenerate the zoning envelope with a new site boundary
|
|
708
|
+
* @examplePrompt Increase the FAR on the buildable volume
|
|
709
|
+
*
|
|
710
|
+
* # Example
|
|
711
|
+
* ```ts
|
|
712
|
+
* const { buildableEnvelopeId } = await snaptrude.design.update.buildableEnvelope(
|
|
713
|
+
* existingId,
|
|
714
|
+
* [
|
|
715
|
+
* { x: 0, z: 0 },
|
|
716
|
+
* { x: 100, z: 0 },
|
|
717
|
+
* { x: 100, z: 80 },
|
|
718
|
+
* { x: 0, z: 80 },
|
|
719
|
+
* ],
|
|
720
|
+
* "ft",
|
|
721
|
+
* [{ aboveHeight: 0, front: 10, side: 5, rear: 10 }],
|
|
722
|
+
* { kind: "max_height", maxHeight: 175 },
|
|
723
|
+
* 12,
|
|
724
|
+
* )
|
|
725
|
+
* ```
|
|
726
|
+
*/
|
|
727
|
+
abstract buildableEnvelope(buildableEnvelopeId: string, sitePolygon: PluginBuildableEnvelopePolygonVertex[], lengthUnit: "ft" | "m", setbacks: PluginBuildableEnvelopeSetbackTier[], verticalCap: PluginBuildableEnvelopeVerticalCap, floorToFloor: number, farRatio?: number, lotCoverageMaxPct?: number): PluginApiReturn<PluginBuildableEnvelopeUpdateResult>;
|
|
678
728
|
}
|
|
679
729
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/update/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAiB,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAKL,uBAAuB,EACxB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","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;;;;;;;;;;;;;;;;;;;OAuBG;aACa,OAAO,CACrB,SAAS,EAAE,eAAe,EAC1B,OAAO,EAAE,iBAAiB,GACzB,eAAe,CAAC,wBAAwB,CAAC;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;aACa,YAAY,CAC1B,SAAS,EAAE,eAAe,EAC1B,SAAS,EAAE,MAAM,GAChB,eAAe,CAAC,wBAAwB,CAAC;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;aACa,aAAa,CAC3B,SAAS,EAAE,eAAe,EAC1B,MAAM,EAAE,MAAM,GACb,eAAe,CAAC,wBAAwB,CAAC;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;aACa,SAAS,CACvB,UAAU,EAAE,eAAe,EAAE,EAC7B,MAAM,EAAE,MAAM,GACb,eAAe,CAAC,wBAAwB,CAAC;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;aACa,iBAAiB,CAC/B,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,oCAAoC,EAAE,EACnD,UAAU,EAAE,IAAI,GAAG,GAAG,EACtB,QAAQ,EAAE,kCAAkC,EAAE,EAC9C,WAAW,EAAE,kCAAkC,EAC/C,YAAY,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,MAAM,EACjB,iBAAiB,CAAC,EAAE,MAAM,GACzB,eAAe,CAAC,mCAAmC,CAAC;CACxD"}
|
|
@@ -52,6 +52,8 @@ export declare abstract class PluginBuildableEnvelopeApi {
|
|
|
52
52
|
* 12,
|
|
53
53
|
* )
|
|
54
54
|
* ```
|
|
55
|
+
*
|
|
56
|
+
* @deprecated Use `design.create.buildableEnvelope`
|
|
55
57
|
*/
|
|
56
58
|
abstract create(sitePolygon: PluginBuildableEnvelopePolygonVertex[], lengthUnit: "ft" | "m", setbacks: PluginBuildableEnvelopeSetbackTier[], verticalCap: PluginBuildableEnvelopeVerticalCap, floorToFloor: number, farRatio?: number, lotCoverageMaxPct?: number): PluginApiReturn<PluginBuildableEnvelopeCreateResult>;
|
|
57
59
|
/**
|
|
@@ -95,6 +97,8 @@ export declare abstract class PluginBuildableEnvelopeApi {
|
|
|
95
97
|
* 12,
|
|
96
98
|
* )
|
|
97
99
|
* ```
|
|
100
|
+
*
|
|
101
|
+
* @deprecated Use `design.update.buildableEnvelope`
|
|
98
102
|
*/
|
|
99
103
|
abstract update(buildableEnvelopeId: string, sitePolygon: PluginBuildableEnvelopePolygonVertex[], lengthUnit: "ft" | "m", setbacks: PluginBuildableEnvelopeSetbackTier[], verticalCap: PluginBuildableEnvelopeVerticalCap, floorToFloor: number, farRatio?: number, lotCoverageMaxPct?: number): PluginApiReturn<PluginBuildableEnvelopeUpdateResult>;
|
|
100
104
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildableEnvelope.d.ts","sourceRoot":"","sources":["../../../src/api/entity/buildableEnvelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;;;GASG;AACH,8BAAsB,0BAA0B;;IAG9C
|
|
1
|
+
{"version":3,"file":"buildableEnvelope.d.ts","sourceRoot":"","sources":["../../../src/api/entity/buildableEnvelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;;;GASG;AACH,8BAAsB,0BAA0B;;IAG9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;aACa,MAAM,CACpB,WAAW,EAAE,oCAAoC,EAAE,EACnD,UAAU,EAAE,IAAI,GAAG,GAAG,EACtB,QAAQ,EAAE,kCAAkC,EAAE,EAC9C,WAAW,EAAE,kCAAkC,EAC/C,YAAY,EAAE,MAAM,EACpB,QA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