@snaptrude/plugin-core 0.7.1 → 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.
Files changed (193) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/api-manifest.full.json +7703 -0
  3. package/api-manifest.json +2946 -259
  4. package/dist/api/analysis/daylight.d.ts +603 -0
  5. package/dist/api/analysis/daylight.d.ts.map +1 -0
  6. package/dist/api/analysis/heatmaps.d.ts +438 -14
  7. package/dist/api/analysis/heatmaps.d.ts.map +1 -1
  8. package/dist/api/analysis/index.d.ts +15 -0
  9. package/dist/api/analysis/index.d.ts.map +1 -1
  10. package/dist/api/analysis/solar.d.ts +249 -0
  11. package/dist/api/analysis/solar.d.ts.map +1 -0
  12. package/dist/api/analysis/weather.d.ts +193 -0
  13. package/dist/api/analysis/weather.d.ts.map +1 -0
  14. package/dist/api/core/camera/index.d.ts +245 -0
  15. package/dist/api/core/camera/index.d.ts.map +1 -0
  16. package/dist/api/core/comment/index.d.ts +105 -2
  17. package/dist/api/core/comment/index.d.ts.map +1 -1
  18. package/dist/api/core/geom/create/index.d.ts +331 -14
  19. package/dist/api/core/geom/create/index.d.ts.map +1 -1
  20. package/dist/api/core/geom/delete/index.d.ts +8 -2
  21. package/dist/api/core/geom/delete/index.d.ts.map +1 -1
  22. package/dist/api/core/geom/query/arc.d.ts +5 -5
  23. package/dist/api/core/geom/query/brep.d.ts +18 -18
  24. package/dist/api/core/geom/query/circle.d.ts +18 -18
  25. package/dist/api/core/geom/query/contour.d.ts +20 -20
  26. package/dist/api/core/geom/query/curve.d.ts +49 -49
  27. package/dist/api/core/geom/query/edge.d.ts +5 -5
  28. package/dist/api/core/geom/query/face.d.ts +16 -16
  29. package/dist/api/core/geom/query/halfedge.d.ts +8 -8
  30. package/dist/api/core/geom/query/profile.d.ts +19 -19
  31. package/dist/api/core/geom/query/vertex.d.ts +8 -8
  32. package/dist/api/core/geom/update/contour.d.ts +14 -14
  33. package/dist/api/core/geom/update/curve.d.ts +7 -7
  34. package/dist/api/core/geom/update/profile.d.ts +16 -16
  35. package/dist/api/core/handles/index.d.ts +210 -0
  36. package/dist/api/core/handles/index.d.ts.map +1 -0
  37. package/dist/api/core/index.d.ts +24 -0
  38. package/dist/api/core/index.d.ts.map +1 -1
  39. package/dist/api/core/io/export/index.d.ts +134 -0
  40. package/dist/api/core/io/export/index.d.ts.map +1 -0
  41. package/dist/api/core/io/import/index.d.ts +62 -1
  42. package/dist/api/core/io/import/index.d.ts.map +1 -1
  43. package/dist/api/core/io/index.d.ts +5 -0
  44. package/dist/api/core/io/index.d.ts.map +1 -1
  45. package/dist/api/core/layers.d.ts +7 -7
  46. package/dist/api/core/mode/index.d.ts +99 -0
  47. package/dist/api/core/mode/index.d.ts.map +1 -0
  48. package/dist/api/core/proposals/index.d.ts +65 -9
  49. package/dist/api/core/proposals/index.d.ts.map +1 -1
  50. package/dist/api/core/storeys/index.d.ts +251 -0
  51. package/dist/api/core/storeys/index.d.ts.map +1 -0
  52. package/dist/api/core/tags.d.ts +24 -0
  53. package/dist/api/core/tags.d.ts.map +1 -1
  54. package/dist/api/core/user.d.ts +44 -0
  55. package/dist/api/core/user.d.ts.map +1 -0
  56. package/dist/api/core/zoom/index.d.ts +4 -0
  57. package/dist/api/core/zoom/index.d.ts.map +1 -1
  58. package/dist/api/design/boolean/index.d.ts +4 -4
  59. package/dist/api/design/create/index.d.ts +253 -47
  60. package/dist/api/design/create/index.d.ts.map +1 -1
  61. package/dist/api/design/delete/index.d.ts +3 -0
  62. package/dist/api/design/delete/index.d.ts.map +1 -1
  63. package/dist/api/design/doors/index.d.ts +36 -0
  64. package/dist/api/design/doors/index.d.ts.map +1 -1
  65. package/dist/api/design/edit/index.d.ts +1 -1
  66. package/dist/api/design/erase/index.d.ts +2 -2
  67. package/dist/api/design/furniture/index.d.ts +114 -3
  68. package/dist/api/design/furniture/index.d.ts.map +1 -1
  69. package/dist/api/design/index.d.ts +10 -0
  70. package/dist/api/design/index.d.ts.map +1 -1
  71. package/dist/api/design/materials/index.d.ts +111 -14
  72. package/dist/api/design/materials/index.d.ts.map +1 -1
  73. package/dist/api/design/query/geometry/index.d.ts +112 -0
  74. package/dist/api/design/query/geometry/index.d.ts.map +1 -1
  75. package/dist/api/design/query/index.d.ts +35 -1
  76. package/dist/api/design/query/index.d.ts.map +1 -1
  77. package/dist/api/design/query/referenceLines.d.ts +45 -0
  78. package/dist/api/design/query/referenceLines.d.ts.map +1 -0
  79. package/dist/api/design/query/spaces.d.ts +178 -5
  80. package/dist/api/design/query/spaces.d.ts.map +1 -1
  81. package/dist/api/design/transform/index.d.ts +95 -14
  82. package/dist/api/design/transform/index.d.ts.map +1 -1
  83. package/dist/api/design/types/index.d.ts +181 -0
  84. package/dist/api/design/types/index.d.ts.map +1 -0
  85. package/dist/api/design/update/index.d.ts +385 -2
  86. package/dist/api/design/update/index.d.ts.map +1 -1
  87. package/dist/api/design/visibility.d.ts +98 -0
  88. package/dist/api/design/visibility.d.ts.map +1 -0
  89. package/dist/api/entity/buildableEnvelope.d.ts +4 -0
  90. package/dist/api/entity/buildableEnvelope.d.ts.map +1 -1
  91. package/dist/api/entity/referenceLine.d.ts +10 -2
  92. package/dist/api/entity/referenceLine.d.ts.map +1 -1
  93. package/dist/api/entity/space.d.ts +19 -19
  94. package/dist/api/entity/story.d.ts +148 -15
  95. package/dist/api/entity/story.d.ts.map +1 -1
  96. package/dist/api/index.d.ts +5 -0
  97. package/dist/api/index.d.ts.map +1 -1
  98. package/dist/api/presentation/annotate.d.ts +448 -0
  99. package/dist/api/presentation/annotate.d.ts.map +1 -0
  100. package/dist/api/presentation/diagrams.d.ts +49 -8
  101. package/dist/api/presentation/diagrams.d.ts.map +1 -1
  102. package/dist/api/presentation/export.d.ts +108 -0
  103. package/dist/api/presentation/export.d.ts.map +1 -0
  104. package/dist/api/presentation/import.d.ts +6 -0
  105. package/dist/api/presentation/import.d.ts.map +1 -1
  106. package/dist/api/presentation/index.d.ts +47 -0
  107. package/dist/api/presentation/index.d.ts.map +1 -1
  108. package/dist/api/presentation/placedViews.d.ts +370 -0
  109. package/dist/api/presentation/placedViews.d.ts.map +1 -0
  110. package/dist/api/presentation/shapes.d.ts +481 -0
  111. package/dist/api/presentation/shapes.d.ts.map +1 -0
  112. package/dist/api/presentation/sheets.d.ts +410 -13
  113. package/dist/api/presentation/sheets.d.ts.map +1 -1
  114. package/dist/api/presentation/views.d.ts +165 -10
  115. package/dist/api/presentation/views.d.ts.map +1 -1
  116. package/dist/api/program/areas.d.ts +63 -3
  117. package/dist/api/program/areas.d.ts.map +1 -1
  118. package/dist/api/program/cores.d.ts +3 -99
  119. package/dist/api/program/cores.d.ts.map +1 -1
  120. package/dist/api/program/index.d.ts +2 -2
  121. package/dist/api/program/index.d.ts.map +1 -1
  122. package/dist/api/program/layout.d.ts +172 -12
  123. package/dist/api/program/layout.d.ts.map +1 -1
  124. package/dist/api/program/site.d.ts +105 -8
  125. package/dist/api/program/site.d.ts.map +1 -1
  126. package/dist/api/program/spreadsheet.d.ts +365 -41
  127. package/dist/api/program/spreadsheet.d.ts.map +1 -1
  128. package/dist/api/workspace/index.d.ts +460 -0
  129. package/dist/api/workspace/index.d.ts.map +1 -0
  130. package/dist/handles.d.ts +64 -25
  131. package/dist/handles.d.ts.map +1 -1
  132. package/dist/index.cjs +3210 -1671
  133. package/dist/index.cjs.map +1 -1
  134. package/dist/index.js +3008 -1666
  135. package/dist/index.js.map +1 -1
  136. package/package.json +3 -2
  137. package/scripts/generate-manifest.mjs +45 -0
  138. package/src/api/analysis/daylight.ts +470 -0
  139. package/src/api/analysis/heatmaps.ts +444 -17
  140. package/src/api/analysis/index.ts +15 -0
  141. package/src/api/analysis/solar.ts +237 -0
  142. package/src/api/analysis/weather.ts +179 -0
  143. package/src/api/core/camera/index.ts +251 -0
  144. package/src/api/core/comment/index.ts +120 -2
  145. package/src/api/core/geom/create/index.ts +344 -1
  146. package/src/api/core/geom/delete/index.ts +6 -0
  147. package/src/api/core/handles/index.ts +233 -0
  148. package/src/api/core/index.ts +24 -0
  149. package/src/api/core/io/export/index.ts +126 -0
  150. package/src/api/core/io/import/index.ts +64 -0
  151. package/src/api/core/io/index.ts +5 -0
  152. package/src/api/core/mode/index.ts +96 -0
  153. package/src/api/core/proposals/index.ts +71 -11
  154. package/src/api/core/storeys/index.ts +279 -0
  155. package/src/api/core/tags.ts +27 -0
  156. package/src/api/core/user.ts +46 -0
  157. package/src/api/core/zoom/index.ts +4 -0
  158. package/src/api/design/create/index.ts +303 -36
  159. package/src/api/design/delete/index.ts +3 -0
  160. package/src/api/design/doors/index.ts +40 -0
  161. package/src/api/design/furniture/index.ts +127 -3
  162. package/src/api/design/index.ts +10 -0
  163. package/src/api/design/materials/index.ts +157 -30
  164. package/src/api/design/query/geometry/index.ts +125 -3
  165. package/src/api/design/query/index.ts +37 -7
  166. package/src/api/design/query/referenceLines.ts +52 -0
  167. package/src/api/design/query/spaces.ts +143 -0
  168. package/src/api/design/transform/index.ts +101 -12
  169. package/src/api/design/types/index.ts +156 -0
  170. package/src/api/design/update/index.ts +467 -6
  171. package/src/api/design/visibility.ts +109 -0
  172. package/src/api/entity/buildableEnvelope.ts +4 -0
  173. package/src/api/entity/referenceLine.ts +8 -0
  174. package/src/api/entity/story.ts +161 -15
  175. package/src/api/index.ts +5 -0
  176. package/src/api/presentation/annotate.ts +360 -0
  177. package/src/api/presentation/diagrams.ts +53 -8
  178. package/src/api/presentation/export.ts +108 -0
  179. package/src/api/presentation/import.ts +6 -0
  180. package/src/api/presentation/index.ts +55 -0
  181. package/src/api/presentation/placedViews.ts +363 -0
  182. package/src/api/presentation/shapes.ts +274 -0
  183. package/src/api/presentation/sheets.ts +346 -13
  184. package/src/api/presentation/views.ts +164 -12
  185. package/src/api/program/areas.ts +57 -6
  186. package/src/api/program/cores.ts +3 -91
  187. package/src/api/program/index.ts +2 -2
  188. package/src/api/program/layout.ts +182 -12
  189. package/src/api/program/site.ts +106 -8
  190. package/src/api/program/spreadsheet.ts +376 -35
  191. package/src/api/workspace/index.ts +516 -0
  192. package/src/handles.ts +77 -13
  193. package/tsconfig.json +7 -2
