@snaptrude/plugin-core 0.9.0 → 0.9.1

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 (38) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/api-manifest.json +312 -0
  3. package/dist/api/core/io/terrain/index.d.ts +132 -0
  4. package/dist/api/core/io/terrain/index.d.ts.map +1 -1
  5. package/dist/api/presentation/annotate.d.ts +23 -4
  6. package/dist/api/presentation/annotate.d.ts.map +1 -1
  7. package/dist/api/presentation/diagrams.d.ts +64 -2
  8. package/dist/api/presentation/diagrams.d.ts.map +1 -1
  9. package/dist/api/presentation/index.d.ts +11 -1
  10. package/dist/api/presentation/index.d.ts.map +1 -1
  11. package/dist/api/presentation/placedViews.d.ts +772 -3
  12. package/dist/api/presentation/placedViews.d.ts.map +1 -1
  13. package/dist/api/presentation/shapes.d.ts +2 -2
  14. package/dist/api/presentation/sheets.d.ts +42 -0
  15. package/dist/api/presentation/sheets.d.ts.map +1 -1
  16. package/dist/api/presentation/slideshow.d.ts +125 -0
  17. package/dist/api/presentation/slideshow.d.ts.map +1 -0
  18. package/dist/api/presentation/tables.d.ts +81 -0
  19. package/dist/api/presentation/tables.d.ts.map +1 -0
  20. package/dist/api/program/site.d.ts +166 -2
  21. package/dist/api/program/site.d.ts.map +1 -1
  22. package/dist/api/workspace/index.d.ts +46 -1
  23. package/dist/api/workspace/index.d.ts.map +1 -1
  24. package/dist/index.cjs +829 -553
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.js +797 -553
  27. package/dist/index.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/api/core/io/terrain/index.ts +143 -0
  30. package/src/api/presentation/annotate.ts +27 -2
  31. package/src/api/presentation/diagrams.ts +67 -2
  32. package/src/api/presentation/index.ts +11 -1
  33. package/src/api/presentation/placedViews.ts +760 -3
  34. package/src/api/presentation/sheets.ts +54 -0
  35. package/src/api/presentation/slideshow.ts +134 -0
  36. package/src/api/presentation/tables.ts +84 -0
  37. package/src/api/program/site.ts +110 -2
  38. package/src/api/workspace/index.ts +48 -1
@@ -24,12 +24,22 @@ export declare abstract class PluginPresentationAnnotateApi {
24
24
  * Creates a text shape on the given sheet and returns the id of the created
25
25
  * canvas shape. Requires Present mode to be open.
26
26
  *
27
+ * Typography is optional: `fontFamily` takes a system family or any Google
28
+ * Font (loaded automatically, the same loader as the Present text panel);
29
+ * `fontWeight` is a numeric weight string like `"400"` or `"700"`,
30
+ * optionally with the `-italic` suffix (e.g. `"700-italic"`) — the Present
31
+ * text panel's value domain; a weight the chosen font does not provide
32
+ * falls back to regular. `fontSizePx` sets an exact pixel size, overriding
33
+ * the `size` preset when both are given (`size` alone keeps working).
34
+ *
27
35
  * @param sheetId - The sheet to annotate.
28
36
  * @param text - The label text.
29
37
  * @param options - Optional `position` (`{ x, y }`, relative to the sheet's
30
38
  * top-left, in canvas units — defaults to the sheet's top-left corner),
31
- * `size` (`"s" | "m" | "l" | "xl"`, default `"m"`), and `color` (a named
32
- * palette color, default `"black"`).
39
+ * `size` (`"s" | "m" | "l" | "xl"`, default `"m"`), `color` (a named
40
+ * palette color, default `"black"`), and typography: `fontFamily`,
41
+ * `fontWeight` (numeric string, `-italic` suffix allowed), `fontSizePx`
42
+ * (positive px size overriding the `size` preset).
33
43
  * @returns A {@linkcode PluginPresentationAnnotateTextResult} with the created
34
44
  * `shapeId`.
35
45
  * @throws If Present mode is not open or the sheet id is invalid.
@@ -55,6 +65,9 @@ export declare abstract class PluginPresentationAnnotateApi {
55
65
  };
56
66
  size?: PluginAnnotateTextSize;
57
67
  color?: PluginAnnotateTextColor;
68
+ fontFamily?: string;
69
+ fontWeight?: string;
70
+ fontSizePx?: number;
58
71
  }): PluginApiReturn<PluginPresentationAnnotateTextResult>;
