@snaptrude/plugin-core 1.1.0-pbr-20261028.1 → 1.1.0-pbr-20261102.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/AGENTS.md +18 -0
- package/CHANGELOG.md +6 -0
- package/api-manifest.json +161 -4
- package/dist/api/design/create/bulk-items.d.ts +4 -1
- package/dist/api/design/create/bulk-items.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +12 -0
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/doors/index.d.ts +37 -0
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/index.d.ts +6 -0
- package/dist/api/design/index.d.ts.map +1 -1
- package/dist/api/design/opening-placement.d.ts +123 -0
- package/dist/api/design/opening-placement.d.ts.map +1 -0
- package/dist/api/design/text.d.ts +400 -0
- package/dist/api/design/text.d.ts.map +1 -0
- package/dist/api/design/windows/index.d.ts +23 -0
- package/dist/api/design/windows/index.d.ts.map +1 -1
- package/dist/api/presentation/drawings.d.ts +45 -0
- package/dist/api/presentation/drawings.d.ts.map +1 -1
- package/dist/api/presentation/graphics.d.ts +4 -0
- package/dist/api/presentation/graphics.d.ts.map +1 -1
- package/dist/api/presentation/index.d.ts +9 -0
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/lighting.d.ts +469 -0
- package/dist/api/presentation/lighting.d.ts.map +1 -0
- package/dist/api/presentation/placedViews.d.ts +29 -1
- package/dist/api/presentation/placedViews.d.ts.map +1 -1
- package/dist/api/presentation/standards.d.ts +14 -0
- package/dist/api/presentation/standards.d.ts.map +1 -1
- package/dist/errors/codes.d.ts +1 -1
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/index.cjs +2559 -2266
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2534 -2266
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/design/create/bulk-items.ts +4 -1
- package/src/api/design/create/index.ts +12 -0
- package/src/api/design/doors/index.ts +43 -0
- package/src/api/design/index.ts +6 -0
- package/src/api/design/opening-placement.ts +79 -0
- package/src/api/design/text.ts +394 -0
- package/src/api/design/windows/index.ts +29 -0
- package/src/api/presentation/graphics.ts +4 -1
- package/src/api/presentation/index.ts +9 -0
- package/src/api/presentation/lighting.ts +436 -0
- package/src/api/presentation/placedViews.ts +12 -0
- package/src/api/presentation/standards.ts +6 -0
- package/src/errors/codes.ts +6 -0
- package/test/designText.test.mjs +72 -0
- package/test/errors.test.mjs +1 -0
- package/test/paperPensContract.test.mjs +39 -0
package/AGENTS.md
CHANGED
|
@@ -169,6 +169,7 @@ These are in-browser integration tests that exercise the plugin API end-to-end.
|
|
|
169
169
|
| `design/query/*` | `tests/designQuery.ts` |
|
|
170
170
|
| `design/selection/*` | `tests/designSelection.ts` |
|
|
171
171
|
| `design/lock.ts` | `tests/designLock.ts` |
|
|
172
|
+
| `design/text.ts` | `tests/designText.ts` |
|
|
172
173
|
| `design/delete/*` | `tests/delete.ts` |
|
|
173
174
|
| `design/erase/*` | `tests/erase.ts` |
|
|
174
175
|
| `design/doors/*` | `tests/doors.ts` |
|
|
@@ -213,6 +214,23 @@ check **all** consumers of `@snaptrude/plugin-client` or `@snaptrude/plugin-core
|
|
|
213
214
|
|
|
214
215
|
Search these directories for usage of the changed API and update accordingly.
|
|
215
216
|
|
|
217
|
+
### 8. snapagents (every API change, breaking or not)
|
|
218
|
+
|
|
219
|
+
The Snap agent (`snapagents` repo) does not install this package. It keeps a synced copy of the
|
|
220
|
+
built `dist/**/*.d.ts` under `plugin-types/plugin-core/` and compiles every script the
|
|
221
|
+
agent writes against them before it runs, so a stale copy means the agent is held
|
|
222
|
+
to an old API. After a plugin-core release, in the snapagents checkout run:
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
npm run sync:plugin-core -- <path to packages/plugin-core>
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
It copies new and changed declaration files, keeps snapagents' agent-only files,
|
|
229
|
+
refuses to overwrite its hand-merged files (and prints what to merge), and stamps
|
|
230
|
+
`plugin-types/plugin-core/.synced.json` with the version. Where the editor validates a
|
|
231
|
+
parameter against a fixed list, declare it as that literal union here, not as
|
|
232
|
+
`string`: the agent's type-check can only reject what the type names.
|
|
233
|
+
|
|
216
234
|
## Adding a new API namespace (end-to-end)
|
|
217
235
|
|
|
218
236
|
When adding an entirely new namespace (e.g. `snaptrude.materials`):
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @snaptrude/plugin-core
|
|
2
2
|
|
|
3
|
+
## 1.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c05661a: Add `design.text` — authored text and annotations (Text / Annotate tools): `create`, `list`, `get`, `update`, `setLeader`; texts are `ComponentHandle`s, so delete / move / rotate / copy / hide / lock use the generic design APIs. Paper Pens gains a `"Text"` annotation category (projection pen = leader weight, `annotationText.Text.textMm` size, resolved `text.annotationMm`; no per-view override), and `presentation.placedViews.updateStyles` gains the `"Text"` and `"Annotation"` categories with `textFontFamily`, `textFontStyle` and `leaderVisible`.
|
|
8
|
+
|
|
3
9
|
## 1.0.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/api-manifest.json
CHANGED
|
@@ -4793,7 +4793,7 @@
|
|
|
4793
4793
|
"Place a door in every room in one operation",
|
|
4794
4794
|
"Bulk add the entrance doors from this schedule",
|
|
4795
4795
|
"Put three doors on this wall in a single undo step",
|
|
4796
|
-
"Add all the doors for this floor plan together"
|
|
4796
|
+
"Add all the doors for this floor plan together\n\nA width/height (top-level, or under the family's own keys in `values`) on a family that\ntakes its size from its Type while Custom Sizes is off is never dropped: the Type within\n25 mm is chosen, else Custom Sizes is turned on and that size is built, leaving the Type\nlabel stale. `design.doors.checkPlacement` reports which as `sizing`; `customSizes: \"No\"`\nwith a size no Type matches is refused."
|
|
4797
4797
|
],
|
|
4798
4798
|
"argsType": "PluginCreateDoorItem[]",
|
|
4799
4799
|
"resultType": "ComponentHandle[]",
|
|
@@ -5126,7 +5126,7 @@
|
|
|
5126
5126
|
"Place a window in every bedroom in one operation",
|
|
5127
5127
|
"Bulk add the windows from this schedule",
|
|
5128
5128
|
"Put four windows on this wall in a single undo step",
|
|
5129
|
-
"Add all the windows with a 0.9m sill height together"
|
|
5129
|
+
"Add all the windows with a 0.9m sill height together\n\nA width/height (top-level, or under the family's own keys in `values`) on a family that\ntakes its size from its Type while Custom Sizes is off is never dropped: the Type within\n25 mm is chosen, else Custom Sizes is turned on and that size is built, leaving the Type\nlabel stale. `design.windows.checkPlacement` reports which as `sizing`; `customSizes: \"No\"`\nwith a size no Type matches is refused."
|
|
5130
5130
|
],
|
|
5131
5131
|
"argsType": "PluginCreateWindowItem[]",
|
|
5132
5132
|
"resultType": "ComponentHandle[]",
|
|
@@ -5224,6 +5224,16 @@
|
|
|
5224
5224
|
"resultType": "PluginDimensionsChangeResult",
|
|
5225
5225
|
"performance": "Array API — one host round-trip and one undo entry for the whole set. # Example ```ts const dims = snaptrude.design.dimensions const hidden = await dims.list({ isHidden: true }) await dims.show(hidden.map((d) => d.id)) ```"
|
|
5226
5226
|
},
|
|
5227
|
+
{
|
|
5228
|
+
"path": "design.doors.checkPlacement",
|
|
5229
|
+
"namespace": "design.doors",
|
|
5230
|
+
"summary": "Trial the native host fit and geometry rebuild, then restore the model without publishing commands. The first result uses the creation options; subsequent results use candidateWidths in input order. Widths are authored parameters, not physical envelopes or a guaranteed maximum width. No catalog save, history entry or model persistence occurs. Rerun after model edits. A failed fit leaves cut unverified. Family-host cuts are also unverified: their rebuild cannot supply a reversible, authoritative trial result. Material clearance checks evaluated parts against physical neighbours across hosts. The intended host uses native fit/cut checks. Creation repeats clearance immediately before placement; this report grants no later approval. Editing permission is required; locked hosts and an active opening tool reject. It does not say which room the door opens into: read `opensInto` from `design.validation.access()` after placement (see {@linkcode getSwingDirection}). A requested width/height on a family sized by its Type (Custom Sizes off) picks the Type within 25 mm, else turns Custom Sizes on; each result's `sizing` says which. Creation (`design.create.door(s)`) applies the same rule, so the size you pass is the size built.",
|
|
5231
|
+
"examplePrompts": [
|
|
5232
|
+
"Check which door widths fit this host without placing a door"
|
|
5233
|
+
],
|
|
5234
|
+
"argsType": "PluginOpeningPlacementArgs",
|
|
5235
|
+
"resultType": "PluginOpeningPlacementResult"
|
|
5236
|
+
},
|
|
5227
5237
|
{
|
|
5228
5238
|
"path": "design.doors.exists",
|
|
5229
5239
|
"namespace": "design.doors",
|
|
@@ -5310,7 +5320,8 @@
|
|
|
5310
5320
|
"Which way does this door swing?",
|
|
5311
5321
|
"Is the selected door left-handed or right-handed?",
|
|
5312
5322
|
"Check the hinge side of this door",
|
|
5313
|
-
"Does the entrance door open to the left or the right
|
|
5323
|
+
"Does the entrance door open to the left or the right?",
|
|
5324
|
+
"Which room does this door open into?\n\n# Example\n```ts\nconst [door] = await snaptrude.design.query.listDoors({ isSelected: true })\nconst swing = await snaptrude.design.doors.getSwingDirection(door)\nif (swing) console.log(\"opens as a\", swing, \"hand door\")\n// Which room it opens into\nconst { topology } = await snaptrude.design.validation.access()\nconst side = topology.rooms.flatMap((r) => r.doors).find((d) => d.door === door)?.opensInto\n```"
|
|
5314
5325
|
],
|
|
5315
5326
|
"argsType": "ComponentHandle",
|
|
5316
5327
|
"resultType": "\"left\" | \"right\" | null"
|
|
@@ -5370,7 +5381,7 @@
|
|
|
5370
5381
|
{
|
|
5371
5382
|
"path": "design.doors.mirror",
|
|
5372
5383
|
"namespace": "design.doors",
|
|
5373
|
-
"summary": "Change authored controls in one undo step: x (default) toggles swing front/back; z toggles hand left/right. The recipe must declare these enums. Axis y rejects. No mesh reflection occurs. Recipes use outputs.swingSide (1 or -1) for the adjoining room's floor ownership. A door between two room floors requires this output; a missing or invalid report rejects the cut.",
|
|
5384
|
+
"summary": "Change authored controls in one undo step: x (default) toggles swing front/back; z toggles hand left/right. The recipe must declare these enums. Axis y rejects. No mesh reflection occurs. Recipes use outputs.swingSide (1 or -1) for the adjoining room's floor ownership. A door between two room floors requires this output; a missing or invalid report rejects the cut. The same side decides `opensInto` in `design.validation.access()`; read it there to confirm which room the door now opens into.",
|
|
5374
5385
|
"examplePrompts": [
|
|
5375
5386
|
"Flip this door's swing",
|
|
5376
5387
|
"Mirror the selected door",
|
|
@@ -6777,6 +6788,66 @@
|
|
|
6777
6788
|
"argsType": "PluginSelectionFilter",
|
|
6778
6789
|
"resultType": "PluginDesignChangeResult"
|
|
6779
6790
|
},
|
|
6791
|
+
{
|
|
6792
|
+
"path": "design.text.create",
|
|
6793
|
+
"namespace": "design.text",
|
|
6794
|
+
"summary": "Place a text, or an annotation when `options.arrowhead` is given.",
|
|
6795
|
+
"examplePrompts": [
|
|
6796
|
+
"Label the living room \"LIVING\" on the plan",
|
|
6797
|
+
"Add an annotation pointing at this column saying \"RCC 300x300\"",
|
|
6798
|
+
"Write \"NORTH ENTRY\" in red bold text at the entrance on level 2\n\n# Example\n```ts\nconst { design, core } = snaptrude\nconst v = core.math.vec3\n// A plain label on storey 1.\nawait design.text.create(await v.new(10, 0, 20), \"LIVING\", { storey: 1 })\n// An annotation whose leader points at a wall corner.\nawait design.text.create(await v.new(30, 0, 40), \"Shear wall\", {\narrowhead: await v.new(22, 0, 32),\ncolor: \"#c62828\",\nfontStyle: \"Bold\",\n})\n```"
|
|
6799
|
+
],
|
|
6800
|
+
"argsType": "Vec3Handle",
|
|
6801
|
+
"resultType": "ComponentHandle"
|
|
6802
|
+
},
|
|
6803
|
+
{
|
|
6804
|
+
"path": "design.text.get",
|
|
6805
|
+
"namespace": "design.text",
|
|
6806
|
+
"summary": "Read one text by handle.",
|
|
6807
|
+
"examplePrompts": [
|
|
6808
|
+
"What does this text say?",
|
|
6809
|
+
"Read the annotation I just placed\n\n# Example\n```ts\nconst t = await snaptrude.design.text.get(handle)\nif (t?.leader) console.log(t.content, \"points at\", t.leader.arrowhead)\n```"
|
|
6810
|
+
],
|
|
6811
|
+
"argsType": "ComponentHandle",
|
|
6812
|
+
"resultType": "PluginText | null"
|
|
6813
|
+
},
|
|
6814
|
+
{
|
|
6815
|
+
"path": "design.text.list",
|
|
6816
|
+
"namespace": "design.text",
|
|
6817
|
+
"summary": "List the texts and annotations of every building in the active design option as full records (each carries its `buildingId`).",
|
|
6818
|
+
"examplePrompts": [
|
|
6819
|
+
"List all the text labels on level 1",
|
|
6820
|
+
"Which annotations are in this model?",
|
|
6821
|
+
"Find the text that says \"LOBBY\""
|
|
6822
|
+
],
|
|
6823
|
+
"argsType": "{\n storeys?: number[]\n kind?: PluginTextKind\n isHidden?: boolean\n }",
|
|
6824
|
+
"resultType": "PluginText[]",
|
|
6825
|
+
"performance": "Array read — one host round-trip returns every record. Filter in one call rather than calling `get` per text. # Example ```ts const texts = await snaptrude.design.text.list({ storeys: [1] }) const lobby = texts.find((t) => t.content === \"LOBBY\") ```"
|
|
6826
|
+
},
|
|
6827
|
+
{
|
|
6828
|
+
"path": "design.text.setLeader",
|
|
6829
|
+
"namespace": "design.text",
|
|
6830
|
+
"summary": "Point a text's leader at a new place — the same edit as dragging an annotation's arrowhead with the Edit tool. Passing `null` removes the leader (the annotation becomes a plain text); giving a plain text an arrowhead turns it into an annotation. The text itself does not move. To move the text while its arrowhead stays put, move it with `design.transform.move`, then call this with the old `leader.arrowhead`.",
|
|
6831
|
+
"examplePrompts": [
|
|
6832
|
+
"Point this annotation at the door instead",
|
|
6833
|
+
"Remove the leader from this label\n\n# Example\n```ts\nconst { design, core } = snaptrude\nawait design.text.setLeader(handle, await core.math.vec3.new(12, 0, 8))\n```"
|
|
6834
|
+
],
|
|
6835
|
+
"argsType": "ComponentHandle",
|
|
6836
|
+
"resultType": "PluginText"
|
|
6837
|
+
},
|
|
6838
|
+
{
|
|
6839
|
+
"path": "design.text.update",
|
|
6840
|
+
"namespace": "design.text",
|
|
6841
|
+
"summary": "Change the words, colour or font of one or more texts — the same edit as the Properties panel. Fields left out keep each text's own value. A font style the (new) family does not have falls back to `\"Regular\"`, as in the panel. One undo entry for the whole batch.",
|
|
6842
|
+
"examplePrompts": [
|
|
6843
|
+
"Make all the room labels bold",
|
|
6844
|
+
"Change this annotation to read \"Fire exit\"",
|
|
6845
|
+
"Use Roboto in blue for every text on level 2"
|
|
6846
|
+
],
|
|
6847
|
+
"argsType": "ComponentHandle[]",
|
|
6848
|
+
"resultType": "PluginTextChangeResult",
|
|
6849
|
+
"performance": "Array API — pass the whole set in one call (one host round-trip, one undo entry). Never loop this per text. # Example ```ts const text = snaptrude.design.text const level2 = await text.list({ storeys: [2] }) await text.update(level2.map((t) => t.id), { fontFamily: \"Roboto\", color: \"#1565c0\" }) ```"
|
|
6850
|
+
},
|
|
6780
6851
|
{
|
|
6781
6852
|
"path": "design.transform.align",
|
|
6782
6853
|
"namespace": "design.transform",
|
|
@@ -7188,6 +7259,16 @@
|
|
|
7188
7259
|
"argsType": null,
|
|
7189
7260
|
"resultType": "PluginDesignChangeResult"
|
|
7190
7261
|
},
|
|
7262
|
+
{
|
|
7263
|
+
"path": "design.windows.checkPlacement",
|
|
7264
|
+
"namespace": "design.windows",
|
|
7265
|
+
"summary": "Trial the native host fit and geometry rebuild, then restore the model without publishing commands. The first result uses the creation options; subsequent results use candidateWidths in input order. Widths are authored parameters, not physical envelopes or a guaranteed maximum width. No catalog save, history entry or model persistence occurs. Rerun after model edits. A failed fit leaves cut unverified. Family-host cuts are also unverified: their rebuild cannot supply a reversible, authoritative trial result. Material clearance checks evaluated parts against physical neighbours across hosts. The intended host uses native fit/cut checks. Creation repeats clearance immediately before placement; this report grants no later approval. Editing permission is required; locked hosts and an active opening tool reject. A requested width/height on a family sized by its Type (Custom Sizes off) picks the Type within 25 mm, else turns Custom Sizes on; each result's `sizing` says which. Creation (`design.create.window(s)`) applies the same rule, so the size you pass is the size built.",
|
|
7266
|
+
"examplePrompts": [
|
|
7267
|
+
"Check whether this window fits and its host can be cut"
|
|
7268
|
+
],
|
|
7269
|
+
"argsType": "PluginOpeningPlacementArgs",
|
|
7270
|
+
"resultType": "PluginOpeningPlacementResult"
|
|
7271
|
+
},
|
|
7191
7272
|
{
|
|
7192
7273
|
"path": "design.windows.exists",
|
|
7193
7274
|
"namespace": "design.windows",
|
|
@@ -8329,6 +8410,82 @@
|
|
|
8329
8410
|
"argsType": "{ url?: string; dataUrl?: string }",
|
|
8330
8411
|
"resultType": "PluginPresentationImportResult"
|
|
8331
8412
|
},
|
|
8413
|
+
{
|
|
8414
|
+
"path": "presentation.lighting.applyPreset",
|
|
8415
|
+
"namespace": "presentation.lighting",
|
|
8416
|
+
"summary": "Aim the sun and set every light's level from a preset. The sun is turned from the hero facade's outward normal; without `options.heroFacadeNormal` from the facade facing the camera at the time of the call. The preset does not change the environment, exposure or realistic rendering, and a cloud choice made with `set` stays.",
|
|
8417
|
+
"examplePrompts": [
|
|
8418
|
+
"Light the model with golden hour sun",
|
|
8419
|
+
"Use an overcast sky for the render",
|
|
8420
|
+
"Switch to the dusk lighting with the lights on inside",
|
|
8421
|
+
"Put the sun across the south facade\n\n# Example\n```ts\nconst south = await snaptrude.core.math.vec3.new(0, 0, -1)\nawait snaptrude.presentation.lighting.applyPreset(\"golden\", { heroFacadeNormal: south })\n```"
|
|
8422
|
+
],
|
|
8423
|
+
"argsType": "PluginPresentationLightingPresetId",
|
|
8424
|
+
"resultType": "PluginPresentationLightingState"
|
|
8425
|
+
},
|
|
8426
|
+
{
|
|
8427
|
+
"path": "presentation.lighting.disableRealistic",
|
|
8428
|
+
"namespace": "presentation.lighting",
|
|
8429
|
+
"summary": "Turn realistic rendering off, back to the Design look, as View settings' Realistic toggle does. Always allowed; a no-op when it is already off. Not undoable.",
|
|
8430
|
+
"examplePrompts": [
|
|
8431
|
+
"Turn off realistic rendering",
|
|
8432
|
+
"Go back to the design view look\n\n# Example\n```ts\nawait snaptrude.presentation.lighting.disableRealistic()\n```"
|
|
8433
|
+
],
|
|
8434
|
+
"argsType": null,
|
|
8435
|
+
"resultType": "PluginPresentationLightingState"
|
|
8436
|
+
},
|
|
8437
|
+
{
|
|
8438
|
+
"path": "presentation.lighting.enableRealistic",
|
|
8439
|
+
"namespace": "presentation.lighting",
|
|
8440
|
+
"summary": "Turn realistic rendering on, as View settings' Realistic toggle does: the 3D view and its captures draw PBR materials under the presentation lighting, with the sky. 2D views keep the drawing look.",
|
|
8441
|
+
"examplePrompts": [
|
|
8442
|
+
"Turn on realistic rendering",
|
|
8443
|
+
"Show the model in realistic mode",
|
|
8444
|
+
"Switch the 3D view to the realistic look with sky and materials\n\n# Example\n```ts\nconst { realisticAvailable } = await snaptrude.presentation.lighting.get()\nif (realisticAvailable) {\nawait snaptrude.presentation.lighting.enableRealistic()\nawait snaptrude.presentation.lighting.applyPreset(\"golden\")\n}\n```"
|
|
8445
|
+
],
|
|
8446
|
+
"argsType": null,
|
|
8447
|
+
"resultType": "PluginPresentationLightingState"
|
|
8448
|
+
},
|
|
8449
|
+
{
|
|
8450
|
+
"path": "presentation.lighting.get",
|
|
8451
|
+
"namespace": "presentation.lighting",
|
|
8452
|
+
"summary": "Read the lighting: realistic rendering and whether it can be turned on, the preset, who aims the sun and where it points, the environment, exposure, the atmosphere (including cloud shapes), the solar time and the interior light.",
|
|
8453
|
+
"examplePrompts": [
|
|
8454
|
+
"Is realistic rendering on?",
|
|
8455
|
+
"Can I turn on the realistic view?",
|
|
8456
|
+
"Which lighting preset is active?",
|
|
8457
|
+
"Are clouds showing in the sky?\n\n# Example\n```ts\nconst { realistic, realisticAvailable, preset, atmosphere } =\nawait snaptrude.presentation.lighting.get()\n```"
|
|
8458
|
+
],
|
|
8459
|
+
"argsType": null,
|
|
8460
|
+
"resultType": "PluginPresentationLightingState"
|
|
8461
|
+
},
|
|
8462
|
+
{
|
|
8463
|
+
"path": "presentation.lighting.listPresets",
|
|
8464
|
+
"namespace": "presentation.lighting",
|
|
8465
|
+
"summary": "List the lighting presets with their sun placement and light levels.",
|
|
8466
|
+
"examplePrompts": [
|
|
8467
|
+
"What lighting presets are there?",
|
|
8468
|
+
"List the sun presets for renders",
|
|
8469
|
+
"Which preset gives a low golden-hour sun?\n\n# Example\n```ts\nconst presets = await snaptrude.presentation.lighting.listPresets()\nconsole.log(presets.map((preset) => `${preset.id}: ${preset.elevationDeg}°`))\n```"
|
|
8470
|
+
],
|
|
8471
|
+
"argsType": null,
|
|
8472
|
+
"resultType": "PluginPresentationLightingPreset[]"
|
|
8473
|
+
},
|
|
8474
|
+
{
|
|
8475
|
+
"path": "presentation.lighting.set",
|
|
8476
|
+
"namespace": "presentation.lighting",
|
|
8477
|
+
"summary": "Change the environment, exposure, atmosphere, solar time and/or interior light. Omitted properties keep their value; within `atmosphere` and `interior` a `null` puts a setting's default back.",
|
|
8478
|
+
"examplePrompts": [
|
|
8479
|
+
"Add clouds to the sky",
|
|
8480
|
+
"Remove the clouds from the render",
|
|
8481
|
+
"Use the procedural sky for lighting",
|
|
8482
|
+
"Make the render half a stop brighter",
|
|
8483
|
+
"Make the sky hazy",
|
|
8484
|
+
"Set the sun to 4 pm on 21 June\n\n# Example\n```ts\nawait snaptrude.presentation.lighting.set({\nenvironment: \"procedural\",\natmosphere: { clouds: true, turbidity: 3 },\n})\n```"
|
|
8485
|
+
],
|
|
8486
|
+
"argsType": "PluginPresentationLightingSetArgs",
|
|
8487
|
+
"resultType": "PluginPresentationLightingState"
|
|
8488
|
+
},
|
|
8332
8489
|
{
|
|
8333
8490
|
"path": "presentation.placedViews.deleteShapes",
|
|
8334
8491
|
"namespace": "presentation.placedViews",
|
|
@@ -116,6 +116,9 @@ export type PluginCreateFloorItems = z.infer<typeof PluginCreateFloorItems>;
|
|
|
116
116
|
* Values are evaluated before cutting. Numeric lengths use SU; unit strings
|
|
117
117
|
* are accepted in values. `facing` selects local +Z; `hinge` sets the declared
|
|
118
118
|
* hand enum (left = local -X, right = +X). Both are world points.
|
|
119
|
+
* A door between a room and a corridor, lobby or hall swings into the room:
|
|
120
|
+
* pass `facing` inside the room it serves, never in the corridor. Toilets,
|
|
121
|
+
* cupboards, shafts and exits on an escape route open outward instead.
|
|
119
122
|
*
|
|
120
123
|
* | Property | Type | Description |
|
|
121
124
|
* |---|---|---|
|
|
@@ -124,7 +127,7 @@ export type PluginCreateFloorItems = z.infer<typeof PluginCreateFloorItems>;
|
|
|
124
127
|
* | `values` | `Record<string, number \| string>`? | Authored parameter overrides |
|
|
125
128
|
* | `hostWall` | {@linkcode ComponentHandle} | The wall to host the door |
|
|
126
129
|
* | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
|
|
127
|
-
* | `facing` | {@linkcode Vec3Handle}? | World point on the side the door swings open to (default engine-chosen) |
|
|
130
|
+
* | `facing` | {@linkcode Vec3Handle}? | World point on the side the door swings open to: inside the room it serves (default engine-chosen) |
|
|
128
131
|
* | `hinge` | {@linkcode Vec3Handle}? | World point near the hinged jamb; requires hand control |
|
|
129
132
|
* | `label` | `string`? | Instance name (optional) |
|
|
130
133
|
* | `width` | `number`? | Declared width parameter (SU, > 0), not evaluated hole width |
|
|
@@ -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;AACxB,OAAO,EACL,eAAe,EAIhB,MAAM,kBAAkB,CAAA;AAKzB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,OAAO,CAAA;AAM7C;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,oBAAoB;;;kBA0B7B,CAAA;AACJ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAMvE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;iBASlC,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KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;kBAGN,CAAA;AACjC,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAMD;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB;;;kBAKtB,CAAA;AACX,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE,sHAAsH;AACtH,eAAO,MAAM,qBAAqB;;;mBAGD,CAAA;AACjC,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -897,6 +897,12 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
897
897
|
* @examplePrompt Put three doors on this wall in a single undo step
|
|
898
898
|
* @examplePrompt Add all the doors for this floor plan together
|
|
899
899
|
*
|
|
900
|
+
* A width/height (top-level, or under the family's own keys in `values`) on a family that
|
|
901
|
+
* takes its size from its Type while Custom Sizes is off is never dropped: the Type within
|
|
902
|
+
* 25 mm is chosen, else Custom Sizes is turned on and that size is built, leaving the Type
|
|
903
|
+
* label stale. `design.doors.checkPlacement` reports which as `sizing`; `customSizes: "No"`
|
|
904
|
+
* with a size no Type matches is refused.
|
|
905
|
+
*
|
|
900
906
|
* @performance Bulk creator — the whole batch is ONE host round-trip and ONE undo
|
|
901
907
|
* entry. Always prefer this over
|
|
902
908
|
* calling `design.create.door` in a loop: build the full `items[]` array first
|
|
@@ -992,6 +998,12 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
992
998
|
* @examplePrompt Put four windows on this wall in a single undo step
|
|
993
999
|
* @examplePrompt Add all the windows with a 0.9m sill height together
|
|
994
1000
|
*
|
|
1001
|
+
* A width/height (top-level, or under the family's own keys in `values`) on a family that
|
|
1002
|
+
* takes its size from its Type while Custom Sizes is off is never dropped: the Type within
|
|
1003
|
+
* 25 mm is chosen, else Custom Sizes is turned on and that size is built, leaving the Type
|
|
1004
|
+
* label stale. `design.windows.checkPlacement` reports which as `sizing`; `customSizes: "No"`
|
|
1005
|
+
* with a size no Type matches is refused.
|
|
1006
|
+
*
|
|
995
1007
|
* @performance Bulk creator — the whole batch is ONE host round-trip and ONE undo
|
|
996
1008
|
* entry. Always prefer this over
|
|
997
1009
|
* calling `design.create.window` in a loop: build the full `items[]` array first
|
|
@@ -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;AAEhD,OAAO,EACL,eAAe,EACf,cAAc,EACd,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACnC,iDAAiD,EAClD,MAAM,gCAAgC,CAAA;AAEvC,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,8BAAsB,qBA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C,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,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,EACX,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAEhD,OAAO,EACL,eAAe,EACf,cAAc,EACd,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACnC,iDAAiD,EAClD,MAAM,gCAAgC,CAAA;AAEvC,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,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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,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAA;AAMD;;;;;;;;;;GAUG;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"}
|
|
@@ -2,6 +2,7 @@ import * as z from "zod";
|
|
|
2
2
|
import { PluginApiReturn } from "../../../types";
|
|
3
3
|
import { ComponentHandle } from "../../../handles";
|
|
4
4
|
import { PluginDesignChangeResult } from "../lock";
|
|
5
|
+
import type { PluginOpeningPlacementArgs, PluginOpeningPlacementResult } from "../opening-placement";
|
|
5
6
|
/**
|
|
6
7
|
* `snaptrude.design.doors` — door-specific reads + edits. Creation lives at
|
|
7
8
|
* `design.create.door`; generic reads (`listDoors`/`getHost`/`getProperties`) live at
|
|
@@ -20,6 +21,30 @@ import { PluginDesignChangeResult } from "../lock";
|
|
|
20
21
|
*/
|
|
21
22
|
export declare abstract class PluginDesignDoorsApi {
|
|
22
23
|
constructor();
|
|
24
|
+
/**
|
|
25
|
+
* Trial the native host fit and geometry rebuild, then restore the model without publishing commands.
|
|
26
|
+
* The first result uses the creation options; subsequent results use candidateWidths in input order.
|
|
27
|
+
* Widths are authored parameters, not physical envelopes or a guaranteed maximum width.
|
|
28
|
+
* No catalog save, history entry or model persistence occurs. Rerun after model edits.
|
|
29
|
+
* A failed fit leaves cut unverified. Family-host cuts are also unverified: their rebuild
|
|
30
|
+
* cannot supply a reversible, authoritative trial result. Material clearance checks evaluated
|
|
31
|
+
* parts against physical neighbours across hosts. The intended host uses native fit/cut checks.
|
|
32
|
+
* Creation repeats clearance immediately before placement; this report grants no later approval.
|
|
33
|
+
* Editing permission is required; locked hosts and an active opening tool reject.
|
|
34
|
+
* It does not say which room the door opens into: read `opensInto` from
|
|
35
|
+
* `design.validation.access()` after placement (see {@linkcode getSwingDirection}).
|
|
36
|
+
* A requested width/height on a family sized by its Type (Custom Sizes off) picks the Type
|
|
37
|
+
* within 25 mm, else turns Custom Sizes on; each result's `sizing` says which. Creation
|
|
38
|
+
* (`design.create.door(s)`) applies the same rule, so the size you pass is the size built.
|
|
39
|
+
* @param options Door creation options and up to 12 alternative widths; numeric lengths use SU.
|
|
40
|
+
* @returns Separate fit/cut/clearance evidence, evaluated bounds and explicit limitations.
|
|
41
|
+
* @examplePrompt Check which door widths fit this host without placing a door
|
|
42
|
+
* @example
|
|
43
|
+
* const result = await snaptrude.design.doors.checkPlacement({
|
|
44
|
+
* familyId, version, hostWall, position, width: 3.5, candidateWidths: [3, 2.5],
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
abstract checkPlacement(options: PluginOpeningPlacementArgs): PluginApiReturn<PluginOpeningPlacementResult>;
|
|
23
48
|
/**
|
|
24
49
|
* Get the type name of a door — the label that identifies which kind of door
|
|
25
50
|
* the instance is, as shown in its properties.
|
|
@@ -145,6 +170,12 @@ export declare abstract class PluginDesignDoorsApi {
|
|
|
145
170
|
* Read the saved hand parameter. left means local -X; right means local +X.
|
|
146
171
|
* Returns null when the recipe does not declare that control.
|
|
147
172
|
*
|
|
173
|
+
* Hand is the hinge side, not the room the leaf swings into. For that, read
|
|
174
|
+
* `(await design.validation.access()).topology.rooms[].doors[].opensInto`: a
|
|
175
|
+
* converted room or `"outside"`. A door whose wall is not a room edge is listed
|
|
176
|
+
* in `topology.unresolvedDoors` instead. To make it open into the other room,
|
|
177
|
+
* call {@linkcode mirror} (axis `x`) and read access again.
|
|
178
|
+
*
|
|
148
179
|
* @param door The door to query
|
|
149
180
|
* @returns `'left'` / `'right'`, or `null` if indeterminate
|
|
150
181
|
*
|
|
@@ -152,12 +183,16 @@ export declare abstract class PluginDesignDoorsApi {
|
|
|
152
183
|
* @examplePrompt Is the selected door left-handed or right-handed?
|
|
153
184
|
* @examplePrompt Check the hinge side of this door
|
|
154
185
|
* @examplePrompt Does the entrance door open to the left or the right?
|
|
186
|
+
* @examplePrompt Which room does this door open into?
|
|
155
187
|
*
|
|
156
188
|
* # Example
|
|
157
189
|
* ```ts
|
|
158
190
|
* const [door] = await snaptrude.design.query.listDoors({ isSelected: true })
|
|
159
191
|
* const swing = await snaptrude.design.doors.getSwingDirection(door)
|
|
160
192
|
* if (swing) console.log("opens as a", swing, "hand door")
|
|
193
|
+
* // Which room it opens into
|
|
194
|
+
* const { topology } = await snaptrude.design.validation.access()
|
|
195
|
+
* const side = topology.rooms.flatMap((r) => r.doors).find((d) => d.door === door)?.opensInto
|
|
161
196
|
* ```
|
|
162
197
|
*/
|
|
163
198
|
abstract getSwingDirection(door: ComponentHandle): PluginApiReturn<"left" | "right" | null>;
|
|
@@ -167,6 +202,8 @@ export declare abstract class PluginDesignDoorsApi {
|
|
|
167
202
|
* Axis y rejects. No mesh reflection occurs. Recipes use outputs.swingSide
|
|
168
203
|
* (1 or -1) for the adjoining room's floor ownership. A door between two
|
|
169
204
|
* room floors requires this output; a missing or invalid report rejects the cut.
|
|
205
|
+
* The same side decides `opensInto` in `design.validation.access()`; read it
|
|
206
|
+
* there to confirm which room the door now opens into.
|
|
170
207
|
*
|
|
171
208
|
* @param door The door to mirror
|
|
172
209
|
* @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;
|
|
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;AAClD,OAAO,KAAK,EACV,0BAA0B,EAC1B,4BAA4B,EAC7B,MAAM,sBAAsB,CAAA;AAE7B;;;;;;;;;;;;;;;GAeG;AACH,8BAAsB,oBAAoB;;IAGxC;;;;;;;;;;;;;;;;;;;;;;OAsBG;aACa,cAAc,CAC5B,OAAO,EAAE,0BAA0B,GAClC,eAAe,CAAC,4BAA4B,CAAC;IAEhD;;;;;;;;;;;;;;;;;;OAkBG;aACa,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC;IAE9E;;;;;;;;;;;;;;;;;;OAkBG;aACa,SAAS,CACvB,IAAI,EAAE,eAAe,GACpB,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC;IAEjC;;;;;;;;;;;;;;;;;OAiBG;aACa,QAAQ,CACtB,IAAI,EAAE,eAAe,GACpB,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC;IAEjC;;;;;;;;;;;;;;;;;OAiBG;aACa,SAAS,CACvB,IAAI,EAAE,eAAe,GACpB,eAAe,CA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;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC;;iBAE7C,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,kCAAkC,CAC1C,CAAA;AAED,eAAO,MAAM,0BAA0B;;iBAAqC,CAAA;AAC5E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA"}
|
|
@@ -15,6 +15,7 @@ import { PluginDesignEditApi } from "./edit";
|
|
|
15
15
|
import { PluginDesignUpdateApi } from "./update";
|
|
16
16
|
import { PluginDesignVisibilityApi } from "./visibility";
|
|
17
17
|
import { PluginDesignDimensionsApi } from "./dimensions";
|
|
18
|
+
import { PluginDesignTextApi } from "./text";
|
|
18
19
|
import { PluginDesignTypesApi } from "./types";
|
|
19
20
|
import { PluginDesignFamilyApi } from "./family";
|
|
20
21
|
import { PluginDesignGridsApi } from "./grids";
|
|
@@ -36,6 +37,7 @@ import { PluginElectricalApi, PluginPlumbingApi, PluginMechanicalApi } from "./n
|
|
|
36
37
|
* - {@linkcode PluginDesignApi.delete} — hard entity removal
|
|
37
38
|
* - {@linkcode PluginDesignApi.visibility} — hide / isolate / reveal entities
|
|
38
39
|
* - {@linkcode PluginDesignApi.dimensions} — dimension lines (Measuring Tape): create / list / delete / hide
|
|
40
|
+
* - {@linkcode PluginDesignApi.text} — authored text and annotations (Text / Annotate tools): create / list / get / update / setLeader
|
|
39
41
|
* - {@linkcode PluginDesignApi.types} — read-only building type / assembly reference
|
|
40
42
|
* - {@linkcode PluginDesignApi.family} — author parametric families from a JSON spec
|
|
41
43
|
* - {@linkcode PluginDesignApi.lock} / {@linkcode PluginDesignApi.unlock} / {@linkcode PluginDesignApi.isLocked} / {@linkcode PluginDesignApi.listLocked} — lock state (top-level design verbs, §2A.1)
|
|
@@ -74,6 +76,8 @@ export declare abstract class PluginDesignApi {
|
|
|
74
76
|
abstract visibility: PluginDesignVisibilityApi;
|
|
75
77
|
/** Dimension lines (Measuring Tape). See {@linkcode PluginDesignDimensionsApi}. */
|
|
76
78
|
abstract dimensions: PluginDesignDimensionsApi;
|
|
79
|
+
/** Authored text and annotations (Text / Annotate tools). See {@linkcode PluginDesignTextApi}. */
|
|
80
|
+
abstract text: PluginDesignTextApi;
|
|
77
81
|
/** Read-only building type / assembly reference. See {@linkcode PluginDesignTypesApi}. */
|
|
78
82
|
abstract types: PluginDesignTypesApi;
|
|
79
83
|
/** Author parametric families from a JSON spec. See {@linkcode PluginDesignFamilyApi}. */
|
|
@@ -255,6 +259,7 @@ export * from "./query";
|
|
|
255
259
|
export * from "./selection";
|
|
256
260
|
export * from "./doors";
|
|
257
261
|
export * from "./windows";
|
|
262
|
+
export * from "./opening-placement";
|
|
258
263
|
export * from "./furniture";
|
|
259
264
|
export * from "./materials";
|
|
260
265
|
export * from "./lock";
|
|
@@ -267,6 +272,7 @@ export * from "./edit";
|
|
|
267
272
|
export * from "./update";
|
|
268
273
|
export * from "./visibility";
|
|
269
274
|
export * from "./dimensions";
|
|
275
|
+
export * from "./text";
|
|
270
276
|
export * from "./types";
|
|
271
277
|
export * from "./family";
|
|
272
278
|
export * from "./grids";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/design/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO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