@roomle/web-sdk 5.2.0 → 6.0.0-alpha.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/lib/ConfiguratorKernel.js +45 -45
- package/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/RoomleCore.js +46 -46
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/api-56gsJaFH.mjs +92 -0
- package/lib/api-56gsJaFH.mjs.map +1 -0
- package/lib/asset-loader.worker-CE4O0JU-.mjs.map +1 -1
- package/lib/budgeteer.sw-yR2xApHT.mjs.map +1 -1
- package/lib/{configurator-CJFwkh54.mjs → configurator-B2Yqt1V5.mjs} +18 -18
- package/lib/{configurator-CJFwkh54.mjs.map → configurator-B2Yqt1V5.mjs.map} +1 -1
- package/lib/configurator-sOl9pxCL.mjs +2 -0
- package/lib/{glb-viewer-BSHmO1do.mjs → glb-viewer-BLe8SEWm.mjs} +23 -23
- package/lib/{glb-viewer-BSHmO1do.mjs.map → glb-viewer-BLe8SEWm.mjs.map} +1 -1
- package/lib/glb-viewer-Y_Md3SYw.mjs +2 -0
- package/lib/{homag-intelligence-CNxcr-eA.mjs → homag-intelligence-DmCkEgju.mjs} +15 -6
- package/lib/homag-intelligence-DmCkEgju.mjs.map +1 -0
- package/lib/{material-viewer-HzxKTFQF.mjs → material-viewer-DlPRNBJK.mjs} +19 -19
- package/lib/{material-viewer-HzxKTFQF.mjs.map → material-viewer-DlPRNBJK.mjs.map} +1 -1
- package/lib/{packages-BebHC0FC.mjs → packages-CRUOFLSm.mjs} +5 -5
- package/lib/{packages-BebHC0FC.mjs.map → packages-CRUOFLSm.mjs.map} +1 -1
- package/lib/planner-DLmepUoo.mjs +44 -0
- package/lib/{planner-DLRkyi_2.mjs.map → planner-DLmepUoo.mjs.map} +1 -1
- package/lib/planner-XmE07_OQ.mjs +2 -0
- package/lib/{roomle-headless-setup-DbO_rLjK.mjs → roomle-headless-setup-bol8UwP_.mjs} +76 -66
- package/lib/roomle-headless-setup-bol8UwP_.mjs.map +1 -0
- package/lib/roomle-headless.d.ts +422 -21
- package/lib/roomle-headless.js +88 -88
- package/lib/roomle-headless.js.map +1 -1
- package/lib/{roomle-sdk-Bt3h0SSr.mjs → roomle-sdk-ORPlJCHx.mjs} +6053 -2905
- package/lib/roomle-sdk-ORPlJCHx.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +422 -21
- package/lib/roomle-sdk.js +9 -9
- package/lib/{roomle-webgpu-renderer-__fKL0NL.mjs → roomle-webgpu-renderer-BQuRMtn8.mjs} +23 -12
- package/lib/{roomle-webgpu-renderer-__fKL0NL.mjs.map → roomle-webgpu-renderer-BQuRMtn8.mjs.map} +1 -1
- package/lib/{script-loader-CIboUjm9.mjs → script-loader-CKTdvq5h.mjs} +2 -2
- package/lib/{script-loader-CIboUjm9.mjs.map → script-loader-CKTdvq5h.mjs.map} +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +2 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.d.ts +5 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.js +45 -45
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.js +46 -46
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/{tools-core-BpUxOTe-.mjs → tools-core-DNlMbyR3.mjs} +6 -6
- package/lib/{tools-core-BpUxOTe-.mjs.map → tools-core-DNlMbyR3.mjs.map} +1 -1
- package/package.json +2 -2
- package/lib/api-DzAvODF3.mjs +0 -61
- package/lib/api-DzAvODF3.mjs.map +0 -1
- package/lib/configurator-BpxToJbA.mjs +0 -2
- package/lib/glb-viewer-45djC72D.mjs +0 -2
- package/lib/homag-intelligence-CNxcr-eA.mjs.map +0 -1
- package/lib/planner-DLRkyi_2.mjs +0 -44
- package/lib/planner-FqhSeWWA.mjs +0 -2
- package/lib/roomle-headless-setup-DbO_rLjK.mjs.map +0 -1
- package/lib/roomle-sdk-Bt3h0SSr.mjs.map +0 -1
package/lib/roomle-headless.d.ts
CHANGED
|
@@ -244,6 +244,9 @@ export declare interface Attic extends PlanElement_2 {
|
|
|
244
244
|
readonly side: WallSide_2;
|
|
245
245
|
readonly kneeHeight: number;
|
|
246
246
|
readonly width: number;
|
|
247
|
+
readonly curved: boolean;
|
|
248
|
+
readonly exteriorNormal: Vector3;
|
|
249
|
+
readonly exteriorPlaneOrigin: Vector3;
|
|
247
250
|
}
|
|
248
251
|
|
|
249
252
|
export declare type AtticArray = EmscriptenArray<Attic>;
|
|
@@ -2334,6 +2337,7 @@ export declare abstract class ConstructionObject extends PlanObjectPtr {
|
|
|
2334
2337
|
export declare interface ConstructionObject_2 extends PlanObject_2 {
|
|
2335
2338
|
new (): ConstructionObject_2;
|
|
2336
2339
|
getAttachedWall(): Wall_2;
|
|
2340
|
+
getAttachedAttic(): Attic;
|
|
2337
2341
|
getPreferredSide(): WallSide_2;
|
|
2338
2342
|
getCornerFromLeft(): Vector3;
|
|
2339
2343
|
getCornerFromRight(): Vector3;
|
|
@@ -2467,6 +2471,12 @@ export declare const CORE_DOCK_PAIR_TYPE: {
|
|
|
2467
2471
|
readonly LINE: 1;
|
|
2468
2472
|
};
|
|
2469
2473
|
|
|
2474
|
+
export declare const CORE_DOCK_PAIR_TYPE_2: {
|
|
2475
|
+
readonly POINT: 0;
|
|
2476
|
+
readonly LINE: 1;
|
|
2477
|
+
readonly AREA: 2;
|
|
2478
|
+
};
|
|
2479
|
+
|
|
2470
2480
|
export declare const CORE_DRAWING_MODE: {
|
|
2471
2481
|
readonly WALL: 0;
|
|
2472
2482
|
readonly ROOM_CONTOUR: 1;
|
|
@@ -2988,16 +2998,49 @@ export declare interface DockingLineSegment {
|
|
|
2988
2998
|
to: number;
|
|
2989
2999
|
}
|
|
2990
3000
|
|
|
3001
|
+
export declare interface DockingLineSegment_2 {
|
|
3002
|
+
from: number;
|
|
3003
|
+
to: number;
|
|
3004
|
+
}
|
|
3005
|
+
|
|
3006
|
+
export declare interface DockPairPreview {
|
|
3007
|
+
areaWidth?: number;
|
|
3008
|
+
childDockId: number;
|
|
3009
|
+
childId: number;
|
|
3010
|
+
displacedChildId: number;
|
|
3011
|
+
displacedChildTransform: Matrix4;
|
|
3012
|
+
displacedComponents: number[];
|
|
3013
|
+
displacementRotation: Vector3;
|
|
3014
|
+
displacementVector: Vector3;
|
|
3015
|
+
insertInBetween: boolean;
|
|
3016
|
+
lineFrom?: Vector3;
|
|
3017
|
+
lineSegments: DockingLineSegment_2[];
|
|
3018
|
+
lineTo?: Vector3;
|
|
3019
|
+
parentDockId: number;
|
|
3020
|
+
parentId: number;
|
|
3021
|
+
position: Vector3;
|
|
3022
|
+
positionFrom?: Vector3;
|
|
3023
|
+
positionTo?: Vector3;
|
|
3024
|
+
rotation: Vector3;
|
|
3025
|
+
type: DockPairType_2;
|
|
3026
|
+
}
|
|
3027
|
+
|
|
2991
3028
|
export declare class DockPairPreviewArray extends EmsArray<KernelDockPairPreview> {
|
|
2992
3029
|
}
|
|
2993
3030
|
|
|
2994
|
-
export declare
|
|
3031
|
+
export declare type DockPairPreviewArray_2 = EmscriptenArray<DockPairPreview>;
|
|
3032
|
+
|
|
3033
|
+
export declare class DockPairPreviewArray_3 extends EmsArray<KernelDockPairPreview> {
|
|
2995
3034
|
}
|
|
2996
3035
|
|
|
2997
3036
|
export declare interface DockPairType {
|
|
2998
3037
|
value: Enumify<typeof CORE_DOCK_PAIR_TYPE>;
|
|
2999
3038
|
}
|
|
3000
3039
|
|
|
3040
|
+
export declare interface DockPairType_2 {
|
|
3041
|
+
value: Enumify_3<typeof CORE_DOCK_PAIR_TYPE_2>;
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3001
3044
|
export declare class DomHelper implements LifeCycleCallbacks, Context {
|
|
3002
3045
|
_creator_: string;
|
|
3003
3046
|
private _lifeCycleManager;
|
|
@@ -3591,13 +3634,15 @@ export declare interface ExternalObjectAPI {
|
|
|
3591
3634
|
/**
|
|
3592
3635
|
* "openOrCloseGeometryOfExternalObject" switches the geometry of the modules between closed and open representation.
|
|
3593
3636
|
* The function can switch the geometry of the group or the singe root module with the ID "groupIdOrRootModuleId".
|
|
3637
|
+
* A root module is switched without the root modules docked to it.
|
|
3594
3638
|
* If "groupIdOrRootModuleId" is the ID of a root module and the "subModuleId" is also specified, only this one sub-module is opened or closed.
|
|
3595
3639
|
* @param groupIdOrRootModuleId The ID of the group of modules or the ID of the root module.
|
|
3596
3640
|
* @param subModuleId The ID of the sub module.
|
|
3597
3641
|
* @param open If true, the modules are opened, if false, they are closed, if the geometry is already in the desired state, nothing happens.
|
|
3598
3642
|
* @param animate If true the opening or closing is animated else the geometry is switched instantly.
|
|
3643
|
+
* @returns false if the group or root module is not in the plan or has no geometry that opens and closes; nothing is switched then.
|
|
3599
3644
|
*/
|
|
3600
|
-
openOrCloseGeometryOfExternalObject(groupIdOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean):
|
|
3645
|
+
openOrCloseGeometryOfExternalObject(groupIdOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean): boolean;
|
|
3601
3646
|
/**
|
|
3602
3647
|
* "getExternalObjectGroups" returns all groups of external objects modules (PosData) that are currently loaded in the plan.
|
|
3603
3648
|
*/
|
|
@@ -3615,11 +3660,24 @@ export declare interface ExternalObjectAPI {
|
|
|
3615
3660
|
* resubmittable article picks with footprints and free docking vectors), and what stands in the
|
|
3616
3661
|
* room (the doors, windows and other plan objects as floor outlines with their height range,
|
|
3617
3662
|
* and the HI groups as the outlines of their root modules).
|
|
3663
|
+
* The groups are in the placement frame: position.pos is the room point of the group's back left
|
|
3664
|
+
* bottom docking corner, rotationY the rotation of a placement, the footprint is measured from there,
|
|
3665
|
+
* and every root module of a row carries rowIndex, its place in the row from 1 at the left end.
|
|
3618
3666
|
* The result is designed to be passed to an AI agent as it is, without further preparation,
|
|
3619
3667
|
* with all geometry in one coordinate system: 3D, right-handed, Y up.
|
|
3620
3668
|
* @param include The sections to include. All sections are returned when omitted or empty.
|
|
3669
|
+
* @param options articleIds: only these articles get their docking vectors and corner point from a
|
|
3670
|
+
* calculated template when they are not in the plan; without it every article that lacks them does.
|
|
3671
|
+
*/
|
|
3672
|
+
getExternalObjectPlanContext(include?: HiPlanContextSection[], options?: HiPlanContextOptions): Promise<HiPlanContext>;
|
|
3673
|
+
/**
|
|
3674
|
+
* "getExternalObjectAgentPrompts" returns the prompts of an AI chat that plans with the HI tools of
|
|
3675
|
+
* the HI MCP server: systemPrompt, the system prompt of the chat, which names the planning skills
|
|
3676
|
+
* the agent fetches with get-skill, and imagePrompt, the text of a user message that carries an
|
|
3677
|
+
* image and no text. More prompts may be added to the object later.
|
|
3678
|
+
* The promise rejects when the planner has no HI module.
|
|
3621
3679
|
*/
|
|
3622
|
-
|
|
3680
|
+
getExternalObjectAgentPrompts(): Promise<HiAgentPrompts>;
|
|
3623
3681
|
/**
|
|
3624
3682
|
* "externalObjectGroupOperation" changes the groups in the plan by command. The payload refers to
|
|
3625
3683
|
* groups, root modules and articles by the ids of "getExternalObjectPlanContext":
|
|
@@ -3629,20 +3687,29 @@ export declare interface ExternalObjectAPI {
|
|
|
3629
3687
|
* - "delete-group" { groupId } removes the group from the plan
|
|
3630
3688
|
* - "delete-root-module" { rootModuleId } removes a root module; the rest of the group splits where it is no longer docked together
|
|
3631
3689
|
* - "merge-article-into-group" { groupId, articleId, attributes?, dockTo: { rootId, ownDockingVector, dockingVector, mode?, offset? } } docks a new root module of the article to a free docking vector of a root module of the group; the new root module takes the implicitRelevant input attributes of that root module, and attributes override them
|
|
3632
|
-
* - "exchange-root-module" { groupId, rootModuleId, articleId } replaces a root module with an article of one root module, keeping its docking and the implicitRelevant input attributes of the replaced root module
|
|
3690
|
+
* - "exchange-root-module" { groupId, rootModuleId, articleId, attributes? } replaces a root module with an article of one root module, keeping its docking and the implicitRelevant input attributes of the replaced root module; attributes override them
|
|
3633
3691
|
* - "merge-groups" { targetGroupId, groupIds } merges the groups into the target group where they stand, like the merge action of the planner; no docking is added
|
|
3634
|
-
*
|
|
3635
|
-
*
|
|
3692
|
+
* - "insert-article-into-group" { groupId, articleId, attributes?, between: [rootModuleId, rootModuleId] } inserts a root module between two root modules docked side by side; the side at a wall keeps its place
|
|
3693
|
+
* - "remove-article-from-group" { groupId, rootModuleId } removes a root module and closes the gap; gapClosed says whether it did
|
|
3694
|
+
* - "swap-root-modules" { groupId, rootModuleIds: [rootModuleId, rootModuleId] } lets two root modules change places, with the units hung on them
|
|
3695
|
+
* A command named like an HI MCP tool (HI_TOOL_COMMAND) performs the whole tool with the tool's arguments - for a tool named like
|
|
3696
|
+
* a group operation a superset of its payload - and adds corrections, hint and historySteps (1 when the tool changed the plan, 0 when not; the planner runs the whole tool as one undo step) to the result:
|
|
3697
|
+
* create-or-replace-groups, place-group, change-module-attribute, change-group-attribute, delete-group, delete-article-in-place,
|
|
3698
|
+
* delete-article-and-compact, merge-article-into-group, exchange-root-module, insert-article-into-group, swap-root-modules, merge-groups.
|
|
3699
|
+
* The promise resolves once the planner has loaded the result, with the affected groups in the shape and the placement frame of
|
|
3700
|
+
* the plan context, and rejects with the reason when the payload is invalid or the operation cannot be performed.
|
|
3636
3701
|
* @param command The operation.
|
|
3637
3702
|
* @param payload The payload of the operation.
|
|
3638
3703
|
*/
|
|
3639
3704
|
externalObjectGroupOperation<C extends HiGroupOperation>(command: C, payload: HiGroupOperationPayloads[C]): Promise<HiGroupOperationResult>;
|
|
3705
|
+
externalObjectGroupOperation(command: HiToolCommandName, payload: Record<string, unknown>): Promise<HiToolCommandResult>;
|
|
3640
3706
|
/**
|
|
3641
3707
|
* It generates a snapshot of the external object in the plan without saving any data.
|
|
3642
3708
|
* By default, the snapshot includes order data, room information, the plan XML, GLBs of the complete scene,
|
|
3643
3709
|
* and only the objects in the scene, as well as perspective images and a top image.
|
|
3644
3710
|
* The complete XML plan is returned. The assets are returned as base64 strings.
|
|
3645
3711
|
* The `requestData` parameter can be used to control which parts of the snapshot are generated, returning only requested properties to improve performance. If `requestData` is passed, omitted properties will be `undefined`.
|
|
3712
|
+
* Open doors and drawers are closed for the images and the object GLB unless `requestData.keepOpenGeometry` is true.
|
|
3646
3713
|
* @param requestData An optional filter object indicating which snapshot properties to generate.
|
|
3647
3714
|
* @returns the snapshot of the external objects
|
|
3648
3715
|
*/
|
|
@@ -3817,6 +3884,11 @@ export declare interface ExternalObjectSnapshotRequest {
|
|
|
3817
3884
|
topImage?: boolean;
|
|
3818
3885
|
perspectiveObjectImage?: boolean;
|
|
3819
3886
|
topObjectImage?: boolean;
|
|
3887
|
+
/**
|
|
3888
|
+
* If true, the images and the object GLB show the doors and drawers as they are in the planner.
|
|
3889
|
+
* Otherwise open doors and drawers are closed for the snapshot.
|
|
3890
|
+
*/
|
|
3891
|
+
keepOpenGeometry?: boolean;
|
|
3820
3892
|
}
|
|
3821
3893
|
|
|
3822
3894
|
export declare interface ExternalObjectSnapshotSaveResult {
|
|
@@ -3869,6 +3941,14 @@ export declare interface ExternalObjectValidContainerModules {
|
|
|
3869
3941
|
parentModuleId: string;
|
|
3870
3942
|
}
|
|
3871
3943
|
|
|
3944
|
+
export declare interface ExternalPlanInstallationElement {
|
|
3945
|
+
runtimeId: number;
|
|
3946
|
+
type: ExternalPlanInstallationElementType;
|
|
3947
|
+
position: [number, number, number];
|
|
3948
|
+
}
|
|
3949
|
+
|
|
3950
|
+
export declare type ExternalPlanInstallationElementType = 'ElectricPlug' | 'WaterConnection';
|
|
3951
|
+
|
|
3872
3952
|
export declare type ExternalPlanObstacleKind = 'group' | 'door' | 'window' | 'object';
|
|
3873
3953
|
|
|
3874
3954
|
export declare interface ExternalPlanObstacles {
|
|
@@ -3878,6 +3958,7 @@ export declare interface ExternalPlanObstacles {
|
|
|
3878
3958
|
}>;
|
|
3879
3959
|
obstacles: ExternalPlanObstacleSegment[];
|
|
3880
3960
|
kinds: Record<number, ExternalPlanObstacleKind>;
|
|
3961
|
+
installationElements?: ExternalPlanInstallationElement[];
|
|
3881
3962
|
}
|
|
3882
3963
|
|
|
3883
3964
|
export declare interface ExternalPlanObstacleSegment {
|
|
@@ -4063,11 +4144,11 @@ export declare class FloorPlanElementViewModel extends PlanElementViewModel {
|
|
|
4063
4144
|
}
|
|
4064
4145
|
|
|
4065
4146
|
export declare interface FloorType {
|
|
4066
|
-
value: Enumify_2<typeof
|
|
4147
|
+
value: Enumify_2<typeof CORE_FLOOR_TYPE_2>;
|
|
4067
4148
|
}
|
|
4068
4149
|
|
|
4069
4150
|
export declare interface FloorType_2 {
|
|
4070
|
-
value: Enumify<typeof
|
|
4151
|
+
value: Enumify<typeof CORE_FLOOR_TYPE>;
|
|
4071
4152
|
}
|
|
4072
4153
|
|
|
4073
4154
|
/**
|
|
@@ -4302,8 +4383,8 @@ export declare interface GlueLogic {
|
|
|
4302
4383
|
updateProperty(rootModuleId?: string, propertyName?: string, propertyValue?: string | number | boolean): void;
|
|
4303
4384
|
findValidSubArticles(posGroupIds: string[] | string): PosArticle[];
|
|
4304
4385
|
getValidContainerModulesForSubArticle(posGroupIds: string[] | string, subArticleId: string): ValidContainerModules[];
|
|
4305
|
-
addSubArticle(articleId: string, rootModuleId: string, parentModuleId: string, insertPosition?: number[]): void
|
|
4306
|
-
moveSubArticle(articleId: string, subModuleId: string, rootModuleId: string, parentModuleId: string, insertPosition?: number[]): void
|
|
4386
|
+
addSubArticle(articleId: string, rootModuleId: string, parentModuleId: string, insertPosition?: number[]): Promise<void>;
|
|
4387
|
+
moveSubArticle(articleId: string, subModuleId: string, rootModuleId: string, parentModuleId: string, insertPosition?: number[]): Promise<void>;
|
|
4307
4388
|
deleteSubArticles(groupId: string, subModuleId: string[] | string): Promise<void>;
|
|
4308
4389
|
changedGroupPlanningSituation(changedGroup: ExternalObjectGroup, objectPositionChanged: boolean): Promise<void>;
|
|
4309
4390
|
changedGroupFromHistory(historyGroup: PosGroup, reloadGroup: boolean): void;
|
|
@@ -4316,8 +4397,9 @@ export declare interface GlueLogic {
|
|
|
4316
4397
|
newPosDataFromId(id: string): Promise<PosGroup | undefined>;
|
|
4317
4398
|
createOrReplacePosDataFromArticleLayout(articleLayoutJson: ExternalObjectGroupLayout, layoutType: string, posArticles?: PosArticle[]): Promise<PosGroup | PosGroup[] | undefined>;
|
|
4318
4399
|
newPosDataFromGroup(posDataJson: PosGroup): Promise<PosGroup>;
|
|
4319
|
-
getPlanContext(include?: HiPlanContextSection[]): Promise<HiPlanContext>;
|
|
4320
|
-
executeGroupOperation(command: string, payload: unknown): Promise<HiGroupOperationResult>;
|
|
4400
|
+
getPlanContext(include?: HiPlanContextSection[], options?: HiPlanContextOptions): Promise<HiPlanContext>;
|
|
4401
|
+
executeGroupOperation(command: string, payload: unknown): Promise<HiGroupOperationResult | HiToolCommandResult>;
|
|
4402
|
+
getAgentPrompts(): HiAgentPrompts;
|
|
4321
4403
|
getGroupDataForOrder(options: GetGroupDataForOrderOptions): Promise<HiOrderData | null>;
|
|
4322
4404
|
getMaterialUrl(materialId: string, groupOrModuleId?: string): string | null;
|
|
4323
4405
|
}
|
|
@@ -4653,6 +4735,12 @@ export declare const HI_CONTEXT_ACTION: {
|
|
|
4653
4735
|
* payload type and one handler.
|
|
4654
4736
|
*/
|
|
4655
4737
|
export declare const HI_GROUP_OPERATION: {
|
|
4738
|
+
readonly ADD_INTERIOR_FITTING: "add-interior-fitting";
|
|
4739
|
+
readonly MOVE_INTERIOR_FITTING: "move-interior-fitting";
|
|
4740
|
+
readonly DELETE_INTERIOR_FITTINGS: "delete-interior-fittings";
|
|
4741
|
+
readonly REPLACE_INTERIOR_FITTING: "replace-interior-fitting";
|
|
4742
|
+
readonly OPEN_OR_CLOSE_GROUP: "open-or-close-group";
|
|
4743
|
+
readonly OPEN_OR_CLOSE_ARTICLE: "open-or-close-article";
|
|
4656
4744
|
readonly CHANGE_MODULE_ATTRIBUTE: "change-module-attribute";
|
|
4657
4745
|
readonly CHANGE_GROUP_ATTRIBUTE: "change-group-attribute";
|
|
4658
4746
|
readonly CHANGE_ATTRIBUTES: "change-attributes";
|
|
@@ -4695,6 +4783,35 @@ export declare const HI_PANEL_ACTION: {
|
|
|
4695
4783
|
readonly SHOW_ARTICLES: "articles";
|
|
4696
4784
|
};
|
|
4697
4785
|
|
|
4786
|
+
export declare const HI_TOOL_COMMAND: {
|
|
4787
|
+
readonly ADD_INTERIOR_FITTING: "add-interior-fitting";
|
|
4788
|
+
readonly MOVE_INTERIOR_FITTING: "move-interior-fitting";
|
|
4789
|
+
readonly DELETE_INTERIOR_FITTINGS: "delete-interior-fittings";
|
|
4790
|
+
readonly REPLACE_INTERIOR_FITTING: "replace-interior-fitting";
|
|
4791
|
+
readonly OPEN_OR_CLOSE_GROUP: "open-or-close-group";
|
|
4792
|
+
readonly OPEN_OR_CLOSE_ARTICLE: "open-or-close-article";
|
|
4793
|
+
readonly CREATE_OR_REPLACE_GROUPS: "create-or-replace-groups";
|
|
4794
|
+
readonly PLACE_GROUP: "place-group";
|
|
4795
|
+
readonly CHANGE_MODULE_ATTRIBUTE: "change-module-attribute";
|
|
4796
|
+
readonly CHANGE_GROUP_ATTRIBUTE: "change-group-attribute";
|
|
4797
|
+
readonly DELETE_GROUP: "delete-group";
|
|
4798
|
+
readonly DELETE_ARTICLE_IN_PLACE: "delete-article-in-place";
|
|
4799
|
+
readonly DELETE_ARTICLE_AND_COMPACT: "delete-article-and-compact";
|
|
4800
|
+
readonly MERGE_ARTICLE_INTO_GROUP: "merge-article-into-group";
|
|
4801
|
+
readonly EXCHANGE_ROOT_MODULE: "exchange-root-module";
|
|
4802
|
+
readonly INSERT_ARTICLE_INTO_GROUP: "insert-article-into-group";
|
|
4803
|
+
readonly SWAP_ROOT_MODULES: "swap-root-modules";
|
|
4804
|
+
readonly MERGE_GROUPS: "merge-groups";
|
|
4805
|
+
};
|
|
4806
|
+
|
|
4807
|
+
/** The prompts of an AI chat that plans with the HI MCP tools. */
|
|
4808
|
+
export declare interface HiAgentPrompts {
|
|
4809
|
+
/** The system prompt of the chat. */
|
|
4810
|
+
systemPrompt: string;
|
|
4811
|
+
/** The text of a user message that carries an image and no text. */
|
|
4812
|
+
imagePrompt: string;
|
|
4813
|
+
}
|
|
4814
|
+
|
|
4698
4815
|
export declare interface HiApiOptions extends HomagIntelligenceSubscription {
|
|
4699
4816
|
om?: HomagIntelligenceSubscription;
|
|
4700
4817
|
baseUrl?: string;
|
|
@@ -4843,6 +4960,36 @@ export declare interface HighlightHelper {
|
|
|
4843
4960
|
export declare type HiGroupOperation = (typeof HI_GROUP_OPERATION)[keyof typeof HI_GROUP_OPERATION];
|
|
4844
4961
|
|
|
4845
4962
|
export declare interface HiGroupOperationPayloads {
|
|
4963
|
+
'add-interior-fitting': {
|
|
4964
|
+
groupId: string;
|
|
4965
|
+
} & Omit<Extract<HiInteriorEdit, {
|
|
4966
|
+
operation: 'add';
|
|
4967
|
+
}>, 'operation'>;
|
|
4968
|
+
'move-interior-fitting': {
|
|
4969
|
+
groupId: string;
|
|
4970
|
+
} & Omit<Extract<HiInteriorEdit, {
|
|
4971
|
+
operation: 'move';
|
|
4972
|
+
}>, 'operation'>;
|
|
4973
|
+
'delete-interior-fittings': {
|
|
4974
|
+
groupId: string;
|
|
4975
|
+
} & Omit<Extract<HiInteriorEdit, {
|
|
4976
|
+
operation: 'delete';
|
|
4977
|
+
}>, 'operation'>;
|
|
4978
|
+
'replace-interior-fitting': {
|
|
4979
|
+
groupId: string;
|
|
4980
|
+
} & Omit<Extract<HiInteriorEdit, {
|
|
4981
|
+
operation: 'replace';
|
|
4982
|
+
}>, 'operation'>;
|
|
4983
|
+
/** Opens or closes the doors and drawers of the group; not a plan change. */
|
|
4984
|
+
'open-or-close-group': {
|
|
4985
|
+
groupId: string;
|
|
4986
|
+
open: boolean;
|
|
4987
|
+
};
|
|
4988
|
+
/** Opens or closes the doors and drawers of one root module; not a plan change. */
|
|
4989
|
+
'open-or-close-article': {
|
|
4990
|
+
rootModuleId: string;
|
|
4991
|
+
open: boolean;
|
|
4992
|
+
};
|
|
4846
4993
|
'change-module-attribute': {
|
|
4847
4994
|
rootModuleId: string;
|
|
4848
4995
|
moduleId?: string | null;
|
|
@@ -4895,7 +5042,7 @@ export declare interface HiGroupOperationPayloads {
|
|
|
4895
5042
|
};
|
|
4896
5043
|
}
|
|
4897
5044
|
|
|
4898
|
-
export declare interface HiGroupOperationResult {
|
|
5045
|
+
export declare interface HiGroupOperationResult extends Partial<HiInteriorOutcome> {
|
|
4899
5046
|
command: HiGroupOperation;
|
|
4900
5047
|
groups: HiPlanGroup[];
|
|
4901
5048
|
removedGroupIds: string[];
|
|
@@ -4905,6 +5052,80 @@ export declare interface HiGroupOperationResult {
|
|
|
4905
5052
|
skippedAttributes?: Array<Omit<HiAttributeChange, 'value'>>;
|
|
4906
5053
|
}
|
|
4907
5054
|
|
|
5055
|
+
export declare interface HiInteriorArticle {
|
|
5056
|
+
articleId: string;
|
|
5057
|
+
libraryId: string;
|
|
5058
|
+
desc?: string;
|
|
5059
|
+
}
|
|
5060
|
+
|
|
5061
|
+
export declare interface HiInteriorDesignOptions {
|
|
5062
|
+
groupId: string;
|
|
5063
|
+
status: 'available' | 'empty' | 'unsupported';
|
|
5064
|
+
fittings: Array<HiInteriorFitting & {
|
|
5065
|
+
replacementArticles?: HiInteriorArticle[];
|
|
5066
|
+
}>;
|
|
5067
|
+
articles: Array<HiInteriorArticle & {
|
|
5068
|
+
destinations: HiInteriorDestination[];
|
|
5069
|
+
}>;
|
|
5070
|
+
}
|
|
5071
|
+
|
|
5072
|
+
export declare type HiInteriorDestination = ExternalObjectValidContainerModules;
|
|
5073
|
+
|
|
5074
|
+
export declare type HiInteriorEdit = {
|
|
5075
|
+
operation: 'add';
|
|
5076
|
+
articleId: string;
|
|
5077
|
+
destination: HiInteriorDestination;
|
|
5078
|
+
insertPosition?: HiInteriorPoint;
|
|
5079
|
+
} | {
|
|
5080
|
+
operation: 'move';
|
|
5081
|
+
instanceId: string;
|
|
5082
|
+
destination?: HiInteriorDestination;
|
|
5083
|
+
insertPosition?: HiInteriorPoint;
|
|
5084
|
+
} | {
|
|
5085
|
+
operation: 'delete';
|
|
5086
|
+
instanceIds: string[];
|
|
5087
|
+
} | {
|
|
5088
|
+
operation: 'replace';
|
|
5089
|
+
instanceId: string;
|
|
5090
|
+
articleId: string;
|
|
5091
|
+
insertPosition?: HiInteriorPoint;
|
|
5092
|
+
};
|
|
5093
|
+
|
|
5094
|
+
export declare interface HiInteriorFitting {
|
|
5095
|
+
instanceId: string;
|
|
5096
|
+
groupId: string;
|
|
5097
|
+
rootId: string;
|
|
5098
|
+
parentModuleId: string;
|
|
5099
|
+
ancestorModuleIds: string[];
|
|
5100
|
+
articleId: string;
|
|
5101
|
+
libraryId: string;
|
|
5102
|
+
name: string;
|
|
5103
|
+
articleName?: string;
|
|
5104
|
+
desc?: string;
|
|
5105
|
+
position?: HiInteriorPoint;
|
|
5106
|
+
attributes: Array<{
|
|
5107
|
+
id: string;
|
|
5108
|
+
value?: string | number | boolean;
|
|
5109
|
+
}>;
|
|
5110
|
+
}
|
|
5111
|
+
|
|
5112
|
+
export declare interface HiInteriorOutcome {
|
|
5113
|
+
changed: boolean;
|
|
5114
|
+
addedInstanceIds: string[];
|
|
5115
|
+
removedInstanceIds: string[];
|
|
5116
|
+
fittings: HiInteriorFitting[];
|
|
5117
|
+
corrections: string[];
|
|
5118
|
+
}
|
|
5119
|
+
|
|
5120
|
+
export declare type HiInteriorPoint = [number, number, number];
|
|
5121
|
+
|
|
5122
|
+
export declare interface HiInteriorScope {
|
|
5123
|
+
groupId: string;
|
|
5124
|
+
rootId?: string;
|
|
5125
|
+
containerModuleId?: string;
|
|
5126
|
+
articleId?: string;
|
|
5127
|
+
}
|
|
5128
|
+
|
|
4908
5129
|
export declare type HiLoadObjectReason = (typeof HI_LOAD_OBJECT_REASON)[keyof typeof HI_LOAD_OBJECT_REASON];
|
|
4909
5130
|
|
|
4910
5131
|
export declare interface HiObjectSelectionApi {
|
|
@@ -5001,11 +5222,13 @@ export declare interface HiPlanAttribute {
|
|
|
5001
5222
|
}
|
|
5002
5223
|
|
|
5003
5224
|
export declare interface HiPlanContext {
|
|
5225
|
+
interiorDesign?: HiInteriorDesignOptions;
|
|
5004
5226
|
masterData?: Record<string, HiPlanMasterData>;
|
|
5005
5227
|
rooms?: HiPlanRoomInformation;
|
|
5006
5228
|
articles?: HiPlanArticle[];
|
|
5007
5229
|
groups?: HiPlanGroup[];
|
|
5008
5230
|
obstacles?: HiPlanObstacles;
|
|
5231
|
+
installationElements?: HiPlanInstallationElement[];
|
|
5009
5232
|
}
|
|
5010
5233
|
|
|
5011
5234
|
export declare interface HiPlanContextData {
|
|
@@ -5015,7 +5238,17 @@ export declare interface HiPlanContextData {
|
|
|
5015
5238
|
}>;
|
|
5016
5239
|
}
|
|
5017
5240
|
|
|
5018
|
-
export declare
|
|
5241
|
+
export declare interface HiPlanContextOptions {
|
|
5242
|
+
interiorDesign?: HiInteriorScope;
|
|
5243
|
+
/**
|
|
5244
|
+
* Only these articles get their docking vectors and corner point from a
|
|
5245
|
+
* template calculated outside the plan when no root module of theirs is in
|
|
5246
|
+
* the plan. Without it, every article that lacks that geometry does.
|
|
5247
|
+
*/
|
|
5248
|
+
articleIds?: string[];
|
|
5249
|
+
}
|
|
5250
|
+
|
|
5251
|
+
export declare type HiPlanContextSection = 'masterData' | 'rooms' | 'articles' | 'groups' | 'obstacles' | 'installationElements' | 'interiorDesign';
|
|
5019
5252
|
|
|
5020
5253
|
export declare interface HiPlanContour {
|
|
5021
5254
|
level: number;
|
|
@@ -5046,6 +5279,7 @@ export declare interface HiPlanFootprint {
|
|
|
5046
5279
|
}
|
|
5047
5280
|
|
|
5048
5281
|
export declare interface HiPlanGroup {
|
|
5282
|
+
interiorFittings?: HiInteriorFitting[];
|
|
5049
5283
|
id: string;
|
|
5050
5284
|
libraryId?: string;
|
|
5051
5285
|
position: HiPlanGroupPosition;
|
|
@@ -5062,6 +5296,12 @@ export declare interface HiPlanGroupPosition {
|
|
|
5062
5296
|
pos?: number[];
|
|
5063
5297
|
rotationY?: number;
|
|
5064
5298
|
footprint?: HiPlanFootprint;
|
|
5299
|
+
rootId?: string;
|
|
5300
|
+
}
|
|
5301
|
+
|
|
5302
|
+
export declare interface HiPlanInstallationElement {
|
|
5303
|
+
type: ExternalPlanInstallationElementType;
|
|
5304
|
+
position: [number, number, number];
|
|
5065
5305
|
}
|
|
5066
5306
|
|
|
5067
5307
|
export declare interface HiPlanMasterData {
|
|
@@ -5125,6 +5365,7 @@ export declare interface HiPlanRoot {
|
|
|
5125
5365
|
id: string;
|
|
5126
5366
|
imageUrl?: string;
|
|
5127
5367
|
}>;
|
|
5368
|
+
rowIndex?: number;
|
|
5128
5369
|
}
|
|
5129
5370
|
|
|
5130
5371
|
export declare interface HiPlanRootAttribute {
|
|
@@ -5176,6 +5417,46 @@ export declare class HiTagCatalogCallbacks implements Context {
|
|
|
5176
5417
|
private _processedArticles;
|
|
5177
5418
|
}
|
|
5178
5419
|
|
|
5420
|
+
export declare type HiToolCommandName = (typeof HI_TOOL_COMMAND)[keyof typeof HI_TOOL_COMMAND];
|
|
5421
|
+
|
|
5422
|
+
/**
|
|
5423
|
+
* The answer of a tool command: the result of its tool - a tool named like a
|
|
5424
|
+
* group operation answers as the operation does, with what the tool adds -
|
|
5425
|
+
* and the undo steps it put on the planner's history with the follow-up
|
|
5426
|
+
* reloads they cause. A tool that fails after it changed the plan answers
|
|
5427
|
+
* with its error and those steps only; one that fails before rejects.
|
|
5428
|
+
*/
|
|
5429
|
+
export declare interface HiToolCommandResult extends Partial<HiInteriorOutcome> {
|
|
5430
|
+
error?: string;
|
|
5431
|
+
command?: string;
|
|
5432
|
+
groups?: HiPlanGroup[];
|
|
5433
|
+
group?: HiPlanGroup;
|
|
5434
|
+
removedGroupIds?: string[];
|
|
5435
|
+
otherGroupIds?: string[];
|
|
5436
|
+
changedModuleIds?: string[];
|
|
5437
|
+
corrections?: string[];
|
|
5438
|
+
hint?: string;
|
|
5439
|
+
loaded?: Array<{
|
|
5440
|
+
id: string;
|
|
5441
|
+
}>;
|
|
5442
|
+
groupAttributes?: Array<{
|
|
5443
|
+
index: number;
|
|
5444
|
+
id: string;
|
|
5445
|
+
set: string[];
|
|
5446
|
+
notCarried?: string[];
|
|
5447
|
+
}>;
|
|
5448
|
+
notLoaded?: Array<{
|
|
5449
|
+
index: number;
|
|
5450
|
+
id?: string;
|
|
5451
|
+
rootIds?: string[];
|
|
5452
|
+
errors: string[];
|
|
5453
|
+
}>;
|
|
5454
|
+
placedIn?: 'corner' | 'wall';
|
|
5455
|
+
wall?: HiPlanWall;
|
|
5456
|
+
gapClosed?: boolean;
|
|
5457
|
+
historySteps: number;
|
|
5458
|
+
}
|
|
5459
|
+
|
|
5179
5460
|
export declare class HomagIntelligence {
|
|
5180
5461
|
private _roomlePlanner;
|
|
5181
5462
|
private _api;
|
|
@@ -5313,6 +5594,11 @@ export declare class ImageRenderer implements Context {
|
|
|
5313
5594
|
updateBounds(bounds: Box3): Promise<void>;
|
|
5314
5595
|
static getCameraTargetForBBox(bbox: Box3, spacing?: number): CameraTarget;
|
|
5315
5596
|
preparePerspectiveImage(scene: Scene, camera: PerspectiveCamera, cameraTarget?: CameraTarget, options?: PrepareImageOptions, onBeforeRender?: (camera: Camera) => void): Promise<Base64Image>;
|
|
5597
|
+
/**
|
|
5598
|
+
* The scene from `camera` as it stands, at width × height, as a JPEG data
|
|
5599
|
+
* URL; helpers (UI, previews, dimensions, gizmos) are left out
|
|
5600
|
+
*/
|
|
5601
|
+
renderCameraImage(scene: Scene, camera: Camera, width: number, height: number, quality: number): Promise<string>;
|
|
5316
5602
|
protected _getRenderSize(options: PrepareImageOptions): {
|
|
5317
5603
|
width: number;
|
|
5318
5604
|
height: number;
|
|
@@ -5327,7 +5613,8 @@ export declare class ImageRenderer implements Context {
|
|
|
5327
5613
|
protected _renderImageFrame(renderInstance: GenericRoomleRenderer | WebGLRenderer | WebGPURenderer, scene: Scene, camera: Camera, options?: PrepareImageOptions): Promise<ImageFrame>;
|
|
5328
5614
|
protected _getThreejsRenderer(renderInstance: GenericRoomleRenderer | WebGLRenderer | WebGPURenderer): WebGLRenderer | WebGPURenderer;
|
|
5329
5615
|
protected _renderSingleFrame(renderInstance: GenericRoomleRenderer | WebGLRenderer | WebGPURenderer, scene: Scene, camera: Camera, options?: PrepareImageOptions): void;
|
|
5330
|
-
|
|
5616
|
+
/** `type` and `quality` as for HTMLCanvasElement.toDataURL, PNG by default */
|
|
5617
|
+
protected _readFrameAndClear(renderer: WebGLRenderer | WebGPURenderer, _options?: PrepareImageOptions, type?: string, quality?: number): Promise<ImageFrame>;
|
|
5331
5618
|
}
|
|
5332
5619
|
|
|
5333
5620
|
export declare class InitData implements Context, Omit<InitDataDefinition, 'colors'> {
|
|
@@ -5573,6 +5860,8 @@ export declare const enum INTERSECTION_MODE {
|
|
|
5573
5860
|
CONFIGURATOR = 1
|
|
5574
5861
|
}
|
|
5575
5862
|
|
|
5863
|
+
export declare const isDeletedInvisibleWall: (wall: KernelWall) => boolean;
|
|
5864
|
+
|
|
5576
5865
|
export declare const isExternalObject: (someThing: unknown) => someThing is ExternalObject;
|
|
5577
5866
|
|
|
5578
5867
|
export declare const isExtObjId: (id: unknown) => id is ExtObjId;
|
|
@@ -5677,6 +5966,8 @@ export declare interface Kernel {
|
|
|
5677
5966
|
getChildrenOfPlanComponent(planComponentId: number, onlyPossibleChildren: boolean, onlyVisibleChildren: boolean): PossibleChildArray_2;
|
|
5678
5967
|
syncPlanObjectToView(conversationId: number, planObjectId: number): void;
|
|
5679
5968
|
getAddOnSpotsForPlanObject(planObjectId: number): AddOnSpotArray_2;
|
|
5969
|
+
getDockPairs(targetObjectId: number, dockingEntity: any, allowInsertInBetween: boolean): DockPairPreviewArray_2;
|
|
5970
|
+
dockNewComponent(targetObjectId: number, dockingEntity: any, dockPair: any): number;
|
|
5680
5971
|
setExternalMeshInvalid(assetType: AssetType_2, idOrUrl: string, quality: number): void;
|
|
5681
5972
|
setAssetInvalid(assetType: AssetType_2, idOrUrl: string, quality: number): void;
|
|
5682
5973
|
loadExternalAttributeDefinition(serializedDefinition: string): void;
|
|
@@ -6222,6 +6513,7 @@ export declare interface LeftOrRightWallSide {
|
|
|
6222
6513
|
}
|
|
6223
6514
|
|
|
6224
6515
|
export declare interface LibraryData {
|
|
6516
|
+
supportsInteriorDesign?: boolean;
|
|
6225
6517
|
libraryId: string;
|
|
6226
6518
|
get masterData(): MasterData | null;
|
|
6227
6519
|
get posGroupVersion(): number;
|
|
@@ -7410,6 +7702,7 @@ export declare interface PlanInteractionHandler_2 {
|
|
|
7410
7702
|
setAtticSide(attic: Attic, side: WallSide_2): void;
|
|
7411
7703
|
setAtticKneeHeight(attic: Attic, kneeHeight: number): void;
|
|
7412
7704
|
setAtticWidth(attic: Attic, width: number): void;
|
|
7705
|
+
setAtticCurved(attic: Attic, curved: boolean): void;
|
|
7413
7706
|
setFloorMaterial(floor: Floor_2, material: FloorMaterial_2): void;
|
|
7414
7707
|
setFloorMaterialRotation(floor: Floor_2, rotationInRad: number): void;
|
|
7415
7708
|
setFloorMaterialUvScale(floor: Floor_2, uvScale: Vector3): void;
|
|
@@ -7875,7 +8168,7 @@ export declare interface PlannerKernelContainer {
|
|
|
7875
8168
|
StringArray: StringArray;
|
|
7876
8169
|
Vector2fArray: Vector2fArray;
|
|
7877
8170
|
LongArray: LongArray_2;
|
|
7878
|
-
DockPairPreviewArray:
|
|
8171
|
+
DockPairPreviewArray: DockPairPreviewArray_3;
|
|
7879
8172
|
ComponentArray: ComponentArray_2;
|
|
7880
8173
|
Type: Type_2;
|
|
7881
8174
|
UnitType: UnitType_2;
|
|
@@ -8026,6 +8319,7 @@ export declare class PlannerSceneEventHandler extends SceneEventHandler<SceneEve
|
|
|
8026
8319
|
private _dragMeasurementLine;
|
|
8027
8320
|
setMeasurementLineLength(measurementLine: MeasurementLinePlanElementViewModel, targetLengthMM: number, direction: string): void;
|
|
8028
8321
|
switchCameraMode(): void;
|
|
8322
|
+
private _isHiddenWallRaycastObject;
|
|
8029
8323
|
}
|
|
8030
8324
|
|
|
8031
8325
|
export declare class PlannerSceneManager extends ConfiguratorSceneManager implements PlannerKernelCallbackI {
|
|
@@ -8199,6 +8493,16 @@ export declare class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
8199
8493
|
deletePlanElements(runtimeIds: RuntimeId[]): Promise<void>;
|
|
8200
8494
|
deletePlanElementSelection(): Promise<void>;
|
|
8201
8495
|
deletePlanElementByIds(runtimeIds: number[]): Promise<void>;
|
|
8496
|
+
private _deletePlanElementByIds;
|
|
8497
|
+
private _deleteRoomFloors;
|
|
8498
|
+
private _removePlanElementIfPresent;
|
|
8499
|
+
private _removeConstructionsAttachedToWall;
|
|
8500
|
+
private _handleRoomWallDeletion;
|
|
8501
|
+
private _getAttachedRoomFloors;
|
|
8502
|
+
private _wallNeedsToStayForAnyRoom;
|
|
8503
|
+
private _convertWallToInvisible;
|
|
8504
|
+
private _removePlanElementViewModel;
|
|
8505
|
+
private _notifyRemovedPlanElementChanges;
|
|
8202
8506
|
rotatePlanElements(ids: RuntimeId[], rotateBy: number): void;
|
|
8203
8507
|
rotatePlanElementSelection(rotateBy: number): void;
|
|
8204
8508
|
planBoundsChanged(): void;
|
|
@@ -8208,6 +8512,20 @@ export declare class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
8208
8512
|
preparePerspectiveImageOf(runtimeId: RuntimeId, options?: PrepareImageOptions): Promise<Base64Image>;
|
|
8209
8513
|
protected _waitForAssets(): Promise<void>;
|
|
8210
8514
|
private _preparePerspectiveImage;
|
|
8515
|
+
/**
|
|
8516
|
+
* Runs `capture` with the scene as the first-person view shows it (3D
|
|
8517
|
+
* geometry, all walls, the ceiling) while the canvas keeps showing the
|
|
8518
|
+
* current view, e.g. to render a photo camera with renderCameraImage and
|
|
8519
|
+
* measure what it sees. Drawing pauses until the view's state is restored.
|
|
8520
|
+
* Interim: the pause goes once the measurements no longer depend on the
|
|
8521
|
+
* scene's view state.
|
|
8522
|
+
*/
|
|
8523
|
+
withEyeLevelScene<T>(capture: () => Promise<T>): Promise<T>;
|
|
8524
|
+
/**
|
|
8525
|
+
* The scene from `camera` at width × height as a JPEG data URL, rendered
|
|
8526
|
+
* off-screen; see withEyeLevelScene for the first-person state
|
|
8527
|
+
*/
|
|
8528
|
+
renderCameraImage(camera: PerspectiveCamera, width: number, height: number, quality?: number): Promise<string>;
|
|
8211
8529
|
prepareThumbnailImage(options: PrepareImageOptionsPlanner): Promise<Base64Image>;
|
|
8212
8530
|
private _handlePlannerIsolationModeState;
|
|
8213
8531
|
private _hideAllExceptSelectedElement;
|
|
@@ -8365,6 +8683,43 @@ export declare class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
8365
8683
|
getExternalSubArticles(id: number): PosArticle[];
|
|
8366
8684
|
}
|
|
8367
8685
|
|
|
8686
|
+
/**
|
|
8687
|
+
* One part of the output of the host's planning agent for the AI Planning Assistant window:
|
|
8688
|
+
* - "text": a piece of the answer of the running turn, markdown, appended to the answer
|
|
8689
|
+
* - "activity": what the agent does now, e.g. the tool it runs, shown in the status line
|
|
8690
|
+
* - "error": the turn failed; the text replaces the answer of the turn and ends the turn
|
|
8691
|
+
* - "done": the turn is complete; the input is free again
|
|
8692
|
+
* - "availability": the input on or off, with the reason shown in the status line; off until the host enables it
|
|
8693
|
+
* - "images": the image drop on or off; off until the host enables it
|
|
8694
|
+
*/
|
|
8695
|
+
export declare type PlanningAssistantOutput = {
|
|
8696
|
+
type: 'text';
|
|
8697
|
+
text: string;
|
|
8698
|
+
} | {
|
|
8699
|
+
type: 'activity';
|
|
8700
|
+
text: string;
|
|
8701
|
+
} | {
|
|
8702
|
+
type: 'error';
|
|
8703
|
+
text: string;
|
|
8704
|
+
} | {
|
|
8705
|
+
type: 'done';
|
|
8706
|
+
} | {
|
|
8707
|
+
type: 'availability';
|
|
8708
|
+
available: boolean;
|
|
8709
|
+
text?: string;
|
|
8710
|
+
} | {
|
|
8711
|
+
type: 'images';
|
|
8712
|
+
enabled: boolean;
|
|
8713
|
+
};
|
|
8714
|
+
|
|
8715
|
+
/** The message the user sends in the AI Planning Assistant window. */
|
|
8716
|
+
export declare interface PlanningAssistantPrompt {
|
|
8717
|
+
/** What the user typed, trimmed; empty when the user sends only an image. */
|
|
8718
|
+
text: string;
|
|
8719
|
+
/** The images of the message as JPEG data URLs: the long side at most 1568 px, EXIF rotation applied, transparent parts white. */
|
|
8720
|
+
images: string[];
|
|
8721
|
+
}
|
|
8722
|
+
|
|
8368
8723
|
export declare interface PlanNode extends KernelObject {
|
|
8369
8724
|
readonly nodeType: NodeType;
|
|
8370
8725
|
getMaxWallHeight(): number;
|
|
@@ -8942,6 +9297,7 @@ export declare interface PosModuleAttribute {
|
|
|
8942
9297
|
}
|
|
8943
9298
|
|
|
8944
9299
|
export declare interface PosModuleData {
|
|
9300
|
+
positionRelativeToRoot?: number[];
|
|
8945
9301
|
id: string;
|
|
8946
9302
|
name: string;
|
|
8947
9303
|
modules?: PosModuleData[];
|
|
@@ -9970,13 +10326,14 @@ export declare class RoomDesignerApi implements RoomDesignerRequests {
|
|
|
9970
10326
|
selectGroup(groupId: string): Promise<void>;
|
|
9971
10327
|
selectRoot(rootModuleId: string): Promise<void>;
|
|
9972
10328
|
selectModule(rootModuleId: string, subModuleId: string): Promise<void>;
|
|
9973
|
-
openCloseGroup(groupOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean): Promise<
|
|
10329
|
+
openCloseGroup(groupOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean): Promise<boolean>;
|
|
9974
10330
|
deleteGroup(groupId: string): Promise<void>;
|
|
9975
10331
|
deleteRootModule(rootModuleId: string): Promise<void>;
|
|
9976
10332
|
mergeGroups(groupIds: string[]): Promise<void>;
|
|
9977
10333
|
getPosDataOfAllGroups(): Promise<PosGroup[]>;
|
|
9978
10334
|
getRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
9979
10335
|
getPlanObstacles(): Promise<ExternalPlanObstacles>;
|
|
10336
|
+
private _gatherInstallationElements;
|
|
9980
10337
|
saveExternalObjectSnapshot(): Promise<ExternalObjectSnapshotSaveResult | null>;
|
|
9981
10338
|
saveCurrentPlanSnapshot(): Promise<RapiPlanSnapshotGetData>;
|
|
9982
10339
|
renderPosDataImage(posDataJson: object): Promise<void>;
|
|
@@ -9989,7 +10346,7 @@ export declare interface RoomDesignerRequests {
|
|
|
9989
10346
|
selectGroup(groupId: string): Promise<void>;
|
|
9990
10347
|
selectRoot(rootModuleId: string): Promise<void>;
|
|
9991
10348
|
selectModule(rootModuleId: string, subModuleId: string): Promise<void>;
|
|
9992
|
-
openCloseGroup(groupOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean):
|
|
10349
|
+
openCloseGroup(groupOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean): Promise<boolean>;
|
|
9993
10350
|
deleteGroup(groupId: string): Promise<void>;
|
|
9994
10351
|
deleteRootModule(rootModuleId: string): Promise<void>;
|
|
9995
10352
|
mergeGroups(groupIds: string[]): Promise<void>;
|
|
@@ -10688,6 +11045,12 @@ export declare class RoomleConfigurator<P extends readonly PluginName[] = readon
|
|
|
10688
11045
|
* only possible if undo was called before
|
|
10689
11046
|
*/
|
|
10690
11047
|
redo(): Promise<void>;
|
|
11048
|
+
/**
|
|
11049
|
+
* Shows the output of the host's agent in the AI Planning Assistant window
|
|
11050
|
+
* (featureFlags.planningAssistant), one part per call; the window sends the user's messages
|
|
11051
|
+
* with the callback "onPlanningAssistantPrompt".
|
|
11052
|
+
*/
|
|
11053
|
+
planningAssistantOutput(part: PlanningAssistantOutput): Promise<void>;
|
|
10691
11054
|
/**
|
|
10692
11055
|
* clears current configurator history
|
|
10693
11056
|
*/
|
|
@@ -11477,11 +11840,19 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
11477
11840
|
removeExternalObject(groupOrRootModuleId: string): Promise<void>;
|
|
11478
11841
|
selectExternalObject(groupOrRootModuleId: string, subModuleId: string | null, contextAction: HiContextAction): Promise<void>;
|
|
11479
11842
|
highlightExternalObject(groupOrRootModuleId: string, subModuleId: string | null): Promise<void>;
|
|
11480
|
-
openOrCloseGeometryOfExternalObject(groupIdOrRootModuleId: string, _subModuleId: string | null, open: boolean, animate: boolean):
|
|
11843
|
+
openOrCloseGeometryOfExternalObject(groupIdOrRootModuleId: string, _subModuleId: string | null, open: boolean, animate: boolean): boolean;
|
|
11481
11844
|
_selectExternalObjectGroup(groupId: string, switchToPlanner: boolean): Promise<void>;
|
|
11482
11845
|
getExternalObjectGroups(): Promise<object[]>;
|
|
11483
|
-
getExternalObjectPlanContext(include?: HiPlanContextSection[]): Promise<HiPlanContext>;
|
|
11846
|
+
getExternalObjectPlanContext(include?: HiPlanContextSection[], options?: HiPlanContextOptions): Promise<HiPlanContext>;
|
|
11847
|
+
getExternalObjectAgentPrompts(): Promise<HiAgentPrompts>;
|
|
11848
|
+
/**
|
|
11849
|
+
* Shows the output of the host's planning agent in the AI Planning Assistant window
|
|
11850
|
+
* (featureFlags.planningAssistant), one part per call; the window sends the user's messages
|
|
11851
|
+
* with the callback "onPlanningAssistantPrompt".
|
|
11852
|
+
*/
|
|
11853
|
+
planningAssistantOutput(part: PlanningAssistantOutput): Promise<void>;
|
|
11484
11854
|
externalObjectGroupOperation<C extends HiGroupOperation>(command: C, payload: HiGroupOperationPayloads[C]): Promise<HiGroupOperationResult>;
|
|
11855
|
+
externalObjectGroupOperation(command: HiToolCommandName, payload: Record<string, unknown>): Promise<HiToolCommandResult>;
|
|
11485
11856
|
getExternalRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
11486
11857
|
_getExternalPlanObstacles(): Promise<ExternalPlanObstacles>;
|
|
11487
11858
|
private _planObstacleKind;
|
|
@@ -12102,6 +12473,14 @@ export declare abstract class SceneManager implements Context, LifeCycleCallback
|
|
|
12102
12473
|
private _renderLoopFunctionApplied;
|
|
12103
12474
|
protected _renderListener: (() => void) | null;
|
|
12104
12475
|
protected _stopRendering: boolean;
|
|
12476
|
+
/**
|
|
12477
|
+
* While set, the render loop skips its frames and the canvas keeps its last
|
|
12478
|
+
* frame, so the scene can be changed for an off-screen capture without the
|
|
12479
|
+
* user seeing it. Interim, used only by PlannerSceneManager.withEyeLevelScene
|
|
12480
|
+
* through _pauseDrawing and _resumeDrawing: remove all three once the
|
|
12481
|
+
* capture no longer needs the scene in another view's state.
|
|
12482
|
+
*/
|
|
12483
|
+
private _drawingPaused;
|
|
12105
12484
|
protected _roomleRenderer: GenericRoomleRenderer | null;
|
|
12106
12485
|
private _roomleRendererReady;
|
|
12107
12486
|
protected _sceneSetupReady: AsyncGuard<void>;
|
|
@@ -12144,6 +12523,14 @@ export declare abstract class SceneManager implements Context, LifeCycleCallback
|
|
|
12144
12523
|
* Start render loop and update everything (AA, AO, Shadows, etc)
|
|
12145
12524
|
* @private
|
|
12146
12525
|
*/
|
|
12526
|
+
/**
|
|
12527
|
+
* See _drawingPaused; applies a pending render-loop function first, which
|
|
12528
|
+
* would otherwise wait for a frame that does not come
|
|
12529
|
+
*/
|
|
12530
|
+
protected _pauseDrawing(): void;
|
|
12531
|
+
private _applyRenderLoopFunction;
|
|
12532
|
+
/** See _drawingPaused; the next frame redraws everything */
|
|
12533
|
+
protected _resumeDrawing(): void;
|
|
12147
12534
|
protected _renderEverything(): void;
|
|
12148
12535
|
/**
|
|
12149
12536
|
* Start render loop and render the scene but keep shadows and AO, needed for material changes
|
|
@@ -12654,6 +13041,16 @@ export declare class UiCallback implements Context {
|
|
|
12654
13041
|
* is called the scene is ready for rendering it as an image
|
|
12655
13042
|
*/
|
|
12656
13043
|
onReadyForRender: () => void;
|
|
13044
|
+
/**
|
|
13045
|
+
* is called when the user sends a message in the AI Planning Assistant window; the host runs its
|
|
13046
|
+
* agent with it and passes the agent's output to "planningAssistantOutput"
|
|
13047
|
+
*/
|
|
13048
|
+
onPlanningAssistantPrompt: (prompt: PlanningAssistantPrompt) => void;
|
|
13049
|
+
/**
|
|
13050
|
+
* is called by "planningAssistantOutput" with each part of the agent's output; the AI Planning
|
|
13051
|
+
* Assistant window shows it. Not forwarded to the host of an embedding.
|
|
13052
|
+
*/
|
|
13053
|
+
onPlanningAssistantOutput: (part: PlanningAssistantOutput) => void;
|
|
12657
13054
|
}
|
|
12658
13055
|
|
|
12659
13056
|
export declare interface UIComponentInfo {
|
|
@@ -12745,6 +13142,9 @@ export declare class UndoRedoHandler {
|
|
|
12745
13142
|
cancelDrawing(): void;
|
|
12746
13143
|
private _hold;
|
|
12747
13144
|
private _release;
|
|
13145
|
+
private _toolCall;
|
|
13146
|
+
runToolCall<T>(perform: () => Promise<T>): Promise<T>;
|
|
13147
|
+
private _holdToolCallStep;
|
|
12748
13148
|
manageExternalObjectLoadingStart(reason?: string): void;
|
|
12749
13149
|
resumeExternalObjectLoading(reason?: string): void;
|
|
12750
13150
|
manageExternalObjectLoadingEnd(shouldEnd?: boolean): void;
|
|
@@ -13127,7 +13527,8 @@ export declare class WallPlanElementViewModel extends PlanElementViewModel {
|
|
|
13127
13527
|
private _addThinLineForInvisibleWall;
|
|
13128
13528
|
private _updateThinLine;
|
|
13129
13529
|
private _removeThinLineForInvisibleWall;
|
|
13130
|
-
private
|
|
13530
|
+
private _applyInvisibleWallLineVisibility;
|
|
13531
|
+
isDeleted(): boolean;
|
|
13131
13532
|
update(): void;
|
|
13132
13533
|
}
|
|
13133
13534
|
|