@snaptrude/plugin-core 0.7.1 → 0.8.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.
Files changed (130) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/api-manifest.full.json +6442 -0
  3. package/api-manifest.json +2029 -128
  4. package/dist/api/core/camera/index.d.ts +208 -0
  5. package/dist/api/core/camera/index.d.ts.map +1 -0
  6. package/dist/api/core/comment/index.d.ts +105 -2
  7. package/dist/api/core/comment/index.d.ts.map +1 -1
  8. package/dist/api/core/geom/create/index.d.ts +13 -13
  9. package/dist/api/core/geom/delete/index.d.ts +8 -2
  10. package/dist/api/core/geom/delete/index.d.ts.map +1 -1
  11. package/dist/api/core/geom/query/arc.d.ts +5 -5
  12. package/dist/api/core/geom/query/brep.d.ts +18 -18
  13. package/dist/api/core/geom/query/circle.d.ts +18 -18
  14. package/dist/api/core/geom/query/contour.d.ts +20 -20
  15. package/dist/api/core/geom/query/curve.d.ts +49 -49
  16. package/dist/api/core/geom/query/edge.d.ts +5 -5
  17. package/dist/api/core/geom/query/face.d.ts +16 -16
  18. package/dist/api/core/geom/query/halfedge.d.ts +8 -8
  19. package/dist/api/core/geom/query/profile.d.ts +19 -19
  20. package/dist/api/core/geom/query/vertex.d.ts +8 -8
  21. package/dist/api/core/geom/update/contour.d.ts +14 -14
  22. package/dist/api/core/geom/update/curve.d.ts +7 -7
  23. package/dist/api/core/geom/update/profile.d.ts +16 -16
  24. package/dist/api/core/handles/index.d.ts +210 -0
  25. package/dist/api/core/handles/index.d.ts.map +1 -0
  26. package/dist/api/core/index.d.ts +15 -0
  27. package/dist/api/core/index.d.ts.map +1 -1
  28. package/dist/api/core/io/export/index.d.ts +132 -0
  29. package/dist/api/core/io/export/index.d.ts.map +1 -0
  30. package/dist/api/core/io/import/index.d.ts +1 -1
  31. package/dist/api/core/io/index.d.ts +5 -0
  32. package/dist/api/core/io/index.d.ts.map +1 -1
  33. package/dist/api/core/layers.d.ts +7 -7
  34. package/dist/api/core/proposals/index.d.ts +65 -9
  35. package/dist/api/core/proposals/index.d.ts.map +1 -1
  36. package/dist/api/core/user.d.ts +44 -0
  37. package/dist/api/core/user.d.ts.map +1 -0
  38. package/dist/api/design/boolean/index.d.ts +4 -4
  39. package/dist/api/design/create/index.d.ts +139 -44
  40. package/dist/api/design/create/index.d.ts.map +1 -1
  41. package/dist/api/design/doors/index.d.ts +36 -0
  42. package/dist/api/design/doors/index.d.ts.map +1 -1
  43. package/dist/api/design/edit/index.d.ts +1 -1
  44. package/dist/api/design/erase/index.d.ts +2 -2
  45. package/dist/api/design/furniture/index.d.ts +114 -3
  46. package/dist/api/design/furniture/index.d.ts.map +1 -1
  47. package/dist/api/design/index.d.ts +10 -0
  48. package/dist/api/design/index.d.ts.map +1 -1
  49. package/dist/api/design/materials/index.d.ts +111 -14
  50. package/dist/api/design/materials/index.d.ts.map +1 -1
  51. package/dist/api/design/query/index.d.ts +31 -1
  52. package/dist/api/design/query/index.d.ts.map +1 -1
  53. package/dist/api/design/query/spaces.d.ts +5 -5
  54. package/dist/api/design/transform/index.d.ts +83 -14
  55. package/dist/api/design/transform/index.d.ts.map +1 -1
  56. package/dist/api/design/types/index.d.ts +181 -0
  57. package/dist/api/design/types/index.d.ts.map +1 -0
  58. package/dist/api/design/update/index.d.ts +335 -2
  59. package/dist/api/design/update/index.d.ts.map +1 -1
  60. package/dist/api/design/visibility.d.ts +98 -0
  61. package/dist/api/design/visibility.d.ts.map +1 -0
  62. package/dist/api/entity/referenceLine.d.ts +2 -2
  63. package/dist/api/entity/space.d.ts +19 -19
  64. package/dist/api/entity/story.d.ts +128 -15
  65. package/dist/api/entity/story.d.ts.map +1 -1
  66. package/dist/api/presentation/annotate.d.ts +448 -0
  67. package/dist/api/presentation/annotate.d.ts.map +1 -0
  68. package/dist/api/presentation/diagrams.d.ts +49 -8
  69. package/dist/api/presentation/diagrams.d.ts.map +1 -1
  70. package/dist/api/presentation/export.d.ts +104 -0
  71. package/dist/api/presentation/export.d.ts.map +1 -0
  72. package/dist/api/presentation/index.d.ts +38 -0
  73. package/dist/api/presentation/index.d.ts.map +1 -1
  74. package/dist/api/presentation/sheets.d.ts +410 -13
  75. package/dist/api/presentation/sheets.d.ts.map +1 -1
  76. package/dist/api/presentation/views.d.ts +165 -10
  77. package/dist/api/presentation/views.d.ts.map +1 -1
  78. package/dist/api/program/areas.d.ts +63 -3
  79. package/dist/api/program/areas.d.ts.map +1 -1
  80. package/dist/api/program/cores.d.ts +3 -99
  81. package/dist/api/program/cores.d.ts.map +1 -1
  82. package/dist/api/program/index.d.ts +2 -2
  83. package/dist/api/program/index.d.ts.map +1 -1
  84. package/dist/api/program/layout.d.ts +172 -12
  85. package/dist/api/program/layout.d.ts.map +1 -1
  86. package/dist/api/program/site.d.ts +11 -8
  87. package/dist/api/program/site.d.ts.map +1 -1
  88. package/dist/api/program/spreadsheet.d.ts +105 -13
  89. package/dist/api/program/spreadsheet.d.ts.map +1 -1
  90. package/dist/handles.d.ts +64 -25
  91. package/dist/handles.d.ts.map +1 -1
  92. package/dist/index.cjs +2316 -1644
  93. package/dist/index.cjs.map +1 -1
  94. package/dist/index.js +2224 -1639
  95. package/dist/index.js.map +1 -1
  96. package/package.json +1 -1
  97. package/src/api/core/camera/index.ts +212 -0
  98. package/src/api/core/comment/index.ts +120 -2
  99. package/src/api/core/geom/delete/index.ts +6 -0
  100. package/src/api/core/handles/index.ts +233 -0
  101. package/src/api/core/index.ts +15 -0
  102. package/src/api/core/io/export/index.ts +124 -0
  103. package/src/api/core/io/index.ts +5 -0
  104. package/src/api/core/proposals/index.ts +71 -11
  105. package/src/api/core/user.ts +46 -0
  106. package/src/api/design/create/index.ts +166 -36
  107. package/src/api/design/doors/index.ts +40 -0
  108. package/src/api/design/furniture/index.ts +127 -3
  109. package/src/api/design/index.ts +10 -0
  110. package/src/api/design/materials/index.ts +157 -30
  111. package/src/api/design/query/index.ts +33 -7
  112. package/src/api/design/transform/index.ts +89 -12
  113. package/src/api/design/types/index.ts +156 -0
  114. package/src/api/design/update/index.ts +402 -6
  115. package/src/api/design/visibility.ts +109 -0
  116. package/src/api/entity/story.ts +141 -15
  117. package/src/api/presentation/annotate.ts +360 -0
  118. package/src/api/presentation/diagrams.ts +53 -8
  119. package/src/api/presentation/export.ts +104 -0
  120. package/src/api/presentation/index.ts +46 -0
  121. package/src/api/presentation/sheets.ts +346 -13
  122. package/src/api/presentation/views.ts +164 -12
  123. package/src/api/program/areas.ts +57 -6
  124. package/src/api/program/cores.ts +3 -91
  125. package/src/api/program/index.ts +2 -2
  126. package/src/api/program/layout.ts +182 -12
  127. package/src/api/program/site.ts +11 -8
  128. package/src/api/program/spreadsheet.ts +125 -29
  129. package/src/handles.ts +77 -13
  130. package/tsconfig.json +7 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/proposals/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;AAElD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,8BAAsB,sBAAsB;;IAG1C;;;;;;;;;;;;;;;OAeG;aACa,IAAI,IAAI,eAAe,CAAC,6BAA6B,CAAC;IAEtE;;;;;;;;;;;;;;;;OAgBG;aACa,GAAG,CACjB,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,CAAC;IAEhD;;;;;;;;;;;;;;;;;;;;OAoBG;aACa,SAAS,IAAI,eAAe,CAAC,kCAAkC,CAAC;IAEhF;;;;;;;;;;;;;;;;;;;;OAoBG;aACa,gBAAgB,CAC9B,SAAS,EAAE,eAAe,GACzB,eAAe,CAAC,yCAAyC,CAAC;IAE7D;;;;;;;;;;;;;;;;;OAiBG;aACa,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,eAAe,CA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AAC,KAAK,CACjD,OAAO,6BAA6B,CACrC,CAAA;AAED,gFAAgF;AAChF,eAAO,MAAM,+BAA+B;;;;;;;;iBAAwB,CAAA;AACpE,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC;;iBAE3C,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,gCAAgC,CACxC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,kCAAkC;;iBAE7C,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,kCAAkC,CAC1C,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,6BAA6B;;;;iBAevC,CAAA;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,6BAA6B,CACrC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B;;iBAE1C,CAAA;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAA"}
