@snaptrude/plugin-core 0.0.0-dev-20260908074328 → 0.0.0-dev-20260921132444

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 (95) hide show
  1. package/AGENTS.md +4 -0
  2. package/CHANGELOG.md +52 -16
  3. package/dist/api/core/io/import/index.d.ts +3 -1
  4. package/dist/api/core/io/import/index.d.ts.map +1 -1
  5. package/dist/api/core/mode/index.d.ts +19 -7
  6. package/dist/api/core/mode/index.d.ts.map +1 -1
  7. package/dist/api/core/tags.d.ts +81 -0
  8. package/dist/api/core/tags.d.ts.map +1 -1
  9. package/dist/api/design/create/bulk-items.d.ts +185 -0
  10. package/dist/api/design/create/bulk-items.d.ts.map +1 -0
  11. package/dist/api/design/create/grids.d.ts +132 -0
  12. package/dist/api/design/create/grids.d.ts.map +1 -0
  13. package/dist/api/design/create/index.d.ts +424 -51
  14. package/dist/api/design/create/index.d.ts.map +1 -1
  15. package/dist/api/design/create/opening-fields.d.ts +37 -0
  16. package/dist/api/design/create/opening-fields.d.ts.map +1 -0
  17. package/dist/api/design/delete/index.d.ts +6 -20
  18. package/dist/api/design/delete/index.d.ts.map +1 -1
  19. package/dist/api/design/dimensions.d.ts +427 -0
  20. package/dist/api/design/dimensions.d.ts.map +1 -0
  21. package/dist/api/design/doors/index.d.ts +20 -13
  22. package/dist/api/design/doors/index.d.ts.map +1 -1
  23. package/dist/api/design/family.d.ts +73 -5
  24. package/dist/api/design/family.d.ts.map +1 -1
  25. package/dist/api/design/grids.d.ts +237 -0
  26. package/dist/api/design/grids.d.ts.map +1 -0
  27. package/dist/api/design/index.d.ts +9 -0
  28. package/dist/api/design/index.d.ts.map +1 -1
  29. package/dist/api/design/query/grids.d.ts +287 -0
  30. package/dist/api/design/query/grids.d.ts.map +1 -0
  31. package/dist/api/design/query/index.d.ts +29 -2
  32. package/dist/api/design/query/index.d.ts.map +1 -1
  33. package/dist/api/design/query/spaces.d.ts +0 -61
  34. package/dist/api/design/query/spaces.d.ts.map +1 -1
  35. package/dist/api/design/update/index.d.ts +74 -0
  36. package/dist/api/design/update/index.d.ts.map +1 -1
  37. package/dist/api/entity/space.d.ts +0 -3
  38. package/dist/api/entity/space.d.ts.map +1 -1
  39. package/dist/api/presentation/annotate.d.ts +2 -2
  40. package/dist/api/presentation/placedViews.d.ts +1 -35
  41. package/dist/api/presentation/placedViews.d.ts.map +1 -1
  42. package/dist/api/presentation/shapes.d.ts +2 -2
  43. package/dist/api/presentation/sheets.d.ts +2 -20
  44. package/dist/api/presentation/sheets.d.ts.map +1 -1
  45. package/dist/api/program/departments.d.ts +58 -2
  46. package/dist/api/program/departments.d.ts.map +1 -1
  47. package/dist/api/program/index.d.ts +16 -6
  48. package/dist/api/program/index.d.ts.map +1 -1
  49. package/dist/api/program/labels.d.ts +355 -0
  50. package/dist/api/program/labels.d.ts.map +1 -0
  51. package/dist/api/program/metadata.d.ts +328 -0
  52. package/dist/api/program/metadata.d.ts.map +1 -0
  53. package/dist/api/program/spreadsheet.d.ts +263 -0
  54. package/dist/api/program/spreadsheet.d.ts.map +1 -1
  55. package/dist/api/workspace/index.d.ts +49 -2
  56. package/dist/api/workspace/index.d.ts.map +1 -1
  57. package/dist/errors/codes.d.ts +3 -8
  58. package/dist/errors/codes.d.ts.map +1 -1
  59. package/dist/handles.d.ts +19 -0
  60. package/dist/handles.d.ts.map +1 -1
  61. package/dist/index.cjs +2489 -1941
  62. package/dist/index.cjs.map +1 -1
  63. package/dist/index.js +2395 -1936
  64. package/dist/index.js.map +1 -1
  65. package/package.json +1 -1
  66. package/src/api/core/io/import/index.ts +11 -3
  67. package/src/api/core/mode/index.ts +19 -7
  68. package/src/api/core/tags.ts +76 -0
  69. package/src/api/design/create/bulk-items.ts +186 -0
  70. package/src/api/design/create/grids.ts +137 -0
  71. package/src/api/design/create/index.ts +472 -70
  72. package/src/api/design/create/opening-fields.ts +37 -0
  73. package/src/api/design/delete/index.ts +5 -20
  74. package/src/api/design/dimensions.ts +453 -0
  75. package/src/api/design/doors/index.ts +20 -13
  76. package/src/api/design/family.ts +51 -4
  77. package/src/api/design/grids.ts +237 -0
  78. package/src/api/design/index.ts +10 -0
  79. package/src/api/design/query/grids.ts +197 -0
  80. package/src/api/design/query/index.ts +27 -2
  81. package/src/api/design/query/spaces.ts +0 -68
  82. package/src/api/design/update/index.ts +53 -0
  83. package/src/api/entity/space.ts +0 -2
  84. package/src/api/presentation/placedViews.ts +1 -29
  85. package/src/api/presentation/sheets.ts +3 -19
  86. package/src/api/program/departments.ts +54 -2
  87. package/src/api/program/index.ts +16 -6
  88. package/src/api/program/labels.ts +332 -0
  89. package/src/api/program/metadata.ts +364 -0
  90. package/src/api/program/spreadsheet.ts +282 -0
  91. package/src/api/workspace/index.ts +51 -2
  92. package/src/errors/codes.ts +2 -30
  93. package/src/handles.ts +24 -0
  94. package/test/errors.test.mjs +0 -4
  95. package/snaptrude-plugin-core-0.11.0.tgz +0 -0
