@roomle/web-sdk 6.0.0-alpha.3 → 6.0.0-alpha.5
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.wasm +0 -0
- package/lib/RoomleCore.js +4 -4
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{api-CfHIG8XG.mjs → api-D1x-GnXP.mjs} +2 -2
- package/lib/{api-CfHIG8XG.mjs.map → api-D1x-GnXP.mjs.map} +1 -1
- package/lib/{asset-loader.worker-CE4O0JU-.mjs → asset-loader.worker-Ct8sEbaT.mjs} +1 -1
- package/lib/{asset-loader.worker-CE4O0JU-.mjs.map → asset-loader.worker-Ct8sEbaT.mjs.map} +1 -1
- package/lib/{budgeteer.sw-yR2xApHT.mjs → budgeteer.sw-C1IOfc0T.mjs} +1 -1
- package/lib/{budgeteer.sw-yR2xApHT.mjs.map → budgeteer.sw-C1IOfc0T.mjs.map} +1 -1
- package/lib/{component-raycast-helper-DmNjzxSD.mjs → component-raycast-helper-Bjf5x6Qp.mjs} +2 -2
- package/lib/{component-raycast-helper-DmNjzxSD.mjs.map → component-raycast-helper-Bjf5x6Qp.mjs.map} +1 -1
- package/lib/configurator-DAlOYY1G.mjs +2 -0
- package/lib/{configurator-vJ5idG1h.mjs → configurator-FnqdWPyc.mjs} +4 -4
- package/lib/{configurator-vJ5idG1h.mjs.map → configurator-FnqdWPyc.mjs.map} +1 -1
- package/lib/{continuous-drawing-helper-BPe83b9-.mjs → continuous-drawing-helper-LPDWkQn5.mjs} +1 -1
- package/lib/{continuous-drawing-helper-BPe83b9-.mjs.map → continuous-drawing-helper-LPDWkQn5.mjs.map} +1 -1
- package/lib/{glb-viewer-C2U_66OO.mjs → glb-viewer-BOC1_L14.mjs} +4 -4
- package/lib/{glb-viewer-C2U_66OO.mjs.map → glb-viewer-BOC1_L14.mjs.map} +1 -1
- package/lib/glb-viewer-b8y6FHyW.mjs +2 -0
- package/lib/hi-mcp-server-Bfxxay_N.mjs +5301 -0
- package/lib/hi-mcp-server-Bfxxay_N.mjs.map +1 -0
- package/lib/{highlight-coordinator-DDyo_U8P.mjs → highlight-coordinator-Dqcq3yh_.mjs} +3 -3
- package/lib/{highlight-coordinator-DDyo_U8P.mjs.map → highlight-coordinator-Dqcq3yh_.mjs.map} +1 -1
- package/lib/{homag-intelligence-CzTJI_Bo.mjs → homag-intelligence-CgictL2u.mjs} +14 -3
- package/lib/homag-intelligence-CgictL2u.mjs.map +1 -0
- package/lib/{material-viewer-1TdW2e5Q.mjs → material-viewer-BDO3436Q.mjs} +4 -4
- package/lib/{material-viewer-1TdW2e5Q.mjs.map → material-viewer-BDO3436Q.mjs.map} +1 -1
- package/lib/{packages-DbCxjl5Y.mjs → packages-CM3Y2HjP.mjs} +5 -5
- package/lib/packages-CM3Y2HjP.mjs.map +1 -0
- package/lib/{planner-BWxMYEwu.mjs → planner-Cw7BpR_J.mjs} +3 -3
- package/lib/{planner-BWxMYEwu.mjs.map → planner-Cw7BpR_J.mjs.map} +1 -1
- package/lib/planner-EIi7lAHf.mjs +2 -0
- package/lib/roomle-headless.d.ts +174 -10
- package/lib/roomle-headless.js +9 -9
- package/lib/roomle-renderer-nCUrLU_S.mjs.map +1 -1
- package/lib/{roomle-sdk-BIGMLwuJ.mjs → roomle-sdk-B3FDzb1a.mjs} +3807 -3551
- package/lib/roomle-sdk-B3FDzb1a.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +174 -10
- package/lib/roomle-sdk.js +7 -7
- package/lib/{roomle-webgpu-renderer-BQuRMtn8.mjs → roomle-webgpu-renderer-ZT__n9mA.mjs} +429 -428
- package/lib/{roomle-webgpu-renderer-BQuRMtn8.mjs.map → roomle-webgpu-renderer-ZT__n9mA.mjs.map} +1 -1
- package/lib/{scene-renderer-DdVBP89m.mjs → scene-renderer-3S4aBupw.mjs} +2 -2
- package/lib/{scene-renderer-DdVBP89m.mjs.map → scene-renderer-3S4aBupw.mjs.map} +1 -1
- package/lib/{script-loader-DOhxnpYD.mjs → script-loader-U9UqaQz5.mjs} +2 -2
- package/lib/{script-loader-DOhxnpYD.mjs.map → script-loader-U9UqaQz5.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/plannerCoreInterface.d.ts +48 -0
- 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 +4 -4
- 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/{stats-helper-DYmtEOGb.mjs → stats-helper-tcYuZsXn.mjs} +2 -2
- package/lib/{stats-helper-DYmtEOGb.mjs.map → stats-helper-tcYuZsXn.mjs.map} +1 -1
- package/lib/{threejs-utils-Dy-rm1a9.mjs → threejs-utils-DyIt_Zd4.mjs} +2 -4
- package/lib/threejs-utils-DyIt_Zd4.mjs.map +1 -0
- package/lib/{tools-core-DscrDxxP.mjs → tools-core-BqYt1d2R.mjs} +3 -3
- package/lib/{tools-core-DscrDxxP.mjs.map → tools-core-BqYt1d2R.mjs.map} +1 -1
- package/lib/workers-DfusgkFA.mjs +6 -0
- package/lib/{workers-B-AqdQMe.mjs.map → workers-DfusgkFA.mjs.map} +1 -1
- package/package.json +2 -2
- package/lib/configurator-DXd3P_DJ.mjs +0 -2
- package/lib/glb-viewer-DiHXOqau.mjs +0 -2
- package/lib/homag-intelligence-CzTJI_Bo.mjs.map +0 -1
- package/lib/packages-DbCxjl5Y.mjs.map +0 -1
- package/lib/planner-Bwo0xEWJ.mjs +0 -2
- package/lib/roomle-sdk-BIGMLwuJ.mjs.map +0 -1
- package/lib/threejs-utils-Dy-rm1a9.mjs.map +0 -1
- package/lib/workers-B-AqdQMe.mjs +0 -6
package/lib/roomle-sdk.d.ts
CHANGED
|
@@ -2344,6 +2344,33 @@ export declare interface ConstructionObject_2 extends PlanObject_2 {
|
|
|
2344
2344
|
getCornerToLeft(): Vector3;
|
|
2345
2345
|
getCornerToRight(): Vector3;
|
|
2346
2346
|
getDoorArches(): ConstructionObjectDoorArchArray;
|
|
2347
|
+
getNormalizedPositionAtWall(): number;
|
|
2348
|
+
getConstructionRules(): {
|
|
2349
|
+
distributedAlongContour: boolean;
|
|
2350
|
+
objectType: string | null;
|
|
2351
|
+
fixedDistance?: number;
|
|
2352
|
+
distanceRange?: {
|
|
2353
|
+
minimum: number;
|
|
2354
|
+
maximum: number;
|
|
2355
|
+
step: number;
|
|
2356
|
+
};
|
|
2357
|
+
stepHeightRange?: {
|
|
2358
|
+
minimum: number;
|
|
2359
|
+
maximum: number;
|
|
2360
|
+
step: number;
|
|
2361
|
+
};
|
|
2362
|
+
maximumSlopeAngle?: number;
|
|
2363
|
+
maximumDeflectionAngle?: number;
|
|
2364
|
+
connectorWidth?: number;
|
|
2365
|
+
connectorHeight?: number;
|
|
2366
|
+
connectorOverlap?: number;
|
|
2367
|
+
distributionType?: string;
|
|
2368
|
+
assemblyParts: Array<{
|
|
2369
|
+
objectType: string;
|
|
2370
|
+
itemId?: string;
|
|
2371
|
+
configuration?: string;
|
|
2372
|
+
}>;
|
|
2373
|
+
} | null;
|
|
2347
2374
|
}
|
|
2348
2375
|
|
|
2349
2376
|
export declare interface ConstructionObjectDoorArch {
|
|
@@ -2374,6 +2401,8 @@ export declare interface ConstructionPlanObject extends PlanObject {
|
|
|
2374
2401
|
getCornerToLeft(): KernelVector3;
|
|
2375
2402
|
getCornerToRight(): KernelVector3;
|
|
2376
2403
|
getDoorArches(): EmsArray<ConstructionObjectDoorArch>;
|
|
2404
|
+
getNormalizedPositionAtWall(): number;
|
|
2405
|
+
getConstructionRules(): ReturnType<ConstructionObject_2['getConstructionRules']>;
|
|
2377
2406
|
}
|
|
2378
2407
|
|
|
2379
2408
|
export declare class ConstructionPlanObjectViewModel extends StaticPlanObjectViewModel {
|
|
@@ -3656,11 +3685,26 @@ export declare interface ExternalObjectAPI {
|
|
|
3656
3685
|
* and every root module of a row carries rowIndex, its place in the row from 1 at the left end.
|
|
3657
3686
|
* The result is designed to be passed to an AI agent as it is, without further preparation,
|
|
3658
3687
|
* with all geometry in one coordinate system: 3D, right-handed, Y up.
|
|
3688
|
+
* The sections "masterData" and "articles" are deprecated: they are library data, which
|
|
3689
|
+
* "getExternalObjectLibraryContext" returns, and the plan context returns them as that method does.
|
|
3659
3690
|
* @param include The sections to include. All sections are returned when omitted or empty.
|
|
3660
|
-
* @param options
|
|
3661
|
-
*
|
|
3691
|
+
* @param options interiorDesign: the group, and optionally the root module, container or article,
|
|
3692
|
+
* the interior design options are read for; articleIds: deprecated, see "getExternalObjectLibraryContext".
|
|
3662
3693
|
*/
|
|
3663
3694
|
getExternalObjectPlanContext(include?: HiPlanContextSection[], options?: HiPlanContextOptions): Promise<HiPlanContext>;
|
|
3695
|
+
/**
|
|
3696
|
+
* "getExternalObjectLibraryContext" returns an agent-ready snapshot of the loaded libraries, which
|
|
3697
|
+
* no change of the plan alters: the compacted master data per library (root modules, sub modules
|
|
3698
|
+
* and every attribute), the articles that can be used (compact catalog with dimensions, docking
|
|
3699
|
+
* vectors and sub-modules - the docking vectors and corner point of an article without its own from
|
|
3700
|
+
* its template, calculated outside the plan) and the sub articles that can be installed inside a
|
|
3701
|
+
* root module (articleId, libraryId and description). It changes only when a library or its
|
|
3702
|
+
* article catalog is loaded.
|
|
3703
|
+
* @param include The sections to include. All sections are returned when omitted or empty.
|
|
3704
|
+
* @param options articleIds: only these articles get their docking vectors and corner point from a
|
|
3705
|
+
* calculated template; without it every article that lacks them does.
|
|
3706
|
+
*/
|
|
3707
|
+
getExternalObjectLibraryContext(include?: HiLibraryContextSection[], options?: HiLibraryContextOptions): Promise<HiLibraryContext>;
|
|
3664
3708
|
/**
|
|
3665
3709
|
* "getExternalObjectAgentPrompts" returns the prompts of an AI chat that plans with the HI tools of
|
|
3666
3710
|
* the HI MCP server: systemPrompt, the system prompt of the chat, which names the planning skills
|
|
@@ -3669,6 +3713,21 @@ export declare interface ExternalObjectAPI {
|
|
|
3669
3713
|
* The promise rejects when the planner has no HI module.
|
|
3670
3714
|
*/
|
|
3671
3715
|
getExternalObjectAgentPrompts(): Promise<HiAgentPrompts>;
|
|
3716
|
+
/**
|
|
3717
|
+
* "getExternalObjectAgentTools" returns the HI agent tools as an MCP server lists them in
|
|
3718
|
+
* tools/list: per tool its name, description and the JSON Schema of its input. An AI agent that
|
|
3719
|
+
* plans with the HI tools takes them as its tools and runs them with "callExternalObjectAgentTool".
|
|
3720
|
+
* The tool code loads on the first call.
|
|
3721
|
+
*/
|
|
3722
|
+
getExternalObjectAgentTools(): Promise<HiAgentToolDefinition[]>;
|
|
3723
|
+
/**
|
|
3724
|
+
* "callExternalObjectAgentTool" runs a tool of "getExternalObjectAgentTools" and resolves as an MCP
|
|
3725
|
+
* server answers tools/call, with text and image parts. An invalid input, an unknown tool and a
|
|
3726
|
+
* failed call resolve with isError and the reason as text.
|
|
3727
|
+
* @param name The name of the tool.
|
|
3728
|
+
* @param input The input of the tool.
|
|
3729
|
+
*/
|
|
3730
|
+
callExternalObjectAgentTool(name: string, input: unknown): Promise<McpToolResult>;
|
|
3672
3731
|
/**
|
|
3673
3732
|
* "externalObjectGroupOperation" changes the groups in the plan by command. The payload refers to
|
|
3674
3733
|
* groups, root modules and articles by the ids of "getExternalObjectPlanContext":
|
|
@@ -4081,9 +4140,16 @@ export declare interface Floor_2 extends PlanElement_2 {
|
|
|
4081
4140
|
getLabelPosition(): Vector3;
|
|
4082
4141
|
getWallsOfRoom(): RoomWall[];
|
|
4083
4142
|
getLabelObject(): string;
|
|
4143
|
+
getBoundaryNodes(): Node_3[];
|
|
4144
|
+
getHeightAt(node: Node_3): number;
|
|
4145
|
+
sampleTerrainHeight(point: Vector3): {
|
|
4146
|
+
height: number;
|
|
4147
|
+
inside: boolean;
|
|
4148
|
+
} | null;
|
|
4084
4149
|
readonly area: number;
|
|
4085
4150
|
readonly material: FloorMaterial_2;
|
|
4086
4151
|
readonly parapetHeight: number;
|
|
4152
|
+
readonly level: number;
|
|
4087
4153
|
readonly floorType: FloorType;
|
|
4088
4154
|
}
|
|
4089
4155
|
|
|
@@ -4387,6 +4453,7 @@ export declare interface GlueLogic {
|
|
|
4387
4453
|
createOrReplacePosDataFromArticleLayout(articleLayoutJson: ExternalObjectGroupLayout, layoutType: string, posArticles?: PosArticle[]): Promise<PosGroup | PosGroup[] | undefined>;
|
|
4388
4454
|
newPosDataFromGroup(posDataJson: PosGroup): Promise<PosGroup>;
|
|
4389
4455
|
getPlanContext(include?: HiPlanContextSection[], options?: HiPlanContextOptions): Promise<HiPlanContext>;
|
|
4456
|
+
getLibraryContext(include?: HiLibraryContextSection[], options?: HiLibraryContextOptions): Promise<HiLibraryContext>;
|
|
4390
4457
|
executeGroupOperation(command: string, payload: unknown): Promise<HiGroupOperationResult | HiToolCommandResult>;
|
|
4391
4458
|
getAgentPrompts(): HiAgentPrompts;
|
|
4392
4459
|
getGroupDataForOrder(options: GetGroupDataForOrderOptions): Promise<HiOrderData | null>;
|
|
@@ -4412,6 +4479,8 @@ export declare interface HandWrittenPlanInteractionHandler {
|
|
|
4412
4479
|
duplicatePlanObject(object: PlanObject, count: number, findFreeSpaceInPlan: boolean): PlanObject[];
|
|
4413
4480
|
duplicatePlanObjects(objects: PlanObjectList, count: number, findFreeSpaceInPlan: boolean): PlanObject[];
|
|
4414
4481
|
setElementVisibility(element: PlanElement_3, isVisible: boolean): void;
|
|
4482
|
+
lockElement(element: PlanElement_3 | KernelWall): void;
|
|
4483
|
+
unlockElement(element: PlanElement_3 | KernelWall): void;
|
|
4415
4484
|
moveObjectsBy(planObjects: KernelObjectPtrList, distance: KernelVector3): void;
|
|
4416
4485
|
rotateObjectTo(planObject: KernelObject, angleInRad: number): void;
|
|
4417
4486
|
setObjectRotation(planObject: KernelObject, angleInRad: number): void;
|
|
@@ -4649,6 +4718,13 @@ export declare interface HiAgentPrompts {
|
|
|
4649
4718
|
imagePrompt: string;
|
|
4650
4719
|
}
|
|
4651
4720
|
|
|
4721
|
+
/** A tool of the HI agent tools as an MCP server lists it in `tools/list`: its input schema is a JSON Schema. */
|
|
4722
|
+
export declare interface HiAgentToolDefinition {
|
|
4723
|
+
name: string;
|
|
4724
|
+
description: string;
|
|
4725
|
+
inputSchema: Record<string, unknown>;
|
|
4726
|
+
}
|
|
4727
|
+
|
|
4652
4728
|
export declare interface HiApiOptions extends HomagIntelligenceSubscription {
|
|
4653
4729
|
om?: HomagIntelligenceSubscription;
|
|
4654
4730
|
baseUrl?: string;
|
|
@@ -4963,6 +5039,23 @@ export declare interface HiInteriorScope {
|
|
|
4963
5039
|
articleId?: string;
|
|
4964
5040
|
}
|
|
4965
5041
|
|
|
5042
|
+
export declare interface HiLibraryContext {
|
|
5043
|
+
masterData?: Record<string, HiPlanMasterData>;
|
|
5044
|
+
articles?: HiPlanArticle[];
|
|
5045
|
+
subArticles?: HiInteriorArticle[];
|
|
5046
|
+
}
|
|
5047
|
+
|
|
5048
|
+
export declare interface HiLibraryContextOptions {
|
|
5049
|
+
/**
|
|
5050
|
+
* Only these articles get their docking vectors and corner point from a
|
|
5051
|
+
* template calculated outside the plan. Without it, every article that
|
|
5052
|
+
* lacks that geometry does.
|
|
5053
|
+
*/
|
|
5054
|
+
articleIds?: string[];
|
|
5055
|
+
}
|
|
5056
|
+
|
|
5057
|
+
export declare type HiLibraryContextSection = 'masterData' | 'articles' | 'subArticles';
|
|
5058
|
+
|
|
4966
5059
|
export declare type HiLoadObjectReason = (typeof HI_LOAD_OBJECT_REASON)[keyof typeof HI_LOAD_OBJECT_REASON];
|
|
4967
5060
|
|
|
4968
5061
|
export declare interface HiObjectSelectionApi {
|
|
@@ -5078,9 +5171,8 @@ export declare interface HiPlanContextData {
|
|
|
5078
5171
|
export declare interface HiPlanContextOptions {
|
|
5079
5172
|
interiorDesign?: HiInteriorScope;
|
|
5080
5173
|
/**
|
|
5081
|
-
*
|
|
5082
|
-
*
|
|
5083
|
-
* the plan. Without it, every article that lacks that geometry does.
|
|
5174
|
+
* @deprecated The articles are library data: use "articleIds" of
|
|
5175
|
+
* "getExternalObjectLibraryContext".
|
|
5084
5176
|
*/
|
|
5085
5177
|
articleIds?: string[];
|
|
5086
5178
|
}
|
|
@@ -5144,6 +5236,7 @@ export declare interface HiPlanInstallationElement {
|
|
|
5144
5236
|
export declare interface HiPlanMasterData {
|
|
5145
5237
|
libraryId: string;
|
|
5146
5238
|
modules: HiPlanMasterDataModule[];
|
|
5239
|
+
subModules: HiPlanMasterDataModule[];
|
|
5147
5240
|
attributes: HiPlanAttribute[];
|
|
5148
5241
|
groupSettings: string[];
|
|
5149
5242
|
}
|
|
@@ -5201,6 +5294,7 @@ export declare interface HiPlanRoot {
|
|
|
5201
5294
|
subModules: Array<{
|
|
5202
5295
|
id: string;
|
|
5203
5296
|
imageUrl?: string;
|
|
5297
|
+
attributes: HiPlanRootAttribute[];
|
|
5204
5298
|
}>;
|
|
5205
5299
|
rowIndex?: number;
|
|
5206
5300
|
}
|
|
@@ -5985,12 +6079,19 @@ export declare interface KernelFloor extends KernelObject {
|
|
|
5985
6079
|
area: number;
|
|
5986
6080
|
material: KernelFloorMaterial;
|
|
5987
6081
|
readonly parapetHeight: number;
|
|
6082
|
+
readonly level: number;
|
|
5988
6083
|
readonly floorType: FloorType_2;
|
|
5989
6084
|
getCenter: () => KernelVector3;
|
|
5990
6085
|
getRandomPointInside: () => KernelVector3;
|
|
5991
6086
|
getLabelPosition: () => KernelVector3;
|
|
5992
6087
|
getWallsOfRoom: () => KernelRoomWall[];
|
|
5993
6088
|
getLabelObject(): string;
|
|
6089
|
+
getBoundaryNodes(): NodePlanObject[];
|
|
6090
|
+
getHeightAt(node: NodePlanObject): number;
|
|
6091
|
+
sampleTerrainHeight(point: KernelVector3): {
|
|
6092
|
+
height: number;
|
|
6093
|
+
inside: boolean;
|
|
6094
|
+
} | null;
|
|
5994
6095
|
}
|
|
5995
6096
|
|
|
5996
6097
|
export declare interface KernelFloorMaterial extends KernelObject {
|
|
@@ -6319,6 +6420,7 @@ export declare interface KernelWall extends KernelObject {
|
|
|
6319
6420
|
readonly isCurved: boolean;
|
|
6320
6421
|
getAngle: () => number;
|
|
6321
6422
|
getArcSweepAngle(): number;
|
|
6423
|
+
isLocked(): boolean;
|
|
6322
6424
|
}
|
|
6323
6425
|
|
|
6324
6426
|
export declare interface KernelWallMaterial extends KernelObject {
|
|
@@ -6343,6 +6445,8 @@ export declare interface LibraryData {
|
|
|
6343
6445
|
get masterData(): MasterData | null;
|
|
6344
6446
|
get posGroupVersion(): number;
|
|
6345
6447
|
initializePosGroup(posGroup: PosGroup): void;
|
|
6448
|
+
solveInitial(posGroup: PosGroup, masterData: MasterData): SolveInitialResult;
|
|
6449
|
+
solveInitialModule(module: PosModuleData, masterData: MasterData, articleId: string): SolveInitialResult;
|
|
6346
6450
|
calculateGroup(posGroup: PosGroup): PosGroup;
|
|
6347
6451
|
getOrderData(posGroup: PosGroup[], roomlePlannerId?: string, rooms?: PosContour[]): any;
|
|
6348
6452
|
getAttributesDropDownValues(module: PosModuleData, attributeIds?: string | string[]): Promise<Record<string, HiAttributeOptionsResult>>;
|
|
@@ -6552,6 +6656,19 @@ export declare interface Matrix4 {
|
|
|
6552
6656
|
|
|
6553
6657
|
export declare type MaybePromise<T> = (() => T) | (() => Promise<T>);
|
|
6554
6658
|
|
|
6659
|
+
/** The result of a tool as an MCP server answers `tools/call`. */
|
|
6660
|
+
export declare interface McpToolResult {
|
|
6661
|
+
content: Array<{
|
|
6662
|
+
type: 'text';
|
|
6663
|
+
text: string;
|
|
6664
|
+
} | {
|
|
6665
|
+
type: 'image';
|
|
6666
|
+
data: string;
|
|
6667
|
+
mimeType: string;
|
|
6668
|
+
}>;
|
|
6669
|
+
isError?: boolean;
|
|
6670
|
+
}
|
|
6671
|
+
|
|
6555
6672
|
/**
|
|
6556
6673
|
* MD5 hex digest of a string, e.g. the hashed password RapiAccess.signinUser expects
|
|
6557
6674
|
*/
|
|
@@ -7247,6 +7364,7 @@ export declare interface Plan_2 extends AbstractModel_2 {
|
|
|
7247
7364
|
getRotationForFrontView(objectIds: number | number[]): number;
|
|
7248
7365
|
getBounds(): Box;
|
|
7249
7366
|
getPlanObjects(): PlanObject_2[];
|
|
7367
|
+
getNodes(): Node_3[];
|
|
7250
7368
|
getWalls(): Wall_2[];
|
|
7251
7369
|
getWallCount(): number;
|
|
7252
7370
|
getAttics(): Attic[];
|
|
@@ -7268,6 +7386,7 @@ export declare interface Plan_3 extends KernelObject {
|
|
|
7268
7386
|
defaultWallThickness: number;
|
|
7269
7387
|
vectorWallThickness: number;
|
|
7270
7388
|
getPlanObjects(): any;
|
|
7389
|
+
getNodes(): NodePlanObject[];
|
|
7271
7390
|
getBounds(): KernelCube;
|
|
7272
7391
|
getTotalFloorArea(): number;
|
|
7273
7392
|
getPlanXML(includeRuntimeId: boolean, xmlVersion: number /** current version is 2 */): string;
|
|
@@ -7432,6 +7551,7 @@ export declare interface PlanInteractionHandler_2 {
|
|
|
7432
7551
|
createPlanWithObjectFromItem(item: CatalogItem_2, position: Vector3, rotationInRad: number): Plan_2;
|
|
7433
7552
|
setDefaultParapetHeight(parapetHeight: number, applyToAll: boolean): void;
|
|
7434
7553
|
setRoomParapetHeight(floor: Floor_2, parapetHeight: number): void;
|
|
7554
|
+
setFloorLevel(floor: Floor_2, level: number): void;
|
|
7435
7555
|
setDefaultWallColor(wallColor: number, applyToAll: boolean): void;
|
|
7436
7556
|
setDefaultWallHeight(wallHeight: number, applyToAll: boolean): void;
|
|
7437
7557
|
setDefaultWallThickness(wallThickness: number, applyToAll: boolean): void;
|
|
@@ -7562,6 +7682,16 @@ export declare interface PlanInteractionHandler_2 {
|
|
|
7562
7682
|
isUndoPossible(): boolean;
|
|
7563
7683
|
getRelativeHistoryPosition(): number;
|
|
7564
7684
|
generateTCExport(planObjectItemIds: string[]): string;
|
|
7685
|
+
setFloorNodeHeight(floor: Floor_2, node: Node_3, height: number): void;
|
|
7686
|
+
addTerrainContour(points: Vector3[], closed: boolean): number[];
|
|
7687
|
+
getHistoryState(): {
|
|
7688
|
+
position: number;
|
|
7689
|
+
size: number;
|
|
7690
|
+
canUndo: boolean;
|
|
7691
|
+
canRedo: boolean;
|
|
7692
|
+
};
|
|
7693
|
+
addConstructionContour(start: PlanElement_2, points: Vector3[]): number[];
|
|
7694
|
+
placeConstructionObjectOnEdge(object: ConstructionObject_2, wall: Wall_2, distanceFromStart: number): boolean;
|
|
7565
7695
|
unit: string;
|
|
7566
7696
|
objectToWallSnapMode: SnapMode;
|
|
7567
7697
|
objectToObjectSnapMode: SnapMode;
|
|
@@ -7874,6 +8004,10 @@ export declare class PlannerKernelAccess extends ConfiguratorKernelAccess {
|
|
|
7874
8004
|
protected _externalObjectComponentDeleted(remainingGroupOrGroups: ExternalObjectGroup | ExternalObjectGroup[], deletedRootModuleId: string): void;
|
|
7875
8005
|
_externalObjectConfigurationDuplicated(duplicatedGroup: ExternalObjectGroup): void;
|
|
7876
8006
|
loadExternalObjectGroups(load: () => PlanObject[]): Promise<PlanObject[]>;
|
|
8007
|
+
reportedPlanChanges<T>(kernelCall: () => T): {
|
|
8008
|
+
result: T;
|
|
8009
|
+
changes: Array<Promise<void>>;
|
|
8010
|
+
};
|
|
7877
8011
|
_externalObjectPlanChanged(movedGroup: ExternalObjectGroup, objectPositionChanged: boolean): Promise<void | undefined>;
|
|
7878
8012
|
_externalObjectConfigurationsMerged(mergedGroup: ExternalObjectGroup, idsOfGroupsMerged: string | string[], targetRootModuleId: string, mergedWithDragging: boolean): Promise<void>;
|
|
7879
8013
|
_externalObjectComponentSplitOff(splitGroups: ExternalObjectGroup[]): void;
|
|
@@ -8142,7 +8276,6 @@ export declare class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
8142
8276
|
private _preloadScene;
|
|
8143
8277
|
private _staticItemGuard;
|
|
8144
8278
|
private _completelyLoaded;
|
|
8145
|
-
private _configurableItemGuard;
|
|
8146
8279
|
private _planCompletelyLoadedGuard;
|
|
8147
8280
|
private _fullyReadyGuard;
|
|
8148
8281
|
private _dragStartBounds;
|
|
@@ -8319,7 +8452,8 @@ export declare class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
8319
8452
|
withEyeLevelScene<T>(capture: () => Promise<T>): Promise<T>;
|
|
8320
8453
|
/**
|
|
8321
8454
|
* The scene from `camera` at width × height as a JPEG data URL, rendered
|
|
8322
|
-
* off-screen
|
|
8455
|
+
* off-screen once the plan and its materials have loaded, as the scene is
|
|
8456
|
+
* now; see withEyeLevelScene for the first-person state
|
|
8323
8457
|
*/
|
|
8324
8458
|
renderCameraImage(camera: PerspectiveCamera, width: number, height: number, quality?: number): Promise<string>;
|
|
8325
8459
|
prepareThumbnailImage(options: PrepareImageOptionsPlanner): Promise<Base64Image>;
|
|
@@ -8971,14 +9105,14 @@ export declare type PosDock = 'RightTop' | 'BackTop' | 'LeftTop' | 'RightBottom'
|
|
|
8971
9105
|
|
|
8972
9106
|
export declare interface PosDockedContext {
|
|
8973
9107
|
ownDockingVector: PosDock | string;
|
|
8974
|
-
ownDockingVectorIndex
|
|
9108
|
+
ownDockingVectorIndex?: number;
|
|
8975
9109
|
dockedRoots: PosDockedContextRoot[];
|
|
8976
9110
|
}
|
|
8977
9111
|
|
|
8978
9112
|
export declare interface PosDockedContextRoot {
|
|
8979
9113
|
id: string;
|
|
8980
9114
|
dockingVector: PosDock | string;
|
|
8981
|
-
dockingVectorIndex
|
|
9115
|
+
dockingVectorIndex?: number;
|
|
8982
9116
|
mode?: PosDockMode | string;
|
|
8983
9117
|
offset?: number[];
|
|
8984
9118
|
}
|
|
@@ -11191,6 +11325,7 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
11191
11325
|
_creator_: string;
|
|
11192
11326
|
private _activePlugins;
|
|
11193
11327
|
private _homagIntelligence;
|
|
11328
|
+
private _hiAgentTools;
|
|
11194
11329
|
private _configuratorContext;
|
|
11195
11330
|
private _domHelper;
|
|
11196
11331
|
private _plannerKernelAccess;
|
|
@@ -11640,6 +11775,7 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
11640
11775
|
_selectExternalObjectGroup(groupId: string, switchToPlanner: boolean): Promise<void>;
|
|
11641
11776
|
getExternalObjectGroups(): Promise<object[]>;
|
|
11642
11777
|
getExternalObjectPlanContext(include?: HiPlanContextSection[], options?: HiPlanContextOptions): Promise<HiPlanContext>;
|
|
11778
|
+
getExternalObjectLibraryContext(include?: HiLibraryContextSection[], options?: HiLibraryContextOptions): Promise<HiLibraryContext>;
|
|
11643
11779
|
getExternalObjectAgentPrompts(): Promise<HiAgentPrompts>;
|
|
11644
11780
|
/**
|
|
11645
11781
|
* Shows the output of the host's planning agent in the AI Planning Assistant window
|
|
@@ -11647,6 +11783,9 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
11647
11783
|
* with the callback "onPlanningAssistantPrompt".
|
|
11648
11784
|
*/
|
|
11649
11785
|
planningAssistantOutput(part: PlanningAssistantOutput): Promise<void>;
|
|
11786
|
+
getExternalObjectAgentTools(): Promise<HiAgentToolDefinition[]>;
|
|
11787
|
+
callExternalObjectAgentTool(name: string, input: unknown): Promise<McpToolResult>;
|
|
11788
|
+
private _getHiAgentTools;
|
|
11650
11789
|
externalObjectGroupOperation<C extends HiGroupOperation>(command: C, payload: HiGroupOperationPayloads[C]): Promise<HiGroupOperationResult>;
|
|
11651
11790
|
externalObjectGroupOperation(command: HiToolCommandName, payload: Record<string, unknown>): Promise<HiToolCommandResult>;
|
|
11652
11791
|
getExternalRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
@@ -12514,6 +12653,11 @@ export declare interface SnapState {
|
|
|
12514
12653
|
value: Enumify<typeof CORE_SNAP_STATE>;
|
|
12515
12654
|
}
|
|
12516
12655
|
|
|
12656
|
+
export declare interface SolveInitialResult {
|
|
12657
|
+
logs: PosErrorMsg[];
|
|
12658
|
+
hasChanged: boolean;
|
|
12659
|
+
}
|
|
12660
|
+
|
|
12517
12661
|
export declare interface StaticComponent extends RoomleComponent {
|
|
12518
12662
|
glbUrl: string;
|
|
12519
12663
|
}
|
|
@@ -12589,6 +12733,10 @@ export declare const STEP_GROUPS: {
|
|
|
12589
12733
|
readonly finalize: "immediate";
|
|
12590
12734
|
readonly methods: ["setElementVisibility"];
|
|
12591
12735
|
};
|
|
12736
|
+
readonly lock: {
|
|
12737
|
+
readonly finalize: "immediate";
|
|
12738
|
+
readonly methods: ["lockElement", "unlockElement"];
|
|
12739
|
+
};
|
|
12592
12740
|
readonly addObjects: {
|
|
12593
12741
|
readonly finalize: "immediate";
|
|
12594
12742
|
readonly methods: ["addPlanObjects"];
|
|
@@ -12910,7 +13058,7 @@ export declare class UndoRedoHandler {
|
|
|
12910
13058
|
private _hold;
|
|
12911
13059
|
private _release;
|
|
12912
13060
|
private _toolCall;
|
|
12913
|
-
runToolCall<T>(perform: () => Promise<T>): Promise<T>;
|
|
13061
|
+
runToolCall<T>(perform: () => Promise<T>, settle?: (commit: () => void) => Promise<unknown>): Promise<T>;
|
|
12914
13062
|
private _holdToolCallStep;
|
|
12915
13063
|
manageExternalObjectLoadingStart(reason?: string): void;
|
|
12916
13064
|
resumeExternalObjectLoading(reason?: string): void;
|
|
@@ -13162,10 +13310,12 @@ export declare interface Wall_2 extends PlanElement_2 {
|
|
|
13162
13310
|
getSlopingLength(): number;
|
|
13163
13311
|
getPreferredSide(): WallSide_2;
|
|
13164
13312
|
getAttachedObjects(): ConstructionObjectSet_2;
|
|
13313
|
+
getAttachedObjectsArray(): ConstructionObject_2[];
|
|
13165
13314
|
getAttachedObjectsExtRefArray(): SizeTArray_2;
|
|
13166
13315
|
getCenter(): Vector3;
|
|
13167
13316
|
getHeightAt(aPoint: Vector3): number;
|
|
13168
13317
|
getPointWithHeight(aHeight: number): Vector3;
|
|
13318
|
+
getCurveKnots(): number[];
|
|
13169
13319
|
readonly isCurved: boolean;
|
|
13170
13320
|
readonly meshThickness: number;
|
|
13171
13321
|
readonly isVectorWall: boolean;
|
|
@@ -13311,9 +13461,11 @@ export declare interface WallPlanObject extends PlanObject {
|
|
|
13311
13461
|
getFrom(): NodePlanObject;
|
|
13312
13462
|
getTo(): NodePlanObject;
|
|
13313
13463
|
getAttachedAttics(): KernelAtticArray;
|
|
13464
|
+
getAttachedObjectsArray(): ConstructionPlanObject[];
|
|
13314
13465
|
getAxisPolyline(): PointArray_3;
|
|
13315
13466
|
getLeftFacePolyline(): PointArray_3;
|
|
13316
13467
|
getRightFacePolyline(): PointArray_3;
|
|
13468
|
+
getCurveKnots(): number[];
|
|
13317
13469
|
readonly thickness: number;
|
|
13318
13470
|
readonly height: number;
|
|
13319
13471
|
readonly isCurved: boolean;
|
|
@@ -13413,6 +13565,7 @@ export declare class WebGpuFogConfig implements WebGpuFogConfigDefinition {
|
|
|
13413
13565
|
enabled: boolean;
|
|
13414
13566
|
nearBlend: number;
|
|
13415
13567
|
farBlend: number;
|
|
13568
|
+
color: HexColorString | HexColorNumber | undefined;
|
|
13416
13569
|
}
|
|
13417
13570
|
|
|
13418
13571
|
export declare interface WebGpuFogConfigDefinition {
|
|
@@ -13441,6 +13594,11 @@ export declare interface WebGpuFogConfigDefinition {
|
|
|
13441
13594
|
* @default 10
|
|
13442
13595
|
*/
|
|
13443
13596
|
farBlend?: number;
|
|
13597
|
+
/**
|
|
13598
|
+
* @description Color of the fog, e.g. `0xffffff` or `'#f7f7f7'`.
|
|
13599
|
+
* Defaults to `colors.DEFAULT_BACKGROUND` so the floor blends into the background.
|
|
13600
|
+
*/
|
|
13601
|
+
color?: HexColorString | HexColorNumber;
|
|
13444
13602
|
}
|
|
13445
13603
|
|
|
13446
13604
|
export declare class WebGpuGroundReflectionConfig implements WebGpuGroundReflectionConfigDefinition {
|
|
@@ -13448,6 +13606,7 @@ export declare class WebGpuGroundReflectionConfig implements WebGpuGroundReflect
|
|
|
13448
13606
|
intensity: number;
|
|
13449
13607
|
startFadeout: number;
|
|
13450
13608
|
endFadeout: number;
|
|
13609
|
+
baseColor: HexColorString | HexColorNumber;
|
|
13451
13610
|
reflectionScale: number;
|
|
13452
13611
|
}
|
|
13453
13612
|
|
|
@@ -13475,6 +13634,11 @@ export declare interface WebGpuGroundReflectionConfigDefinition {
|
|
|
13475
13634
|
* @default 0.15
|
|
13476
13635
|
*/
|
|
13477
13636
|
endFadeout?: number;
|
|
13637
|
+
/**
|
|
13638
|
+
* @description Floor color the reflection fades into, e.g. `0xffffff` or `'#f7f7f7'`.
|
|
13639
|
+
* @default 0xffffff
|
|
13640
|
+
*/
|
|
13641
|
+
baseColor?: HexColorString | HexColorNumber;
|
|
13478
13642
|
/**
|
|
13479
13643
|
* @description How much the resolution of the scene is scaled by for the reflection resolution
|
|
13480
13644
|
* If transmissive objects are not in use, this can be set to a lower value like 0.5 to improve performance.
|
package/lib/roomle-sdk.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./packages-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./packages-CM3Y2HjP.mjs";
|
|
2
2
|
import { i as a, t as o } from "./kernel-BWfRHWkW.mjs";
|
|
3
|
-
import { St as s, Tt as c, xt as l } from "./threejs-utils-
|
|
3
|
+
import { St as s, Tt as c, xt as l } from "./threejs-utils-DyIt_Zd4.mjs";
|
|
4
4
|
import { D as u, g as d } from "./common-utils-CNGLvAo_.mjs";
|
|
5
|
-
import { A as f, B as p, F as m, H as h, I as g, J as _, M as v, N as y, O as b, P as x, V as S, X as C, Y as w, Z as T, _t as E, b as D, dt as O, ft as k, j as A, mt as j, pt as M, q as N, t as P, u as F, x as I, y as L } from "./roomle-sdk-
|
|
6
|
-
import { t as R } from "./configurator-
|
|
7
|
-
import { t as z } from "./planner-
|
|
8
|
-
import { n as B, t as V } from "./glb-viewer-
|
|
9
|
-
import { t as H } from "./api-
|
|
5
|
+
import { A as f, B as p, F as m, H as h, I as g, J as _, M as v, N as y, O as b, P as x, V as S, X as C, Y as w, Z as T, _t as E, b as D, dt as O, ft as k, j as A, mt as j, pt as M, q as N, t as P, u as F, x as I, y as L } from "./roomle-sdk-B3FDzb1a.mjs";
|
|
6
|
+
import { t as R } from "./configurator-FnqdWPyc.mjs";
|
|
7
|
+
import { t as z } from "./planner-Cw7BpR_J.mjs";
|
|
8
|
+
import { n as B, t as V } from "./glb-viewer-BOC1_L14.mjs";
|
|
9
|
+
import { t as H } from "./api-D1x-GnXP.mjs";
|
|
10
10
|
export { o as CONFIGURATION_TYPE, l as CORE_EDGE_TYPE, s as CORE_FLOOR_TYPE, c as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, R as Configurator, y as FloorPlanElementViewModel, V as GlbViewer, h as HI_CONTEXT_ACTION, p as HI_GROUP_OPERATION, S as HI_TOOL_COMMAND, v as MeasurementLinePlanElementViewModel, L as PLAN_ELEMENT_CHANGE_TYPES, g as PlanElementViewModel, m as PlanObjectViewModel, z as Planner, O as RapiAccess, k as RapiInvalidIdError, M as RapiOfflineError, H as RoomDesignerApi, b as RoomleConfigurator, B as RoomleGLBViewer, E as RoomleLightSource, F as RoomlePlanner, P as RoomleSdk, x as StaticPlanObjectViewModel, f as WallPlanElementViewModel, N as createExtObj, T as createExtObjId, d as download, j as getCatalogIdFromConfigurationHash, A as isDeletedInvisibleWall, _ as isExtObjId, w as isExternalObject, D as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, e as isPlanSnapshotId, I as isSafari, u as md5Hash, C as removeExtObjIdPrefix };
|