@snaptrude/plugin-core 0.0.0-bimsvg-20260928124803

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 (383) hide show
  1. package/AGENTS.md +231 -0
  2. package/CHANGELOG.md +341 -0
  3. package/CLAUDE.md +11 -0
  4. package/api-manifest.json +9120 -0
  5. package/dist/api/analysis/daylight.d.ts +603 -0
  6. package/dist/api/analysis/daylight.d.ts.map +1 -0
  7. package/dist/api/analysis/heatmaps.d.ts +658 -0
  8. package/dist/api/analysis/heatmaps.d.ts.map +1 -0
  9. package/dist/api/analysis/illuminance.d.ts +145 -0
  10. package/dist/api/analysis/illuminance.d.ts.map +1 -0
  11. package/dist/api/analysis/index.d.ts +59 -0
  12. package/dist/api/analysis/index.d.ts.map +1 -0
  13. package/dist/api/analysis/shadows.d.ts +165 -0
  14. package/dist/api/analysis/shadows.d.ts.map +1 -0
  15. package/dist/api/analysis/solar.d.ts +249 -0
  16. package/dist/api/analysis/solar.d.ts.map +1 -0
  17. package/dist/api/analysis/sunlightHours.d.ts +208 -0
  18. package/dist/api/analysis/sunlightHours.d.ts.map +1 -0
  19. package/dist/api/analysis/sunpath.d.ts +80 -0
  20. package/dist/api/analysis/sunpath.d.ts.map +1 -0
  21. package/dist/api/analysis/weather.d.ts +193 -0
  22. package/dist/api/analysis/weather.d.ts.map +1 -0
  23. package/dist/api/core/buildings.d.ts +427 -0
  24. package/dist/api/core/buildings.d.ts.map +1 -0
  25. package/dist/api/core/camera/index.d.ts +261 -0
  26. package/dist/api/core/camera/index.d.ts.map +1 -0
  27. package/dist/api/core/comment/index.d.ts +333 -0
  28. package/dist/api/core/comment/index.d.ts.map +1 -0
  29. package/dist/api/core/geom/create/index.d.ts +1073 -0
  30. package/dist/api/core/geom/create/index.d.ts.map +1 -0
  31. package/dist/api/core/geom/delete/index.d.ts +78 -0
  32. package/dist/api/core/geom/delete/index.d.ts.map +1 -0
  33. package/dist/api/core/geom/index.d.ts +33 -0
  34. package/dist/api/core/geom/index.d.ts.map +1 -0
  35. package/dist/api/core/geom/query/arc.d.ts +169 -0
  36. package/dist/api/core/geom/query/arc.d.ts.map +1 -0
  37. package/dist/api/core/geom/query/brep.d.ts +514 -0
  38. package/dist/api/core/geom/query/brep.d.ts.map +1 -0
  39. package/dist/api/core/geom/query/circle.d.ts +378 -0
  40. package/dist/api/core/geom/query/circle.d.ts.map +1 -0
  41. package/dist/api/core/geom/query/contour.d.ts +450 -0
  42. package/dist/api/core/geom/query/contour.d.ts.map +1 -0
  43. package/dist/api/core/geom/query/curve.d.ts +918 -0
  44. package/dist/api/core/geom/query/curve.d.ts.map +1 -0
  45. package/dist/api/core/geom/query/edge.d.ts +128 -0
  46. package/dist/api/core/geom/query/edge.d.ts.map +1 -0
  47. package/dist/api/core/geom/query/face.d.ts +363 -0
  48. package/dist/api/core/geom/query/face.d.ts.map +1 -0
  49. package/dist/api/core/geom/query/halfedge.d.ts +206 -0
  50. package/dist/api/core/geom/query/halfedge.d.ts.map +1 -0
  51. package/dist/api/core/geom/query/index.d.ts +61 -0
  52. package/dist/api/core/geom/query/index.d.ts.map +1 -0
  53. package/dist/api/core/geom/query/profile.d.ts +410 -0
  54. package/dist/api/core/geom/query/profile.d.ts.map +1 -0
  55. package/dist/api/core/geom/query/vertex.d.ts +187 -0
  56. package/dist/api/core/geom/query/vertex.d.ts.map +1 -0
  57. package/dist/api/core/geom/update/contour.d.ts +272 -0
  58. package/dist/api/core/geom/update/contour.d.ts.map +1 -0
  59. package/dist/api/core/geom/update/curve.d.ts +180 -0
  60. package/dist/api/core/geom/update/curve.d.ts.map +1 -0
  61. package/dist/api/core/geom/update/index.d.ts +27 -0
  62. package/dist/api/core/geom/update/index.d.ts.map +1 -0
  63. package/dist/api/core/geom/update/profile.d.ts +329 -0
  64. package/dist/api/core/geom/update/profile.d.ts.map +1 -0
  65. package/dist/api/core/groups.d.ts +485 -0
  66. package/dist/api/core/groups.d.ts.map +1 -0
  67. package/dist/api/core/handles/index.d.ts +210 -0
  68. package/dist/api/core/handles/index.d.ts.map +1 -0
  69. package/dist/api/core/history/index.d.ts +78 -0
  70. package/dist/api/core/history/index.d.ts.map +1 -0
  71. package/dist/api/core/index.d.ts +97 -0
  72. package/dist/api/core/index.d.ts.map +1 -0
  73. package/dist/api/core/io/export/index.d.ts +134 -0
  74. package/dist/api/core/io/export/index.d.ts.map +1 -0
  75. package/dist/api/core/io/import/index.d.ts +455 -0
  76. package/dist/api/core/io/import/index.d.ts.map +1 -0
  77. package/dist/api/core/io/index.d.ts +40 -0
  78. package/dist/api/core/io/index.d.ts.map +1 -0
  79. package/dist/api/core/io/job/index.d.ts +139 -0
  80. package/dist/api/core/io/job/index.d.ts.map +1 -0
  81. package/dist/api/core/io/query/index.d.ts +74 -0
  82. package/dist/api/core/io/query/index.d.ts.map +1 -0
  83. package/dist/api/core/io/terrain/index.d.ts +341 -0
  84. package/dist/api/core/io/terrain/index.d.ts.map +1 -0
  85. package/dist/api/core/io/underlay/index.d.ts +805 -0
  86. package/dist/api/core/io/underlay/index.d.ts.map +1 -0
  87. package/dist/api/core/layers.d.ts +402 -0
  88. package/dist/api/core/layers.d.ts.map +1 -0
  89. package/dist/api/core/math/index.d.ts +18 -0
  90. package/dist/api/core/math/index.d.ts.map +1 -0
  91. package/dist/api/core/math/quat.d.ts +170 -0
  92. package/dist/api/core/math/quat.d.ts.map +1 -0
  93. package/dist/api/core/math/vec3.d.ts +174 -0
  94. package/dist/api/core/math/vec3.d.ts.map +1 -0
  95. package/dist/api/core/mode/index.d.ts +111 -0
  96. package/dist/api/core/mode/index.d.ts.map +1 -0
  97. package/dist/api/core/project/index.d.ts +466 -0
  98. package/dist/api/core/project/index.d.ts.map +1 -0
  99. package/dist/api/core/proposals/index.d.ts +531 -0
  100. package/dist/api/core/proposals/index.d.ts.map +1 -0
  101. package/dist/api/core/storeys/index.d.ts +265 -0
  102. package/dist/api/core/storeys/index.d.ts.map +1 -0
  103. package/dist/api/core/tags.d.ts +860 -0
  104. package/dist/api/core/tags.d.ts.map +1 -0
  105. package/dist/api/core/units/index.d.ts +175 -0
  106. package/dist/api/core/units/index.d.ts.map +1 -0
  107. package/dist/api/core/user.d.ts +44 -0
  108. package/dist/api/core/user.d.ts.map +1 -0
  109. package/dist/api/core/zoom/index.d.ts +49 -0
  110. package/dist/api/core/zoom/index.d.ts.map +1 -0
  111. package/dist/api/design/boolean/index.d.ts +168 -0
  112. package/dist/api/design/boolean/index.d.ts.map +1 -0
  113. package/dist/api/design/create/bulk-items.d.ts +185 -0
  114. package/dist/api/design/create/bulk-items.d.ts.map +1 -0
  115. package/dist/api/design/create/grids.d.ts +132 -0
  116. package/dist/api/design/create/grids.d.ts.map +1 -0
  117. package/dist/api/design/create/index.d.ts +1747 -0
  118. package/dist/api/design/create/index.d.ts.map +1 -0
  119. package/dist/api/design/create/opening-fields.d.ts +37 -0
  120. package/dist/api/design/create/opening-fields.d.ts.map +1 -0
  121. package/dist/api/design/delete/index.d.ts +70 -0
  122. package/dist/api/design/delete/index.d.ts.map +1 -0
  123. package/dist/api/design/dimensions.d.ts +427 -0
  124. package/dist/api/design/dimensions.d.ts.map +1 -0
  125. package/dist/api/design/doors/index.d.ts +470 -0
  126. package/dist/api/design/doors/index.d.ts.map +1 -0
  127. package/dist/api/design/edit/index.d.ts +49 -0
  128. package/dist/api/design/edit/index.d.ts.map +1 -0
  129. package/dist/api/design/erase/index.d.ts +160 -0
  130. package/dist/api/design/erase/index.d.ts.map +1 -0
  131. package/dist/api/design/family.d.ts +611 -0
  132. package/dist/api/design/family.d.ts.map +1 -0
  133. package/dist/api/design/furniture/index.d.ts +296 -0
  134. package/dist/api/design/furniture/index.d.ts.map +1 -0
  135. package/dist/api/design/grids.d.ts +237 -0
  136. package/dist/api/design/grids.d.ts.map +1 -0
  137. package/dist/api/design/index.d.ts +260 -0
  138. package/dist/api/design/index.d.ts.map +1 -0
  139. package/dist/api/design/lock.d.ts +67 -0
  140. package/dist/api/design/lock.d.ts.map +1 -0
  141. package/dist/api/design/materials/index.d.ts +551 -0
  142. package/dist/api/design/materials/index.d.ts.map +1 -0
  143. package/dist/api/design/query/geometry/index.d.ts +252 -0
  144. package/dist/api/design/query/geometry/index.d.ts.map +1 -0
  145. package/dist/api/design/query/grids.d.ts +287 -0
  146. package/dist/api/design/query/grids.d.ts.map +1 -0
  147. package/dist/api/design/query/index.d.ts +1318 -0
  148. package/dist/api/design/query/index.d.ts.map +1 -0
  149. package/dist/api/design/query/referenceLines.d.ts +45 -0
  150. package/dist/api/design/query/referenceLines.d.ts.map +1 -0
  151. package/dist/api/design/query/spaces.d.ts +394 -0
  152. package/dist/api/design/query/spaces.d.ts.map +1 -0
  153. package/dist/api/design/selection/index.d.ts +282 -0
  154. package/dist/api/design/selection/index.d.ts.map +1 -0
  155. package/dist/api/design/shared.d.ts +38 -0
  156. package/dist/api/design/shared.d.ts.map +1 -0
  157. package/dist/api/design/transform/index.d.ts +249 -0
  158. package/dist/api/design/transform/index.d.ts.map +1 -0
  159. package/dist/api/design/types/index.d.ts +181 -0
  160. package/dist/api/design/types/index.d.ts.map +1 -0
  161. package/dist/api/design/update/index.d.ts +803 -0
  162. package/dist/api/design/update/index.d.ts.map +1 -0
  163. package/dist/api/design/visibility.d.ts +126 -0
  164. package/dist/api/design/visibility.d.ts.map +1 -0
  165. package/dist/api/design/windows/index.d.ts +300 -0
  166. package/dist/api/design/windows/index.d.ts.map +1 -0
  167. package/dist/api/entity/buildableEnvelope.d.ts +265 -0
  168. package/dist/api/entity/buildableEnvelope.d.ts.map +1 -0
  169. package/dist/api/entity/department.d.ts +1 -0
  170. package/dist/api/entity/department.d.ts.map +1 -0
  171. package/dist/api/entity/index.d.ts +28 -0
  172. package/dist/api/entity/index.d.ts.map +1 -0
  173. package/dist/api/entity/referenceLine.d.ts +210 -0
  174. package/dist/api/entity/referenceLine.d.ts.map +1 -0
  175. package/dist/api/entity/space.d.ts +846 -0
  176. package/dist/api/entity/space.d.ts.map +1 -0
  177. package/dist/api/entity/story.d.ts +476 -0
  178. package/dist/api/entity/story.d.ts.map +1 -0
  179. package/dist/api/index.d.ts +45 -0
  180. package/dist/api/index.d.ts.map +1 -0
  181. package/dist/api/presentation/aiInspiration.d.ts +2400 -0
  182. package/dist/api/presentation/aiInspiration.d.ts.map +1 -0
  183. package/dist/api/presentation/annotate.d.ts +483 -0
  184. package/dist/api/presentation/annotate.d.ts.map +1 -0
  185. package/dist/api/presentation/diagrams.d.ts +184 -0
  186. package/dist/api/presentation/diagrams.d.ts.map +1 -0
  187. package/dist/api/presentation/drawings.d.ts +2900 -0
  188. package/dist/api/presentation/drawings.d.ts.map +1 -0
  189. package/dist/api/presentation/export.d.ts +126 -0
  190. package/dist/api/presentation/export.d.ts.map +1 -0
  191. package/dist/api/presentation/import.d.ts +164 -0
  192. package/dist/api/presentation/import.d.ts.map +1 -0
  193. package/dist/api/presentation/index.d.ts +114 -0
  194. package/dist/api/presentation/index.d.ts.map +1 -0
  195. package/dist/api/presentation/placedViews.d.ts +1232 -0
  196. package/dist/api/presentation/placedViews.d.ts.map +1 -0
  197. package/dist/api/presentation/shapes.d.ts +481 -0
  198. package/dist/api/presentation/shapes.d.ts.map +1 -0
  199. package/dist/api/presentation/sheets.d.ts +643 -0
  200. package/dist/api/presentation/sheets.d.ts.map +1 -0
  201. package/dist/api/presentation/slideshow.d.ts +125 -0
  202. package/dist/api/presentation/slideshow.d.ts.map +1 -0
  203. package/dist/api/presentation/tables.d.ts +81 -0
  204. package/dist/api/presentation/tables.d.ts.map +1 -0
  205. package/dist/api/presentation/viewPresets.d.ts +70 -0
  206. package/dist/api/presentation/viewPresets.d.ts.map +1 -0
  207. package/dist/api/presentation/views.d.ts +741 -0
  208. package/dist/api/presentation/views.d.ts.map +1 -0
  209. package/dist/api/program/adjacency.d.ts +155 -0
  210. package/dist/api/program/adjacency.d.ts.map +1 -0
  211. package/dist/api/program/areas.d.ts +450 -0
  212. package/dist/api/program/areas.d.ts.map +1 -0
  213. package/dist/api/program/classification.d.ts +135 -0
  214. package/dist/api/program/classification.d.ts.map +1 -0
  215. package/dist/api/program/cores.d.ts +78 -0
  216. package/dist/api/program/cores.d.ts.map +1 -0
  217. package/dist/api/program/departments.d.ts +487 -0
  218. package/dist/api/program/departments.d.ts.map +1 -0
  219. package/dist/api/program/index.d.ts +71 -0
  220. package/dist/api/program/index.d.ts.map +1 -0
  221. package/dist/api/program/labels.d.ts +355 -0
  222. package/dist/api/program/labels.d.ts.map +1 -0
  223. package/dist/api/program/layout.d.ts +398 -0
  224. package/dist/api/program/layout.d.ts.map +1 -0
  225. package/dist/api/program/metadata.d.ts +328 -0
  226. package/dist/api/program/metadata.d.ts.map +1 -0
  227. package/dist/api/program/metrics.d.ts +108 -0
  228. package/dist/api/program/metrics.d.ts.map +1 -0
  229. package/dist/api/program/site.d.ts +823 -0
  230. package/dist/api/program/site.d.ts.map +1 -0
  231. package/dist/api/program/spreadsheet.d.ts +2628 -0
  232. package/dist/api/program/spreadsheet.d.ts.map +1 -0
  233. package/dist/api/workspace/index.d.ts +552 -0
  234. package/dist/api/workspace/index.d.ts.map +1 -0
  235. package/dist/errors/codes.d.ts +34 -0
  236. package/dist/errors/codes.d.ts.map +1 -0
  237. package/dist/errors/envelope.d.ts +56 -0
  238. package/dist/errors/envelope.d.ts.map +1 -0
  239. package/dist/errors/index.d.ts +6 -0
  240. package/dist/errors/index.d.ts.map +1 -0
  241. package/dist/errors/plugin-error.d.ts +69 -0
  242. package/dist/errors/plugin-error.d.ts.map +1 -0
  243. package/dist/handles.d.ts +229 -0
  244. package/dist/handles.d.ts.map +1 -0
  245. package/dist/host-utils.d.ts +47 -0
  246. package/dist/host-utils.d.ts.map +1 -0
  247. package/dist/index.cjs +8836 -0
  248. package/dist/index.cjs.map +1 -0
  249. package/dist/index.d.ts +6 -0
  250. package/dist/index.d.ts.map +1 -0
  251. package/dist/index.js +7568 -0
  252. package/dist/index.js.map +1 -0
  253. package/dist/types.d.ts +16 -0
  254. package/dist/types.d.ts.map +1 -0
  255. package/package.json +41 -0
  256. package/scripts/generate-manifest.mjs +238 -0
  257. package/scripts/generate-manifest.test.mjs +292 -0
  258. package/src/api/analysis/daylight.ts +470 -0
  259. package/src/api/analysis/heatmaps.ts +683 -0
  260. package/src/api/analysis/illuminance.ts +155 -0
  261. package/src/api/analysis/index.ts +61 -0
  262. package/src/api/analysis/shadows.ts +183 -0
  263. package/src/api/analysis/solar.ts +237 -0
  264. package/src/api/analysis/sunlightHours.ts +211 -0
  265. package/src/api/analysis/sunpath.ts +83 -0
  266. package/src/api/analysis/weather.ts +179 -0
  267. package/src/api/core/buildings.ts +485 -0
  268. package/src/api/core/camera/index.ts +268 -0
  269. package/src/api/core/comment/index.ts +376 -0
  270. package/src/api/core/geom/create/index.ts +1204 -0
  271. package/src/api/core/geom/delete/index.ts +84 -0
  272. package/src/api/core/geom/index.ts +35 -0
  273. package/src/api/core/geom/query/arc.ts +169 -0
  274. package/src/api/core/geom/query/brep.ts +563 -0
  275. package/src/api/core/geom/query/circle.ts +404 -0
  276. package/src/api/core/geom/query/contour.ts +540 -0
  277. package/src/api/core/geom/query/curve.ts +1078 -0
  278. package/src/api/core/geom/query/edge.ts +130 -0
  279. package/src/api/core/geom/query/face.ts +403 -0
  280. package/src/api/core/geom/query/halfedge.ts +210 -0
  281. package/src/api/core/geom/query/index.ts +63 -0
  282. package/src/api/core/geom/query/profile.ts +473 -0
  283. package/src/api/core/geom/query/vertex.ts +205 -0
  284. package/src/api/core/geom/update/contour.ts +315 -0
  285. package/src/api/core/geom/update/curve.ts +209 -0
  286. package/src/api/core/geom/update/index.ts +29 -0
  287. package/src/api/core/geom/update/profile.ts +377 -0
  288. package/src/api/core/groups.ts +521 -0
  289. package/src/api/core/handles/index.ts +233 -0
  290. package/src/api/core/history/index.ts +84 -0
  291. package/src/api/core/index.ts +99 -0
  292. package/src/api/core/io/export/index.ts +126 -0
  293. package/src/api/core/io/import/index.ts +504 -0
  294. package/src/api/core/io/index.ts +42 -0
  295. package/src/api/core/io/job/index.ts +140 -0
  296. package/src/api/core/io/query/index.ts +71 -0
  297. package/src/api/core/io/terrain/index.ts +360 -0
  298. package/src/api/core/io/underlay/index.ts +705 -0
  299. package/src/api/core/layers.ts +333 -0
  300. package/src/api/core/math/index.ts +20 -0
  301. package/src/api/core/math/quat.ts +172 -0
  302. package/src/api/core/math/vec3.ts +179 -0
  303. package/src/api/core/mode/index.ts +108 -0
  304. package/src/api/core/project/index.ts +479 -0
  305. package/src/api/core/proposals/index.ts +569 -0
  306. package/src/api/core/storeys/index.ts +294 -0
  307. package/src/api/core/tags.ts +911 -0
  308. package/src/api/core/units/index.ts +164 -0
  309. package/src/api/core/user.ts +46 -0
  310. package/src/api/core/zoom/index.ts +51 -0
  311. package/src/api/design/boolean/index.ts +179 -0
  312. package/src/api/design/create/bulk-items.ts +186 -0
  313. package/src/api/design/create/grids.ts +137 -0
  314. package/src/api/design/create/index.ts +1954 -0
  315. package/src/api/design/create/opening-fields.ts +37 -0
  316. package/src/api/design/delete/index.ts +74 -0
  317. package/src/api/design/dimensions.ts +453 -0
  318. package/src/api/design/doors/index.ts +500 -0
  319. package/src/api/design/edit/index.ts +54 -0
  320. package/src/api/design/erase/index.ts +151 -0
  321. package/src/api/design/family.ts +646 -0
  322. package/src/api/design/furniture/index.ts +319 -0
  323. package/src/api/design/grids.ts +237 -0
  324. package/src/api/design/index.ts +274 -0
  325. package/src/api/design/lock.ts +69 -0
  326. package/src/api/design/materials/index.ts +608 -0
  327. package/src/api/design/query/geometry/index.ts +288 -0
  328. package/src/api/design/query/grids.ts +197 -0
  329. package/src/api/design/query/index.ts +1176 -0
  330. package/src/api/design/query/referenceLines.ts +52 -0
  331. package/src/api/design/query/spaces.ts +275 -0
  332. package/src/api/design/selection/index.ts +273 -0
  333. package/src/api/design/shared.ts +40 -0
  334. package/src/api/design/transform/index.ts +254 -0
  335. package/src/api/design/types/index.ts +156 -0
  336. package/src/api/design/update/index.ts +798 -0
  337. package/src/api/design/visibility.ts +143 -0
  338. package/src/api/design/windows/index.ts +333 -0
  339. package/src/api/entity/buildableEnvelope.ts +322 -0
  340. package/src/api/entity/department.ts +0 -0
  341. package/src/api/entity/index.ts +30 -0
  342. package/src/api/entity/referenceLine.ts +235 -0
  343. package/src/api/entity/space.ts +612 -0
  344. package/src/api/entity/story.ts +517 -0
  345. package/src/api/index.ts +47 -0
  346. package/src/api/presentation/aiInspiration.ts +1116 -0
  347. package/src/api/presentation/annotate.ts +417 -0
  348. package/src/api/presentation/diagrams.ts +194 -0
  349. package/src/api/presentation/drawings.ts +529 -0
  350. package/src/api/presentation/export.ts +133 -0
  351. package/src/api/presentation/import.ts +159 -0
  352. package/src/api/presentation/index.ts +129 -0
  353. package/src/api/presentation/placedViews.ts +1203 -0
  354. package/src/api/presentation/shapes.ts +274 -0
  355. package/src/api/presentation/sheets.ts +616 -0
  356. package/src/api/presentation/slideshow.ts +134 -0
  357. package/src/api/presentation/tables.ts +84 -0
  358. package/src/api/presentation/viewPresets.ts +83 -0
  359. package/src/api/presentation/views.ts +698 -0
  360. package/src/api/program/adjacency.ts +164 -0
  361. package/src/api/program/areas.ts +408 -0
  362. package/src/api/program/classification.ts +138 -0
  363. package/src/api/program/cores.ts +83 -0
  364. package/src/api/program/departments.ts +517 -0
  365. package/src/api/program/index.ts +73 -0
  366. package/src/api/program/labels.ts +332 -0
  367. package/src/api/program/layout.ts +422 -0
  368. package/src/api/program/metadata.ts +364 -0
  369. package/src/api/program/metrics.ts +120 -0
  370. package/src/api/program/site.ts +748 -0
  371. package/src/api/program/spreadsheet.ts +2698 -0
  372. package/src/api/workspace/index.ts +612 -0
  373. package/src/errors/codes.ts +136 -0
  374. package/src/errors/envelope.ts +75 -0
  375. package/src/errors/index.ts +21 -0
  376. package/src/errors/plugin-error.ts +134 -0
  377. package/src/handles.ts +282 -0
  378. package/src/host-utils.ts +68 -0
  379. package/src/index.ts +5 -0
  380. package/src/types.ts +16 -0
  381. package/test/errors.test.mjs +184 -0
  382. package/tsconfig.json +22 -0
  383. package/tsup.config.ts +12 -0
