@snaptrude/plugin-core 0.7.1 → 0.9.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/CHANGELOG.md +29 -0
- package/api-manifest.full.json +7703 -0
- package/api-manifest.json +2946 -259
- 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 +245 -0
- package/dist/api/core/camera/index.d.ts.map +1 -0
- package/dist/api/core/comment/index.d.ts +105 -2
- package/dist/api/core/comment/index.d.ts.map +1 -1
- package/dist/api/core/geom/create/index.d.ts +331 -14
- package/dist/api/core/geom/create/index.d.ts.map +1 -1
- package/dist/api/core/geom/delete/index.d.ts +8 -2
- package/dist/api/core/geom/delete/index.d.ts.map +1 -1
- package/dist/api/core/geom/query/arc.d.ts +5 -5
- package/dist/api/core/geom/query/brep.d.ts +18 -18
- package/dist/api/core/geom/query/circle.d.ts +18 -18
- package/dist/api/core/geom/query/contour.d.ts +20 -20
- package/dist/api/core/geom/query/curve.d.ts +49 -49
- package/dist/api/core/geom/query/edge.d.ts +5 -5
- package/dist/api/core/geom/query/face.d.ts +16 -16
- package/dist/api/core/geom/query/halfedge.d.ts +8 -8
- package/dist/api/core/geom/query/profile.d.ts +19 -19
- package/dist/api/core/geom/query/vertex.d.ts +8 -8
- package/dist/api/core/geom/update/contour.d.ts +14 -14
- package/dist/api/core/geom/update/curve.d.ts +7 -7
- package/dist/api/core/geom/update/profile.d.ts +16 -16
- package/dist/api/core/handles/index.d.ts +210 -0
- package/dist/api/core/handles/index.d.ts.map +1 -0
- package/dist/api/core/index.d.ts +24 -0
- package/dist/api/core/index.d.ts.map +1 -1
- package/dist/api/core/io/export/index.d.ts +134 -0
- package/dist/api/core/io/export/index.d.ts.map +1 -0
- package/dist/api/core/io/import/index.d.ts +62 -1
- package/dist/api/core/io/import/index.d.ts.map +1 -1
- package/dist/api/core/io/index.d.ts +5 -0
- package/dist/api/core/io/index.d.ts.map +1 -1
- package/dist/api/core/layers.d.ts +7 -7
- 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/proposals/index.d.ts +65 -9
- package/dist/api/core/proposals/index.d.ts.map +1 -1
- 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/user.d.ts +44 -0
- package/dist/api/core/user.d.ts.map +1 -0
- 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/boolean/index.d.ts +4 -4
- package/dist/api/design/create/index.d.ts +253 -47
- 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/doors/index.d.ts +36 -0
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/edit/index.d.ts +1 -1
- package/dist/api/design/erase/index.d.ts +2 -2
- package/dist/api/design/furniture/index.d.ts +114 -3
- package/dist/api/design/furniture/index.d.ts.map +1 -1
- package/dist/api/design/index.d.ts +10 -0
- package/dist/api/design/index.d.ts.map +1 -1
- package/dist/api/design/materials/index.d.ts +111 -14
- package/dist/api/design/materials/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 +35 -1
- 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 +178 -5
- package/dist/api/design/query/spaces.d.ts.map +1 -1
- package/dist/api/design/transform/index.d.ts +95 -14
- package/dist/api/design/transform/index.d.ts.map +1 -1
- package/dist/api/design/types/index.d.ts +181 -0
- package/dist/api/design/types/index.d.ts.map +1 -0
- package/dist/api/design/update/index.d.ts +385 -2
- package/dist/api/design/update/index.d.ts.map +1 -1
- package/dist/api/design/visibility.d.ts +98 -0
- package/dist/api/design/visibility.d.ts.map +1 -0
- 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 +10 -2
- package/dist/api/entity/referenceLine.d.ts.map +1 -1
- package/dist/api/entity/space.d.ts +19 -19
- package/dist/api/entity/story.d.ts +148 -15
- 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 +448 -0
- package/dist/api/presentation/annotate.d.ts.map +1 -0
- package/dist/api/presentation/diagrams.d.ts +49 -8
- package/dist/api/presentation/diagrams.d.ts.map +1 -1
- package/dist/api/presentation/export.d.ts +108 -0
- package/dist/api/presentation/export.d.ts.map +1 -0
- 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 +47 -0
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +370 -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 +410 -13
- package/dist/api/presentation/sheets.d.ts.map +1 -1
- package/dist/api/presentation/views.d.ts +165 -10
- package/dist/api/presentation/views.d.ts.map +1 -1
- package/dist/api/program/areas.d.ts +63 -3
- package/dist/api/program/areas.d.ts.map +1 -1
- package/dist/api/program/cores.d.ts +3 -99
- package/dist/api/program/cores.d.ts.map +1 -1
- package/dist/api/program/index.d.ts +2 -2
- package/dist/api/program/index.d.ts.map +1 -1
- package/dist/api/program/layout.d.ts +172 -12
- package/dist/api/program/layout.d.ts.map +1 -1
- package/dist/api/program/site.d.ts +105 -8
- package/dist/api/program/site.d.ts.map +1 -1
- package/dist/api/program/spreadsheet.d.ts +365 -41
- package/dist/api/program/spreadsheet.d.ts.map +1 -1
- package/dist/api/workspace/index.d.ts +460 -0
- package/dist/api/workspace/index.d.ts.map +1 -0
- package/dist/handles.d.ts +64 -25
- package/dist/handles.d.ts.map +1 -1
- package/dist/index.cjs +3210 -1671
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3008 -1666
- 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 +251 -0
- package/src/api/core/comment/index.ts +120 -2
- package/src/api/core/geom/create/index.ts +344 -1
- package/src/api/core/geom/delete/index.ts +6 -0
- package/src/api/core/handles/index.ts +233 -0
- package/src/api/core/index.ts +24 -0
- package/src/api/core/io/export/index.ts +126 -0
- package/src/api/core/io/import/index.ts +64 -0
- package/src/api/core/io/index.ts +5 -0
- package/src/api/core/mode/index.ts +96 -0
- package/src/api/core/proposals/index.ts +71 -11
- package/src/api/core/storeys/index.ts +279 -0
- package/src/api/core/tags.ts +27 -0
- package/src/api/core/user.ts +46 -0
- package/src/api/core/zoom/index.ts +4 -0
- package/src/api/design/create/index.ts +303 -36
- package/src/api/design/delete/index.ts +3 -0
- package/src/api/design/doors/index.ts +40 -0
- package/src/api/design/furniture/index.ts +127 -3
- package/src/api/design/index.ts +10 -0
- package/src/api/design/materials/index.ts +157 -30
- package/src/api/design/query/geometry/index.ts +125 -3
- package/src/api/design/query/index.ts +37 -7
- 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 +101 -12
- package/src/api/design/types/index.ts +156 -0
- package/src/api/design/update/index.ts +467 -6
- package/src/api/design/visibility.ts +109 -0
- package/src/api/entity/buildableEnvelope.ts +4 -0
- package/src/api/entity/referenceLine.ts +8 -0
- package/src/api/entity/story.ts +161 -15
- package/src/api/index.ts +5 -0
- package/src/api/presentation/annotate.ts +360 -0
- package/src/api/presentation/diagrams.ts +53 -8
- package/src/api/presentation/export.ts +108 -0
- package/src/api/presentation/import.ts +6 -0
- package/src/api/presentation/index.ts +55 -0
- package/src/api/presentation/placedViews.ts +363 -0
- package/src/api/presentation/shapes.ts +274 -0
- package/src/api/presentation/sheets.ts +346 -13
- package/src/api/presentation/views.ts +164 -12
- package/src/api/program/areas.ts +57 -6
- package/src/api/program/cores.ts +3 -91
- package/src/api/program/index.ts +2 -2
- package/src/api/program/layout.ts +182 -12
- package/src/api/program/site.ts +106 -8
- package/src/api/program/spreadsheet.ts +376 -35
- package/src/api/workspace/index.ts +516 -0
- package/src/handles.ts +77 -13
- package/tsconfig.json +7 -2
|
@@ -201,7 +201,7 @@ export declare abstract class PluginGeomUpdateProfileApi {
|
|
|
201
201
|
* | `distance` | `number` | Signed offset distance (outward when positive, inward when negative) |
|
|
202
202
|
*/
|
|
203
203
|
export declare const PluginGeomUpdateProfileOffsetArgs: z.ZodObject<{
|
|
204
|
-
profile: z.ZodPipe<z.
|
|
204
|
+
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"profile">, string>>;
|
|
205
205
|
distance: z.ZodNumber;
|
|
206
206
|
}, z.core.$strip>;
|
|
207
207
|
export type PluginGeomUpdateProfileOffsetArgs = z.infer<typeof PluginGeomUpdateProfileOffsetArgs>;
|
|
@@ -214,8 +214,8 @@ export type PluginGeomUpdateProfileOffsetArgs = z.infer<typeof PluginGeomUpdateP
|
|
|
214
214
|
* | `translation` | {@linkcode Vec3Handle} | Translation vector to move the profile by |
|
|
215
215
|
*/
|
|
216
216
|
export declare const PluginGeomUpdateProfileMoveArgs: z.ZodObject<{
|
|
217
|
-
profile: z.ZodPipe<z.
|
|
218
|
-
translation: z.ZodPipe<z.
|
|
217
|
+
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"profile">, string>>;
|
|
218
|
+
translation: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>;
|
|
219
219
|
}, z.core.$strip>;
|
|
220
220
|
export type PluginGeomUpdateProfileMoveArgs = z.infer<typeof PluginGeomUpdateProfileMoveArgs>;
|
|
221
221
|
/**
|
|
@@ -229,10 +229,10 @@ export type PluginGeomUpdateProfileMoveArgs = z.infer<typeof PluginGeomUpdatePro
|
|
|
229
229
|
* | `pivot` | {@linkcode Vec3Handle} | Optional pivot point to rotate about (defaults to the origin) |
|
|
230
230
|
*/
|
|
231
231
|
export declare const PluginGeomUpdateProfileRotateArgs: z.ZodObject<{
|
|
232
|
-
profile: z.ZodPipe<z.
|
|
233
|
-
axis: z.ZodPipe<z.
|
|
232
|
+
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"profile">, string>>;
|
|
233
|
+
axis: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>;
|
|
234
234
|
angle: z.ZodNumber;
|
|
235
|
-
pivot: z.ZodOptional<z.ZodPipe<z.
|
|
235
|
+
pivot: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>>;
|
|
236
236
|
}, z.core.$strip>;
|
|
237
237
|
export type PluginGeomUpdateProfileRotateArgs = z.infer<typeof PluginGeomUpdateProfileRotateArgs>;
|
|
238
238
|
/**
|
|
@@ -245,13 +245,13 @@ export type PluginGeomUpdateProfileRotateArgs = z.infer<typeof PluginGeomUpdateP
|
|
|
245
245
|
* | `pivot` | {@linkcode Vec3Handle} | Optional pivot point to scale about (defaults to the origin) |
|
|
246
246
|
*/
|
|
247
247
|
export declare const PluginGeomUpdateProfileScaleArgs: z.ZodObject<{
|
|
248
|
-
profile: z.ZodPipe<z.
|
|
248
|
+
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"profile">, string>>;
|
|
249
249
|
factor: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
250
250
|
x: z.ZodNumber;
|
|
251
251
|
y: z.ZodNumber;
|
|
252
252
|
z: z.ZodNumber;
|
|
253
253
|
}, z.core.$strip>]>;
|
|
254
|
-
pivot: z.ZodOptional<z.ZodPipe<z.
|
|
254
|
+
pivot: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>>;
|
|
255
255
|
}, z.core.$strip>;
|
|
256
256
|
export type PluginGeomUpdateProfileScaleArgs = z.infer<typeof PluginGeomUpdateProfileScaleArgs>;
|
|
257
257
|
/**
|
|
@@ -263,10 +263,10 @@ export type PluginGeomUpdateProfileScaleArgs = z.infer<typeof PluginGeomUpdatePr
|
|
|
263
263
|
* | `plane` | `{ point: `{@linkcode Vec3Handle}`, normal: `{@linkcode Vec3Handle}` }` | Mirror plane defined by a point on it and its normal |
|
|
264
264
|
*/
|
|
265
265
|
export declare const PluginGeomUpdateProfileMirrorArgs: z.ZodObject<{
|
|
266
|
-
profile: z.ZodPipe<z.
|
|
266
|
+
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"profile">, string>>;
|
|
267
267
|
plane: z.ZodObject<{
|
|
268
|
-
point: z.ZodPipe<z.
|
|
269
|
-
normal: z.ZodPipe<z.
|
|
268
|
+
point: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>;
|
|
269
|
+
normal: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>;
|
|
270
270
|
}, z.core.$strip>;
|
|
271
271
|
}, z.core.$strip>;
|
|
272
272
|
export type PluginGeomUpdateProfileMirrorArgs = z.infer<typeof PluginGeomUpdateProfileMirrorArgs>;
|
|
@@ -280,8 +280,8 @@ export type PluginGeomUpdateProfileMirrorArgs = z.infer<typeof PluginGeomUpdateP
|
|
|
280
280
|
* | `position` | `"start"` \| `"end"` | Optional end to append at (defaults to `"end"`) |
|
|
281
281
|
*/
|
|
282
282
|
export declare const PluginGeomUpdateProfileAddArgs: z.ZodObject<{
|
|
283
|
-
profile: z.ZodPipe<z.
|
|
284
|
-
curve: z.ZodUnion<readonly [z.ZodPipe<z.
|
|
283
|
+
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"profile">, string>>;
|
|
284
|
+
curve: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"arc">, string>>]>;
|
|
285
285
|
position: z.ZodOptional<z.ZodEnum<{
|
|
286
286
|
start: "start";
|
|
287
287
|
end: "end";
|
|
@@ -297,7 +297,7 @@ export type PluginGeomUpdateProfileAddArgs = z.infer<typeof PluginGeomUpdateProf
|
|
|
297
297
|
* | `position` | `"start"` \| `"end"` | Optional end to remove from (defaults to `"end"`) |
|
|
298
298
|
*/
|
|
299
299
|
export declare const PluginGeomUpdateProfileRemoveArgs: z.ZodObject<{
|
|
300
|
-
profile: z.ZodPipe<z.
|
|
300
|
+
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"profile">, string>>;
|
|
301
301
|
position: z.ZodOptional<z.ZodEnum<{
|
|
302
302
|
start: "start";
|
|
303
303
|
end: "end";
|
|
@@ -312,7 +312,7 @@ export type PluginGeomUpdateProfileRemoveArgs = z.infer<typeof PluginGeomUpdateP
|
|
|
312
312
|
* | `profile` | {@linkcode ProfileHandle} | The profile to reverse |
|
|
313
313
|
*/
|
|
314
314
|
export declare const PluginGeomUpdateProfileReverseArgs: z.ZodObject<{
|
|
315
|
-
profile: z.ZodPipe<z.
|
|
315
|
+
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"profile">, string>>;
|
|
316
316
|
}, z.core.$strip>;
|
|
317
317
|
export type PluginGeomUpdateProfileReverseArgs = z.infer<typeof PluginGeomUpdateProfileReverseArgs>;
|
|
318
318
|
/**
|
|
@@ -323,7 +323,7 @@ export type PluginGeomUpdateProfileReverseArgs = z.infer<typeof PluginGeomUpdate
|
|
|
323
323
|
* | `profile` | {@linkcode ProfileHandle} | The profile to simplify |
|
|
324
324
|
*/
|
|
325
325
|
export declare const PluginGeomUpdateProfileSimplifyArgs: z.ZodObject<{
|
|
326
|
-
profile: z.ZodPipe<z.
|
|
326
|
+
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"profile">, string>>;
|
|
327
327
|
}, z.core.$strip>;
|
|
328
328
|
export type PluginGeomUpdateProfileSimplifyArgs = z.infer<typeof PluginGeomUpdateProfileSimplifyArgs>;
|
|
329
329
|
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { PluginApiReturn } from "../../../types";
|
|
3
|
+
import type { AnyArenaHandle } from "../../../handles";
|
|
4
|
+
/**
|
|
5
|
+
* The 12 registry-arena handle kinds — the releasable families. Entity-style
|
|
6
|
+
* handles (component / material / underlay / terrain / importJob / comment) are
|
|
7
|
+
* raw engine ids with no arena entry and therefore no lifecycle: passing one to
|
|
8
|
+
* `release` is a silent no-op like any other unknown id.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ArenaKind: z.ZodEnum<{
|
|
11
|
+
vec3: "vec3";
|
|
12
|
+
quat: "quat";
|
|
13
|
+
line: "line";
|
|
14
|
+
arc: "arc";
|
|
15
|
+
circle: "circle";
|
|
16
|
+
profile: "profile";
|
|
17
|
+
contour: "contour";
|
|
18
|
+
brep: "brep";
|
|
19
|
+
face: "face";
|
|
20
|
+
edge: "edge";
|
|
21
|
+
halfedge: "halfedge";
|
|
22
|
+
vertex: "vertex";
|
|
23
|
+
}>;
|
|
24
|
+
export type ArenaKind = z.infer<typeof ArenaKind>;
|
|
25
|
+
/** Max handles accepted by a single `release` / `endScope(retain)` call. */
|
|
26
|
+
export declare const RELEASE_BATCH_MAX = 10000;
|
|
27
|
+
/**
|
|
28
|
+
* An opaque token identifying a handle scope opened by
|
|
29
|
+
* {@linkcode PluginCoreHandlesApi.beginScope}. It is NOT an arena handle —
|
|
30
|
+
* it pins no memory, and `release(token)` is a silent no-op; only
|
|
31
|
+
* {@linkcode PluginCoreHandlesApi.endScope} consumes it.
|
|
32
|
+
*/
|
|
33
|
+
export type ScopeToken = string;
|
|
34
|
+
/**
|
|
35
|
+
* Handle lifecycle — free host-side handle registry entries the plugin no
|
|
36
|
+
* longer needs, individually ({@linkcode release}), by kind
|
|
37
|
+
* ({@linkcode releaseAll}), or as a mint-recording region
|
|
38
|
+
* ({@linkcode beginScope} / {@linkcode endScope}).
|
|
39
|
+
*
|
|
40
|
+
* Releasing is a handle-lifecycle operation only: it frees the registry entry
|
|
41
|
+
* (host memory + quota room) and makes the handle unresolvable. It never
|
|
42
|
+
* deletes engine-side geometry or scene entities.
|
|
43
|
+
*
|
|
44
|
+
* Accessed via `snaptrude.core.handles`.
|
|
45
|
+
*/
|
|
46
|
+
export declare abstract class PluginCoreHandlesApi {
|
|
47
|
+
constructor();
|
|
48
|
+
/**
|
|
49
|
+
* Free arena handles in bulk. Unknown, foreign, or already-released ids are
|
|
50
|
+
* silent no-ops — there is no per-id result and no count, so responses can
|
|
51
|
+
* never be used as an existence oracle.
|
|
52
|
+
*
|
|
53
|
+
* @param handles The handles to release (max {@linkcode RELEASE_BATCH_MAX} per call)
|
|
54
|
+
* @returns Nothing
|
|
55
|
+
*
|
|
56
|
+
* # Example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const faces = await snaptrude.core.geom.query.brep.listFaces(brep)
|
|
59
|
+
* // ... read what you need ...
|
|
60
|
+
* await snaptrude.core.handles.release(faces)
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
abstract release(handles: ReadonlyArray<AnyArenaHandle>): PluginApiReturn<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Free every live arena handle of one kind, or ALL arena handles when the
|
|
66
|
+
* kind is omitted. Useful at batch boundaries — e.g. a poll loop that mints
|
|
67
|
+
* a fresh footprint contour per tick.
|
|
68
|
+
*
|
|
69
|
+
* @param kind Optional arena kind to restrict the sweep to
|
|
70
|
+
* @returns Nothing
|
|
71
|
+
*
|
|
72
|
+
* # Example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const footprint = await snaptrude.design.query.spaces.getFootprint(space)
|
|
75
|
+
* // ... measure ...
|
|
76
|
+
* await snaptrude.core.handles.releaseAll("contour")
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
abstract releaseAll(kind?: ArenaKind): PluginApiReturn<void>;
|
|
80
|
+
/**
|
|
81
|
+
* Open a mint-recording scope: every arena handle MINTED after this call
|
|
82
|
+
* (fresh mints only — identity-deduped re-registrations of pre-existing
|
|
83
|
+
* objects are not captured) is freed when the matching
|
|
84
|
+
* {@linkcode endScope} runs. Scopes nest, up to 64 deep — always pair
|
|
85
|
+
* begin/end in try/finally.
|
|
86
|
+
*
|
|
87
|
+
* @returns The scope token to pass to {@linkcode endScope}
|
|
88
|
+
*
|
|
89
|
+
* # Example
|
|
90
|
+
* ```ts
|
|
91
|
+
* for (const space of spaces) {
|
|
92
|
+
* const scope = await snaptrude.core.handles.beginScope()
|
|
93
|
+
* try {
|
|
94
|
+
* const footprint = await snaptrude.design.query.spaces.getFootprint(space)
|
|
95
|
+
* const area = await snaptrude.core.geom.query.contour.getArea(footprint)
|
|
96
|
+
* } finally {
|
|
97
|
+
* await snaptrude.core.handles.endScope(scope) // footprint (and intermediates) freed
|
|
98
|
+
* }
|
|
99
|
+
* }
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
abstract beginScope(): PluginApiReturn<ScopeToken>;
|
|
103
|
+
/**
|
|
104
|
+
* Close a scope by its token and free every handle it recorded, except those
|
|
105
|
+
* listed in `retain`. Retained handles are promoted to the enclosing scope
|
|
106
|
+
* (if any), so nesting composes like block scopes. Closing is
|
|
107
|
+
* token-addressed: an out-of-order close (interleaved async tasks) frees
|
|
108
|
+
* only that scope's mints and leaves other open scopes intact. Always pair
|
|
109
|
+
* begin/end in try/finally so a thrown body cannot leak the scope.
|
|
110
|
+
*
|
|
111
|
+
* @param scope The token returned by the matching {@linkcode beginScope}
|
|
112
|
+
* @param retain Handles minted inside the scope that must survive it
|
|
113
|
+
* @returns Nothing
|
|
114
|
+
*
|
|
115
|
+
* # Example
|
|
116
|
+
* ```ts
|
|
117
|
+
* const scope = await snaptrude.core.handles.beginScope()
|
|
118
|
+
* const outline = await snaptrude.design.query.spaces.getFootprint(space)
|
|
119
|
+
* const outer = await snaptrude.core.geom.query.contour.getOuterProfile(outline)
|
|
120
|
+
* await snaptrude.core.handles.endScope(scope, [outer]) // outline freed, outer survives
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
abstract endScope(scope: ScopeToken, retain?: ReadonlyArray<AnyArenaHandle>): PluginApiReturn<void>;
|
|
124
|
+
/**
|
|
125
|
+
* Live handle-registry statistics for the calling plugin, plus the host
|
|
126
|
+
* page's JS heap usage (when the browser exposes it). Diagnostic surface for
|
|
127
|
+
* verifying that releases actually shrink host memory.
|
|
128
|
+
*
|
|
129
|
+
* @returns Arena entry counts, open scope depth, and host heap bytes
|
|
130
|
+
*
|
|
131
|
+
* # Example
|
|
132
|
+
* ```ts
|
|
133
|
+
* const before = await snaptrude.core.handles.stats()
|
|
134
|
+
* await snaptrude.core.handles.releaseAll("vec3")
|
|
135
|
+
* const after = await snaptrude.core.handles.stats()
|
|
136
|
+
* console.log(`freed ${before.values - after.values} value entries`)
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
abstract stats(): PluginApiReturn<PluginHandlesStatsResult>;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Arguments for {@linkcode PluginCoreHandlesApi.release}.
|
|
143
|
+
*
|
|
144
|
+
* | Property | Type | Description |
|
|
145
|
+
* |---|---|---|
|
|
146
|
+
* | `handles` | `string[]` | Handles to release (≤ {@linkcode RELEASE_BATCH_MAX}) |
|
|
147
|
+
*/
|
|
148
|
+
export declare const PluginHandlesReleaseArgs: z.ZodObject<{
|
|
149
|
+
handles: z.ZodArray<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
export type PluginHandlesReleaseArgs = z.infer<typeof PluginHandlesReleaseArgs>;
|
|
152
|
+
/**
|
|
153
|
+
* Arguments for {@linkcode PluginCoreHandlesApi.releaseAll}.
|
|
154
|
+
*
|
|
155
|
+
* | Property | Type | Description |
|
|
156
|
+
* |---|---|---|
|
|
157
|
+
* | `kind` | {@linkcode ArenaKind} (optional) | Restrict the sweep to one kind |
|
|
158
|
+
*/
|
|
159
|
+
export declare const PluginHandlesReleaseAllArgs: z.ZodObject<{
|
|
160
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
161
|
+
vec3: "vec3";
|
|
162
|
+
quat: "quat";
|
|
163
|
+
line: "line";
|
|
164
|
+
arc: "arc";
|
|
165
|
+
circle: "circle";
|
|
166
|
+
profile: "profile";
|
|
167
|
+
contour: "contour";
|
|
168
|
+
brep: "brep";
|
|
169
|
+
face: "face";
|
|
170
|
+
edge: "edge";
|
|
171
|
+
halfedge: "halfedge";
|
|
172
|
+
vertex: "vertex";
|
|
173
|
+
}>>;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
export type PluginHandlesReleaseAllArgs = z.infer<typeof PluginHandlesReleaseAllArgs>;
|
|
176
|
+
/**
|
|
177
|
+
* Arguments for {@linkcode PluginCoreHandlesApi.endScope}.
|
|
178
|
+
*
|
|
179
|
+
* | Property | Type | Description |
|
|
180
|
+
* |---|---|---|
|
|
181
|
+
* | `scope` | {@linkcode ScopeToken} | Token from the matching `beginScope` |
|
|
182
|
+
* | `retain` | `string[]` (optional) | Scope-minted handles that must survive |
|
|
183
|
+
*/
|
|
184
|
+
export declare const PluginHandlesEndScopeArgs: z.ZodObject<{
|
|
185
|
+
scope: z.ZodString;
|
|
186
|
+
retain: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>>>;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
export type PluginHandlesEndScopeArgs = z.infer<typeof PluginHandlesEndScopeArgs>;
|
|
189
|
+
/**
|
|
190
|
+
* Result of {@linkcode PluginCoreHandlesApi.stats}.
|
|
191
|
+
*
|
|
192
|
+
* | Property | Type | Description |
|
|
193
|
+
* |---|---|---|
|
|
194
|
+
* | `resources` | `number` | Live resource-arena entries (profile/contour) |
|
|
195
|
+
* | `values` | `number` | Live value-arena entries (vec3/quat/line/arc/circle) |
|
|
196
|
+
* | `topology` | `number` | Live topology-arena entries (brep/face/edge/halfedge/vertex) |
|
|
197
|
+
* | `scopes` | `number` | Currently open handle scopes |
|
|
198
|
+
* | `hostHeapUsedBytes` | `number \| null` | Host page `usedJSHeapSize` (null where unsupported) |
|
|
199
|
+
* | `hostHeapTotalBytes` | `number \| null` | Host page `totalJSHeapSize` (null where unsupported) |
|
|
200
|
+
*/
|
|
201
|
+
export declare const PluginHandlesStatsResult: z.ZodObject<{
|
|
202
|
+
resources: z.ZodNumber;
|
|
203
|
+
values: z.ZodNumber;
|
|
204
|
+
topology: z.ZodNumber;
|
|
205
|
+
scopes: z.ZodNumber;
|
|
206
|
+
hostHeapUsedBytes: z.ZodNullable<z.ZodNumber>;
|
|
207
|
+
hostHeapTotalBytes: z.ZodNullable<z.ZodNumber>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
export type PluginHandlesStatsResult = z.infer<typeof PluginHandlesStatsResult>;
|
|
210
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/handles/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAGhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGtD;;;;;GAKG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;EAapB,CAAA;AACF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAEjD,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB,QAAS,CAAA;AAEvC;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAA;AAE/B;;;;;;;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
|
|
10
10
|
import { PluginCoreLayersApi } from "./layers";
|
|
11
11
|
import { PluginCoreTagsApi } from "./tags";
|
|
12
12
|
import { PluginCoreIoApi } from "./io";
|
|
13
|
+
import { PluginCoreHandlesApi } from "./handles";
|
|
13
14
|
import { PluginCoreProposalsApi } from "./proposals";
|
|
15
|
+
import { PluginCameraApi } from "./camera";
|
|
16
|
+
import { PluginCoreStoreysApi } from "./storeys";
|
|
17
|
+
import { PluginCoreModeApi } from "./mode";
|
|
18
|
+
import { PluginUserApi } from "./user";
|
|
14
19
|
/**
|
|
15
20
|
* Core primitives and infrastructure used across the plugin API.
|
|
16
21
|
*
|
|
@@ -19,13 +24,17 @@ import { PluginCoreProposalsApi } from "./proposals";
|
|
|
19
24
|
* - {@linkcode PluginCoreApi.history} — Undo / redo of committed history entries
|
|
20
25
|
* - {@linkcode PluginCoreApi.units} — Unit-type queries and conversion
|
|
21
26
|
* - {@linkcode PluginCoreApi.zoom} — Camera zoom controls (extents / selection)
|
|
27
|
+
* - {@linkcode PluginCoreApi.camera} — Camera controls — position, standard views, 2D/3D mode
|
|
28
|
+
* - {@linkcode PluginCoreApi.user} — User locale — timezone & language
|
|
22
29
|
* - {@linkcode PluginCoreApi.project} — Project-level settings and info
|
|
23
30
|
* - {@linkcode PluginCoreApi.comment} — Comments: create, edit, resolve, tag, list
|
|
24
31
|
* - {@linkcode PluginCoreApi.groups} — Read & edit the group hierarchy
|
|
25
32
|
* - {@linkcode PluginCoreApi.buildings} — Read & edit buildings and their storeys
|
|
33
|
+
* - {@linkcode PluginCoreApi.storeys} — Create, read & edit storeys (floors)
|
|
26
34
|
* - {@linkcode PluginCoreApi.layers} — Read & toggle storey drawing/reference layers
|
|
27
35
|
* - {@linkcode PluginCoreApi.tags} — Tag catalog + assignment
|
|
28
36
|
* - {@linkcode PluginCoreApi.io} — Import files (image/pdf/cad/model/terrain), poll jobs, manage underlays
|
|
37
|
+
* - {@linkcode PluginCoreApi.handles} — Handle lifecycle: release, releaseAll, scopes
|
|
29
38
|
* - {@linkcode PluginCoreApi.proposals} — Design options: read, create, rename, switch, delete
|
|
30
39
|
*/
|
|
31
40
|
export declare abstract class PluginCoreApi {
|
|
@@ -39,6 +48,10 @@ export declare abstract class PluginCoreApi {
|
|
|
39
48
|
abstract units: PluginUnitsApi;
|
|
40
49
|
/** Camera zoom controls. See {@linkcode PluginZoomApi}. */
|
|
41
50
|
abstract zoom: PluginZoomApi;
|
|
51
|
+
/** Camera controls — position, standard views, 2D/3D mode. See {@linkcode PluginCameraApi}. */
|
|
52
|
+
abstract camera: PluginCameraApi;
|
|
53
|
+
/** User locale — timezone & language. See {@linkcode PluginUserApi}. */
|
|
54
|
+
abstract user: PluginUserApi;
|
|
42
55
|
/** Project-level settings and info. See {@linkcode PluginProjectApi}. */
|
|
43
56
|
abstract project: PluginProjectApi;
|
|
44
57
|
/** Comments — create, edit, resolve, tag, list. See {@linkcode PluginCommentApi}. */
|
|
@@ -47,12 +60,18 @@ export declare abstract class PluginCoreApi {
|
|
|
47
60
|
abstract groups: PluginCoreGroupsApi;
|
|
48
61
|
/** Buildings — read & edit buildings and their storeys. See {@linkcode PluginCoreBuildingsApi}. */
|
|
49
62
|
abstract buildings: PluginCoreBuildingsApi;
|
|
63
|
+
/** Storeys — create, read & edit storeys (floors). See {@linkcode PluginCoreStoreysApi}. */
|
|
64
|
+
abstract storeys: PluginCoreStoreysApi;
|
|
65
|
+
/** Application mode — read & switch the editor's top-bar mode. See {@linkcode PluginCoreModeApi}. */
|
|
66
|
+
abstract mode: PluginCoreModeApi;
|
|
50
67
|
/** Layers — read & toggle storey drawing/reference layers. See {@linkcode PluginCoreLayersApi}. */
|
|
51
68
|
abstract layers: PluginCoreLayersApi;
|
|
52
69
|
/** Tags — tag catalog + assignment. See {@linkcode PluginCoreTagsApi}. */
|
|
53
70
|
abstract tags: PluginCoreTagsApi;
|
|
54
71
|
/** I/O — file import, import jobs, and underlay management. See {@linkcode PluginCoreIoApi}. */
|
|
55
72
|
abstract io: PluginCoreIoApi;
|
|
73
|
+
/** Handle lifecycle — release, releaseAll, and mint-recording scopes. See {@linkcode PluginCoreHandlesApi}. */
|
|
74
|
+
abstract handles: PluginCoreHandlesApi;
|
|
56
75
|
/** Proposals — design options: read, create, rename, switch, delete. See {@linkcode PluginCoreProposalsApi}. */
|
|
57
76
|
abstract proposals: PluginCoreProposalsApi;
|
|
58
77
|
constructor();
|
|
@@ -62,12 +81,17 @@ export * from "./geom";
|
|
|
62
81
|
export * from "./history";
|
|
63
82
|
export * from "./units";
|
|
64
83
|
export * from "./zoom";
|
|
84
|
+
export * from "./camera";
|
|
85
|
+
export * from "./user";
|
|
65
86
|
export * from "./project";
|
|
66
87
|
export * from "./comment";
|
|
67
88
|
export * from "./groups";
|
|
68
89
|
export * from "./buildings";
|
|
90
|
+
export * from "./storeys";
|
|
91
|
+
export * from "./mode";
|
|
69
92
|
export * from "./layers";
|
|
70
93
|
export * from "./tags";
|
|
71
94
|
export * from "./io";
|
|
95
|
+
export * from "./handles";
|
|
72
96
|
export * from "./proposals";
|
|
73
97
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,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zB,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,MAAM,CAAA;AACpB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { PluginApiReturn } from "../../../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Serialization format for {@link PluginCoreIoExportApi.model}.
|
|
5
|
+
*
|
|
6
|
+
* `glb` / `obj` serialize in the browser; `fbx` / `3ds` run the same server
|
|
7
|
+
* conversion the app's Export dialog uses and return a **zip** containing the
|
|
8
|
+
* converted file.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ExportModelFormat: z.ZodEnum<{
|
|
11
|
+
fbx: "fbx";
|
|
12
|
+
obj: "obj";
|
|
13
|
+
"3ds": "3ds";
|
|
14
|
+
glb: "glb";
|
|
15
|
+
}>;
|
|
16
|
+
export type ExportModelFormat = z.infer<typeof ExportModelFormat>;
|
|
17
|
+
/**
|
|
18
|
+
* What to export: the whole model (`"scene"`, default) or only the current
|
|
19
|
+
* selection (`"selection"`).
|
|
20
|
+
*/
|
|
21
|
+
export declare const ExportScope: z.ZodEnum<{
|
|
22
|
+
scene: "scene";
|
|
23
|
+
selection: "selection";
|
|
24
|
+
}>;
|
|
25
|
+
export type ExportScope = z.infer<typeof ExportScope>;
|
|
26
|
+
/**
|
|
27
|
+
* A serialized model file returned by {@link PluginCoreIoExportApi.model}.
|
|
28
|
+
*
|
|
29
|
+
* | Property | Type | Description |
|
|
30
|
+
* |---|---|---|
|
|
31
|
+
* | `fileName` | `string` | Suggested file name incl. extension (e.g. `"model.glb"`) |
|
|
32
|
+
* | `mimeType` | `string` | MIME type (`"model/gltf-binary"` for glb, `"text/plain"` for obj) |
|
|
33
|
+
* | `dataBase64` | `string` | The file's bytes, base64-encoded (decode to save/download) |
|
|
34
|
+
*/
|
|
35
|
+
export declare const ExportedFile: z.ZodObject<{
|
|
36
|
+
fileName: z.ZodString;
|
|
37
|
+
mimeType: z.ZodString;
|
|
38
|
+
dataBase64: z.ZodString;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export type ExportedFile = z.infer<typeof ExportedFile>;
|
|
41
|
+
/**
|
|
42
|
+
* Model export — serialize the scene (or selection) to a downloadable 3D file.
|
|
43
|
+
*
|
|
44
|
+
* `core.io.export.model` hands you the file bytes as base64 — no download
|
|
45
|
+
* dialog opens; the plugin decides what to do with the result (save it, POST
|
|
46
|
+
* it, diff it). For a different export intent, see `presentation.export`
|
|
47
|
+
* (Present-mode layout sheets to PDF/PNG/JPG) and `program.spreadsheet.export`
|
|
48
|
+
* (the area-program / takeoff workbook). Four formats:
|
|
49
|
+
*
|
|
50
|
+
* - `"glb"` — binary glTF (`model/gltf-binary`); geometry + materials,
|
|
51
|
+
* serialized in the browser (nothing is uploaded).
|
|
52
|
+
* - `"obj"` — Wavefront OBJ text (`text/plain`); geometry only, serialized in
|
|
53
|
+
* the browser.
|
|
54
|
+
* - `"fbx"` / `"3ds"` — Autodesk FBX / 3D Studio; the scene is uploaded to the
|
|
55
|
+
* same `/exportmodel/` conversion service the app's Export dialog uses, and
|
|
56
|
+
* the call resolves once the converted artifact is fetched back — a **zip**
|
|
57
|
+
* (`application/zip`) containing the `.fbx`/`.3ds` file. Whole-scene only
|
|
58
|
+
* (`scope: "selection"` is rejected). Conversion runs on the server and is
|
|
59
|
+
* bounded by the per-call plugin timeout (60 s) — very large models may
|
|
60
|
+
* exceed it and reject with `TIMEOUT`.
|
|
61
|
+
*
|
|
62
|
+
* For the browser formats, only real model geometry is exported (walls, slabs,
|
|
63
|
+
* roofs, floors, doors, windows, furniture, staircases, masses, ceilings,
|
|
64
|
+
* mullions, beams, columns, terrain); UI helpers, hidden objects, and
|
|
65
|
+
* hidden-bucket objects are excluded — matching the app's GLB export. The
|
|
66
|
+
* server formats convert the full serialized scene (hidden-bucket objects
|
|
67
|
+
* excluded), exactly like the Export dialog. This is a **read**: it never
|
|
68
|
+
* mutates the model.
|
|
69
|
+
*
|
|
70
|
+
* > Server-backed BIM exports (RVT / IFC / DWG) are **not** exposed here — those
|
|
71
|
+
* > run as fire-and-forget Forge jobs that stream a browser download and return
|
|
72
|
+
* > no retrievable bytes. Use the app's Export menu for those.
|
|
73
|
+
*
|
|
74
|
+
* Accessed via `snaptrude.core.io.export`.
|
|
75
|
+
*/
|
|
76
|
+
export declare abstract class PluginCoreIoExportApi {
|
|
77
|
+
constructor();
|
|
78
|
+
/**
|
|
79
|
+
* Export the model to a 3D file and return its bytes as base64.
|
|
80
|
+
*
|
|
81
|
+
* @param format - `"glb"` (binary glTF, geometry + materials), `"obj"`
|
|
82
|
+
* (Wavefront OBJ text, geometry only) — both serialized in the browser —
|
|
83
|
+
* or `"fbx"` / `"3ds"`, converted by the app's export service and returned
|
|
84
|
+
* as a zip containing the converted file.
|
|
85
|
+
* @param scope - `"scene"` (default) for the whole model, or `"selection"` for
|
|
86
|
+
* only the currently selected objects (browser formats only — `"fbx"`/`"3ds"`
|
|
87
|
+
* reject it). An empty selection yields an empty file.
|
|
88
|
+
* @returns an {@linkcode ExportedFile} — `{ fileName, mimeType, dataBase64 }`.
|
|
89
|
+
* @throws if the format is unsupported, `scope: "selection"` is combined with a
|
|
90
|
+
* server format, or the serialization/conversion fails.
|
|
91
|
+
*
|
|
92
|
+
* @examplePrompt Export the model as a GLB
|
|
93
|
+
* @examplePrompt Give me the whole scene as an OBJ file
|
|
94
|
+
* @examplePrompt Export just my selection to GLB
|
|
95
|
+
* @examplePrompt Download the model as an FBX file
|
|
96
|
+
* @examplePrompt Export the scene to 3DS for 3ds Max
|
|
97
|
+
*
|
|
98
|
+
* # Example
|
|
99
|
+
* ```ts
|
|
100
|
+
* const file = await snaptrude.core.io.export.model("glb")
|
|
101
|
+
* // decode base64 → bytes and save/download in the plugin UI
|
|
102
|
+
* const bytes = Uint8Array.from(atob(file.dataBase64), (c) => c.charCodeAt(0))
|
|
103
|
+
* const blob = new Blob([bytes], { type: file.mimeType })
|
|
104
|
+
* // ...offer blob for download as file.fileName
|
|
105
|
+
*
|
|
106
|
+
* // Only the current selection, as OBJ text:
|
|
107
|
+
* const obj = await snaptrude.core.io.export.model("obj", "selection")
|
|
108
|
+
* const text = atob(obj.dataBase64)
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
abstract model(format: ExportModelFormat, scope?: ExportScope): PluginApiReturn<ExportedFile>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Arguments for {@link PluginCoreIoExportApi.model}.
|
|
115
|
+
*
|
|
116
|
+
* | Property | Type | Description |
|
|
117
|
+
* |---|---|---|
|
|
118
|
+
* | `format` | {@link ExportModelFormat} | `"glb"`, `"obj"`, `"fbx"`, or `"3ds"` |
|
|
119
|
+
* | `scope` | {@link ExportScope} | `"scene"` (default) or `"selection"` (browser formats only) |
|
|
120
|
+
*/
|
|
121
|
+
export declare const PluginExportModelArgs: z.ZodObject<{
|
|
122
|
+
format: z.ZodEnum<{
|
|
123
|
+
fbx: "fbx";
|
|
124
|
+
obj: "obj";
|
|
125
|
+
"3ds": "3ds";
|
|
126
|
+
glb: "glb";
|
|
127
|
+
}>;
|
|
128
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
129
|
+
scene: "scene";
|
|
130
|
+
selection: "selection";
|
|
131
|
+
}>>;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
export type PluginExportModelArgs = z.infer<typeof PluginExportModelArgs>;
|
|
134
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/io/export/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;EAAuC,CAAA;AACrE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEjE;;;GAGG;AACH,eAAO,MAAM,WAAW;;;EAAiC,CAAA;AACzD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AAErD;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;;;;iBAIvB,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,8BAAsB,qBAAqB;;IAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;aACa,KAAK,CACnB,MAAM,EAAE,iBAAiB,EACzB,KAAK,CAAC,EAAE,WAAW,GAClB,eAAe,CAAC,YAAY,CAAC;CACjC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;iBAGhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -41,6 +41,9 @@ export declare abstract class PluginCoreIoImportApi {
|
|
|
41
41
|
* Supported formats: PNG, JPG/JPEG, BMP. The image is placed on the target
|
|
42
42
|
* storey's "Image" layer at ~50% opacity by default.
|
|
43
43
|
*
|
|
44
|
+
* To place the image on a **Present-mode sheet** instead of the scene, use
|
|
45
|
+
* `presentation.import.image`.
|
|
46
|
+
*
|
|
44
47
|
* The plane is placed at the storey origin (the engine's import placement);
|
|
45
48
|
* there is no placement parameter — calibrate size with
|
|
46
49
|
* {@link PluginCoreIoUnderlayApi.setScale} after import.
|
|
@@ -262,6 +265,39 @@ export declare abstract class PluginCoreIoImportApi {
|
|
|
262
265
|
* ```
|
|
263
266
|
*/
|
|
264
267
|
abstract terrain(lat: number, lng: number, width: number, length: number, elevation?: boolean, satellite?: boolean, neighborhood?: boolean, parcels?: boolean): PluginApiReturn<TerrainHandle>;
|
|
268
|
+
/**
|
|
269
|
+
* Import an **EPW weather file** into the project's weather catalog.
|
|
270
|
+
*
|
|
271
|
+
* Uploads an EnergyPlus Weather (`.epw`) file and registers it as the
|
|
272
|
+
* project's site weather, returning its catalog `weatherFileId` — the same id
|
|
273
|
+
* {@link PluginAnalysisWeatherApi.getSeries}, `program.site.getWeather`, and a
|
|
274
|
+
* daylight run's provenance report. Uploading a user file makes the site's
|
|
275
|
+
* `selectionMethod` `"user-upload"`, overriding nearest-station resolution.
|
|
276
|
+
*
|
|
277
|
+
* **Mutating**: this writes project state and is subject to the plugin
|
|
278
|
+
* write-gate — it throws when plugin writes are disabled. Unlike the file
|
|
279
|
+
* underlay/model importers it returns no scene handle (a weather file is not
|
|
280
|
+
* a scene object), only the catalog `{ weatherFileId, label }`.
|
|
281
|
+
*
|
|
282
|
+
* @param source - The `.epw` file to import: an `https://` URL or a `data:` URL.
|
|
283
|
+
* @returns A {@linkcode PluginImportEpwResult} — the catalog `weatherFileId`
|
|
284
|
+
* and a human-readable `label` (the station/file name).
|
|
285
|
+
* @throws if writes are disabled, the source can't be loaded, or the file is
|
|
286
|
+
* not a valid EPW.
|
|
287
|
+
*
|
|
288
|
+
* @examplePrompt Import this EPW weather file for the site
|
|
289
|
+
* @examplePrompt Upload a custom weather file for the daylight analysis
|
|
290
|
+
* @examplePrompt Use this .epw as the project's weather source
|
|
291
|
+
*
|
|
292
|
+
* # Example
|
|
293
|
+
* ```ts
|
|
294
|
+
* const { weatherFileId, label } = await snaptrude.core.io.import.epw(
|
|
295
|
+
* "https://example.com/Chicago-OHare.epw",
|
|
296
|
+
* )
|
|
297
|
+
* console.log(`Weather set to ${label} (${weatherFileId})`)
|
|
298
|
+
* ```
|
|
299
|
+
*/
|
|
300
|
+
abstract epw(source: string): PluginApiReturn<PluginImportEpwResult>;
|
|
265
301
|
}
|
|
266
302
|
/**
|
|
267
303
|
* Supported 3D model import formats. `.glb`/`.gltf`/`.ifc`/`.stl` and Rhino/Revit
|
|
@@ -360,7 +396,7 @@ export declare const PluginImportModelArgs: z.ZodObject<{
|
|
|
360
396
|
"3ds": "3ds";
|
|
361
397
|
zip: "zip";
|
|
362
398
|
}>>;
|
|
363
|
-
position: z.ZodOptional<z.ZodPipe<z.
|
|
399
|
+
position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../../..").Handle<"vec3">, string>>>;
|
|
364
400
|
label: z.ZodOptional<z.ZodString>;
|
|
365
401
|
}, z.core.$strip>;
|
|
366
402
|
export type PluginImportModelArgs = z.infer<typeof PluginImportModelArgs>;
|
|
@@ -389,4 +425,29 @@ export declare const PluginImportTerrainArgs: z.ZodObject<{
|
|
|
389
425
|
parcels: z.ZodOptional<z.ZodBoolean>;
|
|
390
426
|
}, z.core.$strip>;
|
|
391
427
|
export type PluginImportTerrainArgs = z.infer<typeof PluginImportTerrainArgs>;
|
|
428
|
+
/**
|
|
429
|
+
* Arguments for {@link PluginCoreIoImportApi.epw}.
|
|
430
|
+
*
|
|
431
|
+
* | Property | Type | Description |
|
|
432
|
+
* |---|---|---|
|
|
433
|
+
* | `source` | `string` | EPW `https://` URL or `data:` URL |
|
|
434
|
+
*/
|
|
435
|
+
export declare const PluginImportEpwArgs: z.ZodObject<{
|
|
436
|
+
source: z.ZodString;
|
|
437
|
+
}, z.core.$strip>;
|
|
438
|
+
export type PluginImportEpwArgs = z.infer<typeof PluginImportEpwArgs>;
|
|
439
|
+
/**
|
|
440
|
+
* Result of {@link PluginCoreIoImportApi.epw} — the imported weather file's
|
|
441
|
+
* catalog entry.
|
|
442
|
+
*
|
|
443
|
+
* | Property | Type | Description |
|
|
444
|
+
* |---|---|---|
|
|
445
|
+
* | `weatherFileId` | `string` | Catalog id (same key as `analysis.weather`'s `weatherFileId`) |
|
|
446
|
+
* | `label` | `string` | Human-readable name (station / file name) |
|
|
447
|
+
*/
|
|
448
|
+
export declare const PluginImportEpwResult: z.ZodObject<{
|
|
449
|
+
weatherFileId: z.ZodString;
|
|
450
|
+
label: z.ZodString;
|
|
451
|
+
}, z.core.$strip>;
|
|
452
|
+
export type PluginImportEpwResult = z.infer<typeof PluginImportEpwResult>;
|
|
392
453
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/io/import/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,UAAU,EACV,cAAc,EACd,aAAa,EACb,eAAe,EACf,eAAe,EAChB,MAAM,qBAAqB,CAAA;AAE5B;;;;GAIG;AACH,eAAO,MAAM,YAAY,aAKrB,CAAA;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,8BAAsB,qBAAqB;;IAGzC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/io/import/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,UAAU,EACV,cAAc,EACd,aAAa,EACb,eAAe,EACf,eAAe,EAChB,MAAM,qBAAqB,CAAA;AAE5B;;;;GAIG;AACH,eAAO,MAAM,YAAY,aAKrB,CAAA;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,8BAAsB,qBAAqB;;IAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;aACa,KAAK,CACnB,MAAM,EAAE,MAAM,EACd,MAAM,CA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