@snaptrude/plugin-core 0.9.15 → 0.9.16-networks-20261009.1
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/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 +418 -0
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/design/bim.d.ts +209 -0
- package/dist/api/design/bim.d.ts.map +1 -0
- package/dist/api/design/catalog.d.ts +242 -0
- package/dist/api/design/catalog.d.ts.map +1 -0
- package/dist/api/design/create/bulk-items.d.ts +40 -21
- package/dist/api/design/create/bulk-items.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +120 -97
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/create/opening-fields.d.ts +13 -12
- package/dist/api/design/create/opening-fields.d.ts.map +1 -1
- package/dist/api/design/doors/index.d.ts +18 -24
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/family.d.ts +576 -12
- package/dist/api/design/family.d.ts.map +1 -1
- package/dist/api/design/index.d.ts +16 -0
- package/dist/api/design/index.d.ts.map +1 -1
- package/dist/api/design/networks.d.ts +1703 -0
- package/dist/api/design/networks.d.ts.map +1 -0
- 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 +40 -24
- package/dist/api/design/types/index.d.ts.map +1 -1
- package/dist/api/design/update/index.d.ts +40 -3
- 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/index.d.ts +9 -0
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/walkthroughs.d.ts +1350 -0
- package/dist/api/presentation/walkthroughs.d.ts.map +1 -0
- package/dist/index.cjs +3262 -2185
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3153 -2185
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/generate-manifest.mjs +5 -0
- package/src/api/core/camera/index.ts +400 -1
- package/src/api/design/bim.ts +121 -0
- package/src/api/design/catalog.ts +128 -0
- package/src/api/design/create/bulk-items.ts +23 -16
- package/src/api/design/create/index.ts +129 -119
- package/src/api/design/create/opening-fields.ts +15 -12
- package/src/api/design/doors/index.ts +58 -42
- package/src/api/design/family.ts +470 -17
- package/src/api/design/index.ts +34 -4
- package/src/api/design/networks.ts +607 -0
- package/src/api/design/types/index.ts +31 -24
- package/src/api/design/update/index.ts +41 -3
- package/src/api/design/windows/index.ts +40 -22
- package/src/api/presentation/index.ts +9 -0
- package/src/api/presentation/walkthroughs.ts +1201 -0
- package/api-manifest.full.json +0 -8930
- package/api-manifest.json +0 -9318
|
@@ -7,18 +7,15 @@ import { PluginDesignChangeResult } from "../lock";
|
|
|
7
7
|
* `design.create.door`; generic reads (`listDoors`/`getHost`/`getProperties`) live at
|
|
8
8
|
* `design.query.*`. Door targets are {@linkcode ComponentHandle}s.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* `setType` is intentionally absent (the engine has no in-place re-type —
|
|
15
|
-
* it would require delete+recreate).
|
|
10
|
+
* PC-only: dimensions read the evaluated opening. Setters write declared width/height
|
|
11
|
+
* parameters, never mesh scale. Missing or derived controls reject. Linked copies follow
|
|
12
|
+
* the shared edit. Use design.family.setParameters for other parameters.
|
|
13
|
+
* getSwingDirection reads hand. mirror changes declared swing or hand controls.
|
|
16
14
|
*
|
|
17
15
|
* The **catalog** reads (`listCatalogGroups`/`listCatalog`/`getCatalogItem`/`exists`)
|
|
18
|
-
* browse
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* (`[]`/`null`). The {@linkcode PluginObjectCatalogGroup} / {@linkcode PluginObjectCatalogItem}
|
|
16
|
+
* browse saved hosted door families, keyed by definition ID, and feed design.create.door.
|
|
17
|
+
* They reject if saved definitions cannot be loaded completely. A missing item returns null.
|
|
18
|
+
* The {@linkcode PluginObjectCatalogGroup} / {@linkcode PluginObjectCatalogItem}
|
|
22
19
|
* DTOs are shared with `design.windows`.
|
|
23
20
|
*/
|
|
24
21
|
export declare abstract class PluginDesignDoorsApi {
|
|
@@ -102,9 +99,8 @@ export declare abstract class PluginDesignDoorsApi {
|
|
|
102
99
|
*/
|
|
103
100
|
abstract getHeight(door: ComponentHandle): PluginApiReturn<number | null>;
|
|
104
101
|
/**
|
|
105
|
-
* Get
|
|
106
|
-
*
|
|
107
|
-
* oriented space. Parity with {@linkcode PluginDesignWindowsApi.getDimensions}.
|
|
102
|
+
* Get evaluated opening width/height and host thickness, in Snaptrude units.
|
|
103
|
+
* The opening can include allowances beyond the width/height input parameters.
|
|
108
104
|
*
|
|
109
105
|
* @param door The door to query
|
|
110
106
|
* @returns The dimensions, or `null`
|
|
@@ -123,8 +119,8 @@ export declare abstract class PluginDesignDoorsApi {
|
|
|
123
119
|
*/
|
|
124
120
|
abstract getDimensions(door: ComponentHandle): PluginApiReturn<PluginDoorDimensions | null>;
|
|
125
121
|
/**
|
|
126
|
-
*
|
|
127
|
-
*
|
|
122
|
+
* Returns null for recipe doors. Room floors own doorway infill; there is
|
|
123
|
+
* no separate support-floor entity.
|
|
128
124
|
*
|
|
129
125
|
* @param door The door to query
|
|
130
126
|
* @returns The support floor {@linkcode ComponentHandle}, or `null`
|
|
@@ -146,11 +142,8 @@ export declare abstract class PluginDesignDoorsApi {
|
|
|
146
142
|
*/
|
|
147
143
|
abstract getSupportFloor(door: ComponentHandle): PluginApiReturn<ComponentHandle | null>;
|
|
148
144
|
/**
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
* `'right'` when it is on your right. Derived from the placed mesh's
|
|
152
|
-
* orientation (the same reflection `mirror` and the `hinge` placement option
|
|
153
|
-
* apply), not a persisted field.
|
|
145
|
+
* Read the saved hand parameter. left means local -X; right means local +X.
|
|
146
|
+
* Returns null when the recipe does not declare that control.
|
|
154
147
|
*
|
|
155
148
|
* @param door The door to query
|
|
156
149
|
* @returns `'left'` / `'right'`, or `null` if indeterminate
|
|
@@ -169,10 +162,11 @@ export declare abstract class PluginDesignDoorsApi {
|
|
|
169
162
|
*/
|
|
170
163
|
abstract getSwingDirection(door: ComponentHandle): PluginApiReturn<"left" | "right" | null>;
|
|
171
164
|
/**
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
165
|
+
* Change authored controls in one undo step: x (default) toggles swing
|
|
166
|
+
* front/back; z toggles hand left/right. The recipe must declare these enums.
|
|
167
|
+
* Axis y rejects. No mesh reflection occurs. Recipes use outputs.swingSide
|
|
168
|
+
* (1 or -1) for the adjoining room's floor ownership. A door between two
|
|
169
|
+
* room floors requires this output; a missing or invalid report rejects the cut.
|
|
176
170
|
*
|
|
177
171
|
* @param door The door to mirror
|
|
178
172
|
* @param axis Reflection axis (optional; default `'x'` — the swing-flip axis; `'z'` — the hinge-jamb axis)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/doors/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAElD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/doors/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,k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