59
72
  /**
60
73
  * Draw an arrow on a sheet.
@@ -214,6 +227,9 @@ export type PluginAnnotateTextColor = z.infer<typeof PluginAnnotateTextColor>;
214
227
  * | `position` | `{ x: number; y: number } \| undefined` | Where to place it (relative to the sheet) |
215
228
  * | `size` | {@linkcode PluginAnnotateTextSize}` \| undefined` | Text size preset |
216
229
  * | `color` | {@linkcode PluginAnnotateTextColor}` \| undefined` | Text color |
230
+ * | `fontFamily` | `string \| undefined` | System family or any Google Font (loaded automatically) |
231
+ * | `fontWeight` | `string \| undefined` | Numeric weight like `"400"`/`"700"`, `-italic` suffix allowed |
232
+ * | `fontSizePx` | `number \| undefined` | Exact px size (overrides the `size` preset) |
217
233
  */
218
234
  export declare const PluginPresentationAnnotateTextArgs: z.ZodObject<{
219
235
  sheetId: z.ZodString;
@@ -243,6 +259,9 @@ export declare const PluginPresentationAnnotateTextArgs: z.ZodObject<{
243
259
  red: "red";
244
260
  white: "white";
245
261
  }>>;
262
+ fontFamily: z.ZodOptional<z.ZodString>;
263
+ fontWeight: z.ZodOptional<z.ZodString>;
264
+ fontSizePx: z.ZodOptional<z.ZodNumber>;
246
265
  }, z.core.$strip>;
247
266
  export type PluginPresentationAnnotateTextArgs = z.infer<typeof PluginPresentationAnnotateTextArgs>;
248
267
  /**
@@ -282,9 +301,9 @@ export type PluginAnnotateGeoKind = z.infer<typeof PluginAnnotateGeoKind>;
282
301
  /** Fill style for geo shapes (the same fills as the Present-mode style panel). */
283
302
  export declare const PluginAnnotateFill: z.ZodEnum<{
284
303
  pattern: "pattern";
304
+ solid: "solid";
285
305
  none: "none";
286
306
  semi: "semi";
287
- solid: "solid";
288
307
  }>;
289
308
  export type PluginAnnotateFill = z.infer<typeof PluginAnnotateFill>;
290
309
  /**
@@ -426,9 +445,9 @@ export declare const PluginPresentationAnnotateShapeArgs: z.ZodObject<{
426
445
  }>>;
427
446
  fill: z.ZodOptional<z.ZodEnum<{
428
447
  pattern: "pattern";
448
+ solid: "solid";
429
449
  none: "none";
430
450
  semi: "semi";
431
- solid: "solid";
432
451
  }>>;
433
452
  }, z.core.$strip>;
434
453
  export type PluginPresentationAnnotateShapeArgs = z.infer<typeof PluginPresentationAnnotateShapeArgs>;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;;;iBAM9C,CAAA;AACF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM7C,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,kCAAkC,CAC1C,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW9C,CAAA;AACF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gCAAgC;;iBAE3C,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,gCAAgC,CACxC,CAAA"}
@@ -7,8 +7,10 @@ import { PluginApiReturn } from "../../types";
7
7
  * {@linkcode PluginPresentationDiagramsApi.generateProgram} runs the Present-mode
8
8
  * **Program** action: it reads the project's spaces and departments and creates
9
9
  * new layout sheets holding the generated diagram graphics.
10
+ * {@linkcode PluginPresentationDiagramsApi.generateSite} runs the site-diagram
11
+ * flow (location / streetview / climate sheets from the map terrain).
10
12
  * {@linkcode PluginPresentationDiagramsApi.place} drops ready diagram images (by
11
- * URL) onto an existing sheet and returns the created canvas shape ids. Both
13
+ * URL) onto an existing sheet and returns the created canvas shape ids. All
12
14
  * require Present mode to be open. Adjacency data itself is read and computed via
13
15
  * `program.adjacency` (see {@linkcode PluginProgramAdjacencyApi}).
14
16
  *
@@ -47,6 +49,43 @@ export declare abstract class PluginPresentationDiagramsApi {
47
49
  * ```
48
50
  */
