@snaptrude/plugin-core 0.9.16-networks-20261012.1 → 0.9.17

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 (88) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/api-manifest.json +9711 -0
  3. package/dist/api/analysis/daylight.d.ts +5 -5
  4. package/dist/api/analysis/solar.d.ts +2 -2
  5. package/dist/api/core/camera/index.d.ts +0 -29
  6. package/dist/api/core/camera/index.d.ts.map +1 -1
  7. package/dist/api/core/zoom/index.d.ts +0 -13
  8. package/dist/api/core/zoom/index.d.ts.map +1 -1
  9. package/dist/api/design/create/bulk-items.d.ts +21 -40
  10. package/dist/api/design/create/bulk-items.d.ts.map +1 -1
  11. package/dist/api/design/create/index.d.ts +97 -120
  12. package/dist/api/design/create/index.d.ts.map +1 -1
  13. package/dist/api/design/create/opening-fields.d.ts +12 -13
  14. package/dist/api/design/create/opening-fields.d.ts.map +1 -1
  15. package/dist/api/design/doors/index.d.ts +24 -18
  16. package/dist/api/design/doors/index.d.ts.map +1 -1
  17. package/dist/api/design/family.d.ts +27 -797
  18. package/dist/api/design/family.d.ts.map +1 -1
  19. package/dist/api/design/index.d.ts +0 -16
  20. package/dist/api/design/index.d.ts.map +1 -1
  21. package/dist/api/design/query/index.d.ts +30 -30
  22. package/dist/api/design/selection/index.d.ts +10 -10
  23. package/dist/api/design/types/index.d.ts +24 -40
  24. package/dist/api/design/types/index.d.ts.map +1 -1
  25. package/dist/api/design/update/index.d.ts +3 -40
  26. package/dist/api/design/update/index.d.ts.map +1 -1
  27. package/dist/api/design/windows/index.d.ts +8 -8
  28. package/dist/api/design/windows/index.d.ts.map +1 -1
  29. package/dist/api/presentation/aiInspiration.d.ts +10 -10
  30. package/dist/api/presentation/annotate.d.ts +22 -38
  31. package/dist/api/presentation/annotate.d.ts.map +1 -1
  32. package/dist/api/presentation/export.d.ts +5 -23
  33. package/dist/api/presentation/export.d.ts.map +1 -1
  34. package/dist/api/presentation/index.d.ts +21 -32
  35. package/dist/api/presentation/index.d.ts.map +1 -1
  36. package/dist/api/presentation/placedViews.d.ts +6 -106
  37. package/dist/api/presentation/placedViews.d.ts.map +1 -1
  38. package/dist/api/presentation/sections.d.ts +461 -0
  39. package/dist/api/presentation/sections.d.ts.map +1 -0
  40. package/dist/api/presentation/shapes.d.ts +2 -2
  41. package/dist/api/presentation/sheets.d.ts +19 -175
  42. package/dist/api/presentation/sheets.d.ts.map +1 -1
  43. package/dist/api/presentation/views.d.ts +5 -103
  44. package/dist/api/presentation/views.d.ts.map +1 -1
  45. package/dist/api/presentation/walkthroughs.d.ts +6 -6
  46. package/dist/index.cjs +2434 -3619
  47. package/dist/index.cjs.map +1 -1
  48. package/dist/index.js +2421 -3501
  49. package/dist/index.js.map +1 -1
  50. package/package.json +1 -1
  51. package/scripts/generate-manifest.mjs +0 -5
  52. package/src/api/core/camera/index.ts +0 -29
  53. package/src/api/core/zoom/index.ts +0 -13
  54. package/src/api/design/create/bulk-items.ts +16 -23
  55. package/src/api/design/create/index.ts +119 -129
  56. package/src/api/design/create/opening-fields.ts +12 -15
  57. package/src/api/design/doors/index.ts +42 -58
  58. package/src/api/design/family.ts +32 -662
  59. package/src/api/design/index.ts +4 -34
  60. package/src/api/design/types/index.ts +24 -31
  61. package/src/api/design/update/index.ts +3 -41
  62. package/src/api/design/windows/index.ts +22 -40
  63. package/src/api/presentation/annotate.ts +58 -90
  64. package/src/api/presentation/export.ts +6 -32
  65. package/src/api/presentation/index.ts +23 -39
  66. package/src/api/presentation/placedViews.ts +28 -119
  67. package/src/api/presentation/sections.ts +420 -0
  68. package/src/api/presentation/sheets.ts +20 -181
  69. package/src/api/presentation/views.ts +6 -46
  70. package/dist/api/design/bim.d.ts +0 -209
  71. package/dist/api/design/bim.d.ts.map +0 -1
  72. package/dist/api/design/catalog.d.ts +0 -320
  73. package/dist/api/design/catalog.d.ts.map +0 -1
  74. package/dist/api/design/networks.d.ts +0 -1703
  75. package/dist/api/design/networks.d.ts.map +0 -1
  76. package/dist/api/presentation/drawingContract.d.ts +0 -32
  77. package/dist/api/presentation/drawingContract.d.ts.map +0 -1
  78. package/dist/api/presentation/drawings.d.ts +0 -3523
  79. package/dist/api/presentation/drawings.d.ts.map +0 -1
  80. package/dist/api/presentation/viewPresets.d.ts +0 -222
  81. package/dist/api/presentation/viewPresets.d.ts.map +0 -1
  82. package/src/api/design/bim.ts +0 -121
  83. package/src/api/design/catalog.ts +0 -203
  84. package/src/api/design/networks.ts +0 -607
  85. package/src/api/presentation/drawingContract.ts +0 -70
  86. package/src/api/presentation/drawings.ts +0 -1179
  87. package/src/api/presentation/viewPresets.ts +0 -241
  88. package/test/drawingContract.test.mjs +0 -288
