@snaptrude/plugin-core 0.9.17 → 0.9.18-edgesetbacks-20261021.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/AGENTS.md +231 -231
- package/CHANGELOG.md +408 -408
- package/CLAUDE.md +11 -11
- package/api-manifest.json +1428 -712
- 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 +29 -0
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/core/geom/create/index.d.ts +7 -1
- package/dist/api/core/geom/create/index.d.ts.map +1 -1
- package/dist/api/core/geom/update/contour.d.ts +8 -2
- package/dist/api/core/geom/update/contour.d.ts.map +1 -1
- package/dist/api/core/storeys/index.d.ts +5 -2
- package/dist/api/core/storeys/index.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 +65 -25
- package/dist/api/design/create/bulk-items.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +299 -100
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/create/opening-fields.d.ts +13 -12
- package/dist/api/design/create/opening-fields.d.ts.map +1 -1
- package/dist/api/design/delete/index.d.ts +1 -0
- package/dist/api/design/delete/index.d.ts.map +1 -1
- package/dist/api/design/doors/index.d.ts +18 -24
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/family.d.ts +813 -35
- package/dist/api/design/family.d.ts.map +1 -1
- package/dist/api/design/index.d.ts +16 -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/grids.d.ts +2 -2
- package/dist/api/design/query/index.d.ts +42 -32
- package/dist/api/design/query/index.d.ts.map +1 -1
- package/dist/api/design/selection/index.d.ts +10 -10
- 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 +111 -6
- package/dist/api/design/update/index.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/presentation/aiInspiration.d.ts +10 -10
- package/dist/api/presentation/annotate.d.ts +38 -22
- package/dist/api/presentation/annotate.d.ts.map +1 -1
- 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/index.d.ts +32 -12
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +106 -6
- package/dist/api/presentation/placedViews.d.ts.map +1 -1
- 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/viewPresets.d.ts +222 -0
- package/dist/api/presentation/viewPresets.d.ts.map +1 -0
- package/dist/api/presentation/views.d.ts +141 -8
- package/dist/api/presentation/views.d.ts.map +1 -1
- package/dist/api/presentation/walkthroughs.d.ts +6 -6
- package/dist/errors/codes.d.ts +3 -1
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/index.cjs +3831 -2444
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3705 -2444
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/check-dist-fresh.mjs +22 -22
- package/scripts/generate-manifest.mjs +243 -238
- package/scripts/generate-manifest.test.mjs +303 -303
- package/src/api/analysis/daylight.ts +470 -470
- package/src/api/analysis/heatmaps.ts +683 -683
- package/src/api/analysis/illuminance.ts +155 -155
- package/src/api/analysis/index.ts +61 -61
- package/src/api/analysis/shadows.ts +183 -183
- package/src/api/analysis/solar.ts +237 -237
- package/src/api/analysis/sunlightHours.ts +211 -211
- package/src/api/analysis/sunpath.ts +83 -83
- package/src/api/analysis/weather.ts +179 -179
- package/src/api/core/buildings.ts +485 -485
- package/src/api/core/camera/index.ts +696 -667
- package/src/api/core/comment/index.ts +376 -376
- package/src/api/core/geom/create/index.ts +2139 -2133
- package/src/api/core/geom/delete/index.ts +84 -84
- package/src/api/core/geom/index.ts +35 -35
- package/src/api/core/geom/query/arc.ts +169 -169
- package/src/api/core/geom/query/brep.ts +621 -621
- package/src/api/core/geom/query/circle.ts +404 -404
- package/src/api/core/geom/query/contour.ts +540 -540
- package/src/api/core/geom/query/curve.ts +1102 -1102
- package/src/api/core/geom/query/edge.ts +130 -130
- package/src/api/core/geom/query/face.ts +508 -508
- package/src/api/core/geom/query/halfedge.ts +210 -210
- package/src/api/core/geom/query/index.ts +63 -63
- package/src/api/core/geom/query/profile.ts +473 -473
- package/src/api/core/geom/query/vertex.ts +205 -205
- package/src/api/core/geom/update/contour.ts +323 -317
- package/src/api/core/geom/update/curve.ts +209 -209
- package/src/api/core/geom/update/index.ts +29 -29
- package/src/api/core/geom/update/profile.ts +379 -379
- package/src/api/core/groups.ts +521 -521
- package/src/api/core/handles/index.ts +234 -234
- package/src/api/core/history/index.ts +84 -84
- package/src/api/core/index.ts +99 -99
- package/src/api/core/io/export/index.ts +126 -126
- package/src/api/core/io/import/index.ts +504 -504
- package/src/api/core/io/index.ts +42 -42
- package/src/api/core/io/job/index.ts +140 -140
- package/src/api/core/io/query/index.ts +71 -71
- package/src/api/core/io/terrain/index.ts +360 -360
- package/src/api/core/io/underlay/index.ts +705 -705
- package/src/api/core/layers.ts +540 -540
- package/src/api/core/math/index.ts +20 -20
- package/src/api/core/math/quat.ts +172 -172
- package/src/api/core/math/vec3.ts +179 -179
- package/src/api/core/mode/index.ts +108 -108
- package/src/api/core/project/index.ts +479 -479
- package/src/api/core/proposals/index.ts +570 -570
- package/src/api/core/storeys/index.ts +311 -308
- package/src/api/core/storeys/layers.ts +339 -339
- package/src/api/core/tags.ts +911 -911
- package/src/api/core/units/index.ts +164 -164
- package/src/api/core/user.ts +46 -46
- package/src/api/core/zoom/index.ts +64 -51
- package/src/api/design/bim.ts +210 -0
- package/src/api/design/boolean/index.ts +181 -179
- package/src/api/design/catalog.ts +203 -0
- package/src/api/design/create/bulk-items.ts +294 -254
- package/src/api/design/create/grids.ts +137 -137
- package/src/api/design/create/index.ts +2178 -1980
- package/src/api/design/create/opening-fields.ts +40 -37
- package/src/api/design/delete/index.ts +75 -74
- package/src/api/design/dimensions.ts +453 -453
- package/src/api/design/doors/index.ts +516 -500
- package/src/api/design/edit/index.ts +54 -54
- package/src/api/design/erase/index.ts +151 -151
- package/src/api/design/family.ts +1342 -704
- package/src/api/design/furniture/index.ts +319 -319
- package/src/api/design/grids.ts +237 -237
- package/src/api/design/index.ts +304 -274
- package/src/api/design/lock.ts +69 -69
- package/src/api/design/materials/index.ts +608 -608
- package/src/api/design/networks.ts +607 -0
- package/src/api/design/query/geometry/index.ts +319 -319
- package/src/api/design/query/grids.ts +197 -197
- package/src/api/design/query/index.ts +1236 -1226
- package/src/api/design/query/referenceLines.ts +52 -52
- package/src/api/design/query/spaces.ts +275 -275
- package/src/api/design/selection/index.ts +273 -273
- package/src/api/design/shared.ts +40 -40
- package/src/api/design/transform/index.ts +254 -254
- package/src/api/design/types/index.ts +163 -156
- package/src/api/design/update/index.ts +1096 -983
- package/src/api/design/visibility.ts +143 -143
- package/src/api/design/windows/index.ts +351 -333
- package/src/api/entity/buildableEnvelope.ts +397 -322
- package/src/api/entity/index.ts +30 -30
- package/src/api/entity/referenceLine.ts +235 -235
- package/src/api/entity/space.ts +612 -612
- package/src/api/entity/story.ts +517 -517
- package/src/api/index.ts +47 -47
- package/src/api/presentation/aiInspiration.ts +1116 -1116
- package/src/api/presentation/annotate.ts +417 -385
- package/src/api/presentation/camera.ts +289 -289
- package/src/api/presentation/diagrams.ts +194 -194
- package/src/api/presentation/drawingContract.ts +70 -0
- package/src/api/presentation/drawings.ts +1179 -0
- package/src/api/presentation/export.ts +134 -108
- package/src/api/presentation/import.ts +159 -159
- package/src/api/presentation/index.ts +160 -135
- package/src/api/presentation/placedViews.ts +1211 -1120
- package/src/api/presentation/sections.ts +420 -420
- package/src/api/presentation/shapes.ts +274 -274
- package/src/api/presentation/sheets.ts +746 -585
- package/src/api/presentation/slideshow.ts +134 -134
- package/src/api/presentation/tables.ts +84 -84
- package/src/api/presentation/viewPresets.ts +241 -0
- package/src/api/presentation/views.ts +742 -673
- package/src/api/presentation/walkthroughs.ts +1201 -1201
- package/src/api/program/adjacency.ts +164 -164
- package/src/api/program/areas.ts +408 -408
- package/src/api/program/classification.ts +138 -138
- package/src/api/program/cores.ts +83 -83
- package/src/api/program/departments.ts +517 -517
- package/src/api/program/index.ts +73 -73
- package/src/api/program/labels.ts +332 -332
- package/src/api/program/layout.ts +422 -422
- package/src/api/program/metadata.ts +364 -364
- package/src/api/program/metrics.ts +120 -120
- package/src/api/program/site.ts +748 -748
- package/src/api/program/spreadsheet.ts +2698 -2698
- package/src/api/workspace/index.ts +612 -612
- package/src/errors/codes.ts +143 -136
- package/src/errors/envelope.ts +75 -75
- package/src/errors/index.ts +21 -21
- package/src/errors/plugin-error.ts +134 -134
- package/src/handles.ts +297 -297
- package/src/host-utils.ts +67 -67
- package/src/index.ts +7 -7
- package/src/massParameters.ops.ts +246 -246
- package/src/massParameters.ts +427 -427
- package/src/types.ts +16 -16
- package/test/drawingContract.test.mjs +288 -0
- package/test/errors.test.mjs +185 -184
- package/test/massParameters.test.mjs +952 -952
- package/test/presentationViewSettings.test.mjs +85 -0
- package/tsconfig.json +22 -22
- package/tsup.config.ts +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { PluginApiReturn } from "../../types";
|
|
3
3
|
/**
|
|
4
|
-
* Presentation views — read the saved
|
|
4
|
+
* Presentation views — read the saved plan, 3D, and elevation views used to prepare presentations.
|
|
5
5
|
*
|
|
6
6
|
* A **view** is a saved camera/plan: a sheet-ready 2D plan or a saved 3D view.
|
|
7
7
|
* A plugin can list and read views, capture them to images, activate one (move
|
|
@@ -22,10 +22,10 @@ export declare abstract class PluginPresentationViewsApi {
|
|
|
22
22
|
* List the saved views in the active project.
|
|
23
23
|
*
|
|
24
24
|
* @returns A {@linkcode PluginPresentationViewsListResult} with a `views` array
|
|
25
|
-
* of
|
|
25
|
+
* of plan, 3D, and elevation views (empty when the project has none).
|
|
26
26
|
*
|
|
27
27
|
* @examplePrompt List all the saved views
|
|
28
|
-
* @examplePrompt What
|
|
28
|
+
* @examplePrompt What plan, 3D, and elevation views are in this project?
|
|
29
29
|
* @examplePrompt Which view is currently active?
|
|
30
30
|
* @examplePrompt Get the names of every presentation view
|
|
31
31
|
* @examplePrompt Show me the 3D views I can put on a sheet
|
|
@@ -107,6 +107,10 @@ export declare abstract class PluginPresentationViewsApi {
|
|
|
107
107
|
* Applies the view's camera, visibility, and storey state to the live scene.
|
|
108
108
|
* Paired with {@linkcode PluginPresentationViewsApi.getActive}.
|
|
109
109
|
*
|
|
110
|
+
* While Present is open this sets the Design frame a view saved in Present
|
|
111
|
+
* is taken from; it never moves the Present sheet canvas; use
|
|
112
|
+
* `presentation.camera` for that.
|
|
113
|
+
*
|
|
110
114
|
* @param viewId - The id of the view to activate.
|
|
111
115
|
* @returns The id of the now-active view.
|
|
112
116
|
* @throws If no view has the given id.
|
|
@@ -127,6 +131,15 @@ export declare abstract class PluginPresentationViewsApi {
|
|
|
127
131
|
*
|
|
128
132
|
* Creates a camera bookmark (not geometry) from where the camera is now.
|
|
129
133
|
*
|
|
134
|
+
* Works while Present mode is open. Present draws its drawings on the same
|
|
135
|
+
* 3D scene, so a view saved in Present takes its framing (camera, 2D or 3D
|
|
136
|
+
* mode, projection, storey, building) from the Design frame instead: the one
|
|
137
|
+
* the user had when Present opened, or one a plugin set since with
|
|
138
|
+
* `setActive`, `updateSettings({ viewMode })`, `core.camera`, `core.zoom`,
|
|
139
|
+
* `core.storeys.setActive`, `core.storeys.layers.setActive` or
|
|
140
|
+
* `core.buildings.setActive`. It never moves the Present sheet canvas; use
|
|
141
|
+
* `presentation.camera` for that.
|
|
142
|
+
*
|
|
130
143
|
* @param name - Name for the new view (a default is used when omitted).
|
|
131
144
|
* @param options - Optional `kind` (what kind of view to save, default
|
|
132
145
|
* `"view"`) and `storey` (save the view on a specific storey — the storey is
|
|
@@ -159,12 +172,16 @@ export declare abstract class PluginPresentationViewsApi {
|
|
|
159
172
|
*
|
|
160
173
|
* @param viewId - The id of the view to read settings for.
|
|
161
174
|
* @returns The view's {@linkcode PluginPresentationViewSettings}, or `null` if
|
|
162
|
-
* no view has that id.
|
|
175
|
+
* no view has that id. A plan view also reports its `cutPlaneHeight`,
|
|
176
|
+
* `viewDepthStorey` and `showOverheadObjects` (saved values, or the product
|
|
177
|
+
* defaults for a plan saved before cut ranges existed); other views omit them.
|
|
163
178
|
*
|
|
164
179
|
* @examplePrompt What color mode is the Ground Floor view using?
|
|
165
180
|
* @examplePrompt Get the display settings for this view
|
|
166
181
|
* @examplePrompt Does the site plan view show axes and labels?
|
|
167
182
|
* @examplePrompt Read the background color of the active view
|
|
183
|
+
* @examplePrompt What is the cut height of this plan?
|
|
184
|
+
* @examplePrompt How deep does this plan look below the cut?
|
|
168
185
|
*
|
|
169
186
|
* # Example
|
|
170
187
|
* ```ts
|
|
@@ -211,14 +228,24 @@ export declare abstract class PluginPresentationViewsApi {
|
|
|
211
228
|
* toggle the view-settings modal runs); on other views the mode is applied
|
|
212
229
|
* the next time the view is activated.
|
|
213
230
|
*
|
|
231
|
+
* `cutPlaneHeight`, `viewDepthStorey` and `showOverheadObjects` set the plan's
|
|
232
|
+
* cut range and apply to **plan views only** (patching them on a 3D, elevation
|
|
233
|
+
* or site-plan view is rejected). `cutPlaneHeight` is in engine units, the same
|
|
234
|
+
* unit as `story.height`, and must be greater than 0 and less than the plan
|
|
235
|
+
* storey's height. `viewDepthStorey` must be an existing storey at or below the
|
|
236
|
+
* plan's storey. A sparse patch leaves the other two range fields as they
|
|
237
|
+
* were; on the active plan the canvas redraws live.
|
|
238
|
+
*
|
|
214
239
|
* @param viewId - The id of the view to update.
|
|
215
240
|
* @param settings - A partial {@linkcode PluginPresentationViewSettings}; any
|
|
216
241
|
* omitted field is left unchanged.
|
|
217
242
|
* @returns The updated view's `id`.
|
|
218
243
|
* @throws If writes are disabled, no view has the given id, the patch is
|
|
219
244
|
* contradictory (`showLabels: false` with a non-empty `labels`, or
|
|
220
|
-
* `showLabels: true` with an explicitly empty `labels` list),
|
|
221
|
-
* `viewMode: "perspective"` is patched on a 2D plan view
|
|
245
|
+
* `showLabels: true` with an explicitly empty `labels` list),
|
|
246
|
+
* `viewMode: "perspective"` is patched on a 2D plan view, a plan-range
|
|
247
|
+
* field is patched on a view that is not a plan, or the cut height / depth
|
|
248
|
+
* is out of range.
|
|
222
249
|
*
|
|
223
250
|
* @examplePrompt Switch this view to monochrome color mode
|
|
224
251
|
* @examplePrompt Turn off the axis in the Ground Floor view
|
|
@@ -226,6 +253,9 @@ export declare abstract class PluginPresentationViewsApi {
|
|
|
226
253
|
* @examplePrompt Show area labels on this view
|
|
227
254
|
* @examplePrompt Enable hidden-line mode for the section view
|
|
228
255
|
* @examplePrompt Make the 3D view orthographic instead of perspective
|
|
256
|
+
* @examplePrompt Raise the cut plane of the Ground Floor plan to 1.8 m
|
|
257
|
+
* @examplePrompt Show the basement below in this plan
|
|
258
|
+
* @examplePrompt Hide the overhead objects in this plan
|
|
229
259
|
*
|
|
230
260
|
* # Example
|
|
231
261
|
* ```ts
|
|
@@ -237,6 +267,12 @@ export declare abstract class PluginPresentationViewsApi {
|
|
|
237
267
|
* await snaptrude.presentation.views.updateSettings("view_123", {
|
|
238
268
|
* viewMode: "isometric",
|
|
239
269
|
* })
|
|
270
|
+
* // set a plan's range: cut 1.2 m up, show the basement below, no overhead
|
|
271
|
+
* await snaptrude.presentation.views.updateSettings("plan_1", {
|
|
272
|
+
* cutPlaneHeight: 4.72,
|
|
273
|
+
* viewDepthStorey: -1,
|
|
274
|
+
* showOverheadObjects: false,
|
|
275
|
+
* })
|
|
240
276
|
* ```
|
|
241
277
|
*/
|
|
242
278
|
abstract updateSettings(viewId: string, settings: Partial<PluginPresentationViewSettings>): PluginApiReturn<PluginPresentationViewsUpdateSettingsResult>;
|
|
@@ -289,13 +325,31 @@ export declare abstract class PluginPresentationViewsApi {
|
|
|
289
325
|
abstract delete(viewId: string): PluginApiReturn<PluginPresentationViewsDeleteResult>;
|
|
290
326
|
}
|
|
291
327
|
/**
|
|
292
|
-
* The
|
|
328
|
+
* The rendering category of a saved view. Existing plan/3D values are preserved;
|
|
329
|
+
* elevations are identified independently of their orthographic 3D camera.
|
|
293
330
|
*/
|
|
294
331
|
export declare const PluginPresentationViewType: z.ZodEnum<{
|
|
332
|
+
elevation: "elevation";
|
|
295
333
|
"2d": "2d";
|
|
296
334
|
"3d": "3d";
|
|
297
335
|
}>;
|
|
298
336
|
export type PluginPresentationViewType = z.infer<typeof PluginPresentationViewType>;
|
|
337
|
+
/** The native semantic kind persisted for a saved view. */
|
|
338
|
+
export declare const PluginPresentationViewKind: z.ZodEnum<{
|
|
339
|
+
elevation: "elevation";
|
|
340
|
+
plan: "plan";
|
|
341
|
+
sitePlan: "sitePlan";
|
|
342
|
+
threeD: "threeD";
|
|
343
|
+
}>;
|
|
344
|
+
export type PluginPresentationViewKind = z.infer<typeof PluginPresentationViewKind>;
|
|
345
|
+
/** Cardinal direction for an elevation; non-elevation views return `null`. */
|
|
346
|
+
export declare const PluginPresentationElevationDirection: z.ZodEnum<{
|
|
347
|
+
north: "north";
|
|
348
|
+
south: "south";
|
|
349
|
+
east: "east";
|
|
350
|
+
west: "west";
|
|
351
|
+
}>;
|
|
352
|
+
export type PluginPresentationElevationDirection = z.infer<typeof PluginPresentationElevationDirection>;
|
|
299
353
|
/**
|
|
300
354
|
* A saved presentation view.
|
|
301
355
|
*
|
|
@@ -303,7 +357,9 @@ export type PluginPresentationViewType = z.infer<typeof PluginPresentationViewTy
|
|
|
303
357
|
* |---|---|---|
|
|
304
358
|
* | `id` | `string` | Unique view id |
|
|
305
359
|
* | `name` | `string` | Display name |
|
|
306
|
-
* | `type` | `"2d" \| "3d"` |
|
|
360
|
+
* | `type` | `"2d" \| "3d" \| "elevation"` | Rendering category; elevations are distinct from ordinary 3D views |
|
|
361
|
+
* | `kind` | {@linkcode PluginPresentationViewKind} | Native semantic view kind |
|
|
362
|
+
* | `direction` | {@linkcode PluginPresentationElevationDirection}` \| null` | Cardinal direction for elevations; otherwise `null` |
|
|
307
363
|
* | `isActive` | `boolean` | Whether this view is the currently active view |
|
|
308
364
|
* | `storey` | `number \| null` | The storey this view was saved on (`null` on older views saved without one) |
|
|
309
365
|
*/
|
|
@@ -311,9 +367,22 @@ export declare const PluginPresentationView: z.ZodObject<{
|
|
|
311
367
|
id: z.ZodString;
|
|
312
368
|
name: z.ZodString;
|
|
313
369
|
type: z.ZodEnum<{
|
|
370
|
+
elevation: "elevation";
|
|
314
371
|
"2d": "2d";
|
|
315
372
|
"3d": "3d";
|
|
316
373
|
}>;
|
|
374
|
+
kind: z.ZodEnum<{
|
|
375
|
+
elevation: "elevation";
|
|
376
|
+
plan: "plan";
|
|
377
|
+
sitePlan: "sitePlan";
|
|
378
|
+
threeD: "threeD";
|
|
379
|
+
}>;
|
|
380
|
+
direction: z.ZodNullable<z.ZodEnum<{
|
|
381
|
+
north: "north";
|
|
382
|
+
south: "south";
|
|
383
|
+
east: "east";
|
|
384
|
+
west: "west";
|
|
385
|
+
}>>;
|
|
317
386
|
isActive: z.ZodBoolean;
|
|
318
387
|
storey: z.ZodNullable<z.ZodNumber>;
|
|
319
388
|
}, z.core.$strip>;
|
|
@@ -330,9 +399,22 @@ export declare const PluginPresentationViewsListResult: z.ZodObject<{
|
|
|
330
399
|
id: z.ZodString;
|
|
331
400
|
name: z.ZodString;
|
|
332
401
|
type: z.ZodEnum<{
|
|
402
|
+
elevation: "elevation";
|
|
333
403
|
"2d": "2d";
|
|
334
404
|
"3d": "3d";
|
|
335
405
|
}>;
|
|
406
|
+
kind: z.ZodEnum<{
|
|
407
|
+
elevation: "elevation";
|
|
408
|
+
plan: "plan";
|
|
409
|
+
sitePlan: "sitePlan";
|
|
410
|
+
threeD: "threeD";
|
|
411
|
+
}>;
|
|
412
|
+
direction: z.ZodNullable<z.ZodEnum<{
|
|
413
|
+
north: "north";
|
|
414
|
+
south: "south";
|
|
415
|
+
east: "east";
|
|
416
|
+
west: "west";
|
|
417
|
+
}>>;
|
|
336
418
|
isActive: z.ZodBoolean;
|
|
337
419
|
storey: z.ZodNullable<z.ZodNumber>;
|
|
338
420
|
}, z.core.$strip>>;
|
|
@@ -358,9 +440,22 @@ export declare const PluginPresentationViewsGetResult: z.ZodNullable<z.ZodObject
|
|
|
358
440
|
id: z.ZodString;
|
|
359
441
|
name: z.ZodString;
|
|
360
442
|
type: z.ZodEnum<{
|
|
443
|
+
elevation: "elevation";
|
|
361
444
|
"2d": "2d";
|
|
362
445
|
"3d": "3d";
|
|
363
446
|
}>;
|
|
447
|
+
kind: z.ZodEnum<{
|
|
448
|
+
elevation: "elevation";
|
|
449
|
+
plan: "plan";
|
|
450
|
+
sitePlan: "sitePlan";
|
|
451
|
+
threeD: "threeD";
|
|
452
|
+
}>;
|
|
453
|
+
direction: z.ZodNullable<z.ZodEnum<{
|
|
454
|
+
north: "north";
|
|
455
|
+
south: "south";
|
|
456
|
+
east: "east";
|
|
457
|
+
west: "west";
|
|
458
|
+
}>>;
|
|
364
459
|
isActive: z.ZodBoolean;
|
|
365
460
|
storey: z.ZodNullable<z.ZodNumber>;
|
|
366
461
|
}, z.core.$strip>>;
|
|
@@ -439,9 +534,22 @@ export declare const PluginPresentationViewsCreateResult: z.ZodObject<{
|
|
|
439
534
|
id: z.ZodString;
|
|
440
535
|
name: z.ZodString;
|
|
441
536
|
type: z.ZodEnum<{
|
|
537
|
+
elevation: "elevation";
|
|
442
538
|
"2d": "2d";
|
|
443
539
|
"3d": "3d";
|
|
444
540
|
}>;
|
|
541
|
+
kind: z.ZodEnum<{
|
|
542
|
+
elevation: "elevation";
|
|
543
|
+
plan: "plan";
|
|
544
|
+
sitePlan: "sitePlan";
|
|
545
|
+
threeD: "threeD";
|
|
546
|
+
}>;
|
|
547
|
+
direction: z.ZodNullable<z.ZodEnum<{
|
|
548
|
+
north: "north";
|
|
549
|
+
south: "south";
|
|
550
|
+
east: "east";
|
|
551
|
+
west: "west";
|
|
552
|
+
}>>;
|
|
445
553
|
isActive: z.ZodBoolean;
|
|
446
554
|
storey: z.ZodNullable<z.ZodNumber>;
|
|
447
555
|
}, z.core.$strip>;
|
|
@@ -509,6 +617,9 @@ export type PluginPresentationViewMode = z.infer<typeof PluginPresentationViewMo
|
|
|
509
617
|
* | `showEdges` | `boolean` | Whether edges are shown; `false` = hidden-line rendering |
|
|
510
618
|
* | `showLabels` | `boolean` | Master label switch — whether on-canvas labels are shown at all. `true` always pairs with a non-empty `labels` selection (labels render only while the selection is non-empty; there is no labels-on-with-empty-selection state) |
|
|
511
619
|
* | `labels` | {@linkcode PluginPresentationViewLabel}`[]` | Which label categories are selected. When `showLabels` is `false` the view stores no selection and this reads `[]` |
|
|
620
|
+
* | `cutPlaneHeight` | `number`? | **Plan views only.** Height of the plan's cut plane above its storey base, in engine units (the unit `story.height` uses). Absent on 3D and elevation views |
|
|
621
|
+
* | `viewDepthStorey` | `number`? | **Plan views only.** The lowest storey the plan shows below the cut; defaults to the plan's own storey. Absent on 3D and elevation views |
|
|
622
|
+
* | `showOverheadObjects` | `boolean`? | **Plan views only.** Whether objects above the cut are drawn as dashed overhead linework. Absent on 3D and elevation views |
|
|
512
623
|
*/
|
|
513
624
|
export declare const PluginPresentationViewSettings: z.ZodObject<{
|
|
514
625
|
backgroundColor: z.ZodString;
|
|
@@ -529,6 +640,9 @@ export declare const PluginPresentationViewSettings: z.ZodObject<{
|
|
|
529
640
|
objectLabels: "objectLabels";
|
|
530
641
|
areas: "areas";
|
|
531
642
|
}>>;
|
|
643
|
+
cutPlaneHeight: z.ZodOptional<z.ZodNumber>;
|
|
644
|
+
viewDepthStorey: z.ZodOptional<z.ZodNumber>;
|
|
645
|
+
showOverheadObjects: z.ZodOptional<z.ZodBoolean>;
|
|
532
646
|
}, z.core.$strip>;
|
|
533
647
|
export type PluginPresentationViewSettings = z.infer<typeof PluginPresentationViewSettings>;
|
|
534
648
|
/**
|
|
@@ -565,6 +679,9 @@ export declare const PluginPresentationViewsGetSettingsResult: z.ZodNullable<z.Z
|
|
|
565
679
|
objectLabels: "objectLabels";
|
|
566
680
|
areas: "areas";
|
|
567
681
|
}>>;
|
|
682
|
+
cutPlaneHeight: z.ZodOptional<z.ZodNumber>;
|
|
683
|
+
viewDepthStorey: z.ZodOptional<z.ZodNumber>;
|
|
684
|
+
showOverheadObjects: z.ZodOptional<z.ZodBoolean>;
|
|
568
685
|
}, z.core.$strip>>;
|
|
569
686
|
export type PluginPresentationViewsGetSettingsResult = z.infer<typeof PluginPresentationViewsGetSettingsResult>;
|
|
570
687
|
/**
|
|
@@ -600,6 +717,9 @@ export declare const PluginPresentationViewsUpdateSettingsArgs: z.ZodObject<{
|
|
|
600
717
|
objectLabels: "objectLabels";
|
|
601
718
|
areas: "areas";
|
|
602
719
|
}>>>;
|
|
720
|
+
cutPlaneHeight: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
721
|
+
viewDepthStorey: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
722
|
+
showOverheadObjects: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
603
723
|
}, z.core.$strip>;
|
|
604
724
|
}, z.core.$strip>;
|
|
605
725
|
export type PluginPresentationViewsUpdateSettingsArgs = z.infer<typeof PluginPresentationViewsUpdateSettingsArgs>;
|
|
@@ -626,9 +746,22 @@ export declare const PluginPresentationViewsRenameResult: z.ZodObject<{
|
|
|
626
746
|
id: z.ZodString;
|
|
627
747
|
name: z.ZodString;
|
|
628
748
|
type: z.ZodEnum<{
|
|
749
|
+
elevation: "elevation";
|
|
629
750
|
"2d": "2d";
|
|
630
751
|
"3d": "3d";
|
|
631
752
|
}>;
|
|
753
|
+
kind: z.ZodEnum<{
|
|
754
|
+
elevation: "elevation";
|
|
755
|
+
plan: "plan";
|
|
756
|
+
sitePlan: "sitePlan";
|
|
757
|
+
threeD: "threeD";
|
|
758
|
+
}>;
|
|
759
|
+
direction: z.ZodNullable<z.ZodEnum<{
|
|
760
|
+
north: "north";
|
|
761
|
+
south: "south";
|
|
762
|
+
east: "east";
|
|
763
|
+
west: "west";
|
|
764
|
+
}>>;
|
|
632
765
|
isActive: z.ZodBoolean;
|
|
633
766
|
storey: z.ZodNullable<z.ZodNumber>;
|
|
634
767
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/views.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;;;;;;;;;GAeG;AACH,8BAAsB,0BAA0B;;IAG9C;;;;;;;;;;;;;;;;;;OAkBG;aACa,IAAI,IAAI,eAAe,CAAC,iCAAiC,CAAC;IAE1E;;;;;;;;;;;;;;;OAeG;aACa,GAAG,CACjB,MAAM,EAAE,MAAM,GACb,eAAe,CAAC,gCAAgC,CAAC;IAEpD;;;;;;;;;;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AED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BnD,CAAA;AACH,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAC7D,OAAO,yCAAyC,CACjD,CAAA;AAED,+FAA+F;AAC/F,eAAO,MAAM,2CAA2C;;iBAEtD,CAAA;AACF,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAC/D,OAAO,2CAA2C,CACnD,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC;;;iBAG5C,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,iCAAiC,CACzC,CAAA;AAED,kFAAkF;AAClF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;iBAAyB,CAAA;AACzE,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC;;iBAE5C,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,iCAAiC,CACzC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mCAAmC;;iBAE9C,CAAA;AACF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA"}
|
|
@@ -1252,10 +1252,10 @@ export type PluginWalkthroughExportArgs = z.infer<typeof PluginWalkthroughExport
|
|
|
1252
1252
|
*/
|
|
1253
1253
|
export declare const PluginWalkthroughExportJobStatus: z.ZodEnum<{
|
|
1254
1254
|
failed: "failed";
|
|
1255
|
-
running: "running";
|
|
1256
1255
|
queued: "queued";
|
|
1257
|
-
completed: "completed";
|
|
1258
1256
|
cancelled: "cancelled";
|
|
1257
|
+
running: "running";
|
|
1258
|
+
completed: "completed";
|
|
1259
1259
|
}>;
|
|
1260
1260
|
export type PluginWalkthroughExportJobStatus = z.infer<typeof PluginWalkthroughExportJobStatus>;
|
|
1261
1261
|
/**
|
|
@@ -1297,10 +1297,10 @@ export declare const PluginWalkthroughExportJob: z.ZodObject<{
|
|
|
1297
1297
|
walkthroughId: z.ZodString;
|
|
1298
1298
|
status: z.ZodEnum<{
|
|
1299
1299
|
failed: "failed";
|
|
1300
|
-
running: "running";
|
|
1301
1300
|
queued: "queued";
|
|
1302
|
-
completed: "completed";
|
|
1303
1301
|
cancelled: "cancelled";
|
|
1302
|
+
running: "running";
|
|
1303
|
+
completed: "completed";
|
|
1304
1304
|
}>;
|
|
1305
1305
|
createdAt: z.ZodNumber;
|
|
1306
1306
|
updatedAt: z.ZodNumber;
|
|
@@ -1326,10 +1326,10 @@ export declare const PluginWalkthroughListJobsResult: z.ZodObject<{
|
|
|
1326
1326
|
walkthroughId: z.ZodString;
|
|
1327
1327
|
status: z.ZodEnum<{
|
|
1328
1328
|
failed: "failed";
|
|
1329
|
-
running: "running";
|
|
1330
1329
|
queued: "queued";
|
|
1331
|
-
completed: "completed";
|
|
1332
1330
|
cancelled: "cancelled";
|
|
1331
|
+
running: "running";
|
|
1332
|
+
completed: "completed";
|
|
1333
1333
|
}>;
|
|
1334
1334
|
createdAt: z.ZodNumber;
|
|
1335
1335
|
updatedAt: z.ZodNumber;
|
package/dist/errors/codes.d.ts
CHANGED
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
* (`HANDLE_INVALID`) so error responses cannot be used as an existence /
|
|
8
8
|
* ownership oracle (PLUGIN_HANDLE_MIGRATION_HLD §6). `HANDLE_KIND_MISMATCH`
|
|
9
9
|
* stays distinct because the kind is information the caller already holds.
|
|
10
|
+
* `HANDLE_STALE` is the one deliberate exception: a handle the caller
|
|
11
|
+
* legitimately held whose entity was since retired (deleted or rebuilt).
|
|
10
12
|
*/
|
|
11
|
-
export declare const PLUGIN_ERROR_CODES: readonly ["VALIDATION", "INVALID_RPC_FORMAT", "METHOD_NOT_FOUND", "METHOD_NOT_PERMITTED", "HANDLE_INVALID", "HANDLE_KIND_MISMATCH", "RESOURCE_QUOTA_EXCEEDED", "RATE_LIMITED", "PRECONDITION_FAILED", "OPERATION_FAILED", "TIMEOUT", "CALL_TIMEOUT", "TRANSPORT_LOST", "PLUGIN_NOT_READY", "PLUGIN_TERMINATED", "RESULT_NOT_SERIALIZABLE", "RESULT_TOO_LARGE", "BATCH_PARTIAL", "STORY_UPDATE_FAILED", "STORY_HEIGHT_REJECTED", "NO_ACTIVE_STRUCTURE", "NO_ELIGIBLE_ELEMENTS", "PROPOSAL_SWITCH_BLOCKED", "INTERNAL", "UNKNOWN"];
|
|
13
|
+
export declare const PLUGIN_ERROR_CODES: readonly ["VALIDATION", "INVALID_RPC_FORMAT", "METHOD_NOT_FOUND", "METHOD_NOT_PERMITTED", "HANDLE_INVALID", "HANDLE_KIND_MISMATCH", "RESOURCE_QUOTA_EXCEEDED", "RATE_LIMITED", "PRECONDITION_FAILED", "OPERATION_FAILED", "TIMEOUT", "CALL_TIMEOUT", "TRANSPORT_LOST", "PLUGIN_NOT_READY", "PLUGIN_TERMINATED", "RESULT_NOT_SERIALIZABLE", "RESULT_TOO_LARGE", "BATCH_PARTIAL", "STORY_UPDATE_FAILED", "STORY_HEIGHT_REJECTED", "NO_ACTIVE_STRUCTURE", "NO_ELIGIBLE_ELEMENTS", "PROPOSAL_SWITCH_BLOCKED", "INTERNAL", "UNKNOWN", "HANDLE_STALE"];
|
|
12
14
|
export type PluginErrorCode = (typeof PLUGIN_ERROR_CODES)[number];
|
|
13
15
|
/**
|
|
14
16
|
* A known code, or a string outside the union — a plugin built against an
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/errors/codes.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/errors/codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,khBA2BrB,CAAA;AAEV,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjE;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAEjE,MAAM,MAAM,mBAAmB,GAC3B,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,QAAQ,GACR,OAAO,GACP,SAAS,GACT,WAAW,GACX,WAAW,GACX,WAAW,GACX,UAAU,CAAA;AAEd;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB,kEAAkE;IAClE,QAAQ,EAAE,mBAAmB,CAAA;IAC7B,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,eAAe,EAAE,QAAQ,CA+DvD,CAAA;AAED,uEAAuE;AACvE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAEzE"}
|