@snaptrude/plugin-core 0.9.16-networks-20261012.1 → 0.9.17
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 +6 -0
- package/api-manifest.json +9711 -0
- package/dist/api/analysis/daylight.d.ts +5 -5
- package/dist/api/analysis/solar.d.ts +2 -2
- package/dist/api/core/camera/index.d.ts +0 -29
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/core/zoom/index.d.ts +0 -13
- package/dist/api/core/zoom/index.d.ts.map +1 -1
- package/dist/api/design/create/bulk-items.d.ts +21 -40
- package/dist/api/design/create/bulk-items.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +97 -120
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/create/opening-fields.d.ts +12 -13
- package/dist/api/design/create/opening-fields.d.ts.map +1 -1
- package/dist/api/design/doors/index.d.ts +24 -18
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/family.d.ts +27 -797
- package/dist/api/design/family.d.ts.map +1 -1
- package/dist/api/design/index.d.ts +0 -16
- package/dist/api/design/index.d.ts.map +1 -1
- package/dist/api/design/query/index.d.ts +30 -30
- package/dist/api/design/selection/index.d.ts +10 -10
- package/dist/api/design/types/index.d.ts +24 -40
- package/dist/api/design/types/index.d.ts.map +1 -1
- package/dist/api/design/update/index.d.ts +3 -40
- package/dist/api/design/update/index.d.ts.map +1 -1
- package/dist/api/design/windows/index.d.ts +8 -8
- package/dist/api/design/windows/index.d.ts.map +1 -1
- package/dist/api/presentation/aiInspiration.d.ts +10 -10
- package/dist/api/presentation/annotate.d.ts +22 -38
- package/dist/api/presentation/annotate.d.ts.map +1 -1
- package/dist/api/presentation/export.d.ts +5 -23
- package/dist/api/presentation/export.d.ts.map +1 -1
- package/dist/api/presentation/index.d.ts +21 -32
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +6 -106
- package/dist/api/presentation/placedViews.d.ts.map +1 -1
- package/dist/api/presentation/sections.d.ts +461 -0
- package/dist/api/presentation/sections.d.ts.map +1 -0
- package/dist/api/presentation/shapes.d.ts +2 -2
- package/dist/api/presentation/sheets.d.ts +19 -175
- package/dist/api/presentation/sheets.d.ts.map +1 -1
- package/dist/api/presentation/views.d.ts +5 -103
- package/dist/api/presentation/views.d.ts.map +1 -1
- package/dist/api/presentation/walkthroughs.d.ts +6 -6
- package/dist/index.cjs +2434 -3619
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2421 -3501
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/generate-manifest.mjs +0 -5
- package/src/api/core/camera/index.ts +0 -29
- package/src/api/core/zoom/index.ts +0 -13
- package/src/api/design/create/bulk-items.ts +16 -23
- package/src/api/design/create/index.ts +119 -129
- package/src/api/design/create/opening-fields.ts +12 -15
- package/src/api/design/doors/index.ts +42 -58
- package/src/api/design/family.ts +32 -662
- package/src/api/design/index.ts +4 -34
- package/src/api/design/types/index.ts +24 -31
- package/src/api/design/update/index.ts +3 -41
- package/src/api/design/windows/index.ts +22 -40
- package/src/api/presentation/annotate.ts +58 -90
- package/src/api/presentation/export.ts +6 -32
- package/src/api/presentation/index.ts +23 -39
- package/src/api/presentation/placedViews.ts +28 -119
- package/src/api/presentation/sections.ts +420 -0
- package/src/api/presentation/sheets.ts +20 -181
- package/src/api/presentation/views.ts +6 -46
- package/dist/api/design/bim.d.ts +0 -209
- package/dist/api/design/bim.d.ts.map +0 -1
- package/dist/api/design/catalog.d.ts +0 -320
- package/dist/api/design/catalog.d.ts.map +0 -1
- package/dist/api/design/networks.d.ts +0 -1703
- package/dist/api/design/networks.d.ts.map +0 -1
- package/dist/api/presentation/drawingContract.d.ts +0 -32
- package/dist/api/presentation/drawingContract.d.ts.map +0 -1
- package/dist/api/presentation/drawings.d.ts +0 -3523
- package/dist/api/presentation/drawings.d.ts.map +0 -1
- package/dist/api/presentation/viewPresets.d.ts +0 -222
- package/dist/api/presentation/viewPresets.d.ts.map +0 -1
- package/src/api/design/bim.ts +0 -121
- package/src/api/design/catalog.ts +0 -203
- package/src/api/design/networks.ts +0 -607
- package/src/api/presentation/drawingContract.ts +0 -70
- package/src/api/presentation/drawings.ts +0 -1179
- package/src/api/presentation/viewPresets.ts +0 -241
- package/test/drawingContract.test.mjs +0 -288
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { PluginApiReturn } from "../../../types";
|
|
3
|
-
import { BrepHandle, ComponentHandle, ContourHandle,
|
|
3
|
+
import { BrepHandle, ComponentHandle, ContourHandle, CurveHandle, ProfileHandle, Vec3Handle } from "../../../handles";
|
|
4
4
|
import { PluginGridStyleOptions } from "./grids";
|
|
5
5
|
import { PluginSpaceType, PluginMassType, PluginDepartmentId } from "../../entity/space";
|
|
6
6
|
import { PluginBuildableEnvelopePolygonVertex, PluginBuildableEnvelopeSetbackTier, PluginBuildableEnvelopeVerticalCap, PluginBuildableEnvelopeCreateResult } from "../../entity/buildableEnvelope";
|
|
7
7
|
import type { PluginCreateDoorItem, PluginCreateFloorItem, PluginCreateFurnitureItem, PluginCreateWallRunItem, PluginCreateWindowItem } from "./bulk-items";
|
|
8
8
|
import { PluginWallTopProfile } from "./bulk-items";
|
|
9
|
-
import { PluginWallType } from "../types";
|
|
10
|
-
import { PluginFamilyPlacement, PluginFamilyFloorOptions, PluginFamilySlabOptions, PluginFamilyCeilingOptions, PluginFamilyValues } from "../catalog";
|
|
11
9
|
/**
|
|
12
10
|
* `design.create.*` — author new scene-committed BIM entities.
|
|
13
11
|
*
|
|
@@ -21,13 +19,7 @@ import { PluginFamilyPlacement, PluginFamilyFloorOptions, PluginFamilySlabOption
|
|
|
21
19
|
* Footprint objects take a {@linkcode ContourHandle} (outer profile + holes);
|
|
22
20
|
* build one with `snaptrude.core.geom.create.contourFromProfile(s)`.
|
|
23
21
|
*
|
|
24
|
-
*
|
|
25
|
-
* construction; the contour or axis supplies instance geometry. Geometry uses SU,
|
|
26
|
-
* while family length overrides use mm and angles use degrees. Omitted parameters
|
|
27
|
-
* retain family defaults; shared/type, formula and geometry-bound overrides are refused.
|
|
28
|
-
* Placement never publishes a definition. Unsupported references or geometry fail before mutation.
|
|
29
|
-
*
|
|
30
|
-
* `door`/`window` place a parametric family into a host wall (the world point is
|
|
22
|
+
* `door`/`window` place a catalog item into a host wall (the world point is
|
|
31
23
|
* projected onto the wall face to locate the opening; the wall is re-cut in one
|
|
32
24
|
* undo entry) and throw if the point projects outside the wall. `smartLayout` is
|
|
33
25
|
* the one creator returning a grouped {@linkcode PluginSmartLayoutResult} rather
|
|
@@ -180,25 +172,15 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
180
172
|
* const slab = await snaptrude.design.create.slab(contour, 0.15, "down", "Plinth")
|
|
181
173
|
* ```
|
|
182
174
|
*/
|
|
183
|
-
abstract slab(
|
|
184
|
-
contour: ContourHandle,
|
|
185
|
-
thickness: number,
|
|
186
|
-
direction?: "up" | "down",
|
|
187
|
-
slabType?: PluginSlabType
|
|
188
|
-
] | [contour: ContourHandle, options: PluginFamilySlabOptions]): PluginApiReturn<ComponentHandle>;
|
|
175
|
+
abstract slab(contour: ContourHandle, thickness: number, direction?: "up" | "down", slabType?: PluginSlabType): PluginApiReturn<ComponentHandle>;
|
|
189
176
|
/**
|
|
190
177
|
* Create a **floor** by extruding a footprint contour by `thickness`
|
|
191
178
|
* (extruded upward).
|
|
192
179
|
*
|
|
193
|
-
* The native family overload takes `{ type, values?, position? }`. Contour
|
|
194
|
-
* geometry uses SU; family values use mm. The family supplies layer thickness.
|
|
195
|
-
* PG2 can split or merge the footprint, so both overloads return an array.
|
|
196
|
-
* A merge into an existing floor can return no newly created handles.
|
|
197
|
-
*
|
|
198
180
|
* @param contour - Footprint (outer + holes)
|
|
199
181
|
* @param thickness - Floor thickness (> 0)
|
|
200
182
|
* @param position - Offset from origin
|
|
201
|
-
* @returns
|
|
183
|
+
* @returns the {@linkcode ComponentHandle} of the created floor
|
|
202
184
|
* @throws if the contour is invalid or the thickness is not positive
|
|
203
185
|
*
|
|
204
186
|
* @examplePrompt Create a floor from this room outline
|
|
@@ -213,11 +195,11 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
213
195
|
* const floor = await snaptrude.design.create.floor(contour, 0.1)
|
|
214
196
|
* ```
|
|
215
197
|
*
|
|
216
|
-
* @performance For
|
|
217
|
-
* host round-trip and
|
|
218
|
-
*
|
|
198
|
+
* @performance For MORE THAN ONE floor, call `design.create.floors(items[])` — one
|
|
199
|
+
* host round-trip and ONE undo entry for the whole batch. Looping this single-floor
|
|
200
|
+
* creator is N round-trips and N undo entries.
|
|
219
201
|
*/
|
|
220
|
-
abstract floor(
|
|
202
|
+
abstract floor(contour: ContourHandle, thickness: number, position?: Vec3Handle): PluginApiReturn<ComponentHandle>;
|
|
221
203
|
/**
|
|
222
204
|
* Create **many floors** in one undoable operation (bulk plural of
|
|
223
205
|
* {@linkcode floor}). Each item extrudes its own footprint contour (outer
|
|
@@ -276,7 +258,7 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
276
258
|
* const roof = await snaptrude.design.create.roof(contour, 0.2)
|
|
277
259
|
* ```
|
|
278
260
|
*/
|
|
279
|
-
abstract roof(contour: ContourHandle, thickness: number
|
|
261
|
+
abstract roof(contour: ContourHandle, thickness: number): PluginApiReturn<ComponentHandle>;
|
|
280
262
|
/**
|
|
281
263
|
* Create a **ceiling** by extruding a footprint contour by `thickness`, lifted
|
|
282
264
|
* `heightFromFloor` above the floor.
|
|
@@ -299,7 +281,7 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
299
281
|
* const ceiling = await snaptrude.design.create.ceiling(contour, 0.05, 2.8)
|
|
300
282
|
* ```
|
|
301
283
|
*/
|
|
302
|
-
abstract ceiling(
|
|
284
|
+
abstract ceiling(contour: ContourHandle, thickness: number, heightFromFloor?: number): PluginApiReturn<ComponentHandle>;
|
|
303
285
|
/**
|
|
304
286
|
* Create a **column** by extruding a cross-section contour upward by `height`
|
|
305
287
|
* from a base `position`. The column is built to EXACTLY `height` — unlike
|
|
@@ -327,12 +309,7 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
327
309
|
* const column = await snaptrude.design.create.column(base, crossSection, 3)
|
|
328
310
|
* ```
|
|
329
311
|
*/
|
|
330
|
-
abstract column(
|
|
331
|
-
position: Vec3Handle,
|
|
332
|
-
crossSection: ContourHandle,
|
|
333
|
-
height: number,
|
|
334
|
-
directionUp?: Vec3Handle
|
|
335
|
-
] | [axis: LineHandle, options: PluginFamilyPlacement]): PluginApiReturn<ComponentHandle>;
|
|
312
|
+
abstract column(position: Vec3Handle, crossSection: ContourHandle, height: number, directionUp?: Vec3Handle): PluginApiReturn<ComponentHandle>;
|
|
336
313
|
/**
|
|
337
314
|
* Create a **beam** by extruding a cross-section contour along `direction` by
|
|
338
315
|
* `length`. Matches the Snaptrude beam tool's semantics: the beam body hangs
|
|
@@ -373,7 +350,7 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
373
350
|
* const beam = await snaptrude.design.create.beam(section, 6, alongX)
|
|
374
351
|
* ```
|
|
375
352
|
*/
|
|
376
|
-
abstract beam(
|
|
353
|
+
abstract beam(section: ContourHandle, length: number, direction?: Vec3Handle): PluginApiReturn<ComponentHandle>;
|
|
377
354
|
/**
|
|
378
355
|
* Create a connected run of **walls** from a profile — one wall per curve in
|
|
379
356
|
* the profile's chain, with mitred corners at shared endpoints.
|
|
@@ -382,12 +359,12 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
382
359
|
* @param height - Wall height (default engine default)
|
|
383
360
|
* @param thickness - Wall thickness (default: the `wallType`'s total layer
|
|
384
361
|
* thickness when `wallType` is given, else the engine default)
|
|
385
|
-
* @param wallType -
|
|
386
|
-
*
|
|
387
|
-
*
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
*
|
|
362
|
+
* @param wallType - Wall type to build with — the same searchable list the
|
|
363
|
+
* Draw tab's Wall Type dropdown offers. Pass a name from
|
|
364
|
+
* `design.types.list("wall")` (the summary's `label`, or its `"wall:…"` id).
|
|
365
|
+
* Drives the wall's construction layers and default material, and — when
|
|
366
|
+
* `thickness` is omitted — its total layer thickness. Default: the engine's
|
|
367
|
+
* generic wall.
|
|
391
368
|
* @param storey - Target storey (integer: `1` ground, `2` first floor, `-1`
|
|
392
369
|
* basement — same convention as `design.create.space`). The walls are
|
|
393
370
|
* assigned to it and lifted to its base elevation, all inside the same
|
|
@@ -442,7 +419,7 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
442
419
|
* host round-trip and ONE undo entry for every run in the batch. Looping this
|
|
443
420
|
* single-run creator is N round-trips and N undo entries.
|
|
444
421
|
*/
|
|
445
|
-
abstract walls(profile: ProfileHandle, height?: number, thickness?: number, wallType?:
|
|
422
|
+
abstract walls(profile: ProfileHandle, height?: number, thickness?: number, wallType?: string, storey?: number, topProfiles?: (PluginWallTopProfile | null)[]): PluginApiReturn<ComponentHandle[]>;
|
|
446
423
|
/**
|
|
447
424
|
* Create **many wall runs** in one undoable operation (bulk plural of
|
|
448
425
|
* {@linkcode walls}). Each item is one full run — a wall per curve in that
|
|
@@ -784,23 +761,30 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
784
761
|
*/
|
|
785
762
|
abstract furnitureItems(items: PluginCreateFurnitureItem[]): PluginApiReturn<ComponentHandle[]>;
|
|
786
763
|
/**
|
|
787
|
-
* Place a
|
|
764
|
+
* Place a **door** from the catalog into a host wall.
|
|
788
765
|
*
|
|
789
|
-
* Identified by a
|
|
766
|
+
* Identified by a **catalog (library) id** — the team object's stable `_id`
|
|
767
|
+
* or the general library's `fullName`. Discover ids with
|
|
790
768
|
* {@linkcode PluginDesignDoorsApi.listCatalog}. The world `position` is
|
|
791
769
|
* projected onto the host wall's face to locate the opening; the wall is
|
|
792
770
|
* re-cut and the door hosted in a single undo entry. Placement is
|
|
793
|
-
* asynchronous
|
|
771
|
+
* asynchronous (the source mesh is fetched if not cached).
|
|
794
772
|
*
|
|
795
|
-
* @param
|
|
773
|
+
* @param catalogId - Library id: team `_id` or general `fullName`
|
|
796
774
|
* @param hostWall - The wall to host the door
|
|
797
775
|
* @param position - World point projected onto the wall to locate the opening
|
|
798
|
-
* @param options -
|
|
799
|
-
*
|
|
800
|
-
*
|
|
801
|
-
*
|
|
776
|
+
* @param options - Optional placement options: `label` — instance name;
|
|
777
|
+
* `hinge` — world point near the jamb the door is hinged on (the door is
|
|
778
|
+
* reflected along the wall so its hinged jamb is the one nearer this
|
|
779
|
+
* point; default the catalog item's authored hinge side)
|
|
780
|
+
* @param facing - World point on the side of the wall the door swings open
|
|
781
|
+
* to (the room it opens into — where the plan symbol draws the swing arc).
|
|
782
|
+
* Any point clearly on that side works (e.g. the room's center). Default:
|
|
783
|
+
* the engine picks a side (nondeterministic when `position` sits on the
|
|
784
|
+
* wall centerline).
|
|
802
785
|
* @returns the {@linkcode ComponentHandle} of the placed door
|
|
803
|
-
* @throws if the
|
|
786
|
+
* @throws if the catalog id is unknown, the host is not a wall, the source
|
|
787
|
+
* mesh fails to load, or the projected point falls **outside** the host wall
|
|
804
788
|
*
|
|
805
789
|
* @examplePrompt Add a door to this wall here
|
|
806
790
|
* @examplePrompt Place a sliding door on the selected wall
|
|
@@ -842,22 +826,23 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
842
826
|
* round-trip and ONE undo entry, with each host wall re-cut once per opening inside
|
|
843
827
|
* that single call. Looping this single-door creator is N round-trips.
|
|
844
828
|
*/
|
|
845
|
-
abstract door(
|
|
829
|
+
abstract door(catalogId: string, hostWall: ComponentHandle, position: Vec3Handle, options?: {
|
|
846
830
|
label?: string;
|
|
847
831
|
hinge?: Vec3Handle;
|
|
848
|
-
version?: number;
|
|
849
|
-
values?: Record<string, number | string>;
|
|
850
832
|
}, facing?: Vec3Handle): PluginApiReturn<ComponentHandle>;
|
|
851
833
|
/**
|
|
852
834
|
* Place **many doors** into host walls in one undoable operation (bulk plural
|
|
853
|
-
* of {@linkcode door}). Each item carries its own
|
|
835
|
+
* of {@linkcode door}). Each item carries its own catalog id, host wall,
|
|
854
836
|
* world position, and optional `facing`, `label`, `width` and `height` — the
|
|
855
837
|
* same fields as a `"door"` {@linkcode PluginDesignCreateOpeningOptions}.
|
|
856
838
|
* Validate-all-or-throw; one command.
|
|
857
839
|
*
|
|
858
|
-
*
|
|
859
|
-
*
|
|
860
|
-
*
|
|
840
|
+
* As with the singular creator, placing an opening **re-cuts its host wall**:
|
|
841
|
+
* the wall you passed as `hostWall` stops resolving once the call returns.
|
|
842
|
+
* Several items MAY name the same original wall handle in one call — the host
|
|
843
|
+
* chains the re-cuts internally — but after the call recover the surviving
|
|
844
|
+
* wall with `design.query.getHost(opening)`, never by reusing the handle you
|
|
845
|
+
* passed in.
|
|
861
846
|
*
|
|
862
847
|
* @param items - One {@linkcode PluginCreateDoorItem} per door to place
|
|
863
848
|
* (≥1, ≤1000)
|
|
@@ -865,9 +850,10 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
865
850
|
* @throws `VALIDATION` if the items fail the schema (empty array, more than
|
|
866
851
|
* 1000 items, unknown fields, a non-positive `width`/`height`);
|
|
867
852
|
* `HANDLE_INVALID` if a `position`, `facing` or `hinge` handle is unknown
|
|
868
|
-
* or released; `PRECONDITION_FAILED` if
|
|
869
|
-
*
|
|
870
|
-
*
|
|
853
|
+
* or released; `PRECONDITION_FAILED` if a catalog id is unknown, a `hostWall`
|
|
854
|
+
* is not a wall / is locked / is not in the active proposal, the projected
|
|
855
|
+
* point falls outside its host wall, or a door tool is active;
|
|
856
|
+
* `OPERATION_FAILED` if a source mesh fails to load or placement fails
|
|
871
857
|
* (nothing is created — `details.itemIndex` is the failing item);
|
|
872
858
|
* `METHOD_NOT_PERMITTED` if the plugin may not write.
|
|
873
859
|
*
|
|
@@ -878,7 +864,7 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
878
864
|
* @examplePrompt Add all the doors for this floor plan together
|
|
879
865
|
*
|
|
880
866
|
* @performance Bulk creator — the whole batch is ONE host round-trip and ONE undo
|
|
881
|
-
* entry. Always prefer this over
|
|
867
|
+
* entry, and each distinct catalog source loads once. Always prefer this over
|
|
882
868
|
* calling `design.create.door` in a loop: build the full `items[]` array first
|
|
883
869
|
* (all host walls and points up front), then make one call.
|
|
884
870
|
*
|
|
@@ -888,30 +874,38 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
888
874
|
* const [wall] = await snaptrude.design.query.listWalls({ isSelected: true })
|
|
889
875
|
* const [entry] = await snaptrude.design.doors.listCatalog()
|
|
890
876
|
* const [front, side] = await snaptrude.design.create.doors([
|
|
891
|
-
* {
|
|
892
|
-
* {
|
|
877
|
+
* { catalogId: entry.id, hostWall: wall, position: await v.new(2, 0, 5), label: "D-01" },
|
|
878
|
+
* { catalogId: entry.id, hostWall: wall, position: await v.new(6, 0, 5), width: 1.2 },
|
|
893
879
|
* ])
|
|
894
|
-
* //
|
|
880
|
+
* // `wall` was re-cut twice and no longer resolves — ask the opening for its host:
|
|
895
881
|
* const currentWall = await snaptrude.design.query.getHost(front)
|
|
896
882
|
* ```
|
|
897
883
|
*/
|
|
898
884
|
abstract doors(items: PluginCreateDoorItem[]): PluginApiReturn<ComponentHandle[]>;
|
|
899
885
|
/**
|
|
900
|
-
* Place a
|
|
886
|
+
* Place a **window** from the catalog into a host wall.
|
|
901
887
|
*
|
|
902
|
-
* Identified by a
|
|
888
|
+
* Identified by a **catalog (library) id** — the team object's stable `_id`
|
|
889
|
+
* or the general library's `fullName`. Discover ids with
|
|
903
890
|
* {@linkcode PluginDesignWindowsApi.listCatalog}. The world `position` is
|
|
904
891
|
* projected onto the host wall's face to locate the opening; the wall is
|
|
905
892
|
* re-cut and the window hosted in a single undo entry. Placement is
|
|
906
|
-
* asynchronous
|
|
893
|
+
* asynchronous (the source mesh is fetched if not cached).
|
|
907
894
|
*
|
|
908
|
-
* @param
|
|
895
|
+
* @param catalogId - Library id: team `_id` or general `fullName`
|
|
909
896
|
* @param hostWall - The wall to host the window
|
|
910
897
|
* @param position - World point projected onto the wall to locate the opening
|
|
911
|
-
* @param options -
|
|
912
|
-
*
|
|
898
|
+
* @param options - Optional placement options: `label` — instance name;
|
|
899
|
+
* `hinge` — world point near the jamb the window is hinged on (same rule
|
|
900
|
+
* as {@linkcode PluginDesignCreateApi.door}; default the catalog item's
|
|
901
|
+
* authored side)
|
|
902
|
+
* @param facing - World point on the side of the wall the window opens to
|
|
903
|
+
* (matters for asymmetric windows, e.g. casement swing) — same convention
|
|
904
|
+
* as {@linkcode PluginDesignCreateApi.door}. Default: the engine picks a
|
|
905
|
+
* side (nondeterministic when `position` sits on the centerline).
|
|
913
906
|
* @returns the {@linkcode ComponentHandle} of the placed window
|
|
914
|
-
* @throws if the
|
|
907
|
+
* @throws if the catalog id is unknown, the host is not a wall, the source
|
|
908
|
+
* mesh fails to load, or the projected point falls **outside** the host wall
|
|
915
909
|
*
|
|
916
910
|
* @examplePrompt Add a window to this wall here
|
|
917
911
|
* @examplePrompt Place a casement window on the selected wall
|
|
@@ -936,23 +930,25 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
936
930
|
* host round-trip and ONE undo entry, with each host wall re-cut once per opening
|
|
937
931
|
* inside that single call. Looping this single-window creator is N round-trips.
|
|
938
932
|
*/
|
|
939
|
-
abstract window(
|
|
933
|
+
abstract window(catalogId: string, hostWall: ComponentHandle, position: Vec3Handle, options?: {
|
|
940
934
|
label?: string;
|
|
941
935
|
hinge?: Vec3Handle;
|
|
942
|
-
version?: number;
|
|
943
|
-
values?: Record<string, number | string>;
|
|
944
936
|
}, facing?: Vec3Handle): PluginApiReturn<ComponentHandle>;
|
|
945
937
|
/**
|
|
946
938
|
* Place **many windows** into host walls in one undoable operation (bulk
|
|
947
|
-
* plural of {@linkcode window}). Each item carries its own
|
|
939
|
+
* plural of {@linkcode window}). Each item carries its own catalog id, host
|
|
948
940
|
* wall, world position, and optional `facing`, `label`, `width`, `height` and
|
|
949
941
|
* `sillHeight` — the same fields as a `"window"`
|
|
950
942
|
* {@linkcode PluginDesignCreateOpeningOptions}. `sillHeight` is measured from
|
|
951
943
|
* the host wall base to the BOTTOM of the window. Validate-all-or-throw; one
|
|
952
944
|
* command.
|
|
953
945
|
*
|
|
954
|
-
*
|
|
955
|
-
*
|
|
946
|
+
* As with the singular creator, placing an opening **re-cuts its host wall**:
|
|
947
|
+
* the wall you passed as `hostWall` stops resolving once the call returns.
|
|
948
|
+
* Several items MAY name the same original wall handle in one call — the host
|
|
949
|
+
* chains the re-cuts internally — but after the call recover the surviving
|
|
950
|
+
* wall with `design.query.getHost(opening)`, never by reusing the handle you
|
|
951
|
+
* passed in.
|
|
956
952
|
*
|
|
957
953
|
* @param items - One {@linkcode PluginCreateWindowItem} per window to place
|
|
958
954
|
* (≥1, ≤1000)
|
|
@@ -960,9 +956,10 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
960
956
|
* @throws `VALIDATION` if the items fail the schema (empty array, more than
|
|
961
957
|
* 1000 items, unknown fields, a non-positive `width`/`height`, a negative
|
|
962
958
|
* `sillHeight`); `HANDLE_INVALID` if a `position`, `facing` or `hinge`
|
|
963
|
-
* handle is unknown or released; `PRECONDITION_FAILED` if
|
|
964
|
-
*
|
|
965
|
-
*
|
|
959
|
+
* handle is unknown or released; `PRECONDITION_FAILED` if a catalog id is unknown, a
|
|
960
|
+
* `hostWall` is not a wall / is locked / is not in the active proposal, the
|
|
961
|
+
* projected point falls outside its host wall, or a window tool is active;
|
|
962
|
+
* `OPERATION_FAILED` if a source mesh fails to load or placement fails
|
|
966
963
|
* (nothing is created — `details.itemIndex` is the failing item);
|
|
967
964
|
* `METHOD_NOT_PERMITTED` if the plugin may not write.
|
|
968
965
|
*
|
|
@@ -973,7 +970,7 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
973
970
|
* @examplePrompt Add all the windows with a 0.9m sill height together
|
|
974
971
|
*
|
|
975
972
|
* @performance Bulk creator — the whole batch is ONE host round-trip and ONE undo
|
|
976
|
-
* entry. Always prefer this over
|
|
973
|
+
* entry, and each distinct catalog source loads once. Always prefer this over
|
|
977
974
|
* calling `design.create.window` in a loop: build the full `items[]` array first
|
|
978
975
|
* (all host walls and points up front), then make one call.
|
|
979
976
|
*
|
|
@@ -983,25 +980,25 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
983
980
|
* const [wall] = await snaptrude.design.query.listWalls({ isSelected: true })
|
|
984
981
|
* const [casement] = await snaptrude.design.windows.listCatalog()
|
|
985
982
|
* const placed = await snaptrude.design.create.windows([
|
|
986
|
-
* {
|
|
987
|
-
* {
|
|
983
|
+
* { catalogId: casement.id, hostWall: wall, position: await v.new(2, 0, 5), sillHeight: 0.9 },
|
|
984
|
+
* { catalogId: casement.id, hostWall: wall, position: await v.new(5, 0, 5), sillHeight: 0.9 },
|
|
988
985
|
* ])
|
|
989
986
|
* const currentWall = await snaptrude.design.query.getHost(placed[0])
|
|
990
987
|
* ```
|
|
991
988
|
*/
|
|
992
989
|
abstract windows(items: PluginCreateWindowItem[]): PluginApiReturn<ComponentHandle[]>;
|
|
993
990
|
/**
|
|
994
|
-
* Place a
|
|
991
|
+
* Place a catalog **door or window** into a host wall with optional size overrides.
|
|
995
992
|
*
|
|
996
993
|
* The world `position` is projected onto the host wall to locate the opening.
|
|
997
994
|
* All supplied dimensions use Snaptrude engine units. Window `sillHeight` is
|
|
998
995
|
* measured from the host wall base to the bottom of the window, not to
|
|
999
996
|
* its center. Placement is asynchronous and committed as one undoable creation.
|
|
1000
997
|
*
|
|
1001
|
-
* @param options - Opening kind,
|
|
998
|
+
* @param options - Opening kind, catalog and host references, placement, and
|
|
1002
999
|
* optional facing (swing side), hinge (hinged jamb), label, and dimensions
|
|
1003
1000
|
* @returns the {@linkcode ComponentHandle} of the placed door or window
|
|
1004
|
-
* @throws if the options are invalid, the
|
|
1001
|
+
* @throws if the options are invalid, the catalog id is unknown, the host is
|
|
1005
1002
|
* not a wall, loading fails, or the opening cannot be placed on the host
|
|
1006
1003
|
*
|
|
1007
1004
|
* @examplePrompt Add a 1m wide door to this wall here
|
|
@@ -1015,7 +1012,7 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
1015
1012
|
* ```ts
|
|
1016
1013
|
* const opening = await snaptrude.design.create.opening({
|
|
1017
1014
|
* kind: "window",
|
|
1018
|
-
*
|
|
1015
|
+
* catalogId: windowType.id,
|
|
1019
1016
|
* hostWall: wall,
|
|
1020
1017
|
* position: await snaptrude.core.math.vec3.new(3, 0, 5),
|
|
1021
1018
|
* width: 1.2,
|
|
@@ -1468,7 +1465,7 @@ export type PluginDesignCreateBeamArgs = z.infer<typeof PluginDesignCreateBeamAr
|
|
|
1468
1465
|
* | `profile` | {@linkcode ProfileHandle} | Ordered curve chain (wall centerlines) |
|
|
1469
1466
|
* | `height` | `number`? | Wall height (default engine default) |
|
|
1470
1467
|
* | `thickness` | `number`? | Wall thickness (default: `wallType`'s total layer thickness when given, else engine default) |
|
|
1471
|
-
* | `wallType` |
|
|
1468
|
+
* | `wallType` | `string`? | Wall type name from `design.types.list("wall")` — layers/material/thickness defaults (default generic) |
|
|
1472
1469
|
* | `storey` | `number`? | Target storey (integer, must exist) — walls assigned + lifted to its base in the same undo entry (default: geometry-derived) |
|
|
1473
1470
|
* | `topProfiles` | ({@linkcode PluginWallTopProfile} \| `null`)[]? | Top edge per curve (same order); `null`/missing = flat at `height`. Straight curves only |
|
|
1474
1471
|
*/
|
|
@@ -1476,16 +1473,12 @@ export declare const PluginDesignCreateWallsArgs: z.ZodObject<{
|
|
|
1476
1473
|
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
1477
1474
|
height: z.ZodOptional<z.ZodNumber>;
|
|
1478
1475
|
thickness: z.ZodOptional<z.ZodNumber>;
|
|
1479
|
-
wallType: z.ZodOptional<z.
|
|
1480
|
-
id: z.ZodString;
|
|
1481
|
-
version: z.ZodNumber;
|
|
1482
|
-
}, z.core.$strip>]>>;
|
|
1476
|
+
wallType: z.ZodOptional<z.ZodString>;
|
|
1483
1477
|
storey: z.ZodOptional<z.ZodNumber>;
|
|
1484
1478
|
topProfiles: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1485
1479
|
along: z.ZodNumber;
|
|
1486
1480
|
height: z.ZodNumber;
|
|
1487
1481
|
}, z.core.$strip>>>>>;
|
|
1488
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
1489
1482
|
}, z.core.$strip>;
|
|
1490
1483
|
export type PluginDesignCreateWallsArgs = z.infer<typeof PluginDesignCreateWallsArgs>;
|
|
1491
1484
|
/**
|
|
@@ -1556,26 +1549,20 @@ export type PluginDesignCreateFurnitureArgs = z.infer<typeof PluginDesignCreateF
|
|
|
1556
1549
|
*
|
|
1557
1550
|
* | Property | Type | Description |
|
|
1558
1551
|
* |---|---|---|
|
|
1559
|
-
* | `
|
|
1560
|
-
* | `version` | `number`? | Exact version; newest known by default |
|
|
1561
|
-
* | `values` | `Record<string, number \| string>`? | Parameters; numeric lengths use SU |
|
|
1552
|
+
* | `catalogId` | `string` | Library id: team `_id` or general `fullName` |
|
|
1562
1553
|
* | `hostWall` | {@linkcode ComponentHandle} | The wall to host the door |
|
|
1563
1554
|
* | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
|
|
1564
1555
|
* | `label` | `string`? | Instance name (optional) |
|
|
1565
1556
|
* | `facing` | {@linkcode Vec3Handle}? | World point on the side of the wall the door swings open to (default engine-chosen) |
|
|
1566
|
-
* | `hinge` | {@linkcode Vec3Handle}? | World point near the hinged
|
|
1557
|
+
* | `hinge` | {@linkcode Vec3Handle}? | World point near the jamb the door is hinged on (default the catalog item's authored side) |
|
|
1567
1558
|
*/
|
|
1568
1559
|
export declare const PluginDesignCreateDoorArgs: z.ZodObject<{
|
|
1569
|
-
|
|
1570
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
1571
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1560
|
+
catalogId: z.ZodString;
|
|
1572
1561
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
1573
1562
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
1563
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1574
1564
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
1575
1565
|
hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
1576
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1577
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
1578
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
1579
1566
|
}, z.core.$strip>;
|
|
1580
1567
|
export type PluginDesignCreateDoorArgs = z.infer<typeof PluginDesignCreateDoorArgs>;
|
|
1581
1568
|
/**
|
|
@@ -1583,26 +1570,20 @@ export type PluginDesignCreateDoorArgs = z.infer<typeof PluginDesignCreateDoorAr
|
|
|
1583
1570
|
*
|
|
1584
1571
|
* | Property | Type | Description |
|
|
1585
1572
|
* |---|---|---|
|
|
1586
|
-
* | `
|
|
1587
|
-
* | `version` | `number`? | Exact version; newest known by default |
|
|
1588
|
-
* | `values` | `Record<string, number \| string>`? | Parameters; numeric lengths use SU |
|
|
1573
|
+
* | `catalogId` | `string` | Library id: team `_id` or general `fullName` |
|
|
1589
1574
|
* | `hostWall` | {@linkcode ComponentHandle} | The wall to host the window |
|
|
1590
1575
|
* | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
|
|
1591
1576
|
* | `label` | `string`? | Instance name (optional) |
|
|
1592
1577
|
* | `facing` | {@linkcode Vec3Handle}? | World point on the side of the wall the window opens to (default engine-chosen) |
|
|
1593
|
-
* | `hinge` | {@linkcode Vec3Handle}? | World point near the hinged
|
|
1578
|
+
* | `hinge` | {@linkcode Vec3Handle}? | World point near the jamb the window is hinged on (default the catalog item's authored side) |
|
|
1594
1579
|
*/
|
|
1595
1580
|
export declare const PluginDesignCreateWindowArgs: z.ZodObject<{
|
|
1596
|
-
|
|
1597
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
1598
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1581
|
+
catalogId: z.ZodString;
|
|
1599
1582
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
1600
1583
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
1584
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1601
1585
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
1602
1586
|
hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
1603
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1604
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
1605
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
1606
1587
|
}, z.core.$strip>;
|
|
1607
1588
|
export type PluginDesignCreateWindowArgs = z.infer<typeof PluginDesignCreateWindowArgs>;
|
|
1608
1589
|
/**
|
|
@@ -1612,9 +1593,7 @@ export type PluginDesignCreateWindowArgs = z.infer<typeof PluginDesignCreateWind
|
|
|
1612
1593
|
* the distance from the host wall base to the bottom of the window.
|
|
1613
1594
|
*/
|
|
1614
1595
|
export declare const PluginDesignCreateOpeningOptions: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1615
|
-
|
|
1616
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
1617
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1596
|
+
catalogId: z.ZodString;
|
|
1618
1597
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
1619
1598
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
1620
1599
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
@@ -1625,9 +1604,7 @@ export declare const PluginDesignCreateOpeningOptions: z.ZodDiscriminatedUnion<[
|
|
|
1625
1604
|
kind: z.ZodLiteral<"door">;
|
|
1626
1605
|
}, z.core.$strict>, z.ZodObject<{
|
|
1627
1606
|
sillHeight: z.ZodOptional<z.ZodNumber>;
|
|
1628
|
-
|
|
1629
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
1630
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
1607
|
+
catalogId: z.ZodString;
|
|
1631
1608
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
1632
1609
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
1633
1610
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
@@ -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,UAAU,EACV,eAAe,EACf,aAAa,EACb,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,EACX,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,EACL,eAAe,EACf,cAAc,EACd,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACpC,MAAM,gCAAgC,CAAA;AAEvC,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,0BAA0B,EAC1B,kBAAkB,EACnB,MAAM,YAAY,CAAA;AAEnB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,8BAAsB,qBAAqB;;IAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkDG;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,EACjC,MAAM,CAAC,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O,MAAM,oCAAoC;;;;;;;;;;iBAM/C,CAAA;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAA;AAMD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;EAAiC,CAAA;AAC5D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;iBAKrC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAQD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAShC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
|
|
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,UAAU,EACV,eAAe,EACf,aAAa,EACb,WAAW,EACX,aAAa,EACb,UAAU,EACX,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,EACL,eAAe,EACf,cAAc,EACd,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACpC,MAAM,gCAAgC,CAAA;AAEvC,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,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CAAC,CAAA;AAE3D;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;iBAKrC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAQD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAShC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
|
|
@@ -5,28 +5,27 @@ import { ComponentHandle } from "../../../handles";
|
|
|
5
5
|
* {@linkcode PluginDesignCreateOpeningOptions} and by the bulk item schemas in
|
|
6
6
|
* `bulk-items.ts`, so singular and plural openings validate identically.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* `
|
|
11
|
-
*
|
|
8
|
+
* `facing` and `hinge` are WORLD POINTS, not directions: `facing` sits on the
|
|
9
|
+
* side of the wall the leaf swings open to (where the plan symbol draws the
|
|
10
|
+
* swing arc); `hinge` sits near the jamb the leaf is hinged on — the item is
|
|
11
|
+
* reflected along the wall so its hinged jamb is the one nearer that point.
|
|
12
|
+
* Either may be omitted (engine-chosen side / the catalog item's authored
|
|
13
|
+
* hinge side). Neither has a visible effect on symmetric items such as
|
|
14
|
+
* sliders or fixed windows.
|
|
12
15
|
*
|
|
13
16
|
* | Property | Type | Description |
|
|
14
17
|
* |---|---|---|
|
|
15
|
-
* | `
|
|
16
|
-
* | `version` | `number`? | Exact family version; newest known by default |
|
|
17
|
-
* | `values` | `Record<string, number \| string>`? | Authored instance parameters; numeric lengths use Snaptrude units |
|
|
18
|
+
* | `catalogId` | `string` | Library id: team `_id` or general `fullName` |
|
|
18
19
|
* | `hostWall` | {@linkcode ComponentHandle} | The wall to host the opening |
|
|
19
20
|
* | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
|
|
20
21
|
* | `facing` | {@linkcode Vec3Handle}? | World point on the side of the wall the opening swings open to (default engine-chosen) |
|
|
21
|
-
* | `hinge` | {@linkcode Vec3Handle}? | World point near the hinged
|
|
22
|
+
* | `hinge` | {@linkcode Vec3Handle}? | World point near the jamb the opening is hinged on (default the catalog item's authored side) |
|
|
22
23
|
* | `label` | `string`? | Instance name (optional) |
|
|
23
|
-
* | `width` | `number`? |
|
|
24
|
-
* | `height` | `number`? |
|
|
24
|
+
* | `width` | `number`? | Width override (Snaptrude units, > 0; default the catalog item's) |
|
|
25
|
+
* | `height` | `number`? | Height override (Snaptrude units, > 0; default the catalog item's) |
|
|
25
26
|
*/
|
|
26
27
|
export declare const PluginOpeningBaseOptions: {
|
|
27
|
-
|
|
28
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
28
|
+
catalogId: z.ZodString;
|
|
30
29
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
31
30
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
32
31
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opening-fields.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/opening-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAc,MAAM,kBAAkB,CAAA;AAE9D
|
|
1
|
+
{"version":3,"file":"opening-fields.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/opening-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAc,MAAM,kBAAkB,CAAA;AAE9D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;CASpC,CAAA"}
|