@snaptrude/plugin-core 0.2.9 → 0.5.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 (269) hide show
  1. package/AGENTS.md +128 -50
  2. package/CHANGELOG.md +52 -6
  3. package/api-manifest.full.json +3999 -0
  4. package/api-manifest.json +3845 -0
  5. package/dist/api/core/buildings.d.ts +427 -0
  6. package/dist/api/core/buildings.d.ts.map +1 -0
  7. package/dist/api/core/comment/index.d.ts +230 -0
  8. package/dist/api/core/comment/index.d.ts.map +1 -0
  9. package/dist/api/core/geom/create/index.d.ts +247 -0
  10. package/dist/api/core/geom/create/index.d.ts.map +1 -0
  11. package/dist/api/core/geom/delete/index.d.ts +72 -0
  12. package/dist/api/core/geom/delete/index.d.ts.map +1 -0
  13. package/dist/api/core/geom/index.d.ts +24 -23
  14. package/dist/api/core/geom/index.d.ts.map +1 -1
  15. package/dist/api/core/geom/query/arc.d.ts +169 -0
  16. package/dist/api/core/geom/query/arc.d.ts.map +1 -0
  17. package/dist/api/core/geom/query/brep.d.ts +402 -0
  18. package/dist/api/core/geom/query/brep.d.ts.map +1 -0
  19. package/dist/api/core/geom/query/circle.d.ts +378 -0
  20. package/dist/api/core/geom/query/circle.d.ts.map +1 -0
  21. package/dist/api/core/geom/query/contour.d.ts +450 -0
  22. package/dist/api/core/geom/query/contour.d.ts.map +1 -0
  23. package/dist/api/core/geom/query/curve.d.ts +918 -0
  24. package/dist/api/core/geom/query/curve.d.ts.map +1 -0
  25. package/dist/api/core/geom/query/edge.d.ts +128 -0
  26. package/dist/api/core/geom/query/edge.d.ts.map +1 -0
  27. package/dist/api/core/geom/query/face.d.ts +363 -0
  28. package/dist/api/core/geom/query/face.d.ts.map +1 -0
  29. package/dist/api/core/geom/query/halfedge.d.ts +206 -0
  30. package/dist/api/core/geom/query/halfedge.d.ts.map +1 -0
  31. package/dist/api/core/geom/query/index.d.ts +61 -0
  32. package/dist/api/core/geom/query/index.d.ts.map +1 -0
  33. package/dist/api/core/geom/query/profile.d.ts +410 -0
  34. package/dist/api/core/geom/query/profile.d.ts.map +1 -0
  35. package/dist/api/core/geom/query/vertex.d.ts +187 -0
  36. package/dist/api/core/geom/query/vertex.d.ts.map +1 -0
  37. package/dist/api/core/geom/update/contour.d.ts +272 -0
  38. package/dist/api/core/geom/update/contour.d.ts.map +1 -0
  39. package/dist/api/core/geom/update/curve.d.ts +180 -0
  40. package/dist/api/core/geom/update/curve.d.ts.map +1 -0
  41. package/dist/api/core/geom/update/index.d.ts +27 -0
  42. package/dist/api/core/geom/update/index.d.ts.map +1 -0
  43. package/dist/api/core/geom/update/profile.d.ts +329 -0
  44. package/dist/api/core/geom/update/profile.d.ts.map +1 -0
  45. package/dist/api/core/groups.d.ts +485 -0
  46. package/dist/api/core/groups.d.ts.map +1 -0
  47. package/dist/api/core/history/index.d.ts +78 -0
  48. package/dist/api/core/history/index.d.ts.map +1 -0
  49. package/dist/api/core/index.d.ts +46 -1
  50. package/dist/api/core/index.d.ts.map +1 -1
  51. package/dist/api/core/layers.d.ts +402 -0
  52. package/dist/api/core/layers.d.ts.map +1 -0
  53. package/dist/api/core/math/quat.d.ts +111 -128
  54. package/dist/api/core/math/quat.d.ts.map +1 -1
  55. package/dist/api/core/math/vec3.d.ts +120 -102
  56. package/dist/api/core/math/vec3.d.ts.map +1 -1
  57. package/dist/api/core/project/index.d.ts +399 -0
  58. package/dist/api/core/project/index.d.ts.map +1 -0
  59. package/dist/api/core/tags.d.ts +755 -0
  60. package/dist/api/core/tags.d.ts.map +1 -0
  61. package/dist/api/core/units/index.d.ts +175 -0
  62. package/dist/api/core/units/index.d.ts.map +1 -0
  63. package/dist/api/core/zoom/index.d.ts +45 -0
  64. package/dist/api/core/zoom/index.d.ts.map +1 -0
  65. package/dist/api/design/boolean/index.d.ts +168 -0
  66. package/dist/api/design/boolean/index.d.ts.map +1 -0
  67. package/dist/api/design/create/index.d.ts +828 -0
  68. package/dist/api/design/create/index.d.ts.map +1 -0
  69. package/dist/api/design/delete/index.d.ts +63 -0
  70. package/dist/api/design/delete/index.d.ts.map +1 -0
  71. package/dist/api/design/doors/index.d.ts +268 -0
  72. package/dist/api/design/doors/index.d.ts.map +1 -0
  73. package/dist/api/design/edit/index.d.ts +49 -0
  74. package/dist/api/design/edit/index.d.ts.map +1 -0
  75. package/dist/api/design/erase/index.d.ts +160 -0
  76. package/dist/api/design/erase/index.d.ts.map +1 -0
  77. package/dist/api/design/furniture/index.d.ts +123 -0
  78. package/dist/api/design/furniture/index.d.ts.map +1 -0
  79. package/dist/api/design/index.d.ts +153 -0
  80. package/dist/api/design/index.d.ts.map +1 -0
  81. package/dist/api/design/lock.d.ts +41 -0
  82. package/dist/api/design/lock.d.ts.map +1 -0
  83. package/dist/api/design/materials/index.d.ts +297 -0
  84. package/dist/api/design/materials/index.d.ts.map +1 -0
  85. package/dist/api/design/query/geometry/index.d.ts +140 -0
  86. package/dist/api/design/query/geometry/index.d.ts.map +1 -0
  87. package/dist/api/design/query/index.d.ts +1011 -0
  88. package/dist/api/design/query/index.d.ts.map +1 -0
  89. package/dist/api/design/query/spaces.d.ts +221 -0
  90. package/dist/api/design/query/spaces.d.ts.map +1 -0
  91. package/dist/api/design/selection/index.d.ts +138 -0
  92. package/dist/api/design/selection/index.d.ts.map +1 -0
  93. package/dist/api/design/shared.d.ts +38 -0
  94. package/dist/api/design/shared.d.ts.map +1 -0
  95. package/dist/api/design/transform/index.d.ts +87 -0
  96. package/dist/api/design/transform/index.d.ts.map +1 -0
  97. package/dist/api/design/update/index.d.ts +178 -0
  98. package/dist/api/design/update/index.d.ts.map +1 -0
  99. package/dist/api/design/windows/index.d.ts +189 -0
  100. package/dist/api/design/windows/index.d.ts.map +1 -0
  101. package/dist/api/entity/buildableEnvelope.d.ts +51 -23
  102. package/dist/api/entity/buildableEnvelope.d.ts.map +1 -1
  103. package/dist/api/entity/department.d.ts +0 -98
  104. package/dist/api/entity/department.d.ts.map +1 -1
  105. package/dist/api/entity/index.d.ts +4 -9
  106. package/dist/api/entity/index.d.ts.map +1 -1
  107. package/dist/api/entity/referenceLine.d.ts +49 -106
  108. package/dist/api/entity/referenceLine.d.ts.map +1 -1
  109. package/dist/api/entity/space.d.ts +76 -828
  110. package/dist/api/entity/space.d.ts.map +1 -1
  111. package/dist/api/entity/story.d.ts +47 -37
  112. package/dist/api/entity/story.d.ts.map +1 -1
  113. package/dist/api/index.d.ts +17 -17
  114. package/dist/api/index.d.ts.map +1 -1
  115. package/dist/api/presentation/aiInspiration.d.ts +440 -0
  116. package/dist/api/presentation/aiInspiration.d.ts.map +1 -0
  117. package/dist/api/presentation/diagrams.d.ts +81 -0
  118. package/dist/api/presentation/diagrams.d.ts.map +1 -0
  119. package/dist/api/presentation/import.d.ts +113 -0
  120. package/dist/api/presentation/import.d.ts.map +1 -0
  121. package/dist/api/presentation/index.d.ts +46 -0
  122. package/dist/api/presentation/index.d.ts.map +1 -0
  123. package/dist/api/presentation/sheets.d.ts +176 -0
  124. package/dist/api/presentation/sheets.d.ts.map +1 -0
  125. package/dist/api/presentation/views.d.ts +296 -0
  126. package/dist/api/presentation/views.d.ts.map +1 -0
  127. package/dist/api/program/adjacency.d.ts +155 -0
  128. package/dist/api/program/adjacency.d.ts.map +1 -0
  129. package/dist/api/program/areas.d.ts +360 -0
  130. package/dist/api/program/areas.d.ts.map +1 -0
  131. package/dist/api/program/classification.d.ts +135 -0
  132. package/dist/api/program/classification.d.ts.map +1 -0
  133. package/dist/api/program/cores.d.ts +174 -0
  134. package/dist/api/program/cores.d.ts.map +1 -0
  135. package/dist/api/program/departments.d.ts +431 -0
  136. package/dist/api/program/departments.d.ts.map +1 -0
  137. package/dist/api/program/index.d.ts +69 -0
  138. package/dist/api/program/index.d.ts.map +1 -0
  139. package/dist/api/program/layout.d.ts +63 -0
  140. package/dist/api/program/layout.d.ts.map +1 -0
  141. package/dist/api/program/metrics.d.ts +108 -0
  142. package/dist/api/program/metrics.d.ts.map +1 -0
  143. package/dist/api/program/site.d.ts +367 -0
  144. package/dist/api/program/site.d.ts.map +1 -0
  145. package/dist/api/program/spreadsheet.d.ts +2041 -0
  146. package/dist/api/program/spreadsheet.d.ts.map +1 -0
  147. package/dist/handles.d.ts +138 -0
  148. package/dist/handles.d.ts.map +1 -0
  149. package/dist/host-utils.d.ts +7 -5
  150. package/dist/host-utils.d.ts.map +1 -1
  151. package/dist/index.cjs +3897 -1542
  152. package/dist/index.cjs.map +1 -1
  153. package/dist/index.d.ts +1 -0
  154. package/dist/index.d.ts.map +1 -1
  155. package/dist/index.js +3326 -1462
  156. package/dist/index.js.map +1 -1
  157. package/package.json +6 -2
  158. package/scripts/generate-manifest.mjs +193 -0
  159. package/scripts/generate-manifest.test.mjs +193 -0
  160. package/src/api/core/buildings.ts +485 -0
  161. package/src/api/core/comment/index.ts +258 -0
  162. package/src/api/core/geom/create/index.ts +293 -0
  163. package/src/api/core/geom/delete/index.ts +78 -0
  164. package/src/api/core/geom/index.ts +24 -23
  165. package/src/api/core/geom/query/arc.ts +169 -0
  166. package/src/api/core/geom/query/brep.ts +444 -0
  167. package/src/api/core/geom/query/circle.ts +404 -0
  168. package/src/api/core/geom/query/contour.ts +540 -0
  169. package/src/api/core/geom/query/curve.ts +1078 -0
  170. package/src/api/core/geom/query/edge.ts +130 -0
  171. package/src/api/core/geom/query/face.ts +403 -0
  172. package/src/api/core/geom/query/halfedge.ts +210 -0
  173. package/src/api/core/geom/query/index.ts +63 -0
  174. package/src/api/core/geom/query/profile.ts +473 -0
  175. package/src/api/core/geom/query/vertex.ts +205 -0
  176. package/src/api/core/geom/update/contour.ts +315 -0
  177. package/src/api/core/geom/update/curve.ts +209 -0
  178. package/src/api/core/geom/update/index.ts +29 -0
  179. package/src/api/core/geom/update/profile.ts +377 -0
  180. package/src/api/core/groups.ts +521 -0
  181. package/src/api/core/history/index.ts +84 -0
  182. package/src/api/core/index.ts +46 -1
  183. package/src/api/core/layers.ts +333 -0
  184. package/src/api/core/math/quat.ts +112 -235
  185. package/src/api/core/math/vec3.ts +124 -159
  186. package/src/api/core/project/index.ts +418 -0
  187. package/src/api/core/tags.ts +808 -0
  188. package/src/api/core/units/index.ts +164 -0
  189. package/src/api/core/zoom/index.ts +47 -0
  190. package/src/api/design/boolean/index.ts +179 -0
  191. package/src/api/design/create/index.ts +886 -0
  192. package/src/api/design/delete/index.ts +67 -0
  193. package/src/api/design/doors/index.ts +285 -0
  194. package/src/api/design/edit/index.ts +54 -0
  195. package/src/api/design/erase/index.ts +151 -0
  196. package/src/api/design/furniture/index.ts +130 -0
  197. package/src/api/design/index.ts +162 -0
  198. package/src/api/design/lock.ts +42 -0
  199. package/src/api/design/materials/index.ts +301 -0
  200. package/src/api/design/query/geometry/index.ts +166 -0
  201. package/src/api/design/query/index.ts +937 -0
  202. package/src/api/design/query/spaces.ts +132 -0
  203. package/src/api/design/selection/index.ts +144 -0
  204. package/src/api/design/shared.ts +40 -0
  205. package/src/api/design/transform/index.ts +93 -0
  206. package/src/api/design/update/index.ts +117 -0
  207. package/src/api/design/windows/index.ts +207 -0
  208. package/src/api/entity/buildableEnvelope.ts +64 -23
  209. package/src/api/entity/department.ts +0 -113
  210. package/src/api/entity/index.ts +4 -9
  211. package/src/api/entity/referenceLine.ts +50 -38
  212. package/src/api/entity/space.ts +84 -440
  213. package/src/api/entity/story.ts +53 -42
  214. package/src/api/index.ts +17 -17
  215. package/src/api/presentation/aiInspiration.ts +362 -0
  216. package/src/api/presentation/diagrams.ts +84 -0
  217. package/src/api/presentation/import.ts +112 -0
  218. package/src/api/presentation/index.ts +48 -0
  219. package/src/api/presentation/sheets.ts +198 -0
  220. package/src/api/presentation/views.ts +303 -0
  221. package/src/api/program/adjacency.ts +164 -0
  222. package/src/api/program/areas.ts +335 -0
  223. package/src/api/program/classification.ts +138 -0
  224. package/src/api/program/cores.ts +171 -0
  225. package/src/api/program/departments.ts +465 -0
  226. package/src/api/program/index.ts +71 -0
  227. package/src/api/program/layout.ts +68 -0
  228. package/src/api/program/metrics.ts +120 -0
  229. package/src/api/program/site.ts +326 -0
  230. package/src/api/program/spreadsheet.ts +2075 -0
  231. package/src/handles.ts +148 -0
  232. package/src/host-utils.ts +10 -6
  233. package/src/index.ts +1 -0
  234. package/dist/api/core/geom/arc.d.ts +0 -81
  235. package/dist/api/core/geom/arc.d.ts.map +0 -1
  236. package/dist/api/core/geom/curve.d.ts +0 -70
  237. package/dist/api/core/geom/curve.d.ts.map +0 -1
  238. package/dist/api/core/geom/line.d.ts +0 -56
  239. package/dist/api/core/geom/line.d.ts.map +0 -1
  240. package/dist/api/core/geom/profile.d.ts +0 -121
  241. package/dist/api/core/geom/profile.d.ts.map +0 -1
  242. package/dist/api/documentation/aiInspiration.d.ts +0 -2155
  243. package/dist/api/documentation/aiInspiration.d.ts.map +0 -1
  244. package/dist/api/documentation/index.d.ts +0 -13
  245. package/dist/api/documentation/index.d.ts.map +0 -1
  246. package/dist/api/tools/copy.d.ts +0 -59
  247. package/dist/api/tools/copy.d.ts.map +0 -1
  248. package/dist/api/tools/index.d.ts +0 -29
  249. package/dist/api/tools/index.d.ts.map +0 -1
  250. package/dist/api/tools/offset.d.ts +0 -43
  251. package/dist/api/tools/offset.d.ts.map +0 -1
  252. package/dist/api/tools/selection.d.ts +0 -48
  253. package/dist/api/tools/selection.d.ts.map +0 -1
  254. package/dist/api/tools/transform.d.ts +0 -114
  255. package/dist/api/tools/transform.d.ts.map +0 -1
  256. package/dist/api/units/index.d.ts +0 -163
  257. package/dist/api/units/index.d.ts.map +0 -1
  258. package/src/api/core/geom/arc.ts +0 -70
  259. package/src/api/core/geom/curve.ts +0 -41
  260. package/src/api/core/geom/line.ts +0 -53
  261. package/src/api/core/geom/profile.ts +0 -94
  262. package/src/api/documentation/aiInspiration.ts +0 -871
  263. package/src/api/documentation/index.ts +0 -15
  264. package/src/api/tools/copy.ts +0 -55
  265. package/src/api/tools/index.ts +0 -35
  266. package/src/api/tools/offset.ts +0 -43
  267. package/src/api/tools/selection.ts +0 -51
  268. package/src/api/tools/transform.ts +0 -117
  269. 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.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;AAOlE,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;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAA;AAMD,qFAAqF;AACrF,eAAO,MAAM,8BAA8B;;iBAEzC,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,8BAA8B,CACtC,CAAA;AAED,0DAA0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zB,eAAe,CAAC,sBAAsB,CAAC;IAE1C;;;;;;;;;;;;;;;;;;;OAmBG;aACa,OAAO,CACrB,SAAS,EAAE,eAAe,GACzB,eAAe,CAAC,wBAAwB,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