@@ -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;;;;;;;;;;;;;;GAcG;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;CACvC;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"}
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,aAA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A"}
@@ -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
@@ -280,6 +281,7 @@ export type PluginDesignQueryComponentsArgs = z.infer<typeof PluginDesignQueryCo
280
281
  * | `spaceType` | {@linkcode PluginSpaceType} | Space-type (spaces only) |
281
282
  * | `areaClass` | {@linkcode PluginAreaClass} | Area classification (spaces only) |
282
283
  * | `departmentId` | `string` | Department (masses only) |
284
+ * | `buildingType` | `string` | Assigned building type NAME (walls / slabs / floors / roofs / ceilings only) — the Object Properties panel's Wall/Slab/Floor/Roof/Ceiling Type dropdown value, matching the names from `design.types.list(kind)` |
283
285
  * | `isLocked` | `boolean` | Lock flag |
284
286
  * | `isHidden` | `boolean` | User-hidden flag |
285
287
  * | `isSelected` | `boolean` | Current selection state |
@@ -330,6 +332,7 @@ export declare const PluginEntityProperties: z.ZodObject<{
330
332
  EXCLUDED: "EXCLUDED";
331
333
  }>>;
332
334
  departmentId: z.ZodOptional<z.ZodString>;
335
+ buildingType: z.ZodOptional<z.ZodString>;
333
336
  isLocked: z.ZodOptional<z.ZodBoolean>;
