@snaptrude/plugin-core 0.10.0 → 1.0.0
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/AGENTS.md +4 -0
- package/CHANGELOG.md +187 -3
- package/api-manifest.json +929 -25
- package/dist/api/analysis/daylight.d.ts +5 -5
- package/dist/api/analysis/solar.d.ts +2 -2
- package/dist/api/core/camera/index.d.ts +463 -0
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/core/geom/create/index.d.ts +942 -101
- package/dist/api/core/geom/create/index.d.ts.map +1 -1
- package/dist/api/core/geom/query/brep.d.ts +59 -2
- package/dist/api/core/geom/query/brep.d.ts.map +1 -1
- package/dist/api/core/geom/query/curve.d.ts +59 -35
- package/dist/api/core/geom/query/curve.d.ts.map +1 -1
- package/dist/api/core/geom/query/edge.d.ts +2 -2
- package/dist/api/core/geom/query/face.d.ts +105 -0
- package/dist/api/core/geom/query/face.d.ts.map +1 -1
- package/dist/api/core/geom/update/contour.d.ts +10 -2
- package/dist/api/core/geom/update/contour.d.ts.map +1 -1
- package/dist/api/core/geom/update/curve.d.ts +5 -5
- package/dist/api/core/geom/update/profile.d.ts +3 -1
- package/dist/api/core/geom/update/profile.d.ts.map +1 -1
- package/dist/api/core/handles/index.d.ts +4 -2
- package/dist/api/core/handles/index.d.ts.map +1 -1
- package/dist/api/core/index.d.ts +4 -4
- package/dist/api/core/index.d.ts.map +1 -1
- package/dist/api/core/io/import/index.d.ts +3 -1
- package/dist/api/core/io/import/index.d.ts.map +1 -1
- package/dist/api/core/layers.d.ts +377 -255
- package/dist/api/core/layers.d.ts.map +1 -1
- package/dist/api/core/mode/index.d.ts +19 -7
- package/dist/api/core/mode/index.d.ts.map +1 -1
- package/dist/api/core/project/index.d.ts +68 -1
- package/dist/api/core/project/index.d.ts.map +1 -1
- package/dist/api/core/proposals/index.d.ts +4 -3
- package/dist/api/core/proposals/index.d.ts.map +1 -1
- package/dist/api/core/storeys/index.d.ts +31 -2
- package/dist/api/core/storeys/index.d.ts.map +1 -1
- package/dist/api/core/storeys/layers.d.ts +408 -0
- package/dist/api/core/storeys/layers.d.ts.map +1 -0
- package/dist/api/core/tags.d.ts +84 -3
- package/dist/api/core/tags.d.ts.map +1 -1
- package/dist/api/core/zoom/index.d.ts +13 -0
- package/dist/api/core/zoom/index.d.ts.map +1 -1
- package/dist/api/design/bim.d.ts +299 -0
- package/dist/api/design/bim.d.ts.map +1 -0
- package/dist/api/design/boolean/index.d.ts +2 -0
- package/dist/api/design/boolean/index.d.ts.map +1 -1
- package/dist/api/design/catalog.d.ts +320 -0
- package/dist/api/design/catalog.d.ts.map +1 -0
- package/dist/api/design/create/bulk-items.d.ts +269 -0
- package/dist/api/design/create/bulk-items.d.ts.map +1 -0
- package/dist/api/design/create/grids.d.ts +132 -0
- package/dist/api/design/create/grids.d.ts.map +1 -0
- package/dist/api/design/create/index.d.ts +752 -78
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/create/opening-fields.d.ts +38 -0
- package/dist/api/design/create/opening-fields.d.ts.map +1 -0
- package/dist/api/design/delete/index.d.ts +5 -0
- package/dist/api/design/delete/index.d.ts.map +1 -1
- package/dist/api/design/dimensions.d.ts +427 -0
- package/dist/api/design/dimensions.d.ts.map +1 -0
- package/dist/api/design/doors/index.d.ts +24 -23
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/family.d.ts +1446 -0
- package/dist/api/design/family.d.ts.map +1 -0
- package/dist/api/design/furniture/index.d.ts +33 -0
- package/dist/api/design/furniture/index.d.ts.map +1 -1
- package/dist/api/design/grids.d.ts +237 -0
- package/dist/api/design/grids.d.ts.map +1 -0
- package/dist/api/design/index.d.ts +30 -0
- package/dist/api/design/index.d.ts.map +1 -1
- package/dist/api/design/networks.d.ts +1703 -0
- package/dist/api/design/networks.d.ts.map +1 -0
- package/dist/api/design/query/geometry/index.d.ts +33 -5
- package/dist/api/design/query/geometry/index.d.ts.map +1 -1
- package/dist/api/design/query/grids.d.ts +287 -0
- package/dist/api/design/query/grids.d.ts.map +1 -0
- package/dist/api/design/query/index.d.ts +143 -34
- package/dist/api/design/query/index.d.ts.map +1 -1
- package/dist/api/design/query/spaces.d.ts +5 -5
- package/dist/api/design/selection/index.d.ts +12 -12
- package/dist/api/design/types/index.d.ts +40 -24
- package/dist/api/design/types/index.d.ts.map +1 -1
- package/dist/api/design/update/index.d.ts +412 -8
- package/dist/api/design/update/index.d.ts.map +1 -1
- package/dist/api/design/visibility.d.ts +28 -0
- package/dist/api/design/visibility.d.ts.map +1 -1
- package/dist/api/design/windows/index.d.ts +8 -8
- package/dist/api/design/windows/index.d.ts.map +1 -1
- package/dist/api/entity/buildableEnvelope.d.ts +84 -2
- package/dist/api/entity/buildableEnvelope.d.ts.map +1 -1
- package/dist/api/entity/referenceLine.d.ts +13 -1
- package/dist/api/entity/referenceLine.d.ts.map +1 -1
- package/dist/api/entity/space.d.ts +12 -12
- package/dist/api/entity/story.d.ts +4 -4
- package/dist/api/presentation/aiInspiration.d.ts +24 -24
- package/dist/api/presentation/annotate.d.ts +38 -22
- package/dist/api/presentation/annotate.d.ts.map +1 -1
- package/dist/api/presentation/camera.d.ts +265 -0
- package/dist/api/presentation/camera.d.ts.map +1 -0
- package/dist/api/presentation/drawingContract.d.ts +32 -0
- package/dist/api/presentation/drawingContract.d.ts.map +1 -0
- package/dist/api/presentation/drawings.d.ts +3523 -0
- package/dist/api/presentation/drawings.d.ts.map +1 -0
- package/dist/api/presentation/export.d.ts +23 -5
- package/dist/api/presentation/export.d.ts.map +1 -1
- package/dist/api/presentation/graphics.d.ts +419 -0
- package/dist/api/presentation/graphics.d.ts.map +1 -0
- package/dist/api/presentation/index.d.ts +66 -12
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +116 -16
- package/dist/api/presentation/placedViews.d.ts.map +1 -1
- package/dist/api/presentation/sections.d.ts +461 -0
- package/dist/api/presentation/sections.d.ts.map +1 -0
- package/dist/api/presentation/shapes.d.ts +2 -2
- package/dist/api/presentation/sheets.d.ts +175 -19
- package/dist/api/presentation/sheets.d.ts.map +1 -1
- package/dist/api/presentation/standards.d.ts +590 -0
- package/dist/api/presentation/standards.d.ts.map +1 -0
- package/dist/api/presentation/viewPresets.d.ts +222 -0
- package/dist/api/presentation/viewPresets.d.ts.map +1 -0
- package/dist/api/presentation/views.d.ts +144 -9
- package/dist/api/presentation/views.d.ts.map +1 -1
- package/dist/api/presentation/walkthroughs.d.ts +1350 -0
- package/dist/api/presentation/walkthroughs.d.ts.map +1 -0
- package/dist/api/program/departments.d.ts +58 -2
- package/dist/api/program/departments.d.ts.map +1 -1
- package/dist/api/program/index.d.ts +16 -6
- package/dist/api/program/index.d.ts.map +1 -1
- package/dist/api/program/labels.d.ts +355 -0
- package/dist/api/program/labels.d.ts.map +1 -0
- package/dist/api/program/metadata.d.ts +328 -0
- package/dist/api/program/metadata.d.ts.map +1 -0
- package/dist/api/program/site.d.ts +4 -4
- package/dist/api/program/spreadsheet.d.ts +267 -4
- package/dist/api/program/spreadsheet.d.ts.map +1 -1
- package/dist/api/workspace/index.d.ts +49 -2
- package/dist/api/workspace/index.d.ts.map +1 -1
- package/dist/errors/codes.d.ts +3 -1
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/handles.d.ts +32 -3
- package/dist/handles.d.ts.map +1 -1
- package/dist/index.cjs +6539 -2804
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6121 -2801
- package/dist/index.js.map +1 -1
- package/dist/massParameters.d.ts +287 -0
- package/dist/massParameters.d.ts.map +1 -0
- package/dist/massParameters.ops.d.ts +138 -0
- package/dist/massParameters.ops.d.ts.map +1 -0
- package/package.json +14 -13
- package/scripts/check-dist-fresh.mjs +22 -0
- package/scripts/generate-manifest.mjs +5 -0
- package/scripts/generate-manifest.test.mjs +14 -3
- package/src/api/core/camera/index.ts +446 -1
- package/src/api/core/geom/create/index.ts +1037 -102
- package/src/api/core/geom/query/brep.ts +60 -2
- package/src/api/core/geom/query/curve.ts +26 -2
- package/src/api/core/geom/query/edge.ts +2 -2
- package/src/api/core/geom/query/face.ts +109 -4
- package/src/api/core/geom/update/contour.ts +10 -2
- package/src/api/core/geom/update/profile.ts +2 -0
- package/src/api/core/handles/index.ts +3 -2
- package/src/api/core/index.ts +4 -4
- package/src/api/core/io/import/index.ts +11 -3
- package/src/api/core/layers.ts +380 -173
- package/src/api/core/mode/index.ts +19 -7
- package/src/api/core/project/index.ts +62 -1
- package/src/api/core/proposals/index.ts +4 -3
- package/src/api/core/storeys/index.ts +34 -2
- package/src/api/core/storeys/layers.ts +339 -0
- package/src/api/core/tags.ts +76 -0
- package/src/api/core/zoom/index.ts +13 -0
- package/src/api/design/bim.ts +210 -0
- package/src/api/design/boolean/index.ts +2 -0
- package/src/api/design/catalog.ts +203 -0
- package/src/api/design/create/bulk-items.ts +294 -0
- package/src/api/design/create/grids.ts +137 -0
- package/src/api/design/create/index.ts +823 -114
- package/src/api/design/create/opening-fields.ts +40 -0
- package/src/api/design/delete/index.ts +5 -0
- package/src/api/design/dimensions.ts +453 -0
- package/src/api/design/doors/index.ts +64 -41
- package/src/api/design/family.ts +1342 -0
- package/src/api/design/furniture/index.ts +34 -0
- package/src/api/design/grids.ts +237 -0
- package/src/api/design/index.ts +49 -4
- package/src/api/design/networks.ts +607 -0
- package/src/api/design/query/geometry/index.ts +35 -4
- package/src/api/design/query/grids.ts +197 -0
- package/src/api/design/query/index.ts +105 -3
- package/src/api/design/types/index.ts +31 -24
- package/src/api/design/update/index.ts +398 -4
- package/src/api/design/visibility.ts +34 -0
- package/src/api/design/windows/index.ts +40 -22
- package/src/api/entity/buildableEnvelope.ts +77 -2
- package/src/api/entity/referenceLine.ts +25 -12
- package/src/api/presentation/annotate.ts +90 -58
- package/src/api/presentation/camera.ts +289 -0
- package/src/api/presentation/drawingContract.ts +70 -0
- package/src/api/presentation/drawings.ts +1179 -0
- package/src/api/presentation/export.ts +32 -6
- package/src/api/presentation/graphics.ts +324 -0
- package/src/api/presentation/index.ts +73 -14
- package/src/api/presentation/placedViews.ts +119 -28
- package/src/api/presentation/sections.ts +420 -0
- package/src/api/presentation/sheets.ts +181 -20
- package/src/api/presentation/standards.ts +445 -0
- package/src/api/presentation/viewPresets.ts +241 -0
- package/src/api/presentation/views.ts +81 -10
- package/src/api/presentation/walkthroughs.ts +1201 -0
- package/src/api/program/departments.ts +54 -2
- package/src/api/program/index.ts +16 -6
- package/src/api/program/labels.ts +332 -0
- package/src/api/program/metadata.ts +364 -0
- package/src/api/program/spreadsheet.ts +282 -0
- package/src/api/workspace/index.ts +51 -2
- package/src/errors/codes.ts +7 -0
- package/src/handles.ts +42 -3
- package/src/index.ts +2 -0
- package/src/massParameters.ops.ts +246 -0
- package/src/massParameters.ts +427 -0
- package/test/drawingContract.test.mjs +288 -0
- package/test/errors.test.mjs +1 -0
- package/test/massParameters.test.mjs +952 -0
- package/test/paperPensContract.test.mjs +75 -0
- package/test/presentationViewSettings.test.mjs +85 -0
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { PluginApiReturn } from "../../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Storey layers — read and toggle a storey's sketch surfaces and imported
|
|
5
|
+
* underlays.
|
|
6
|
+
*
|
|
7
|
+
* These are each storey's built-in sketch surfaces (Wall, Rough) and its
|
|
8
|
+
* imported underlays (CAD, PDF, images, terrain, neighbourhood buildings), with
|
|
9
|
+
* ids like `ly_5`. They are **NOT** the layers in the product's Layers panel in
|
|
10
|
+
* the left sidebar; use {@linkcode PluginCoreLayersApi} (`core.layers`) for
|
|
11
|
+
* those. They are also not wall/floor construction-assembly material layers.
|
|
12
|
+
*
|
|
13
|
+
* Reads return plain records and never throw for a missing layer (`get` and
|
|
14
|
+
* `getActive` return `null`, `list` returns `[]`).
|
|
15
|
+
*
|
|
16
|
+
* Storey layers are created only by storey creation and `core.io.import.*`;
|
|
17
|
+
* delete underlays with `core.io.underlay.delete` / `core.io.terrain.delete`.
|
|
18
|
+
*
|
|
19
|
+
* Sub-namespace members typed as optional (`?`) are **authored ahead of the
|
|
20
|
+
* host** — declared so plugins and codegen can see the shape, but kept out of the
|
|
21
|
+
* discovery manifest until the host lands them (at which point they are promoted
|
|
22
|
+
* to required `abstract` members).
|
|
23
|
+
*
|
|
24
|
+
* Accessed via `snaptrude.core.storeys.layers` (formerly `core.layers`).
|
|
25
|
+
*
|
|
26
|
+
* Formerly `core.layers`. Calls in that shape on `core.layers` (`list(storeyId)`,
|
|
27
|
+
* `getActive(storeyId)`, `get` / `setActive` / `update(layerId, hidden)` with a
|
|
28
|
+
* `ly_*` id) are still routed here, so plugins built before 0.9.15 keep working.
|
|
29
|
+
*/
|
|
30
|
+
export declare abstract class PluginCoreStoreysLayersApi {
|
|
31
|
+
constructor();
|
|
32
|
+
/**
|
|
33
|
+
* List the storey layers of a storey.
|
|
34
|
+
*
|
|
35
|
+
* Optionally filter to a single {@linkcode PluginCoreStoreyLayerType}.
|
|
36
|
+
*
|
|
37
|
+
* @param storeyId - The storey whose layers to read.
|
|
38
|
+
* @param layerType - Optional {@linkcode PluginCoreStoreyLayerType} filter.
|
|
39
|
+
* @returns A {@linkcode PluginCoreStoreysLayersListResult} with a `layers` array
|
|
40
|
+
* (empty when the storey is missing or has no matching layers).
|
|
41
|
+
*
|
|
42
|
+
* @examplePrompt List the sketch surfaces and underlays on this storey
|
|
43
|
+
* @examplePrompt Show all the PDF underlays on storey st_2
|
|
44
|
+
* @examplePrompt What CAD layers are on the ground floor?
|
|
45
|
+
*
|
|
46
|
+
* # Example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const { layers } = await snaptrude.core.storeys.layers.list("st_2")
|
|
49
|
+
* for (const l of layers) console.log(l.name, l.layerType, l.hidden)
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
abstract list(storeyId: string, layerType?: PluginCoreStoreyLayerType): PluginApiReturn<PluginCoreStoreysLayersListResult>;
|
|
53
|
+
/**
|
|
54
|
+
* Get a single storey layer by id.
|
|
55
|
+
*
|
|
56
|
+
* @param layerId - The id of the layer to read.
|
|
57
|
+
* @returns The matching {@linkcode PluginCoreStoreyLayer}, or `null` if no layer has
|
|
58
|
+
* that id.
|
|
59
|
+
*
|
|
60
|
+
* @examplePrompt Get the storey drawing layer with id ly_5
|
|
61
|
+
* @examplePrompt Is storey layer ly_5 hidden?
|
|
62
|
+
* @examplePrompt Look up a storey underlay layer by id
|
|
63
|
+
*
|
|
64
|
+
* # Example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const layer = await snaptrude.core.storeys.layers.get("ly_5")
|
|
67
|
+
* if (layer) console.log(layer.name, layer.hidden, layer.locked)
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
abstract get(layerId: string): PluginApiReturn<PluginCoreStoreysLayersGetResult>;
|
|
71
|
+
/**
|
|
72
|
+
* Get the active storey layer of a storey.
|
|
73
|
+
*
|
|
74
|
+
* The active layer is the one new sketch geometry is drawn onto. Paired with
|
|
75
|
+
* {@linkcode PluginCoreStoreysLayersApi.setActive}.
|
|
76
|
+
*
|
|
77
|
+
* @param storeyId - The storey whose active layer to read.
|
|
78
|
+
* @returns The active {@linkcode PluginCoreStoreyLayer}, or `null` if the storey is
|
|
79
|
+
* missing or has no active layer.
|
|
80
|
+
*
|
|
81
|
+
* @examplePrompt Which sketch surface (Wall/Rough) is active on this storey?
|
|
82
|
+
* @examplePrompt Get the active storey drawing layer on st_2
|
|
83
|
+
* @examplePrompt Which storey layer is new sketch geometry drawn onto?
|
|
84
|
+
*
|
|
85
|
+
* # Example
|
|
86
|
+
* ```ts
|
|
87
|
+
* const active = await snaptrude.core.storeys.layers.getActive("st_2")
|
|
88
|
+
* if (active) console.log(active.name)
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
abstract getActive(storeyId: string): PluginApiReturn<PluginCoreStoreysLayersGetActiveResult>;
|
|
92
|
+
/**
|
|
93
|
+
* Make a storey layer the active layer of its storey.
|
|
94
|
+
*
|
|
95
|
+
* Paired with {@linkcode PluginCoreStoreysLayersApi.getActive}.
|
|
96
|
+
*
|
|
97
|
+
* @param layerId - The id of the layer to activate.
|
|
98
|
+
* @returns The id of the now-active layer.
|
|
99
|
+
* @throws If no layer has the given id.
|
|
100
|
+
*
|
|
101
|
+
* @examplePrompt Switch this storey's sketch surface to the Rough layer
|
|
102
|
+
* @examplePrompt Make storey layer ly_5 the active sketch surface
|
|
103
|
+
* @examplePrompt Switch the active storey layer to the CAD underlay
|
|
104
|
+
*
|
|
105
|
+
* # Example
|
|
106
|
+
* ```ts
|
|
107
|
+
* await snaptrude.core.storeys.layers.setActive("ly_5")
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
abstract setActive(layerId: string): PluginApiReturn<PluginCoreStoreysLayersSetActiveResult>;
|
|
111
|
+
/**
|
|
112
|
+
* Update a storey layer's visibility.
|
|
113
|
+
*
|
|
114
|
+
* A **sparse** update: omit `hidden` to leave it unchanged. This edit is **not
|
|
115
|
+
* undoable**. Locking and renaming are not exposed — layer `locked` is a
|
|
116
|
+
* read-only status here (setting it at runtime does not lock the live meshes or
|
|
117
|
+
* show a padlock in the app until a reload), and a rename cascades to every member
|
|
118
|
+
* mesh's `layerName`, a corruption hazard.
|
|
119
|
+
*
|
|
120
|
+
* @param layerId - The id of the layer to update.
|
|
121
|
+
* @param hidden - New hidden state (unchanged if omitted).
|
|
122
|
+
* @returns The updated {@linkcode PluginCoreStoreyLayer}.
|
|
123
|
+
* @throws If no layer has the given id.
|
|
124
|
+
*
|
|
125
|
+
* @examplePrompt Hide the PDF underlay layer
|
|
126
|
+
* @examplePrompt Show the CAD underlay again
|
|
127
|
+
* @examplePrompt Hide storey layer ly_5
|
|
128
|
+
*
|
|
129
|
+
* # Example
|
|
130
|
+
* ```ts
|
|
131
|
+
* const layer = await snaptrude.core.storeys.layers.update("ly_5", true)
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
abstract update(layerId: string, hidden?: boolean): PluginApiReturn<PluginCoreStoreysLayersUpdateResult>;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* The kind of a storey layer.
|
|
138
|
+
*
|
|
139
|
+
* Author-drawable kinds (`floor`, `wall`, `ceiling`, `rough`, `default`) plus
|
|
140
|
+
* read-only imported underlays (`image`, `cad`, `pdf`, `terrain`, `buildings`).
|
|
141
|
+
*/
|
|
142
|
+
export declare const PluginCoreStoreyLayerType: z.ZodEnum<{
|
|
143
|
+
default: "default";
|
|
144
|
+
terrain: "terrain";
|
|
145
|
+
buildings: "buildings";
|
|
146
|
+
cad: "cad";
|
|
147
|
+
floor: "floor";
|
|
148
|
+
wall: "wall";
|
|
149
|
+
ceiling: "ceiling";
|
|
150
|
+
rough: "rough";
|
|
151
|
+
image: "image";
|
|
152
|
+
pdf: "pdf";
|
|
153
|
+
}>;
|
|
154
|
+
export type PluginCoreStoreyLayerType = z.infer<typeof PluginCoreStoreyLayerType>;
|
|
155
|
+
/**
|
|
156
|
+
* A storey layer on a storey.
|
|
157
|
+
*
|
|
158
|
+
* | Property | Type | Description |
|
|
159
|
+
* |---|---|---|
|
|
160
|
+
* | `id` | `string` | Stable public layer id (e.g. `"ly_5"`) |
|
|
161
|
+
* | `name` | `string` | Display name |
|
|
162
|
+
* | `layerType` | {@linkcode PluginCoreStoreyLayerType} | The layer's kind |
|
|
163
|
+
* | `storeyId` | `string` | The stable id of the storey this layer belongs to |
|
|
164
|
+
* | `buildingId` | `string` | The stable id of the building this layer belongs to |
|
|
165
|
+
* | `hidden` | `boolean` | Whether the layer is hidden |
|
|
166
|
+
* | `locked` | `boolean` | Whether the layer is locked against edits |
|
|
167
|
+
* | `contentSummary` | `object` | A summary of what the layer holds (see below) |
|
|
168
|
+
*
|
|
169
|
+
* `contentSummary`:
|
|
170
|
+
*
|
|
171
|
+
* | Property | Type | Description |
|
|
172
|
+
* |---|---|---|
|
|
173
|
+
* | `hasFloorplan` | `boolean` | Whether the layer holds drawn floorplan geometry |
|
|
174
|
+
* | `pdfCount` | `number` | Number of PDF underlays on the layer |
|
|
175
|
+
* | `hasTerrain` | `boolean` | Whether the layer holds terrain |
|
|
176
|
+
*/
|
|
177
|
+
export declare const PluginCoreStoreyLayer: z.ZodObject<{
|
|
178
|
+
id: z.ZodString;
|
|
179
|
+
name: z.ZodString;
|
|
180
|
+
layerType: z.ZodEnum<{
|
|
181
|
+
default: "default";
|
|
182
|
+
terrain: "terrain";
|
|
183
|
+
buildings: "buildings";
|
|
184
|
+
cad: "cad";
|
|
185
|
+
floor: "floor";
|
|
186
|
+
wall: "wall";
|
|
187
|
+
ceiling: "ceiling";
|
|
188
|
+
rough: "rough";
|
|
189
|
+
image: "image";
|
|
190
|
+
pdf: "pdf";
|
|
191
|
+
}>;
|
|
192
|
+
storeyId: z.ZodString;
|
|
193
|
+
buildingId: z.ZodString;
|
|
194
|
+
hidden: z.ZodBoolean;
|
|
195
|
+
locked: z.ZodBoolean;
|
|
196
|
+
contentSummary: z.ZodObject<{
|
|
197
|
+
hasFloorplan: z.ZodBoolean;
|
|
198
|
+
pdfCount: z.ZodNumber;
|
|
199
|
+
hasTerrain: z.ZodBoolean;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
export type PluginCoreStoreyLayer = z.infer<typeof PluginCoreStoreyLayer>;
|
|
203
|
+
/**
|
|
204
|
+
* Arguments for {@linkcode PluginCoreStoreysLayersApi.list}.
|
|
205
|
+
*
|
|
206
|
+
* | Property | Type | Description |
|
|
207
|
+
* |---|---|---|
|
|
208
|
+
* | `storeyId` | `string` | The storey whose layers to read |
|
|
209
|
+
* | `layerType` | {@linkcode PluginCoreStoreyLayerType}` \| undefined` | Optional layer-type filter |
|
|
210
|
+
*/
|
|
211
|
+
export declare const PluginCoreStoreysLayersListArgs: z.ZodObject<{
|
|
212
|
+
storeyId: z.ZodString;
|
|
213
|
+
layerType: z.ZodOptional<z.ZodEnum<{
|
|
214
|
+
default: "default";
|
|
215
|
+
terrain: "terrain";
|
|
216
|
+
buildings: "buildings";
|
|
217
|
+
cad: "cad";
|
|
218
|
+
floor: "floor";
|
|
219
|
+
wall: "wall";
|
|
220
|
+
ceiling: "ceiling";
|
|
221
|
+
rough: "rough";
|
|
222
|
+
image: "image";
|
|
223
|
+
pdf: "pdf";
|
|
224
|
+
}>>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
export type PluginCoreStoreysLayersListArgs = z.infer<typeof PluginCoreStoreysLayersListArgs>;
|
|
227
|
+
/**
|
|
228
|
+
* Result of {@linkcode PluginCoreStoreysLayersApi.list}.
|
|
229
|
+
*
|
|
230
|
+
* | Property | Type | Description |
|
|
231
|
+
* |---|---|---|
|
|
232
|
+
* | `layers` | {@linkcode PluginCoreStoreyLayer}`[]` | The storey's storey layers (empty when missing or none match) |
|
|
233
|
+
*/
|
|
234
|
+
export declare const PluginCoreStoreysLayersListResult: z.ZodObject<{
|
|
235
|
+
layers: z.ZodArray<z.ZodObject<{
|
|
236
|
+
id: z.ZodString;
|
|
237
|
+
name: z.ZodString;
|
|
238
|
+
layerType: z.ZodEnum<{
|
|
239
|
+
default: "default";
|
|
240
|
+
terrain: "terrain";
|
|
241
|
+
buildings: "buildings";
|
|
242
|
+
cad: "cad";
|
|
243
|
+
floor: "floor";
|
|
244
|
+
wall: "wall";
|
|
245
|
+
ceiling: "ceiling";
|
|
246
|
+
rough: "rough";
|
|
247
|
+
image: "image";
|
|
248
|
+
pdf: "pdf";
|
|
249
|
+
}>;
|
|
250
|
+
storeyId: z.ZodString;
|
|
251
|
+
buildingId: z.ZodString;
|
|
252
|
+
hidden: z.ZodBoolean;
|
|
253
|
+
locked: z.ZodBoolean;
|
|
254
|
+
contentSummary: z.ZodObject<{
|
|
255
|
+
hasFloorplan: z.ZodBoolean;
|
|
256
|
+
pdfCount: z.ZodNumber;
|
|
257
|
+
hasTerrain: z.ZodBoolean;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
}, z.core.$strip>>;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
export type PluginCoreStoreysLayersListResult = z.infer<typeof PluginCoreStoreysLayersListResult>;
|
|
262
|
+
/**
|
|
263
|
+
* Arguments for {@linkcode PluginCoreStoreysLayersApi.get}.
|
|
264
|
+
*
|
|
265
|
+
* | Property | Type | Description |
|
|
266
|
+
* |---|---|---|
|
|
267
|
+
* | `layerId` | `string` | The id of the layer to read |
|
|
268
|
+
*/
|
|
269
|
+
export declare const PluginCoreStoreysLayersGetArgs: z.ZodObject<{
|
|
270
|
+
layerId: z.ZodString;
|
|
271
|
+
}, z.core.$strip>;
|
|
272
|
+
export type PluginCoreStoreysLayersGetArgs = z.infer<typeof PluginCoreStoreysLayersGetArgs>;
|
|
273
|
+
/**
|
|
274
|
+
* Result of {@linkcode PluginCoreStoreysLayersApi.get} — the layer, or `null`
|
|
275
|
+
* when no layer has the given id.
|
|
276
|
+
*/
|
|
277
|
+
export declare const PluginCoreStoreysLayersGetResult: z.ZodNullable<z.ZodObject<{
|
|
278
|
+
id: z.ZodString;
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
layerType: z.ZodEnum<{
|
|
281
|
+
default: "default";
|
|
282
|
+
terrain: "terrain";
|
|
283
|
+
buildings: "buildings";
|
|
284
|
+
cad: "cad";
|
|
285
|
+
floor: "floor";
|
|
286
|
+
wall: "wall";
|
|
287
|
+
ceiling: "ceiling";
|
|
288
|
+
rough: "rough";
|
|
289
|
+
image: "image";
|
|
290
|
+
pdf: "pdf";
|
|
291
|
+
}>;
|
|
292
|
+
storeyId: z.ZodString;
|
|
293
|
+
buildingId: z.ZodString;
|
|
294
|
+
hidden: z.ZodBoolean;
|
|
295
|
+
locked: z.ZodBoolean;
|
|
296
|
+
contentSummary: z.ZodObject<{
|
|
297
|
+
hasFloorplan: z.ZodBoolean;
|
|
298
|
+
pdfCount: z.ZodNumber;
|
|
299
|
+
hasTerrain: z.ZodBoolean;
|
|
300
|
+
}, z.core.$strip>;
|
|
301
|
+
}, z.core.$strip>>;
|
|
302
|
+
export type PluginCoreStoreysLayersGetResult = z.infer<typeof PluginCoreStoreysLayersGetResult>;
|
|
303
|
+
/**
|
|
304
|
+
* Arguments for {@linkcode PluginCoreStoreysLayersApi.getActive}.
|
|
305
|
+
*
|
|
306
|
+
* | Property | Type | Description |
|
|
307
|
+
* |---|---|---|
|
|
308
|
+
* | `storeyId` | `string` | The storey whose active layer to read |
|
|
309
|
+
*/
|
|
310
|
+
export declare const PluginCoreStoreysLayersGetActiveArgs: z.ZodObject<{
|
|
311
|
+
storeyId: z.ZodString;
|
|
312
|
+
}, z.core.$strip>;
|
|
313
|
+
export type PluginCoreStoreysLayersGetActiveArgs = z.infer<typeof PluginCoreStoreysLayersGetActiveArgs>;
|
|
314
|
+
/**
|
|
315
|
+
* Result of {@linkcode PluginCoreStoreysLayersApi.getActive} — the active layer,
|
|
316
|
+
* or `null` when the storey is missing or has no active layer.
|
|
317
|
+
*/
|
|
318
|
+
export declare const PluginCoreStoreysLayersGetActiveResult: z.ZodNullable<z.ZodObject<{
|
|
319
|
+
id: z.ZodString;
|
|
320
|
+
name: z.ZodString;
|
|
321
|
+
layerType: z.ZodEnum<{
|
|
322
|
+
default: "default";
|
|
323
|
+
terrain: "terrain";
|
|
324
|
+
buildings: "buildings";
|
|
325
|
+
cad: "cad";
|
|
326
|
+
floor: "floor";
|
|
327
|
+
wall: "wall";
|
|
328
|
+
ceiling: "ceiling";
|
|
329
|
+
rough: "rough";
|
|
330
|
+
image: "image";
|
|
331
|
+
pdf: "pdf";
|
|
332
|
+
}>;
|
|
333
|
+
storeyId: z.ZodString;
|
|
334
|
+
buildingId: z.ZodString;
|
|
335
|
+
hidden: z.ZodBoolean;
|
|
336
|
+
locked: z.ZodBoolean;
|
|
337
|
+
contentSummary: z.ZodObject<{
|
|
338
|
+
hasFloorplan: z.ZodBoolean;
|
|
339
|
+
pdfCount: z.ZodNumber;
|
|
340
|
+
hasTerrain: z.ZodBoolean;
|
|
341
|
+
}, z.core.$strip>;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
export type PluginCoreStoreysLayersGetActiveResult = z.infer<typeof PluginCoreStoreysLayersGetActiveResult>;
|
|
344
|
+
/**
|
|
345
|
+
* Arguments for {@linkcode PluginCoreStoreysLayersApi.setActive}.
|
|
346
|
+
*
|
|
347
|
+
* | Property | Type | Description |
|
|
348
|
+
* |---|---|---|
|
|
349
|
+
* | `layerId` | `string` | The id of the layer to activate |
|
|
350
|
+
*/
|
|
351
|
+
export declare const PluginCoreStoreysLayersSetActiveArgs: z.ZodObject<{
|
|
352
|
+
layerId: z.ZodString;
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
export type PluginCoreStoreysLayersSetActiveArgs = z.infer<typeof PluginCoreStoreysLayersSetActiveArgs>;
|
|
355
|
+
/**
|
|
356
|
+
* Result of {@linkcode PluginCoreStoreysLayersApi.setActive} — the now-active
|
|
357
|
+
* layer's id.
|
|
358
|
+
*
|
|
359
|
+
* | Property | Type | Description |
|
|
360
|
+
* |---|---|---|
|
|
361
|
+
* | `layerId` | `string` | The id of the now-active layer |
|
|
362
|
+
*/
|
|
363
|
+
export declare const PluginCoreStoreysLayersSetActiveResult: z.ZodObject<{
|
|
364
|
+
layerId: z.ZodString;
|
|
365
|
+
}, z.core.$strip>;
|
|
366
|
+
export type PluginCoreStoreysLayersSetActiveResult = z.infer<typeof PluginCoreStoreysLayersSetActiveResult>;
|
|
367
|
+
/**
|
|
368
|
+
* Arguments for {@linkcode PluginCoreStoreysLayersApi.update}. Sparse — only the
|
|
369
|
+
* provided fields are changed.
|
|
370
|
+
*
|
|
371
|
+
* | Property | Type | Description |
|
|
372
|
+
* |---|---|---|
|
|
373
|
+
* | `layerId` | `string` | The id of the layer to update |
|
|
374
|
+
* | `hidden` | `boolean \| undefined` | New hidden state (unchanged if omitted) |
|
|
375
|
+
*/
|
|
376
|
+
export declare const PluginCoreStoreysLayersUpdateArgs: z.ZodObject<{
|
|
377
|
+
layerId: z.ZodString;
|
|
378
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
379
|
+
}, z.core.$strip>;
|
|
380
|
+
export type PluginCoreStoreysLayersUpdateArgs = z.infer<typeof PluginCoreStoreysLayersUpdateArgs>;
|
|
381
|
+
/** Result of {@linkcode PluginCoreStoreysLayersApi.update} — the updated layer. */
|
|
382
|
+
export declare const PluginCoreStoreysLayersUpdateResult: z.ZodObject<{
|
|
383
|
+
id: z.ZodString;
|
|
384
|
+
name: z.ZodString;
|
|
385
|
+
layerType: z.ZodEnum<{
|
|
386
|
+
default: "default";
|
|
387
|
+
terrain: "terrain";
|
|
388
|
+
buildings: "buildings";
|
|
389
|
+
cad: "cad";
|
|
390
|
+
floor: "floor";
|
|
391
|
+
wall: "wall";
|
|
392
|
+
ceiling: "ceiling";
|
|
393
|
+
rough: "rough";
|
|
394
|
+
image: "image";
|
|
395
|
+
pdf: "pdf";
|
|
396
|
+
}>;
|
|
397
|
+
storeyId: z.ZodString;
|
|
398
|
+
buildingId: z.ZodString;
|
|
399
|
+
hidden: z.ZodBoolean;
|
|
400
|
+
locked: z.ZodBoolean;
|
|
401
|
+
contentSummary: z.ZodObject<{
|
|
402
|
+
hasFloorplan: z.ZodBoolean;
|
|
403
|
+
pdfCount: z.ZodNumber;
|
|
404
|
+
hasTerrain: z.ZodBoolean;
|
|
405
|
+
}, z.core.$strip>;
|
|
406
|
+
}, z.core.$strip>;
|
|
407
|
+
export type PluginCoreStoreysLayersUpdateResult = z.infer<typeof PluginCoreStoreysLayersUpdateResult>;
|
|
408
|
+
//# sourceMappingURL=layers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layers.d.ts","sourceRoot":"","sources":["../../../../src/api/core/storeys/layers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAC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wB,CAAA;AACxE,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA"}
|
package/dist/api/core/tags.d.ts
CHANGED
|
@@ -145,6 +145,37 @@ export declare abstract class PluginCoreTagsApi {
|
|
|
145
145
|
* ```
|
|
146
146
|
*/
|
|
147
147
|
abstract listForComponent(componentId: ComponentHandle): PluginApiReturn<PluginCoreTagsGetTagsForComponentResult>;
|
|
148
|
+
/**
|
|
149
|
+
* List the tags carried by many components in one call.
|
|
150
|
+
*
|
|
151
|
+
* The plural of {@linkcode PluginCoreTagsApi.listForComponent}: pass
|
|
152
|
+
* `componentIds` to read specific components (unknown ids are skipped), or
|
|
153
|
+
* omit it to read **every** taggable component (Mass/Floor space) in the
|
|
154
|
+
* project. Each entry carries the component id and its tags — one per tagged
|
|
155
|
+
* category, with the tag's `color` — so a plugin can color every space by a
|
|
156
|
+
* chosen category's tag in a single round-trip.
|
|
157
|
+
*
|
|
158
|
+
* @param componentIds - Optional `Component.id`s to read; omit for all spaces.
|
|
159
|
+
* @returns A {@linkcode PluginCoreTagsListForComponentsResult} with a
|
|
160
|
+
* `components` array, one entry per component (in input order when
|
|
161
|
+
* `componentIds` is given).
|
|
162
|
+
*
|
|
163
|
+
* @performance One round-trip for any number of components — use this instead of a `listForComponent` loop.
|
|
164
|
+
*
|
|
165
|
+
* @examplePrompt Get the tags of every space with their colors
|
|
166
|
+
* @examplePrompt List the tags on all rooms so I can color them by Occupancy
|
|
167
|
+
* @examplePrompt Which tag does each selected space carry?
|
|
168
|
+
*
|
|
169
|
+
* # Example
|
|
170
|
+
* ```ts
|
|
171
|
+
* const { components } = await snaptrude.core.tags.listForComponents()
|
|
172
|
+
* for (const c of components) {
|
|
173
|
+
* const occupancy = c.tags.find((t) => t.categoryName === "Occupancy")
|
|
174
|
+
* if (occupancy) paint(c.componentId, occupancy.color)
|
|
175
|
+
* }
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
178
|
+
abstract listForComponents(componentIds?: ComponentHandle[]): PluginApiReturn<PluginCoreTagsListForComponentsResult>;
|
|
148
179
|
/**
|
|
149
180
|
* List the components carrying a given tag or category.
|
|
150
181
|
*
|
|
@@ -427,8 +458,8 @@ export declare const PluginCoreAssignOutcome: z.ZodObject<{
|
|
|
427
458
|
id: z.ZodString;
|
|
428
459
|
reason: z.ZodEnum<{
|
|
429
460
|
locked: "locked";
|
|
430
|
-
"not-taggable": "not-taggable";
|
|
431
461
|
"not-found": "not-found";
|
|
462
|
+
"not-taggable": "not-taggable";
|
|
432
463
|
}>;
|
|
433
464
|
}, z.core.$strip>>;
|
|
434
465
|
}, z.core.$strip>;
|
|
@@ -546,6 +577,56 @@ export declare const PluginCoreTagsGetTagsForComponentResult: z.ZodObject<{
|
|
|
546
577
|
}, z.core.$strip>>;
|
|
547
578
|
}, z.core.$strip>;
|
|
548
579
|
export type PluginCoreTagsGetTagsForComponentResult = z.infer<typeof PluginCoreTagsGetTagsForComponentResult>;
|
|
580
|
+
/**
|
|
581
|
+
* Arguments for {@linkcode PluginCoreTagsApi.listForComponents}.
|
|
582
|
+
*
|
|
583
|
+
* | Property | Type | Description |
|
|
584
|
+
* |---|---|---|
|
|
585
|
+
* | `componentIds` | `ComponentHandle[]?` | Components to read; omit for every taggable component |
|
|
586
|
+
*/
|
|
587
|
+
export declare const PluginCoreTagsListForComponentsArgs: z.ZodObject<{
|
|
588
|
+
componentIds: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>>;
|
|
589
|
+
}, z.core.$strip>;
|
|
590
|
+
export type PluginCoreTagsListForComponentsArgs = z.infer<typeof PluginCoreTagsListForComponentsArgs>;
|
|
591
|
+
/**
|
|
592
|
+
* One component's tags, for {@linkcode PluginCoreTagsApi.listForComponents}.
|
|
593
|
+
*
|
|
594
|
+
* | Property | Type | Description |
|
|
595
|
+
* |---|---|---|
|
|
596
|
+
* | `componentId` | `ComponentHandle` | The component's id |
|
|
597
|
+
* | `tags` | {@linkcode PluginCoreComponentTag}`[]` | Its tags, one per tagged category (empty when none) |
|
|
598
|
+
*/
|
|
599
|
+
export declare const PluginCoreComponentTags: z.ZodObject<{
|
|
600
|
+
componentId: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
601
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
602
|
+
categoryId: z.ZodString;
|
|
603
|
+
categoryName: z.ZodString;
|
|
604
|
+
tagId: z.ZodString;
|
|
605
|
+
tagName: z.ZodString;
|
|
606
|
+
color: z.ZodString;
|
|
607
|
+
}, z.core.$strip>>;
|
|
608
|
+
}, z.core.$strip>;
|
|
609
|
+
export type PluginCoreComponentTags = z.infer<typeof PluginCoreComponentTags>;
|
|
610
|
+
/**
|
|
611
|
+
* Result of {@linkcode PluginCoreTagsApi.listForComponents}.
|
|
612
|
+
*
|
|
613
|
+
* | Property | Type | Description |
|
|
614
|
+
* |---|---|---|
|
|
615
|
+
* | `components` | {@linkcode PluginCoreComponentTags}`[]` | One entry per component |
|
|
616
|
+
*/
|
|
617
|
+
export declare const PluginCoreTagsListForComponentsResult: z.ZodObject<{
|
|
618
|
+
components: z.ZodArray<z.ZodObject<{
|
|
619
|
+
componentId: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
620
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
621
|
+
categoryId: z.ZodString;
|
|
622
|
+
categoryName: z.ZodString;
|
|
623
|
+
tagId: z.ZodString;
|
|
624
|
+
tagName: z.ZodString;
|
|
625
|
+
color: z.ZodString;
|
|
626
|
+
}, z.core.$strip>>;
|
|
627
|
+
}, z.core.$strip>>;
|
|
628
|
+
}, z.core.$strip>;
|
|
629
|
+
export type PluginCoreTagsListForComponentsResult = z.infer<typeof PluginCoreTagsListForComponentsResult>;
|
|
549
630
|
/**
|
|
550
631
|
* Arguments for {@linkcode PluginCoreTagsApi.listComponents}. Provide exactly one
|
|
551
632
|
* of `tagId`, `categoryId`. `untagged` is valid only with `categoryId`.
|
|
@@ -740,8 +821,8 @@ export declare const PluginCoreTagsAssignResult: z.ZodObject<{
|
|
|
740
821
|
id: z.ZodString;
|
|
741
822
|
reason: z.ZodEnum<{
|
|
742
823
|
locked: "locked";
|
|
743
|
-
"not-taggable": "not-taggable";
|
|
744
824
|
"not-found": "not-found";
|
|
825
|
+
"not-taggable": "not-taggable";
|
|
745
826
|
}>;
|
|
746
827
|
}, z.core.$strip>>;
|
|
747
828
|
categoryId: z.ZodString;
|
|
@@ -770,8 +851,8 @@ export declare const PluginCoreTagsUnassignResult: z.ZodObject<{
|
|
|
770
851
|
id: z.ZodString;
|
|
771
852
|
reason: z.ZodEnum<{
|
|
772
853
|
locked: "locked";
|
|
773
|
-
"not-taggable": "not-taggable";
|
|
774
854
|
"not-found": "not-found";
|
|
855
|
+
"not-taggable": "not-taggable";
|
|
775
856
|
}>;
|
|
776
857
|
}, z.core.$strip>>;
|
|
777
858
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/api/core/tags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,8BAAsB,iBAAiB;;IAGrC;;;;;;;;;;;;;;;;OAgBG;aACa,cAAc,IAAI,eAAe,CAAC,kCAAkC,CAAC;IAErF;;;;;;;;;;;;;;;;OAgBG;aACa,WAAW,CACzB,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,CAAC;IAEnD;;;;;;;;;;;;;;;;OAgBG;aACa,IAAI,CAClB,UAAU,CAAC,EAAE,MAAM,GAClB,eAAe,CAAC,wBAAwB,CAAC;IAE5C;;;;;;;;;;;;;;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,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE/E,wEAAwE;AACxE,eAAO,MAAM,0BAA0B;;;;;iBAAgB,CAAA;AACvD,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB;;iBAEnC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE/E;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B;;iBAErC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE/E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;iBAKrC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED,+EAA+E;AAC/E,eAAO,MAAM,4BAA4B;;;;;;;;;;iBAA0B,CAAA;AACnE,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAA"}
|
|
@@ -4,12 +4,21 @@ import { PluginApiReturn } from "../../../types";
|
|
|
4
4
|
*
|
|
5
5
|
* Frame the viewport camera onto scene geometry — mirrors the canvas zoom menu
|
|
6
6
|
* ("Zoom extents" / "Zoom to selection"). Accessed via `snaptrude.core.zoom`.
|
|
7
|
+
*
|
|
8
|
+
* While Present mode is open these calls set the Design frame a view saved in
|
|
9
|
+
* Present (`presentation.views.create`) is taken from; they never move the
|
|
10
|
+
* Present sheet canvas. To pan, zoom or screenshot the Present canvas, use
|
|
11
|
+
* {@linkcode PluginPresentationCameraApi} (`presentation.camera`).
|
|
7
12
|
*/
|
|
8
13
|
export declare abstract class PluginZoomApi {
|
|
9
14
|
constructor();
|
|
10
15
|
/**
|
|
11
16
|
* Zoom (fit) the camera to all geometry in the scene — the "zoom extents" action.
|
|
12
17
|
*
|
|
18
|
+
* While Present is open this sets the Design frame a view saved in Present
|
|
19
|
+
* is taken from; it never moves the Present sheet canvas; use
|
|
20
|
+
* `presentation.camera` for that.
|
|
21
|
+
*
|
|
13
22
|
* @returns `true` once the camera has been framed to the scene.
|
|
14
23
|
*
|
|
15
24
|
* @examplePrompt Zoom out so I can see the whole model
|
|
@@ -29,6 +38,10 @@ export declare abstract class PluginZoomApi {
|
|
|
29
38
|
/**
|
|
30
39
|
* Zoom (fit) the camera to the current selection.
|
|
31
40
|
*
|
|
41
|
+
* While Present is open this sets the Design frame a view saved in Present
|
|
42
|
+
* is taken from; it never moves the Present sheet canvas; use
|
|
43
|
+
* `presentation.camera` for that.
|
|
44
|
+
*
|
|
32
45
|
* @returns `true` if there was a selection to frame; `false` if nothing is
|
|
33
46
|
* selected (no-op).
|
|
34
47
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/zoom/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/zoom/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD;;;;;;;;;;GAUG;AACH,8BAAsB,aAAa;;IAGjC;;;;;;;;;;;;;;;;;;;;;OAqBG;aACa,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC;IAEnD;;;;;;;;;;;;;;;;;;;;;OAqBG;aACa,SAAS,IAAI,eAAe,CAAC,OAAO,CAAC;CACtD"}
|