@@ -0,0 +1,44 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../types";
3
+ /**
4
+ * User locale.
5
+ *
6
+ * Read the viewer's timezone and language — for date/number formatting and
7
+ * localized labels. This is locale only: NO precise geolocation, no IP, no
8
+ * account identity. Accessed via `snaptrude.core.user`.
9
+ */
10
+ export declare abstract class PluginUserApi {
11
+ constructor();
12
+ /**
13
+ * Get the viewer's locale: IANA timezone and BCP-47 language tag, resolved
14
+ * from the browser (`Intl.DateTimeFormat().resolvedOptions().timeZone` and
15
+ * `navigator.language`). Locale only — no precise location.
16
+ *
17
+ * @returns `{ timezone, language }` — e.g. `{ timezone: "Asia/Kolkata", language: "en-US" }`.
18
+ *
19
+ * @examplePrompt What timezone is the user in?
20
+ * @examplePrompt Get the viewer's language for localized labels
21
+ * @examplePrompt Format the report date in the user's local timezone
22
+ * @examplePrompt Which locale should I use for this plugin's UI?
23
+ *
24
+ * # Example
25
+ * ```ts
26
+ * const { timezone, language } = await snaptrude.core.user.getLocale()
27
+ * ```
28
+ */
29
+ abstract getLocale(): PluginApiReturn<PluginUserLocale>;
30
+ }
31
+ /**
32
+ * The viewer's locale.
33
+ *
34
+ * | Property | Type | Description |
35
+ * |---|---|---|
36
+ * | `timezone` | `string` | IANA timezone id (e.g. `"Asia/Kolkata"`) |
37
+ * | `language` | `string` | BCP-47 language tag (e.g. `"en-US"`) |
38
+ */
39
+ export declare const PluginUserLocale: z.ZodObject<{
40
+ timezone: z.ZodString;
41
+ language: z.ZodString;
42
+ }, z.core.$strip>;
43
+ export type PluginUserLocale = z.infer<typeof PluginUserLocale>;
44
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/api/core/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;GAMG;AACH,8BAAsB,aAAa;;IAGjC;;;;;;;;;;;;;;;;OAgBG;aACa,SAAS,IAAI,eAAe,CAAC,gBAAgB,CAAC;CAC/D;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
@@ -115,7 +115,7 @@ export declare abstract class PluginDesignBooleanApi {
115
115
  * | `offset` | {@linkcode Vec3Handle} | Translation added to the created result mass(es) (default: none) |
116
116
  */
117
117
  export declare const BooleanOptions: z.ZodObject<{
118
- offset: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
118
+ offset: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
119
119
  }, z.core.$strip>;
120
120
  export type BooleanOptions = z.infer<typeof BooleanOptions>;
121
121
  /**
@@ -129,7 +129,7 @@ export type BooleanOptions = z.infer<typeof BooleanOptions>;
129
129
  export declare const PluginDesignBooleanUnionArgs: z.ZodObject<{
130
130
  components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
131
131
  options: z.ZodOptional<z.ZodObject<{
132
- offset: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
132
+ offset: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
133
133
  }, z.core.$strip>>;
134
134
  }, z.core.$strip>;
135
135
  export type PluginDesignBooleanUnionArgs = z.infer<typeof PluginDesignBooleanUnionArgs>;
@@ -146,7 +146,7 @@ export declare const PluginDesignBooleanSubtractArgs: z.ZodObject<{
146
146
  target: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
147
147
  tools: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
148
148
  options: z.ZodOptional<z.ZodObject<{
149
- offset: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
149
+ offset: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
150
150
  }, z.core.$strip>>;
151
151
  }, z.core.$strip>;
152
152
  export type PluginDesignBooleanSubtractArgs = z.infer<typeof PluginDesignBooleanSubtractArgs>;
@@ -161,7 +161,7 @@ export type PluginDesignBooleanSubtractArgs = z.infer<typeof PluginDesignBoolean
161
161
  export declare const PluginDesignBooleanIntersectArgs: z.ZodObject<{
162
162
  components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
163
163
  options: z.ZodOptional<z.ZodObject<{
164
- offset: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
164
+ offset: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
165
165
  }, z.core.$strip>>;
166
166
  }, z.core.$strip>;
167
167
  export type PluginDesignBooleanIntersectArgs = z.infer<typeof PluginDesignBooleanIntersectArgs>;
@@ -39,14 +39,21 @@ export declare abstract class PluginDesignCreateApi {
39
39
  * @param spaceType - Space-type classification (default `Room`)
40
40
  * @param massType - Mass-type classification (default `Room`)
41
41
  * @param departmentId - Department assignment (default department)
42
+ * @param storey - Target storey number to place the space on — the same integer
43
+ * `entity.story` uses (`1` ground, `2` first floor, `-1` basement). Default:
44
+ * the active storey. Folds an `entity.story.setActive` call into the create,
45
+ * placing the space at that storey's floor elevation (any `position` offset is
46
+ * applied on top). Throws if no storey has that value.
42
47
  * @returns the {@linkcode ComponentHandle} of the created space
43
- * @throws if the contour is invalid or the height is not positive
48
+ * @throws if the contour is invalid, the height is not positive, or the target
49
+ * storey does not exist
44
50
  *
45
51
  * @examplePrompt Create a room called Living Room that's 3m tall from this outline
46
52
  * @examplePrompt Add a new space on the current storey using this footprint
47
53
  * @examplePrompt Make a bedroom here and assign it to the Residential department
48
54
  * @examplePrompt Extrude this closed outline into a 10 foot high room
49
55
  * @examplePrompt Can you create a Kitchen space from the sketch I just drew?
56
+ * @examplePrompt Create a bedroom on the second floor from this outline
50
57
  *
51
58
  * # Example
52
59
  * ```ts
@@ -59,9 +66,13 @@ export declare abstract class PluginDesignCreateApi {
59
66
  * ])
60
67
  * const contour = await snaptrude.core.geom.create.contourFromProfile(outer)
61
68
  * const space = await snaptrude.design.create.space(contour, 3, "Living")
69
+ * // …place one directly on the second floor (no setActive dance):
70
+ * const upstairs = await snaptrude.design.create.space(
71
+ * contour, 3, "Bedroom", undefined, undefined, undefined, undefined, 2,
72
+ * )
62
73
  * ```
63
74
  */
64
- abstract space(contour: ContourHandle, height: number, label?: string, position?: Vec3Handle, spaceType?: PluginSpaceType, massType?: PluginMassType, departmentId?: PluginDepartmentId): PluginApiReturn<ComponentHandle>;
75
+ abstract space(contour: ContourHandle, height: number, label?: string, position?: Vec3Handle, spaceType?: PluginSpaceType, massType?: PluginMassType, departmentId?: PluginDepartmentId, storey?: number): PluginApiReturn<ComponentHandle>;
65
76
  /**
66
77
  * Create a **mass** — a generic extruded prism (default `massType` "Generic mass").
67
78
  * Same footprint-extrude path as {@linkcode PluginDesignCreateApi.space}.
@@ -182,14 +193,17 @@ export declare abstract class PluginDesignCreateApi {
182
193
  abstract ceiling(contour: ContourHandle, thickness: number, heightFromFloor?: number): PluginApiReturn<ComponentHandle>;
183
194
  /**
184
195
  * Create a **column** by extruding a cross-section contour upward by `height`
185
- * from a base `position`.
196
+ * from a base `position`. The column is built to EXACTLY `height` — unlike
197
+ * the interactive draw tool, no slab-thickness deduction is applied.
186
198
  *
187
199
  * @param position - Base point
188
200
  * @param crossSection - Column cross-section footprint
189
- * @param height - Column height (> 0)
190
- * @param directionUp - Up axis (default world up)
201
+ * @param height - Column height (> 0), built exactly
202
+ * @param directionUp - Up axis (default world up); normalized by the host, so
203
+ * magnitude does not scale the height
191
204
  * @returns the {@linkcode ComponentHandle} of the created column
192
- * @throws if the cross-section is invalid or the height is not positive
205
+ * @throws if the cross-section is invalid, the height is not positive, or the
206
+ * direction is zero / lies in the cross-section plane (degenerate extrusion)
193
207
  *
194
208
  * @examplePrompt Add a 3m tall column at this point
195
209
  * @examplePrompt Place a column at the grid intersection
@@ -207,13 +221,30 @@ export declare abstract class PluginDesignCreateApi {
207
221
  abstract column(position: Vec3Handle, crossSection: ContourHandle, height: number, directionUp?: Vec3Handle): PluginApiReturn<ComponentHandle>;
208
222
  /**
209
223
  * Create a **beam** by extruding a cross-section contour along `direction` by
210
- * `length`.
224
+ * `length`. Matches the Snaptrude beam tool's semantics: the beam body hangs
225
+ * BELOW the plane the section is authored on.
226
+ *
227
+ * For a **horizontal** `direction` (the common spanning beam), author the
228
+ * section as an axis-aligned plan rectangle: its X extent is the beam's
229
+ * width, its Z extent is the beam's depth (the vertical drop). The beam runs
230
+ * `length` along `direction` starting at the section's centre, hanging below
231
+ * the authoring plane by its depth — exactly like an interactively drawn
232
+ * beam. Only axis-aligned rectangular sections are supported horizontally.
233
+ *
234
+ * For a **vertical** `direction` (the default), the section itself is
235
+ * extruded by `length`, again hanging below the authoring plane. Diagonal
236
+ * directions are rejected.
211
237
  *
212
- * @param section - Beam cross-section footprint
213
- * @param length - Beam length along `direction` (> 0)
214
- * @param direction - Extrusion axis (default world up)
238
+ * @param section - Beam cross-section, an axis-aligned rectangle in plan
239
+ * (X extent = width, Z extent = depth)
240
+ * @param length - Beam length along `direction` (> 0); direction is
241
+ * normalized by the host, so magnitude does not scale the length
242
+ * @param direction - Beam axis: horizontal for a spanning beam, or vertical
243
+ * (default world up). Diagonal directions throw.
215
244
  * @returns the {@linkcode ComponentHandle} of the created beam
216
- * @throws if the section is invalid or the length is not positive
245
+ * @throws if the section is invalid (horizontal beams: not an axis-aligned
246
+ * plan rectangle), the length is not positive, or the direction is zero or
247
+ * diagonal
217
248
  *
218
249
  * @examplePrompt Add a beam spanning 6 metres between the columns
219
250
  * @examplePrompt Create a horizontal beam along the X axis
@@ -235,15 +266,25 @@ export declare abstract class PluginDesignCreateApi {
235
266
  *
236
267
  * @param profile - Ordered curve chain (wall centerlines)
237
268
  * @param height - Wall height (default engine default)
238
- * @param thickness - Wall thickness (default engine default)
269
+ * @param thickness - Wall thickness (default: the `wallType`'s total layer
270
+ * thickness when `wallType` is given, else the engine default)
271
+ * @param wallType - Wall type to build with — the same searchable list the
272
+ * Draw tab's Wall Type dropdown offers. Pass a name from
273
+ * `design.types.list("wall")` (the summary's `label`, or its `"wall:…"` id).
274
+ * Drives the wall's construction layers and default material, and — when
275
+ * `thickness` is omitted — its total layer thickness. Default: the engine's
276
+ * generic wall.
239
277
  * @returns a {@linkcode ComponentHandle}`[]` (one per wall), in profile order
240
- * @throws if the profile is empty or wall creation fails
278
+ * @throws if the profile is empty, `wallType` names no wall type in the
279
+ * project, or wall creation fails
241
280
  *
242
281
  * @examplePrompt Draw walls along this centerline
243
282
  * @examplePrompt Create 3m high, 200mm thick walls from these points
244
283
  * @examplePrompt Build a wall run around the room outline
245
284
  * @examplePrompt Turn this polyline sketch into walls
246
285
  * @examplePrompt Add walls with mitred corners along the path
286
+ * @examplePrompt Draw brick walls with plaster along this outline
287
+ * @examplePrompt Build the perimeter in exposed concrete walls
247
288
  *
248
289
  * # Example
249
290
  * ```ts
@@ -254,9 +295,14 @@ export declare abstract class PluginDesignCreateApi {
254
295
  * await v.new(8, 0, 6),
255
296
  * ])
256
297
  * const walls = await snaptrude.design.create.walls(centerlines, 3, 0.2)
298
+ * // …built as a specific wall type (layers/material/thickness from the type):
299
+ * const [brick] = await snaptrude.design.types.list("wall")
300
+ * const brickWalls = await snaptrude.design.create.walls(
301
+ * centerlines, 3, undefined, brick.label,
302
+ * )
257
303
  * ```
258
304
  */
259
- abstract walls(profile: ProfileHandle, height?: number, thickness?: number): PluginApiReturn<ComponentHandle[]>;
305
+ abstract walls(profile: ProfileHandle, height?: number, thickness?: number, wallType?: string): PluginApiReturn<ComponentHandle[]>;
260
306
  /**
261
307
  * Create a **staircase** from a parametric preset, placed at a point.
262
308
  *
@@ -331,14 +377,19 @@ export declare abstract class PluginDesignCreateApi {
331
377
  * with {@linkcode PluginDesignFurnitureApi.listCatalog}. Placement is asynchronous
332
378
  * (the source mesh is fetched if not cached) and creates one undo entry.
333
379
  *
334
- * Placed at the item's default rotation; rotate afterward via `design.transform.rotate`
335
- * on the returned handle (planned namespace).
380
+ * Placed at the item's default rotation unless `angleInDegrees` is given, which
381
+ * rotates it about the vertical axis at creation time (baked into the same undo
382
+ * entry). To rotate an existing instance instead, use `design.transform.rotate`.
336
383
  *
337
384
  * @param catalogId - Library id: team `_id` or general `fullName`
338
385
  * @param position - Absolute world placement point
339
386
  * @param options - Optional placement options: `label` — instance name
340
387
  * (default auto `${name}Ins${n}`); `createNewSourceMesh` — emit a
341
388
  * source-mesh creation command (default `true`)
389
+ * @param angleInDegrees - Optional signed rotation about the vertical axis, in
390
+ * degrees (same convention as {@linkcode PluginDesignTransformApi.rotate}).
391
+ * Applied at creation time so it is part of the placement's single undo entry.
392
+ * Default: the item's own (unrotated) orientation.
342
393
  * @returns the {@linkcode ComponentHandle} of the placed furniture instance
343
394
  * @throws if the catalog id is unknown, the source mesh fails to load, or placement fails
344
395
  *
@@ -347,6 +398,7 @@ export declare abstract class PluginDesignCreateApi {
347
398
  * @examplePrompt Drop a desk into the scene at 3, 0, 5
348
399
  * @examplePrompt Insert the uploaded bed model in the bedroom
349
400
  * @examplePrompt Put a table from my project library here and name it Table-01
401
+ * @examplePrompt Place a chair here rotated 90 degrees
350
402
  *
351
403
  * # Example
352
404
  * ```ts
@@ -355,12 +407,19 @@ export declare abstract class PluginDesignCreateApi {
355
407
  * await snaptrude.core.math.vec3.new(3, 0, 5),
356
408
  * { label: "Chair-01" },
357
409
  * )
410
+ * // …placed already turned 90° about the vertical axis:
411
+ * const turned = await snaptrude.design.create.furniture(
412
+ * "6620f1a…",
413
+ * await snaptrude.core.math.vec3.new(3, 0, 5),
414
+ * undefined,
415
+ * 90,
416
+ * )
358
417
  * ```
359
418
  */
360
419
  abstract furniture(catalogId: string, position: Vec3Handle, options?: {
361
420
  label?: string;
362
421
  createNewSourceMesh?: boolean;
363
- }): PluginApiReturn<ComponentHandle>;
422
+ }, angleInDegrees?: number): PluginApiReturn<ComponentHandle>;
364
423
  /**
365
424
  * Place a **door** from the catalog into a host wall.
366
425
  *
@@ -375,6 +434,11 @@ export declare abstract class PluginDesignCreateApi {
375
434
  * @param hostWall - The wall to host the door
376
435
  * @param position - World point projected onto the wall to locate the opening
377
436
  * @param options - Optional placement options: `label` — instance name
437
+ * @param facing - World point selecting which side of the wall the door faces
438
+ * (the room it opens into) — the same convention as approaching the wall
439
+ * from that side with the cursor in the interactive tool. Any point clearly
440
+ * on that side works (e.g. the room's center). Default: the engine picks a
441
+ * side (nondeterministic when `position` sits on the wall centerline).
378
442
  * @returns the {@linkcode ComponentHandle} of the placed door
379
443
  * @throws if the catalog id is unknown, the host is not a wall, the source
380
444
  * mesh fails to load, or the projected point falls **outside** the host wall
@@ -384,6 +448,7 @@ export declare abstract class PluginDesignCreateApi {
384
448
  * @examplePrompt Put a door from the catalog at this point on the wall
385
449
  * @examplePrompt Insert the entrance door into this wall
386
450
  * @examplePrompt Add a door to the wall and call it Entry-01
451
+ * @examplePrompt Add a door that opens into the living room
387
452
  *
388
453
  * # Example
389
454
  * ```ts
@@ -395,11 +460,19 @@ export declare abstract class PluginDesignCreateApi {
395
460
  * await snaptrude.core.math.vec3.new(3, 0, 5),
396
461
  * { label: "Entry-01" },
397
462
  * )
463
+ * // …facing a specific side of the wall (pass a point inside that room):
464
+ * const intoKitchen = await snaptrude.design.create.door(
465
+ * entry.id,
466
+ * wall,
467
+ * await snaptrude.core.math.vec3.new(3, 0, 5),
468
+ * undefined,
469
+ * await snaptrude.core.math.vec3.new(3, 0, 9),
470
+ * )
398
471
  * ```
399
472
  */