334
337
  isHidden: z.ZodOptional<z.ZodBoolean>;
335
338
  isSelected: z.ZodOptional<z.ZodBoolean>;
@@ -357,17 +360,28 @@ export type PluginEntityProperties = z.infer<typeof PluginEntityProperties>;
357
360
  * entity's type computes them (area: floors/masses/slabs/roofs/beams/columns;
358
361
  * volume: all; length: walls/beams).
359
362
  *
363
+ * `thickness` and `height` are the Object Properties panel's dimension reads
364
+ * (the same engine source `design.update.wall` / `design.update.slab` etc.
365
+ * write through), in engine units. `thickness`: walls (the plan thickness —
366
+ * present only for straight orthogonal walls, exactly when the panel shows it)
367
+ * and slabs/floors/roofs/ceilings (the vertical extent the panel calls
368
+ * Thickness). `height`: walls only.
369
+ *
360
370
  * | Property | Type | Description |
361
371
  * |---|---|---|
362
372
  * | `area` | `number`? | Bottom-face area |
363
373
  * | `volume` | `number`? | Solid volume |
364
374
  * | `length` | `number`? | Running length (linear elements) |
375
+ * | `thickness` | `number`? | Panel Thickness — walls (straight orthogonal only) and the slab family |
376
+ * | `height` | `number`? | Panel Height — walls only |
365
377
  * | `boundingBox` | {@linkcode BBoxComponents} | World-space AABB (always present) |
