@snaptrude/plugin-core 0.3.0 → 0.6.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 (302) hide show
  1. package/AGENTS.md +130 -48
  2. package/CHANGELOG.md +163 -0
  3. package/api-manifest.full.json +5600 -0
  4. package/api-manifest.json +5502 -0
  5. package/dist/api/analysis/heatmaps.d.ts +234 -0
  6. package/dist/api/analysis/heatmaps.d.ts.map +1 -0
  7. package/dist/api/analysis/illuminance.d.ts +145 -0
  8. package/dist/api/analysis/illuminance.d.ts.map +1 -0
  9. package/dist/api/analysis/index.d.ts +44 -0
  10. package/dist/api/analysis/index.d.ts.map +1 -0
  11. package/dist/api/analysis/shadows.d.ts +165 -0
  12. package/dist/api/analysis/shadows.d.ts.map +1 -0
  13. package/dist/api/analysis/sunlightHours.d.ts +208 -0
  14. package/dist/api/analysis/sunlightHours.d.ts.map +1 -0
  15. package/dist/api/analysis/sunpath.d.ts +80 -0
  16. package/dist/api/analysis/sunpath.d.ts.map +1 -0
  17. package/dist/api/core/buildings.d.ts +427 -0
  18. package/dist/api/core/buildings.d.ts.map +1 -0
  19. package/dist/api/core/comment/index.d.ts +230 -0
  20. package/dist/api/core/comment/index.d.ts.map +1 -0
  21. package/dist/api/core/geom/create/index.d.ts +247 -0
  22. package/dist/api/core/geom/create/index.d.ts.map +1 -0
  23. package/dist/api/core/geom/delete/index.d.ts +72 -0
  24. package/dist/api/core/geom/delete/index.d.ts.map +1 -0
  25. package/dist/api/core/geom/index.d.ts +24 -23
  26. package/dist/api/core/geom/index.d.ts.map +1 -1
  27. package/dist/api/core/geom/query/arc.d.ts +169 -0
  28. package/dist/api/core/geom/query/arc.d.ts.map +1 -0
  29. package/dist/api/core/geom/query/brep.d.ts +402 -0
  30. package/dist/api/core/geom/query/brep.d.ts.map +1 -0
  31. package/dist/api/core/geom/query/circle.d.ts +378 -0
  32. package/dist/api/core/geom/query/circle.d.ts.map +1 -0
  33. package/dist/api/core/geom/query/contour.d.ts +450 -0
  34. package/dist/api/core/geom/query/contour.d.ts.map +1 -0
  35. package/dist/api/core/geom/query/curve.d.ts +918 -0
  36. package/dist/api/core/geom/query/curve.d.ts.map +1 -0
  37. package/dist/api/core/geom/query/edge.d.ts +128 -0
  38. package/dist/api/core/geom/query/edge.d.ts.map +1 -0
  39. package/dist/api/core/geom/query/face.d.ts +363 -0
  40. package/dist/api/core/geom/query/face.d.ts.map +1 -0
  41. package/dist/api/core/geom/query/halfedge.d.ts +206 -0
  42. package/dist/api/core/geom/query/halfedge.d.ts.map +1 -0
  43. package/dist/api/core/geom/query/index.d.ts +61 -0
  44. package/dist/api/core/geom/query/index.d.ts.map +1 -0
  45. package/dist/api/core/geom/query/profile.d.ts +410 -0
  46. package/dist/api/core/geom/query/profile.d.ts.map +1 -0
  47. package/dist/api/core/geom/query/vertex.d.ts +187 -0
  48. package/dist/api/core/geom/query/vertex.d.ts.map +1 -0
  49. package/dist/api/core/geom/update/contour.d.ts +272 -0
  50. package/dist/api/core/geom/update/contour.d.ts.map +1 -0
  51. package/dist/api/core/geom/update/curve.d.ts +180 -0
  52. package/dist/api/core/geom/update/curve.d.ts.map +1 -0
  53. package/dist/api/core/geom/update/index.d.ts +27 -0
  54. package/dist/api/core/geom/update/index.d.ts.map +1 -0
  55. package/dist/api/core/geom/update/profile.d.ts +329 -0
  56. package/dist/api/core/geom/update/profile.d.ts.map +1 -0
  57. package/dist/api/core/groups.d.ts +485 -0
  58. package/dist/api/core/groups.d.ts.map +1 -0
  59. package/dist/api/core/history/index.d.ts +78 -0
  60. package/dist/api/core/history/index.d.ts.map +1 -0
  61. package/dist/api/core/index.d.ts +51 -1
  62. package/dist/api/core/index.d.ts.map +1 -1
  63. package/dist/api/core/io/import/index.d.ts +392 -0
  64. package/dist/api/core/io/import/index.d.ts.map +1 -0
  65. package/dist/api/core/io/index.d.ts +35 -0
  66. package/dist/api/core/io/index.d.ts.map +1 -0
  67. package/dist/api/core/io/job/index.d.ts +139 -0
  68. package/dist/api/core/io/job/index.d.ts.map +1 -0
  69. package/dist/api/core/io/query/index.d.ts +74 -0
  70. package/dist/api/core/io/query/index.d.ts.map +1 -0
  71. package/dist/api/core/io/terrain/index.d.ts +206 -0
  72. package/dist/api/core/io/terrain/index.d.ts.map +1 -0
  73. package/dist/api/core/io/underlay/index.d.ts +286 -0
  74. package/dist/api/core/io/underlay/index.d.ts.map +1 -0
  75. package/dist/api/core/layers.d.ts +402 -0
  76. package/dist/api/core/layers.d.ts.map +1 -0
  77. package/dist/api/core/math/quat.d.ts +111 -128
  78. package/dist/api/core/math/quat.d.ts.map +1 -1
  79. package/dist/api/core/math/vec3.d.ts +120 -102
  80. package/dist/api/core/math/vec3.d.ts.map +1 -1
  81. package/dist/api/core/project/index.d.ts +399 -0
  82. package/dist/api/core/project/index.d.ts.map +1 -0
  83. package/dist/api/core/tags.d.ts +755 -0
  84. package/dist/api/core/tags.d.ts.map +1 -0
  85. package/dist/api/core/units/index.d.ts +175 -0
  86. package/dist/api/core/units/index.d.ts.map +1 -0
  87. package/dist/api/core/zoom/index.d.ts +45 -0
  88. package/dist/api/core/zoom/index.d.ts.map +1 -0
  89. package/dist/api/design/boolean/index.d.ts +168 -0
  90. package/dist/api/design/boolean/index.d.ts.map +1 -0
  91. package/dist/api/design/create/index.d.ts +837 -0
  92. package/dist/api/design/create/index.d.ts.map +1 -0
  93. package/dist/api/design/delete/index.d.ts +63 -0
  94. package/dist/api/design/delete/index.d.ts.map +1 -0
  95. package/dist/api/design/doors/index.d.ts +268 -0
  96. package/dist/api/design/doors/index.d.ts.map +1 -0
  97. package/dist/api/design/edit/index.d.ts +49 -0
  98. package/dist/api/design/edit/index.d.ts.map +1 -0
  99. package/dist/api/design/erase/index.d.ts +160 -0
  100. package/dist/api/design/erase/index.d.ts.map +1 -0
  101. package/dist/api/design/furniture/index.d.ts +123 -0
  102. package/dist/api/design/furniture/index.d.ts.map +1 -0
  103. package/dist/api/design/index.d.ts +153 -0
  104. package/dist/api/design/index.d.ts.map +1 -0
  105. package/dist/api/design/lock.d.ts +41 -0
  106. package/dist/api/design/lock.d.ts.map +1 -0
  107. package/dist/api/design/materials/index.d.ts +297 -0
  108. package/dist/api/design/materials/index.d.ts.map +1 -0
  109. package/dist/api/design/query/geometry/index.d.ts +140 -0
  110. package/dist/api/design/query/geometry/index.d.ts.map +1 -0
  111. package/dist/api/design/query/index.d.ts +1011 -0
  112. package/dist/api/design/query/index.d.ts.map +1 -0
  113. package/dist/api/design/query/spaces.d.ts +221 -0
  114. package/dist/api/design/query/spaces.d.ts.map +1 -0
  115. package/dist/api/design/selection/index.d.ts +282 -0
  116. package/dist/api/design/selection/index.d.ts.map +1 -0
  117. package/dist/api/design/shared.d.ts +38 -0
  118. package/dist/api/design/shared.d.ts.map +1 -0
  119. package/dist/api/design/transform/index.d.ts +87 -0
  120. package/dist/api/design/transform/index.d.ts.map +1 -0
  121. package/dist/api/design/update/index.d.ts +178 -0
  122. package/dist/api/design/update/index.d.ts.map +1 -0
  123. package/dist/api/design/windows/index.d.ts +189 -0
  124. package/dist/api/design/windows/index.d.ts.map +1 -0
  125. package/dist/api/entity/buildableEnvelope.d.ts +261 -0
  126. package/dist/api/entity/buildableEnvelope.d.ts.map +1 -0
  127. package/dist/api/entity/department.d.ts +0 -98
  128. package/dist/api/entity/department.d.ts.map +1 -1
  129. package/dist/api/entity/index.d.ts +9 -9
  130. package/dist/api/entity/index.d.ts.map +1 -1
  131. package/dist/api/entity/referenceLine.d.ts +49 -106
  132. package/dist/api/entity/referenceLine.d.ts.map +1 -1
  133. package/dist/api/entity/space.d.ts +484 -251
  134. package/dist/api/entity/space.d.ts.map +1 -1
  135. package/dist/api/entity/story.d.ts +49 -39
  136. package/dist/api/entity/story.d.ts.map +1 -1
  137. package/dist/api/index.d.ts +22 -12
  138. package/dist/api/index.d.ts.map +1 -1
  139. package/dist/api/presentation/aiInspiration.d.ts +440 -0
  140. package/dist/api/presentation/aiInspiration.d.ts.map +1 -0
  141. package/dist/api/presentation/diagrams.d.ts +81 -0
  142. package/dist/api/presentation/diagrams.d.ts.map +1 -0
  143. package/dist/api/presentation/import.d.ts +113 -0
  144. package/dist/api/presentation/import.d.ts.map +1 -0
  145. package/dist/api/presentation/index.d.ts +46 -0
  146. package/dist/api/presentation/index.d.ts.map +1 -0
  147. package/dist/api/presentation/sheets.d.ts +176 -0
  148. package/dist/api/presentation/sheets.d.ts.map +1 -0
  149. package/dist/api/presentation/views.d.ts +296 -0
  150. package/dist/api/presentation/views.d.ts.map +1 -0
  151. package/dist/api/program/adjacency.d.ts +155 -0
  152. package/dist/api/program/adjacency.d.ts.map +1 -0
  153. package/dist/api/program/areas.d.ts +360 -0
  154. package/dist/api/program/areas.d.ts.map +1 -0
  155. package/dist/api/program/classification.d.ts +135 -0
  156. package/dist/api/program/classification.d.ts.map +1 -0
  157. package/dist/api/program/cores.d.ts +174 -0
  158. package/dist/api/program/cores.d.ts.map +1 -0
  159. package/dist/api/program/departments.d.ts +431 -0
  160. package/dist/api/program/departments.d.ts.map +1 -0
  161. package/dist/api/program/index.d.ts +69 -0
  162. package/dist/api/program/index.d.ts.map +1 -0
  163. package/dist/api/program/layout.d.ts +63 -0
  164. package/dist/api/program/layout.d.ts.map +1 -0
  165. package/dist/api/program/metrics.d.ts +108 -0
  166. package/dist/api/program/metrics.d.ts.map +1 -0
  167. package/dist/api/program/site.d.ts +451 -0
  168. package/dist/api/program/site.d.ts.map +1 -0
  169. package/dist/api/program/spreadsheet.d.ts +2041 -0
  170. package/dist/api/program/spreadsheet.d.ts.map +1 -0
  171. package/dist/handles.d.ts +171 -0
  172. package/dist/handles.d.ts.map +1 -0
  173. package/dist/host-utils.d.ts +7 -5
  174. package/dist/host-utils.d.ts.map +1 -1
  175. package/dist/index.cjs +4344 -899
  176. package/dist/index.cjs.map +1 -1
  177. package/dist/index.d.ts +1 -0
  178. package/dist/index.d.ts.map +1 -1
  179. package/dist/index.js +3682 -865
  180. package/dist/index.js.map +1 -1
  181. package/package.json +6 -2
  182. package/scripts/generate-manifest.mjs +193 -0
  183. package/scripts/generate-manifest.test.mjs +215 -0
  184. package/src/api/analysis/heatmaps.ts +256 -0
  185. package/src/api/analysis/illuminance.ts +155 -0
  186. package/src/api/analysis/index.ts +46 -0
  187. package/src/api/analysis/shadows.ts +183 -0
  188. package/src/api/analysis/sunlightHours.ts +211 -0
  189. package/src/api/analysis/sunpath.ts +83 -0
  190. package/src/api/core/buildings.ts +485 -0
  191. package/src/api/core/comment/index.ts +258 -0
  192. package/src/api/core/geom/create/index.ts +293 -0
  193. package/src/api/core/geom/delete/index.ts +78 -0
  194. package/src/api/core/geom/index.ts +24 -23
  195. package/src/api/core/geom/query/arc.ts +169 -0
  196. package/src/api/core/geom/query/brep.ts +444 -0
  197. package/src/api/core/geom/query/circle.ts +404 -0
  198. package/src/api/core/geom/query/contour.ts +540 -0
  199. package/src/api/core/geom/query/curve.ts +1078 -0
  200. package/src/api/core/geom/query/edge.ts +130 -0
  201. package/src/api/core/geom/query/face.ts +403 -0
  202. package/src/api/core/geom/query/halfedge.ts +210 -0
  203. package/src/api/core/geom/query/index.ts +63 -0
  204. package/src/api/core/geom/query/profile.ts +473 -0
  205. package/src/api/core/geom/query/vertex.ts +205 -0
  206. package/src/api/core/geom/update/contour.ts +315 -0
  207. package/src/api/core/geom/update/curve.ts +209 -0
  208. package/src/api/core/geom/update/index.ts +29 -0
  209. package/src/api/core/geom/update/profile.ts +377 -0
  210. package/src/api/core/groups.ts +521 -0
  211. package/src/api/core/history/index.ts +84 -0
  212. package/src/api/core/index.ts +51 -1
  213. package/src/api/core/io/import/index.ts +432 -0
  214. package/src/api/core/io/index.ts +37 -0
  215. package/src/api/core/io/job/index.ts +140 -0
  216. package/src/api/core/io/query/index.ts +71 -0
  217. package/src/api/core/io/terrain/index.ts +214 -0
  218. package/src/api/core/io/underlay/index.ts +295 -0
  219. package/src/api/core/layers.ts +333 -0
  220. package/src/api/core/math/quat.ts +112 -235
  221. package/src/api/core/math/vec3.ts +124 -159
  222. package/src/api/core/project/index.ts +418 -0
  223. package/src/api/core/tags.ts +808 -0
  224. package/src/api/core/units/index.ts +164 -0
  225. package/src/api/core/zoom/index.ts +47 -0
  226. package/src/api/design/boolean/index.ts +179 -0
  227. package/src/api/design/create/index.ts +895 -0
  228. package/src/api/design/delete/index.ts +67 -0
  229. package/src/api/design/doors/index.ts +285 -0
  230. package/src/api/design/edit/index.ts +54 -0
  231. package/src/api/design/erase/index.ts +151 -0
  232. package/src/api/design/furniture/index.ts +130 -0
  233. package/src/api/design/index.ts +162 -0
  234. package/src/api/design/lock.ts +42 -0
  235. package/src/api/design/materials/index.ts +301 -0
  236. package/src/api/design/query/geometry/index.ts +166 -0
  237. package/src/api/design/query/index.ts +937 -0
  238. package/src/api/design/query/spaces.ts +132 -0
  239. package/src/api/design/selection/index.ts +273 -0
  240. package/src/api/design/shared.ts +40 -0
  241. package/src/api/design/transform/index.ts +93 -0
  242. package/src/api/design/update/index.ts +117 -0
  243. package/src/api/design/windows/index.ts +207 -0
  244. package/src/api/entity/buildableEnvelope.ts +318 -0
  245. package/src/api/entity/department.ts +0 -113
  246. package/src/api/entity/index.ts +9 -9
  247. package/src/api/entity/referenceLine.ts +50 -38
  248. package/src/api/entity/space.ts +285 -226
  249. package/src/api/entity/story.ts +53 -42
  250. package/src/api/index.ts +22 -12
  251. package/src/api/presentation/aiInspiration.ts +362 -0
  252. package/src/api/presentation/diagrams.ts +84 -0
  253. package/src/api/presentation/import.ts +112 -0
  254. package/src/api/presentation/index.ts +48 -0
  255. package/src/api/presentation/sheets.ts +198 -0
  256. package/src/api/presentation/views.ts +303 -0
  257. package/src/api/program/adjacency.ts +164 -0
  258. package/src/api/program/areas.ts +335 -0
  259. package/src/api/program/classification.ts +138 -0
  260. package/src/api/program/cores.ts +171 -0
  261. package/src/api/program/departments.ts +465 -0
  262. package/src/api/program/index.ts +71 -0
  263. package/src/api/program/layout.ts +68 -0
  264. package/src/api/program/metrics.ts +120 -0
  265. package/src/api/program/site.ts +419 -0
  266. package/src/api/program/spreadsheet.ts +2075 -0
  267. package/src/handles.ts +194 -0
  268. package/src/host-utils.ts +10 -6
  269. package/src/index.ts +1 -0
  270. package/dist/api/core/geom/arc.d.ts +0 -81
  271. package/dist/api/core/geom/arc.d.ts.map +0 -1
  272. package/dist/api/core/geom/curve.d.ts +0 -70
  273. package/dist/api/core/geom/curve.d.ts.map +0 -1
  274. package/dist/api/core/geom/line.d.ts +0 -56
  275. package/dist/api/core/geom/line.d.ts.map +0 -1
  276. package/dist/api/core/geom/profile.d.ts +0 -121
  277. package/dist/api/core/geom/profile.d.ts.map +0 -1
  278. package/dist/api/tools/copy.d.ts +0 -59
  279. package/dist/api/tools/copy.d.ts.map +0 -1
  280. package/dist/api/tools/index.d.ts +0 -33
  281. package/dist/api/tools/index.d.ts.map +0 -1
  282. package/dist/api/tools/material.d.ts +0 -51
  283. package/dist/api/tools/material.d.ts.map +0 -1
  284. package/dist/api/tools/offset.d.ts +0 -43
  285. package/dist/api/tools/offset.d.ts.map +0 -1
  286. package/dist/api/tools/selection.d.ts +0 -48
  287. package/dist/api/tools/selection.d.ts.map +0 -1
  288. package/dist/api/tools/transform.d.ts +0 -114
  289. package/dist/api/tools/transform.d.ts.map +0 -1
  290. package/dist/api/units/index.d.ts +0 -163
  291. package/dist/api/units/index.d.ts.map +0 -1
  292. package/src/api/core/geom/arc.ts +0 -70
  293. package/src/api/core/geom/curve.ts +0 -41
  294. package/src/api/core/geom/line.ts +0 -53
  295. package/src/api/core/geom/profile.ts +0 -94
  296. package/src/api/tools/copy.ts +0 -55
  297. package/src/api/tools/index.ts +0 -39
  298. package/src/api/tools/material.ts +0 -49
  299. package/src/api/tools/offset.ts +0 -43
  300. package/src/api/tools/selection.ts +0 -51
  301. package/src/api/tools/transform.ts +0 -117
  302. package/src/api/units/index.ts +0 -163
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/query/index.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,GAAG,IAAI,CAAC;IAEnD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;aACa,cAAc,CAC5B,UAAU,EAAE,eAAe,EAAE,GAC5B,eAAe,CAAC,cAAc,GAAG,IAAI,CAAC;CAC1C;AAED,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
@@ -0,0 +1,221 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../../types";
3
+ import { ComponentHandle, ContourHandle } from "../../../handles";
4
+ /**
5
+ * `design.query.spaces.*` — space-specific reads (a space is a room mass).
6
+ *
7
+ * Only the space queries feasible against the engine today are exposed here.
8
+ * `getFloor` / `listBoundingWalls` (space↔wall topology) are deferred — they need
9
+ * engine work that does not exist yet. `listAdjacent` stays deferred because the
10
+ * shipped surfaces already answer it with value semantics: per-space via the
11
+ * `adjacency` field of `design.query.getProperties`, in bulk via
12
+ * `program.adjacency.getMatrix`.
13
+ *
14
+ * Accessed via `snaptrude.design.query.spaces`.
15
+ */
16
+ export declare abstract class PluginDesignQuerySpacesApi {
17
+ constructor();
18
+ /**
19
+ * Get selected properties of a space — the selective multi-property read.
20
+ *
21
+ * Only the properties listed in `properties` are returned — unlisted
22
+ * properties will be `undefined` in the result. This is the canonical home of
23
+ * the read formerly at `entity.space.get` (now deprecated). Adjacency is not
24
+ * part of this read — it is an entity property: read it via the `adjacency`
25
+ * field of {@linkcode PluginDesignQueryApi.getProperties}.
26
+ *
27
+ * @param space - The space (room mass) to read
28
+ * @param properties - Array of property names to retrieve. See
29
+ * {@linkcode PluginDesignQuerySpacesGetProperty} for available values.
30
+ * @returns A partial {@linkcode PluginDesignQuerySpacesGetResult} containing only
31
+ * the requested properties
32
+ * @throws If the space does not exist or the component is not a space/mass
33
+ *
34
+ * @examplePrompt What is the area of this room?
35
+ * @examplePrompt Get the name, storey and height of the selected space
36
+ * @examplePrompt Which department does this room belong to?
37
+ * @examplePrompt Where is this space positioned on the plan?
38
+ * @examplePrompt Read the room type and dimensions of the selected room
39
+ *
40
+ * # Example
41
+ * ```ts
42
+ * const [space] = await snaptrude.design.query.listSpaces()
43
+ * const info = await snaptrude.design.query.spaces.get(space, ["name", "area", "position"])
44
+ * console.log(info.name, info.area, info.position)
45
+ * ```
46
+ */
47
+ abstract get(space: ComponentHandle, properties: PluginDesignQuerySpacesGetArgs["properties"]): PluginApiReturn<PluginDesignQuerySpacesGetResult>;
48
+ /**
49
+ * Get the **footprint** of a space — its bottom-face contour (outer profile +
50
+ * holes) as a reusable {@linkcode ContourHandle}. Equivalent to
51
+ * {@linkcode PluginDesignQueryGeometryApi.getBottomContour} narrowed to spaces.
52
+ *
53
+ * @param space - The space (room mass) to read
54
+ * @returns the footprint {@linkcode ContourHandle}, or `null` if the space has
55
+ * no extractable footprint
56
+ *
57
+ * @examplePrompt Get the footprint of this room
58
+ * @examplePrompt Trace the floor outline of the selected space
59
+ * @examplePrompt What is the plan boundary of this room, including any holes?
60
+ * @examplePrompt Give me the base profile of the selected room mass
61
+ *
62
+ * # Example
63
+ * ```ts
64
+ * const [space] = await snaptrude.design.query.listSpaces()
65
+ * const footprint = await snaptrude.design.query.spaces.getFootprint(space)
66
+ * ```
67
+ */
68
+ abstract getFootprint(space: ComponentHandle): PluginApiReturn<ContourHandle | null>;
69
+ }
70
+ /**
71
+ * Arguments for {@linkcode PluginDesignQuerySpacesApi.getFootprint}.
72
+ *
73
+ * | Property | Type | Description |
74
+ * |---|---|---|
75
+ * | `space` | {@linkcode ComponentHandle} | The space (room mass) to read |
76
+ */
77
+ export declare const PluginDesignQueryGetFootprintArgs: z.ZodObject<{
78
+ space: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
79
+ }, z.core.$strip>;
80
+ export type PluginDesignQueryGetFootprintArgs = z.infer<typeof PluginDesignQueryGetFootprintArgs>;
81
+ /**
82
+ * Property names readable via {@linkcode PluginDesignQuerySpacesApi.get} — the
83
+ * legacy {@linkcode PluginSpaceGetProperty} set minus `"adjacency"` (adjacency is
84
+ * an entity property: see the `adjacency` field of
85
+ * {@linkcode PluginDesignQueryApi.getProperties}).
86
+ */
87
+ export declare const PluginDesignQuerySpacesGetProperty: z.ZodEnum<{
88
+ profile: "profile";
89
+ type: "type";
90
+ position: "position";
91
+ id: "id";
92
+ name: "name";
93
+ storey: "storey";
94
+ height: "height";
95
+ depth: "depth";
96
+ innerProfiles: "innerProfiles";
97
+ room_type: "room_type";
98
+ area: "area";
99
+ breadth: "breadth";
100
+ massType: "massType";
101
+ spaceType: "spaceType";
102
+ areaClass: "areaClass";
103
+ departmentId: "departmentId";
104
+ departmentName: "departmentName";
105
+ departmentColor: "departmentColor";
106
+ absolutePosition: "absolutePosition";
107
+ rotation: "rotation";
108
+ rotationQuaternion: "rotationQuaternion";
109
+ planPoints: "planPoints";
110
+ innerPlanPoints: "innerPlanPoints";
111
+ }>;
112
+ export type PluginDesignQuerySpacesGetProperty = z.infer<typeof PluginDesignQuerySpacesGetProperty>;
113
+ /**
114
+ * Arguments for {@linkcode PluginDesignQuerySpacesApi.get}.
115
+ *
116
+ * | Property | Type | Description |
117
+ * |---|---|---|
118
+ * | `space` | {@linkcode ComponentHandle} | The space (room mass) to read |
119
+ * | `properties` | {@linkcode PluginDesignQuerySpacesGetProperty}`[]` | Properties to retrieve |
120
+ */
121
+ export declare const PluginDesignQuerySpacesGetArgs: z.ZodObject<{
122
+ space: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
123
+ properties: z.ZodArray<z.ZodEnum<{
124
+ profile: "profile";
125
+ type: "type";
126
+ position: "position";
127
+ id: "id";
128
+ name: "name";
129
+ storey: "storey";
130
+ height: "height";
131
+ depth: "depth";
132
+ innerProfiles: "innerProfiles";
133
+ room_type: "room_type";
134
+ area: "area";
135
+ breadth: "breadth";
136
+ massType: "massType";
137
+ spaceType: "spaceType";
138
+ areaClass: "areaClass";
139
+ departmentId: "departmentId";
140
+ departmentName: "departmentName";
141
+ departmentColor: "departmentColor";
142
+ absolutePosition: "absolutePosition";
143
+ rotation: "rotation";
144
+ rotationQuaternion: "rotationQuaternion";
145
+ planPoints: "planPoints";
146
+ innerPlanPoints: "innerPlanPoints";
147
+ }>>;
148
+ }, z.core.$strip>;
149
+ export type PluginDesignQuerySpacesGetArgs = z.infer<typeof PluginDesignQuerySpacesGetArgs>;
150
+ /**
151
+ * Result of {@linkcode PluginDesignQuerySpacesApi.get} — the legacy
152
+ * {@linkcode PluginSpaceGetResult} record minus `adjacency`. Partial: only the
153
+ * requested properties are present.
154
+ */
155
+ 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>>]>>>;
157
+ type: z.ZodOptional<z.ZodString>;
158
+ position: z.ZodOptional<z.ZodObject<{
159
+ x: z.ZodNumber;
160
+ y: z.ZodNumber;
161
+ z: z.ZodNumber;
162
+ }, z.core.$strip>>;
163
+ id: z.ZodOptional<z.ZodString>;
164
+ name: z.ZodOptional<z.ZodString>;
165
+ storey: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
166
+ height: z.ZodOptional<z.ZodNumber>;
167
+ 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>>]>>>>;
169
+ room_type: z.ZodOptional<z.ZodString>;
170
+ area: z.ZodOptional<z.ZodNumber>;
171
+ breadth: z.ZodOptional<z.ZodNumber>;
172
+ massType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
+ spaceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
174
+ Room: "Room";
175
+ "Program Block": "Program Block";
176
+ Balcony: "Balcony";
177
+ Road: "Road";
178
+ Garden: "Garden";
179
+ Deck: "Deck";
180
+ Pool: "Pool";
181
+ Walkway: "Walkway";
182
+ Envelope: "Envelope";
183
+ Parking: "Parking";
184
+ }>>>;
185
+ areaClass: z.ZodOptional<z.ZodEnum<{
186
+ NET: "NET";
187
+ GROSS: "GROSS";
188
+ EXCLUDED: "EXCLUDED";
189
+ }>>;
190
+ departmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
191
+ departmentName: z.ZodOptional<z.ZodString>;
192
+ departmentColor: z.ZodOptional<z.ZodString>;
193
+ absolutePosition: z.ZodOptional<z.ZodObject<{
194
+ x: z.ZodNumber;
195
+ y: z.ZodNumber;
196
+ z: z.ZodNumber;
197
+ }, z.core.$strip>>;
198
+ rotation: z.ZodOptional<z.ZodObject<{
199
+ x: z.ZodNumber;
200
+ y: z.ZodNumber;
201
+ z: z.ZodNumber;
202
+ }, z.core.$strip>>;
203
+ rotationQuaternion: z.ZodOptional<z.ZodNullable<z.ZodObject<{
204
+ x: z.ZodNumber;
205
+ y: z.ZodNumber;
206
+ z: z.ZodNumber;
207
+ w: z.ZodNumber;
208
+ }, z.core.$strip>>>;
209
+ planPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
210
+ x: z.ZodNumber;
211
+ y: z.ZodNumber;
212
+ z: z.ZodNumber;
213
+ }, z.core.$strip>>>;
214
+ innerPlanPoints: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
215
+ x: z.ZodNumber;
216
+ y: z.ZodNumber;
217
+ z: z.ZodNumber;
218
+ }, z.core.$strip>>>>;
219
+ }, z.core.$strip>;
220
+ export type PluginDesignQuerySpacesGetResult = z.infer<typeof PluginDesignQuerySpacesGetResult>;
221
+ //# sourceMappingURL=spaces.d.ts.map
@@ -0,0 +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;CACzC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC;;iBAE5C,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,iCAAiC,CACzC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;EACA,CAAA;AAC/C,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,kCAAkC,CAC1C,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGzC,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,8BAA8B,CACtC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE3C,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,gCAAgC,CACxC,CAAA"}
@@ -0,0 +1,282 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../../types";
3
+ import { ComponentHandle } from "../../../handles";
4
+ import { PluginDesignChangeResult } from "../lock";
5
+ /**
6
+ * The entity kinds {@linkcode PluginDesignSelectionApi.setByFilter} can select —
7
+ * the union of the editor's "Filter selection" menus (Design tab + BIM tab).
8
+ * Tokens mirror {@linkcode PluginEntityType} where a kind exists on the query
9
+ * surface; the rest are selection-only kinds the query surface cannot reach
10
+ * (layer-backed and annotation objects).
11
+ *
12
+ * | Value | Entity (menu label) |
13
+ * |---|---|
14
+ * | `"wall"` | Wall |
15
+ * | `"slab"` | Floor slab |
16
+ * | `"floor"` | Flooring |
17
+ * | `"door"` | Door |
18
+ * | `"window"` | Window |
19
+ * | `"beam"` | Beam |
20
+ * | `"column"` | Column |
21
+ * | `"ceiling"` | Ceiling |
22
+ * | `"roof"` | Roof |
23
+ * | `"staircase"` | Staircase |
24
+ * | `"furniture"` | Furniture |
25
+ * | `"pergola"` | Pergola |
26
+ * | `"sunshade"` | Sunshade |
27
+ * | `"referenceLine"` | Reference line |
28
+ * | `"space"` | Space (room mass) |
29
+ * | `"site"` | Site |
30
+ * | `"terrain"` | Terrain |
31
+ * | `"cad"` | CAD import |
32
+ * | `"pdf"` | PDF import |
33
+ * | `"image"` | Image import |
34
+ * | `"dimensionLine"` | Dimension line |
35
+ * | `"model3d"` | Imported 3D model |
36
+ * | `"neighborhoodBuilding"` | Neighborhood building |
37
+ * | `"programBlock"` | Program block (department mass) |
38
+ */
39
+ export declare const PluginSelectionEntityType: z.ZodEnum<{
40
+ terrain: "terrain";
41
+ floor: "floor";
42
+ wall: "wall";
43
+ ceiling: "ceiling";
44
+ image: "image";
45
+ cad: "cad";
46
+ pdf: "pdf";
47
+ space: "space";
48
+ door: "door";
49
+ window: "window";
50
+ slab: "slab";
51
+ roof: "roof";
52
+ column: "column";
53
+ beam: "beam";
54
+ staircase: "staircase";
55
+ furniture: "furniture";
56
+ referenceLine: "referenceLine";
57
+ pergola: "pergola";
58
+ sunshade: "sunshade";
59
+ site: "site";
60
+ dimensionLine: "dimensionLine";
61
+ model3d: "model3d";
62
+ neighborhoodBuilding: "neighborhoodBuilding";
63
+ programBlock: "programBlock";
64
+ }>;
65
+ export type PluginSelectionEntityType = z.infer<typeof PluginSelectionEntityType>;
66
+ /**
67
+ * The filter for {@linkcode PluginDesignSelectionApi.setByFilter}. At least one
68
+ * field must be non-empty (to empty the selection use
69
+ * {@linkcode PluginDesignSelectionApi.clear}). Fields **AND**-combine; values
70
+ * within a field **OR**-combine — `{ storeys: [2], types: ["furniture"] }`
71
+ * selects only the furniture on storey 2.
72
+ *
73
+ * | Field | Type | Selects entities where |
74
+ * |---|---|---|
75
+ * | `storeys` | `number[]` | storey/floor level ∈ `storeys` (negative = basement) |
76
+ * | `types` | {@linkcode PluginSelectionEntityType}`[]` | entity kind ∈ `types` |
77
+ */
78
+ export declare const PluginSelectionFilter: z.ZodObject<{
79
+ storeys: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
80
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
81
+ terrain: "terrain";
82
+ floor: "floor";
83
+ wall: "wall";
84
+ ceiling: "ceiling";
85
+ image: "image";
86
+ cad: "cad";
87
+ pdf: "pdf";
88
+ space: "space";
89
+ door: "door";
90
+ window: "window";
91
+ slab: "slab";
92
+ roof: "roof";
93
+ column: "column";
94
+ beam: "beam";
95
+ staircase: "staircase";
96
+ furniture: "furniture";
97
+ referenceLine: "referenceLine";
98
+ pergola: "pergola";
99
+ sunshade: "sunshade";
100
+ site: "site";
101
+ dimensionLine: "dimensionLine";
102
+ model3d: "model3d";
103
+ neighborhoodBuilding: "neighborhoodBuilding";
104
+ programBlock: "programBlock";
105
+ }>>>;
106
+ }, z.core.$strip>;
107
+ export type PluginSelectionFilter = z.infer<typeof PluginSelectionFilter>;
108
+ /**
109
+ * `snaptrude.design.selection` — read and mutate the current scene selection.
110
+ *
111
+ * Selection targets are {@linkcode ComponentHandle}s. `get` is the one sanctioned
112
+ * `get`-returns-array accessor (§4.1(3)). The mutators (`set`/`add`/`remove`/`clear`)
113
+ * change the live selection and return the resulting selection snapshot — they are
114
+ * **not undoable** (the engine fires a selection listener, no command), so the
115
+ * returned {@linkcode PluginDesignChangeResult} is a committed-state snapshot.
116
+ */
117
+ export declare abstract class PluginDesignSelectionApi {
118
+ constructor();
119
+ /**
120
+ * Read the current scene selection — the entities the user (or a previous
121
+ * call) has selected, returned as handles you can pass straight into other
122
+ * API calls.
123
+ *
124
+ * @returns The selection as {@linkcode ComponentHandle}`[]` (`[]` when nothing is selected)
125
+ *
126
+ * @examplePrompt What do I have selected right now?
127
+ * @examplePrompt List the currently selected objects
128
+ * @examplePrompt Which rooms are selected in the scene?
129
+ * @examplePrompt Get the ids of everything I've selected
130
+ * @examplePrompt Is anything selected?
131
+ *
132
+ * # Example
133
+ * ```ts
134
+ * // Selection handles feed straight into other API calls
135
+ * const selection = await snaptrude.design.selection.get()
136
+ * if (selection.length > 0) {
137
+ * const props = await snaptrude.design.query.getProperties(selection[0])
138
+ * }
139
+ * ```
140
+ */
141
+ abstract get(): PluginApiReturn<ComponentHandle[]>;
142
+ /**
143
+ * Replace the selection with exactly the given entities — anything
144
+ * previously selected is deselected first, so afterwards only these
145
+ * entities are selected.
146
+ *
147
+ * @param components The entities to select
148
+ * @returns The resulting selection snapshot
149
+ *
150
+ * @examplePrompt Select these three walls
151
+ * @examplePrompt Select only the kitchen and deselect everything else
152
+ * @examplePrompt Change the selection to just these rooms
153
+ * @examplePrompt Highlight the spaces on the second storey
154
+ *
155
+ * # Example
156
+ * ```ts
157
+ * // Select only the ground-storey walls (replaces the previous selection)
158
+ * const walls = await snaptrude.design.query.listWalls({ storeys: [1] })
159
+ * const { affected } = await snaptrude.design.selection.set(walls)
160
+ * ```
161
+ */
162
+ abstract set(components: ComponentHandle[]): PluginApiReturn<PluginDesignChangeResult>;
163
+ /**
164
+ * Add entities to the current selection without deselecting anything — the
165
+ * selection grows to include the given entities alongside whatever was
166
+ * already selected.
167
+ *
168
+ * @param components The entities to add to the selection
169
+ * @returns The resulting selection snapshot
170
+ *
171
+ * @examplePrompt Add the corridor to my current selection
172
+ * @examplePrompt Select these columns too, keeping what's already selected
173
+ * @examplePrompt Also select the roof
174
+ * @examplePrompt Extend the selection to include all the doors on this floor
175
+ *
176
+ * # Example
177
+ * ```ts
178
+ * // Grow the selection to include every roof, keeping what's already selected
179
+ * const roofs = await snaptrude.design.query.listRoofs()
180
+ * await snaptrude.design.selection.add(roofs)
181
+ * ```
182
+ */
183
+ abstract add(components: ComponentHandle[]): PluginApiReturn<PluginDesignChangeResult>;
184
+ /**
185
+ * Remove entities from the current selection — the given entities are
186
+ * deselected while everything else stays selected.
187
+ *
188
+ * @param components The entities to remove from the selection
189
+ * @returns The resulting selection snapshot
190
+ *
191
+ * @examplePrompt Deselect the stair core but keep the rest selected
192
+ * @examplePrompt Remove these walls from my selection
193
+ * @examplePrompt Take the furniture out of the current selection
194
+ * @examplePrompt Unselect the two smaller rooms
195
+ *
196
+ * # Example
197
+ * ```ts
198
+ * // Deselect the furniture while keeping everything else selected
199
+ * const furniture = await snaptrude.design.query.listFurniture({ isSelected: true })
200
+ * await snaptrude.design.selection.remove(furniture)
201
+ * ```
202
+ */
203
+ abstract remove(components: ComponentHandle[]): PluginApiReturn<PluginDesignChangeResult>;
204
+ /**
205
+ * Clear the selection so nothing is selected (equivalent to `set([])`).
206
+ *
207
+ * @returns The resulting (empty) selection snapshot
208
+ *
209
+ * @examplePrompt Deselect everything
210
+ * @examplePrompt Clear my current selection
211
+ * @examplePrompt Unselect all objects in the scene
212
+ * @examplePrompt Make sure nothing is selected before we start
213
+ *
214
+ * # Example
215
+ * ```ts
216
+ * const { affected } = await snaptrude.design.selection.clear()
217
+ * // affected is the resulting selection — always [] here
218
+ * ```
219
+ */
220
+ abstract clear(): PluginApiReturn<PluginDesignChangeResult>;
221
+ /**
222
+ * Replace the selection with every visible entity of the active building that
223
+ * matches the filter — the programmatic equivalent of the editor's
224
+ * **Story selection** (`storeys`) and **Filter selection** (`types`) menus
225
+ * under the select tool, including their combination (fields AND, values
226
+ * within a field OR). Reaches selection-only kinds the query surface cannot
227
+ * (sites, terrain, CAD/PDF/image imports, dimension lines, 3D models,
228
+ * neighborhood buildings) and selects whole groups the way the editor does.
229
+ *
230
+ * This is a one-shot bulk select, not a persistent mode: the user's next
231
+ * canvas click resets the underlying filter state (the selection it made
232
+ * stays until changed). Results honor the ambient view — active building,
233
+ * hidden objects/buckets, and in 2D the active storey.
234
+ *
235
+ * @param filter Which entities to select — {@linkcode PluginSelectionFilter};
236
+ * at least one field must be non-empty
237
+ * @returns The resulting selection snapshot
238
+ *
239
+ * @examplePrompt Select everything on storey 2
240
+ * @examplePrompt Select all the walls and doors
241
+ * @examplePrompt Story selection: select the ground floor and first floor
242
+ * @examplePrompt Filter selection: select all furniture in the model
243
+ * @examplePrompt Select only the furniture on the second storey
244
+ * @examplePrompt Select all the spaces so I can recolor them
245
+ *
246
+ * # Example
247
+ * ```ts
248
+ * // "Story selection": everything on storeys 1 and 2
249
+ * await snaptrude.design.selection.setByFilter({ storeys: [1, 2] })
250
+ *
251
+ * // "Filter selection": all walls and doors
252
+ * await snaptrude.design.selection.setByFilter({ types: ["wall", "door"] })
253
+ *
254
+ * // Combined: only the furniture on storey 2
255
+ * const { affected } = await snaptrude.design.selection.setByFilter({
256
+ * storeys: [2],
257
+ * types: ["furniture"],
258
+ * })
259
+ * ```
260
+ */
261
+ abstract setByFilter(filter: PluginSelectionFilter): PluginApiReturn<PluginDesignChangeResult>;
262
+ }
263
+ /**
264
+ * Arguments for {@linkcode PluginDesignSelectionApi.set}.
265
+ *
266
+ * | Property | Type | Description |
267
+ * |---|---|---|
268
+ * | `components` | {@linkcode ComponentHandle}`[]` | The entities to select |
269
+ */
270
+ export declare const PluginDesignSelectionSetArgs: z.ZodObject<{
271
+ components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
272
+ }, z.core.$strip>;
273
+ export type PluginDesignSelectionSetArgs = z.infer<typeof PluginDesignSelectionSetArgs>;
274
+ export declare const PluginDesignSelectionAddArgs: z.ZodObject<{
275
+ components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
276
+ }, z.core.$strip>;
277
+ export type PluginDesignSelectionAddArgs = z.infer<typeof PluginDesignSelectionAddArgs>;
278
+ export declare const PluginDesignSelectionRemoveArgs: z.ZodObject<{
279
+ components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
280
+ }, z.core.$strip>;
281
+ export type PluginDesignSelectionRemoveArgs = z.infer<typeof PluginDesignSelectionRemoveArgs>;
282
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/selection/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;EAyBpC,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEjF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQ9B,CAAA;AACJ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;;;;;GAQG;AACH,8BAAsB,wBAAwB;;IAG5C;;;;;;;;;;;;;;;;;;;;;OAqBG;aACa,GAAG,IAAI,eAAe,CAAC,eAAe,EAAE,CAAC;IAEzD;;;;;;;;;;;;;;;;;;;OAmBG;aACa,GAAG,CAAC,UAAU,EAAE,eAAe,EAAE,GAAG,eAAe,CAAC,wBAAwB,CAAC;IAE7F;;;;;;;;;;;;;;;;;;;OAmBG;aACa,GAAG,CAAC,UAAU,EAAE,eAAe,EAAE,GAAG,eAAe,CAAC,wBAAwB,CAAC;IAE7F;;;;;;;;;;;;;;;;;;OAkBG;aACa,MAAM,CACpB,UAAU,EAAE,eAAe,EAAE,GAC5B,eAAe,CAAC,wBAAwB,CAAC;IAE5C;;;;;;;;;;;;;;;OAeG;aACa,KAAK,IAAI,eAAe,CAAC,wBAAwB,CAAC;IAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;aACa,WAAW,CACzB,MAAM,EAAE,qBAAqB,GAC5B,eAAe,CAAC,wBAAwB,CAAC;CAC7C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B;;iBAEvC,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEvF,eAAO,MAAM,4BAA4B;;iBAA+B,CAAA;AACxE,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEvF,eAAO,MAAM,+BAA+B;;iBAA+B,CAAA;AAC3E,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
@@ -0,0 +1,38 @@
1
+ import * as z from "zod";
2
+ import { ComponentHandle } from "../../handles";
3
+ /**
4
+ * Shared `design.*` operation return records (LLD Part A.3).
5
+ *
6
+ * `PluginDesignChangeResult` (`{ affected }`) is NOT here — it already lives in
7
+ * `./lock` and is reused verbatim by the transform/delete mutators.
8
+ *
9
+ * NOTE: `PluginMirrorAxis` currently lives in `./doors`; its relocation into this
10
+ * shared module is deferred to the transform wave (avoids a doors edit + a
11
+ * double-export while `design.transform` is unwired).
12
+ */
13
+ /**
14
+ * Result of a CSG boolean op (`design.boolean.union/subtract/intersect`). Grounded
15
+ * in the engine `Boolean3dOperation.resultComponents { toCreate; toDelete }`:
16
+ * `created` are the result masses, `deleted` is every consumed input (for
17
+ * `subtract` this includes BOTH the target AND the tools). Errors throw (RPC
18
+ * rejects); no `Result<>` crosses the boundary.
19
+ */
20
+ export declare const BooleanOutcome: z.ZodObject<{
21
+ created: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
22
+ deleted: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
23
+ }, z.core.$strip>;
24
+ export type BooleanOutcome = z.infer<typeof BooleanOutcome>;
25
+ /**
26
+ * Result of `design.edit.offsetSplit` (migrated from `tools.offset`). `createdIds`
27
+ * are the components the offset produced; `deletedIds` are those a split-style
28
+ * offset removed. `offsetValue` is the engine's POST-clamp / post-sign applied
29
+ * distance — the only way a caller learns the actually-applied clamped distance
30
+ * (the shipped `tools.offset` result dropped it).
31
+ */
32
+ export declare const OffsetSplitOutcome: z.ZodObject<{
33
+ createdIds: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
34
+ deletedIds: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
35
+ offsetValue: z.ZodNumber;
36
+ }, z.core.$strip>;
37
+ export type OffsetSplitOutcome = z.infer<typeof OffsetSplitOutcome>;
38
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/api/design/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE/C;;;;;;;;;GASG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;iBAGzB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
@@ -0,0 +1,87 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../../types";
3
+ import { ComponentHandle, Vec3Handle } from "../../../handles";
4
+ import { PluginDesignChangeResult } from "../lock";
5
+ /**
6
+ * `snaptrude.design.transform` — rigid transforms on scene entities.
7
+ *
8
+ * Migrated from the removed `tools.transform.*`. All ops are undoable and return
9
+ * {@linkcode PluginDesignChangeResult} `{ affected }`; failures throw (RPC rejects).
10
+ *
11
+ * `mirror` / `getPosition` / `setPosition` (and `scale`, an engine gap) are NOT in
12
+ * this surface yet — they are a later, non-migration pass.
13
+ */
14
+ export declare abstract class PluginDesignTransformApi {
15
+ constructor();
16
+ /**
17
+ * Translate entities by a **relative** displacement vector (added to the first
18
+ * component's absolute position as the anchor). Undoable.
19
+ *
20
+ * @param components - Entities to move
21
+ * @param displacement - Relative translation as a {@linkcode Vec3Handle}
22
+ * @param options - `is2D`, `trackParentChange`
23
+ * @returns {@linkcode PluginDesignChangeResult}
24
+ *
25
+ * @examplePrompt Move the selected room 5 metres to the right
26
+ * @examplePrompt Shift these walls 3m along the x axis
27
+ * @examplePrompt Nudge this space 500mm north
28
+ * @examplePrompt Translate the furniture block by (10, 0, 5)
29
+ * @examplePrompt Move these masses up one storey
30
+ *
31
+ * # Example
32
+ * ```ts
33
+ * const { vec3 } = snaptrude.core.math
34
+ * await snaptrude.design.transform.move(["space-id"], vec3.new(10, 0, 0))
35
+ * ```
36
+ */
37
+ abstract move(components: ComponentHandle[], displacement: Vec3Handle, options?: {
38
+ is2D?: boolean;
39
+ trackParentChange?: boolean;
40
+ }): PluginApiReturn<PluginDesignChangeResult>;
41
+ /**
42
+ * Rotate entities by a **signed angle in DEGREES**, anchored at the combined
43
+ * bounding-box centre (positive = CCW about +Y). NOTE: unlike the removed
44
+ * `tools.transform.rotate` (radians + caller pivot), this canonical form takes
45
+ * DEGREES and has NO caller pivot — the pivot is always the bbox centre. Undoable.
46
+ *
47
+ * @param components - Entities to rotate
48
+ * @param angleInDegrees - Signed rotation angle in degrees
49
+ * @param options - `axis` (defaults to world +Y), `is2D`
50
+ * @returns {@linkcode PluginDesignChangeResult}
51
+ *
52
+ * @examplePrompt Rotate the selected building 90 degrees
53
+ * @examplePrompt Turn this room 45 degrees clockwise
54
+ * @examplePrompt Spin the furniture block 180 degrees about its centre
55
+ * @examplePrompt Rotate these masses 30 degrees around the vertical axis
56
+ *
57
+ * # Example
58
+ * ```ts
59
+ * await snaptrude.design.transform.rotate(["space-id"], 90)
60
+ * ```
61
+ */
62
+ abstract rotate(components: ComponentHandle[], angleInDegrees: number, options?: {
63
+ axis?: Vec3Handle;
64
+ is2D?: boolean;
65
+ }): PluginApiReturn<PluginDesignChangeResult>;
66
+ }
67
+ /**
68
+ * Arguments for {@linkcode PluginDesignTransformApi.move} (options flattened).
69
+ */
70
+ export declare const PluginDesignMoveArgs: z.ZodObject<{
71
+ components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
72
+ displacement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
73
+ is2D: z.ZodOptional<z.ZodBoolean>;
74
+ trackParentChange: z.ZodOptional<z.ZodBoolean>;
75
+ }, z.core.$strip>;
76
+ export type PluginDesignMoveArgs = z.infer<typeof PluginDesignMoveArgs>;
77
+ /**
78
+ * Arguments for {@linkcode PluginDesignTransformApi.rotate} (options flattened).
79
+ */
80
+ export declare const PluginDesignRotateArgs: z.ZodObject<{
81
+ components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
82
+ angleInDegrees: z.ZodNumber;
83
+ axis: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
84
+ is2D: z.ZodOptional<z.ZodBoolean>;
85
+ }, z.core.$strip>;
86
+ export type PluginDesignRotateArgs = z.infer<typeof PluginDesignRotateArgs>;
87
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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;;;;;;;;GAQG;AACH,8BAAsB,wBAAwB;;IAG5C;;;;;;;;;;;;;;;;;;;;OAoBG;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;;;;;;;;;;;;;;;;;;;;OAoBG;aACa,MAAM,CACpB,UAAU,EAAE,eAAe,EAAE,EAC7B,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,UAAU,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,GAC9C,eAAe,CAAC,wBAAwB,CAAC;CAC7C;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;iBAK/B,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAA;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA"}