@snaptrude/plugin-core 0.8.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.
- package/CHANGELOG.md +35 -1
- package/api-manifest.full.json +1350 -89
- package/api-manifest.json +1146 -48
- package/dist/api/analysis/daylight.d.ts +603 -0
- package/dist/api/analysis/daylight.d.ts.map +1 -0
- package/dist/api/analysis/heatmaps.d.ts +438 -14
- package/dist/api/analysis/heatmaps.d.ts.map +1 -1
- package/dist/api/analysis/index.d.ts +15 -0
- package/dist/api/analysis/index.d.ts.map +1 -1
- package/dist/api/analysis/solar.d.ts +249 -0
- package/dist/api/analysis/solar.d.ts.map +1 -0
- package/dist/api/analysis/weather.d.ts +193 -0
- package/dist/api/analysis/weather.d.ts.map +1 -0
- package/dist/api/core/camera/index.d.ts +37 -0
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/core/geom/create/index.d.ts +318 -1
- package/dist/api/core/geom/create/index.d.ts.map +1 -1
- package/dist/api/core/index.d.ts +9 -0
- package/dist/api/core/index.d.ts.map +1 -1
- package/dist/api/core/io/export/index.d.ts +3 -1
- package/dist/api/core/io/export/index.d.ts.map +1 -1
- package/dist/api/core/io/import/index.d.ts +61 -0
- package/dist/api/core/io/import/index.d.ts.map +1 -1
- package/dist/api/core/io/terrain/index.d.ts +132 -0
- package/dist/api/core/io/terrain/index.d.ts.map +1 -1
- package/dist/api/core/mode/index.d.ts +99 -0
- package/dist/api/core/mode/index.d.ts.map +1 -0
- package/dist/api/core/storeys/index.d.ts +251 -0
- package/dist/api/core/storeys/index.d.ts.map +1 -0
- package/dist/api/core/tags.d.ts +24 -0
- package/dist/api/core/tags.d.ts.map +1 -1
- package/dist/api/core/zoom/index.d.ts +4 -0
- package/dist/api/core/zoom/index.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +115 -4
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/delete/index.d.ts +3 -0
- package/dist/api/design/delete/index.d.ts.map +1 -1
- package/dist/api/design/query/geometry/index.d.ts +112 -0
- package/dist/api/design/query/geometry/index.d.ts.map +1 -1
- package/dist/api/design/query/index.d.ts +4 -0
- package/dist/api/design/query/index.d.ts.map +1 -1
- package/dist/api/design/query/referenceLines.d.ts +45 -0
- package/dist/api/design/query/referenceLines.d.ts.map +1 -0
- package/dist/api/design/query/spaces.d.ts +173 -0
- package/dist/api/design/query/spaces.d.ts.map +1 -1
- package/dist/api/design/transform/index.d.ts +12 -0
- package/dist/api/design/transform/index.d.ts.map +1 -1
- package/dist/api/design/update/index.d.ts +51 -1
- package/dist/api/design/update/index.d.ts.map +1 -1
- package/dist/api/entity/buildableEnvelope.d.ts +4 -0
- package/dist/api/entity/buildableEnvelope.d.ts.map +1 -1
- package/dist/api/entity/referenceLine.d.ts +8 -0
- package/dist/api/entity/referenceLine.d.ts.map +1 -1
- package/dist/api/entity/story.d.ts +20 -0
- package/dist/api/entity/story.d.ts.map +1 -1
- package/dist/api/index.d.ts +5 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/presentation/annotate.d.ts +23 -4
- package/dist/api/presentation/annotate.d.ts.map +1 -1
- package/dist/api/presentation/diagrams.d.ts +64 -2
- package/dist/api/presentation/diagrams.d.ts.map +1 -1
- package/dist/api/presentation/export.d.ts +4 -0
- package/dist/api/presentation/export.d.ts.map +1 -1
- package/dist/api/presentation/import.d.ts +6 -0
- package/dist/api/presentation/import.d.ts.map +1 -1
- package/dist/api/presentation/index.d.ts +20 -1
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +1139 -0
- package/dist/api/presentation/placedViews.d.ts.map +1 -0
- package/dist/api/presentation/shapes.d.ts +481 -0
- package/dist/api/presentation/shapes.d.ts.map +1 -0
- package/dist/api/presentation/sheets.d.ts +42 -0
- package/dist/api/presentation/sheets.d.ts.map +1 -1
- package/dist/api/presentation/slideshow.d.ts +125 -0
- package/dist/api/presentation/slideshow.d.ts.map +1 -0
- package/dist/api/presentation/tables.d.ts +81 -0
- package/dist/api/presentation/tables.d.ts.map +1 -0
- package/dist/api/program/site.d.ts +260 -2
- package/dist/api/program/site.d.ts.map +1 -1
- package/dist/api/program/spreadsheet.d.ts +260 -28
- package/dist/api/program/spreadsheet.d.ts.map +1 -1
- package/dist/api/workspace/index.d.ts +505 -0
- package/dist/api/workspace/index.d.ts.map +1 -0
- package/dist/index.cjs +2904 -1761
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2762 -1761
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/scripts/generate-manifest.mjs +45 -0
- package/src/api/analysis/daylight.ts +470 -0
- package/src/api/analysis/heatmaps.ts +444 -17
- package/src/api/analysis/index.ts +15 -0
- package/src/api/analysis/solar.ts +237 -0
- package/src/api/analysis/weather.ts +179 -0
- package/src/api/core/camera/index.ts +39 -0
- package/src/api/core/geom/create/index.ts +344 -1
- package/src/api/core/index.ts +9 -0
- package/src/api/core/io/export/index.ts +3 -1
- package/src/api/core/io/import/index.ts +64 -0
- package/src/api/core/io/terrain/index.ts +143 -0
- package/src/api/core/mode/index.ts +96 -0
- package/src/api/core/storeys/index.ts +279 -0
- package/src/api/core/tags.ts +27 -0
- package/src/api/core/zoom/index.ts +4 -0
- package/src/api/design/create/index.ts +138 -1
- package/src/api/design/delete/index.ts +3 -0
- package/src/api/design/query/geometry/index.ts +125 -3
- package/src/api/design/query/index.ts +4 -0
- package/src/api/design/query/referenceLines.ts +52 -0
- package/src/api/design/query/spaces.ts +143 -0
- package/src/api/design/transform/index.ts +12 -0
- package/src/api/design/update/index.ts +66 -1
- package/src/api/entity/buildableEnvelope.ts +4 -0
- package/src/api/entity/referenceLine.ts +8 -0
- package/src/api/entity/story.ts +20 -0
- package/src/api/index.ts +5 -0
- package/src/api/presentation/annotate.ts +27 -2
- package/src/api/presentation/diagrams.ts +67 -2
- package/src/api/presentation/export.ts +4 -0
- package/src/api/presentation/import.ts +6 -0
- package/src/api/presentation/index.ts +20 -1
- package/src/api/presentation/placedViews.ts +1120 -0
- package/src/api/presentation/shapes.ts +274 -0
- package/src/api/presentation/sheets.ts +54 -0
- package/src/api/presentation/slideshow.ts +134 -0
- package/src/api/presentation/tables.ts +84 -0
- package/src/api/program/site.ts +205 -2
- package/src/api/program/spreadsheet.ts +251 -6
- package/src/api/workspace/index.ts +563 -0
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;aACa,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,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;KACpB,GACA,eAAe,CAAC,oCAAoC,CAAC;IAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;aACa,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;;;;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.
|
|
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
|
|
1
|
+
{"version":3,"file":"diagrams.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/diagrams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CA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;AACH,eAAO,MAAM,wCAAwC;;iBAEnD,CAAA;AACF,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,wCAAwC,CAChD,CAAA"}
|
|
@@ -19,6 +19,10 @@ import * as z from "zod";
|
|
|
19
19
|
*
|
|
20
20
|
* Accessed via `snaptrude.presentation.export`.
|
|
21
21
|
*
|
|
22
|
+
* For a different export intent, see `core.io.export.model` (the 3D model as a
|
|
23
|
+
* GLB/OBJ/FBX/3DS file) and `program.spreadsheet.export` (the area-program /
|
|
24
|
+
* takeoff workbook as XLSX/PDF/CSV).
|
|
25
|
+
*
|
|
22
26
|
* The schemas and result types live here; the callable method is declared on
|
|
23
27
|
* {@linkcode PluginPresentationApi.export}.
|
|
24
28
|
*/
|
|
@@ -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;AAExB
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/export.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;iBAMvC,CAAA;AACF,MAAM,MAAM,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"}
|
|
@@ -18,6 +18,9 @@ export declare abstract class PluginPresentationImportApi {
|
|
|
18
18
|
/**
|
|
19
19
|
* Import a reference image onto the current Present sheet.
|
|
20
20
|
*
|
|
21
|
+
* To place the image as a **scene** underlay to trace over — on a storey,
|
|
22
|
+
* not the Present canvas — use `core.io.import.image` instead.
|
|
23
|
+
*
|
|
21
24
|
* @param source - The asset to import: exactly one of `url` or `dataUrl`.
|
|
22
25
|
* @param options - Optional `position` — where to place the image on the
|
|
23
26
|
* sheet.
|
|
@@ -52,6 +55,9 @@ export declare abstract class PluginPresentationImportApi {
|
|
|
52
55
|
*
|
|
53
56
|
* Each page is converted to vector SVG and placed as a canvas shape.
|
|
54
57
|
*
|
|
58
|
+
* To bring the PDF into the **scene** as a traceable underlay — on a storey,
|
|
59
|
+
* not the Present canvas — use `core.io.import.pdf` instead.
|
|
60
|
+
*
|
|
55
61
|
* @param source - The asset to import: exactly one of `url` or `dataUrl`.
|
|
56
62
|
* @param options - Optional `position` — where to place the pages on the
|
|
57
63
|
* sheet.
|
|
@@ -1 +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;;;;;;;;;;;;GAYG;AACH,8BAAsB,2BAA2B;;IAG/C
|
|
1
|
+
{"version":3,"file":"import.d.ts","sourceR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G,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"}
|
|
@@ -2,8 +2,12 @@ import { PluginApiReturn } from "../../types";
|
|
|
2
2
|
import { PluginPresentationViewsApi } from "./views";
|
|
3
3
|
import { PluginPresentationAIInspirationApi } from "./aiInspiration";
|
|
4
4
|
import { PluginPresentationSheetsApi } from "./sheets";
|
|
5
|
+
import { PluginPresentationPlacedViewsApi } from "./placedViews";
|
|
5
6
|
import { PluginPresentationDiagramsApi } from "./diagrams";
|
|
6
7
|
import { PluginPresentationAnnotateApi } from "./annotate";
|
|
8
|
+
import { PluginPresentationShapesApi } from "./shapes";
|
|
9
|
+
import { PluginPresentationTablesApi } from "./tables";
|
|
10
|
+
import { PluginPresentationSlideshowApi } from "./slideshow";
|
|
7
11
|
import { PluginPresentationImportApi } from "./import";
|
|
8
12
|
import { PluginPresentationExportResult, type PluginPresentationExportFormat, type PluginPresentationExportResolution } from "./export";
|
|
9
13
|
/**
|
|
@@ -18,7 +22,10 @@ import { PluginPresentationExportResult, type PluginPresentationExportFormat, ty
|
|
|
18
22
|
*
|
|
19
23
|
* - {@linkcode PluginPresentationApi.views} — Saved 2D/3D views (list, get, capture, activate, create)
|
|
20
24
|
* - {@linkcode PluginPresentationApi.sheets} — Layout sheets (list, get, create, place views)
|
|
21
|
-
* - {@linkcode PluginPresentationApi.
|
|
25
|
+
* - {@linkcode PluginPresentationApi.placedViews} — Views already placed on the canvas (move, scale, crop)
|
|
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
|
|
22
29
|
* - {@linkcode PluginPresentationApi.import} — Import reference images/PDFs onto the canvas
|
|
23
30
|
* - {@linkcode PluginPresentationApi.aiInspiration} — Present-mode AI image/video generation
|
|
24
31
|
*
|
|
@@ -29,10 +36,18 @@ export declare abstract class PluginPresentationApi {
|
|
|
29
36
|
abstract views: PluginPresentationViewsApi;
|
|
30
37
|
/** Layout sheets — list/get/create and place views (Present mode). See {@linkcode PluginPresentationSheetsApi}. */
|
|
31
38
|
abstract sheets: PluginPresentationSheetsApi;
|
|
39
|
+
/** Placed views — layout of the view shapes on the canvas: move/scale/setScale/setCrop (Present mode). See {@linkcode PluginPresentationPlacedViewsApi}. */
|
|
40
|
+
abstract placedViews: PluginPresentationPlacedViewsApi;
|
|
32
41
|
/** Program/adjacency/site diagrams — place images on sheets. See {@linkcode PluginPresentationDiagramsApi}. */
|
|
33
42
|
abstract diagrams: PluginPresentationDiagramsApi;
|
|
34
43
|
/** Annotations on Present-mode sheets — text/arrows/notes/geo shapes. See {@linkcode PluginPresentationAnnotateApi}. */
|
|
35
44
|
abstract annotate: PluginPresentationAnnotateApi;
|
|
45
|
+
/** Plugin-owned keyed shapes — upsert/remove/list so reruns update instead of duplicating. See {@linkcode PluginPresentationShapesApi}. */
|
|
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;
|
|
36
51
|
/** Import reference images/PDFs onto the Present canvas. See {@linkcode PluginPresentationImportApi}. */
|
|
37
52
|
abstract import: PluginPresentationImportApi;
|
|
38
53
|
/**
|
|
@@ -75,8 +90,12 @@ export declare abstract class PluginPresentationApi {
|
|
|
75
90
|
}
|
|
76
91
|
export * from "./views";
|
|
77
92
|
export * from "./sheets";
|
|
93
|
+
export * from "./placedViews";
|
|
78
94
|
export * from "./diagrams";
|
|
79
95
|
export * from "./annotate";
|
|
96
|
+
export * from "./shapes";
|
|
97
|
+
export * from "./tables";
|
|
98
|
+
export * from "./slideshow";
|
|
80
99
|
export * from "./import";
|
|
81
100
|
export * from "./aiInspiration";
|
|
82
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,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,EACL,8BAA8B,EAC9B,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACxC,MAAM,UAAU,CAAA;AAEjB
|
|
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,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,EAAE,gCAAgC,EAAE,MAAM,eAAe,CAAA;AAChE,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,EAAE,2B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