@snaptrude/plugin-core 0.10.0 → 0.11.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -2
- package/api-manifest.full.json +6928 -0
- package/api-manifest.json +85 -4
- package/dist/api/core/camera/index.d.ts +16 -0
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/core/project/index.d.ts +68 -1
- package/dist/api/core/project/index.d.ts.map +1 -1
- package/dist/api/core/storeys/index.d.ts +14 -0
- package/dist/api/core/storeys/index.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +29 -6
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/delete/index.d.ts +20 -2
- package/dist/api/design/delete/index.d.ts.map +1 -1
- package/dist/api/design/furniture/index.d.ts +33 -0
- package/dist/api/design/furniture/index.d.ts.map +1 -1
- package/dist/api/design/query/index.d.ts +2 -0
- package/dist/api/design/query/index.d.ts.map +1 -1
- package/dist/api/design/query/spaces.d.ts +61 -0
- package/dist/api/design/query/spaces.d.ts.map +1 -1
- package/dist/api/design/visibility.d.ts +28 -0
- package/dist/api/design/visibility.d.ts.map +1 -1
- package/dist/api/entity/space.d.ts +3 -0
- package/dist/api/entity/space.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +35 -1
- package/dist/api/presentation/placedViews.d.ts.map +1 -1
- package/dist/api/presentation/sheets.d.ts +20 -2
- package/dist/api/presentation/sheets.d.ts.map +1 -1
- package/dist/errors/codes.d.ts +8 -3
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/index.cjs +69 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +62 -3
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
- package/snaptrude-plugin-core-0.11.0.tgz +0 -0
- package/src/api/core/camera/index.ts +17 -0
- package/src/api/core/project/index.ts +62 -1
- package/src/api/core/storeys/index.ts +15 -0
- package/src/api/design/create/index.ts +34 -8
- package/src/api/design/delete/index.ts +20 -1
- package/src/api/design/furniture/index.ts +34 -0
- package/src/api/design/query/index.ts +2 -0
- package/src/api/design/query/spaces.ts +68 -0
- package/src/api/design/visibility.ts +34 -0
- package/src/api/entity/space.ts +2 -0
- package/src/api/presentation/placedViews.ts +29 -1
- package/src/api/presentation/sheets.ts +19 -3
- package/src/errors/codes.ts +30 -2
- package/test/errors.test.mjs +4 -0
package/api-manifest.json
CHANGED
|
@@ -483,6 +483,17 @@
|
|
|
483
483
|
"argsType": "string",
|
|
484
484
|
"resultType": "PluginCoreBuildingsUpdateResult"
|
|
485
485
|
},
|
|
486
|
+
{
|
|
487
|
+
"path": "core.camera.getMode",
|
|
488
|
+
"namespace": "core.camera",
|
|
489
|
+
"summary": "Get the current camera mode. Paired with {@linkcode PluginCameraApi.setMode}.",
|
|
490
|
+
"examplePrompts": [
|
|
491
|
+
"Am I in 2D or 3D?",
|
|
492
|
+
"What view mode is the editor in?\n\n# Example\n```ts\nif ((await snaptrude.core.camera.getMode()) === \"2d\") {\nawait snaptrude.core.camera.setMode(\"3d\")\n}\n```"
|
|
493
|
+
],
|
|
494
|
+
"argsType": null,
|
|
495
|
+
"resultType": "PluginCameraMode"
|
|
496
|
+
},
|
|
486
497
|
{
|
|
487
498
|
"path": "core.camera.getProjection",
|
|
488
499
|
"namespace": "core.camera",
|
|
@@ -3397,6 +3408,19 @@
|
|
|
3397
3408
|
"argsType": "PluginAppMode",
|
|
3398
3409
|
"resultType": "PluginCoreModeSetResult"
|
|
3399
3410
|
},
|
|
3411
|
+
{
|
|
3412
|
+
"path": "core.project.getInfo",
|
|
3413
|
+
"namespace": "core.project",
|
|
3414
|
+
"summary": "Read identity and headline facts about the currently open project — id, display name, unit type, storey count, active storey, and site location when the project is geo-located.",
|
|
3415
|
+
"examplePrompts": [
|
|
3416
|
+
"What is this project called?",
|
|
3417
|
+
"Where is this project located?",
|
|
3418
|
+
"Give me a summary of this project",
|
|
3419
|
+
"How many storeys does this project have?\n\n# Example\n```ts\nconst info = await snaptrude.core.project.getInfo()\nconsole.log(info.name, info.units, info.storeyCount)\n```"
|
|
3420
|
+
],
|
|
3421
|
+
"argsType": null,
|
|
3422
|
+
"resultType": "PluginProjectInfo"
|
|
3423
|
+
},
|
|
3400
3424
|
{
|
|
3401
3425
|
"path": "core.project.settings.getTolerance",
|
|
3402
3426
|
"namespace": "core.project.settings",
|
|
@@ -3819,6 +3843,17 @@
|
|
|
3819
3843
|
"argsType": "number",
|
|
3820
3844
|
"resultType": "PluginStoryGetResult"
|
|
3821
3845
|
},
|
|
3846
|
+
{
|
|
3847
|
+
"path": "core.storeys.getActive",
|
|
3848
|
+
"namespace": "core.storeys",
|
|
3849
|
+
"summary": "Get the active storey's value. Paired with {@linkcode PluginCoreStoreysApi.setActive}.",
|
|
3850
|
+
"examplePrompts": [
|
|
3851
|
+
"Which storey am I on?",
|
|
3852
|
+
"What is the current storey?\n\n# Example\n```ts\nconst storey = await snaptrude.core.storeys.getActive()\n```"
|
|
3853
|
+
],
|
|
3854
|
+
"argsType": null,
|
|
3855
|
+
"resultType": "number"
|
|
3856
|
+
},
|
|
3822
3857
|
{
|
|
3823
3858
|
"path": "core.storeys.list",
|
|
3824
3859
|
"namespace": "core.storeys",
|
|
@@ -4277,10 +4312,10 @@
|
|
|
4277
4312
|
"Create a floor from this room outline",
|
|
4278
4313
|
"Add a 100mm thick floor over the footprint",
|
|
4279
4314
|
"Lay flooring across the selected outline",
|
|
4280
|
-
"Put a floor at this position with 150mm thickness\n\n# Example\n```ts\nconst rect = await snaptrude.core.geom.create.profileRect(5, 4)\nconst contour = await snaptrude.core.geom.create.contourFromProfile(rect)\nconst floor = await snaptrude.design.create.floor(contour, 0.1)\n```"
|
|
4315
|
+
"Put a floor at this position with 150mm thickness\n\n# Example\n```ts\nconst rect = await snaptrude.core.geom.create.profileRect(5, 4)\nconst contour = await snaptrude.core.geom.create.contourFromProfile(rect)\nconst [floor, ...siblings] = await snaptrude.design.create.floor(contour, 0.1)\n```"
|
|
4281
4316
|
],
|
|
4282
4317
|
"argsType": "ContourHandle",
|
|
4283
|
-
"resultType": "ComponentHandle"
|
|
4318
|
+
"resultType": "ComponentHandle[]"
|
|
4284
4319
|
},
|
|
4285
4320
|
{
|
|
4286
4321
|
"path": "design.create.furniture",
|
|
@@ -4477,7 +4512,7 @@
|
|
|
4477
4512
|
"Remove the door and window I just created"
|
|
4478
4513
|
],
|
|
4479
4514
|
"argsType": "ComponentHandle[]",
|
|
4480
|
-
"resultType": "
|
|
4515
|
+
"resultType": "PluginDesignDeleteResult",
|
|
4481
4516
|
"performance": "Array delete — pass every target in one call (one host round-trip). There is no per-item delete; collect the whole set and never loop this per entity. # Example ```ts // Hard-delete every furniture item on storey 2 (a single undo entry) const furniture = await snaptrude.design.query.listFurniture({ storeys: [2] }) if (furniture.length > 0) { const { affected } = await snaptrude.design.delete.entities(furniture) } ```"
|
|
4482
4517
|
},
|
|
4483
4518
|
{
|
|
@@ -4757,6 +4792,17 @@
|
|
|
4757
4792
|
"argsType": "\"team\" | \"general\"",
|
|
4758
4793
|
"resultType": "PluginFurnitureCatalogItem[]"
|
|
4759
4794
|
},
|
|
4795
|
+
{
|
|
4796
|
+
"path": "design.furniture.listCatalogGroups",
|
|
4797
|
+
"namespace": "design.furniture",
|
|
4798
|
+
"summary": "List the furniture catalog's groups. Matches {@linkcode PluginDesignDoorsApi.listCatalogGroups} and {@linkcode PluginDesignWindowsApi.listCatalogGroups}, so all three catalog surfaces are named alike.",
|
|
4799
|
+
"examplePrompts": [
|
|
4800
|
+
"What furniture groups are available?",
|
|
4801
|
+
"List the furniture categories in this project\n\n# Example\n```ts\nconst groups = await snaptrude.design.furniture.listCatalogGroups()\nfor (const g of groups) console.log(g.dbType, g.label, g.source)\n```"
|
|
4802
|
+
],
|
|
4803
|
+
"argsType": null,
|
|
4804
|
+
"resultType": "PluginObjectCatalogGroup[]"
|
|
4805
|
+
},
|
|
4760
4806
|
{
|
|
4761
4807
|
"path": "design.furniture.listCategories",
|
|
4762
4808
|
"namespace": "design.furniture",
|
|
@@ -4768,7 +4814,8 @@
|
|
|
4768
4814
|
"Which furniture categories can I filter by?\n\n# Example\n```ts\nconst categories = await snaptrude.design.furniture.listCategories()\nconst [first] = categories\nconst items = await snaptrude.design.furniture.listCatalog(undefined, first)\nconsole.log(first, \"→\", items.length, \"items\")\n```"
|
|
4769
4815
|
],
|
|
4770
4816
|
"argsType": null,
|
|
4771
|
-
"resultType": "string[]"
|
|
4817
|
+
"resultType": "string[]",
|
|
4818
|
+
"deprecated": "design.furniture.listCatalogGroups"
|
|
4772
4819
|
},
|
|
4773
4820
|
{
|
|
4774
4821
|
"path": "design.furniture.setDimensions",
|
|
@@ -5531,6 +5578,18 @@
|
|
|
5531
5578
|
"argsType": "ComponentHandle",
|
|
5532
5579
|
"resultType": "ContourHandle | null"
|
|
5533
5580
|
},
|
|
5581
|
+
{
|
|
5582
|
+
"path": "design.query.spaces.listGeneratedBim",
|
|
5583
|
+
"namespace": "design.query.spaces",
|
|
5584
|
+
"summary": "List the space's **engine-generated BIM components** — the walls, floors and slabs the parametric engine derived from this space, grouped by kind.",
|
|
5585
|
+
"examplePrompts": [
|
|
5586
|
+
"Which walls did this room generate?",
|
|
5587
|
+
"List the BIM components derived from the selected space",
|
|
5588
|
+
"Get the floors and slabs that belong to this room\n\n# Example\n```ts\nconst [space] = await snaptrude.design.query.listSpaces()\nconst bim = await snaptrude.design.query.spaces.listGeneratedBim(space)\nconsole.log(`${bim.walls.length} walls, ${bim.floors.length} floors`)\n```"
|
|
5589
|
+
],
|
|
5590
|
+
"argsType": "ComponentHandle",
|
|
5591
|
+
"resultType": "PluginSpaceGeneratedBim"
|
|
5592
|
+
},
|
|
5534
5593
|
{
|
|
5535
5594
|
"path": "design.query.storeyOutline",
|
|
5536
5595
|
"namespace": "design.query",
|
|
@@ -5936,6 +5995,17 @@
|
|
|
5936
5995
|
"argsType": "ComponentHandle[]",
|
|
5937
5996
|
"resultType": "PluginDesignChangeResult"
|
|
5938
5997
|
},
|
|
5998
|
+
{
|
|
5999
|
+
"path": "design.visibility.show",
|
|
6000
|
+
"namespace": "design.visibility",
|
|
6001
|
+
"summary": "Reveal specific hidden components — the inverse of {@linkcode PluginDesignVisibilityApi.hide}. Use {@linkcode PluginDesignVisibilityApi.showAll} to reveal everything.",
|
|
6002
|
+
"examplePrompts": [
|
|
6003
|
+
"Show these walls again",
|
|
6004
|
+
"Unhide the selected furniture\n\n# Example\n```ts\nawait snaptrude.design.visibility.show([wall])\n```"
|
|
6005
|
+
],
|
|
6006
|
+
"argsType": "ComponentHandle[]",
|
|
6007
|
+
"resultType": "PluginDesignChangeResult"
|
|
6008
|
+
},
|
|
5939
6009
|
{
|
|
5940
6010
|
"path": "design.visibility.showAll",
|
|
5941
6011
|
"namespace": "design.visibility",
|
|
@@ -6802,6 +6872,17 @@
|
|
|
6802
6872
|
"argsType": "string",
|
|
6803
6873
|
"resultType": "PluginPlacedViewLabel"
|
|
6804
6874
|
},
|
|
6875
|
+
{
|
|
6876
|
+
"path": "presentation.placedViews.setLod",
|
|
6877
|
+
"namespace": "presentation.placedViews",
|
|
6878
|
+
"summary": "Set the level of detail a placed view renders at — `\"design\"` (the Design-mode massing representation) or `\"bim\"` (the detailed BIM representation). Views only. Undoable. Requires Present mode to be open.",
|
|
6879
|
+
"examplePrompts": [
|
|
6880
|
+
"Switch this placed view to the BIM level of detail",
|
|
6881
|
+
"Show the massing version of the placed plan"
|
|
6882
|
+
],
|
|
6883
|
+
"argsType": "string",
|
|
6884
|
+
"resultType": "void"
|
|
6885
|
+
},
|
|
6805
6886
|
{
|
|
6806
6887
|
"path": "presentation.placedViews.setMask",
|
|
6807
6888
|
"namespace": "presentation.placedViews",
|
|
@@ -53,6 +53,22 @@ export declare abstract class PluginCameraApi {
|
|
|
53
53
|
* ```
|
|
54
54
|
*/
|
|
55
55
|
abstract setStandardView(view: PluginStandardView): PluginApiReturn<boolean>;
|
|
56
|
+
/**
|
|
57
|
+
* Get the current camera mode. Paired with {@linkcode PluginCameraApi.setMode}.
|
|
58
|
+
*
|
|
59
|
+
* @returns `"2d"` when the editor is in plan view, `"3d"` otherwise.
|
|
60
|
+
*
|
|
61
|
+
* @examplePrompt Am I in 2D or 3D?
|
|
62
|
+
* @examplePrompt What view mode is the editor in?
|
|
63
|
+
*
|
|
64
|
+
* # Example
|
|
65
|
+
* ```ts
|
|
66
|
+
* if ((await snaptrude.core.camera.getMode()) === "2d") {
|
|
67
|
+
* await snaptrude.core.camera.setMode("3d")
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
abstract getMode(): PluginApiReturn<PluginCameraMode>;
|
|
56
72
|
/**
|
|
57
73
|
* Toggle the modelling mode between `2d` (plan) and `3d`. Mirrors the canvas
|
|
58
74
|
* 2D/3D toggle: `3d` enters the isometric perspective view, `2d` drops to the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/camera/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C;;;;;;;;GAQG;AACH,8BAAsB,eAAe;;IAGnC;;;;;;;;;;;;;;;;;;OAkBG;aACa,QAAQ,CACtB,GAAG,EAAE,UAAU,EACf,MAAM,EAAE,UAAU,GACjB,eAAe,CAAC,OAAO,CAAC;IAE3B;;;;;;;;;;;;;;;;;;;OAmBG;aACa,eAAe,CAC7B,IAAI,EAAE,kBAAkB,GACvB,eAAe,CAAC,OAAO,CAAC;IAE3B;;;;;;;;;;;;;;;;;OAiBG;aACa,OAAO,CAAC,IAAI,EAAE,gBAAgB,GAAG,eAAe,CAAC,OAAO,CAAC;IAEzE;;;;;;;;;;;;;;;;OAgBG;aACa,aAAa,IAAI,eAAe,CAAC,sBAAsB,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;;EAAuB,CAAA;AACpD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE/D;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;EAA0C,CAAA;AAC7E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE/E;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;iBAE1C,CAAA;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;;iBAElC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B;;;;;iBAExC,CAAA;AACF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,6BAA6B,CACrC,CAAA"}
|
|
@@ -3,11 +3,41 @@ import { PluginApiReturn } from "../../../types";
|
|
|
3
3
|
/**
|
|
4
4
|
* Project-level settings and info.
|
|
5
5
|
*
|
|
6
|
-
* Accessed via `snaptrude.core.project`.
|
|
6
|
+
* Accessed via `snaptrude.core.project`. Exposes
|
|
7
|
+
* {@linkcode PluginProjectApi.getInfo} (project identity) and
|
|
7
8
|
* {@linkcode PluginProjectApi.settings} (snap + grid controls).
|
|
8
9
|
*/
|
|
9
10
|
export declare abstract class PluginProjectApi {
|
|
10
11
|
constructor();
|
|
12
|
+
/**
|
|
13
|
+
* Read identity and headline facts about the currently open project — id,
|
|
14
|
+
* display name, unit type, storey count, active storey, and site location
|
|
15
|
+
* when the project is geo-located.
|
|
16
|
+
*
|
|
17
|
+
* `activeStorey` and `storeyCount` are both scoped to the ACTIVE BUILDING, so
|
|
18
|
+
* they always describe the same building. In a multi-building project
|
|
19
|
+
* `storeyCount` is therefore NOT the total across every building — use
|
|
20
|
+
* `core.storeys.list()`, which spans all buildings, for that.
|
|
21
|
+
*
|
|
22
|
+
* @returns A {@linkcode PluginProjectInfo}. `name` is `null` only when the
|
|
23
|
+
* project genuinely has no title; `location` is `null` only when the project
|
|
24
|
+
* is not geo-located. Neither is used to signal a failure.
|
|
25
|
+
* @throws PRECONDITION_FAILED when no project is open.
|
|
26
|
+
* @throws OPERATION_FAILED when the project lookup or the site-location read
|
|
27
|
+
* fails. A failed read is never reported as `null`.
|
|
28
|
+
*
|
|
29
|
+
* @examplePrompt What is this project called?
|
|
30
|
+
* @examplePrompt Where is this project located?
|
|
31
|
+
* @examplePrompt Give me a summary of this project
|
|
32
|
+
* @examplePrompt How many storeys does this project have?
|
|
33
|
+
*
|
|
34
|
+
* # Example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const info = await snaptrude.core.project.getInfo()
|
|
37
|
+
* console.log(info.name, info.units, info.storeyCount)
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
abstract getInfo(): PluginApiReturn<PluginProjectInfo>;
|
|
11
41
|
/** Project settings — snaps and grid. See {@linkcode PluginProjectSettingsApi}. */
|
|
12
42
|
abstract settings: PluginProjectSettingsApi;
|
|
13
43
|
}
|
|
@@ -396,4 +426,41 @@ export declare const PluginToleranceArgs: z.ZodObject<{
|
|
|
396
426
|
value: z.ZodNumber;
|
|
397
427
|
}, z.core.$strip>;
|
|
398
428
|
export type PluginToleranceArgs = z.infer<typeof PluginToleranceArgs>;
|
|
429
|
+
/**
|
|
430
|
+
* Identity and headline facts about the currently open project.
|
|
431
|
+
*
|
|
432
|
+
* `location` is a read-only projection of {@linkcode PluginProgramSiteApi.getLocation}
|
|
433
|
+
* — `program.site.*` remains the full site surface (context, weather, polygons).
|
|
434
|
+
* It is mirrored here because "what and where is this project" is one question.
|
|
435
|
+
*
|
|
436
|
+
* | Property | Type | Description |
|
|
437
|
+
* |---|---|---|
|
|
438
|
+
* | `projectId` | `string` | The open project's id (floorkey) |
|
|
439
|
+
* | `name` | `string \| null` | Display name; `null` only when the project has no title (a failed lookup throws) |
|
|
440
|
+
* | `units` | {@linkcode PUnitType} | The project's unit type |
|
|
441
|
+
* | `activeStorey` | `number` | The active storey value, in the active building |
|
|
442
|
+
* | `storeyCount` | `number` | How many storeys the ACTIVE BUILDING has (not the project-wide total — `core.storeys.list()` spans all buildings) |
|
|
443
|
+
* | `location` | `{ latitude, longitude } \| null` | Site location; `null` only when not geo-located (a failed read throws) |
|
|
444
|
+
*/
|
|
445
|
+
export declare const PluginProjectInfo: z.ZodObject<{
|
|
446
|
+
projectId: z.ZodString;
|
|
447
|
+
name: z.ZodNullable<z.ZodString>;
|
|
448
|
+
units: z.ZodEnum<{
|
|
449
|
+
meters: "meters";
|
|
450
|
+
"feet-inches": "feet-inches";
|
|
451
|
+
inches: "inches";
|
|
452
|
+
centimeters: "centimeters";
|
|
453
|
+
millimeters: "millimeters";
|
|
454
|
+
kilometers: "kilometers";
|
|
455
|
+
miles: "miles";
|
|
456
|
+
babylon: "babylon";
|
|
457
|
+
}>;
|
|
458
|
+
activeStorey: z.ZodNumber;
|
|
459
|
+
storeyCount: z.ZodNumber;
|
|
460
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
461
|
+
latitude: z.ZodNumber;
|
|
462
|
+
longitude: z.ZodNumber;
|
|
463
|
+
}, z.core.$strip>>;
|
|
464
|
+
}, z.core.$strip>;
|
|
465
|
+
export type PluginProjectInfo = z.infer<typeof PluginProjectInfo>;
|
|
399
466
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAGhD;;;;;;GAMG;AACH,8BAAsB,gBAAgB;;IAGpC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;aACa,OAAO,IAAI,eAAe,CAAC,iBAAiB,CAAC;IAE7D,mFAAmF;IACnF,SAAgB,QAAQ,EAAE,wBAAwB,CAAA;CACnD;AAED;;;;GAIG;AACH,8BAAsB,wBAAwB;;IAG5C;;;;;;;;;;;;;;;;;OAiBG;aACa,YAAY,IAAI,eAAe,CAAC,MAAM,CAAC;IAEvD;;;;;;;;;;;;;;;;;;OAkBG;aACa,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAAC,OAAO,CAAC;IAErE,wGAAwG;IACxG,SAAgB,KAAK,EAAE,cAAc,CAAA;IACrC,oDAAoD;IACpD,SAAgB,IAAI,EAAE,aAAa,CAAA;CACpC;AAED;;;;;;GAMG;AACH,8BAAsB,cAAc;;IAGlC;;;;;;;;;;;;;;;;;OAiBG;aACa,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAAC,OAAO,CAAC;IACrE;;;;;;;;;;;;;;OAcG;aACa,YAAY,IAAI,eAAe,CAAC,MAAM,CAAC;IACvD;;;;;;;;;;;;;OAaG;aACa,eAAe,IAAI,eAAe,CAAC,OAAO,CAAC;IAC3D;;;;;;;;;;;;;OAaG;aACa,gBAAgB,IAAI,eAAe,CAAC,OAAO,CAAC;IAE5D;;;;;;;;;;;;;;;;;OAiBG;aACa,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAAC,OA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AO,mBAAmB,CAAC,CAAA;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;iBAE9B,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;iBAS5B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
|
@@ -137,6 +137,20 @@ export declare abstract class PluginCoreStoreysApi {
|
|
|
137
137
|
abstract update(storyValue: number, height?: number, options?: {
|
|
138
138
|
name?: string;
|
|
139
139
|
}): PluginApiReturn<PluginStoryUpdateResult>;
|
|
140
|
+
/**
|
|
141
|
+
* Get the active storey's value. Paired with {@linkcode PluginCoreStoreysApi.setActive}.
|
|
142
|
+
*
|
|
143
|
+
* @returns The active storey value, in the same numbering `list` and `get` use.
|
|
144
|
+
*
|
|
145
|
+
* @examplePrompt Which storey am I on?
|
|
146
|
+
* @examplePrompt What is the current storey?
|
|
147
|
+
*
|
|
148
|
+
* # Example
|
|
149
|
+
* ```ts
|
|
150
|
+
* const storey = await snaptrude.core.storeys.getActive()
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
abstract getActive(): PluginApiReturn<number>;
|
|
140
154
|
/**
|
|
141
155
|
* Make a storey the active storey — the same as clicking it in the storey/layer
|
|
142
156
|
* panel. Subsequent draws and creates target this storey, and in 2D the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/storeys/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,E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AEpD;;;;;;;;;;;;;;;;;;;;OAoBG;aACa,SAAS,CACvB,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,CAAC;IAE9C;;;;;;;;;;;;;;;;;;;;;;OAsBG;aACa,MAAM,CACpB,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,CAAC;IAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;aACa,IAAI,CAClB,SAAS,EAAE,IAAI,GAAG,MAAM,EACxB,OAAO,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,GAC7D,eAAe,CAAC,0BAA0B,CAAC;CAC/C;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B;;;;;;iBAEtC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,2BAA2B,CACnC,CAAA"}
|
|
@@ -173,11 +173,26 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
173
173
|
* Create a **floor** by extruding a footprint contour by `thickness`
|
|
174
174
|
* (extruded upward).
|
|
175
175
|
*
|
|
176
|
+
* The parametric engine owns floor topology and may resolve the request
|
|
177
|
+
* differently than asked: drawing against existing floors can **split** the
|
|
178
|
+
* footprint into several floors, or **merge** it into a pre-existing
|
|
179
|
+
* neighbour (that floor's region grows; nothing new is created). The call
|
|
180
|
+
* honors the engine's resolution and returns **every floor that covers the
|
|
181
|
+
* requested footprint after the operation** — the newly created floor(s),
|
|
182
|
+
* and/or the pre-existing floor that absorbed it. The array is never empty
|
|
183
|
+
* on success; a lone independently-created floor comes back as `[floor]`.
|
|
184
|
+
*
|
|
185
|
+
* **Breaking change in 0.11.0** — previously returned a single
|
|
186
|
+
* {@linkcode ComponentHandle}; callers must switch to the array (the first
|
|
187
|
+
* element preserves the old single-floor behavior for simple creates).
|
|
188
|
+
*
|
|
176
189
|
* @param contour - Footprint (outer + holes)
|
|
177
190
|
* @param thickness - Floor thickness (> 0)
|
|
178
191
|
* @param position - Offset from origin
|
|
179
|
-
* @returns the {@linkcode ComponentHandle} of
|
|
180
|
-
*
|
|
192
|
+
* @returns the {@linkcode ComponentHandle}s of every floor covering the
|
|
193
|
+
* requested footprint after parametric resolution (created and/or absorbing)
|
|
194
|
+
* @throws if the contour is invalid, the thickness is not positive, or the
|
|
195
|
+
* engine rejected the operation (nothing covers the footprint)
|
|
181
196
|
*
|
|
182
197
|
* @examplePrompt Create a floor from this room outline
|
|
183
198
|
* @examplePrompt Add a 100mm thick floor over the footprint
|
|
@@ -188,10 +203,10 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
188
203
|
* ```ts
|
|
189
204
|
* const rect = await snaptrude.core.geom.create.profileRect(5, 4)
|
|
190
205
|
* const contour = await snaptrude.core.geom.create.contourFromProfile(rect)
|
|
191
|
-
* const floor = await snaptrude.design.create.floor(contour, 0.1)
|
|
206
|
+
* const [floor, ...siblings] = await snaptrude.design.create.floor(contour, 0.1)
|
|
192
207
|
* ```
|
|
193
208
|
*/
|
|
194
|
-
abstract floor(contour: ContourHandle, thickness: number, position?: Vec3Handle): PluginApiReturn<ComponentHandle>;
|
|
209
|
+
abstract floor(contour: ContourHandle, thickness: number, position?: Vec3Handle): PluginApiReturn<ComponentHandle[]>;
|
|
195
210
|
/**
|
|
196
211
|
* Create a **roof** by extruding a footprint contour by `thickness`. Created
|
|
197
212
|
* flat (extruded downward); pitch/slope is a separate post-creation edit.
|
|
@@ -326,7 +341,13 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
326
341
|
* single undo entry. The storey must already exist
|
|
327
342
|
* (`core.storeys.create` first). Default: geometry-derived — a profile
|
|
328
343
|
* drawn at y = 0 lands on storey 1; the ACTIVE storey is NOT consulted.
|
|
329
|
-
* @returns
|
|
344
|
+
* @returns the actually-created wall {@linkcode ComponentHandle}s. The
|
|
345
|
+
* parametric engine owns wall topology — curves touching existing walls
|
|
346
|
+
* may merge into or split against them, so the returned count can differ
|
|
347
|
+
* from the input curve count. Profile-ordered 1:1 matches come first,
|
|
348
|
+
* then the remaining merged/split products in creation order. Re-query
|
|
349
|
+
* (e.g. `design.query.spaces.listGeneratedBim`) rather than assuming a
|
|
350
|
+
* wall per input curve.
|
|
330
351
|
* @throws if the profile is empty, `wallType` names no wall type in the
|
|
331
352
|
* project, `storey` does not exist, or wall creation fails
|
|
332
353
|
*
|
|
@@ -446,7 +467,9 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
446
467
|
* the item's height yourself.
|
|
447
468
|
* @param options - Optional placement options: `label` — instance name
|
|
448
469
|
* (default auto `${name}Ins${n}`); `createNewSourceMesh` — emit a
|
|
449
|
-
* source-mesh creation command (default `true`)
|
|
470
|
+
* source-mesh creation command (default `true`). `position.y` is always
|
|
471
|
+
* grounded: the placed instance's bounding-box bottom rests at it (the
|
|
472
|
+
* surface-flush grounding described above)
|
|
450
473
|
* @param angleInDegrees - Optional signed rotation about the vertical axis, in
|
|
451
474
|
* degrees (same convention as {@linkcode PluginDesignTransformApi.rotate}).
|
|
452
475
|
* Applied at creation time so it is part of the placement's single undo entry.
|
|
@@ -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,aAAa,EACb,UAAU,EACX,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,eAAe,EACf,cAAc,EACd,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACpC,MAAM,gCAAgC,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,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gCAAgC;;;;;;;;;;;;;;;;;;;4BAc3C,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,gCAAgC,CACxC,CAAA;AAMD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB;;;;;iBAc/B,CAAA;AACH,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;AAM7E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;iBAM/C,CAAA;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAA;AAMD;;;;;;;GAOG;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"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { PluginApiReturn } from "../../../types";
|
|
3
3
|
import { ComponentHandle } from "../../../handles";
|
|
4
|
-
import { PluginDesignChangeResult } from "../lock";
|
|
5
4
|
/**
|
|
6
5
|
* Arguments for {@linkcode PluginDesignDeleteApi.entities}.
|
|
7
6
|
*
|
|
@@ -18,6 +17,22 @@ export declare const PluginDesignDeleteEntitiesArgs: z.ZodObject<{
|
|
|
18
17
|
components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
19
18
|
}, z.core.$strip>;
|
|
20
19
|
export type PluginDesignDeleteEntitiesArgs = z.infer<typeof PluginDesignDeleteEntitiesArgs>;
|
|
20
|
+
/**
|
|
21
|
+
* Result of {@linkcode PluginDesignDeleteApi.entities} — the shared
|
|
22
|
+
* change-result shape plus the delete cascade. Deliberately a delete-specific
|
|
23
|
+
* extension of {@linkcode PluginDesignChangeResult} (which other change
|
|
24
|
+
* mutations keep unchanged).
|
|
25
|
+
*
|
|
26
|
+
* | Property | Type | Description |
|
|
27
|
+
* |---|---|---|
|
|
28
|
+
* | `affected` | {@linkcode ComponentHandle}`[]` | The entities that were deleted (the resolved input set) |
|
|
29
|
+
* | `cascaded` | {@linkcode ComponentHandle}`[]`? | Components PG2 removed as a consequence — derived walls/floors/slabs of deleted spaces; returned so callers can invalidate cached handles |
|
|
30
|
+
*/
|
|
31
|
+
export declare const PluginDesignDeleteResult: z.ZodObject<{
|
|
32
|
+
affected: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
33
|
+
cascaded: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type PluginDesignDeleteResult = z.infer<typeof PluginDesignDeleteResult>;
|
|
21
36
|
/**
|
|
22
37
|
* `snaptrude.design.delete.*` — **hard removal** of scene BIM entities.
|
|
23
38
|
*
|
|
@@ -40,6 +55,9 @@ export declare abstract class PluginDesignDeleteApi {
|
|
|
40
55
|
* @returns The entities that were deleted, as {@linkcode ComponentHandle}`[]`
|
|
41
56
|
* (echoed host-side from the resolved+deleted set — the engine returns no ids).
|
|
42
57
|
* Deleted handles are **stale** afterwards: re-resolving one throws `HANDLE_INVALID`.
|
|
58
|
+
* When the parametric engine removes further components as a consequence
|
|
59
|
+
* (derived walls/floors/slabs of deleted spaces), those are reported in the
|
|
60
|
+
* optional `cascaded` array — invalidate any cached handles to them too.
|
|
43
61
|
* @throws If any supplied handle is unknown/forged (`HANDLE_INVALID`) — the whole
|
|
44
62
|
* call rejects before anything is deleted (all-or-nothing resolution).
|
|
45
63
|
*
|
|
@@ -61,6 +79,6 @@ export declare abstract class PluginDesignDeleteApi {
|
|
|
61
79
|
* }
|
|
62
80
|
* ```
|
|
63
81
|
*/
|
|
64
|
-
abstract entities(components: ComponentHandle[]): PluginApiReturn<
|
|
82
|
+
abstract entities(components: ComponentHandle[]): PluginApiReturn<PluginDesignDeleteResult>;
|
|
65
83
|
}
|
|
66
84
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/delete/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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/delete/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;AAGlD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,8BAA8B;;iBAEzC,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAE3F;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB;;;iBAEnC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE/E;;;;;;;;;GASG;AACH,8BAAsB,qBAAqB;;IAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;aACa,QAAQ,CACtB,UAAU,EAAE,eAAe,EAAE,GAC5B,eAAe,CAAC,wBAAwB,CAAC;CAC7C"}
|
|
@@ -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 { PluginObjectCatalogGroup } from "../doors";
|
|
5
6
|
/**
|
|
6
7
|
* `snaptrude.design.furniture` — the placeable furniture **catalog** (a library of
|
|
7
8
|
* source items, NOT scene entities) plus dimension reads/edits of PLACED furniture.
|
|
@@ -83,8 +84,40 @@ export declare abstract class PluginDesignFurnitureApi {
|
|
|
83
84
|
* const items = await snaptrude.design.furniture.listCatalog(undefined, first)
|
|
84
85
|
* console.log(first, "→", items.length, "items")
|
|
85
86
|
* ```
|
|
87
|
+
*
|
|
88
|
+
* @deprecated Use `design.furniture.listCatalogGroups` — the same name
|
|
89
|
+
* `design.doors` and `design.windows` use. Still supported.
|
|
86
90
|
*/
|
|
87
91
|
abstract listCategories(): PluginApiReturn<string[]>;
|
|
92
|
+
/**
|
|
93
|
+
* List the furniture catalog's groups. Matches
|
|
94
|
+
* {@linkcode PluginDesignDoorsApi.listCatalogGroups} and
|
|
95
|
+
* {@linkcode PluginDesignWindowsApi.listCatalogGroups}, so all three catalog
|
|
96
|
+
* surfaces are named alike.
|
|
97
|
+
*
|
|
98
|
+
* `source` is `"default"` for the built-in picker groups and `"team"` for the
|
|
99
|
+
* sub-types of THIS project's team library — exactly the split
|
|
100
|
+
* {@linkcode PluginDesignFurnitureApi.listCatalog}'s `source` filter uses, so
|
|
101
|
+
* every `"team"` group is guaranteed to match at least one team item here.
|
|
102
|
+
* For furniture the group token and its label are the same string (the
|
|
103
|
+
* category), so `dbType === label`; `design.doors`/`design.windows` have a
|
|
104
|
+
* distinct engine `dbType`.
|
|
105
|
+
*
|
|
106
|
+
* @returns The catalog groups as {@linkcode PluginObjectCatalogGroup}`[]`
|
|
107
|
+
* (`[]` when empty). Pass a group's `dbType` (=== `label`) to
|
|
108
|
+
* {@linkcode PluginDesignFurnitureApi.listCatalog}'s `category` filter to
|
|
109
|
+
* list its items.
|
|
110
|
+
*
|
|
111
|
+
* @examplePrompt What furniture groups are available?
|
|
112
|
+
* @examplePrompt List the furniture categories in this project
|
|
113
|
+
*
|
|
114
|
+
* # Example
|
|
115
|
+
* ```ts
|
|
116
|
+
* const groups = await snaptrude.design.furniture.listCatalogGroups()
|
|
117
|
+
* for (const g of groups) console.log(g.dbType, g.label, g.source)
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
abstract listCatalogGroups(): PluginApiReturn<PluginObjectCatalogGroup[]>;
|
|
88
121
|
/**
|
|
89
122
|
* List the placeable furniture catalog (team + general libraries),
|
|
90
123
|
* optionally filtered by library `source` and/or `category`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/furniture/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/furniture/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MA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AoC;;;;;;iBAG/C,CAAA;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uCAAuC;;iBAElD,CAAA;AACF,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAC3D,OAAO,uCAAuC,CAC/C,CAAA;AAED,eAAO,MAAM,+BAA+B;;iBAA0C,CAAA;AACtF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAM7F;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEjF;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B;;iBAExC,CAAA;AACF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAEzF;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B;;;;iBAI1C,CAAA;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE7F;;;;;;;GAOG;AACH,eAAO,MAAM,sCAAsC;;;;;;;iBAGjD,CAAA;AACF,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,sCAAsC,CAC9C,CAAA"}
|
|
@@ -285,6 +285,7 @@ export type PluginDesignQueryComponentsArgs = z.infer<typeof PluginDesignQueryCo
|
|
|
285
285
|
* | `isLocked` | `boolean` | Lock flag |
|
|
286
286
|
* | `isHidden` | `boolean` | User-hidden flag |
|
|
287
287
|
* | `isSelected` | `boolean` | Current selection state |
|
|
288
|
+
* | `isVisible` | `boolean` | Whether the entity currently has a visible representation on canvas (user hide flag AND LOD/mode gating both considered); read-only |
|
|
288
289
|
* | `boundingBox` | {@linkcode BBoxComponents} | World-space AABB |
|
|
289
290
|
* | `adjacency` | `{ spaceId: string; value: number }[]` | Adjacency relationships (spaces/masses only). `value`: `2` = Direct (required), `1` = Indirect or physical contact, `-1` = Restricted; `0` entries are filtered out. `[]` when adjacency has never been computed — see `program.adjacency.compute`. |
|
|
290
291
|
*/
|
|
@@ -336,6 +337,7 @@ export declare const PluginEntityProperties: z.ZodObject<{
|
|
|
336
337
|
isLocked: z.ZodOptional<z.ZodBoolean>;
|
|
337
338
|
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
338
339
|
isSelected: z.ZodOptional<z.ZodBoolean>;
|
|
340
|
+
isVisible: z.ZodOptional<z.ZodBoolean>;
|
|
339
341
|
boundingBox: z.ZodOptional<z.ZodObject<{
|
|
340
342
|
min: z.ZodObject<{
|
|
341
343
|
x: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAQlE,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AACrD,OAAO,EAAE,kCAAkC,EAAE,MAAM,kBAAkB,CAAA;AAMrE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;EAkB3B,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAM/D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;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