package/AGENTS.md CHANGED
@@ -180,6 +180,10 @@ These are in-browser integration tests that exercise the plugin API end-to-end.
180
180
  | `entity/referenceLine.ts` | `tests/referenceLines.ts` |
181
181
  | `entity/department.ts` | `tests/departments.ts` |
182
182
  | `entity/buildableEnvelope.ts` | `tests/buildableEnvelope.ts` |
183
+ | `program/metadata.ts` | `tests/programMetadata.ts` |
184
+ | `program/labels.ts` | `tests/programLabels.ts` |
185
+ | `program/spreadsheet.ts` (custom sheets) | `tests/spreadsheetCustomSheets.ts` |
186
+ | `core/tags.ts` (`listForComponents`) | `tests/tagsBulk.ts` |
183
187
  | `tools/selection.ts` | `tests/selection.ts` |
184
188
  | `tools/transform.ts` | `tests/transform.ts` |
185
189
  | `tools/copy.ts` | `tests/copy.ts` |
package/CHANGELOG.md CHANGED
@@ -1,27 +1,63 @@
1
1
  # @snaptrude/plugin-core
2
2
 
3
- ## 0.0.0-dev-20260908074328
3
+ ## 0.0.0-dev-20260921132444
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - a22e813: added param comps
7
+ - 6e4a055: added param comps
8
+ - 8e37e1f: `design.family`: `prepare` and `flex` warnings gain the `proportion` code — parts thinner than 0.5 mm, parts or a family larger than 50 m, a family smaller than 10 mm, each naming the parts — and `flex` now returns `warnings`.
9
+ - 2a06dd9: `design.family`: `prepare`, `flex` and `getParameters` accept a `snapshot` option and return a `snapshot` block — an isolated offscreen picture of the family (iso, front, right, top tiles with a dimension line) as a PNG data URL, so an agent can look at what it built before reporting.
8
10
 
9
- ## 0.11.0
11
+ ## 0.9.11
10
12
 