400
473
  abstract door(catalogId: string, hostWall: ComponentHandle, position: Vec3Handle, options?: {
401
474
  label?: string;
402
- }): PluginApiReturn<ComponentHandle>;
475
+ }, facing?: Vec3Handle): PluginApiReturn<ComponentHandle>;
403
476
  /**
404
477
  * Place a **window** from the catalog into a host wall.
405
478
  *
@@ -414,6 +487,10 @@ export declare abstract class PluginDesignCreateApi {
414
487
  * @param hostWall - The wall to host the window
415
488
  * @param position - World point projected onto the wall to locate the opening
416
489
  * @param options - Optional placement options: `label` — instance name
490
+ * @param facing - World point selecting which side of the wall the window
491
+ * faces (matters for asymmetric windows, e.g. casement swing) — same
492
+ * convention as {@linkcode PluginDesignCreateApi.door}. Default: the engine
493
+ * picks a side (nondeterministic when `position` sits on the centerline).
417
494
  * @returns the {@linkcode ComponentHandle} of the placed window
418
495
  * @throws if the catalog id is unknown, the host is not a wall, the source
419
496
  * mesh fails to load, or the projected point falls **outside** the host wall
@@ -423,6 +500,7 @@ export declare abstract class PluginDesignCreateApi {
423
500
  * @examplePrompt Put a window from the catalog at this point on the wall
424
501
  * @examplePrompt Insert a window into the living room wall
425
502
  * @examplePrompt Add a window to the wall and name it Win-01
503
+ * @examplePrompt Add a casement window opening toward the garden side
426
504
  *
427
505
  * # Example
428
506
  * ```ts
@@ -438,7 +516,7 @@ export declare abstract class PluginDesignCreateApi {
438
516
  */
