@snaptrude/plugin-core 0.0.0-dev-20260708130115

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 (241) hide show
  1. package/AGENTS.md +227 -0
  2. package/CHANGELOG.md +119 -0
  3. package/CLAUDE.md +11 -0
  4. package/api-manifest.json +5004 -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 +33 -0
  14. package/dist/api/core/geom/index.d.ts.map +1 -0
  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 +63 -0
  50. package/dist/api/core/index.d.ts.map +1 -0
  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/index.d.ts +18 -0
  54. package/dist/api/core/math/index.d.ts.map +1 -0
  55. package/dist/api/core/math/quat.d.ts +170 -0
  56. package/dist/api/core/math/quat.d.ts.map +1 -0
  57. package/dist/api/core/math/vec3.d.ts +174 -0
  58. package/dist/api/core/math/vec3.d.ts.map +1 -0
  59. package/dist/api/core/project/index.d.ts +399 -0
  60. package/dist/api/core/project/index.d.ts.map +1 -0
  61. package/dist/api/core/tags.d.ts +755 -0
  62. package/dist/api/core/tags.d.ts.map +1 -0
  63. package/dist/api/core/units/index.d.ts +175 -0
  64. package/dist/api/core/units/index.d.ts.map +1 -0
  65. package/dist/api/core/zoom/index.d.ts +45 -0
  66. package/dist/api/core/zoom/index.d.ts.map +1 -0
  67. package/dist/api/design/boolean/index.d.ts +168 -0
  68. package/dist/api/design/boolean/index.d.ts.map +1 -0
  69. package/dist/api/design/create/index.d.ts +828 -0
  70. package/dist/api/design/create/index.d.ts.map +1 -0
  71. package/dist/api/design/delete/index.d.ts +63 -0
  72. package/dist/api/design/delete/index.d.ts.map +1 -0
  73. package/dist/api/design/doors/index.d.ts +268 -0
  74. package/dist/api/design/doors/index.d.ts.map +1 -0
  75. package/dist/api/design/edit/index.d.ts +49 -0
  76. package/dist/api/design/edit/index.d.ts.map +1 -0
  77. package/dist/api/design/erase/index.d.ts +160 -0
  78. package/dist/api/design/erase/index.d.ts.map +1 -0
  79. package/dist/api/design/furniture/index.d.ts +123 -0
  80. package/dist/api/design/furniture/index.d.ts.map +1 -0
  81. package/dist/api/design/index.d.ts +153 -0
  82. package/dist/api/design/index.d.ts.map +1 -0
  83. package/dist/api/design/lock.d.ts +41 -0
  84. package/dist/api/design/lock.d.ts.map +1 -0
  85. package/dist/api/design/materials/index.d.ts +297 -0
  86. package/dist/api/design/materials/index.d.ts.map +1 -0
  87. package/dist/api/design/query/geometry/index.d.ts +140 -0
  88. package/dist/api/design/query/geometry/index.d.ts.map +1 -0
  89. package/dist/api/design/query/index.d.ts +1011 -0
  90. package/dist/api/design/query/index.d.ts.map +1 -0
  91. package/dist/api/design/query/spaces.d.ts +221 -0
  92. package/dist/api/design/query/spaces.d.ts.map +1 -0
  93. package/dist/api/design/selection/index.d.ts +138 -0
  94. package/dist/api/design/selection/index.d.ts.map +1 -0
  95. package/dist/api/design/shared.d.ts +38 -0
  96. package/dist/api/design/shared.d.ts.map +1 -0
  97. package/dist/api/design/transform/index.d.ts +87 -0
  98. package/dist/api/design/transform/index.d.ts.map +1 -0
  99. package/dist/api/design/update/index.d.ts +178 -0
  100. package/dist/api/design/update/index.d.ts.map +1 -0
  101. package/dist/api/design/windows/index.d.ts +189 -0
  102. package/dist/api/design/windows/index.d.ts.map +1 -0
  103. package/dist/api/entity/buildableEnvelope.d.ts +261 -0
  104. package/dist/api/entity/buildableEnvelope.d.ts.map +1 -0
  105. package/dist/api/entity/department.d.ts +1 -0
  106. package/dist/api/entity/department.d.ts.map +1 -0
  107. package/dist/api/entity/index.d.ts +28 -0
  108. package/dist/api/entity/index.d.ts.map +1 -0
  109. package/dist/api/entity/referenceLine.d.ts +202 -0
  110. package/dist/api/entity/referenceLine.d.ts.map +1 -0
  111. package/dist/api/entity/space.d.ts +846 -0
  112. package/dist/api/entity/space.d.ts.map +1 -0
  113. package/dist/api/entity/story.d.ts +249 -0
  114. package/dist/api/entity/story.d.ts.map +1 -0
  115. package/dist/api/index.d.ts +35 -0
  116. package/dist/api/index.d.ts.map +1 -0
  117. package/dist/api/presentation/aiInspiration.d.ts +2400 -0
  118. package/dist/api/presentation/aiInspiration.d.ts.map +1 -0
  119. package/dist/api/presentation/diagrams.d.ts +81 -0
  120. package/dist/api/presentation/diagrams.d.ts.map +1 -0
  121. package/dist/api/presentation/import.d.ts +113 -0
  122. package/dist/api/presentation/import.d.ts.map +1 -0
  123. package/dist/api/presentation/index.d.ts +45 -0
  124. package/dist/api/presentation/index.d.ts.map +1 -0
  125. package/dist/api/presentation/sheets.d.ts +176 -0
  126. package/dist/api/presentation/sheets.d.ts.map +1 -0
  127. package/dist/api/presentation/views.d.ts +296 -0
  128. package/dist/api/presentation/views.d.ts.map +1 -0
  129. package/dist/api/program/adjacency.d.ts +155 -0
  130. package/dist/api/program/adjacency.d.ts.map +1 -0
  131. package/dist/api/program/areas.d.ts +360 -0
  132. package/dist/api/program/areas.d.ts.map +1 -0
  133. package/dist/api/program/classification.d.ts +135 -0
  134. package/dist/api/program/classification.d.ts.map +1 -0
  135. package/dist/api/program/cores.d.ts +174 -0
  136. package/dist/api/program/cores.d.ts.map +1 -0
  137. package/dist/api/program/departments.d.ts +431 -0
  138. package/dist/api/program/departments.d.ts.map +1 -0
  139. package/dist/api/program/index.d.ts +69 -0
  140. package/dist/api/program/index.d.ts.map +1 -0
  141. package/dist/api/program/layout.d.ts +63 -0
  142. package/dist/api/program/layout.d.ts.map +1 -0
  143. package/dist/api/program/metrics.d.ts +108 -0
  144. package/dist/api/program/metrics.d.ts.map +1 -0
  145. package/dist/api/program/site.d.ts +367 -0
  146. package/dist/api/program/site.d.ts.map +1 -0
  147. package/dist/api/program/spreadsheet.d.ts +2041 -0
  148. package/dist/api/program/spreadsheet.d.ts.map +1 -0
  149. package/dist/handles.d.ts +138 -0
  150. package/dist/handles.d.ts.map +1 -0
  151. package/dist/host-utils.d.ts +43 -0
  152. package/dist/host-utils.d.ts.map +1 -0
  153. package/dist/index.cjs +4597 -0
  154. package/dist/index.cjs.map +1 -0
  155. package/dist/index.d.ts +5 -0
  156. package/dist/index.d.ts.map +1 -0
  157. package/dist/index.js +3870 -0
  158. package/dist/index.js.map +1 -0
  159. package/dist/types.d.ts +16 -0
  160. package/dist/types.d.ts.map +1 -0
  161. package/package.json +39 -0
  162. package/scripts/generate-manifest.mjs +193 -0
  163. package/scripts/generate-manifest.test.mjs +193 -0
  164. package/src/api/core/buildings.ts +485 -0
  165. package/src/api/core/comment/index.ts +258 -0
  166. package/src/api/core/geom/create/index.ts +293 -0
  167. package/src/api/core/geom/delete/index.ts +78 -0
  168. package/src/api/core/geom/index.ts +35 -0
  169. package/src/api/core/geom/query/arc.ts +169 -0
  170. package/src/api/core/geom/query/brep.ts +444 -0
  171. package/src/api/core/geom/query/circle.ts +404 -0
  172. package/src/api/core/geom/query/contour.ts +540 -0
  173. package/src/api/core/geom/query/curve.ts +1078 -0
  174. package/src/api/core/geom/query/edge.ts +130 -0
  175. package/src/api/core/geom/query/face.ts +403 -0
  176. package/src/api/core/geom/query/halfedge.ts +210 -0
  177. package/src/api/core/geom/query/index.ts +63 -0
  178. package/src/api/core/geom/query/profile.ts +473 -0
  179. package/src/api/core/geom/query/vertex.ts +205 -0
  180. package/src/api/core/geom/update/contour.ts +315 -0
  181. package/src/api/core/geom/update/curve.ts +209 -0
  182. package/src/api/core/geom/update/index.ts +29 -0
  183. package/src/api/core/geom/update/profile.ts +377 -0
  184. package/src/api/core/groups.ts +521 -0
  185. package/src/api/core/history/index.ts +84 -0
  186. package/src/api/core/index.ts +65 -0
  187. package/src/api/core/layers.ts +333 -0
  188. package/src/api/core/math/index.ts +20 -0
  189. package/src/api/core/math/quat.ts +172 -0
  190. package/src/api/core/math/vec3.ts +179 -0
  191. package/src/api/core/project/index.ts +418 -0
  192. package/src/api/core/tags.ts +808 -0
  193. package/src/api/core/units/index.ts +164 -0
  194. package/src/api/core/zoom/index.ts +47 -0
  195. package/src/api/design/boolean/index.ts +179 -0
  196. package/src/api/design/create/index.ts +886 -0
  197. package/src/api/design/delete/index.ts +67 -0
  198. package/src/api/design/doors/index.ts +285 -0
  199. package/src/api/design/edit/index.ts +54 -0
  200. package/src/api/design/erase/index.ts +151 -0
  201. package/src/api/design/furniture/index.ts +130 -0
  202. package/src/api/design/index.ts +162 -0
  203. package/src/api/design/lock.ts +42 -0
  204. package/src/api/design/materials/index.ts +301 -0
  205. package/src/api/design/query/geometry/index.ts +166 -0
  206. package/src/api/design/query/index.ts +937 -0
  207. package/src/api/design/query/spaces.ts +132 -0
  208. package/src/api/design/selection/index.ts +144 -0
  209. package/src/api/design/shared.ts +40 -0
  210. package/src/api/design/transform/index.ts +93 -0
  211. package/src/api/design/update/index.ts +117 -0
  212. package/src/api/design/windows/index.ts +207 -0
  213. package/src/api/entity/buildableEnvelope.ts +318 -0
  214. package/src/api/entity/department.ts +0 -0
  215. package/src/api/entity/index.ts +30 -0
  216. package/src/api/entity/referenceLine.ts +227 -0
  217. package/src/api/entity/space.ts +612 -0
  218. package/src/api/entity/story.ts +273 -0
  219. package/src/api/index.ts +37 -0
  220. package/src/api/presentation/aiInspiration.ts +1116 -0
  221. package/src/api/presentation/diagrams.ts +84 -0
  222. package/src/api/presentation/import.ts +112 -0
  223. package/src/api/presentation/index.ts +47 -0
  224. package/src/api/presentation/sheets.ts +198 -0
  225. package/src/api/presentation/views.ts +303 -0
  226. package/src/api/program/adjacency.ts +164 -0
  227. package/src/api/program/areas.ts +335 -0
  228. package/src/api/program/classification.ts +138 -0
  229. package/src/api/program/cores.ts +171 -0
  230. package/src/api/program/departments.ts +465 -0
  231. package/src/api/program/index.ts +71 -0
  232. package/src/api/program/layout.ts +68 -0
  233. package/src/api/program/metrics.ts +120 -0
  234. package/src/api/program/site.ts +326 -0
  235. package/src/api/program/spreadsheet.ts +2075 -0
  236. package/src/handles.ts +148 -0
  237. package/src/host-utils.ts +64 -0
  238. package/src/index.ts +4 -0
  239. package/src/types.ts +16 -0
  240. package/tsconfig.json +17 -0
  241. package/tsup.config.ts +12 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aiInspiration.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/aiInspiration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,QAAA,MAAM,aAAa,0EAA2D,CAAA;AAC9E,KAAK,SAAS,GACV,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,GAC7B,SAAS,EAAE,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAA;AAChC,QAAA,MAAM,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAEnC,CAAA;AAED,eAAO,MAAM,0BAA0B;;;EAA8B,CAAA;AACrE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED,eAAO,MAAM,6BAA6B;;;;EAIxC,CAAA;AACF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,6BAA6B,CACrC,CAAA;AAED,eAAO,MAAM,8BAA8B;;;EAA6B,CAAA;AACxE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,8BAA8B,CACtC,CAAA;AAED,eAAO,MAAM,kCAAkC;;;EAAyB,CAAA;AACxE,MAAM,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ApiReturn } from "../../types";
