@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
|
@@ -149,8 +149,8 @@ export type PluginDaylightMetric = z.infer<typeof PluginDaylightMetric>;
|
|
|
149
149
|
export declare const PluginDaylightRunStatus: z.ZodEnum<{
|
|
150
150
|
complete: "complete";
|
|
151
151
|
failed: "failed";
|
|
152
|
-
cancelled: "cancelled";
|
|
153
152
|
running: "running";
|
|
153
|
+
cancelled: "cancelled";
|
|
154
154
|
}>;
|
|
155
155
|
export type PluginDaylightRunStatus = z.infer<typeof PluginDaylightRunStatus>;
|
|
156
156
|
/**
|
|
@@ -419,8 +419,8 @@ export type PluginDaylightSensorRecord = z.infer<typeof PluginDaylightSensorReco
|
|
|
419
419
|
*/
|
|
420
420
|
export declare const PluginDaylightAggregateScope: z.ZodEnum<{
|
|
421
421
|
storey: "storey";
|
|
422
|
-
project: "project";
|
|
423
422
|
space: "space";
|
|
423
|
+
project: "project";
|
|
424
424
|
}>;
|
|
425
425
|
export type PluginDaylightAggregateScope = z.infer<typeof PluginDaylightAggregateScope>;
|
|
426
426
|
/**
|
|
@@ -438,8 +438,8 @@ export type PluginDaylightAggregateScope = z.infer<typeof PluginDaylightAggregat
|
|
|
438
438
|
export declare const PluginDaylightAggregate: z.ZodObject<{
|
|
439
439
|
scope: z.ZodEnum<{
|
|
440
440
|
storey: "storey";
|
|
441
|
-
project: "project";
|
|
442
441
|
space: "space";
|
|
442
|
+
project: "project";
|
|
443
443
|
}>;
|
|
444
444
|
id: z.ZodNullable<z.ZodString>;
|
|
445
445
|
analysisAreaM2: z.ZodNumber;
|
|
@@ -521,8 +521,8 @@ export declare const PluginDaylightResults: z.ZodObject<{
|
|
|
521
521
|
status: z.ZodEnum<{
|
|
522
522
|
complete: "complete";
|
|
523
523
|
failed: "failed";
|
|
524
|
-
cancelled: "cancelled";
|
|
525
524
|
running: "running";
|
|
525
|
+
cancelled: "cancelled";
|
|
526
526
|
}>;
|
|
527
527
|
runId: z.ZodOptional<z.ZodString>;
|
|
528
528
|
sensors: z.ZodArray<z.ZodObject<{
|
|
@@ -540,8 +540,8 @@ export declare const PluginDaylightResults: z.ZodObject<{
|
|
|
540
540
|
aggregates: z.ZodArray<z.ZodObject<{
|
|
541
541
|
scope: z.ZodEnum<{
|
|
542
542
|
storey: "storey";
|
|
543
|
-
project: "project";
|
|
544
543
|
space: "space";
|
|
544
|
+
project: "project";
|
|
545
545
|
}>;
|
|
546
546
|
id: z.ZodNullable<z.ZodString>;
|
|
547
547
|
analysisAreaM2: z.ZodNumber;
|
|
@@ -70,8 +70,8 @@ export declare abstract class PluginAnalysisSolarApi {
|
|
|
70
70
|
export declare const PluginSolarRunStatus: z.ZodEnum<{
|
|
71
71
|
complete: "complete";
|
|
72
72
|
failed: "failed";
|
|
73
|
-
cancelled: "cancelled";
|
|
74
73
|
running: "running";
|
|
74
|
+
cancelled: "cancelled";
|
|
75
75
|
}>;
|
|
76
76
|
export type PluginSolarRunStatus = z.infer<typeof PluginSolarRunStatus>;
|
|
77
77
|
/**
|
|
@@ -198,8 +198,8 @@ export declare const PluginSolarSampleGridResult: z.ZodObject<{
|
|
|
198
198
|
status: z.ZodEnum<{
|
|
199
199
|
complete: "complete";
|
|
200
200
|
failed: "failed";
|
|
201
|
-
cancelled: "cancelled";
|
|
202
201
|
running: "running";
|
|
202
|
+
cancelled: "cancelled";
|
|
203
203
|
}>;
|
|
204
204
|
mode: z.ZodEnum<{
|
|
205
205
|
range: "range";
|
|
@@ -16,11 +16,6 @@ import { Vec3Handle } from "../../../handles";
|
|
|
16
16
|
* Positions are world coordinates in internal `babylon` units (1 unit =
|
|
17
17
|
* 0.254 m, Y up); yaw is degrees clockwise from +z seen from above, pitch is
|
|
18
18
|
* degrees above level.
|
|
19
|
-
*
|
|
20
|
-
* While Present mode is open these calls set the Design frame a view saved in
|
|
21
|
-
* Present (`presentation.views.create`) is taken from; they never move the
|
|
22
|
-
* Present sheet canvas. To pan, zoom or screenshot the Present canvas, use
|
|
23
|
-
* {@linkcode PluginPresentationCameraApi} (`presentation.camera`).
|
|
24
19
|
*/
|
|
25
20
|
export declare abstract class PluginCameraApi {
|
|
26
21
|
constructor();
|
|
@@ -28,10 +23,6 @@ export declare abstract class PluginCameraApi {
|
|
|
28
23
|
* Point the camera: place its eye at `eye` looking toward `target` (world
|
|
29
24
|
* coordinates, internal `babylon` units). View-state only — not undoable.
|
|
30
25
|
*
|
|
31
|
-
* While Present is open this sets the Design frame a view saved in Present
|
|
32
|
-
* is taken from; it never moves the Present sheet canvas; use
|
|
33
|
-
* `presentation.camera` for that.
|
|
34
|
-
*
|
|
35
26
|
* @param eye - Camera position as a {@linkcode Vec3Handle}
|
|
36
27
|
* @param target - Point the camera looks at as a {@linkcode Vec3Handle}
|
|
37
28
|
* @returns `true` once the camera has been positioned.
|
|
@@ -54,10 +45,6 @@ export declare abstract class PluginCameraApi {
|
|
|
54
45
|
* perspective) view. Mirrors the canvas view menu. View-state only — not
|
|
55
46
|
* undoable. The orthographic presets exit 2D mode first if needed.
|
|
56
47
|
*
|
|
57
|
-
* While Present is open this sets the Design frame a view saved in Present
|
|
58
|
-
* is taken from; it never moves the Present sheet canvas; use
|
|
59
|
-
* `presentation.camera` for that.
|
|
60
|
-
*
|
|
61
48
|
* @param view - The standard view to snap to ({@linkcode PluginStandardView})
|
|
62
49
|
* @returns `true` once the view has been applied.
|
|
63
50
|
*
|
|
@@ -94,10 +81,6 @@ export declare abstract class PluginCameraApi {
|
|
|
94
81
|
* 2D/3D toggle: `3d` enters the isometric perspective view, `2d` drops to the
|
|
95
82
|
* orthographic plan of the active storey. View-state only — not undoable.
|
|
96
83
|
*
|
|
97
|
-
* While Present is open this sets the Design frame a view saved in Present
|
|
98
|
-
* is taken from; it never moves the Present sheet canvas; use
|
|
99
|
-
* `presentation.camera` for that.
|
|
100
|
-
*
|
|
101
84
|
* @param mode - `"2d"` or `"3d"` ({@linkcode PluginCameraMode})
|
|
102
85
|
* @returns `true` once the mode switch has been requested.
|
|
103
86
|
*
|
|
@@ -140,10 +123,6 @@ export declare abstract class PluginCameraApi {
|
|
|
140
123
|
* `"orthographic"` is accepted as a no-op, while `"perspective"` is
|
|
141
124
|
* rejected — switch to 3D first via `setMode("3d")`.
|
|
142
125
|
*
|
|
143
|
-
* While Present is open this sets the Design frame a view saved in Present
|
|
144
|
-
* is taken from; it never moves the Present sheet canvas; use
|
|
145
|
-
* `presentation.camera` for that.
|
|
146
|
-
*
|
|
147
126
|
* @param projection - `"perspective"` or `"orthographic"` ({@linkcode PluginCameraProjection})
|
|
148
127
|
* @returns `true` once the projection has been applied.
|
|
149
128
|
*
|
|
@@ -164,10 +143,6 @@ export declare abstract class PluginCameraApi {
|
|
|
164
143
|
* action. View-state only — not undoable. Canonical home of the zoom-extents
|
|
165
144
|
* read (the deprecated `core.zoom.extents`).
|
|
166
145
|
*
|
|
167
|
-
* While Present is open this sets the Design frame a view saved in Present
|
|
168
|
-
* is taken from; it never moves the Present sheet canvas; use
|
|
169
|
-
* `presentation.camera` for that.
|
|
170
|
-
*
|
|
171
146
|
* @returns `true` once the camera has been framed to the scene.
|
|
172
147
|
*
|
|
173
148
|
* @examplePrompt Zoom out so I can see the whole model
|
|
@@ -186,10 +161,6 @@ export declare abstract class PluginCameraApi {
|
|
|
186
161
|
* undoable. Canonical home of the zoom-to-selection read (the deprecated
|
|
187
162
|
* `core.zoom.selection`).
|
|
188
163
|
*
|
|
189
|
-
* While Present is open this sets the Design frame a view saved in Present
|
|
190
|
-
* is taken from; it never moves the Present sheet canvas; use
|
|
191
|
-
* `presentation.camera` for that.
|
|
192
|
-
*
|
|
193
164
|
* @returns `true` if there was a selection to frame; `false` if nothing is
|
|
194
165
|
* selected (no-op).
|
|
195
166
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/camera/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAkB,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7D
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/camera/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAkB,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7D;;;;;;;;;;;;;;;GAeG;AACH,8BAAsB,eAAe;;IAGnC;;;;;;;;;;;;;;;;;;OAkBG;aACa,QAAQ,CACtB,GAAG,EAAE,UAAU,EACf,MAAM,EAAE,UAAU,GACjB,eAAe,CAAC,OAAO,CAAC;IAE3B;;;;;;;;;;;;;;;;;;;OAmBG;aACa,eAAe,CAC7B,IAAI,EAAE,kBAAkB,GACvB,eAAe,CAAC,OAAO,CAAC;IAE3B;;;;;;;;;;;;;;OAcG;aACa,OAAO,IAAI,eAAe,CAAC,gBAAgB,CAAC;IAE5D;;;;;;;;;;;;;;;;;OAiBG;aACa,OAAO,CAAC,IAAI,EAAE,gBAAgB,GAAG,eAAe,CAAC,OAAO,CAAC;IAEzE;;;;;;;;;;;;;;;;OAgBG;aACa,aAAa,IAAI,eAAe,CAAC,sBAAsB,CAAC;IAExE;;;;;;;;;;;;;;;;;;;;;;;OAuBG;aACa,aAAa,CAC3B,UAAU,EAAE,sBAAsB,GACjC,eAAe,CAAC,OAAO,CAAC;IAE3B;;;;;;;;;;;;;;;;OAgBG;aACa,WAAW,IAAI,eAAe,CAAC,OAAO,CAAC;IAEvD;;;;;;;;;;;;;;;;;OAiBG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AM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,wCAAwC,CAChD,CAAA"}
|
|
@@ -4,21 +4,12 @@ import { PluginApiReturn } from "../../../types";
|
|
|
4
4
|
*
|
|
5
5
|
* Frame the viewport camera onto scene geometry — mirrors the canvas zoom menu
|
|
6
6
|
* ("Zoom extents" / "Zoom to selection"). Accessed via `snaptrude.core.zoom`.
|
|
7
|
-
*
|
|
8
|
-
* While Present mode is open these calls set the Design frame a view saved in
|
|
9
|
-
* Present (`presentation.views.create`) is taken from; they never move the
|
|
10
|
-
* Present sheet canvas. To pan, zoom or screenshot the Present canvas, use
|
|
11
|
-
* {@linkcode PluginPresentationCameraApi} (`presentation.camera`).
|
|
12
7
|
*/
|
|
13
8
|
export declare abstract class PluginZoomApi {
|
|
14
9
|
constructor();
|
|
15
10
|
/**
|
|
16
11
|
* Zoom (fit) the camera to all geometry in the scene — the "zoom extents" action.
|
|
17
12
|
*
|
|
18
|
-
* While Present is open this sets the Design frame a view saved in Present
|
|
19
|
-
* is taken from; it never moves the Present sheet canvas; use
|
|
20
|
-
* `presentation.camera` for that.
|
|
21
|
-
*
|
|
22
13
|
* @returns `true` once the camera has been framed to the scene.
|
|
23
14
|
*
|
|
24
15
|
* @examplePrompt Zoom out so I can see the whole model
|
|
@@ -38,10 +29,6 @@ export declare abstract class PluginZoomApi {
|
|
|
38
29
|
/**
|
|
39
30
|
* Zoom (fit) the camera to the current selection.
|
|
40
31
|
*
|
|
41
|
-
* While Present is open this sets the Design frame a view saved in Present
|
|
42
|
-
* is taken from; it never moves the Present sheet canvas; use
|
|
43
|
-
* `presentation.camera` for that.
|
|
44
|
-
*
|
|
45
32
|
* @returns `true` if there was a selection to frame; `false` if nothing is
|
|
46
33
|
* selected (no-op).
|
|
47
34
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/zoom/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/zoom/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD;;;;;GAKG;AACH,8BAAsB,aAAa;;IAGjC;;;;;;;;;;;;;;;;;OAiBG;aACa,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC;IAEnD;;;;;;;;;;;;;;;;;OAiBG;aACa,SAAS,IAAI,eAAe,CAAC,OAAO,CAAC;CACtD"}
|
|
@@ -49,7 +49,7 @@ export type PluginWallTopProfile = z.infer<typeof PluginWallTopProfile>;
|
|
|
49
49
|
* | `profile` | {@linkcode ProfileHandle} | Ordered curve chain (wall centerlines) |
|
|
50
50
|
* | `height` | `number`? | Wall height (Snaptrude units, > 0; default engine default) |
|
|
51
51
|
* | `thickness` | `number`? | Wall thickness (Snaptrude units, > 0; default: `wallType`'s total layer thickness when given, else engine default) |
|
|
52
|
-
* | `wallType` |
|
|
52
|
+
* | `wallType` | `string`? | Wall type name from `design.types.list("wall")` — layers/material/thickness defaults (default generic) |
|
|
53
53
|
* | `storey` | `number`? (int) | Target storey (must exist) — the run's walls are assigned + lifted to its base in the same undo entry (default: geometry-derived) |
|
|
54
54
|
* | `topProfiles` | ({@linkcode PluginWallTopProfile} \| `null`)[]? | Top edge per curve of `profile`, same order; a `null` or missing entry keeps that wall flat at `height`. Raked / gabled walls (straight curves only) |
|
|
55
55
|
*/
|
|
@@ -57,16 +57,12 @@ export declare const PluginCreateWallRunItem: z.ZodObject<{
|
|
|
57
57
|
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
58
58
|
height: z.ZodOptional<z.ZodNumber>;
|
|
59
59
|
thickness: z.ZodOptional<z.ZodNumber>;
|
|
60
|
-
wallType: z.ZodOptional<z.
|
|
61
|
-
id: z.ZodString;
|
|
62
|
-
version: z.ZodNumber;
|
|
63
|
-
}, z.core.$strip>]>>;
|
|
60
|
+
wallType: z.ZodOptional<z.ZodString>;
|
|
64
61
|
storey: z.ZodOptional<z.ZodNumber>;
|
|
65
62
|
topProfiles: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
66
63
|
along: z.ZodNumber;
|
|
67
64
|
height: z.ZodNumber;
|
|
68
65
|
}, z.core.$strip>>>>>;
|
|
69
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
70
66
|
}, z.core.$strip>;
|
|
71
67
|
export type PluginCreateWallRunItem = z.infer<typeof PluginCreateWallRunItem>;
|
|
72
68
|
/** The `items` array of {@linkcode PluginDesignCreateApi.wallRuns} (1…1000). */
|
|
@@ -74,16 +70,12 @@ export declare const PluginCreateWallRunItems: z.ZodArray<z.ZodObject<{
|
|
|
74
70
|
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
75
71
|
height: z.ZodOptional<z.ZodNumber>;
|
|
76
72
|
thickness: z.ZodOptional<z.ZodNumber>;
|
|
77
|
-
wallType: z.ZodOptional<z.
|
|
78
|
-
id: z.ZodString;
|
|
79
|
-
version: z.ZodNumber;
|
|
80
|
-
}, z.core.$strip>]>>;
|
|
73
|
+
wallType: z.ZodOptional<z.ZodString>;
|
|
81
74
|
storey: z.ZodOptional<z.ZodNumber>;
|
|
82
75
|
topProfiles: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
83
76
|
along: z.ZodNumber;
|
|
84
77
|
height: z.ZodNumber;
|
|
85
78
|
}, z.core.$strip>>>>>;
|
|
86
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
87
79
|
}, z.core.$strip>>;
|
|
88
80
|
export type PluginCreateWallRunItems = z.infer<typeof PluginCreateWallRunItems>;
|
|
89
81
|
/**
|
|
@@ -111,28 +103,25 @@ export declare const PluginCreateFloorItems: z.ZodArray<z.ZodObject<{
|
|
|
111
103
|
export type PluginCreateFloorItems = z.infer<typeof PluginCreateFloorItems>;
|
|
112
104
|
/**
|
|
113
105
|
* One door to place via {@linkcode PluginDesignCreateApi.doors} — the same
|
|
114
|
-
* fields as a `"door"` {@linkcode PluginDesignCreateOpeningOptions}
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
106
|
+
* fields as a `"door"` {@linkcode PluginDesignCreateOpeningOptions}, so the
|
|
107
|
+
* size overrides singular {@linkcode PluginDesignCreateApi.door} lacks are
|
|
108
|
+
* available per item. `facing` and `hinge` are WORLD POINTS, not directions:
|
|
109
|
+
* `facing` on the side of the wall the door swings open to, `hinge` near the
|
|
110
|
+
* jamb it is hinged on. Rejects unknown fields.
|
|
118
111
|
*
|
|
119
112
|
* | Property | Type | Description |
|
|
120
113
|
* |---|---|---|
|
|
121
|
-
* | `
|
|
122
|
-
* | `version` | `number`? | Exact version; newest known by default |
|
|
123
|
-
* | `values` | `Record<string, number \| string>`? | Authored parameter overrides |
|
|
114
|
+
* | `catalogId` | `string` | Library id: team `_id` or general `fullName` |
|
|
124
115
|
* | `hostWall` | {@linkcode ComponentHandle} | The wall to host the door |
|
|
125
116
|
* | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
|
|
126
117
|
* | `facing` | {@linkcode Vec3Handle}? | World point on the side the door swings open to (default engine-chosen) |
|
|
127
|
-
* | `hinge` | {@linkcode Vec3Handle}? | World point near the hinged
|
|
118
|
+
* | `hinge` | {@linkcode Vec3Handle}? | World point near the jamb the door is hinged on (default the catalog item's authored side) |
|
|
128
119
|
* | `label` | `string`? | Instance name (optional) |
|
|
129
|
-
* | `width` | `number`? |
|
|
130
|
-
* | `height` | `number`? |
|
|
120
|
+
* | `width` | `number`? | Width override (Snaptrude units, > 0; default the catalog item's) |
|
|
121
|
+
* | `height` | `number`? | Height override (Snaptrude units, > 0; default the catalog item's) |
|
|
131
122
|
*/
|
|
132
123
|
export declare const PluginCreateDoorItem: z.ZodObject<{
|
|
133
|
-
|
|
134
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
135
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
124
|
+
catalogId: z.ZodString;
|
|
136
125
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
|
|
137
126
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
138
127
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
@@ -144,9 +133,7 @@ export declare const PluginCreateDoorItem: z.ZodObject<{
|
|
|
144
133
|
export type PluginCreateDoorItem = z.infer<typeof PluginCreateDoorItem>;
|
|
145
134
|
/** The `items` array of {@linkcode PluginDesignCreateApi.doors} (1…1000). */
|
|
146
135
|
export declare const PluginCreateDoorItems: z.ZodArray<z.ZodObject<{
|
|
147
|
-
|
|
148
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
149
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
136
|
+
catalogId: z.ZodString;
|
|
150
137
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
|
|
151
138
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
152
139
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
@@ -167,23 +154,19 @@ export type PluginCreateDoorItems = z.infer<typeof PluginCreateDoorItems>;
|
|
|
167
154
|
*
|
|
168
155
|
* | Property | Type | Description |
|
|
169
156
|
* |---|---|---|
|
|
170
|
-
* | `
|
|
171
|
-
* | `version` | `number`? | Exact version; newest known by default |
|
|
172
|
-
* | `values` | `Record<string, number \| string>`? | Authored parameter overrides; numeric lengths use SU |
|
|
157
|
+
* | `catalogId` | `string` | Library id: team `_id` or general `fullName` |
|
|
173
158
|
* | `hostWall` | {@linkcode ComponentHandle} | The wall to host the window |
|
|
174
159
|
* | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
|
|
175
160
|
* | `facing` | {@linkcode Vec3Handle}? | World point on the side the window opens to (default engine-chosen) |
|
|
176
|
-
* | `hinge` | {@linkcode Vec3Handle}? | World point near the hinged
|
|
161
|
+
* | `hinge` | {@linkcode Vec3Handle}? | World point near the jamb the window is hinged on (default the catalog item's authored side) |
|
|
177
162
|
* | `label` | `string`? | Instance name (optional) |
|
|
178
|
-
* | `width` | `number`? |
|
|
179
|
-
* | `height` | `number`? |
|
|
180
|
-
* | `sillHeight` | `number`? |
|
|
163
|
+
* | `width` | `number`? | Width override (Snaptrude units, > 0; default the catalog item's) |
|
|
164
|
+
* | `height` | `number`? | Height override (Snaptrude units, > 0; default the catalog item's) |
|
|
165
|
+
* | `sillHeight` | `number`? | Wall base to window bottom (Snaptrude units, ≥ 0; default the catalog item's) |
|
|
181
166
|
*/
|
|
182
167
|
export declare const PluginCreateWindowItem: z.ZodObject<{
|
|
183
168
|
sillHeight: z.ZodOptional<z.ZodNumber>;
|
|
184
|
-
|
|
185
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
186
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
169
|
+
catalogId: z.ZodString;
|
|
187
170
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
|
|
188
171
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
189
172
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
@@ -196,9 +179,7 @@ export type PluginCreateWindowItem = z.infer<typeof PluginCreateWindowItem>;
|
|
|
196
179
|
/** The `items` array of {@linkcode PluginDesignCreateApi.windows} (1…1000). */
|
|
197
180
|
export declare const PluginCreateWindowItems: z.ZodArray<z.ZodObject<{
|
|
198
181
|
sillHeight: z.ZodOptional<z.ZodNumber>;
|
|
199
|
-
|
|
200
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
201
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
182
|
+
catalogId: z.ZodString;
|
|
202
183
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
|
|
203
184
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
204
185
|
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":"bulk-items.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/bulk-items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"bulk-items.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/bulk-items.ts"],"names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