@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.
Files changed (59) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/api/analysis/daylight.d.ts +5 -5
  3. package/dist/api/analysis/solar.d.ts +2 -2
  4. package/dist/api/core/camera/index.d.ts +418 -0
  5. package/dist/api/core/camera/index.d.ts.map +1 -1
  6. package/dist/api/design/bim.d.ts +209 -0
  7. package/dist/api/design/bim.d.ts.map +1 -0
  8. package/dist/api/design/catalog.d.ts +242 -0
  9. package/dist/api/design/catalog.d.ts.map +1 -0
  10. package/dist/api/design/create/bulk-items.d.ts +40 -21
  11. package/dist/api/design/create/bulk-items.d.ts.map +1 -1
  12. package/dist/api/design/create/index.d.ts +120 -97
  13. package/dist/api/design/create/index.d.ts.map +1 -1
  14. package/dist/api/design/create/opening-fields.d.ts +13 -12
  15. package/dist/api/design/create/opening-fields.d.ts.map +1 -1
  16. package/dist/api/design/doors/index.d.ts +18 -24
  17. package/dist/api/design/doors/index.d.ts.map +1 -1
  18. package/dist/api/design/family.d.ts +576 -12
  19. package/dist/api/design/family.d.ts.map +1 -1
  20. package/dist/api/design/index.d.ts +16 -0
  21. package/dist/api/design/index.d.ts.map +1 -1
  22. package/dist/api/design/networks.d.ts +1703 -0
  23. package/dist/api/design/networks.d.ts.map +1 -0
  24. package/dist/api/design/query/index.d.ts +30 -30
  25. package/dist/api/design/selection/index.d.ts +10 -10
  26. package/dist/api/design/types/index.d.ts +40 -24
  27. package/dist/api/design/types/index.d.ts.map +1 -1
  28. package/dist/api/design/update/index.d.ts +40 -3
  29. package/dist/api/design/update/index.d.ts.map +1 -1
  30. package/dist/api/design/windows/index.d.ts +8 -8
  31. package/dist/api/design/windows/index.d.ts.map +1 -1
  32. package/dist/api/presentation/aiInspiration.d.ts +10 -10
  33. package/dist/api/presentation/index.d.ts +9 -0
  34. package/dist/api/presentation/index.d.ts.map +1 -1
  35. package/dist/api/presentation/walkthroughs.d.ts +1350 -0
  36. package/dist/api/presentation/walkthroughs.d.ts.map +1 -0
  37. package/dist/index.cjs +3262 -2185
  38. package/dist/index.cjs.map +1 -1
  39. package/dist/index.js +3153 -2185
  40. package/dist/index.js.map +1 -1
  41. package/package.json +1 -1
  42. package/scripts/generate-manifest.mjs +5 -0
  43. package/src/api/core/camera/index.ts +400 -1
  44. package/src/api/design/bim.ts +121 -0
  45. package/src/api/design/catalog.ts +128 -0
  46. package/src/api/design/create/bulk-items.ts +23 -16
  47. package/src/api/design/create/index.ts +129 -119
  48. package/src/api/design/create/opening-fields.ts +15 -12
  49. package/src/api/design/doors/index.ts +58 -42
  50. package/src/api/design/family.ts +470 -17
  51. package/src/api/design/index.ts +34 -4
  52. package/src/api/design/networks.ts +607 -0
  53. package/src/api/design/types/index.ts +31 -24
  54. package/src/api/design/update/index.ts +41 -3
  55. package/src/api/design/windows/index.ts +40 -22
  56. package/src/api/presentation/index.ts +9 -0
  57. package/src/api/presentation/walkthroughs.ts +1201 -0
  58. package/api-manifest.full.json +0 -8930
  59. 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
- * `getSwingDirection` is a DERIVED read (no persisted field) — computed from the placed
11
- * mesh's orientation: stand on the side the door swings open to, facing it; `'left'`
12
- * when the hinged jamb is on your left. `mirror` reflects the door about one of its own
13
- * axes (undoable, one command): `'x'` flips the swing side, `'z'` swaps the hinged jamb;
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 the placeable door library — plain value records keyed by a library id
19
- * (team `_id` or general `fullName`), NOT handles — and feed `design.create.door`.
20
- * They are network-backed but carry no `Async` suffix (§6.6) and never throw
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 a door's full dimensions in one call — width along the wall, vertical
106
- * height, and thickness through the wall — measured in the door's local
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
- * Get the floor a door is hosted on — the storey/level component that
127
- * supports the door.
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
- * Get a door's swing (hinge) handedness. Stand on the side the door swings
150
- * open to, facing the door: `'left'` when the hinged jamb is on your left,
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
- * Mirror a door about its own axes. `'x'` (default) flips the swing side —
173
- * the door opens to the other side of the wall; `'z'` swaps the hinged jamb
174
- * (left-hand ↔ right-hand, same swing side); `'y'` turns it upside down.
175
- * Undoable as a single command.
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;;;;;;;;;;;;;;;;;;GAkBG;AACH,8BAAsB,oBAAoB;;IAGxC;;;;;;;;;;;;;;;;;;OAkBG;aACa,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,eAAe,CAAC,MAA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