@snaptrude/plugin-core 0.9.4 → 0.9.6
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 +11 -0
- package/api-manifest.json +154 -1
- package/dist/api/core/camera/index.d.ts +16 -0
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/core/io/underlay/index.d.ts +519 -0
- package/dist/api/core/io/underlay/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/storeys/index.d.ts +14 -0
- package/dist/api/core/storeys/index.d.ts.map +1 -1
- 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/query/index.d.ts +127 -0
- package/dist/api/design/query/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/index.cjs +209 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +186 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/core/camera/index.ts +17 -0
- package/src/api/core/io/underlay/index.ts +418 -8
- package/src/api/core/project/index.ts +62 -1
- package/src/api/core/storeys/index.ts +15 -0
- package/src/api/design/furniture/index.ts +34 -0
- package/src/api/design/query/index.ts +99 -0
- package/src/api/design/visibility.ts +34 -0
- package/api-manifest.full.json +0 -8133
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/storeys/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EAEpB,uBAAuB,EACvB,uBAAuB,EACvB,0B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MAAM,GACjB,eAAe,CAAC,0BAA0B,CAAC;IAE9C;;;;;;;;;;;;;;;;;;;;;;OAsBG;aACa,MAAM,CACpB,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,CAAC;IAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;aACa,IAAI,CAClB,SAAS,EAAE,IAAI,GAAG,MAAM,EACxB,OAAO,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,GAC7D,eAAe,CAAC,0BAA0B,CAAC;CAC/C;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B;;;;;;iBAEtC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,2BAA2B,CACnC,CAAA"}
|
|
@@ -2,6 +2,7 @@ import * as z from "zod";
|
|
|
2
2
|
import { PluginApiReturn } from "../../../types";
|
|
3
3
|
import { ComponentHandle } from "../../../handles";
|
|
4
4
|
import { PluginDesignChangeResult } from "../lock";
|
|
5
|
+
import { PluginObjectCatalogGroup } from "../doors";
|
|
5
6
|
/**
|
|
6
7
|
* `snaptrude.design.furniture` — the placeable furniture **catalog** (a library of
|
|
7
8
|
* source items, NOT scene entities) plus dimension reads/edits of PLACED furniture.
|
|
@@ -83,8 +84,40 @@ export declare abstract class PluginDesignFurnitureApi {
|
|
|
83
84
|
* const items = await snaptrude.design.furniture.listCatalog(undefined, first)
|
|
84
85
|
* console.log(first, "→", items.length, "items")
|
|
85
86
|
* ```
|
|
87
|
+
*
|
|
88
|
+
* @deprecated Use `design.furniture.listCatalogGroups` — the same name
|
|
89
|
+
* `design.doors` and `design.windows` use. Still supported.
|
|
86
90
|
*/
|
|
87
91
|
abstract listCategories(): PluginApiReturn<string[]>;
|
|
92
|
+
/**
|
|
93
|
+
* List the furniture catalog's groups. Matches
|
|
94
|
+
* {@linkcode PluginDesignDoorsApi.listCatalogGroups} and
|
|
95
|
+
* {@linkcode PluginDesignWindowsApi.listCatalogGroups}, so all three catalog
|
|
96
|
+
* surfaces are named alike.
|
|
97
|
+
*
|
|
98
|
+
* `source` is `"default"` for the built-in picker groups and `"team"` for the
|
|
99
|
+
* sub-types of THIS project's team library — exactly the split
|
|
100
|
+
* {@linkcode PluginDesignFurnitureApi.listCatalog}'s `source` filter uses, so
|
|
101
|
+
* every `"team"` group is guaranteed to match at least one team item here.
|
|
102
|
+
* For furniture the group token and its label are the same string (the
|
|
103
|
+
* category), so `dbType === label`; `design.doors`/`design.windows` have a
|
|
104
|
+
* distinct engine `dbType`.
|
|
105
|
+
*
|
|
106
|
+
* @returns The catalog groups as {@linkcode PluginObjectCatalogGroup}`[]`
|
|
107
|
+
* (`[]` when empty). Pass a group's `dbType` (=== `label`) to
|
|
108
|
+
* {@linkcode PluginDesignFurnitureApi.listCatalog}'s `category` filter to
|
|
109
|
+
* list its items.
|
|
110
|
+
*
|
|
111
|
+
* @examplePrompt What furniture groups are available?
|
|
112
|
+
* @examplePrompt List the furniture categories in this project
|
|
113
|
+
*
|
|
114
|
+
* # Example
|
|
115
|
+
* ```ts
|
|
116
|
+
* const groups = await snaptrude.design.furniture.listCatalogGroups()
|
|
117
|
+
* for (const g of groups) console.log(g.dbType, g.label, g.source)
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
abstract listCatalogGroups(): PluginApiReturn<PluginObjectCatalogGroup[]>;
|
|
88
121
|
/**
|
|
89
122
|
* List the placeable furniture catalog (team + general libraries),
|
|
90
123
|
* optionally filtered by library `source` and/or `category`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/furniture/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EA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@@ export declare abstract class PluginDesignQueryApi {
|
|
|
1148
1148
|
* ```
|
|
1149
1149
|
*/
|
|
1150
1150
|
abstract getBoundingBox(components: ComponentHandle[]): PluginApiReturn<BBoxComponents | null>;
|
|
1151
|
+
/**
|
|
1152
|
+
* Compute the plan **outline of what is built on a storey** — the union of
|
|
1153
|
+
* the storey's wall (by default) footprints as polygons-with-holes. This is
|
|
1154
|
+
* the footprint-from-the-built-model query: by the time slabs are needed the
|
|
1155
|
+
* walls exist, and the engine's own solids (snapped, joined and mitred at
|
|
1156
|
+
* creation) are the cleanest wall network available — no CAD re-tracing.
|
|
1157
|
+
*
|
|
1158
|
+
* Semantics: the union of wall solids is the wall *material* — a ring-shaped
|
|
1159
|
+
* polygon. The **outer ring is the OUTSIDE wall face** (the slab boundary);
|
|
1160
|
+
* every enclosed region — rooms AND courtyards — appears as a hole. When the
|
|
1161
|
+
* largest hole is ~zero the walls don't enclose anything: the footprint
|
|
1162
|
+
* reports `enclosed: false` (an open wall network), never a garbage outline.
|
|
1163
|
+
* Detached buildings come back as separate footprints.
|
|
1164
|
+
*
|
|
1165
|
+
* A read — nothing is created. Feed a footprint's `outline` to
|
|
1166
|
+
* `core.geom.create.profileFromLinePoints` → `design.create.slab` to build
|
|
1167
|
+
* the floor/roof plate. Coordinates are world-space plan (x, z) in Snaptrude
|
|
1168
|
+
* internal units; `areaSq` values are in squared internal units.
|
|
1169
|
+
*
|
|
1170
|
+
* @param options - storey / included kinds / debris filter; see
|
|
1171
|
+
* {@linkcode PluginStoreyOutlineOptions}.
|
|
1172
|
+
* @returns the storey's footprints (possibly several for detached buildings)
|
|
1173
|
+
* plus pieces discarded by `minArea` (`footprints: []` when nothing matches).
|
|
1174
|
+
*
|
|
1175
|
+
* @examplePrompt What is the building footprint on the ground floor?
|
|
1176
|
+
* @examplePrompt Create a floor slab covering the whole storey
|
|
1177
|
+
* @examplePrompt Get the outline of the walls on storey 1
|
|
1178
|
+
* @examplePrompt How much area do the ground-floor walls enclose?
|
|
1179
|
+
*
|
|
1180
|
+
* # Example
|
|
1181
|
+
* ```ts
|
|
1182
|
+
* const r = await snaptrude.design.query.storeyOutline({ storey: 1 })
|
|
1183
|
+
* const main = r.footprints.find((f) => f.enclosed)
|
|
1184
|
+
* if (main) {
|
|
1185
|
+
* const profile = await snaptrude.core.geom.create.profileFromLinePoints(
|
|
1186
|
+
* main.outline.map((p) => ({ x: p.x, y: 0, z: p.z })),
|
|
1187
|
+
* )
|
|
1188
|
+
* // → design.create.slab with the profile's contour
|
|
1189
|
+
* }
|
|
1190
|
+
* ```
|
|
1191
|
+
*/
|
|
1192
|
+
abstract storeyOutline(options?: PluginStoreyOutlineOptions): PluginApiReturn<PluginStoreyOutlineResult>;
|
|
1151
1193
|
}
|
|
1194
|
+
/** A point in the world-space plan (x, z) projection, Snaptrude internal units. */
|
|
1195
|
+
export declare const PluginOutlinePlanPoint: z.ZodObject<{
|
|
1196
|
+
x: z.ZodNumber;
|
|
1197
|
+
z: z.ZodNumber;
|
|
1198
|
+
}, z.core.$strip>;
|
|
1199
|
+
export type PluginOutlinePlanPoint = z.infer<typeof PluginOutlinePlanPoint>;
|
|
1200
|
+
/**
|
|
1201
|
+
* Options for {@link PluginDesignQueryApi.storeyOutline}.
|
|
1202
|
+
*
|
|
1203
|
+
* | Property | Type | Description |
|
|
1204
|
+
* |---|---|---|
|
|
1205
|
+
* | `storey` | `number`? | Only components on this storey (default: all storeys) |
|
|
1206
|
+
* | `include` | {@link PluginEntityType}`[]`? | Component kinds to union (default `["wall"]`) |
|
|
1207
|
+
* | `minArea` | `number`? | Drop union pieces below this plan area, squared internal units (default `1`) |
|
|
1208
|
+
*/
|
|
1209
|
+
export declare const PluginStoreyOutlineOptions: z.ZodObject<{
|
|
1210
|
+
storey: z.ZodOptional<z.ZodNumber>;
|
|
1211
|
+
include: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1212
|
+
mass: "mass";
|
|
1213
|
+
floor: "floor";
|
|
1214
|
+
wall: "wall";
|
|
1215
|
+
ceiling: "ceiling";
|
|
1216
|
+
door: "door";
|
|
1217
|
+
window: "window";
|
|
1218
|
+
furniture: "furniture";
|
|
1219
|
+
space: "space";
|
|
1220
|
+
slab: "slab";
|
|
1221
|
+
roof: "roof";
|
|
1222
|
+
column: "column";
|
|
1223
|
+
beam: "beam";
|
|
1224
|
+
staircase: "staircase";
|
|
1225
|
+
referenceLine: "referenceLine";
|
|
1226
|
+
curtainWall: "curtainWall";
|
|
1227
|
+
mullion: "mullion";
|
|
1228
|
+
panel: "panel";
|
|
1229
|
+
}>>>;
|
|
1230
|
+
minArea: z.ZodDefault<z.ZodNumber>;
|
|
1231
|
+
}, z.core.$strip>;
|
|
1232
|
+
export type PluginStoreyOutlineOptions = z.input<typeof PluginStoreyOutlineOptions>;
|
|
1233
|
+
/**
|
|
1234
|
+
* One connected footprint from {@link PluginDesignQueryApi.storeyOutline}.
|
|
1235
|
+
* `outline` traces the OUTSIDE wall face; `holes` are the enclosed regions
|
|
1236
|
+
* (rooms and courtyards). `enclosed` is `false` when the wall network does not
|
|
1237
|
+
* close around any region (open C-shape) — don't slab an unenclosed outline
|
|
1238
|
+
* without checking it.
|
|
1239
|
+
*/
|
|
1240
|
+
export declare const PluginStoreyFootprint: z.ZodObject<{
|
|
1241
|
+
outline: z.ZodArray<z.ZodObject<{
|
|
1242
|
+
x: z.ZodNumber;
|
|
1243
|
+
z: z.ZodNumber;
|
|
1244
|
+
}, z.core.$strip>>;
|
|
1245
|
+
holes: z.ZodArray<z.ZodObject<{
|
|
1246
|
+
ring: z.ZodArray<z.ZodObject<{
|
|
1247
|
+
x: z.ZodNumber;
|
|
1248
|
+
z: z.ZodNumber;
|
|
1249
|
+
}, z.core.$strip>>;
|
|
1250
|
+
areaSq: z.ZodNumber;
|
|
1251
|
+
}, z.core.$strip>>;
|
|
1252
|
+
areaSq: z.ZodNumber;
|
|
1253
|
+
enclosed: z.ZodBoolean;
|
|
1254
|
+
}, z.core.$strip>;
|
|
1255
|
+
export type PluginStoreyFootprint = z.infer<typeof PluginStoreyFootprint>;
|
|
1256
|
+
/** Result of {@link PluginDesignQueryApi.storeyOutline}. */
|
|
1257
|
+
export declare const PluginStoreyOutlineResult: z.ZodObject<{
|
|
1258
|
+
footprints: z.ZodArray<z.ZodObject<{
|
|
1259
|
+
outline: z.ZodArray<z.ZodObject<{
|
|
1260
|
+
x: z.ZodNumber;
|
|
1261
|
+
z: z.ZodNumber;
|
|
1262
|
+
}, z.core.$strip>>;
|
|
1263
|
+
holes: z.ZodArray<z.ZodObject<{
|
|
1264
|
+
ring: z.ZodArray<z.ZodObject<{
|
|
1265
|
+
x: z.ZodNumber;
|
|
1266
|
+
z: z.ZodNumber;
|
|
1267
|
+
}, z.core.$strip>>;
|
|
1268
|
+
areaSq: z.ZodNumber;
|
|
1269
|
+
}, z.core.$strip>>;
|
|
1270
|
+
areaSq: z.ZodNumber;
|
|
1271
|
+
enclosed: z.ZodBoolean;
|
|
1272
|
+
}, z.core.$strip>>;
|
|
1273
|
+
discarded: z.ZodArray<z.ZodObject<{
|
|
1274
|
+
areaSq: z.ZodNumber;
|
|
1275
|
+
reason: z.ZodString;
|
|
1276
|
+
}, z.core.$strip>>;
|
|
1277
|
+
}, z.core.$strip>;
|
|
1278
|
+
export type PluginStoreyOutlineResult = z.infer<typeof PluginStoreyOutlineResult>;
|
|
1152
1279
|
export * from "./geometry";
|
|
1153
1280
|
export * from "./spaces";
|
|
1154
1281
|
export * from "./referenceLines";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAQlE,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAA;A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E,0BAA0B,GACnC,eAAe,CAAC,yBAAyB,CAAC;CAC9C;AAGD,mFAAmF;AACnF,eAAO,MAAM,sBAAsB;;;iBAA6C,CAAA;AAChF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;iBAIrC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;iBAUhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,4DAA4D;AAC5D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;iBAKpC,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAA;AAED,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
|
|
@@ -34,6 +34,23 @@ export declare abstract class PluginDesignVisibilityApi {
|
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
36
|
abstract hide(components: ComponentHandle[]): PluginApiReturn<PluginDesignChangeResult>;
|
|
37
|
+
/**
|
|
38
|
+
* Reveal specific hidden components — the inverse of
|
|
39
|
+
* {@linkcode PluginDesignVisibilityApi.hide}. Use
|
|
40
|
+
* {@linkcode PluginDesignVisibilityApi.showAll} to reveal everything.
|
|
41
|
+
*
|
|
42
|
+
* @param components - The components to reveal.
|
|
43
|
+
* @returns A {@linkcode PluginDesignChangeResult} echoing the components shown.
|
|
44
|
+
*
|
|
45
|
+
* @examplePrompt Show these walls again
|
|
46
|
+
* @examplePrompt Unhide the selected furniture
|
|
47
|
+
*
|
|
48
|
+
* # Example
|
|
49
|
+
* ```ts
|
|
50
|
+
* await snaptrude.design.visibility.show([wall])
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
abstract show(components: ComponentHandle[]): PluginApiReturn<PluginDesignChangeResult>;
|
|
37
54
|
/**
|
|
38
55
|
* Isolate entities — hide everything else so only the given entities remain
|
|
39
56
|
* visible (the "Isolate" / solo action). Undoable. Reverse it with
|
|
@@ -84,6 +101,17 @@ export declare const PluginDesignVisibilityHideArgs: z.ZodObject<{
|
|
|
84
101
|
components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
85
102
|
}, z.core.$strip>;
|
|
86
103
|
export type PluginDesignVisibilityHideArgs = z.infer<typeof PluginDesignVisibilityHideArgs>;
|
|
104
|
+
/**
|
|
105
|
+
* Arguments for {@linkcode PluginDesignVisibilityApi.show}.
|
|
106
|
+
*
|
|
107
|
+
* | Property | Type | Description |
|
|
108
|
+
* |---|---|---|
|
|
109
|
+
* | `components` | {@linkcode ComponentHandle}`[]` | Entities to reveal |
|
|
110
|
+
*/
|
|
111
|
+
export declare const PluginDesignVisibilityShowArgs: z.ZodObject<{
|
|
112
|
+
components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
export type PluginDesignVisibilityShowArgs = z.infer<typeof PluginDesignVisibilityShowArgs>;
|
|
87
115
|
/**
|
|
88
116
|
* Arguments for {@linkcode PluginDesignVisibilityApi.isolate}.
|
|
89
117
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visibility.d.ts","sourceRoot":"","sources":["../../../src/api/design/visibility.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,CAA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;;;;;;;;;;;;;OAkBG;aACa,OAAO,CACrB,UAAU,EAAE,eAAe,EAAE,GAC5B,eAAe,CAAC,wBAAwB,CAAC;IAE5C;;;;;;;;;;;;;;;;OAgBG;aACa,OAAO,IAAI,eAAe,CAAC,wBAAwB,CAAC;CACrE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;iBAEzC,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAE3F;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;iBAEzC,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,8BAA8B,CACtC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC;;iBAE5C,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,iCAAiC,CACzC,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -175,6 +175,22 @@ __export(index_exports, {
|
|
|
175
175
|
PluginBuildingType: () => PluginBuildingType,
|
|
176
176
|
PluginBuildingTypeKind: () => PluginBuildingTypeKind,
|
|
177
177
|
PluginBuildingTypeSummary: () => PluginBuildingTypeSummary,
|
|
178
|
+
PluginCadArcClassifyArgs: () => PluginCadArcClassifyArgs,
|
|
179
|
+
PluginCadArcClassifyOptions: () => PluginCadArcClassifyOptions,
|
|
180
|
+
PluginCadArcClassifyResult: () => PluginCadArcClassifyResult,
|
|
181
|
+
PluginCadArcGeometry: () => PluginCadArcGeometry,
|
|
182
|
+
PluginCadCenterline: () => PluginCadCenterline,
|
|
183
|
+
PluginCadCenterlineOptions: () => PluginCadCenterlineOptions,
|
|
184
|
+
PluginCadCenterlinesArgs: () => PluginCadCenterlinesArgs,
|
|
185
|
+
PluginCadCenterlinesResult: () => PluginCadCenterlinesResult,
|
|
186
|
+
PluginCadDoorCandidate: () => PluginCadDoorCandidate,
|
|
187
|
+
PluginCadGeometry: () => PluginCadGeometry,
|
|
188
|
+
PluginCadLayerGeometryArgs: () => PluginCadLayerGeometryArgs,
|
|
189
|
+
PluginCadLayerGeometryOptions: () => PluginCadLayerGeometryOptions,
|
|
190
|
+
PluginCadLayerGeometryPage: () => PluginCadLayerGeometryPage,
|
|
191
|
+
PluginCadLineGeometry: () => PluginCadLineGeometry,
|
|
192
|
+
PluginCadOpening: () => PluginCadOpening,
|
|
193
|
+
PluginCadUnpairedFace: () => PluginCadUnpairedFace,
|
|
178
194
|
PluginCameraApi: () => PluginCameraApi,
|
|
179
195
|
PluginCameraLookFromArgs: () => PluginCameraLookFromArgs,
|
|
180
196
|
PluginCameraMode: () => PluginCameraMode,
|
|
@@ -427,6 +443,7 @@ __export(index_exports, {
|
|
|
427
443
|
PluginDesignVisibilityApi: () => PluginDesignVisibilityApi,
|
|
428
444
|
PluginDesignVisibilityHideArgs: () => PluginDesignVisibilityHideArgs,
|
|
429
445
|
PluginDesignVisibilityIsolateArgs: () => PluginDesignVisibilityIsolateArgs,
|
|
446
|
+
PluginDesignVisibilityShowArgs: () => PluginDesignVisibilityShowArgs,
|
|
430
447
|
PluginDesignWindowArgs: () => PluginDesignWindowArgs,
|
|
431
448
|
PluginDesignWindowExistsArgs: () => PluginDesignWindowExistsArgs,
|
|
432
449
|
PluginDesignWindowGetCatalogItemArgs: () => PluginDesignWindowGetCatalogItemArgs,
|
|
@@ -669,6 +686,7 @@ __export(index_exports, {
|
|
|
669
686
|
PluginNotFoundError: () => PluginNotFoundError,
|
|
670
687
|
PluginObjectCatalogGroup: () => PluginObjectCatalogGroup,
|
|
671
688
|
PluginObjectCatalogItem: () => PluginObjectCatalogItem,
|
|
689
|
+
PluginOutlinePlanPoint: () => PluginOutlinePlanPoint,
|
|
672
690
|
PluginPermissionError: () => PluginPermissionError,
|
|
673
691
|
PluginPlacedView: () => PluginPlacedView,
|
|
674
692
|
PluginPlacedViewCrop: () => PluginPlacedViewCrop,
|
|
@@ -683,6 +701,7 @@ __export(index_exports, {
|
|
|
683
701
|
PluginPlacedViewsSetOpacityArgs: () => PluginPlacedViewsSetOpacityArgs,
|
|
684
702
|
PluginPlacedViewsUpdateFontStylesArgs: () => PluginPlacedViewsUpdateFontStylesArgs,
|
|
685
703
|
PluginPlacedViewsUpdateStylesArgs: () => PluginPlacedViewsUpdateStylesArgs,
|
|
704
|
+
PluginPlanPoint: () => PluginPlanPoint,
|
|
686
705
|
PluginPresentationAIInspirationApi: () => PluginPresentationAIInspirationApi,
|
|
687
706
|
PluginPresentationAnnotateApi: () => PluginPresentationAnnotateApi,
|
|
688
707
|
PluginPresentationAnnotateArrowArgs: () => PluginPresentationAnnotateArrowArgs,
|
|
@@ -901,6 +920,7 @@ __export(index_exports, {
|
|
|
901
920
|
PluginProgramSpreadsheetTransactionArgs: () => PluginProgramSpreadsheetTransactionArgs,
|
|
902
921
|
PluginProgramSpreadsheetTransactionResult: () => PluginProgramSpreadsheetTransactionResult,
|
|
903
922
|
PluginProjectApi: () => PluginProjectApi,
|
|
923
|
+
PluginProjectInfo: () => PluginProjectInfo,
|
|
904
924
|
PluginProjectRef: () => PluginProjectRef,
|
|
905
925
|
PluginProjectSettingsApi: () => PluginProjectSettingsApi,
|
|
906
926
|
PluginQuatApi: () => PluginQuatApi,
|
|
@@ -1006,6 +1026,9 @@ __export(index_exports, {
|
|
|
1006
1026
|
PluginStaircaseParams: () => PluginStaircaseParams,
|
|
1007
1027
|
PluginStaircasePreset: () => PluginStaircasePreset,
|
|
1008
1028
|
PluginStandardView: () => PluginStandardView,
|
|
1029
|
+
PluginStoreyFootprint: () => PluginStoreyFootprint,
|
|
1030
|
+
PluginStoreyOutlineOptions: () => PluginStoreyOutlineOptions,
|
|
1031
|
+
PluginStoreyOutlineResult: () => PluginStoreyOutlineResult,
|
|
1009
1032
|
PluginStoryApi: () => PluginStoryApi,
|
|
1010
1033
|
PluginStoryCreateArgs: () => PluginStoryCreateArgs,
|
|
1011
1034
|
PluginStoryCreateResult: () => PluginStoryCreateResult,
|
|
@@ -1985,6 +2008,14 @@ var PluginGridValueArgs = z21.object({
|
|
|
1985
2008
|
var PluginToleranceArgs = z21.object({
|
|
1986
2009
|
value: z21.number()
|
|
1987
2010
|
});
|
|
2011
|
+
var PluginProjectInfo = z21.object({
|
|
2012
|
+
projectId: z21.string(),
|
|
2013
|
+
name: z21.string().nullable(),
|
|
2014
|
+
units: PUnitType,
|
|
2015
|
+
activeStorey: z21.number(),
|
|
2016
|
+
storeyCount: z21.number(),
|
|
2017
|
+
location: z21.object({ latitude: z21.number(), longitude: z21.number() }).nullable()
|
|
2018
|
+
});
|
|
1988
2019
|
|
|
1989
2020
|
// src/api/core/comment/index.ts
|
|
1990
2021
|
var z22 = __toESM(require("zod"), 1);
|
|
@@ -2528,6 +2559,135 @@ var PluginUnderlaySetOpacityArgs = z32.object({
|
|
|
2528
2559
|
var PluginUnderlayRefArgs = z32.object({
|
|
2529
2560
|
underlay: UnderlayHandle
|
|
2530
2561
|
});
|
|
2562
|
+
var PluginCadLineGeometry = z32.object({
|
|
2563
|
+
type: z32.literal("line"),
|
|
2564
|
+
start: Vec3Components,
|
|
2565
|
+
end: Vec3Components
|
|
2566
|
+
});
|
|
2567
|
+
var PluginCadArcGeometry = z32.object({
|
|
2568
|
+
type: z32.literal("arc"),
|
|
2569
|
+
centre: Vec3Components,
|
|
2570
|
+
axis: Vec3Components,
|
|
2571
|
+
start: Vec3Components,
|
|
2572
|
+
end: Vec3Components
|
|
2573
|
+
});
|
|
2574
|
+
var PluginCadGeometry = z32.discriminatedUnion("type", [
|
|
2575
|
+
PluginCadLineGeometry,
|
|
2576
|
+
PluginCadArcGeometry
|
|
2577
|
+
]);
|
|
2578
|
+
var PluginCadLayerGeometryOptions = z32.object({
|
|
2579
|
+
offset: z32.number().int().nonnegative().default(0),
|
|
2580
|
+
limit: z32.number().int().positive().max(1e3).default(500)
|
|
2581
|
+
});
|
|
2582
|
+
var PluginCadLayerGeometryArgs = z32.object({
|
|
2583
|
+
underlay: UnderlayHandle,
|
|
2584
|
+
layer: z32.string(),
|
|
2585
|
+
options: PluginCadLayerGeometryOptions.default({ offset: 0, limit: 500 })
|
|
2586
|
+
});
|
|
2587
|
+
var PluginCadLayerGeometryPage = z32.object({
|
|
2588
|
+
layer: z32.string(),
|
|
2589
|
+
coordinateSpace: z32.literal("snaptrude-world"),
|
|
2590
|
+
units: z32.literal("snaptrude-internal"),
|
|
2591
|
+
total: z32.number().int().nonnegative(),
|
|
2592
|
+
offset: z32.number().int().nonnegative(),
|
|
2593
|
+
curves: z32.array(PluginCadGeometry)
|
|
2594
|
+
});
|
|
2595
|
+
var PluginPlanPoint = z32.object({ x: z32.number(), z: z32.number() });
|
|
2596
|
+
var PluginCadCenterlineOptions = z32.object({
|
|
2597
|
+
thicknessRange: z32.tuple([z32.number().positive(), z32.number().positive()]).default([0.3, 1.6]),
|
|
2598
|
+
mergeGap: z32.number().nonnegative().default(0.05),
|
|
2599
|
+
minLength: z32.number().nonnegative().default(0.1),
|
|
2600
|
+
parallelTolDeg: z32.number().positive().max(15).default(2),
|
|
2601
|
+
minOverlap: z32.number().min(0).max(1).default(0.6),
|
|
2602
|
+
bridgeOpenings: z32.object({ maxWidth: z32.number().positive() }).nullable().default({ maxWidth: 9.6 })
|
|
2603
|
+
});
|
|
2604
|
+
var PluginCadCenterlinesArgs = z32.object({
|
|
2605
|
+
underlay: UnderlayHandle,
|
|
2606
|
+
layer: z32.string(),
|
|
2607
|
+
options: PluginCadCenterlineOptions.default({
|
|
2608
|
+
thicknessRange: [0.3, 1.6],
|
|
2609
|
+
mergeGap: 0.05,
|
|
2610
|
+
minLength: 0.1,
|
|
2611
|
+
parallelTolDeg: 2,
|
|
2612
|
+
minOverlap: 0.6,
|
|
2613
|
+
bridgeOpenings: { maxWidth: 9.6 }
|
|
2614
|
+
})
|
|
2615
|
+
});
|
|
2616
|
+
var PluginCadOpening = z32.object({
|
|
2617
|
+
start: PluginPlanPoint,
|
|
2618
|
+
end: PluginPlanPoint,
|
|
2619
|
+
width: z32.number()
|
|
2620
|
+
});
|
|
2621
|
+
var PluginCadCenterline = z32.object({
|
|
2622
|
+
start: PluginPlanPoint,
|
|
2623
|
+
end: PluginPlanPoint,
|
|
2624
|
+
thickness: z32.number(),
|
|
2625
|
+
length: z32.number(),
|
|
2626
|
+
sourceFaceCount: z32.number().int().nonnegative(),
|
|
2627
|
+
openings: z32.array(PluginCadOpening)
|
|
2628
|
+
});
|
|
2629
|
+
var PluginCadUnpairedFace = z32.object({
|
|
2630
|
+
start: PluginPlanPoint,
|
|
2631
|
+
end: PluginPlanPoint,
|
|
2632
|
+
length: z32.number()
|
|
2633
|
+
});
|
|
2634
|
+
var PluginCadCenterlinesResult = z32.object({
|
|
2635
|
+
layer: z32.string(),
|
|
2636
|
+
coordinateSpace: z32.literal("snaptrude-world"),
|
|
2637
|
+
units: z32.literal("snaptrude-internal"),
|
|
2638
|
+
centerlines: z32.array(PluginCadCenterline),
|
|
2639
|
+
unpaired: z32.array(PluginCadUnpairedFace),
|
|
2640
|
+
stats: z32.object({
|
|
2641
|
+
curvesRead: z32.number().int().nonnegative(),
|
|
2642
|
+
arcsSkipped: z32.number().int().nonnegative(),
|
|
2643
|
+
fragmentsCulled: z32.number().int().nonnegative(),
|
|
2644
|
+
duplicates: z32.number().int().nonnegative(),
|
|
2645
|
+
faces: z32.number().int().nonnegative()
|
|
2646
|
+
})
|
|
2647
|
+
});
|
|
2648
|
+
var PluginCadArcClassifyOptions = z32.object({
|
|
2649
|
+
radiusRange: z32.tuple([z32.number().positive(), z32.number().positive()]).default([3, 5.4]),
|
|
2650
|
+
sweepRangeDeg: z32.tuple([z32.number().positive(), z32.number().positive()]).default([60, 120]),
|
|
2651
|
+
clusterTol: z32.number().positive().default(0.1)
|
|
2652
|
+
});
|
|
2653
|
+
var PluginCadArcClassifyArgs = z32.object({
|
|
2654
|
+
underlay: UnderlayHandle,
|
|
2655
|
+
layer: z32.string(),
|
|
2656
|
+
options: PluginCadArcClassifyOptions.default({
|
|
2657
|
+
radiusRange: [3, 5.4],
|
|
2658
|
+
sweepRangeDeg: [60, 120],
|
|
2659
|
+
clusterTol: 0.1
|
|
2660
|
+
})
|
|
2661
|
+
});
|
|
2662
|
+
var PluginCadDoorCandidate = z32.object({
|
|
2663
|
+
hinge: PluginPlanPoint,
|
|
2664
|
+
leafWidth: z32.number(),
|
|
2665
|
+
swingDir: PluginPlanPoint,
|
|
2666
|
+
wallDir: PluginPlanPoint,
|
|
2667
|
+
openingWidth: z32.number(),
|
|
2668
|
+
double: z32.boolean()
|
|
2669
|
+
});
|
|
2670
|
+
var PluginCadArcClassifyResult = z32.object({
|
|
2671
|
+
layer: z32.string(),
|
|
2672
|
+
coordinateSpace: z32.literal("snaptrude-world"),
|
|
2673
|
+
units: z32.literal("snaptrude-internal"),
|
|
2674
|
+
doors: z32.array(PluginCadDoorCandidate),
|
|
2675
|
+
rejected: z32.array(
|
|
2676
|
+
z32.object({
|
|
2677
|
+
centre: PluginPlanPoint,
|
|
2678
|
+
radius: z32.number(),
|
|
2679
|
+
sweepDeg: z32.number(),
|
|
2680
|
+
reason: z32.string()
|
|
2681
|
+
})
|
|
2682
|
+
),
|
|
2683
|
+
radiusHistogram: z32.array(
|
|
2684
|
+
z32.object({ radius: z32.number(), count: z32.number().int().positive() })
|
|
2685
|
+
),
|
|
2686
|
+
stats: z32.object({
|
|
2687
|
+
curvesRead: z32.number().int().nonnegative(),
|
|
2688
|
+
arcsConsidered: z32.number().int().nonnegative()
|
|
2689
|
+
})
|
|
2690
|
+
});
|
|
2531
2691
|
|
|
2532
2692
|
// src/api/core/io/terrain/index.ts
|
|
2533
2693
|
var z33 = __toESM(require("zod"), 1);
|
|
@@ -3320,6 +3480,29 @@ var PluginDesignQueryApi = class {
|
|
|
3320
3480
|
constructor() {
|
|
3321
3481
|
}
|
|
3322
3482
|
};
|
|
3483
|
+
var PluginOutlinePlanPoint = z42.object({ x: z42.number(), z: z42.number() });
|
|
3484
|
+
var PluginStoreyOutlineOptions = z42.object({
|
|
3485
|
+
storey: z42.number().int().optional(),
|
|
3486
|
+
include: z42.array(PluginEntityType).nonempty().default(["wall"]),
|
|
3487
|
+
minArea: z42.number().nonnegative().default(1)
|
|
3488
|
+
});
|
|
3489
|
+
var PluginStoreyFootprint = z42.object({
|
|
3490
|
+
outline: z42.array(PluginOutlinePlanPoint),
|
|
3491
|
+
holes: z42.array(
|
|
3492
|
+
z42.object({
|
|
3493
|
+
ring: z42.array(PluginOutlinePlanPoint),
|
|
3494
|
+
areaSq: z42.number().nonnegative()
|
|
3495
|
+
})
|
|
3496
|
+
),
|
|
3497
|
+
areaSq: z42.number().nonnegative(),
|
|
3498
|
+
enclosed: z42.boolean()
|
|
3499
|
+
});
|
|
3500
|
+
var PluginStoreyOutlineResult = z42.object({
|
|
3501
|
+
footprints: z42.array(PluginStoreyFootprint),
|
|
3502
|
+
discarded: z42.array(
|
|
3503
|
+
z42.object({ areaSq: z42.number().nonnegative(), reason: z42.string() })
|
|
3504
|
+
)
|
|
3505
|
+
});
|
|
3323
3506
|
|
|
3324
3507
|
// src/api/design/selection/index.ts
|
|
3325
3508
|
var z43 = __toESM(require("zod"), 1);
|
|
@@ -3794,6 +3977,9 @@ var PluginDesignVisibilityApi = class {
|
|
|
3794
3977
|
var PluginDesignVisibilityHideArgs = z56.object({
|
|
3795
3978
|
components: z56.array(ComponentHandle)
|
|
3796
3979
|
});
|
|
3980
|
+
var PluginDesignVisibilityShowArgs = z56.object({
|
|
3981
|
+
components: z56.array(ComponentHandle)
|
|
3982
|
+
});
|
|
3797
3983
|
var PluginDesignVisibilityIsolateArgs = z56.object({
|
|
3798
3984
|
components: z56.array(ComponentHandle)
|
|
3799
3985
|
});
|
|
@@ -6594,6 +6780,22 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
6594
6780
|
PluginBuildingType,
|
|
6595
6781
|
PluginBuildingTypeKind,
|
|
6596
6782
|
PluginBuildingTypeSummary,
|
|
6783
|
+
PluginCadArcClassifyArgs,
|
|
6784
|
+
PluginCadArcClassifyOptions,
|
|
6785
|
+
PluginCadArcClassifyResult,
|
|
6786
|
+
PluginCadArcGeometry,
|
|
6787
|
+
PluginCadCenterline,
|
|
6788
|
+
PluginCadCenterlineOptions,
|
|
6789
|
+
PluginCadCenterlinesArgs,
|
|
6790
|
+
PluginCadCenterlinesResult,
|
|
6791
|
+
PluginCadDoorCandidate,
|
|
6792
|
+
PluginCadGeometry,
|
|
6793
|
+
PluginCadLayerGeometryArgs,
|
|
6794
|
+
PluginCadLayerGeometryOptions,
|
|
6795
|
+
PluginCadLayerGeometryPage,
|
|
6796
|
+
PluginCadLineGeometry,
|
|
6797
|
+
PluginCadOpening,
|
|
6798
|
+
PluginCadUnpairedFace,
|
|
6597
6799
|
PluginCameraApi,
|
|
6598
6800
|
PluginCameraLookFromArgs,
|
|
6599
6801
|
PluginCameraMode,
|
|
@@ -6846,6 +7048,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
6846
7048
|
PluginDesignVisibilityApi,
|
|
6847
7049
|
PluginDesignVisibilityHideArgs,
|
|
6848
7050
|
PluginDesignVisibilityIsolateArgs,
|
|
7051
|
+
PluginDesignVisibilityShowArgs,
|
|
6849
7052
|
PluginDesignWindowArgs,
|
|
6850
7053
|
PluginDesignWindowExistsArgs,
|
|
6851
7054
|
PluginDesignWindowGetCatalogItemArgs,
|
|
@@ -7088,6 +7291,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7088
7291
|
PluginNotFoundError,
|
|
7089
7292
|
PluginObjectCatalogGroup,
|
|
7090
7293
|
PluginObjectCatalogItem,
|
|
7294
|
+
PluginOutlinePlanPoint,
|
|
7091
7295
|
PluginPermissionError,
|
|
7092
7296
|
PluginPlacedView,
|
|
7093
7297
|
PluginPlacedViewCrop,
|
|
@@ -7102,6 +7306,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7102
7306
|
PluginPlacedViewsSetOpacityArgs,
|
|
7103
7307
|
PluginPlacedViewsUpdateFontStylesArgs,
|
|
7104
7308
|
PluginPlacedViewsUpdateStylesArgs,
|
|
7309
|
+
PluginPlanPoint,
|
|
7105
7310
|
PluginPresentationAIInspirationApi,
|
|
7106
7311
|
PluginPresentationAnnotateApi,
|
|
7107
7312
|
PluginPresentationAnnotateArrowArgs,
|
|
@@ -7320,6 +7525,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7320
7525
|
PluginProgramSpreadsheetTransactionArgs,
|
|
7321
7526
|
PluginProgramSpreadsheetTransactionResult,
|
|
7322
7527
|
PluginProjectApi,
|
|
7528
|
+
PluginProjectInfo,
|
|
7323
7529
|
PluginProjectRef,
|
|
7324
7530
|
PluginProjectSettingsApi,
|
|
7325
7531
|
PluginQuatApi,
|
|
@@ -7425,6 +7631,9 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7425
7631
|
PluginStaircaseParams,
|
|
7426
7632
|
PluginStaircasePreset,
|
|
7427
7633
|
PluginStandardView,
|
|
7634
|
+
PluginStoreyFootprint,
|
|
7635
|
+
PluginStoreyOutlineOptions,
|
|
7636
|
+
PluginStoreyOutlineResult,
|
|
7428
7637
|
PluginStoryApi,
|
|
7429
7638
|
PluginStoryCreateArgs,
|
|
7430
7639
|
PluginStoryCreateResult,
|