@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-headless.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 {
|
|
@@ -3665,11 +3694,26 @@ export declare interface ExternalObjectAPI {
|
|
|
3665
3694
|
* and every root module of a row carries rowIndex, its place in the row from 1 at the left end.
|
|
3666
3695
|
* The result is designed to be passed to an AI agent as it is, without further preparation,
|
|
3667
3696
|
* with all geometry in one coordinate system: 3D, right-handed, Y up.
|
|
3697
|
+
* The sections "masterData" and "articles" are deprecated: they are library data, which
|
|
3698
|
+
* "getExternalObjectLibraryContext" returns, and the plan context returns them as that method does.
|
|
3668
3699
|
* @param include The sections to include. All sections are returned when omitted or empty.
|
|
3669
|
-
* @param options
|
|
3670
|
-
*
|
|
3700
|
+
* @param options interiorDesign: the group, and optionally the root module, container or article,
|
|
3701
|
+
* the interior design options are read for; articleIds: deprecated, see "getExternalObjectLibraryContext".
|
|
3671
3702
|
*/
|
|
3672
3703
|
getExternalObjectPlanContext(include?: HiPlanContextSection[], options?: HiPlanContextOptions): Promise<HiPlanContext>;
|
|
3704
|
+
/**
|
|
3705
|
+
* "getExternalObjectLibraryContext" returns an agent-ready snapshot of the loaded libraries, which
|
|
3706
|
+
* no change of the plan alters: the compacted master data per library (root modules, sub modules
|
|
3707
|
+
* and every attribute), the articles that can be used (compact catalog with dimensions, docking
|
|
3708
|
+
* vectors and sub-modules - the docking vectors and corner point of an article without its own from
|
|
3709
|
+
* its template, calculated outside the plan) and the sub articles that can be installed inside a
|
|
3710
|
+
* root module (articleId, libraryId and description). It changes only when a library or its
|
|
3711
|
+
* article catalog is loaded.
|
|
3712
|
+
* @param include The sections to include. All sections are returned when omitted or empty.
|
|
3713
|
+
* @param options articleIds: only these articles get their docking vectors and corner point from a
|
|
3714
|
+
* calculated template; without it every article that lacks them does.
|
|
3715
|
+
*/
|
|
3716
|
+
getExternalObjectLibraryContext(include?: HiLibraryContextSection[], options?: HiLibraryContextOptions): Promise<HiLibraryContext>;
|
|
3673
3717
|
/**
|
|
3674
3718
|
* "getExternalObjectAgentPrompts" returns the prompts of an AI chat that plans with the HI tools of
|
|
3675
3719
|
* the HI MCP server: systemPrompt, the system prompt of the chat, which names the planning skills
|
|
@@ -3678,6 +3722,21 @@ export declare interface ExternalObjectAPI {
|
|
|
3678
3722
|
* The promise rejects when the planner has no HI module.
|
|
3679
3723
|
*/
|
|
3680
3724
|
getExternalObjectAgentPrompts(): Promise<HiAgentPrompts>;
|
|
3725
|
+
/**
|
|
3726
|
+
* "getExternalObjectAgentTools" returns the HI agent tools as an MCP server lists them in
|
|
3727
|
+
* tools/list: per tool its name, description and the JSON Schema of its input. An AI agent that
|
|
3728
|
+
* plans with the HI tools takes them as its tools and runs them with "callExternalObjectAgentTool".
|
|
3729
|
+
* The tool code loads on the first call.
|
|
3730
|
+
*/
|
|
3731
|
+
getExternalObjectAgentTools(): Promise<HiAgentToolDefinition[]>;
|
|
3732
|
+
/**
|
|
3733
|
+
* "callExternalObjectAgentTool" runs a tool of "getExternalObjectAgentTools" and resolves as an MCP
|
|
3734
|
+
* server answers tools/call, with text and image parts. An invalid input, an unknown tool and a
|
|
3735
|
+
* failed call resolve with isError and the reason as text.
|
|
3736
|
+
* @param name The name of the tool.
|
|
3737
|
+
* @param input The input of the tool.
|
|
3738
|
+
*/
|
|
3739
|
+
callExternalObjectAgentTool(name: string, input: unknown): Promise<McpToolResult>;
|
|
3681
3740
|
/**
|
|
3682
3741
|
* "externalObjectGroupOperation" changes the groups in the plan by command. The payload refers to
|
|
3683
3742
|
* groups, root modules and articles by the ids of "getExternalObjectPlanContext":
|
|
@@ -4090,9 +4149,16 @@ export declare interface Floor_2 extends PlanElement_2 {
|
|
|
4090
4149
|
getLabelPosition(): Vector3;
|
|
4091
4150
|
getWallsOfRoom(): RoomWall[];
|
|
4092
4151
|
getLabelObject(): string;
|
|
4152
|
+
getBoundaryNodes(): Node_3[];
|
|
4153
|
+
getHeightAt(node: Node_3): number;
|
|
4154
|
+
sampleTerrainHeight(point: Vector3): {
|
|
4155
|
+
height: number;
|
|
4156
|
+
inside: boolean;
|
|
4157
|
+
} | null;
|
|
4093
4158
|
readonly area: number;
|
|
4094
4159
|
readonly material: FloorMaterial_2;
|
|
4095
4160
|
readonly parapetHeight: number;
|
|
4161
|
+
readonly level: number;
|
|
4096
4162
|
readonly floorType: FloorType;
|
|
4097
4163
|
}
|
|
4098
4164
|
|
|
@@ -4398,6 +4464,7 @@ export declare interface GlueLogic {
|
|
|
4398
4464
|
createOrReplacePosDataFromArticleLayout(articleLayoutJson: ExternalObjectGroupLayout, layoutType: string, posArticles?: PosArticle[]): Promise<PosGroup | PosGroup[] | undefined>;
|
|
4399
4465
|
newPosDataFromGroup(posDataJson: PosGroup): Promise<PosGroup>;
|
|
4400
4466
|
getPlanContext(include?: HiPlanContextSection[], options?: HiPlanContextOptions): Promise<HiPlanContext>;
|
|
4467
|
+
getLibraryContext(include?: HiLibraryContextSection[], options?: HiLibraryContextOptions): Promise<HiLibraryContext>;
|
|
4401
4468
|
executeGroupOperation(command: string, payload: unknown): Promise<HiGroupOperationResult | HiToolCommandResult>;
|
|
4402
4469
|
getAgentPrompts(): HiAgentPrompts;
|
|
4403
4470
|
getGroupDataForOrder(options: GetGroupDataForOrderOptions): Promise<HiOrderData | null>;
|
|
@@ -4423,6 +4490,8 @@ export declare interface HandWrittenPlanInteractionHandler {
|
|
|
4423
4490
|
duplicatePlanObject(object: PlanObject, count: number, findFreeSpaceInPlan: boolean): PlanObject[];
|
|
4424
4491
|
duplicatePlanObjects(objects: PlanObjectList, count: number, findFreeSpaceInPlan: boolean): PlanObject[];
|
|
4425
4492
|
setElementVisibility(element: PlanElement_3, isVisible: boolean): void;
|
|
4493
|
+
lockElement(element: PlanElement_3 | KernelWall): void;
|
|
4494
|
+
unlockElement(element: PlanElement_3 | KernelWall): void;
|
|
4426
4495
|
moveObjectsBy(planObjects: KernelObjectPtrList, distance: KernelVector3): void;
|
|
4427
4496
|
rotateObjectTo(planObject: KernelObject, angleInRad: number): void;
|
|
4428
4497
|
setObjectRotation(planObject: KernelObject, angleInRad: number): void;
|
|
@@ -4812,6 +4881,13 @@ export declare interface HiAgentPrompts {
|
|
|
4812
4881
|
imagePrompt: string;
|
|
4813
4882
|
}
|
|
4814
4883
|
|
|
4884
|
+
/** A tool of the HI agent tools as an MCP server lists it in `tools/list`: its input schema is a JSON Schema. */
|
|
4885
|
+
export declare interface HiAgentToolDefinition {
|
|
4886
|
+
name: string;
|
|
4887
|
+
description: string;
|
|
4888
|
+
inputSchema: Record<string, unknown>;
|
|
4889
|
+
}
|
|
4890
|
+
|
|
4815
4891
|
export declare interface HiApiOptions extends HomagIntelligenceSubscription {
|
|
4816
4892
|
om?: HomagIntelligenceSubscription;
|
|
4817
4893
|
baseUrl?: string;
|
|
@@ -5126,6 +5202,23 @@ export declare interface HiInteriorScope {
|
|
|
5126
5202
|
articleId?: string;
|
|
5127
5203
|
}
|
|
5128
5204
|
|
|
5205
|
+
export declare interface HiLibraryContext {
|
|
5206
|
+
masterData?: Record<string, HiPlanMasterData>;
|
|
5207
|
+
articles?: HiPlanArticle[];
|
|
5208
|
+
subArticles?: HiInteriorArticle[];
|
|
5209
|
+
}
|
|
5210
|
+
|
|
5211
|
+
export declare interface HiLibraryContextOptions {
|
|
5212
|
+
/**
|
|
5213
|
+
* Only these articles get their docking vectors and corner point from a
|
|
5214
|
+
* template calculated outside the plan. Without it, every article that
|
|
5215
|
+
* lacks that geometry does.
|
|
5216
|
+
*/
|
|
5217
|
+
articleIds?: string[];
|
|
5218
|
+
}
|
|
5219
|
+
|
|
5220
|
+
export declare type HiLibraryContextSection = 'masterData' | 'articles' | 'subArticles';
|
|
5221
|
+
|
|
5129
5222
|
export declare type HiLoadObjectReason = (typeof HI_LOAD_OBJECT_REASON)[keyof typeof HI_LOAD_OBJECT_REASON];
|
|
5130
5223
|
|
|
5131
5224
|
export declare interface HiObjectSelectionApi {
|
|
@@ -5241,9 +5334,8 @@ export declare interface HiPlanContextData {
|
|
|
5241
5334
|
export declare interface HiPlanContextOptions {
|
|
5242
5335
|
interiorDesign?: HiInteriorScope;
|
|
5243
5336
|
/**
|
|
5244
|
-
*
|
|
5245
|
-
*
|
|
5246
|
-
* the plan. Without it, every article that lacks that geometry does.
|
|
5337
|
+
* @deprecated The articles are library data: use "articleIds" of
|
|
5338
|
+
* "getExternalObjectLibraryContext".
|
|
5247
5339
|
*/
|
|
5248
5340
|
articleIds?: string[];
|
|
5249
5341
|
}
|
|
@@ -5307,6 +5399,7 @@ export declare interface HiPlanInstallationElement {
|
|
|
5307
5399
|
export declare interface HiPlanMasterData {
|
|
5308
5400
|
libraryId: string;
|
|
5309
5401
|
modules: HiPlanMasterDataModule[];
|
|
5402
|
+
subModules: HiPlanMasterDataModule[];
|
|
5310
5403
|
attributes: HiPlanAttribute[];
|
|
5311
5404
|
groupSettings: string[];
|
|
5312
5405
|
}
|
|
@@ -5364,6 +5457,7 @@ export declare interface HiPlanRoot {
|
|
|
5364
5457
|
subModules: Array<{
|
|
5365
5458
|
id: string;
|
|
5366
5459
|
imageUrl?: string;
|
|
5460
|
+
attributes: HiPlanRootAttribute[];
|
|
5367
5461
|
}>;
|
|
5368
5462
|
rowIndex?: number;
|
|
5369
5463
|
}
|
|
@@ -6160,12 +6254,19 @@ export declare interface KernelFloor extends KernelObject {
|
|
|
6160
6254
|
area: number;
|
|
6161
6255
|
material: KernelFloorMaterial;
|
|
6162
6256
|
readonly parapetHeight: number;
|
|
6257
|
+
readonly level: number;
|
|
6163
6258
|
readonly floorType: FloorType_2;
|
|
6164
6259
|
getCenter: () => KernelVector3;
|
|
6165
6260
|
getRandomPointInside: () => KernelVector3;
|
|
6166
6261
|
getLabelPosition: () => KernelVector3;
|
|
6167
6262
|
getWallsOfRoom: () => KernelRoomWall[];
|
|
6168
6263
|
getLabelObject(): string;
|
|
6264
|
+
getBoundaryNodes(): NodePlanObject[];
|
|
6265
|
+
getHeightAt(node: NodePlanObject): number;
|
|
6266
|
+
sampleTerrainHeight(point: KernelVector3): {
|
|
6267
|
+
height: number;
|
|
6268
|
+
inside: boolean;
|
|
6269
|
+
} | null;
|
|
6169
6270
|
}
|
|
6170
6271
|
|
|
6171
6272
|
export declare interface KernelFloorMaterial extends KernelObject {
|
|
@@ -6494,6 +6595,7 @@ export declare interface KernelWall extends KernelObject {
|
|
|
6494
6595
|
readonly isCurved: boolean;
|
|
6495
6596
|
getAngle: () => number;
|
|
6496
6597
|
getArcSweepAngle(): number;
|
|
6598
|
+
isLocked(): boolean;
|
|
6497
6599
|
}
|
|
6498
6600
|
|
|
6499
6601
|
export declare interface KernelWallMaterial extends KernelObject {
|
|
@@ -6518,6 +6620,8 @@ export declare interface LibraryData {
|
|
|
6518
6620
|
get masterData(): MasterData | null;
|
|
6519
6621
|
get posGroupVersion(): number;
|
|
6520
6622
|
initializePosGroup(posGroup: PosGroup): void;
|
|
6623
|
+
solveInitial(posGroup: PosGroup, masterData: MasterData): SolveInitialResult;
|
|
6624
|
+
solveInitialModule(module: PosModuleData, masterData: MasterData, articleId: string): SolveInitialResult;
|
|
6521
6625
|
calculateGroup(posGroup: PosGroup): PosGroup;
|
|
6522
6626
|
getOrderData(posGroup: PosGroup[], roomlePlannerId?: string, rooms?: PosContour[]): any;
|
|
6523
6627
|
getAttributesDropDownValues(module: PosModuleData, attributeIds?: string | string[]): Promise<Record<string, HiAttributeOptionsResult>>;
|
|
@@ -6727,6 +6831,19 @@ export declare interface Matrix4 {
|
|
|
6727
6831
|
|
|
6728
6832
|
export declare type MaybePromise<T> = (() => T) | (() => Promise<T>);
|
|
6729
6833
|
|
|
6834
|
+
/** The result of a tool as an MCP server answers `tools/call`. */
|
|
6835
|
+
export declare interface McpToolResult {
|
|
6836
|
+
content: Array<{
|
|
6837
|
+
type: 'text';
|
|
6838
|
+
text: string;
|
|
6839
|
+
} | {
|
|
6840
|
+
type: 'image';
|
|
6841
|
+
data: string;
|
|
6842
|
+
mimeType: string;
|
|
6843
|
+
}>;
|
|
6844
|
+
isError?: boolean;
|
|
6845
|
+
}
|
|
6846
|
+
|
|
6730
6847
|
/**
|
|
6731
6848
|
* MD5 hex digest of a string, e.g. the hashed password RapiAccess.signinUser expects
|
|
6732
6849
|
*/
|
|
@@ -7451,6 +7568,7 @@ export declare interface Plan_2 extends AbstractModel_2 {
|
|
|
7451
7568
|
getRotationForFrontView(objectIds: number | number[]): number;
|
|
7452
7569
|
getBounds(): Box;
|
|
7453
7570
|
getPlanObjects(): PlanObject_2[];
|
|
7571
|
+
getNodes(): Node_3[];
|
|
7454
7572
|
getWalls(): Wall_2[];
|
|
7455
7573
|
getWallCount(): number;
|
|
7456
7574
|
getAttics(): Attic[];
|
|
@@ -7472,6 +7590,7 @@ export declare interface Plan_3 extends KernelObject {
|
|
|
7472
7590
|
defaultWallThickness: number;
|
|
7473
7591
|
vectorWallThickness: number;
|
|
7474
7592
|
getPlanObjects(): any;
|
|
7593
|
+
getNodes(): NodePlanObject[];
|
|
7475
7594
|
getBounds(): KernelCube;
|
|
7476
7595
|
getTotalFloorArea(): number;
|
|
7477
7596
|
getPlanXML(includeRuntimeId: boolean, xmlVersion: number /** current version is 2 */): string;
|
|
@@ -7636,6 +7755,7 @@ export declare interface PlanInteractionHandler_2 {
|
|
|
7636
7755
|
createPlanWithObjectFromItem(item: CatalogItem_2, position: Vector3, rotationInRad: number): Plan_2;
|
|
7637
7756
|
setDefaultParapetHeight(parapetHeight: number, applyToAll: boolean): void;
|
|
7638
7757
|
setRoomParapetHeight(floor: Floor_2, parapetHeight: number): void;
|
|
7758
|
+
setFloorLevel(floor: Floor_2, level: number): void;
|
|
7639
7759
|
setDefaultWallColor(wallColor: number, applyToAll: boolean): void;
|
|
7640
7760
|
setDefaultWallHeight(wallHeight: number, applyToAll: boolean): void;
|
|
7641
7761
|
setDefaultWallThickness(wallThickness: number, applyToAll: boolean): void;
|
|
@@ -7766,6 +7886,16 @@ export declare interface PlanInteractionHandler_2 {
|
|
|
7766
7886
|
isUndoPossible(): boolean;
|
|
7767
7887
|
getRelativeHistoryPosition(): number;
|
|
7768
7888
|
generateTCExport(planObjectItemIds: string[]): string;
|
|
7889
|
+
setFloorNodeHeight(floor: Floor_2, node: Node_3, height: number): void;
|
|
7890
|
+
addTerrainContour(points: Vector3[], closed: boolean): number[];
|
|
7891
|
+
getHistoryState(): {
|
|
7892
|
+
position: number;
|
|
7893
|
+
size: number;
|
|
7894
|
+
canUndo: boolean;
|
|
7895
|
+
canRedo: boolean;
|
|
7896
|
+
};
|
|
7897
|
+
addConstructionContour(start: PlanElement_2, points: Vector3[]): number[];
|
|
7898
|
+
placeConstructionObjectOnEdge(object: ConstructionObject_2, wall: Wall_2, distanceFromStart: number): boolean;
|
|
7769
7899
|
unit: string;
|
|
7770
7900
|
objectToWallSnapMode: SnapMode;
|
|
7771
7901
|
objectToObjectSnapMode: SnapMode;
|
|
@@ -8078,6 +8208,10 @@ export declare class PlannerKernelAccess extends ConfiguratorKernelAccess {
|
|
|
8078
8208
|
protected _externalObjectComponentDeleted(remainingGroupOrGroups: ExternalObjectGroup | ExternalObjectGroup[], deletedRootModuleId: string): void;
|
|
8079
8209
|
_externalObjectConfigurationDuplicated(duplicatedGroup: ExternalObjectGroup): void;
|
|
8080
8210
|
loadExternalObjectGroups(load: () => PlanObject[]): Promise<PlanObject[]>;
|
|
8211
|
+
reportedPlanChanges<T>(kernelCall: () => T): {
|
|
8212
|
+
result: T;
|
|
8213
|
+
changes: Array<Promise<void>>;
|
|
8214
|
+
};
|
|
8081
8215
|
_externalObjectPlanChanged(movedGroup: ExternalObjectGroup, objectPositionChanged: boolean): Promise<void | undefined>;
|
|
8082
8216
|
_externalObjectConfigurationsMerged(mergedGroup: ExternalObjectGroup, idsOfGroupsMerged: string | string[], targetRootModuleId: string, mergedWithDragging: boolean): Promise<void>;
|
|
8083
8217
|
_externalObjectComponentSplitOff(splitGroups: ExternalObjectGroup[]): void;
|
|
@@ -8346,7 +8480,6 @@ export declare class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
8346
8480
|
private _preloadScene;
|
|
8347
8481
|
private _staticItemGuard;
|
|
8348
8482
|
private _completelyLoaded;
|
|
8349
|
-
private _configurableItemGuard;
|
|
8350
8483
|
private _planCompletelyLoadedGuard;
|
|
8351
8484
|
private _fullyReadyGuard;
|
|
8352
8485
|
private _dragStartBounds;
|
|
@@ -8523,7 +8656,8 @@ export declare class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
8523
8656
|
withEyeLevelScene<T>(capture: () => Promise<T>): Promise<T>;
|
|
8524
8657
|
/**
|
|
8525
8658
|
* The scene from `camera` at width × height as a JPEG data URL, rendered
|
|
8526
|
-
* off-screen
|
|
8659
|
+
* off-screen once the plan and its materials have loaded, as the scene is
|
|
8660
|
+
* now; see withEyeLevelScene for the first-person state
|
|
8527
8661
|
*/
|
|
8528
8662
|
renderCameraImage(camera: PerspectiveCamera, width: number, height: number, quality?: number): Promise<string>;
|
|
8529
8663
|
prepareThumbnailImage(options: PrepareImageOptionsPlanner): Promise<Base64Image>;
|
|
@@ -9175,14 +9309,14 @@ export declare type PosDock = 'RightTop' | 'BackTop' | 'LeftTop' | 'RightBottom'
|
|
|
9175
9309
|
|
|
9176
9310
|
export declare interface PosDockedContext {
|
|
9177
9311
|
ownDockingVector: PosDock | string;
|
|
9178
|
-
ownDockingVectorIndex
|
|
9312
|
+
ownDockingVectorIndex?: number;
|
|
9179
9313
|
dockedRoots: PosDockedContextRoot[];
|
|
9180
9314
|
}
|
|
9181
9315
|
|
|
9182
9316
|
export declare interface PosDockedContextRoot {
|
|
9183
9317
|
id: string;
|
|
9184
9318
|
dockingVector: PosDock | string;
|
|
9185
|
-
dockingVectorIndex
|
|
9319
|
+
dockingVectorIndex?: number;
|
|
9186
9320
|
mode?: PosDockMode | string;
|
|
9187
9321
|
offset?: number[];
|
|
9188
9322
|
}
|
|
@@ -11395,6 +11529,7 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
11395
11529
|
_creator_: string;
|
|
11396
11530
|
private _activePlugins;
|
|
11397
11531
|
private _homagIntelligence;
|
|
11532
|
+
private _hiAgentTools;
|
|
11398
11533
|
private _configuratorContext;
|
|
11399
11534
|
private _domHelper;
|
|
11400
11535
|
private _plannerKernelAccess;
|
|
@@ -11844,6 +11979,7 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
11844
11979
|
_selectExternalObjectGroup(groupId: string, switchToPlanner: boolean): Promise<void>;
|
|
11845
11980
|
getExternalObjectGroups(): Promise<object[]>;
|
|
11846
11981
|
getExternalObjectPlanContext(include?: HiPlanContextSection[], options?: HiPlanContextOptions): Promise<HiPlanContext>;
|
|
11982
|
+
getExternalObjectLibraryContext(include?: HiLibraryContextSection[], options?: HiLibraryContextOptions): Promise<HiLibraryContext>;
|
|
11847
11983
|
getExternalObjectAgentPrompts(): Promise<HiAgentPrompts>;
|
|
11848
11984
|
/**
|
|
11849
11985
|
* Shows the output of the host's planning agent in the AI Planning Assistant window
|
|
@@ -11851,6 +11987,9 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
11851
11987
|
* with the callback "onPlanningAssistantPrompt".
|
|
11852
11988
|
*/
|
|
11853
11989
|
planningAssistantOutput(part: PlanningAssistantOutput): Promise<void>;
|
|
11990
|
+
getExternalObjectAgentTools(): Promise<HiAgentToolDefinition[]>;
|
|
11991
|
+
callExternalObjectAgentTool(name: string, input: unknown): Promise<McpToolResult>;
|
|
11992
|
+
private _getHiAgentTools;
|
|
11854
11993
|
externalObjectGroupOperation<C extends HiGroupOperation>(command: C, payload: HiGroupOperationPayloads[C]): Promise<HiGroupOperationResult>;
|
|
11855
11994
|
externalObjectGroupOperation(command: HiToolCommandName, payload: Record<string, unknown>): Promise<HiToolCommandResult>;
|
|
11856
11995
|
getExternalRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
@@ -12743,6 +12882,11 @@ export declare interface SnapState {
|
|
|
12743
12882
|
value: Enumify<typeof CORE_SNAP_STATE>;
|
|
12744
12883
|
}
|
|
12745
12884
|
|
|
12885
|
+
export declare interface SolveInitialResult {
|
|
12886
|
+
logs: PosErrorMsg[];
|
|
12887
|
+
hasChanged: boolean;
|
|
12888
|
+
}
|
|
12889
|
+
|
|
12746
12890
|
export declare interface StaticComponent extends RoomleComponent {
|
|
12747
12891
|
glbUrl: string;
|
|
12748
12892
|
}
|
|
@@ -12818,6 +12962,10 @@ export declare const STEP_GROUPS: {
|
|
|
12818
12962
|
readonly finalize: "immediate";
|
|
12819
12963
|
readonly methods: ["setElementVisibility"];
|
|
12820
12964
|
};
|
|
12965
|
+
readonly lock: {
|
|
12966
|
+
readonly finalize: "immediate";
|
|
12967
|
+
readonly methods: ["lockElement", "unlockElement"];
|
|
12968
|
+
};
|
|
12821
12969
|
readonly addObjects: {
|
|
12822
12970
|
readonly finalize: "immediate";
|
|
12823
12971
|
readonly methods: ["addPlanObjects"];
|
|
@@ -13143,7 +13291,7 @@ export declare class UndoRedoHandler {
|
|
|
13143
13291
|
private _hold;
|
|
13144
13292
|
private _release;
|
|
13145
13293
|
private _toolCall;
|
|
13146
|
-
runToolCall<T>(perform: () => Promise<T>): Promise<T>;
|
|
13294
|
+
runToolCall<T>(perform: () => Promise<T>, settle?: (commit: () => void) => Promise<unknown>): Promise<T>;
|
|
13147
13295
|
private _holdToolCallStep;
|
|
13148
13296
|
manageExternalObjectLoadingStart(reason?: string): void;
|
|
13149
13297
|
resumeExternalObjectLoading(reason?: string): void;
|
|
@@ -13395,10 +13543,12 @@ export declare interface Wall_2 extends PlanElement_2 {
|
|
|
13395
13543
|
getSlopingLength(): number;
|
|
13396
13544
|
getPreferredSide(): WallSide_2;
|
|
13397
13545
|
getAttachedObjects(): ConstructionObjectSet_2;
|
|
13546
|
+
getAttachedObjectsArray(): ConstructionObject_2[];
|
|
13398
13547
|
getAttachedObjectsExtRefArray(): SizeTArray_2;
|
|
13399
13548
|
getCenter(): Vector3;
|
|
13400
13549
|
getHeightAt(aPoint: Vector3): number;
|
|
13401
13550
|
getPointWithHeight(aHeight: number): Vector3;
|
|
13551
|
+
getCurveKnots(): number[];
|
|
13402
13552
|
readonly isCurved: boolean;
|
|
13403
13553
|
readonly meshThickness: number;
|
|
13404
13554
|
readonly isVectorWall: boolean;
|
|
@@ -13544,9 +13694,11 @@ export declare interface WallPlanObject extends PlanObject {
|
|
|
13544
13694
|
getFrom(): NodePlanObject;
|
|
13545
13695
|
getTo(): NodePlanObject;
|
|
13546
13696
|
getAttachedAttics(): KernelAtticArray;
|
|
13697
|
+
getAttachedObjectsArray(): ConstructionPlanObject[];
|
|
13547
13698
|
getAxisPolyline(): PointArray_3;
|
|
13548
13699
|
getLeftFacePolyline(): PointArray_3;
|
|
13549
13700
|
getRightFacePolyline(): PointArray_3;
|
|
13701
|
+
getCurveKnots(): number[];
|
|
13550
13702
|
readonly thickness: number;
|
|
13551
13703
|
readonly height: number;
|
|
13552
13704
|
readonly isCurved: boolean;
|
|
@@ -13646,6 +13798,7 @@ export declare class WebGpuFogConfig implements WebGpuFogConfigDefinition {
|
|
|
13646
13798
|
enabled: boolean;
|
|
13647
13799
|
nearBlend: number;
|
|
13648
13800
|
farBlend: number;
|
|
13801
|
+
color: HexColorString | HexColorNumber | undefined;
|
|
13649
13802
|
}
|
|
13650
13803
|
|
|
13651
13804
|
export declare interface WebGpuFogConfigDefinition {
|
|
@@ -13674,6 +13827,11 @@ export declare interface WebGpuFogConfigDefinition {
|
|
|
13674
13827
|
* @default 10
|
|
13675
13828
|
*/
|
|
13676
13829
|
farBlend?: number;
|
|
13830
|
+
/**
|
|
13831
|
+
* @description Color of the fog, e.g. `0xffffff` or `'#f7f7f7'`.
|
|
13832
|
+
* Defaults to `colors.DEFAULT_BACKGROUND` so the floor blends into the background.
|
|
13833
|
+
*/
|
|
13834
|
+
color?: HexColorString | HexColorNumber;
|
|
13677
13835
|
}
|
|
13678
13836
|
|
|
13679
13837
|
export declare class WebGpuGroundReflectionConfig implements WebGpuGroundReflectionConfigDefinition {
|
|
@@ -13681,6 +13839,7 @@ export declare class WebGpuGroundReflectionConfig implements WebGpuGroundReflect
|
|
|
13681
13839
|
intensity: number;
|
|
13682
13840
|
startFadeout: number;
|
|
13683
13841
|
endFadeout: number;
|
|
13842
|
+
baseColor: HexColorString | HexColorNumber;
|
|
13684
13843
|
reflectionScale: number;
|
|
13685
13844
|
}
|
|
13686
13845
|
|
|
@@ -13708,6 +13867,11 @@ export declare interface WebGpuGroundReflectionConfigDefinition {
|
|
|
13708
13867
|
* @default 0.15
|
|
13709
13868
|
*/
|
|
13710
13869
|
endFadeout?: number;
|
|
13870
|
+
/**
|
|
13871
|
+
* @description Floor color the reflection fades into, e.g. `0xffffff` or `'#f7f7f7'`.
|
|
13872
|
+
* @default 0xffffff
|
|
13873
|
+
*/
|
|
13874
|
+
baseColor?: HexColorString | HexColorNumber;
|
|
13711
13875
|
/**
|
|
13712
13876
|
* @description How much the resolution of the scene is scaled by for the reflection resolution
|
|
13713
13877
|
* If transmissive objects are not in use, this can be set to a lower value like 0.5 to improve performance.
|
package/lib/roomle-headless.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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 { Ti as u, m as d, nt as f } from "./three.core-BTUCraWz.mjs";
|
|
5
5
|
import { i as p } from "./decorate-CjaqqbUP.mjs";
|
|
6
6
|
import { D as m, H as h, g } from "./common-utils-CNGLvAo_.mjs";
|
|
7
|
-
import { A as ee, B as te, F as ne, H as re, I as ie, J as ae, M as oe, N as se, O as _, P as v, V as ce, W as le, X as ue, Y as de, Z as fe, _t as pe, a as me, b as he, ct as ge, dt as _e, ft as ve, i as y, j as b, k as x, l as S, lt as C, m as w, mt as T, o as E, pt as D, q as O, r as k, s as A, t as j, u as M, ut as N, x as P, y as F } from "./roomle-sdk-
|
|
7
|
+
import { A as ee, B as te, F as ne, H as re, I as ie, J as ae, M as oe, N as se, O as _, P as v, V as ce, W as le, X as ue, Y as de, Z as fe, _t as pe, a as me, b as he, ct as ge, dt as _e, ft as ve, i as y, j as b, k as x, l as S, lt as C, m as w, mt as T, o as E, pt as D, q as O, r as k, s as A, t as j, u as M, ut as N, x as P, y as F } from "./roomle-sdk-B3FDzb1a.mjs";
|
|
8
8
|
import { n as ye } from "./roomle-renderer-nCUrLU_S.mjs";
|
|
9
|
-
import { n as be } from "./script-loader-
|
|
10
|
-
import { t as xe } from "./configurator-
|
|
11
|
-
import { t as Se } from "./planner-
|
|
12
|
-
import { n as Ce, t as we } from "./glb-viewer-
|
|
13
|
-
import { t as Te } from "./api-
|
|
9
|
+
import { n as be } from "./script-loader-U9UqaQz5.mjs";
|
|
10
|
+
import { t as xe } from "./configurator-FnqdWPyc.mjs";
|
|
11
|
+
import { t as Se } from "./planner-Cw7BpR_J.mjs";
|
|
12
|
+
import { n as Ce, t as we } from "./glb-viewer-BOC1_L14.mjs";
|
|
13
|
+
import { t as Te } from "./api-D1x-GnXP.mjs";
|
|
14
14
|
import { t as Ee } from "./roomle-headless-setup-bol8UwP_.mjs";
|
|
15
15
|
import { createRequire as De } from "module";
|
|
16
16
|
//#region packages/headless-core/src/headless-tween-stub.ts
|
|
@@ -370,7 +370,7 @@ var Be = (e) => {
|
|
|
370
370
|
}
|
|
371
371
|
async _createRoomleRenderer(e) {
|
|
372
372
|
if (!e.isWebGPURenderer) return super._createRoomleRenderer(e);
|
|
373
|
-
let { RoomleWebGPURenderer: t } = await import("./roomle-webgpu-renderer-
|
|
373
|
+
let { RoomleWebGPURenderer: t } = await import("./roomle-webgpu-renderer-ZT__n9mA.mjs");
|
|
374
374
|
return new t(this._creator_, e, !0, void 0, !1);
|
|
375
375
|
}
|
|
376
376
|
static hasExplicitCameraPlacement(e) {
|