11
- ### Minor Changes
13
+ ### Patch Changes
14
+
15
+ - 7fd374e: Add `hinge` to `design.create.door` / `window` (in `options`), `doors[]` / `windows[]` items and `opening`: a world point near the jamb the leaf is hinged on; the placed item is reflected along the wall when the catalog item's authored hinge side would land on the other jamb — one undo entry, no extra command.
16
+
17
+ **BEHAVIOUR FIX — `facing`.** The host placed the swing on the side OPPOSITE the `facing` point (the interactive tool's cursor convention) while the contract said "the room it opens into". The host now matches the contract: the leaf swings open toward `facing`. Callers that passed a point on the room side get the documented result; nothing in the contract changed shape.
18
+
19
+ `design.doors.getSwingDirection` is now derived from the placed mesh's orientation (hand as seen standing on the swing side facing the door); it previously read a scaling sign that placement never sets and reported `"left"` for every door. `mirror` axis docs now say what each axis does to a door (`'x'` swing side, `'z'` hinged jamb, `'y'` upside down); behaviour unchanged.
20
+
21
+ - e325bee: Add the structural-grids API surface: queries, creators, a sparse patch updater, structural line edits, and generic-family acceptance.
22
+ - **Query** — `design.query.listGrids(filter?)` (standard `PluginEntityFilter`; `"grid"` joins `PluginEntityType`, so `listByType("grid")` works) and the field-projected `design.query.grids.get(gridId, properties[])`: `angle` (degrees, CCW about +Y), `props`, `storeyVisibility`, `wings` (per-wing spacing/tagStart/span and per-line world-space `CurveHandle`, tag, visibility, effective + override props), `bounds`. Unknown ids throw `HANDLE_INVALID`.
23
+ - **Create** — `design.create.grid(linesX, linesY, spacingX, spacingY, options?)` (free 2-wing grid; optional `angle` in degrees and `center`, which defaults to the native viewport-centre behavior), `design.create.gridFromCurve(curve, options?)` (one wing/one line — line or arc), `design.create.gridsFromMasses(masses, spacingX, spacingY, options?)` (fitted, one group per footprint cluster, lenient skipping, ONE undo unit), and `design.create.columnsFromGrids(grids, width, depth)` (columns at every line intersection, ONE undo unit).
24
+ - **Update** — `design.update.grid(grid, patch)`: GROUP-LEVEL sparse patch — `props` (default styling), absolute `angle` in degrees, and `storeyVisibility`; each changed field commits its own undoable command through the panel's setters.
25
+ - **Grids family** — `design.grids.updateWings(grid, wings[])` (per-wing `spacing`/`count`/`spanMin`/`spanMax`; a `count` change re-indexes lines — re-query) and `design.grids.updateLines(grid, lines[])` (per-line `tag`/`distanceToPrevious`|`distanceToNext` (mutually exclusive)/`props`/`visible: false` (hide-only, product parity — show the GROUP to restore all lines); hiding every remaining visible line hides the GROUP instead — native last-line rule); plus `design.grids.addLine(grid, wing, position)` and `design.grids.removeLines(grid, lines, tagPolicy?)` (`"rewrite"` default | `"preserve"`; removing the group's last line throws `OPERATION_FAILED` — delete the group instead). Every update routes through the exact setters the native panel uses — one undoable command per changed field, identical to panel edits.
26
+ - **Generic families** — grid groups are accepted by `design.transform.move`/`rotate`, `design.visibility.hide`/`show`, `design.lock`/`unlock`, `design.delete.entities`, and `design.selection`; `transform.align` and `transform.mirror` throw `OPERATION_FAILED` for grids.
27
+
28
+ Grid lines have no stable identity: every line-level operation addresses them positionally as `{ wing, line }` index pairs into the `wings` arrays returned by `grids.get`; structural edits re-index lines, so re-query after mutating.
29
+
30
+ ## 0.9.10
31
+
32
+ ### Patch Changes
33
+
34
+ - `core.mode.set("program")` now opens the Program tab (the same path as the top bar's Program button) instead of refusing with `PRECONDITION_FAILED`; it resolves once the tab has connected, and waits for the user to confirm the editor's pop-up modal when the browser blocks the window.
35
+ - `workspace.openProgramMode()` / `closeProgramMode()` — the Program-tab counterpart of `openPresentMode` / `closePresentMode`: open (awaiting the tab's connection) and close the paired Program window.
36
+
37
+ ## 0.9.9
38
+
39
+ ### Patch Changes
40
+
41
+ - Program-mode additions requested by the healthcare programming pilot (all additive; no signature changes):
42
+ - `program.metadata` — the Program Data sheet's custom columns and per-space values: `listHeaders`, `createHeader` (reuse-by-name), `get`, `list`, `update`, `updateMany`. Writes are undoable and work with the Program tab closed.
43
+ - `program.labels` — the program rows (space types) with targets: `list`, `get`, `create` (optionally `createSpaces`), `setTargetArea`, `setTargetCount`. Covers "target area of non-departments": a space inherits its label's target; departments keep `program.departments.setTargetArea`.
44
+ - `program.spreadsheet` — custom program sheets with a group-by hierarchy: `createCustomSheet`, `updateCustomSheet`, `getCustomSheet`, `listCustomSheets`, `listCustomSheetProperties`.
45
+ - `core.tags.listForComponents(componentIds?)` — every space's tags + colors in one round-trip.
46
+ - `program.departments` — `targetCount` on the department record and `setTargetCount(departmentId, targetCount)`, the count twin of `setTargetArea` (the engine stores both on the department, like on labels).
47
+
48
+ ## 0.9.7
49
+
50
+ ### Patch Changes
51
+
52
+ - 6e60c61: Add bulk `design.create` creators — `wallRuns`, `floors`, `doors`, `windows`, `furnitureItems`: one host round-trip and one undo entry per batch.
53
+
54
+ Singular creators, fixes shipped alongside (behaviour changes for existing callers):
55
+ - `floor`, `slab`, `roof`, `ceiling`, `column`, `beam`: contour holes are now cut (holed contours previously failed or lost their holes).
56
+ - `floor`: the `position` offset is applied before the creation snapshot, so it survives redo and reload and drives storey assignment.
57
+ - `furniture`: `options.label` is now also the readable label (`design.query.getLabel`); `createNewSourceMesh` can no longer skip recording a source this call brought in (the host owns source persistence, recorded exactly once across concurrent calls); refuses with `PRECONDITION_FAILED` (`engineCode: "TOOL_ACTIVE"`) while the interactive furniture tool is active. The same refusal applies to `core.io.import.model` furniture placement.
58
+ - `door`, `window`: published as one save document instead of five; undo granularity unchanged.
12
59
 
13
- - **BREAKING — `design.create.floor` returns `ComponentHandle[]`** (was a single handle): the engine may split the footprint into several floors or merge it into a pre-existing neighbour; the call returns every floor covering the requested footprint after parametric resolution (created and/or absorbing; `[floor]` for a simple create). Destructure the first element for the previous single-floor behavior.
14
-
15
- - 13c1fb5: Plugin API 0.11.0 — additive types for the ParametricGraphsV2 (PG2) remediation. Strictly additive: no existing signature or result shape changes; deployed plugins are unaffected.
16
- - **`design.query.getProperties` — `isVisible`**: new optional read-only property — whether the entity currently has a visible representation on canvas (user hide flag AND LOD/mode gating both considered). Read-only: it is deliberately NOT a `PluginEntityFilter` field.
17
- - **Error codes — four appended**: `HANDLE_STALE` (a handle the caller legitimately held that a parametric resolution — merge/split/rebuild — has since retired; the one deliberate exception to the `HANDLE_INVALID` collapse, which forged/never-issued ids still get), `KIND_HIDDEN_IN_MODE` (the entity kind has no representation in the current mode/LOD), `MERGED_INTO_EXISTING` (created geometry merged into an existing entity — use the surviving handles), `BLOCKED_IN_BIM` (operation unavailable in BIM mode). Wrong-kind targets deliberately did NOT get a new code — the existing `HANDLE_KIND_MISMATCH` already covers them.
18
- - **`design.delete.entities` — cascade report**: now returns `PluginDesignDeleteResult` — the shared change-result shape plus an optional `cascaded` `ComponentHandle[]`: components PG2 removed as a consequence (derived walls/floors/slabs of deleted spaces), returned for cache invalidation. The shared `PluginDesignChangeResult` used by lock/selection/visibility is unchanged.
19
- - **`design.create.furniture` placement is grounded**: `position.y` = bounding-box bottom, always; origin-relative placement removed (plugins recompute during the fleet upgrade).
20
- - **`design.create.walls` honors the engine's resolution**: touching curves may merge/split against existing walls; returns the actually-created set (count may differ from input curves). The 1:1-per-curve abort is removed; no `strict` flag.
21
- - **`design.update.space` / `.spaces` — `rebuilt`**: `PluginSpaceUpdateResult` gains an optional `rebuilt` boolean — a geometry update rebuilt the space's derived BIM (hosted children re-created, previous derived handles retired).
22
- - **`design.query.spaces.listGeneratedBim(space)`**: new read — the space's engine-derived BIM component handles as `{ walls, floors, slabs }` (`PluginSpaceGeneratedBim`). The set changes on merge/split — re-query after writes; this is the churn-recovery anchor for stale derived handles.
23
- - **`presentation.placedViews`**: the placed-view record gains optional `lod` (`PluginViewLod`: `"design" | "bim"`) and `inactiveBuildingMask` fields; new `setLod(shapeId, lod)` sets the level of detail a placed view renders at.
24
- - **`presentation.sheets.place` — `options.lod`**: optional `PluginViewLod` — the LOD of the placed view (default: the product's Design default).
60
+ - 2f10e6b: Add `design.dimensions` — dimension lines (Measuring Tape): `create`, `list`, `get`, `delete`, `hide`, `show`, plus the new `DimensionHandle`.
25
61
 
26
62
  ## 0.9.6
27
63
 
@@ -209,7 +209,9 @@ export declare abstract class PluginCoreIoImportApi {
209
209
  * @returns the placed {@linkcode ComponentHandle}.
210
210
  * @throws if writes are disabled, the source can't be loaded, the format is
211
211
  * unsupported, conversion/placement fails, or the converted model cannot be
212
- * found in the library after upload.
212
+ * found in the library after upload; `PRECONDITION_FAILED`
213
+ * (`details.engineCode: "TOOL_ACTIVE"`) while the interactive furniture tool is
214
+ * active — finish or cancel it first.
213
215
  *
214
216
  * @examplePrompt Import this SketchUp model onto storey 1
215
217
  * @examplePrompt Bring in this OBJ file and place it at the origin
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/io/import/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,UAAU,EACV,cAAc,EACd,aAAa,EACb,eAAe,EACf,eAAe,EAChB,MAAM,qBAAqB,CAAA;AAE5B;;;;GAIG;AACH,eAAO,MAAM,YAAY,aAKrB,CAAA;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,8BAAsB,qBAAqB;;IAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;aACa,KAAK,CACnB,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,MAAM,GACb,eAAe,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M,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB;;;iBAGhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/core/io/import/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,UAAU,EACV,cAAc,EACd,aAAa,EACb,eAAe,EACf,eAAe,EAChB,MAAM,qBAAqB,CAAA;AAE5B;;;;GAIG;AACH,eAAO,MAAM,YAAY,aAKrB,CAAA;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,8BAAsB,qBAAqB;;IAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;aACa,KAAK,CACnB,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,MAAM,GACb,eAAe,CAAC,cAAc,CAAC;IAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;aACa,GAAG,CACjB,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,GACf,eAAe,CAAC,cAAc,CAAC;IAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;aACa,GAAG,CACjB,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,GACd,eAAe,CAAC,eAAe,CAAC;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CAAA;AAEzE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB;;;;;;iBAM9B,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE,uDAAuD;AACvD,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE,2DAA2D;AAC3D,eAAO,MAAM,uBAAuB;;;;;;iBAGlC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;iBAMhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;iBASlC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;iBAE9B,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB;;;iBAGhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
@@ -34,10 +34,14 @@ export interface PluginCoreModeSetResult {
34
34
  * Not to be confused with the viewport's 2D/3D camera mode
35
35
  * (`core.camera.setMode`) or saved presentation views (`presentation.views`).
36
36
  *
37
- * `set` covers `design`, `bim`, and `present` — in-page switches.
38
- * `program` opens in its own browser tab in the product, which a plugin worker
39
- * cannot do, so `set("program")` fails with `PRECONDITION_FAILED`; `get()`
40
- * still reports `"program"` for code running in the Program tab.
37
+ * `set` covers `design`, `bim`, and `present` — in-page switches — and
38
+ * `program`, which opens the Program tab (a paired browser window) through the
39
+ * same path as the top bar's Program button. Because the open happens outside a
40
+ * user gesture the browser may block the pop-up; the editor then shows its
41
+ * "Allow pop-up to continue" modal and the tab opens when the user confirms.
42
+ * `get()` reports `"program"` only for code running in the Program tab itself.
43
+ * Prefer {@linkcode PluginWorkspaceApi.openProgramMode} when you need to know
44
+ * the tab is ready before calling `program.spreadsheet.*`.
41
45
  */
42
46
  export declare abstract class PluginCoreModeApi {
43
47
  constructor();
@@ -76,16 +80,24 @@ export declare abstract class PluginCoreModeApi {
76
80
  * Switch the editor to another application mode — the same action as
77
81
  * clicking that tab in the top menu bar.
78
82
  *
79
- * Supported: `"design"`, `"bim"`, `"present"`. Switching to
80
- * `"program"` is rejected with `PRECONDITION_FAILED` (the Program surface
81
- * opens in its own browser tab in the product; a plugin cannot open one).
83
+ * `"design"`, `"bim"` and `"present"` switch in place. `"program"` opens
84
+ * the Program tab (a paired browser window) exactly as the top bar's Program
85
+ * button does, and resolves once that tab has connected to the editor (up to
86
+ * ~90s — the browser may block the pop-up, in which case the editor shows an
87
+ * "Allow pop-up to continue" modal and waits for the user to confirm).
88
+ * Idempotent when the Program tab is already open. Note `get()` in the model
89
+ * tab keeps reporting the model tab's own mode afterwards; the Program tab is
90
+ * a separate window.
82
91
  *
83
92
  * @param mode - Target mode token from {@linkcode PluginAppMode}
84
93
  * @returns The committed `{ mode }` after the switch.
94
+ * @throws `PRECONDITION_FAILED` for `"program"` when the user dismisses the
95
+ * pop-up modal or the tab does not connect within the timeout.
85
96
  *
86
97
  * @examplePrompt Switch to present mode
87
98
  * @examplePrompt Open BIM mode
88
99
  * @examplePrompt Go back to design mode
100
+ * @examplePrompt Open program mode
89
101
  *
90
102
  * # Example
91
103
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/mode/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;EAAkD,CAAA;AAC5E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEzD,eAAO,MAAM,qBAAqB;;;;;;;iBAEhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,aAAa,EAAE,CAAA;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,aAAa,CAAA;CACpB;AAED;;;;;;;;;;;;GAYG;AACH,8BAAsB,iBAAiB;;IAGrC;;;;;;;;;;;;;OAaG;aACa,IAAI,IAAI,eAAe,CAAC,wBAAwB,CAAC;IAEjE;;;;;;;;;;;;;;OAcG;aACa,GAAG,IAAI,eAAe,CAAC,aAAa,CAAC;IAErD;;;;;;;;;;;;;;;;;;;;;OAqBG;aACa,GAAG,CAAC,IAAI,EAAE,aAAa,GAAG,eAAe,CAAC,uBAAuB,CAAC;CACnF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/mode/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;EAAkD,CAAA;AAC5E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEzD,eAAO,MAAM,qBAAqB;;;;;;;iBAEhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,aAAa,EAAE,CAAA;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,aAAa,CAAA;CACpB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,8BAAsB,iBAAiB;;IAGrC;;;;;;;;;;;;;OAaG;aACa,IAAI,IAAI,eAAe,CAAC,wBAAwB,CAAC;IAEjE;;;;;;;;;;;;;;OAcG;aACa,GAAG,IAAI,eAAe,CAAC,aAAa,CAAC;IAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;aACa,GAAG,CAAC,IAAI,EAAE,aAAa,GAAG,eAAe,CAAC,uBAAuB,CAAC;CACnF"}
@@ -145,6 +145,37 @@ export declare abstract class PluginCoreTagsApi {
145
145
  * ```
146
146
  */
147
147
  abstract listForComponent(componentId: ComponentHandle): PluginApiReturn<PluginCoreTagsGetTagsForComponentResult>;
148
+ /**
149
+ * List the tags carried by many components in one call.
150
+ *
151
+ * The plural of {@linkcode PluginCoreTagsApi.listForComponent}: pass
152
+ * `componentIds` to read specific components (unknown ids are skipped), or
153
+ * omit it to read **every** taggable component (Mass/Floor space) in the
154
+ * project. Each entry carries the component id and its tags — one per tagged
155
+ * category, with the tag's `color` — so a plugin can color every space by a
156
+ * chosen category's tag in a single round-trip.
157
+ *
158
+ * @param componentIds - Optional `Component.id`s to read; omit for all spaces.
159
+ * @returns A {@linkcode PluginCoreTagsListForComponentsResult} with a
160
+ * `components` array, one entry per component (in input order when
161
+ * `componentIds` is given).
162
+ *
163
+ * @performance One round-trip for any number of components — use this instead of a `listForComponent` loop.
164
+ *
165
+ * @examplePrompt Get the tags of every space with their colors
166
+ * @examplePrompt List the tags on all rooms so I can color them by Occupancy
167
+ * @examplePrompt Which tag does each selected space carry?
168
+ *
169
+ * # Example
170
+ * ```ts
171
+ * const { components } = await snaptrude.core.tags.listForComponents()
172
+ * for (const c of components) {
173
+ * const occupancy = c.tags.find((t) => t.categoryName === "Occupancy")
174
+ * if (occupancy) paint(c.componentId, occupancy.color)
175
+ * }
176
+ * ```
177
+ */
178
+ abstract listForComponents(componentIds?: ComponentHandle[]): PluginApiReturn<PluginCoreTagsListForComponentsResult>;
148
179
  /**
149
180
  * List the components carrying a given tag or category.
150
181
  *
@@ -546,6 +577,56 @@ export declare const PluginCoreTagsGetTagsForComponentResult: z.ZodObject<{
546
577
  }, z.core.$strip>>;
547
578
  }, z.core.$strip>;
548
579
  export type PluginCoreTagsGetTagsForComponentResult = z.infer<typeof PluginCoreTagsGetTagsForComponentResult>;
580
+ /**
581
+ * Arguments for {@linkcode PluginCoreTagsApi.listForComponents}.
582
+ *
583
+ * | Property | Type | Description |
584
+ * |---|---|---|
585
+ * | `componentIds` | `ComponentHandle[]?` | Components to read; omit for every taggable component |
586
+ */
587
+ export declare const PluginCoreTagsListForComponentsArgs: z.ZodObject<{
588
+ componentIds: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>>;
589
+ }, z.core.$strip>;
590
+ export type PluginCoreTagsListForComponentsArgs = z.infer<typeof PluginCoreTagsListForComponentsArgs>;
591
+ /**
592
+ * One component's tags, for {@linkcode PluginCoreTagsApi.listForComponents}.
593
+ *
594
+ * | Property | Type | Description |
595
+ * |---|---|---|
596
+ * | `componentId` | `ComponentHandle` | The component's id |
597
+ * | `tags` | {@linkcode PluginCoreComponentTag}`[]` | Its tags, one per tagged category (empty when none) |
598
+ */
599
+ export declare const PluginCoreComponentTags: z.ZodObject<{
600
+ componentId: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
601
+ tags: z.ZodArray<z.ZodObject<{
602
+ categoryId: z.ZodString;
603
+ categoryName: z.ZodString;
604
+ tagId: z.ZodString;
605
+ tagName: z.ZodString;
606
+ color: z.ZodString;
607
+ }, z.core.$strip>>;
608
+ }, z.core.$strip>;
609
+ export type PluginCoreComponentTags = z.infer<typeof PluginCoreComponentTags>;
610
+ /**
611
+ * Result of {@linkcode PluginCoreTagsApi.listForComponents}.
612
+ *
613
+ * | Property | Type | Description |
614
+ * |---|---|---|
615
+ * | `components` | {@linkcode PluginCoreComponentTags}`[]` | One entry per component |
616
+ */
617
+ export declare const PluginCoreTagsListForComponentsResult: z.ZodObject<{
618
+ components: z.ZodArray<z.ZodObject<{
619
+ componentId: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
620
+ tags: z.ZodArray<z.ZodObject<{
621
+ categoryId: z.ZodString;
622
+ categoryName: z.ZodString;
623
+ tagId: z.ZodString;
624
+ tagName: z.ZodString;
625
+ color: z.ZodString;
626
+ }, z.core.$strip>>;
627
+ }, z.core.$strip>>;
628
+ }, z.core.$strip>;
629
+ export type PluginCoreTagsListForComponentsResult = z.infer<typeof PluginCoreTagsListForComponentsResult>;
549
630
  /**
550
631
  * Arguments for {@linkcode PluginCoreTagsApi.listComponents}. Provide exactly one
551
632
  * of `tagId`, `categoryId`. `untagged` is valid only with `categoryId`.
@@ -1 +1 @@
1
- {"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/api/core/tags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,8BAAsB,iBAAiB;;IAGrC;;;;;;;;;;;;;;;;OAgBG;aACa,cAAc,IAAI,eAAe,CAAC,kCAAkC,CAAC;IAErF;;;;;;;;;;;;;;;;OAgBG;aACa,WAAW,CACzB,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,CAAC;IAEnD;;;;;;;;;;;;;;;;OAgBG;aACa,IAAI,CAClB,UAAU,CAAC,EAAE,MAAM,G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AInC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE/E,wEAAwE;AACxE,eAAO,MAAM,0BAA0B;;;;;iBAAgB,CAAA;AACvD,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB;;iBAEnC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE/E;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B;;iBAErC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE/E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;iBAKrC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED,+EAA+E;AAC/E,eAAO,MAAM,4BAA4B;;;;;;;;;;iBAA0B,CAAA;AACnE,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAA"}
@@ -0,0 +1,185 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Maximum items per bulk `design.create.*` call. A bounded request keeps
4
+ * validation, command capture and rollback work finite; split a larger import
5
+ * into separate awaited batches, each with its own undo entry.
6
+ */
7
+ export declare const PLUGIN_CREATE_BATCH_LIMIT = 1000;
8
+ /**
9
+ * One wall run to create via {@linkcode PluginDesignCreateApi.wallRuns} — the
10
+ * same inputs as {@linkcode PluginDesignCreateApi.walls}, one run per item.
11
+ *
12
+ * | Property | Type | Description |
13
+ * |---|---|---|
14
+ * | `profile` | {@linkcode ProfileHandle} | Ordered curve chain (wall centerlines) |
15
+ * | `height` | `number`? | Wall height (Snaptrude units, > 0; default engine default) |
16
+ * | `thickness` | `number`? | Wall thickness (Snaptrude units, > 0; default: `wallType`'s total layer thickness when given, else engine default) |
17
+ * | `wallType` | `string`? | Wall type name from `design.types.list("wall")` — layers/material/thickness defaults (default generic) |
18
+ * | `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) |
19
+ */
20
+ export declare const PluginCreateWallRunItem: z.ZodObject<{
21
+ profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
22
+ height: z.ZodOptional<z.ZodNumber>;
23
+ thickness: z.ZodOptional<z.ZodNumber>;
24
+ wallType: z.ZodOptional<z.ZodString>;
25
+ storey: z.ZodOptional<z.ZodNumber>;
26
+ }, z.core.$strip>;
27
+ export type PluginCreateWallRunItem = z.infer<typeof PluginCreateWallRunItem>;
28
+ /** The `items` array of {@linkcode PluginDesignCreateApi.wallRuns} (1…1000). */
29
+ export declare const PluginCreateWallRunItems: z.ZodArray<z.ZodObject<{
30
+ profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
31
+ height: z.ZodOptional<z.ZodNumber>;
32
+ thickness: z.ZodOptional<z.ZodNumber>;
33
+ wallType: z.ZodOptional<z.ZodString>;
34
+ storey: z.ZodOptional<z.ZodNumber>;
35
+ }, z.core.$strip>>;
36
+ export type PluginCreateWallRunItems = z.infer<typeof PluginCreateWallRunItems>;
37
+ /**
38
+ * One floor to create via {@linkcode PluginDesignCreateApi.floors} — the same
39
+ * footprint-extrude inputs as {@linkcode PluginDesignCreateApi.floor}.
40
+ *
41
+ * | Property | Type | Description |
42
+ * |---|---|---|
43
+ * | `contour` | {@linkcode ContourHandle} | Footprint (outer profile + holes) |
44
+ * | `thickness` | `number` | Floor thickness (Snaptrude units, > 0) |
45
+ * | `position` | {@linkcode Vec3Handle}? | Offset from origin (default origin) |
46
+ */
47
+ export declare const PluginCreateFloorItem: z.ZodObject<{
48
+ contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
49
+ thickness: z.ZodNumber;
50
+ position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
51
+ }, z.core.$strip>;
52
+ export type PluginCreateFloorItem = z.infer<typeof PluginCreateFloorItem>;
53
+ /** The `items` array of {@linkcode PluginDesignCreateApi.floors} (1…1000). */
54
+ export declare const PluginCreateFloorItems: z.ZodArray<z.ZodObject<{
55
+ contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
56
+ thickness: z.ZodNumber;
57
+ position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
58
+ }, z.core.$strip>>;
59
+ export type PluginCreateFloorItems = z.infer<typeof PluginCreateFloorItems>;
60
+ /**
61
+ * One door to place via {@linkcode PluginDesignCreateApi.doors} — the same
62
+ * fields as a `"door"` {@linkcode PluginDesignCreateOpeningOptions}, so the
63
+ * size overrides singular {@linkcode PluginDesignCreateApi.door} lacks are
64
+ * available per item. `facing` and `hinge` are WORLD POINTS, not directions:
65
+ * `facing` on the side of the wall the door swings open to, `hinge` near the
66
+ * jamb it is hinged on. Rejects unknown fields.
67
+ *
68
+ * | Property | Type | Description |
69
+ * |---|---|---|
70
+ * | `catalogId` | `string` | Library id: team `_id` or general `fullName` |
71
+ * | `hostWall` | {@linkcode ComponentHandle} | The wall to host the door |
72
+ * | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
73
+ * | `facing` | {@linkcode Vec3Handle}? | World point on the side the door swings open to (default engine-chosen) |
74
+ * | `hinge` | {@linkcode Vec3Handle}? | World point near the jamb the door is hinged on (default the catalog item's authored side) |
75
+ * | `label` | `string`? | Instance name (optional) |
76
+ * | `width` | `number`? | Width override (Snaptrude units, > 0; default the catalog item's) |
77
+ * | `height` | `number`? | Height override (Snaptrude units, > 0; default the catalog item's) |
78
+ */
79
+ export declare const PluginCreateDoorItem: z.ZodObject<{
80
+ catalogId: z.ZodString;
81
+ hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
82
+ position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
83
+ facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
84
+ hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
85
+ label: z.ZodOptional<z.ZodString>;
86
+ width: z.ZodOptional<z.ZodNumber>;
87
+ height: z.ZodOptional<z.ZodNumber>;
88
+ }, z.core.$strict>;
89
+ export type PluginCreateDoorItem = z.infer<typeof PluginCreateDoorItem>;
90
+ /** The `items` array of {@linkcode PluginDesignCreateApi.doors} (1…1000). */
91
+ export declare const PluginCreateDoorItems: z.ZodArray<z.ZodObject<{
92
+ catalogId: z.ZodString;
93
+ hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
94
+ position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
95
+ facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
96
+ hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
97
+ label: z.ZodOptional<z.ZodString>;
98
+ width: z.ZodOptional<z.ZodNumber>;
99
+ height: z.ZodOptional<z.ZodNumber>;
100
+ }, z.core.$strict>>;
101
+ export type PluginCreateDoorItems = z.infer<typeof PluginCreateDoorItems>;
102
+ /**
103
+ * One window to place via {@linkcode PluginDesignCreateApi.windows} — the same
104
+ * fields as a `"window"` {@linkcode PluginDesignCreateOpeningOptions}.
105
+ * `sillHeight` is a nonnegative Snaptrude-unit distance from the host wall's
106
+ * base to the BOTTOM of the window, not to its center. `facing` and `hinge`
107
+ * are WORLD POINTS, not directions: `facing` on the side of the wall the
108
+ * window opens to, `hinge` near the jamb it is hinged on. Rejects unknown
109
+ * fields.
110
+ *
111
+ * | Property | Type | Description |
112
+ * |---|---|---|
113
+ * | `catalogId` | `string` | Library id: team `_id` or general `fullName` |
114
+ * | `hostWall` | {@linkcode ComponentHandle} | The wall to host the window |
115
+ * | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
116
+ * | `facing` | {@linkcode Vec3Handle}? | World point on the side the window opens to (default engine-chosen) |
117
+ * | `hinge` | {@linkcode Vec3Handle}? | World point near the jamb the window is hinged on (default the catalog item's authored side) |
118
+ * | `label` | `string`? | Instance name (optional) |
119
+ * | `width` | `number`? | Width override (Snaptrude units, > 0; default the catalog item's) |
120
+ * | `height` | `number`? | Height override (Snaptrude units, > 0; default the catalog item's) |
121
+ * | `sillHeight` | `number`? | Wall base to window bottom (Snaptrude units, ≥ 0; default the catalog item's) |
122
+ */
123
+ export declare const PluginCreateWindowItem: z.ZodObject<{
124
+ sillHeight: z.ZodOptional<z.ZodNumber>;
125
+ catalogId: z.ZodString;
126
+ hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
127
+ position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
128
+ facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
129
+ hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
130
+ label: z.ZodOptional<z.ZodString>;
131
+ width: z.ZodOptional<z.ZodNumber>;
132
+ height: z.ZodOptional<z.ZodNumber>;
133
+ }, z.core.$strict>;
134
+ export type PluginCreateWindowItem = z.infer<typeof PluginCreateWindowItem>;
135
+ /** The `items` array of {@linkcode PluginDesignCreateApi.windows} (1…1000). */
136
+ export declare const PluginCreateWindowItems: z.ZodArray<z.ZodObject<{
137
+ sillHeight: z.ZodOptional<z.ZodNumber>;
138
+ catalogId: z.ZodString;
139
+ hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
140
+ position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
141
+ facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
142
+ hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
143
+ label: z.ZodOptional<z.ZodString>;
144
+ width: z.ZodOptional<z.ZodNumber>;
145
+ height: z.ZodOptional<z.ZodNumber>;
146
+ }, z.core.$strict>>;
147
+ export type PluginCreateWindowItems = z.infer<typeof PluginCreateWindowItems>;
148
+ /**
149
+ * One furniture instance to place via
150
+ * {@linkcode PluginDesignCreateApi.furnitureItems} — the same inputs as
151
+ * {@linkcode PluginDesignCreateApi.furniture} minus `createNewSourceMesh`: in a
152
+ * batch the host owns source-mesh persistence (a source is recorded once per
153
+ * call, however many items reuse it).
154
+ *
155
+ * `position.y` is the REST elevation: the item is grounded so its bounding-box
156
+ * base sits exactly at `position.y` (the same surface-flush contract as
157
+ * interactive drag-drop) — pass the floor/storey elevation to stand furniture
158
+ * on it; never add half the item's height yourself.
159
+ *
160
+ * | Property | Type | Description |
161
+ * |---|---|---|
162
+ * | `catalogId` | `string` | Library id: team `_id` or general `fullName` |
163
+ * | `position` | {@linkcode Vec3Handle} | Absolute world placement point (`y` = rest elevation) |
164
+ * | `label` | `string`? | Instance name and readable label (default auto `${name}Ins${n}`) |
165
+ * | `angleInDegrees` | `number`? | Rotation about the vertical axis, in degrees (default unrotated) |
166
+ */
167
+ export declare const PluginCreateFurnitureItem: z.ZodObject<{
168
+ catalogId: z.ZodString;
169
+ position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
170
+ label: z.ZodOptional<z.ZodString>;
171
+ angleInDegrees: z.ZodOptional<z.ZodNumber>;
172
+ }, z.core.$strip>;
173
+ export type PluginCreateFurnitureItem = z.infer<typeof PluginCreateFurnitureItem>;
174
+ /**
175
+ * The `items` array of {@linkcode PluginDesignCreateApi.furnitureItems}
176
+ * (1…1000).
177
+ */
178
+ export declare const PluginCreateFurnitureItems: z.ZodArray<z.ZodObject<{
179
+ catalogId: z.ZodString;
180
+ position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
181
+ label: z.ZodOptional<z.ZodString>;
182
+ angleInDegrees: z.ZodOptional<z.ZodNumber>;
183
+ }, z.core.$strip>>;
184
+ export type PluginCreateFurnitureItems = z.infer<typeof PluginCreateFurnitureItems>;
185
+ //# sourceMappingURL=bulk-items.d.ts.map
@@ -0,0 +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;AAIxB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,OAAO,CAAA;AAM7C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB;;;;;;iBAMlC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E,gFAAgF;AAChF,eAAO,MAAM,wBAAwB;;;;;;kBAGJ,CAAA;AACjC,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAM/E;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,8EAA8E;AAC9E,eAAO,MAAM,sBAAsB;;;;kBAGF,CAAA;AACjC,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAM3E;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;kBAEtB,CAAA;AACX,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB;;;;;;;;;mBAGD,CAAA;AACj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