49
51
  abstract generateProgram(): PluginApiReturn<PluginPresentationDiagramsGenerateResult>;
52
+ /**
53
+ * Generate the site diagrams (location, streetview, climate) for the
54
+ * current model, creating new layout sheets.
55
+ *
56
+ * Runs the same auto-generation as the Present-mode site-diagram flow:
57
+ * each requested type renders its diagram from the project's map terrain
58
+ * and creates a new sheet holding it. `options.types` selects which
59
+ * diagrams to generate (default: all three). Generation is tracked
60
+ * per-proposal — a type whose diagram already exists for the active
61
+ * proposal is **skipped, not duplicated** (the same semantics as the
62
+ * mount-time flow; existing site-diagram sheets are never replaced), so
63
+ * `sheetIds` contains only the sheets created by this call and can be
64
+ * empty when everything already exists. Requires Present mode to be open
65
+ * and the project to have a map terrain to generate from.
66
+ *
67
+ * @param options - Optional `types` — which site diagrams to generate
68
+ * (default: `["location", "streetview", "climate"]`).
69
+ * @returns A {@linkcode PluginPresentationDiagramsGenerateResult} with the
70
+ * `sheetIds` of the sheets created by this call (empty when all requested
71
+ * types were already generated).
72
+ * @throws If Present mode is not open or the project has no map terrain to
73
+ * generate from.
74
+ *
75
+ * @examplePrompt Generate the site diagrams for this project
76
+ * @examplePrompt Create the location, streetview and climate sheets
77
+ * @examplePrompt Add a climate diagram sheet to the presentation
78
+ *
79
+ * # Example
80
+ * ```ts
81
+ * const { sheetIds } = await snaptrude.presentation.diagrams.generateSite({
82
+ * types: ["location", "climate"],
83
+ * })
84
+ * ```
85
+ */
86
+ abstract generateSite(options?: {
87
+ types?: PluginPresentationSiteDiagramType[];
88
+ }): PluginApiReturn<PluginPresentationDiagramsGenerateResult>;
50
89
  /**
51
90
  * Place diagram images onto a sheet.
52
91
  *
@@ -108,8 +147,31 @@ export declare const PluginPresentationDiagramsPlaceResult: z.ZodObject<{
108
147
  shapeIds: z.ZodArray<z.ZodString>;
109
148
  }, z.core.$strip>;
110
149
  export type PluginPresentationDiagramsPlaceResult = z.infer<typeof PluginPresentationDiagramsPlaceResult>;
150
+ /** A site diagram type — the three diagrams of the Present-mode site flow. */
151
+ export declare const PluginPresentationSiteDiagramType: z.ZodEnum<{
152
+ location: "location";
153
+ streetview: "streetview";
154
+ climate: "climate";
155
+ }>;
156
+ export type PluginPresentationSiteDiagramType = z.infer<typeof PluginPresentationSiteDiagramType>;
157
+ /**
158
+ * Arguments for {@linkcode PluginPresentationDiagramsApi.generateSite}.
159
+ *
160
+ * | Property | Type | Description |
161
+ * |---|---|---|
162
+ * | `types` | {@linkcode PluginPresentationSiteDiagramType}`[] \| undefined` | Which site diagrams to generate (default: all three) |
163
+ */
164
+ export declare const PluginPresentationDiagramsGenerateSiteArgs: z.ZodObject<{
165
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
166
+ location: "location";
167
+ streetview: "streetview";
168
+ climate: "climate";
169
+ }>>>;
170
+ }, z.core.$strip>;
171
+ export type PluginPresentationDiagramsGenerateSiteArgs = z.infer<typeof PluginPresentationDiagramsGenerateSiteArgs>;
111
172
  /**
112
- * Result of {@linkcode PluginPresentationDiagramsApi.generateProgram}.
173
+ * Result of {@linkcode PluginPresentationDiagramsApi.generateProgram} and
174
+ * {@linkcode PluginPresentationDiagramsApi.generateSite}.
113
175
  *
114
176
  * | Property | Type | Description |
115
177
  * |---|---|---|
@@ -1 +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;;;;;;;;;;;;;;;;;;GAkBG;AACH,8BAAsB,6BAA6B;;IAGjD;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;aACa,eAAe,IAAI,eAAe,CAAC,wCAAwC,CAAC;IAE5F;;;;;;;;;;;;;;;;;;;;;;;;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,qC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;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;AAED,8EAA8E;AAC9E,eAAO,MAAM,iCAAiC;;;;EAI5C,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,iCAAiC,CACzC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,0CAA0C;;;;;;iBAErD,CAAA;AACF,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAC9D,OAAO,0CAA0C,CAClD,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,wCAAwC;;iBAEnD,CAAA;AACF,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,wCAAwC,CAChD,CAAA"}
@@ -6,6 +6,8 @@ import { PluginPresentationPlacedViewsApi } from "./placedViews";
6
6
  import { PluginPresentationDiagramsApi } from "./diagrams";
7
7
  import { PluginPresentationAnnotateApi } from "./annotate";
8
8
  import { PluginPresentationShapesApi } from "./shapes";
9
+ import { PluginPresentationTablesApi } from "./tables";
10
+ import { PluginPresentationSlideshowApi } from "./slideshow";
9
11
  import { PluginPresentationImportApi } from "./import";
10
12
  import { PluginPresentationExportResult, type PluginPresentationExportFormat, type PluginPresentationExportResolution } from "./export";
11
13
  /**
@@ -21,7 +23,9 @@ import { PluginPresentationExportResult, type PluginPresentationExportFormat, ty
21
23
  * - {@linkcode PluginPresentationApi.views} — Saved 2D/3D views (list, get, capture, activate, create)
22
24
  * - {@linkcode PluginPresentationApi.sheets} — Layout sheets (list, get, create, place views)
23
25
  * - {@linkcode PluginPresentationApi.placedViews} — Views already placed on the canvas (move, scale, crop)
24
- * - {@linkcode PluginPresentationApi.diagrams} — Place program/adjacency/site diagram images on sheets
26
+ * - {@linkcode PluginPresentationApi.diagrams} — Generate program/site diagram sheets, place diagram images
27
+ * - {@linkcode PluginPresentationApi.tables} — Place data tables on sheets
28
+ * - {@linkcode PluginPresentationApi.slideshow} — Run the Present-mode slideshow
25
29
  * - {@linkcode PluginPresentationApi.import} — Import reference images/PDFs onto the canvas
26
30
  * - {@linkcode PluginPresentationApi.aiInspiration} — Present-mode AI image/video generation
27
31
  *
@@ -40,6 +44,10 @@ export declare abstract class PluginPresentationApi {
40
44
  abstract annotate: PluginPresentationAnnotateApi;
41
45
  /** Plugin-owned keyed shapes — upsert/remove/list so reruns update instead of duplicating. See {@linkcode PluginPresentationShapesApi}. */
42
46
  abstract shapes: PluginPresentationShapesApi;
47
+ /** Data tables on Present sheets — place string rows as a table shape. See {@linkcode PluginPresentationTablesApi}. */
48
+ abstract tables: PluginPresentationTablesApi;
49
+ /** The Present-mode slideshow — start/stop/getState. See {@linkcode PluginPresentationSlideshowApi}. */
50
+ abstract slideshow: PluginPresentationSlideshowApi;
43
51
  /** Import reference images/PDFs onto the Present canvas. See {@linkcode PluginPresentationImportApi}. */
44
52
  abstract import: PluginPresentationImportApi;
45
53
  /**
@@ -86,6 +94,8 @@ export * from "./placedViews";
86
94
  export * from "./diagrams";
87
95
  export * from "./annotate";
88
96
  export * from "./shapes";
97
+ export * from "./tables";
98
+ export * from "./slideshow";
89
99
  export * from "./import";
90
100
  export * from "./aiInspiration";
91
101
  export * from "./export";
@@ -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,kCAAkC,EAAE,MAAM,iBAAiB,CAAA;AACpE,OA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