439
517
  abstract window(catalogId: string, hostWall: ComponentHandle, position: Vec3Handle, options?: {
440
518
  label?: string;
441
- }): PluginApiReturn<ComponentHandle>;
519
+ }, facing?: Vec3Handle): PluginApiReturn<ComponentHandle>;
442
520
  /**
443
521
  * Place a **smart layout** — clone an in-scene template cluster (walls,
444
522
  * furniture, doors, windows, floors) into one or more target ROOM/DEPARTMENT
@@ -527,15 +605,20 @@ export declare abstract class PluginDesignCreateApi {
527
605
  * Migrated from the removed `entity.space.bulkCreate`. Each item extrudes a contour
528
606
  * footprint up `height`. Validate-all-or-throw; one command. For a rectangular
529
607
  * (box) space, build the footprint with `core.geom.create.profileRect` →
530
- * `contourFromProfile`, then pass it as an item.
608
+ * `contourFromProfile`, then pass it as an item. Each item may carry its own
609
+ * `storey` (see {@linkcode PluginCreateSpaceItem}) so a single call can populate
610
+ * several floors at once.
531
611
  *
532
612
  * @param items - One {@linkcode PluginCreateSpaceItem} per space to create (≥1)
533
613
  * @returns the created spaces as {@linkcode ComponentHandle}`[]`, in input order
614
+ * @throws if any item's contour is invalid, its height is not positive, or its
615
+ * target `storey` does not exist (all-or-nothing — nothing is created)
534
616
  *
535
617
  * @examplePrompt Create several rooms at once from these footprints
536
618
  * @examplePrompt Generate all the bedrooms in one operation
537
619
  * @examplePrompt Bulk create the spaces for this floor plan
538
620
  * @examplePrompt Add three rooms with different heights in a single undo step
621
+ * @examplePrompt Create one room on the ground floor and one on the first floor
539
622
  *
540
623
  * # Example
541
624
  * ```ts
@@ -617,12 +700,13 @@ export type PluginStaircasePreset = z.infer<typeof PluginStaircasePreset>;
617
700
  * | `spaceType` | {@linkcode PluginSpaceType}? | Space-type classification (default `Room`) |
618
701
  * | `massType` | {@linkcode PluginMassType}? | Mass-type classification (default `Room`) |
619
702
  * | `departmentId` | {@linkcode PluginDepartmentId}? | Department assignment (default department) |
703
+ * | `storey` | `number`? (int) | Target storey number (default active storey) |
620
704
  */