366
378
  */
367
379
  export declare const PluginEntityMeasurements: z.ZodObject<{
368
380
  area: z.ZodOptional<z.ZodNumber>;
369
381
  volume: z.ZodOptional<z.ZodNumber>;
370
382
  length: z.ZodOptional<z.ZodNumber>;
383
+ thickness: z.ZodOptional<z.ZodNumber>;
384
+ height: z.ZodOptional<z.ZodNumber>;
371
385
  boundingBox: z.ZodObject<{
372
386
  min: z.ZodObject<{
373
387
  x: z.ZodNumber;
@@ -483,6 +497,8 @@ export declare abstract class PluginDesignQueryApi {
483
497
  abstract geometry: PluginDesignQueryGeometryApi;
484
498
  /** Space-specific reads (footprint, …). See {@linkcode PluginDesignQuerySpacesApi}. */
485
499
  abstract spaces: PluginDesignQuerySpacesApi;
500
+ /** Reference-line-specific reads. See {@linkcode PluginDesignQueryReferenceLinesApi}. */
501
+ abstract referenceLines: PluginDesignQueryReferenceLinesApi;
486
502
  constructor();
487
503
  /**
488
504
  * List **all** BIM entities in the project matching the filter.
@@ -1011,13 +1027,16 @@ export declare abstract class PluginDesignQueryApi {
1011
1027
  * Read an entity's common properties as a {@linkcode PluginEntityProperties}
1012
1028
  * record (only applicable fields are present). For spaces/masses this includes
1013
1029
  * `adjacency` — the per-entity adjacency read (bulk form:
1014
- * `program.adjacency.getMatrix`).
1030
+ * `program.adjacency.getMatrix`). For walls and the slab family (slab / floor
1031
+ * / roof / ceiling) this includes `buildingType` — the assigned building type
1032
+ * NAME the panel's type dropdown shows, matching `design.types.list(kind)`.
1015
1033
  *
1016
1034
  * @param component - the entity's {@linkcode ComponentHandle}
1017
1035
  * @returns the property record
1018
1036
  *
1019
1037
  * @examplePrompt Show me all the details of the selected object
1020
1038
  * @examplePrompt What storey is this wall on?
1039
+ * @examplePrompt Which wall type is assigned to this wall?
1021
1040
  * @examplePrompt Which department does this room belong to?
1022
1041
  * @examplePrompt Is this element locked or hidden?
1023
1042
  * @examplePrompt Get the adjacencies of this space
@@ -1044,11 +1063,20 @@ export declare abstract class PluginDesignQueryApi {
1044
1063
  * Measure an entity — read its area, volume, and/or running length (whichever
1045
1064
  * its type supports) together with its world-space bounding box in one call.
1046
1065
  *
1066
+ * For walls and the slab family this also carries the Object Properties
1067
+ * panel's dimension reads in engine units: `thickness` (walls — straight
1068
+ * orthogonal only, exactly when the panel shows it; slabs / floors / roofs /
1069
+ * ceilings — the vertical extent the panel calls Thickness) and `height`
1070
+ * (walls). These are the read side of `design.update.wall` /
1071
+ * `design.update.slab` / `.floor` / `.roof` / `.ceiling`.
1072
+ *
1047
1073
  * @param component - the entity's {@linkcode ComponentHandle}
1048
1074
  * @returns a {@linkcode PluginEntityMeasurements}, or `null` if the entity is gone
1049
1075
  *
1050
1076
  * @examplePrompt What's the area of this room?
1051
1077
  * @examplePrompt How long is the selected wall?
1078
+ * @examplePrompt How thick is this wall?
1079
+ * @examplePrompt Get the thickness of the slab on level 2
1052
1080
  * @examplePrompt Get the volume of this mass
1053
1081
  * @examplePrompt Give me the dimensions of the selected element
1054
1082
  * @examplePrompt What's the floor area of the kitchen?
@@ -1058,6 +1086,11 @@ export declare abstract class PluginDesignQueryApi {
1058
1086
  * const [space] = await snaptrude.design.query.listSpaces()
1059
1087
  * const m = await snaptrude.design.query.measure(space)
1060
1088
  * console.log(m?.area, m?.volume)
1089
+ *
1090
+ * // wall dimensions — the panel's Thickness / Height, in engine units
1091
+ * const [wall] = await snaptrude.design.query.listWalls()
1092
+ * const wm = await snaptrude.design.query.measure(wall)
1093
+ * console.log(wm?.thickness, wm?.height)
1061
1094
  * ```
1062
1095
  */
1063
1096
  abstract measure(component: ComponentHandle): PluginApiReturn<PluginEntityMeasurements | null>;
@@ -1118,4 +1151,5 @@ export declare abstract class PluginDesignQueryApi {
1118
1151
  }
1119
1152
  export * from "./geometry";
1120
1153
  export * from "./spaces";
1154
+ export * from "./referenceLines";
1121
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;AAMrD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;EAkB3B,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAM/D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe7B,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE;;;GAGG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE1C,CAAA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B,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}.
@@ -87,8 +133,8 @@ export type PluginDesignQueryGetFootprintArgs = z.infer<typeof PluginDesignQuery
87
133
  export declare const PluginDesignQuerySpacesGetProperty: z.ZodEnum<{
88
134
  profile: "profile";
89
135
  type: "type";
90
- position: "position";
91
136
  id: "id";
137
+ position: "position";
92
138
  name: "name";
93
139
  storey: "storey";
94
140
  height: "height";
@@ -123,8 +169,8 @@ export declare const PluginDesignQuerySpacesGetArgs: z.ZodObject<{
123
169
  properties: z.ZodArray<z.ZodEnum<{
124
170
  profile: "profile";
125
171
  type: "type";
126
- position: "position";
127
172
  id: "id";
173
+ position: "position";
128
174
  name: "name";
129
175
  storey: "storey";
130
176
  height: "height";
@@ -153,19 +199,19 @@ export type PluginDesignQuerySpacesGetArgs = z.infer<typeof PluginDesignQuerySpa
153
199
  * requested properties are present.
154
200
  */
155
201
  export declare const PluginDesignQuerySpacesGetResult: z.ZodObject<{
156
- profile: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"arc">, string>>]>>>;
202
+ 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>>]>>>;
157
203
  type: z.ZodOptional<z.ZodString>;
204
+ id: z.ZodOptional<z.ZodString>;
158
205
  position: z.ZodOptional<z.ZodObject<{
159
206
  x: z.ZodNumber;
160
207
  y: z.ZodNumber;
161
208
  z: z.ZodNumber;
162
209
  }, z.core.$strip>>;
163
- id: z.ZodOptional<z.ZodString>;
164
210
  name: z.ZodOptional<z.ZodString>;
165
211
  storey: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
166
212
  height: z.ZodOptional<z.ZodNumber>;
167
213
  depth: z.ZodOptional<z.ZodNumber>;
168
- innerProfiles: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"arc">, string>>]>>>>;
214
+ 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>>]>>>>;
169
215
  room_type: z.ZodOptional<z.ZodString>;
170
216
  area: z.ZodOptional<z.ZodNumber>;
171
217
  breadth: z.ZodOptional<z.ZodNumber>;
@@ -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,G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