@@ -0,0 +1,643 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../types";
3
+ /**
4
+ * Presentation sheets — the layout sheets a presentation is assembled on.
5
+ *
6
+ * A **sheet** is a page in Present mode that views and diagrams are placed onto.
7
+ * These methods require **Present mode to be open** (the documentation editor) —
8
+ * reads return `[]`/`null` and writes throw when it is not.
9
+ *
10
+ * `list`/`get` are reads; the rest mutate and require Present mode to be open:
11
+ * `create` adds a sheet, `place` drops a saved view onto a sheet as a live
12
+ * linked view shape, `rename` relabels a sheet, `delete` removes one, `reorder`
13
+ * moves one in the sheet order, `setActive` navigates to one, and
14
+ * `updatePlacedView` re-renders placed views to the current model.
15
+ *
16
+ * Accessed via `snaptrude.presentation.sheets`.
17
+ */
18
+ export declare abstract class PluginPresentationSheetsApi {
19
+ constructor();
20
+ /**
21
+ * List the layout sheets in the presentation.
22
+ *
23
+ * @returns A {@linkcode PluginPresentationSheetsListResult} with a `sheets`
24
+ * array (empty when Present mode is closed or there are no sheets).
25
+ *
26
+ * @examplePrompt List all the sheets
27
+ * @examplePrompt How many layout sheets are there?
28
+ * @examplePrompt Show me the presentation sheets
29
+ * @examplePrompt What sheets can I place views on?
30
+ *
31
+ * # Example
32
+ * ```ts
33
+ * const { sheets } = await snaptrude.presentation.sheets.list()
34
+ * ```
35
+ */
36
+ abstract list(): PluginApiReturn<PluginPresentationSheetsListResult>;
37
+ /**
38
+ * Get a single sheet by id.
39
+ *
40
+ * @param sheetId - The id of the sheet to read.
41
+ * @returns The matching {@linkcode PluginPresentationSheet}, or `null`.
42
+ *
43
+ * @examplePrompt Get the sheet with id sheet_1
44
+ * @examplePrompt Find the sheet called Cover
45
+ * @examplePrompt Look up a layout sheet by id
46
+ *
47
+ * # Example
48
+ * ```ts
49
+ * const sheet = await snaptrude.presentation.sheets.get("sheet_1")
50
+ * ```
51
+ */
52
+ abstract get(sheetId: string): PluginApiReturn<PluginPresentationSheetsGetResult>;
53
+ /**
54
+ * Create a new layout sheet.
55
+ *
56
+ * Optionally sets the paper size and orientation — the same presets as the
57
+ * sheet header's size dropdown (ANSI A–E, Arch A–E1, ISO A4–A0). When `size`
58
+ * is omitted the sheet inherits the editor session's last-used size
59
+ * (initially ANSI B) in landscape, so pass `size` explicitly whenever the
60
+ * output format matters.
61
+ *
62
+ * Requires Present mode to be open.
63
+ *
64
+ * @param name - Display name for the new sheet (optional).
65
+ * @param options - Optional `size` ({@linkcode PluginSheetSize} paper preset)
66
+ * and `orientation` ({@linkcode PluginSheetOrientation}; `"landscape"` when
67
+ * omitted).
68
+ * @returns The newly created {@linkcode PluginPresentationSheet}.
69
+ * @throws If Present mode is not open.
70
+ *
71
+ * @examplePrompt Create a new sheet called Cover
72
+ * @examplePrompt Add an A3 landscape layout sheet
73
+ * @examplePrompt Make a new ANSI D presentation sheet named Floor Plans
74
+ * @examplePrompt Create a portrait A4 sheet
75
+ *
76
+ * # Example
77
+ * ```ts
78
+ * const sheet = await snaptrude.presentation.sheets.create("Cover", {
79
+ * size: "ISO_A3",
80
+ * orientation: "landscape",
81
+ * })
82
+ * ```
83
+ */
84
+ abstract create(name?: string, options?: {
85
+ size?: PluginSheetSize;
86
+ orientation?: PluginSheetOrientation;
87
+ }): PluginApiReturn<PluginPresentationSheet>;
88
+ /**
89
+ * Set a sheet's paper size and/or orientation.
90
+ *
91
+ * Applies one of the standard paper presets — exactly what the sheet header's
92
+ * size dropdown and orientation toggle do. Content that no longer fits inside
93
+ * the resized sheet is moved out onto the canvas (matching the native
94
+ * behavior). Undoable. Does not change the user's remembered default size for
95
+ * new sheets.
96
+ *
97
+ * Requires Present mode to be open.
98
+ *
99
+ * @param sheetId - The id of the sheet to resize.
100
+ * @param size - The paper preset ({@linkcode PluginSheetSize}).
101
+ * @param orientation - Optional {@linkcode PluginSheetOrientation}; keeps the
102
+ * sheet's current orientation when omitted.
103
+ * @returns The updated {@linkcode PluginPresentationSheet}.
104
+ * @throws If Present mode is not open, or the sheet id is invalid.
105
+ *
106
+ * @examplePrompt Resize sheet_1 to A1
107
+ * @examplePrompt Make the cover sheet ANSI B portrait
108
+ * @examplePrompt Change this sheet to Arch D landscape
109
+ * @examplePrompt Set the sheet size to A3
110
+ *
111
+ * # Example
112
+ * ```ts
113
+ * const sheet = await snaptrude.presentation.sheets.setSize("sheet_1", "ISO_A1", "portrait")
114
+ * ```
115
+ */
116
+ abstract setSize(sheetId: string, size: PluginSheetSize, orientation?: PluginSheetOrientation): PluginApiReturn<PluginPresentationSheet>;
117
+ /**
118
+ * Set a sheet's print margin.
119
+ *
120
+ * Applies one of the canonical margin presets — exactly what the sheet
121
+ * header's margin dropdown does. `margin` is unit-agnostic: `0 | 0.25 |
122
+ * 0.5 | 0.75 | 1`, displayed as None / 1/4″ / 1/2″ / 3/4″ / 1″ on imperial
123
+ * projects and None / 5mm / 10mm / 15mm / 20mm on metric ones. One undo
124
+ * step. Requires Present mode to be open.
125
+ *
126
+ * @param sheetId - The id of the sheet.
127
+ * @param margin - The margin preset ({@linkcode PluginSheetMargin}).
128
+ * @returns The updated {@linkcode PluginPresentationSheet}.
129
+ * @throws If Present mode is not open, or the sheet id is invalid.
130
+ *
131
+ * @examplePrompt Set the sheet margin to half an inch
132
+ * @examplePrompt Remove the margins on sheet_1
133
+ * @examplePrompt Give the cover sheet a 10mm margin
134
+ *
135
+ * # Example
136
+ * ```ts
137
+ * const sheet = await snaptrude.presentation.sheets.setMargin("sheet_1", 0.5)
138
+ * ```
139
+ */
140
+ abstract setMargin(sheetId: string, margin: PluginSheetMargin): PluginApiReturn<PluginPresentationSheet>;
141
+ /**
142
+ * Place a saved view onto a sheet.
143
+ *
144
+ * Drops the given view onto the sheet through the **native view drop** — the
145
+ * placed shape is a live linked view (the same shape the Present views panel's
146
+ * drag-drop creates), re-rendered from the current model, so
147
+ * {@linkcode PluginPresentationSheetsApi.updatePlacedView} refreshes it later.
148
+ * 2D and site-plan views are placed at an architectural scale: the closest
149
+ * standard scale by default (the native auto-fit), or the explicit `scale`
150
+ * when given — one of the standard values the placed view's Scale dropdown
151
+ * offers for the project's unit system (metric `10, 20, 50, 100, 150, 200,
152
+ * 250, 500, 1000`; imperial e.g. `48` for 1/4″ = 1′, `96` for 1/8″ = 1′,
153
+ * `120` for 1″ = 10′). 3D views have no scale — passing `scale` for one
154
+ * throws. Requires Present mode to be open.
155
+ *
156
+ * @param sheetId - The id of the sheet to place onto.
157
+ * @param viewId - The id of the saved view to place.
158
+ * @param options - Optional `position` ({@linkcode PluginSheetPosition}) —
159
+ * where to place it (sheet centre when omitted) — and `scale` — a standard
160
+ * scale value for the project's unit system (2D/site-plan views only;
161
+ * auto-fit when omitted).
162
+ * @returns A {@linkcode PluginPresentationSheetsPlaceResult} with the created
163
+ * `shapeId`.
164
+ * @throws If Present mode is not open, the sheet/view id is invalid, `scale`
165
+ * is not a standard value for the project's unit system, or `scale` is
166
+ * passed for a 3D view.
167
+ *
168
+ * @examplePrompt Place the floor plan on Sheet 1
169
+ * @examplePrompt Add this 3D view to the cover sheet
170
+ * @examplePrompt Drop the site plan onto the layout sheet at 100, 200
171
+ * @examplePrompt Put the Ground Floor view on sheet_1 at 1:100 scale
172
+ * @examplePrompt Place the plan on the cover sheet at quarter-inch scale
173
+ *
174
+ * # Example
175
+ * ```ts
176
+ * const { shapeId } = await snaptrude.presentation.sheets.place("sheet_1", "view_123", {
177
+ * scale: 100, // 1:100 (metric project)
178
+ * })
179
+ * ```
180
+ */
181
+ abstract place(sheetId: string, viewId: string, options?: {
182
+ position?: PluginSheetPosition;
183
+ scale?: number;
184
+ }): PluginApiReturn<PluginPresentationSheetsPlaceResult>;
185
+ /**
186
+ * Move an existing drawing onto a sheet without copying or regenerating it.
187
+ *
188
+ * The position is sheet-local and defaults to the sheet centre. The drawing's
189
+ * stable id remains unchanged; `shapeId` therefore identifies the moved drawing.
190
+ *
191
+ * @param sheetId - The id of the destination sheet.
192
+ * @param drawingId - The id of an existing drawing deliverable.
193
+ * @param options - Optional sheet-local `position` (sheet centre when omitted).
194
+ * @returns A {@linkcode PluginPresentationSheetsPlaceResult} containing the drawing shape id.
195
+ * @throws If Present mode is closed, either id is invalid, or the shape is not a drawing.
196
+ *
197
+ * @examplePrompt Move this drawing onto the cover sheet
198
+ * @examplePrompt Place drawing_1 at the center of sheet_2
199
+ */
200
+ abstract placeDrawing(sheetId: string, drawingId: string, options?: {
201
+ position?: PluginSheetPosition;
202
+ }): PluginApiReturn<PluginPresentationSheetsPlaceResult>;
203
+ /**
204
+ * Rename a layout sheet.
205
+ *
206
+ * Sets the sheet's display name — the same label the sheets panel shows and
207
+ * that `list`/`get` read back. Requires Present mode to be open.
208
+ *
209
+ * @param sheetId - The id of the sheet to rename.
210
+ * @param name - The new display name (non-empty after trimming).
211
+ * @returns The updated {@linkcode PluginPresentationSheet}.
212
+ * @throws If Present mode is not open, or the sheet id is invalid.
213
+ *
214
+ * @examplePrompt Rename sheet_1 to Cover
215
+ * @examplePrompt Call the first sheet Ground Floor
216
+ * @examplePrompt Change this sheet's name to Site Plan
217
+ *
218
+ * # Example
219
+ * ```ts
220
+ * const sheet = await snaptrude.presentation.sheets.rename("sheet_1", "Cover")
221
+ * ```
222
+ */
223
+ abstract rename(sheetId: string, name: string): PluginApiReturn<PluginPresentationSheet>;
224
+ /**
225
+ * Delete a layout sheet.
226
+ *
227
+ * Removes the sheet (and its placed content) from the presentation and
228
+ * renumbers the remaining sheets. Requires Present mode to be open. Auto-diagram
229
+ * sheets cannot be deleted through the API — remove those from the Present UI.
230
+ *
231
+ * @param sheetId - The id of the sheet to delete.
232
+ * @returns The id of the deleted sheet
233
+ * (a {@linkcode PluginPresentationSheetsDeleteResult}).
234
+ * @throws If Present mode is not open, the sheet id is invalid, or the sheet is
235
+ * an auto-diagram sheet.
236
+ *
237
+ * @examplePrompt Delete sheet_2
238
+ * @examplePrompt Remove the Cover sheet
239
+ * @examplePrompt Get rid of the last layout sheet
240
+ *
241
+ * # Example
242
+ * ```ts
243
+ * const { id } = await snaptrude.presentation.sheets.delete("sheet_2")
244
+ * ```
245
+ */
246
+ abstract delete(sheetId: string): PluginApiReturn<PluginPresentationSheetsDeleteResult>;
247
+ /**
248
+ * Move a sheet to a new position in the sheet order.
249
+ *
250
+ * Reorders the sheet to the given zero-based `index` (as the sheets panel does
251
+ * when a sheet is dragged) and renumbers the rest. `index` is clamped to the
252
+ * valid range. Requires Present mode to be open.
253
+ *
254
+ * @param sheetId - The id of the sheet to move.
255
+ * @param index - Zero-based target position in the sheet order.
256
+ * @returns The sheets in their new order
257
+ * (a {@linkcode PluginPresentationSheetsListResult}).
258
+ * @throws If Present mode is not open, or the sheet id is invalid.
259
+ *
260
+ * @examplePrompt Move sheet_3 to the front
261
+ * @examplePrompt Make the Cover sheet the first sheet
262
+ * @examplePrompt Reorder this sheet to position 2
263
+ *
264
+ * # Example
265
+ * ```ts
266
+ * const { sheets } = await snaptrude.presentation.sheets.reorder("sheet_3", 0)
267
+ * ```
268
+ */
269
+ abstract reorder(sheetId: string, index: number): PluginApiReturn<PluginPresentationSheetsListResult>;
270
+ /**
271
+ * Make a sheet the active sheet.
272
+ *
273
+ * Selects the sheet in the sheets panel and navigates the Present canvas to it
274
+ * (the same as clicking it in the panel). Requires Present mode to be open.
275
+ *
276
+ * @param sheetId - The id of the sheet to activate.
277
+ * @returns The now-active {@linkcode PluginPresentationSheet}.
278
+ * @throws If Present mode is not open, or the sheet id is invalid.
279
+ *
280
+ * @examplePrompt Go to sheet_1
281
+ * @examplePrompt Open the Cover sheet
282
+ * @examplePrompt Switch to the Site Plan sheet
283
+ *
284
+ * # Example
285
+ * ```ts
286
+ * await snaptrude.presentation.sheets.setActive("sheet_1")
287
+ * ```
288
+ */
289
+ abstract setActive(sheetId: string): PluginApiReturn<PluginPresentationSheet>;
290
+ /**
291
+ * Refresh placed views to the current model state.
292
+ *
293
+ * Re-renders the presentation's placed **views** — the live linked view shapes —
294
+ * from the current model (the "Update views" action). Views placed with
295
+ * {@linkcode PluginPresentationSheetsApi.place} are live view shapes too, so
296
+ * they refresh along with panel-dropped ones. Pass `sheetId` to refresh only
297
+ * the views on that sheet, or omit it to refresh every placed view. Requires
298
+ * Present mode to be open.
299
+ *
300
+ * @param options - Optional `sheetId` — restrict the refresh to one sheet's
301
+ * placed views (all placed views when omitted).
302
+ * @returns The ids of the placed view shapes submitted for refresh
303
+ * (a {@linkcode PluginPresentationSheetsUpdatePlacedViewResult}).
304
+ * @throws If Present mode is not open, or `sheetId` is given but invalid.
305
+ *
306
+ * @examplePrompt Update all the placed views to the latest model
307
+ * @examplePrompt Refresh the views on sheet_1
308
+ * @examplePrompt Re-render the placed views after my edits
309
+ *
310
+ * # Example
311
+ * ```ts
312
+ * const { shapeIds } = await snaptrude.presentation.sheets.updatePlacedView()
313
+ * ```
314
+ */
315
+ abstract updatePlacedView(options?: {
316
+ sheetId?: string;
317
+ }): PluginApiReturn<PluginPresentationSheetsUpdatePlacedViewResult>;
318
+ }
319
+ /**
320
+ * Standard paper-size presets for layout sheets — identical to the sheet
321
+ * header's size dropdown in Present mode.
322
+ */
323
+ export declare const PluginSheetSize: z.ZodEnum<{
324
+ ANSI_A: "ANSI_A";
325
+ ANSI_B: "ANSI_B";
326
+ ANSI_C: "ANSI_C";
327
+ ANSI_D: "ANSI_D";
328
+ ANSI_E: "ANSI_E";
329
+ ARCH_A: "ARCH_A";
330
+ ARCH_B: "ARCH_B";
331
+ ARCH_C: "ARCH_C";
332
+ ARCH_D: "ARCH_D";
333
+ ARCH_E: "ARCH_E";
334
+ ARCH_E1: "ARCH_E1";
335
+ ISO_A4: "ISO_A4";
336
+ ISO_A3: "ISO_A3";
337
+ ISO_A2: "ISO_A2";
338
+ ISO_A1: "ISO_A1";
339
+ ISO_A0: "ISO_A0";
340
+ }>;
341
+ export type PluginSheetSize = z.infer<typeof PluginSheetSize>;
342
+ /** Sheet orientation. */
343
+ export declare const PluginSheetOrientation: z.ZodEnum<{
344
+ landscape: "landscape";
345
+ portrait: "portrait";
346
+ }>;
347
+ export type PluginSheetOrientation = z.infer<typeof PluginSheetOrientation>;
348
+ /**
349
+ * Canonical sheet margin presets — unit-agnostic values matching the sheet
350
+ * header's margin dropdown: `0` (None), `0.25`, `0.5`, `0.75`, `1`.
351
+ * Displayed as None / 1/4″ / 1/2″ / 3/4″ / 1″ on imperial projects and
352
+ * None / 5mm / 10mm / 15mm / 20mm on metric ones.
353
+ */
354
+ export declare const PluginSheetMargin: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<0.75>, z.ZodLiteral<1>]>;
355
+ export type PluginSheetMargin = z.infer<typeof PluginSheetMargin>;
356
+ /**
357
+ * A layout sheet in the presentation.
358
+ *
359
+ * | Property | Type | Description |
360
+ * |---|---|---|
361
+ * | `id` | `string` | Unique sheet id |
362
+ * | `name` | `string` | Display name |
363
+ * | `size` | {@linkcode PluginSheetSize}` \| null` | Paper preset (`null` for a legacy sheet without one) |
364
+ * | `orientation` | {@linkcode PluginSheetOrientation}` \| null` | Orientation (`null` for a legacy sheet) |
365
+ * | `margin` | {@linkcode PluginSheetMargin}` \| null` | Margin preset (`null` when absent/unrecognized) |
366
+ */
367
+ export declare const PluginPresentationSheet: z.ZodObject<{
368
+ id: z.ZodString;
369
+ name: z.ZodString;
370
+ size: z.ZodNullable<z.ZodEnum<{
371
+ ANSI_A: "ANSI_A";
372
+ ANSI_B: "ANSI_B";
373
+ ANSI_C: "ANSI_C";
374
+ ANSI_D: "ANSI_D";
375
+ ANSI_E: "ANSI_E";
376
+ ARCH_A: "ARCH_A";
377
+ ARCH_B: "ARCH_B";
378
+ ARCH_C: "ARCH_C";
379
+ ARCH_D: "ARCH_D";
380
+ ARCH_E: "ARCH_E";
381
+ ARCH_E1: "ARCH_E1";
382
+ ISO_A4: "ISO_A4";
383
+ ISO_A3: "ISO_A3";
384
+ ISO_A2: "ISO_A2";
385
+ ISO_A1: "ISO_A1";
386
+ ISO_A0: "ISO_A0";
387
+ }>>;
388
+ orientation: z.ZodNullable<z.ZodEnum<{
389
+ landscape: "landscape";
390
+ portrait: "portrait";
391
+ }>>;
392
+ margin: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<0.75>, z.ZodLiteral<1>]>>;
393
+ }, z.core.$strip>;
394
+ export type PluginPresentationSheet = z.infer<typeof PluginPresentationSheet>;
395
+ /**
396
+ * A position on a sheet/canvas (sheet coordinates).
397
+ *
398
+ * | Property | Type | Description |
399
+ * |---|---|---|
400
+ * | `x` | `number` | X coordinate |
401
+ * | `y` | `number` | Y coordinate |
402
+ */
403
+ export declare const PluginSheetPosition: z.ZodObject<{
404
+ x: z.ZodNumber;
405
+ y: z.ZodNumber;
406
+ }, z.core.$strip>;
407
+ export type PluginSheetPosition = z.infer<typeof PluginSheetPosition>;
408
+ /** Result of {@linkcode PluginPresentationSheetsApi.list}. */
409
+ export declare const PluginPresentationSheetsListResult: z.ZodObject<{
410
+ sheets: z.ZodArray<z.ZodObject<{
411
+ id: z.ZodString;
412
+ name: z.ZodString;
413
+ size: z.ZodNullable<z.ZodEnum<{
414
+ ANSI_A: "ANSI_A";
415
+ ANSI_B: "ANSI_B";
416
+ ANSI_C: "ANSI_C";
417
+ ANSI_D: "ANSI_D";
418
+ ANSI_E: "ANSI_E";
419
+ ARCH_A: "ARCH_A";
420
+ ARCH_B: "ARCH_B";
421
+ ARCH_C: "ARCH_C";
422
+ ARCH_D: "ARCH_D";
423
+ ARCH_E: "ARCH_E";
424
+ ARCH_E1: "ARCH_E1";
425
+ ISO_A4: "ISO_A4";
426
+ ISO_A3: "ISO_A3";
427
+ ISO_A2: "ISO_A2";
428
+ ISO_A1: "ISO_A1";
429
+ ISO_A0: "ISO_A0";
430
+ }>>;
431
+ orientation: z.ZodNullable<z.ZodEnum<{
432
+ landscape: "landscape";
433
+ portrait: "portrait";
434
+ }>>;
435
+ margin: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<0.75>, z.ZodLiteral<1>]>>;
436
+ }, z.core.$strip>>;
437
+ }, z.core.$strip>;
438
+ export type PluginPresentationSheetsListResult = z.infer<typeof PluginPresentationSheetsListResult>;
439
+ /** Arguments for {@linkcode PluginPresentationSheetsApi.get}. */
440
+ export declare const PluginPresentationSheetsGetArgs: z.ZodObject<{
441
+ id: z.ZodString;
442
+ }, z.core.$strip>;
443
+ export type PluginPresentationSheetsGetArgs = z.infer<typeof PluginPresentationSheetsGetArgs>;
444
+ /** Result of {@linkcode PluginPresentationSheetsApi.get} — the sheet, or `null`. */
445
+ export declare const PluginPresentationSheetsGetResult: z.ZodNullable<z.ZodObject<{
446
+ id: z.ZodString;
447
+ name: z.ZodString;
448
+ size: z.ZodNullable<z.ZodEnum<{
449
+ ANSI_A: "ANSI_A";
450
+ ANSI_B: "ANSI_B";
451
+ ANSI_C: "ANSI_C";
452
+ ANSI_D: "ANSI_D";
453
+ ANSI_E: "ANSI_E";
454
+ ARCH_A: "ARCH_A";
455
+ ARCH_B: "ARCH_B";
456
+ ARCH_C: "ARCH_C";
457
+ ARCH_D: "ARCH_D";
458
+ ARCH_E: "ARCH_E";
459
+ ARCH_E1: "ARCH_E1";
460
+ ISO_A4: "ISO_A4";
461
+ ISO_A3: "ISO_A3";
462
+ ISO_A2: "ISO_A2";
463
+ ISO_A1: "ISO_A1";
464
+ ISO_A0: "ISO_A0";
465
+ }>>;
466
+ orientation: z.ZodNullable<z.ZodEnum<{
467
+ landscape: "landscape";
468
+ portrait: "portrait";
469
+ }>>;
470
+ margin: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<0.75>, z.ZodLiteral<1>]>>;
471
+ }, z.core.$strip>>;
472
+ export type PluginPresentationSheetsGetResult = z.infer<typeof PluginPresentationSheetsGetResult>;
473
+ /** Arguments for {@linkcode PluginPresentationSheetsApi.create}. */
474
+ export declare const PluginPresentationSheetsCreateArgs: z.ZodObject<{
475
+ name: z.ZodOptional<z.ZodString>;
476
+ size: z.ZodOptional<z.ZodEnum<{
477
+ ANSI_A: "ANSI_A";
478
+ ANSI_B: "ANSI_B";
479
+ ANSI_C: "ANSI_C";
480
+ ANSI_D: "ANSI_D";
481
+ ANSI_E: "ANSI_E";
482
+ ARCH_A: "ARCH_A";
483
+ ARCH_B: "ARCH_B";
484
+ ARCH_C: "ARCH_C";
485
+ ARCH_D: "ARCH_D";
486
+ ARCH_E: "ARCH_E";
487
+ ARCH_E1: "ARCH_E1";
488
+ ISO_A4: "ISO_A4";
489
+ ISO_A3: "ISO_A3";
490
+ ISO_A2: "ISO_A2";
491
+ ISO_A1: "ISO_A1";
492
+ ISO_A0: "ISO_A0";
493
+ }>>;
494
+ orientation: z.ZodOptional<z.ZodEnum<{
495
+ landscape: "landscape";
496
+ portrait: "portrait";
497
+ }>>;
498
+ }, z.core.$strip>;
499
+ export type PluginPresentationSheetsCreateArgs = z.infer<typeof PluginPresentationSheetsCreateArgs>;
500
+ /** Arguments for {@linkcode PluginPresentationSheetsApi.setSize}. */
501
+ export declare const PluginPresentationSheetsSetSizeArgs: z.ZodObject<{
502
+ sheetId: z.ZodString;
503
+ size: z.ZodEnum<{
504
+ ANSI_A: "ANSI_A";
505
+ ANSI_B: "ANSI_B";
506
+ ANSI_C: "ANSI_C";
507
+ ANSI_D: "ANSI_D";
508
+ ANSI_E: "ANSI_E";
509
+ ARCH_A: "ARCH_A";
510
+ ARCH_B: "ARCH_B";
511
+ ARCH_C: "ARCH_C";
512
+ ARCH_D: "ARCH_D";
513
+ ARCH_E: "ARCH_E";
514
+ ARCH_E1: "ARCH_E1";
515
+ ISO_A4: "ISO_A4";
516
+ ISO_A3: "ISO_A3";
517
+ ISO_A2: "ISO_A2";
518
+ ISO_A1: "ISO_A1";
519
+ ISO_A0: "ISO_A0";
520
+ }>;
521
+ orientation: z.ZodOptional<z.ZodEnum<{
522
+ landscape: "landscape";
523
+ portrait: "portrait";
524
+ }>>;
525
+ }, z.core.$strip>;
526
+ export type PluginPresentationSheetsSetSizeArgs = z.infer<typeof PluginPresentationSheetsSetSizeArgs>;
527
+ /** Arguments for {@linkcode PluginPresentationSheetsApi.setMargin}. */
528
+ export declare const PluginPresentationSheetsSetMarginArgs: z.ZodObject<{
529
+ sheetId: z.ZodString;
530
+ margin: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<0.75>, z.ZodLiteral<1>]>;
531
+ }, z.core.$strip>;
532
+ export type PluginPresentationSheetsSetMarginArgs = z.infer<typeof PluginPresentationSheetsSetMarginArgs>;
533
+ /**
534
+ * Arguments for {@linkcode PluginPresentationSheetsApi.place}.
535
+ *
536
+ * | Property | Type | Description |
537
+ * |---|---|---|
538
+ * | `sheetId` | `string` | The sheet to place onto |
539
+ * | `viewId` | `string` | The saved view to place |
540
+ * | `position` | {@linkcode PluginSheetPosition}` \| undefined` | Where to place it (sheet centre when omitted) |
541
+ * | `scale` | `number \| undefined` | Standard scale value for the project's unit system (2D/site-plan views only; auto-fit to the closest standard scale when omitted) |
542
+ */
543
+ export declare const PluginPresentationSheetsPlaceArgs: z.ZodObject<{
544
+ sheetId: z.ZodString;
545
+ viewId: z.ZodString;
546
+ position: z.ZodOptional<z.ZodObject<{
547
+ x: z.ZodNumber;
548
+ y: z.ZodNumber;
549
+ }, z.core.$strip>>;
550
+ scale: z.ZodOptional<z.ZodNumber>;
551
+ }, z.core.$strip>;
552
+ export type PluginPresentationSheetsPlaceArgs = z.infer<typeof PluginPresentationSheetsPlaceArgs>;
553
+ /** Arguments for moving an existing drawing onto a sheet. */
554
+ export declare const PluginPresentationSheetsPlaceDrawingArgs: z.ZodObject<{
555
+ sheetId: z.ZodString;
556
+ drawingId: z.ZodString;
557
+ position: z.ZodOptional<z.ZodObject<{
558
+ x: z.ZodNumber;
559
+ y: z.ZodNumber;
560
+ }, z.core.$strip>>;
561
+ }, z.core.$strip>;
562
+ export type PluginPresentationSheetsPlaceDrawingArgs = z.infer<typeof PluginPresentationSheetsPlaceDrawingArgs>;
563
+ /**
564
+ * Result of {@linkcode PluginPresentationSheetsApi.place}.
565
+ *
566
+ * | Property | Type | Description |
567
+ * |---|---|---|
568
+ * | `shapeId` | `string` | Id of the created canvas shape |
569
+ */
570
+ export declare const PluginPresentationSheetsPlaceResult: z.ZodObject<{
571
+ shapeId: z.ZodString;
572
+ }, z.core.$strip>;
573
+ export type PluginPresentationSheetsPlaceResult = z.infer<typeof PluginPresentationSheetsPlaceResult>;
574
+ /**
575
+ * Arguments for {@linkcode PluginPresentationSheetsApi.rename}.
576
+ *
577
+ * | Property | Type | Description |
578
+ * |---|---|---|
579
+ * | `sheetId` | `string` | The sheet to rename |
580
+ * | `name` | `string` | New display name (non-empty after trimming) |
581
+ */
582
+ export declare const PluginPresentationSheetsRenameArgs: z.ZodObject<{
583
+ sheetId: z.ZodString;
584
+ name: z.ZodString;
585
+ }, z.core.$strip>;
586
+ export type PluginPresentationSheetsRenameArgs = z.infer<typeof PluginPresentationSheetsRenameArgs>;
587
+ /** Arguments for {@linkcode PluginPresentationSheetsApi.delete}. */
588
+ export declare const PluginPresentationSheetsDeleteArgs: z.ZodObject<{
589
+ sheetId: z.ZodString;
590
+ }, z.core.$strip>;
591
+ export type PluginPresentationSheetsDeleteArgs = z.infer<typeof PluginPresentationSheetsDeleteArgs>;
592
+ /**
593
+ * Result of {@linkcode PluginPresentationSheetsApi.delete}.
594
+ *
595
+ * | Property | Type | Description |
596
+ * |---|---|---|
597
+ * | `id` | `string` | Id of the deleted sheet |
598
+ */
599
+ export declare const PluginPresentationSheetsDeleteResult: z.ZodObject<{
600
+ id: z.ZodString;
601
+ }, z.core.$strip>;
602
+ export type PluginPresentationSheetsDeleteResult = z.infer<typeof PluginPresentationSheetsDeleteResult>;
603
+ /**
604
+ * Arguments for {@linkcode PluginPresentationSheetsApi.reorder}.
605
+ *
606
+ * | Property | Type | Description |
607
+ * |---|---|---|
608
+ * | `sheetId` | `string` | The sheet to move |
609
+ * | `index` | `number` | Zero-based target position (clamped to range) |
610
+ */
611
+ export declare const PluginPresentationSheetsReorderArgs: z.ZodObject<{
612
+ sheetId: z.ZodString;
613
+ index: z.ZodNumber;
614
+ }, z.core.$strip>;
615
+ export type PluginPresentationSheetsReorderArgs = z.infer<typeof PluginPresentationSheetsReorderArgs>;
616
+ /** Arguments for {@linkcode PluginPresentationSheetsApi.setActive}. */
617
+ export declare const PluginPresentationSheetsSetActiveArgs: z.ZodObject<{
618
+ sheetId: z.ZodString;
619
+ }, z.core.$strip>;
620
+ export type PluginPresentationSheetsSetActiveArgs = z.infer<typeof PluginPresentationSheetsSetActiveArgs>;
621
+ /**
622
+ * Arguments for {@linkcode PluginPresentationSheetsApi.updatePlacedView}.
623
+ *
624
+ * | Property | Type | Description |
625
+ * |---|---|---|
626
+ * | `sheetId` | `string`? | Restrict the refresh to one sheet's placed views |
627
+ */
628
+ export declare const PluginPresentationSheetsUpdatePlacedViewArgs: z.ZodObject<{
629
+ sheetId: z.ZodOptional<z.ZodString>;
630
+ }, z.core.$strip>;
631
+ export type PluginPresentationSheetsUpdatePlacedViewArgs = z.infer<typeof PluginPresentationSheetsUpdatePlacedViewArgs>;
632
+ /**
633
+ * Result of {@linkcode PluginPresentationSheetsApi.updatePlacedView}.
634
+ *
635
+ * | Property | Type | Description |
636
+ * |---|---|---|
637
+ * | `shapeIds` | `string[]` | Ids of the placed view shapes submitted for refresh |
638
+ */
639
+ export declare const PluginPresentationSheetsUpdatePlacedViewResult: z.ZodObject<{
640
+ shapeIds: z.ZodArray<z.ZodString>;
641
+ }, z.core.$strip>;
642
+ export type PluginPresentationSheetsUpdatePlacedViewResult = z.infer<typeof PluginPresentationSheetsUpdatePlacedViewResult>;
643
+ //# sourceMappingURL=sheets.d.ts.map
@@ -0,0 +1 @@
1
+ {"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