@@ -59,10 +59,10 @@ export declare const PluginAIInspirationVideoDuration: z.ZodEnum<{
59
59
  export type PluginAIInspirationVideoDuration = z.infer<typeof PluginAIInspirationVideoDuration>;
60
60
  export declare const PluginAIInspirationJobStatus: z.ZodEnum<{
61
61
  failed: "failed";
62
- queued: "queued";
63
- cancelled: "cancelled";
64
62
  running: "running";
63
+ queued: "queued";
65
64
  completed: "completed";
65
+ cancelled: "cancelled";
66
66
  }>;
67
67
  export type PluginAIInspirationJobStatus = z.infer<typeof PluginAIInspirationJobStatus>;
68
68
  export declare const PluginAIInspirationWorkflowRunState: z.ZodEnum<{
@@ -552,10 +552,10 @@ export declare const PluginAIInspirationJob: z.ZodObject<{
552
552
  jobId: z.ZodString;
553
553
  status: z.ZodEnum<{
554
554
  failed: "failed";
555
- queued: "queued";
556
- cancelled: "cancelled";
557
555
  running: "running";
556
+ queued: "queued";
558
557
  completed: "completed";
558
+ cancelled: "cancelled";
559
559
  }>;
560
560
  createdAt: z.ZodNumber;
561
561
  updatedAt: z.ZodNumber;
@@ -619,10 +619,10 @@ export declare const PluginAIInspirationGetJobResult: z.ZodObject<{
619
619
  jobId: z.ZodString;
620
620
  status: z.ZodEnum<{
621
621
  failed: "failed";
622
- queued: "queued";
623
- cancelled: "cancelled";
624
622
  running: "running";
623
+ queued: "queued";
625
624
  completed: "completed";
625
+ cancelled: "cancelled";
626
626
  }>;
627
627
  createdAt: z.ZodNumber;
628
628
  updatedAt: z.ZodNumber;
@@ -683,10 +683,10 @@ export declare const PluginAIInspirationCancelJobResult: z.ZodObject<{
683
683
  jobId: z.ZodString;
684
684
  status: z.ZodEnum<{
685
685
  failed: "failed";
686
- queued: "queued";
687
- cancelled: "cancelled";
688
686
  running: "running";
687
+ queued: "queued";
689
688
  completed: "completed";
689
+ cancelled: "cancelled";
690
690
  }>;
691
691
  createdAt: z.ZodNumber;
692
692
  updatedAt: z.ZodNumber;
@@ -747,10 +747,10 @@ export declare const PluginAIInspirationListJobsResult: z.ZodObject<{
747
747
  jobId: z.ZodString;
748
748
  status: z.ZodEnum<{
749
749
  failed: "failed";
750
- queued: "queued";
751
- cancelled: "cancelled";
752
750
  running: "running";
751
+ queued: "queued";
753
752
  completed: "completed";
753
+ cancelled: "cancelled";
754
754
  }>;
755
755
  createdAt: z.ZodNumber;
756
756
  updatedAt: z.ZodNumber;
@@ -32,15 +32,14 @@ export declare abstract class PluginPresentationAnnotateApi {
32
32
  * falls back to regular. `fontSizePx` sets an exact pixel size, overriding
33
33
  * the `size` preset when both are given (`size` alone keeps working).
34
34
  *
35
- * @param sheetId - The sheet to annotate, or `undefined` when `options.drawingId` is used.
35
+ * @param sheetId - The sheet to annotate.
36
36
  * @param text - The label text.
37
37
  * @param options - Optional `position` (`{ x, y }`, relative to the sheet's
38
38
  * top-left, in canvas units — defaults to the sheet's top-left corner),
39
39
  * `size` (`"s" | "m" | "l" | "xl"`, default `"m"`), `color` (a named
40
40
  * palette color, default `"black"`), and typography: `fontFamily`,
41
41
  * `fontWeight` (numeric string, `-italic` suffix allowed), `fontSizePx`
42
- * (positive px size overriding the `size` preset), and `drawingId` to parent
43
- * the annotation to a drawing. Pass exactly one parent: `sheetId` or `drawingId`.
42
+ * (positive px size overriding the `size` preset).
44
43
  * @returns A {@linkcode PluginPresentationAnnotateTextResult} with the created
45
44
  * `shapeId`.
46
45
  * @throws If Present mode is not open or the sheet id is invalid.
@@ -59,7 +58,7 @@ export declare abstract class PluginPresentationAnnotateApi {
59
58
  * )
60
59
  * ```
61
60
  */
62
- abstract text(sheetId: string | undefined, text: string, options?: {
61
+ abstract text(sheetId: string, text: string, options?: {
63
62
  position?: {
64
63
  x: number;
65
64
  y: number;
@@ -69,7 +68,6 @@ export declare abstract class PluginPresentationAnnotateApi {
69
68
  fontFamily?: string;
70
69
  fontWeight?: string;
71
70
  fontSizePx?: number;
72
- drawingId?: string;
73
71
  }): PluginApiReturn<PluginPresentationAnnotateTextResult>;
74
72
  /**
75
73
  * Draw an arrow on a sheet.
@@ -78,12 +76,11 @@ export declare abstract class PluginPresentationAnnotateApi {
78
76
  * top-left, in canvas units — the same Arrow tool as the Present toolbar) and
79
77
  * returns the id of the created canvas shape. Requires Present mode to be open.
80
78
  *
81
- * @param sheetId - The sheet to annotate, or `undefined` when `options.drawingId` is used.
79
+ * @param sheetId - The sheet to annotate.
82
80
  * @param start - Arrow tail position (`{ x, y }`, relative to the sheet's top-left).
83
81
  * @param end - Arrow head position (`{ x, y }`, relative to the sheet's top-left).
84
82
  * @param options - Optional `color` (a named palette color, default `"black"`)
85
- * `size` (stroke weight preset, `"s" | "m" | "l" | "xl"`, default `"m"`),
86
- * and `drawingId` to parent the arrow to a drawing. Pass exactly one parent.
83
+ * and `size` (stroke weight preset, `"s" | "m" | "l" | "xl"`, default `"m"`).
87
84
  * @returns A {@linkcode PluginPresentationAnnotateResult} with the created
88
85
  * `shapeId`.
89
86
  * @throws If Present mode is not open or the sheet id is invalid.
@@ -102,7 +99,7 @@ export declare abstract class PluginPresentationAnnotateApi {
102
99
  * )
103
100
  * ```
104
101
  */
105
- abstract arrow(sheetId: string | undefined, start: {
102
+ abstract arrow(sheetId: string, start: {
106
103
  x: number;
107
104
  y: number;
108
105
  }, end: {
@@ -111,7 +108,6 @@ export declare abstract class PluginPresentationAnnotateApi {
111
108
  }, options?: {
112
109
  color?: PluginAnnotateTextColor;
113
110
  size?: PluginAnnotateTextSize;
114
- drawingId?: string;
115
111
  }): PluginApiReturn<PluginPresentationAnnotateResult>;
116
112
  /**
117
113
  * Add a sticky note to a sheet.
@@ -120,14 +116,13 @@ export declare abstract class PluginPresentationAnnotateApi {
120
116
  * fixed-size sticky square that grows with its text) and returns the id of
121
117
  * the created canvas shape. Requires Present mode to be open.
122
118
  *
123
- * @param sheetId - The sheet to annotate, or `undefined` when `options.drawingId` is used.
119
+ * @param sheetId - The sheet to annotate.
124
120
  * @param text - The note text.
125
121
  * @param options - Optional `position` (`{ x, y }`, relative to the sheet's
126
122
  * top-left, in canvas units — defaults to the sheet's top-left corner),
127
123
  * `color` (a named palette color, default `"black"` — rendered as the
128
124
  * note's sticky fill), and `size` (text size preset,
129
- * `"s" | "m" | "l" | "xl"`, default `"m"`), and `drawingId` to parent
130
- * the note to a drawing. Pass exactly one parent.
125
+ * `"s" | "m" | "l" | "xl"`, default `"m"`).
131
126
  * @returns A {@linkcode PluginPresentationAnnotateResult} with the created
132
127
  * `shapeId`.
133
128
  * @throws If Present mode is not open or the sheet id is invalid.
@@ -145,14 +140,13 @@ export declare abstract class PluginPresentationAnnotateApi {
145
140
  * )
146
141
  * ```
147
142
  */
148
- abstract note(sheetId: string | undefined, text: string, options?: {
143
+ abstract note(sheetId: string, text: string, options?: {
149
144
  position?: {
150
145
  x: number;
151
146
  y: number;
152
147
  };
153
148
  color?: PluginAnnotateTextColor;
154
149
  size?: PluginAnnotateTextSize;
155
- drawingId?: string;
156
150
  }): PluginApiReturn<PluginPresentationAnnotateResult>;
157
151
  /**
158
152
  * Draw a geo shape (rectangle, ellipse, cloud, …) on a sheet.
@@ -162,15 +156,14 @@ export declare abstract class PluginPresentationAnnotateApi {
162
156
  * top-left, in canvas units) and returns the id of the created canvas shape.
163
157
  * Requires Present mode to be open.
164
158
  *
165
- * @param sheetId - The sheet to annotate, or `undefined` when `options.drawingId` is used.
159
+ * @param sheetId - The sheet to annotate.
166
160
  * @param kind - The shape kind ({@linkcode PluginAnnotateGeoKind}), e.g.
167
161
  * `"rectangle"`, `"ellipse"`, `"cloud"`.
168
162
  * @param bounds - Placement box `{ x, y, w, h }` — `x`/`y` are the shape's
169
163
  * top-left relative to the sheet's top-left; `w`/`h` must be positive.
170
164
  * @param options - Optional `color` (a named palette color, default
171
165
  * `"black"`) and `fill` ({@linkcode PluginAnnotateFill}, default `"none"` —
172
- * outline only), and `drawingId` to parent the shape to a drawing. Pass
173
- * exactly one parent: `sheetId` or `drawingId`.
166
+ * outline only).
174
167
  * @returns A {@linkcode PluginPresentationAnnotateResult} with the created
175
168
  * `shapeId`.
176
169
  * @throws If Present mode is not open or the sheet id is invalid.
@@ -189,7 +182,7 @@ export declare abstract class PluginPresentationAnnotateApi {
189
182
  * )
190
183
  * ```
191
184
  */
192
- abstract shape(sheetId: string | undefined, kind: PluginAnnotateGeoKind, bounds: {
185
+ abstract shape(sheetId: string, kind: PluginAnnotateGeoKind, bounds: {
193
186
  x: number;
194
187
  y: number;
195
188
  w: number;
@@ -197,7 +190,6 @@ export declare abstract class PluginPresentationAnnotateApi {
197
190
  }, options?: {
198
191
  color?: PluginAnnotateTextColor;
199
192
  fill?: PluginAnnotateFill;
200
- drawingId?: string;
201
193
  }): PluginApiReturn<PluginPresentationAnnotateResult>;
202
194
  }
203
195
  /** Text size preset (the same s/m/l/xl scale as the Present-mode text tool). */
@@ -230,8 +222,7 @@ export type PluginAnnotateTextColor = z.infer<typeof PluginAnnotateTextColor>;
230
222
  *
231
223
  * | Property | Type | Description |
232
224
  * |---|---|---|
233
- * | `sheetId` | `string \| undefined` | The sheet parent; omit when `drawingId` is set |
234
- * | `drawingId` | `string \| undefined` | The drawing parent; mutually exclusive with `sheetId` |
225
+ * | `sheetId` | `string` | The sheet to annotate |
235
226
  * | `text` | `string` | The label text |
236
227
  * | `position` | `{ x: number; y: number } \| undefined` | Where to place it (relative to the sheet) |
237
228
  * | `size` | {@linkcode PluginAnnotateTextSize}` \| undefined` | Text size preset |
@@ -241,8 +232,7 @@ export type PluginAnnotateTextColor = z.infer<typeof PluginAnnotateTextColor>;
241
232
  * | `fontSizePx` | `number \| undefined` | Exact px size (overrides the `size` preset) |
242
233
  */
243
234
  export declare const PluginPresentationAnnotateTextArgs: z.ZodObject<{
244
- sheetId: z.ZodOptional<z.ZodString>;
245
- drawingId: z.ZodOptional<z.ZodString>;
235
+ sheetId: z.ZodString;
246
236
  text: z.ZodString;
247
237
  position: z.ZodOptional<z.ZodObject<{
248
238
  x: z.ZodNumber;
@@ -290,11 +280,11 @@ export type PluginPresentationAnnotateTextResult = z.infer<typeof PluginPresenta
290
280
  * flyout.
291
281
  */
292
282
  export declare const PluginAnnotateGeoKind: z.ZodEnum<{
293
- hexagon: "hexagon";
294
283
  rectangle: "rectangle";
295
284
  ellipse: "ellipse";
296
285
  triangle: "triangle";
297
286
  diamond: "diamond";
287
+ hexagon: "hexagon";
298
288
  oval: "oval";
299
289
  rhombus: "rhombus";
300
290
  star: "star";
@@ -321,16 +311,14 @@ export type PluginAnnotateFill = z.infer<typeof PluginAnnotateFill>;
321
311
  *
322
312
  * | Property | Type | Description |
323
313
  * |---|---|---|
324
- * | `sheetId` | `string \| undefined` | The sheet parent; omit when `drawingId` is set |
325
- * | `drawingId` | `string \| undefined` | The drawing parent; mutually exclusive with `sheetId` |
314
+ * | `sheetId` | `string` | The sheet to annotate |
326
315
  * | `start` | `{ x: number; y: number }` | Arrow tail (relative to the sheet) |
327
316
  * | `end` | `{ x: number; y: number }` | Arrow head (relative to the sheet) |
328
317
  * | `color` | {@linkcode PluginAnnotateTextColor}` \| undefined` | Arrow color |
329
318
  * | `size` | {@linkcode PluginAnnotateTextSize}` \| undefined` | Stroke weight preset |
330
319
  */
331
320
  export declare const PluginPresentationAnnotateArrowArgs: z.ZodObject<{
332
- sheetId: z.ZodOptional<z.ZodString>;
333
- drawingId: z.ZodOptional<z.ZodString>;
321
+ sheetId: z.ZodString;
334
322
  start: z.ZodObject<{
335
323
  x: z.ZodNumber;
336
324
  y: z.ZodNumber;
@@ -367,16 +355,14 @@ export type PluginPresentationAnnotateArrowArgs = z.infer<typeof PluginPresentat
367
355
  *
368
356
  * | Property | Type | Description |
369
357
  * |---|---|---|
370
- * | `sheetId` | `string \| undefined` | The sheet parent; omit when `drawingId` is set |
371
- * | `drawingId` | `string \| undefined` | The drawing parent; mutually exclusive with `sheetId` |
358
+ * | `sheetId` | `string` | The sheet to annotate |
372
359
  * | `text` | `string` | The note text |
373
360
  * | `position` | `{ x: number; y: number } \| undefined` | Where to place it (relative to the sheet) |
374
361
  * | `color` | {@linkcode PluginAnnotateTextColor}` \| undefined` | Sticky fill color |
375
362
  * | `size` | {@linkcode PluginAnnotateTextSize}` \| undefined` | Text size preset |
376
363
  */
377
364
  export declare const PluginPresentationAnnotateNoteArgs: z.ZodObject<{
378
- sheetId: z.ZodOptional<z.ZodString>;
379
- drawingId: z.ZodOptional<z.ZodString>;
365
+ sheetId: z.ZodString;
380
366
  text: z.ZodString;
381
367
  position: z.ZodOptional<z.ZodObject<{
382
368
  x: z.ZodNumber;
@@ -410,22 +396,20 @@ export type PluginPresentationAnnotateNoteArgs = z.infer<typeof PluginPresentati
410
396
  *
411
397
  * | Property | Type | Description |
412
398
  * |---|---|---|
413
- * | `sheetId` | `string \| undefined` | The sheet parent; omit when `drawingId` is set |
414
- * | `drawingId` | `string \| undefined` | The drawing parent; mutually exclusive with `sheetId` |
399
+ * | `sheetId` | `string` | The sheet to annotate |
415
400
  * | `kind` | {@linkcode PluginAnnotateGeoKind} | The shape kind |
416
401
  * | `bounds` | `{ x: number; y: number; w: number; h: number }` | Placement box (relative to the sheet; `w`/`h` positive) |
417
402
  * | `color` | {@linkcode PluginAnnotateTextColor}` \| undefined` | Outline color |
418
403
  * | `fill` | {@linkcode PluginAnnotateFill}` \| undefined` | Fill style |
419
404
  */
420
405
  export declare const PluginPresentationAnnotateShapeArgs: z.ZodObject<{
421
- sheetId: z.ZodOptional<z.ZodString>;
422
- drawingId: z.ZodOptional<z.ZodString>;
406
+ sheetId: z.ZodString;
423
407
  kind: z.ZodEnum<{
424
- hexagon: "hexagon";
425
408
  rectangle: "rectangle";
426
409
  ellipse: "ellipse";
427
410
  triangle: "triangle";
428
411
  diamond: "diamond";
412
+ hexagon: "hexagon";
429
413
  oval: "oval";
430
414
  rhombus: "rhombus";
431
415
  star: "star";
@@ -1 +1 @@
1
- {"version":3,"file":"annotate.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/annotate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;;;;;;;;;GAeG;AACH,8BAAsB,6BAA6B;;IAGjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;aACa,IAAI,CAClB,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;QACR,QAAQ,CAAC,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;QACnC,IAAI,CAAC,EAAE,sBAAsB,CAAA;QAC7B,KAAK,CAAC,EAAE,uBAAuB,CAAA;QAC/B,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,GACA,eAAe,CAAC,oCAAoC,CAAC;IAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;aACa,KAAK,CACnB,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAC/B,GAAG,EAAE;Q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AAgC,CACxC,CAAA"}
@@ -1,13 +1,13 @@
1
1
  import * as z from "zod";
2
2
  /**
3
3
  * Presentation export — render the Present-mode layout sheets to a downloadable
4
- * file (PDF / PNG / JPG), returning base64 by default or starting a browser download.
4
+ * file (PDF / PNG / JPG) and hand the plugin the bytes as base64.
5
5
  *
6
6
  * This wraps the same pipeline the Present-mode **Export** dialog drives:
7
7
  * each sheet is serialized to an SVG, then either composed into a PDF
8
- * (svg2pdf/jspdf) or rasterized to a PNG/JPG. By default the plugin receives the
9
- * encoded bytes to save, upload or preview. With `download: true`, the host
10
- * initiates browser downloads and returns metadata only, keeping agent results small.
8
+ * (svg2pdf/jspdf) or rasterized to a PNG/JPG. Nothing is written to disk
9
+ * host-side — the plugin receives the encoded bytes and decides what to do
10
+ * with them (save, upload, preview).
11
11
  *
12
12
  * Requires **Present mode to be open** (the documentation editor); the call
13
13
  * throws `PRECONDITION_FAILED` when it is not.
@@ -56,8 +56,7 @@ export type PluginPresentationExportResolution = z.infer<typeof PluginPresentati
56
56
  * | `sheetIds` | `string[] \| undefined` | Sheets to export (all sheets when omitted) |
57
57
  * | `combine` | `boolean \| undefined` | PDF only: one multi-page file (default `true`) vs one file per sheet |
58
58
  * | `resolution` | {@linkcode PluginPresentationExportResolution}` \| undefined` | Raster target size (`png`/`jpg` only) |
59
- * | `fileName` | `string \| undefined` | Base file name WITHOUT an extension (`"Floor Pattern View"`, never `"Floor Pattern View.pdf"`); the host appends the extension for the format, and a name ending in .pdf/.svg/.png/.jpg/.jpeg, a dot or a space is rejected |
60
- * | `download` | `boolean \| undefined` | Start browser downloads and return metadata without base64 (default `false`) |
59
+ * | `fileName` | `string \| undefined` | Base file name (without extension) |
61
60
  */
62
61
  export declare const PluginPresentationExportArgs: z.ZodObject<{
63
62
  format: z.ZodEnum<{
@@ -72,11 +71,8 @@ export declare const PluginPresentationExportArgs: z.ZodObject<{
72
71
  height: z.ZodNumber;
73
72
  }, z.core.$strip>>;
74
73
  fileName: z.ZodOptional<z.ZodString>;
75
- download: z.ZodOptional<z.ZodBoolean>;
76
74
  }, z.core.$strip>;
77
75
  export type PluginPresentationExportArgs = z.infer<typeof PluginPresentationExportArgs>;
78
- /** Options after the positional export format. Omitted `download` preserves base64 results. */
79
- export type PluginPresentationExportOptions = Omit<PluginPresentationExportArgs, "format">;
80
76
  /**
81
77
  * A single exported file.
82
78
  *
@@ -109,18 +105,4 @@ export declare const PluginPresentationExportResult: z.ZodObject<{
109
105
  }, z.core.$strip>>;
110
106
  }, z.core.$strip>;
111
107
  export type PluginPresentationExportResult = z.infer<typeof PluginPresentationExportResult>;
112
- /**
113
- * Metadata-only result for `download: true`. `downloadStarted` confirms initiation,
114
- * not an OS-saved file: browsers may require multiple-download permission. No base64
115
- * is returned. Default exports retain their existing result and TypeScript contract.
116
- */
117
- export declare const PluginPresentationExportDownloadResult: z.ZodObject<{
118
- files: z.ZodArray<z.ZodObject<{
119
- fileName: z.ZodString;
120
- mimeType: z.ZodString;
121
- byteLength: z.ZodNumber;
122
- }, z.core.$strip>>;
123
- downloadStarted: z.ZodBoolean;
124
- }, z.core.$strip>;
125
- export type PluginPresentationExportDownloadResult = z.infer<typeof PluginPresentationExportDownloadResult>;
126
108
  //# sourceMappingURL=export.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/export.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAGxB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,yEAAyE;AACzE,eAAO,MAAM,8BAA8B;;;;EAAgC,CAAA;AAC3E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,8BAA8B,CACtC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,kCAAkC;;;iBAG7C,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,kCAAkC,CAC1C,C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AM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B;;;;iBAIvC,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B;;;;;;iBAEzC,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,8BAA8B,CACtC,CAAA"}
@@ -5,15 +5,14 @@ import { PluginPresentationAIInspirationApi } from "./aiInspiration";
5
5
  import { PluginPresentationSheetsApi } from "./sheets";
6
6
  import { PluginPresentationPlacedViewsApi } from "./placedViews";
7
7
  import { PluginPresentationDiagramsApi } from "./diagrams";
8
- import { PluginPresentationDrawingsApi } from "./drawings";
9
- import { PluginPresentationViewPresetsApi } from "./viewPresets";
10
8
  import { PluginPresentationAnnotateApi } from "./annotate";
11
9
  import { PluginPresentationShapesApi } from "./shapes";
12
10
  import { PluginPresentationTablesApi } from "./tables";
13
11
  import { PluginPresentationSlideshowApi } from "./slideshow";
14
12
  import { PluginPresentationImportApi } from "./import";
15
13
  import { PluginPresentationWalkthroughsApi } from "./walkthroughs";
16
- import { type PluginPresentationExportResult, type PluginPresentationExportDownloadResult, type PluginPresentationExportFormat, type PluginPresentationExportOptions } from "./export";
14
+ import { PluginPresentationSectionsApi } from "./sections";
15
+ import { PluginPresentationExportResult, type PluginPresentationExportFormat, type PluginPresentationExportResolution } from "./export";
17
16
  /**
18
17
  * Presentation APIs — prepare and assemble presentations.
19
18
  *
@@ -26,9 +25,7 @@ import { type PluginPresentationExportResult, type PluginPresentationExportDownl
26
25
  *
27
26
  * - {@linkcode PluginPresentationApi.views} — Saved 2D/3D views (list, get, capture, activate, create)
28
27
  * - {@linkcode PluginPresentationApi.camera} — The Present canvas camera (screenshot, pan/zoom, frame sheets)
29
- * - {@linkcode PluginPresentationApi.drawings} — Drawings made from saved views (create, rescale, crop, restyle, labels, export)
30
- * - {@linkcode PluginPresentationApi.viewPresets} — Reusable drawing styles (list, get, create, update, copy, rename, delete)
31
- * - {@linkcode PluginPresentationApi.sheets} — Layout sheets (list, get, create, place views and drawings)
28
+ * - {@linkcode PluginPresentationApi.sheets} — Layout sheets (list, get, create, place views)
32
29
  * - {@linkcode PluginPresentationApi.placedViews} — Views already placed on the canvas (move, scale, crop)
33
30
  * - {@linkcode PluginPresentationApi.diagrams} — Generate program/site diagram sheets, place diagram images
34
31
  * - {@linkcode PluginPresentationApi.tables} — Place data tables on sheets
@@ -36,6 +33,7 @@ import { type PluginPresentationExportResult, type PluginPresentationExportDownl
36
33
  * - {@linkcode PluginPresentationApi.import} — Import reference images/PDFs onto the canvas
37
34
  * - {@linkcode PluginPresentationApi.aiInspiration} — Present-mode AI image/video generation
38
35
  * - {@linkcode PluginPresentationApi.walkthroughs} — Camera paths through the model: create, play, capture, export as video
36
+ * - {@linkcode PluginPresentationApi.sections} — Section lines: create, edit, open their views, and read what each cuts
39
37
  *
40
38
  * Accessed via `snaptrude.presentation`.
41
39
  */
@@ -44,10 +42,6 @@ export declare abstract class PluginPresentationApi {
44
42
  abstract views: PluginPresentationViewsApi;
45
43
  /** The Present canvas camera — screenshot what is on screen, read/pan/zoom it, frame sheets (Present mode). See {@linkcode PluginPresentationCameraApi}. */
46
44
  abstract camera: PluginPresentationCameraApi;
47
- /** Drawing deliverables made from saved views, independent of sheet composition (Present mode). See {@linkcode PluginPresentationDrawingsApi}. */
48
- abstract drawings: PluginPresentationDrawingsApi;
49
- /** Reusable kernel-plan styles stored in the Present document. See {@linkcode PluginPresentationViewPresetsApi}. */
50
- abstract viewPresets: PluginPresentationViewPresetsApi;
51
45
  /** Layout sheets — list/get/create and place views (Present mode). See {@linkcode PluginPresentationSheetsApi}. */
52
46
  abstract sheets: PluginPresentationSheetsApi;
53
47
  /** Placed views — layout of the view shapes on the canvas: move/scale/setScale/setCrop (Present mode). See {@linkcode PluginPresentationPlacedViewsApi}. */
@@ -75,24 +69,23 @@ export declare abstract class PluginPresentationApi {
75
69
  * Present canvas. See {@linkcode PluginPresentationWalkthroughsApi}.
76
70
  */
77
71
  abstract walkthroughs: PluginPresentationWalkthroughsApi;
72
+ /**
73
+ * Sections — lines on the plan that cut the model: create, edit and delete
74
+ * them, open their views, and read what each one cuts (`getCut`). See
75
+ * {@linkcode PluginPresentationSectionsApi}.
76
+ */
77
+ abstract sections: PluginPresentationSectionsApi;
78
78
  /**
79
79
  * Export the presentation's layout sheets to a downloadable file (PDF / PNG /
80
- * JPG). Return base64 by default; `download: true` initiates browser downloads
81
- * and returns metadata without base64. Requires Present mode to be open.
82
- * `fileName` is a base name WITHOUT an extension ("Floor Pattern View", never
83
- * "Floor Pattern View.pdf"): the host appends the extension for the format, and
84
- * a name ending in .pdf, .svg, .png, .jpg or .jpeg, a dot or a space is rejected.
80
+ * JPG) and return the encoded bytes as base64. Wraps the Present-mode Export
81
+ * dialog pipeline headlessly. Requires Present mode to be open.
85
82
  *
86
83
  * @param format - Output format: `"pdf"`, `"png"`, or `"jpg"`.
87
84
  * @param options - Optional `sheetIds` (all sheets when omitted), `combine`
88
85
  * (PDF only — one multi-page file vs one per sheet, default `true`),
89
- * `resolution` (raster target size for `png`/`jpg`), `fileName` (a base name
90
- * WITHOUT an extension, e.g. "Floor Pattern View"; the host appends the
91
- * extension and rejects a name ending in .pdf/.svg/.png/.jpg/.jpeg), and `download`.
92
- * @returns A `files` array (one entry for a combined PDF, one per sheet otherwise).
93
- * Downloads return {@linkcode PluginPresentationExportDownloadResult}; otherwise
94
- * {@linkcode PluginPresentationExportResult}. Download initiation does not prove
95
- * the browser saved the file; multiple downloads may require user permission.
86
+ * `resolution` (raster target size for `png`/`jpg`), and `fileName`.
87
+ * @returns A {@linkcode PluginPresentationExportResult} — always a `files`
88
+ * array (one entry for a combined PDF, one per sheet otherwise).
96
89
  * @throws If Present mode is not open, a `sheetId` is unknown, or a sheet
97
90
  * fails to serialize/encode.
98
91
  *
@@ -105,16 +98,14 @@ export declare abstract class PluginPresentationApi {
105
98
  * # Example
106
99
  * ```ts
107
100
  * const { files } = await snaptrude.presentation.export("pdf")
108
- * const download = await snaptrude.presentation.export("pdf", { download: true })
109
101
  * ```
110
102
  */
111
- abstract export(format: PluginPresentationExportFormat, options?: PluginPresentationExportOptions & {
112
- download?: false;
103
+ abstract export(format: PluginPresentationExportFormat, options?: {
104
+ sheetIds?: string[];
105
+ combine?: boolean;
106
+ resolution?: PluginPresentationExportResolution;
107
+ fileName?: string;
113
108
  }): PluginApiReturn<PluginPresentationExportResult>;
114
- abstract export(format: PluginPresentationExportFormat, options: PluginPresentationExportOptions & {
115
- download: true;
116
- }): PluginApiReturn<PluginPresentationExportDownloadResult>;
117
- abstract export(format: PluginPresentationExportFormat, options?: PluginPresentationExportOptions): PluginApiReturn<PluginPresentationExportResult | PluginPresentationExportDownloadResult>;
118
109
  constructor();
119
110
  }
120
111
  export * from "./views";
@@ -129,8 +120,6 @@ export * from "./slideshow";
129
120
  export * from "./import";
130
121
  export * from "./aiInspiration";
131
122
  export * from "./walkthroughs";
123
+ export * from "./sections";
132
124
  export * from "./export";
133
- export * from "./drawings";
134
- export * from "./drawingContract";
135
- export * from "./viewPresets";
136
125
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,EAAE,kCAAkC,EAAE,MAAM,iBAAiB,CAAA;AACpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,EAAE,gCAAgC,EAAE,MAAM,eAAe,C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