3
+ /**
4
+ * Presentation diagrams — place diagram images onto sheets.
5
+ *
6
+ * {@linkcode PluginPresentationDiagramsApi.place} drops diagram images (by
7
+ * URL) onto a sheet and returns the created canvas shape ids (requires Present
8
+ * mode to be open). Adjacency data itself is read and computed via
9
+ * `program.adjacency` (see {@linkcode PluginProgramAdjacencyApi}).
10
+ *
11
+ * A future one-step spec-based `place` — which would render a diagram spec
12
+ * and place it in a single call — awaits a public generator from the
13
+ * documentation engine; until that generator exists, `place` takes ready
14
+ * image `urls` (we do not ship a spec-based `place` that would only throw).
15
+ *
16
+ * Accessed via `snaptrude.presentation.diagrams`.
17
+ */
18
+ export declare abstract class PluginPresentationDiagramsApi {
19
+ constructor();
20
+ /**
21
+ * Place diagram images onto a sheet.
22
+ *
23
+ * Drops the given diagram image URLs onto a sheet and returns the ids of the
24
+ * created canvas shapes. Requires Present mode to be open.
25
+ *
26
+ * @param sheetId - The sheet to place onto.
27
+ * @param urls - Diagram image URLs to place.
28
+ * @param options - Optional `position` (`{ x, y }`, relative to the sheet)
29
+ * for the placed images.
30
+ * @returns A {@linkcode PluginPresentationDiagramsPlaceResult} with the created
31
+ * `shapeIds`.
32
+ * @throws If Present mode is not open or the sheet id is invalid.
33
+ *
34
+ * @examplePrompt Place the adjacency diagram on Sheet 1
35
+ * @examplePrompt Add the program diagram to the cover sheet
36
+ * @examplePrompt Drop these diagram images onto the layout
37
+ *
38
+ * # Example
39
+ * ```ts
40
+ * await snaptrude.presentation.diagrams.place("sheet_1", [
41
+ * "https://example.com/program-diagram.png",
42
+ * ])
43
+ * ```
44
+ */
45
+ abstract place(sheetId: string, urls: string[], options?: {
46
+ position?: {
47
+ x: number;
48
+ y: number;
49
+ };
50
+ }): PluginApiReturn<PluginPresentationDiagramsPlaceResult>;
51
+ }
52
+ /**
53
+ * Arguments for {@linkcode PluginPresentationDiagramsApi.place}.
54
+ *
55
+ * | Property | Type | Description |
56
+ * |---|---|---|
57
+ * | `sheetId` | `string` | The sheet to place onto |
58
+ * | `urls` | `string[]` | Diagram image URLs |
59
+ * | `position` | `{ x: number; y: number } \| undefined` | Where to place them |
60
+ */
61
+ export declare const PluginPresentationDiagramsPlaceArgs: z.ZodObject<{
62
+ sheetId: z.ZodString;
63
+ urls: z.ZodArray<z.ZodString>;
64
+ position: z.ZodOptional<z.ZodObject<{
65
+ x: z.ZodNumber;
66
+ y: z.ZodNumber;
67
+ }, z.core.$strip>>;
68
+ }, z.core.$strip>;
69
+ export type PluginPresentationDiagramsPlaceArgs = z.infer<typeof PluginPresentationDiagramsPlaceArgs>;
70
+ /**
71
+ * Result of {@linkcode PluginPresentationDiagramsApi.place}.
72
+ *
73
+ * | Property | Type | Description |
74
+ * |---|---|---|
75
+ * | `shapeIds` | `string[]` | Ids of the created canvas shapes |
76
+ */
77
+ export declare const PluginPresentationDiagramsPlaceResult: z.ZodObject<{
78
+ shapeIds: z.ZodArray<z.ZodString>;
79
+ }, z.core.$strip>;
80
+ export type PluginPresentationDiagramsPlaceResult = z.infer<typeof PluginPresentationDiagramsPlaceResult>;
81
+ //# sourceMappingURL=diagrams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagrams.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/diagrams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;;;;;;;;GAcG;AACH,8BAAsB,6BAA6B;;IAGjD;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;aACa,KAAK,CACnB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAChD,eAAe,CAAC,qCAAqC,CAAC;CAC1D;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mCAAmC;;;;;;;iBAI9C,CAAA;AACF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,qCAAqC;;iBAEhD,CAAA;AACF,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,qCAAqC,CAC7C,CAAA"}
@@ -0,0 +1,113 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../types";
3
+ /**
4
+ * Presentation import — bring external reference assets onto the Present canvas.
5
+ *
6
+ * `import.image` places a reference image and `import.pdf` places a PDF (each
7
+ * page vectorized to SVG) onto the current Present sheet, returning the created
8
+ * canvas shape ids. Requires Present mode to be open.
9
+ *
10
+ * The host engine takes a browser `File`, which a plugin worker cannot supply,
11
+ * so these accept a `url`/`dataUrl` that the host adapts into a `File`.
12
+ *
13
+ * Accessed via `snaptrude.presentation.import`.
14
+ */
15
+ export declare abstract class PluginPresentationImportApi {
16
+ constructor();
17
+ /**
18
+ * Import a reference image onto the current Present sheet.
19
+ *
20
+ * @param source - The asset to import: exactly one of `url` or `dataUrl`.
21
+ * @param options - Optional `position` — where to place the image on the
22
+ * sheet.
23
+ * @returns A {@linkcode PluginPresentationImportResult} with the created
24
+ * `shapeIds`.
25
+ * @throws If Present mode is not open or the source cannot be loaded.
26
+ *
27
+ * @examplePrompt Import this reference image onto the present canvas
28
+ * @examplePrompt Add a JPG to my presentation board
29
+ * @examplePrompt Drop this site photo onto the current sheet
30
+ * @examplePrompt Bring an inspiration image into Present mode
31
+ *
32
+ * # Example
33
+ * ```ts
34
+ * const { shapeIds } = await snaptrude.presentation.import.image(
35
+ * { url: "https://example.com/ref.png" },
36
+ * { position: { x: 200, y: 150 } },
37
+ * )
38
+ * ```
39
+ */
40
+ abstract image(source: {
41
+ url?: string;
42
+ dataUrl?: string;
43
+ }, options?: {
44
+ position?: {
45
+ x: number;
46
+ y: number;
47
+ };
48
+ }): PluginApiReturn<PluginPresentationImportResult>;
49
+ /**
50
+ * Import a PDF onto the current Present sheet (one shape per page).
51
+ *
52
+ * Each page is converted to vector SVG and placed as a canvas shape.
53
+ *
54
+ * @param source - The asset to import: exactly one of `url` or `dataUrl`.
55
+ * @param options - Optional `position` — where to place the pages on the
56
+ * sheet.
57
+ * @returns A {@linkcode PluginPresentationImportResult} with one `shapeId` per
58
+ * page.
59
+ * @throws If Present mode is not open or the source cannot be loaded.
60
+ *
61
+ * @examplePrompt Import this PDF onto the present canvas
62
+ * @examplePrompt Add a multi-page PDF reference to my board
63
+ * @examplePrompt Bring a PDF floor plan into Present mode as vectors
64
+ * @examplePrompt Place each page of this PDF on the sheet
65
+ *
66
+ * # Example
67
+ * ```ts
68
+ * const { shapeIds } = await snaptrude.presentation.import.pdf({
69
+ * url: "https://example.com/plans.pdf",
70
+ * })
71
+ * ```
72
+ */
73
+ abstract pdf(source: {
74
+ url?: string;
75
+ dataUrl?: string;
76
+ }, options?: {
77
+ position?: {
78
+ x: number;
79
+ y: number;
80
+ };
81
+ }): PluginApiReturn<PluginPresentationImportResult>;
82
+ }
83
+ /**
84
+ * Arguments for {@linkcode PluginPresentationImportApi.image} /
85
+ * {@linkcode PluginPresentationImportApi.pdf}. Provide exactly one source.
86
+ *
87
+ * | Property | Type | Description |
88
+ * |---|---|---|
89
+ * | `url` | `string \| undefined` | URL of the asset to import |
90
+ * | `dataUrl` | `string \| undefined` | Base64 data URL of the asset |
91
+ * | `position` | `{ x: number; y: number } \| undefined` | Where to place it on the sheet |
92
+ */
93
+ export declare const PluginPresentationImportArgs: z.ZodObject<{
94
+ url: z.ZodOptional<z.ZodString>;
95
+ dataUrl: z.ZodOptional<z.ZodString>;
96
+ position: z.ZodOptional<z.ZodObject<{
97
+ x: z.ZodNumber;
98
+ y: z.ZodNumber;
99
+ }, z.core.$strip>>;
100
+ }, z.core.$strip>;
101
+ export type PluginPresentationImportArgs = z.infer<typeof PluginPresentationImportArgs>;
102
+ /**
103
+ * Result of an import.
104
+ *
105
+ * | Property | Type | Description |
106
+ * |---|---|---|
107
+ * | `shapeIds` | `string[]` | Ids of the created canvas shapes (one per page for PDFs) |
108
+ */
109
+ export declare const PluginPresentationImportResult: z.ZodObject<{
110
+ shapeIds: z.ZodArray<z.ZodString>;
111
+ }, z.core.$strip>;
112
+ export type PluginPresentationImportResult = z.infer<typeof PluginPresentationImportResult>;
113
+ //# sourceMappingURL=import.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/import.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;;;;;GAWG;AACH,8BAAsB,2BAA2B;;IAG/C;;;;;;;;;;;;;;;;;;;;;;OAsBG;aACa,KAAK,CACnB,MAAM,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,EAC1C,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAChD,eAAe,CAAC,8BAA8B,CAAC;IAElD;;;;;;;;;;;;;;;;;;;;;;;OAuBG;aACa,GAAG,CACjB,MAAM,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,EAC1C,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAChD,eAAe,CAAC,8BAA8B,CAAC;CACnD;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,4BAA4B;;;;;;;iBAQrC,CAAA;AACJ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;iBAEzC,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,8BAA8B,CACtC,CAAA"}
@@ -0,0 +1,45 @@
1
+ import { PluginPresentationViewsApi } from "./views";
2
+ import { PluginPresentationAIInspirationApi } from "./aiInspiration";
3
+ import { PluginPresentationSheetsApi } from "./sheets";
4
+ import { PluginPresentationDiagramsApi } from "./diagrams";
5
+ import { PluginPresentationImportApi } from "./import";
6
+ /**
7
+ * Presentation APIs — prepare and assemble presentations.
8
+ *
9
+ * Reads describe the artifacts a presentation is built from (saved views, layout
10
+ * sheets); writes assemble them (place views/diagrams on sheets, import
11
+ * references, capture/save views). Present-mode AI Inspiration also lives here.
12
+ *
13
+ * Several members require **Present mode to be open** (the documentation editor):
14
+ * sheets, diagram placement, and import.
15
+ *
16
+ * - {@linkcode PluginPresentationApi.views} — Saved 2D/3D views (list, get, capture, activate, create)
17
+ * - {@linkcode PluginPresentationApi.sheets} — Layout sheets (list, get, create, place views)
18
+ * - {@linkcode PluginPresentationApi.diagrams} — Place program/adjacency/site diagram images on sheets
19
+ * - {@linkcode PluginPresentationApi.import} — Import reference images/PDFs onto the canvas
20
+ * - {@linkcode PluginPresentationApi.aiInspiration} — Present-mode AI image/video generation
21
+ *
22
+ * Accessed via `snaptrude.presentation`.
23
+ */
24
+ export declare abstract class PluginPresentationApi {
25
+ /** Saved 2D/3D views. See {@linkcode PluginPresentationViewsApi}. */
26
+ abstract views: PluginPresentationViewsApi;
27
+ /** Layout sheets — list/get/create and place views (Present mode). See {@linkcode PluginPresentationSheetsApi}. */
28
+ abstract sheets: PluginPresentationSheetsApi;
29
+ /** Program/adjacency/site diagrams — place images on sheets. See {@linkcode PluginPresentationDiagramsApi}. */
30
+ abstract diagrams: PluginPresentationDiagramsApi;
31
+ /** Import reference images/PDFs onto the Present canvas. See {@linkcode PluginPresentationImportApi}. */
32
+ abstract import: PluginPresentationImportApi;
33
+ /**
34
+ * Present-mode AI Inspiration image/video generation. See
35
+ * {@linkcode PluginPresentationAIInspirationApi}.
36
+ */
37
+ abstract aiInspiration: PluginPresentationAIInspirationApi;
38
+ constructor();
39
+ }
40
+ export * from "./views";
41
+ export * from "./sheets";
42
+ export * from "./diagrams";
43
+ export * from "./import";
44
+ export * from "./aiInspiration";
45
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,EAAE,kCAAkC,EAAE,MAAM,iBAAiB,CAAA;AACpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAA;AAEtD;;;;;;;;;;;;;;;;;GAiBG;AACH,8BAAsB,qBAAqB;IACzC,qEAAqE;IACrE,SAAgB,KAAK,EAAE,0BAA0B,CAAA;IACjD,mHAAmH;IACnH,SAAgB,MAAM,EAAE,2BAA2B,CAAA;IACnD,+GAA+G;IAC/G,SAAgB,QAAQ,EAAE,6BAA6B,CAAA;IACvD,yGAAyG;IACzG,SAAgB,MAAM,EAAE,2BAA2B,CAAA;IACnD;;;OAGG;IACH,SAAgB,aAAa,EAAE,kCAAkC,CAAA;;CAGlE;AAED,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,176 @@
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; `create` adds a sheet and `place` drops a saved view
11
+ * onto a sheet (returning the id of the created canvas shape).
12
+ *
13
+ * Accessed via `snaptrude.presentation.sheets`.
14
+ */
15
+ export declare abstract class PluginPresentationSheetsApi {
16
+ constructor();
17
+ /**
18
+ * List the layout sheets in the presentation.
19
+ *
20
+ * @returns A {@linkcode PluginPresentationSheetsListResult} with a `sheets`
21
+ * array (empty when Present mode is closed or there are no sheets).
22
+ *
23
+ * @examplePrompt List all the sheets
24
+ * @examplePrompt How many layout sheets are there?
25
+ * @examplePrompt Show me the presentation sheets
26
+ * @examplePrompt What sheets can I place views on?
27
+ *
28
+ * # Example
29
+ * ```ts
30
+ * const { sheets } = await snaptrude.presentation.sheets.list()
31
+ * ```
32
+ */
33
+ abstract list(): PluginApiReturn<PluginPresentationSheetsListResult>;
34
+ /**
35
+ * Get a single sheet by id.
36
+ *
37
+ * @param sheetId - The id of the sheet to read.
38
+ * @returns The matching {@linkcode PluginPresentationSheet}, or `null`.
39
+ *
40
+ * @examplePrompt Get the sheet with id sheet_1
41
+ * @examplePrompt Find the sheet called Cover
42
+ * @examplePrompt Look up a layout sheet by id
43
+ *
44
+ * # Example
45
+ * ```ts
46
+ * const sheet = await snaptrude.presentation.sheets.get("sheet_1")
47
+ * ```
48
+ */
49
+ abstract get(sheetId: string): PluginApiReturn<PluginPresentationSheetsGetResult>;
50
+ /**
51
+ * Create a new layout sheet.
52
+ *
53
+ * Requires Present mode to be open.
54
+ *
55
+ * @param name - Display name for the new sheet (optional).
56
+ * @returns The newly created {@linkcode PluginPresentationSheet}.
57
+ * @throws If Present mode is not open.
58
+ *
59
+ * @examplePrompt Create a new sheet called Cover
60
+ * @examplePrompt Add a layout sheet
61
+ * @examplePrompt Make a new presentation sheet named Floor Plans
62
+ *
63
+ * # Example
64
+ * ```ts
65
+ * const sheet = await snaptrude.presentation.sheets.create("Cover")
66
+ * ```
67
+ */
68
+ abstract create(name?: string): PluginApiReturn<PluginPresentationSheet>;
69
+ /**
70
+ * Place a saved view onto a sheet.
71
+ *
72
+ * Drops the given view onto the sheet at an optional position and returns the
73
+ * id of the created canvas shape. Requires Present mode to be open.
74
+ *
75
+ * @param sheetId - The id of the sheet to place onto.
76
+ * @param viewId - The id of the saved view to place.
77
+ * @param options - Optional `position` ({@linkcode PluginSheetPosition}) —
78
+ * where to place it (a default is used when omitted).
79
+ * @returns A {@linkcode PluginPresentationSheetsPlaceResult} with the created
80
+ * `shapeId`.
81
+ * @throws If Present mode is not open, or the sheet/view id is invalid.
82
+ *
83
+ * @examplePrompt Place the floor plan on Sheet 1
84
+ * @examplePrompt Add this 3D view to the cover sheet
85
+ * @examplePrompt Drop the site plan onto the layout sheet at 100, 200
86
+ * @examplePrompt Put the Ground Floor view on sheet_1
87
+ *
88
+ * # Example
89
+ * ```ts
90
+ * const { shapeId } = await snaptrude.presentation.sheets.place("sheet_1", "view_123")
91
+ * ```
92
+ */
93
+ abstract place(sheetId: string, viewId: string, options?: {
94
+ position?: PluginSheetPosition;
95
+ }): PluginApiReturn<PluginPresentationSheetsPlaceResult>;
96
+ }
97
+ /**
98
+ * A layout sheet in the presentation.
99
+ *
100
+ * | Property | Type | Description |
101
+ * |---|---|---|
102
+ * | `id` | `string` | Unique sheet id |
103
+ * | `name` | `string` | Display name |
104
+ */
105
+ export declare const PluginPresentationSheet: z.ZodObject<{
106
+ id: z.ZodString;
107
+ name: z.ZodString;
108
+ }, z.core.$strip>;
109
+ export type PluginPresentationSheet = z.infer<typeof PluginPresentationSheet>;
110
+ /**
111
+ * A position on a sheet/canvas (sheet coordinates).
112
+ *
113
+ * | Property | Type | Description |
114
+ * |---|---|---|
115
+ * | `x` | `number` | X coordinate |
116
+ * | `y` | `number` | Y coordinate |
117
+ */
118
+ export declare const PluginSheetPosition: z.ZodObject<{
119
+ x: z.ZodNumber;
120
+ y: z.ZodNumber;
121
+ }, z.core.$strip>;
122
+ export type PluginSheetPosition = z.infer<typeof PluginSheetPosition>;
123
+ /** Result of {@linkcode PluginPresentationSheetsApi.list}. */
124
+ export declare const PluginPresentationSheetsListResult: z.ZodObject<{
125
+ sheets: z.ZodArray<z.ZodObject<{
126
+ id: z.ZodString;
127
+ name: z.ZodString;
128
+ }, z.core.$strip>>;
129
+ }, z.core.$strip>;
130
+ export type PluginPresentationSheetsListResult = z.infer<typeof PluginPresentationSheetsListResult>;
131
+ /** Arguments for {@linkcode PluginPresentationSheetsApi.get}. */
132
+ export declare const PluginPresentationSheetsGetArgs: z.ZodObject<{
133
+ id: z.ZodString;
134
+ }, z.core.$strip>;
135
+ export type PluginPresentationSheetsGetArgs = z.infer<typeof PluginPresentationSheetsGetArgs>;
136
+ /** Result of {@linkcode PluginPresentationSheetsApi.get} — the sheet, or `null`. */
137
+ export declare const PluginPresentationSheetsGetResult: z.ZodNullable<z.ZodObject<{
138
+ id: z.ZodString;
139
+ name: z.ZodString;
140
+ }, z.core.$strip>>;
141
+ export type PluginPresentationSheetsGetResult = z.infer<typeof PluginPresentationSheetsGetResult>;
142
+ /** Arguments for {@linkcode PluginPresentationSheetsApi.create}. */
143
+ export declare const PluginPresentationSheetsCreateArgs: z.ZodObject<{
144
+ name: z.ZodOptional<z.ZodString>;
145
+ }, z.core.$strip>;
146
+ export type PluginPresentationSheetsCreateArgs = z.infer<typeof PluginPresentationSheetsCreateArgs>;
147
+ /**
148
+ * Arguments for {@linkcode PluginPresentationSheetsApi.place}.
149
+ *
150
+ * | Property | Type | Description |
151
+ * |---|---|---|
152
+ * | `sheetId` | `string` | The sheet to place onto |
153
+ * | `viewId` | `string` | The saved view to place |
154
+ * | `position` | {@linkcode PluginSheetPosition}` \| undefined` | Where to place it (a default is used when omitted) |
155
+ */
156
+ export declare const PluginPresentationSheetsPlaceArgs: z.ZodObject<{
157
+ sheetId: z.ZodString;
158
+ viewId: z.ZodString;
159
+ position: z.ZodOptional<z.ZodObject<{
160
+ x: z.ZodNumber;
161
+ y: z.ZodNumber;
162
+ }, z.core.$strip>>;
163
+ }, z.core.$strip>;
164
+ export type PluginPresentationSheetsPlaceArgs = z.infer<typeof PluginPresentationSheetsPlaceArgs>;
165
+ /**
166
+ * Result of {@linkcode PluginPresentationSheetsApi.place}.
167
+ *
168
+ * | Property | Type | Description |
169
+ * |---|---|---|
170
+ * | `shapeId` | `string` | Id of the created canvas shape |
171
+ */
172
+ export declare const PluginPresentationSheetsPlaceResult: z.ZodObject<{
173
+ shapeId: z.ZodString;
174
+ }, z.core.$strip>;
175
+ export type PluginPresentationSheetsPlaceResult = z.infer<typeof PluginPresentationSheetsPlaceResult>;
176
+ //# sourceMappingURL=sheets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheets.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/sheets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;;;;;GAWG;AACH,8BAAsB,2BAA2B;;IAG/C;;;;;;;;;;;;;;;OAeG;aACa,IAAI,IAAI,eAAe,CAAC,kCAAkC,CAAC;IAE3E;;;;;;;;;;;;;;OAcG;aACa,GAAG,CACjB,OAAO,EAAE,MAAM,GACd,eAAe,CAAC,iCAAiC,CAAC;IAErD;;;;;;;;;;;;;;;;;OAiBG;aACa,MAAM,CACpB,IAAI,CAAC,EAAE,MAAM,GACZ,eAAe,CAAC,uBAAuB,CAAC;IAE3C;;;;;;;;;;;;;;;;;;;;;;;OAuBG;aACa,KAAK,CACnB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,mBAAmB,CAAA;KAAE,GAC3C,eAAe,CAAC,mCAAmC,CAAC;CACxD;AAED;;;;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