621
705
  export declare const PluginDesignCreateSpaceArgs: z.ZodObject<{
622
- contour: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
706
+ contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
623
707
  height: z.ZodNumber;
624
708
  label: z.ZodOptional<z.ZodString>;
625
- position: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
709
+ position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
626
710
  spaceType: z.ZodOptional<z.ZodEnum<{
627
711
  Room: "Room";
628
712
  "Program Block": "Program Block";
@@ -655,6 +739,7 @@ export declare const PluginDesignCreateSpaceArgs: z.ZodObject<{
655
739
  ENVELOPE: "ENVELOPE";
656
740
  CORE: "CORE";
657
741
  }>, z.ZodUUID]>>;
742
+ storey: z.ZodOptional<z.ZodNumber>;
658
743
  }, z.core.$strip>;
659
744
  export type PluginDesignCreateSpaceArgs = z.infer<typeof PluginDesignCreateSpaceArgs>;
660
745
  /**
@@ -669,10 +754,10 @@ export type PluginDesignCreateSpaceArgs = z.infer<typeof PluginDesignCreateSpace
669
754
  * | `massType` | {@linkcode PluginMassType}? | Mass type (default `Generic mass`) |
670
755
  */
671
756
  export declare const PluginDesignCreateMassArgs: z.ZodObject<{
672
- contour: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
757
+ contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
673
758
  height: z.ZodNumber;
674
759
  label: z.ZodOptional<z.ZodString>;
675
- position: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
760
+ position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
676
761
  massType: z.ZodOptional<z.ZodEnum<{
677
762
  Room: "Room";
678
763
  Plinth: "Plinth";
@@ -700,7 +785,7 @@ export type PluginDesignCreateMassArgs = z.infer<typeof PluginDesignCreateMassAr
700
785
  * | `slabType` | {@linkcode PluginSlabType}? | Slab-type classification |
701
786
  */
702
787
  export declare const PluginDesignCreateSlabArgs: z.ZodObject<{
703
- contour: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
788
+ contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
704
789
  thickness: z.ZodNumber;
705
790
  direction: z.ZodOptional<z.ZodEnum<{
706
791
  up: "up";
@@ -724,9 +809,9 @@ export type PluginDesignCreateSlabArgs = z.infer<typeof PluginDesignCreateSlabAr
724
809
  * | `position` | {@linkcode Vec3Handle}? | Offset from origin |
725
810
  */
726
811
  export declare const PluginDesignCreateFloorArgs: z.ZodObject<{
727
- contour: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
812
+ contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
728
813
  thickness: z.ZodNumber;
729
- position: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
814
+ position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
730
815
  }, z.core.$strip>;
731
816
  export type PluginDesignCreateFloorArgs = z.infer<typeof PluginDesignCreateFloorArgs>;
732
817
  /**
@@ -738,7 +823,7 @@ export type PluginDesignCreateFloorArgs = z.infer<typeof PluginDesignCreateFloor
738
823
  * | `thickness` | `number` | Roof-slab thickness (> 0) |
739
824
  */
740
825
  export declare const PluginDesignCreateRoofArgs: z.ZodObject<{
741
- contour: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
826
+ contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
742
827
  thickness: z.ZodNumber;
743
828
  }, z.core.$strip>;
744
829
  export type PluginDesignCreateRoofArgs = z.infer<typeof PluginDesignCreateRoofArgs>;
@@ -752,7 +837,7 @@ export type PluginDesignCreateRoofArgs = z.infer<typeof PluginDesignCreateRoofAr
752
837
  * | `heightFromFloor` | `number`? | Lift above the floor (default 0) |
753
838
  */
754
839
  export declare const PluginDesignCreateCeilingArgs: z.ZodObject<{
755
- contour: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
840
+ contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
756
841
  thickness: z.ZodNumber;
757
842
  heightFromFloor: z.ZodOptional<z.ZodNumber>;
758
843
  }, z.core.$strip>;
@@ -768,10 +853,10 @@ export type PluginDesignCreateCeilingArgs = z.infer<typeof PluginDesignCreateCei
768
853
  * | `directionUp` | {@linkcode Vec3Handle}? | Up axis (default world up) |
769
854
  */
770
855
  export declare const PluginDesignCreateColumnArgs: z.ZodObject<{
771
- position: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
772
- crossSection: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
856
+ position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
857
+ crossSection: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
773
858
  height: z.ZodNumber;
774
- directionUp: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
859
+ directionUp: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
775
860
  }, z.core.$strip>;
776
861
  export type PluginDesignCreateColumnArgs = z.infer<typeof PluginDesignCreateColumnArgs>;
777
862
  /**
@@ -784,9 +869,9 @@ export type PluginDesignCreateColumnArgs = z.infer<typeof PluginDesignCreateColu
784
869
  * | `direction` | {@linkcode Vec3Handle}? | Extrusion axis (default world up) |
785
870
  */
786
871
  export declare const PluginDesignCreateBeamArgs: z.ZodObject<{
787
- section: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
872
+ section: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
788
873
  length: z.ZodNumber;
789
- direction: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
874
+ direction: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
790
875
  }, z.core.$strip>;
791
876
  export type PluginDesignCreateBeamArgs = z.infer<typeof PluginDesignCreateBeamArgs>;
792
877
  /**
@@ -796,12 +881,14 @@ export type PluginDesignCreateBeamArgs = z.infer<typeof PluginDesignCreateBeamAr
796
881
  * |---|---|---|
797
882
  * | `profile` | {@linkcode ProfileHandle} | Ordered curve chain (wall centerlines) |
798
883
  * | `height` | `number`? | Wall height (default engine default) |
799
- * | `thickness` | `number`? | Wall thickness (default engine default) |
884
+ * | `thickness` | `number`? | Wall thickness (default: `wallType`'s total layer thickness when given, else engine default) |
885
+ * | `wallType` | `string`? | Wall type name from `design.types.list("wall")` — layers/material/thickness defaults (default generic) |
800
886
  */
801
887
  export declare const PluginDesignCreateWallsArgs: z.ZodObject<{
802
- profile: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
888
+ profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
803
889
  height: z.ZodOptional<z.ZodNumber>;
804
890
  thickness: z.ZodOptional<z.ZodNumber>;
891
+ wallType: z.ZodOptional<z.ZodString>;
805
892
  }, z.core.$strip>;
806
893
  export type PluginDesignCreateWallsArgs = z.infer<typeof PluginDesignCreateWallsArgs>;
807
894
  /**
@@ -834,7 +921,7 @@ export declare const PluginDesignCreateStaircaseArgs: z.ZodObject<{
834
921
  mezzanineFloorDogLegged: "mezzanineFloorDogLegged";
835
922
  mezzanineFloorLShaped: "mezzanineFloorLShaped";
836
923
  }>;
837
- position: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
924
+ position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
838
925
  label: z.ZodOptional<z.ZodString>;
839
926
  structureId: z.ZodOptional<z.ZodString>;
840
927
  level: z.ZodOptional<z.ZodString>;
@@ -849,12 +936,14 @@ export type PluginDesignCreateStaircaseArgs = z.infer<typeof PluginDesignCreateS
849
936
  * | `position` | {@linkcode Vec3Handle} | Absolute world placement point |
850
937
  * | `label` | `string`? | Instance name (default auto `${name}Ins${n}`) |
851
938
  * | `createNewSourceMesh` | `boolean`? | Emit a source-mesh creation command (default `true`) |
939
+ * | `angleInDegrees` | `number`? | Rotation about the vertical axis, in degrees (default unrotated) |
852
940
  */
853
941
  export declare const PluginDesignCreateFurnitureArgs: z.ZodObject<{
854
942
  catalogId: z.ZodString;
855
- position: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
943
+ position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
856
944
  label: z.ZodOptional<z.ZodString>;
857
945
  createNewSourceMesh: z.ZodOptional<z.ZodBoolean>;
946
+ angleInDegrees: z.ZodOptional<z.ZodNumber>;
858
947
  }, z.core.$strip>;
859
948
  export type PluginDesignCreateFurnitureArgs = z.infer<typeof PluginDesignCreateFurnitureArgs>;
860
949
  /**
@@ -866,12 +955,14 @@ export type PluginDesignCreateFurnitureArgs = z.infer<typeof PluginDesignCreateF
866
955
  * | `hostWall` | {@linkcode ComponentHandle} | The wall to host the door |
867
956
  * | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
868
957
  * | `label` | `string`? | Instance name (optional) |
958
+ * | `facing` | {@linkcode Vec3Handle}? | World point on the side of the wall the door faces (default engine-chosen) |
869
959
  */
870
960
  export declare const PluginDesignCreateDoorArgs: z.ZodObject<{
871
961
  catalogId: z.ZodString;
872
962
  hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
873
- position: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
963
+ position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
874
964
  label: z.ZodOptional<z.ZodString>;
965
+ facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
875
966
  }, z.core.$strip>;
876
967
  export type PluginDesignCreateDoorArgs = z.infer<typeof PluginDesignCreateDoorArgs>;
877
968
  /**
@@ -883,12 +974,14 @@ export type PluginDesignCreateDoorArgs = z.infer<typeof PluginDesignCreateDoorAr
883
974
  * | `hostWall` | {@linkcode ComponentHandle} | The wall to host the window |
884
975
  * | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
885
976
  * | `label` | `string`? | Instance name (optional) |
977
+ * | `facing` | {@linkcode Vec3Handle}? | World point on the side of the wall the window faces (default engine-chosen) |
886
978
  */
887
979
  export declare const PluginDesignCreateWindowArgs: z.ZodObject<{
888
980
  catalogId: z.ZodString;
889
981
  hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
890
- position: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
982
+ position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
891
983
  label: z.ZodOptional<z.ZodString>;
984
+ facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
892
985
  }, z.core.$strip>;
893
986
  export type PluginDesignCreateWindowArgs = z.infer<typeof PluginDesignCreateWindowArgs>;
894
987
  /**
@@ -946,7 +1039,7 @@ export type PluginSmartLayoutResult = z.infer<typeof PluginSmartLayoutResult>;
946
1039
  * | `gridTag` | `string`? | Grid tag label (default `"A"`) |
947
1040
  */
948
1041
  export declare const PluginDesignCreateReferenceLinesArgs: z.ZodObject<{
949
- profile: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
1042
+ profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
950
1043
  color: z.ZodOptional<z.ZodString>;
951
1044
  thickness: z.ZodOptional<z.ZodNumber>;
952
1045
  style: z.ZodOptional<z.ZodEnum<{
@@ -982,7 +1075,7 @@ export type PluginCopyMode = z.infer<typeof PluginCopyMode>;
982
1075
  */
983
1076
  export declare const PluginDesignCreateCopyArgs: z.ZodObject<{
984
1077
  components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
985
- displacement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
1078
+ displacement: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
986
1079
  count: z.ZodOptional<z.ZodNumber>;
987
1080
  mode: z.ZodOptional<z.ZodEnum<{
988
1081
  instance: "instance";
@@ -1003,12 +1096,13 @@ export type PluginDesignCreateCopyArgs = z.infer<typeof PluginDesignCreateCopyAr
1003
1096
  * | `spaceType` | `PluginSpaceType`? | Space type |
1004
1097
  * | `massType` | `PluginMassType`? | Mass type |
1005
1098
  * | `departmentId` | `PluginDepartmentId`? | Department |
1099
+ * | `storey` | `number`? (int) | Target storey number (default active storey) |
1006
1100
  */
1007
1101
  export declare const PluginCreateSpaceItem: z.ZodObject<{
1008
- contour: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
1102
+ contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
1009
1103
  height: z.ZodNumber;
1010
1104
  label: z.ZodOptional<z.ZodString>;
1011
- position: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
1105
+ position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
1012
1106
  spaceType: z.ZodOptional<z.ZodEnum<{
1013
1107
  Room: "Room";
1014
1108
  "Program Block": "Program Block";
@@ -1041,6 +1135,7 @@ export declare const PluginCreateSpaceItem: z.ZodObject<{
1041
1135
  ENVELOPE: "ENVELOPE";
1042
1136
  CORE: "CORE";
1043
1137
  }>, z.ZodUUID]>>;
1138
+ storey: z.ZodOptional<z.ZodNumber>;
1044
1139
  }, z.core.$strip>;
1045
1140
  export type PluginCreateSpaceItem = z.infer<typeof PluginCreateSpaceItem>;
1046
1141
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EACL,eAAe,EACf,aAAa,EACb,aAAa,EACb,UAAU,EACX,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,eAAe,EACf,cAAc,EACd,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAE3B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,8BAAsB,qBAAqB;;IAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;aACa,KAAK,CACnB,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,UAAU,EACrB,SAAS,CAAC,EAAE,eAAe,EAC3B,QAAQ,CAAC,EAAE,cAAc,EACzB,YAAY,CAAC,EAAE,kBAAkB,GAChC,eAAe,CAAC,eAAe,CAAC;IAEnC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;aACa,IAAI,CAClB,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,MAA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