+ height: "height";
94
+ depth: "depth";
95
+ innerProfiles: "innerProfiles";
96
+ room_type: "room_type";
97
+ area: "area";
98
+ breadth: "breadth";
99
+ massType: "massType";
100
+ spaceType: "spaceType";
101
+ areaClass: "areaClass";
102
+ storey: "storey";
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
+ height: "height";
130
+ depth: "depth";
131
+ innerProfiles: "innerProfiles";
132
+ room_type: "room_type";
133
+ area: "area";
134
+ breadth: "breadth";
135
+ massType: "massType";
136
+ spaceType: "spaceType";
137
+ areaClass: "areaClass";
138
+ storey: "storey";
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
+ height: z.ZodOptional<z.ZodNumber>;
166
+ depth: z.ZodOptional<z.ZodNumber>;
167
+ 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>>]>>>>;
168
+ room_type: z.ZodOptional<z.ZodString>;
169
+ area: z.ZodOptional<z.ZodNumber>;
170
+ breadth: z.ZodOptional<z.ZodNumber>;
171
+ massType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
+ spaceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
173
+ Room: "Room";
174
+ "Program Block": "Program Block";
175
+ Balcony: "Balcony";
176
+ Road: "Road";
177
+ Garden: "Garden";
178
+ Deck: "Deck";
179
+ Pool: "Pool";
180
+ Walkway: "Walkway";
181
+ Envelope: "Envelope";
182
+ Parking: "Parking";
183
+ }>>>;
184
+ areaClass: z.ZodOptional<z.ZodEnum<{
185
+ NET: "NET";
186
+ GROSS: "GROSS";
187
+ EXCLUDED: "EXCLUDED";
188
+ }>>;
189
+ storey: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
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 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,gCAAgC,CACxC,CAAA"}
@@ -0,0 +1,138 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../../types";
3
+ import { ComponentHandle } from "../../../handles";
4
+ import { PluginDesignChangeResult } from "../lock";
5
+ /**
6
+ * `snaptrude.design.selection` — read and mutate the current scene selection.
7
+ *
8
+ * Selection targets are {@linkcode ComponentHandle}s. `get` is the one sanctioned
9
+ * `get`-returns-array accessor (§4.1(3)). The mutators (`set`/`add`/`remove`/`clear`)
10
+ * change the live selection and return the resulting selection snapshot — they are
11
+ * **not undoable** (the engine fires a selection listener, no command), so the
12
+ * returned {@linkcode PluginDesignChangeResult} is a committed-state snapshot.
13
+ */
14
+ export declare abstract class PluginDesignSelectionApi {
15
+ constructor();
16
+ /**
17
+ * Read the current scene selection — the entities the user (or a previous
18
+ * call) has selected, returned as handles you can pass straight into other
19
+ * API calls.
20
+ *
21
+ * @returns The selection as {@linkcode ComponentHandle}`[]` (`[]` when nothing is selected)
22
+ *
23
+ * @examplePrompt What do I have selected right now?
24
+ * @examplePrompt List the currently selected objects
25
+ * @examplePrompt Which rooms are selected in the scene?
26
+ * @examplePrompt Get the ids of everything I've selected
27
+ * @examplePrompt Is anything selected?
28
+ *
29
+ * # Example
30
+ * ```ts
31
+ * // Selection handles feed straight into other API calls
32
+ * const selection = await snaptrude.design.selection.get()
33
+ * if (selection.length > 0) {
34
+ * const props = await snaptrude.design.query.getProperties(selection[0])
35
+ * }
36
+ * ```
37
+ */
38
+ abstract get(): PluginApiReturn<ComponentHandle[]>;
39
+ /**
40
+ * Replace the selection with exactly the given entities — anything
41
+ * previously selected is deselected first, so afterwards only these
42
+ * entities are selected.
43
+ *
44
+ * @param components The entities to select
45
+ * @returns The resulting selection snapshot
46
+ *
47
+ * @examplePrompt Select these three walls
48
+ * @examplePrompt Select only the kitchen and deselect everything else
49
+ * @examplePrompt Change the selection to just these rooms
50
+ * @examplePrompt Highlight the spaces on the second storey
51
+ *
52
+ * # Example
53
+ * ```ts
54
+ * // Select only the ground-storey walls (replaces the previous selection)
55
+ * const walls = await snaptrude.design.query.listWalls({ storeys: [1] })
56
+ * const { affected } = await snaptrude.design.selection.set(walls)
57
+ * ```
58
+ */
59
+ abstract set(components: ComponentHandle[]): PluginApiReturn<PluginDesignChangeResult>;
60
+ /**
61
+ * Add entities to the current selection without deselecting anything — the
62
+ * selection grows to include the given entities alongside whatever was
63
+ * already selected.
64
+ *
65
+ * @param components The entities to add to the selection
66
+ * @returns The resulting selection snapshot
67
+ *
68
+ * @examplePrompt Add the corridor to my current selection
69
+ * @examplePrompt Select these columns too, keeping what's already selected
70
+ * @examplePrompt Also select the roof
71
+ * @examplePrompt Extend the selection to include all the doors on this floor
72
+ *
73
+ * # Example
74
+ * ```ts
75
+ * // Grow the selection to include every roof, keeping what's already selected
76
+ * const roofs = await snaptrude.design.query.listRoofs()
77
+ * await snaptrude.design.selection.add(roofs)
78
+ * ```
79
+ */
80
+ abstract add(components: ComponentHandle[]): PluginApiReturn<PluginDesignChangeResult>;
81
+ /**
82
+ * Remove entities from the current selection — the given entities are
83
+ * deselected while everything else stays selected.
84
+ *
85
+ * @param components The entities to remove from the selection
86
+ * @returns The resulting selection snapshot
87
+ *
88
+ * @examplePrompt Deselect the stair core but keep the rest selected
89
+ * @examplePrompt Remove these walls from my selection
90
+ * @examplePrompt Take the furniture out of the current selection
91
+ * @examplePrompt Unselect the two smaller rooms
92
+ *
93
+ * # Example
94
+ * ```ts
95
+ * // Deselect the furniture while keeping everything else selected
96
+ * const furniture = await snaptrude.design.query.listFurniture({ isSelected: true })
97
+ * await snaptrude.design.selection.remove(furniture)
98
+ * ```
99
+ */
100
+ abstract remove(components: ComponentHandle[]): PluginApiReturn<PluginDesignChangeResult>;
101
+ /**
102
+ * Clear the selection so nothing is selected (equivalent to `set([])`).
103
+ *
104
+ * @returns The resulting (empty) selection snapshot
105
+ *
106
+ * @examplePrompt Deselect everything
107
+ * @examplePrompt Clear my current selection
108
+ * @examplePrompt Unselect all objects in the scene
109
+ * @examplePrompt Make sure nothing is selected before we start
110
+ *
111
+ * # Example
112
+ * ```ts
113
+ * const { affected } = await snaptrude.design.selection.clear()
114
+ * // affected is the resulting selection — always [] here
115
+ * ```
116
+ */
117
+ abstract clear(): PluginApiReturn<PluginDesignChangeResult>;
118
+ }
119
+ /**
120
+ * Arguments for {@linkcode PluginDesignSelectionApi.set}.
121
+ *
122
+ * | Property | Type | Description |
123
+ * |---|---|---|
124
+ * | `components` | {@linkcode ComponentHandle}`[]` | The entities to select |
125
+ */
126
+ export declare const PluginDesignSelectionSetArgs: z.ZodObject<{
127
+ components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
128
+ }, z.core.$strip>;
129
+ export type PluginDesignSelectionSetArgs = z.infer<typeof PluginDesignSelectionSetArgs>;
130
+ export declare const PluginDesignSelectionAddArgs: z.ZodObject<{
131
+ components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
132
+ }, z.core.$strip>;
133
+ export type PluginDesignSelectionAddArgs = z.infer<typeof PluginDesignSelectionAddArgs>;
134
+ export declare const PluginDesignSelectionRemoveArgs: z.ZodObject<{
135
+ components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
136
+ }, z.core.$strip>;
137
+ export type PluginDesignSelectionRemoveArgs = z.infer<typeof PluginDesignSelectionRemoveArgs>;
138
+ //# 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;;;;;;;;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;CACnE;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"}