@roomle/web-sdk 5.1.0-alpha.9 → 5.1.0
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.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{api-DBo4bqkV.mjs → api-Woc5NOM1.mjs} +7 -4
- package/lib/api-Woc5NOM1.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/{component-raycast-helper-razJrkD8.mjs → component-raycast-helper-CaY2UMli.mjs} +2 -2
- package/lib/{component-raycast-helper-razJrkD8.mjs.map → component-raycast-helper-CaY2UMli.mjs.map} +1 -1
- package/lib/configurator-Bo_pnqDi.mjs +2 -0
- package/lib/configurator-i-Zl5omd.mjs +45 -0
- package/lib/{configurator-Bfbi3q7X.mjs.map → configurator-i-Zl5omd.mjs.map} +1 -1
- package/lib/{glb-viewer-CP0TDbjo.mjs → glb-viewer-C1-vP2Vq.mjs} +22 -22
- package/lib/{glb-viewer-CP0TDbjo.mjs.map → glb-viewer-C1-vP2Vq.mjs.map} +1 -1
- package/lib/glb-viewer-CaNU0FLF.mjs +2 -0
- package/lib/{highlight-coordinator-DwIDs-5n.mjs → highlight-coordinator-DKMaPGPo.mjs} +3 -3
- package/lib/{highlight-coordinator-DwIDs-5n.mjs.map → highlight-coordinator-DKMaPGPo.mjs.map} +1 -1
- package/lib/{homag-intelligence-1GdmdIBg.mjs → homag-intelligence-Dr0m9LxO.mjs} +9 -3
- package/lib/homag-intelligence-Dr0m9LxO.mjs.map +1 -0
- package/lib/{material-viewer-DJEEvr_2.mjs → material-viewer-CHzje_V0.mjs} +29 -29
- package/lib/{material-viewer-DJEEvr_2.mjs.map → material-viewer-CHzje_V0.mjs.map} +1 -1
- package/lib/{packages-Da2aAUP6.mjs → packages-DbOsSpKq.mjs} +5 -5
- package/lib/{packages-Da2aAUP6.mjs.map → packages-DbOsSpKq.mjs.map} +1 -1
- package/lib/{planner-B3gmGQ5h.mjs → planner-BOrph7M7.mjs} +14 -14
- package/lib/{planner-B3gmGQ5h.mjs.map → planner-BOrph7M7.mjs.map} +1 -1
- package/lib/planner-DXeyIHUx.mjs +2 -0
- package/lib/roomle-headless.d.ts +115 -8
- package/lib/roomle-headless.js +84 -84
- package/lib/roomle-headless.js.map +1 -1
- package/lib/{roomle-sdk-B7kJPhbu.mjs → roomle-sdk-CN9TqA78.mjs} +3248 -2957
- package/lib/roomle-sdk-CN9TqA78.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +115 -8
- package/lib/roomle-sdk.js +8 -8
- package/lib/{scene-renderer-CHMngNZI.mjs → scene-renderer-DGSgD6mp.mjs} +15 -15
- package/lib/{scene-renderer-CHMngNZI.mjs.map → scene-renderer-DGSgD6mp.mjs.map} +1 -1
- package/lib/{script-loader-Bgt0r8D_.mjs → script-loader-CL3F8sIY.mjs} +2 -2
- package/lib/{script-loader-Bgt0r8D_.mjs.map → script-loader-CL3F8sIY.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/wasm_modern/ConfiguratorKernel.wasm +0 -0
- 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-CuB9x20N.mjs → stats-helper-C74q5Bje.mjs} +2 -2
- package/lib/{stats-helper-CuB9x20N.mjs.map → stats-helper-C74q5Bje.mjs.map} +1 -1
- package/lib/{threejs-utils-CrP6G-ow.mjs → threejs-utils-DHTRY4yW.mjs} +105 -112
- package/lib/{threejs-utils-CrP6G-ow.mjs.map → threejs-utils-DHTRY4yW.mjs.map} +1 -1
- package/lib/{tools-core-Bo2DwzBG.mjs → tools-core-D3kc3jRW.mjs} +6 -6
- package/lib/{tools-core-Bo2DwzBG.mjs.map → tools-core-D3kc3jRW.mjs.map} +1 -1
- package/package.json +2 -2
- package/lib/api-DBo4bqkV.mjs.map +0 -1
- package/lib/configurator-Bfbi3q7X.mjs +0 -45
- package/lib/configurator-BxIDaIsx.mjs +0 -2
- package/lib/glb-viewer-DYkOoOv-.mjs +0 -2
- package/lib/homag-intelligence-1GdmdIBg.mjs.map +0 -1
- package/lib/planner-BpzUs9MN.mjs +0 -2
- package/lib/roomle-sdk-B7kJPhbu.mjs.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { A as e, C as t, H as n, I as r,
|
|
2
|
-
import { t as h } from "./script-loader-
|
|
1
|
+
import { A as e, C as t, H as n, I as r, Q as i, U as a, c as o, ct as s, lt as c, n as l, nt as u, pt as d, st as f, u as p, w as m } from "./roomle-sdk-CN9TqA78.mjs";
|
|
2
|
+
import { t as h } from "./script-loader-CL3F8sIY.mjs";
|
|
3
3
|
//#region packages/planner-core/src/input/planner-input-manager.ts
|
|
4
4
|
var g = class extends r {
|
|
5
5
|
_canDrag(e) {
|
|
6
6
|
return !0;
|
|
7
7
|
}
|
|
8
8
|
}, _ = [
|
|
9
|
-
new
|
|
10
|
-
new
|
|
11
|
-
new
|
|
12
|
-
new
|
|
13
|
-
new
|
|
14
|
-
new
|
|
15
|
-
new
|
|
16
|
-
new
|
|
17
|
-
], v = class extends
|
|
9
|
+
new s("script-loader", h),
|
|
10
|
+
new s("planner-input-manager", g, f.CONTEXT),
|
|
11
|
+
new s("logger", u),
|
|
12
|
+
new s("planner-mesh-generator", o),
|
|
13
|
+
new s("configurator-view-model", t, f.CONTEXT),
|
|
14
|
+
new s("rapi-access", c),
|
|
15
|
+
new s("global-init-data", i),
|
|
16
|
+
new s("planner-selection-handler", m)
|
|
17
|
+
], v = class extends a {
|
|
18
18
|
constructor(e, t) {
|
|
19
19
|
super(e), this._activePlugins = t || [];
|
|
20
20
|
}
|
|
@@ -29,16 +29,16 @@ var g = class extends r {
|
|
|
29
29
|
throw Error("Method not implemented.");
|
|
30
30
|
}
|
|
31
31
|
async bootFinished() {
|
|
32
|
-
this._planner = new p(this._context, this._activePlugins), this._planner.getMain = () => this, window.RoomlePlanner || (this._activePlugins.length, window.RoomlePlanner = this._planner), this.lookup("init-data", this._context)?.hi &&
|
|
32
|
+
this._planner = new p(this._context, this._activePlugins), this._planner.getMain = () => this, window.RoomlePlanner || (this._activePlugins.length, window.RoomlePlanner = this._planner), this.lookup("init-data", this._context)?.hi && d() && await this._planner.setupHomagIntelligence();
|
|
33
33
|
}
|
|
34
34
|
getApi() {
|
|
35
35
|
return this._planner;
|
|
36
36
|
}
|
|
37
37
|
getContextName() {
|
|
38
|
-
return
|
|
38
|
+
return n.PLANNER;
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
//#endregion
|
|
42
42
|
export { v as t };
|
|
43
43
|
|
|
44
|
-
//# sourceMappingURL=planner-
|
|
44
|
+
//# sourceMappingURL=planner-BOrph7M7.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planner-
|
|
1
|
+
{"version":3,"file":"planner-BOrph7M7.mjs","names":[],"sources":["../../packages/planner-core/src/input/planner-input-manager.ts","../../packages/planner-core/src/utils/injectables.ts","../../packages/planner-core/src/planner.ts"],"sourcesContent":["import type { INPUT_EVENT_TYPE } from '../../../common-core/src/input/input-manager';\nimport InputManager from '../../../common-core/src/input/input-manager';\n\nexport default class PlannerInputManager extends InputManager {\n protected _canDrag(_type: INPUT_EVENT_TYPE): boolean {\n return true;\n }\n}\n","import ScriptLoader from '../../../common-core/src/script-loader';\nimport {\n DependencyInjectionAssignment,\n DI_TYPE,\n} from '../../../common-core/src/di/container';\nimport Logger from '../../../common-core/src/logger';\nimport { default as PlannerMeshGenerator } from '../webgl/planner-mesh-generator';\nimport { RapiAccess } from '../../../common-core/src/rapi-access';\nimport PlannerInputManager from '../input/planner-input-manager';\nimport PlannerSelectionHandler from './planner-selection-handler';\nimport GlobalInitData from '../../../common-core/src/utils/global-init-data';\nimport ConfiguratorViewModel from '../../../common-core/src/view-model/configurator-view-model';\n\nexport const INJECTABLES: DependencyInjectionAssignment[] = [\n new DependencyInjectionAssignment('script-loader', ScriptLoader),\n new DependencyInjectionAssignment(\n 'planner-input-manager',\n PlannerInputManager,\n DI_TYPE.CONTEXT,\n ),\n new DependencyInjectionAssignment('logger', Logger),\n new DependencyInjectionAssignment(\n 'planner-mesh-generator',\n PlannerMeshGenerator,\n ),\n new DependencyInjectionAssignment(\n 'configurator-view-model',\n ConfiguratorViewModel,\n DI_TYPE.CONTEXT,\n ),\n new DependencyInjectionAssignment('rapi-access', RapiAccess),\n new DependencyInjectionAssignment('global-init-data', GlobalInitData),\n new DependencyInjectionAssignment(\n 'planner-selection-handler',\n PlannerSelectionHandler,\n ),\n];\n","import './utils/global-definitions';\nimport { Main, BASE_CONTEXT } from '../../common-core/src/main';\nimport { RoomlePlanner } from './roomle-planner';\nimport RoomleDependencyInjection from '../../common-core/src/di/roomle-dependency-injection';\nimport { INJECTABLES } from './utils/injectables';\nimport type PlannerKernelAccess from './services/planner-kernel-access';\nimport type Logger from '../../common-core/src/logger';\nimport { KERNEL_TYPE } from '../../common-core/src/services/common-kernel-access';\nimport type { PluginName } from '../../configurator-core/src/utils/plugin-types';\nimport type InitData from '../../common-core/src/utils/init-data';\nimport { isInIframe } from '../../common-core/src/utils/rapi-utils';\n\nexport class Planner<\n P extends readonly PluginName[] = readonly [],\n> extends Main {\n private _planner: RoomlePlanner<P>;\n private _activePlugins: P;\n\n constructor(creator?: string, activePlugins?: P) {\n super(creator);\n this._activePlugins = (activePlugins || []) as P;\n }\n protected setupGlobals(): void {\n //globals are initialized in bootFinished()\n }\n\n protected setupDependencies(): void {\n RoomleDependencyInjection.setup(INJECTABLES);\n this.lookup<Logger>('logger', this._context);\n // instantiate kernel acccess\n // instantiate pka\n // set pka on kernel access\n const plannerKernelAccess = this.lookup<PlannerKernelAccess>(\n 'planner-kernel-access',\n this._context,\n );\n plannerKernelAccess.init(KERNEL_TYPE.PLANNER);\n }\n\n protected cleanUpGlobals(): void {\n throw new Error('Method not implemented.');\n }\n\n protected cleanUpDependencies(): void {\n throw new Error('Method not implemented.');\n }\n\n protected async bootFinished(): Promise<void> {\n this._planner = new RoomlePlanner<P>(this._context, this._activePlugins);\n\n this._planner.getMain = () => {\n return this;\n };\n\n if (!window.RoomlePlanner) {\n if (this._activePlugins.length === 0) {\n // cast to unknown because we know that the planner is a RoomlePlanner\n window.RoomlePlanner = this._planner as unknown as RoomlePlanner;\n } else {\n window.RoomlePlanner = this._planner as RoomlePlanner<\n readonly PluginName[]\n >;\n }\n }\n\n const initData = this.lookup<InitData>('init-data', this._context);\n\n if (initData?.hi && isInIframe()) {\n await this._planner.setupHomagIntelligence();\n }\n }\n\n public getApi(): RoomlePlanner<P> {\n return this._planner;\n }\n\n protected getContextName(): string {\n return BASE_CONTEXT.PLANNER;\n }\n}\n"],"mappings":";;;AAGA,IAAqB,IAArB,cAAiD,EAAa;CAC5D,SAAmB,GAAkC;AACnD,SAAO;;GCQE,IAA+C;CAC1D,IAAI,EAA8B,iBAAiB,EAAa;CAChE,IAAI,EACF,yBACA,GACA,EAAQ,QACT;CACD,IAAI,EAA8B,UAAU,EAAO;CACnD,IAAI,EACF,0BACA,EACD;CACD,IAAI,EACF,2BACA,GACA,EAAQ,QACT;CACD,IAAI,EAA8B,eAAe,EAAW;CAC5D,IAAI,EAA8B,oBAAoB,EAAe;CACrE,IAAI,EACF,6BACA,EACD;CACF,ECxBY,IAAb,cAEU,EAAK;CAIb,YAAY,GAAkB,GAAmB;AAE/C,EADA,MAAM,EAAQ,EACd,KAAK,iBAAkB,KAAiB,EAAE;;CAE5C,eAA+B;CAI/B,oBAAoC;AAMN,EAL5B,EAA0B,MAAM,EAAY,EAC5C,KAAK,OAAe,UAAU,KAAK,SAAS,EAIhB,KAAK,OAC/B,yBACA,KAAK,SACN,CACmB,KAAK,EAAY,QAAQ;;CAG/C,iBAAiC;AAC/B,QAAU,MAAM,0BAA0B;;CAG5C,sBAAsC;AACpC,QAAU,MAAM,0BAA0B;;CAG5C,MAAgB,eAA8B;AAoB5C,EAnBA,KAAK,WAAW,IAAI,EAAiB,KAAK,UAAU,KAAK,eAAe,EAExE,KAAK,SAAS,gBACL,MAGJ,OAAO,kBACN,KAAK,eAAe,QAEtB,OAAO,gBAAgB,KAAK,WAQf,KAAK,OAAiB,aAAa,KAAK,SAAS,EAEpD,MAAM,GAAY,IAC9B,MAAM,KAAK,SAAS,wBAAwB;;CAIhD,SAAkC;AAChC,SAAO,KAAK;;CAGd,iBAAmC;AACjC,SAAO,EAAa"}
|
package/lib/roomle-headless.d.ts
CHANGED
|
@@ -3521,9 +3521,10 @@ export declare interface ExternalObjectAPI {
|
|
|
3521
3521
|
/**
|
|
3522
3522
|
* "removeExternalObject" removes a group or root module from the plan.
|
|
3523
3523
|
* If the removed root module is located between other root modules the remaining group is split up in multiple groups.
|
|
3524
|
+
* The returned promise resolves once the plan object is removed.
|
|
3524
3525
|
* @param groupOrRootModuleId The ID of the group or root module to be removed.
|
|
3525
3526
|
*/
|
|
3526
|
-
removeExternalObject(groupOrRootModuleId: string): void
|
|
3527
|
+
removeExternalObject(groupOrRootModuleId: string): Promise<void>;
|
|
3527
3528
|
/**
|
|
3528
3529
|
* "selectExternalObject" changes the selected object in the scene.
|
|
3529
3530
|
* The function selects either a complete group of root modules or a single root module or a single sub module.
|
|
@@ -3567,6 +3568,22 @@ export declare interface ExternalObjectAPI {
|
|
|
3567
3568
|
* @param include The sections to include. All sections are returned when omitted or empty.
|
|
3568
3569
|
*/
|
|
3569
3570
|
getExternalObjectPlanContext(include?: HiPlanContextSection[]): Promise<HiPlanContext>;
|
|
3571
|
+
/**
|
|
3572
|
+
* "externalObjectGroupOperation" changes the groups in the plan by command. The payload refers to
|
|
3573
|
+
* groups, root modules and articles by the ids of "getExternalObjectPlanContext":
|
|
3574
|
+
* - "change-module-attribute" { rootModuleId, moduleId?, attributeId, value } sets an attribute of a root module or of one of its sub modules
|
|
3575
|
+
* - "change-group-attribute" { groupId, attributeId, value } sets an attribute on every module of the group that has it
|
|
3576
|
+
* - "delete-group" { groupId } removes the group from the plan
|
|
3577
|
+
* - "delete-root-module" { rootModuleId } removes a root module; the rest of the group splits where it is no longer docked together
|
|
3578
|
+
* - "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
|
|
3579
|
+
* - "exchange-root-module" { groupId, rootModuleId, articleId } replaces a root module with an article of one root module, keeping its docking
|
|
3580
|
+
* - "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
|
|
3581
|
+
* The promise resolves once the planner has loaded the result, with the affected groups in the shape of the plan context,
|
|
3582
|
+
* and rejects with the reason when the payload is invalid or the operation cannot be performed.
|
|
3583
|
+
* @param command The operation.
|
|
3584
|
+
* @param payload The payload of the operation.
|
|
3585
|
+
*/
|
|
3586
|
+
externalObjectGroupOperation<C extends HiGroupOperation>(command: C, payload: HiGroupOperationPayloads[C]): Promise<HiGroupOperationResult>;
|
|
3570
3587
|
/**
|
|
3571
3588
|
* It generates a snapshot of the external object in the plan without saving any data.
|
|
3572
3589
|
* By default, the snapshot includes order data, room information, the plan XML, GLBs of the complete scene,
|
|
@@ -4224,6 +4241,7 @@ export declare interface GlueLogic {
|
|
|
4224
4241
|
createOrReplacePosDataFromArticleLayout(articleLayoutJson: ExternalObjectGroupLayout, layoutType: string, posArticles?: PosArticle[]): Promise<PosGroup | PosGroup[] | undefined>;
|
|
4225
4242
|
newPosDataFromGroup(posDataJson: PosGroup): Promise<PosGroup>;
|
|
4226
4243
|
getPlanContext(include?: HiPlanContextSection[]): Promise<HiPlanContext>;
|
|
4244
|
+
executeGroupOperation(command: string, payload: unknown): Promise<HiGroupOperationResult>;
|
|
4227
4245
|
getGroupDataForOrder(options: GetGroupDataForOrderOptions): Promise<HiOrderData | null>;
|
|
4228
4246
|
getMaterialUrl(materialId: string, groupOrModuleId?: string): string | null;
|
|
4229
4247
|
}
|
|
@@ -4541,6 +4559,25 @@ export declare const HI_CONTEXT_ACTION: {
|
|
|
4541
4559
|
readonly ISOLATION: "isolation";
|
|
4542
4560
|
};
|
|
4543
4561
|
|
|
4562
|
+
/**
|
|
4563
|
+
* Group operations change the groups of the plan context by command: a
|
|
4564
|
+
* command names the operation, its payload refers to the groups, root modules
|
|
4565
|
+
* and articles by the ids the plan context shows. `runGroupOperation`
|
|
4566
|
+
* validates the payload, performs the operation with the glue-logic features
|
|
4567
|
+
* behind `HiGroupOperations` and returns the affected groups in the
|
|
4568
|
+
* plan-context shape. A new command is one entry in `HI_GROUP_OPERATION`, one
|
|
4569
|
+
* payload type and one handler.
|
|
4570
|
+
*/
|
|
4571
|
+
export declare const HI_GROUP_OPERATION: {
|
|
4572
|
+
readonly CHANGE_MODULE_ATTRIBUTE: "change-module-attribute";
|
|
4573
|
+
readonly CHANGE_GROUP_ATTRIBUTE: "change-group-attribute";
|
|
4574
|
+
readonly DELETE_GROUP: "delete-group";
|
|
4575
|
+
readonly DELETE_ROOT_MODULE: "delete-root-module";
|
|
4576
|
+
readonly MERGE_ARTICLE_INTO_GROUP: "merge-article-into-group";
|
|
4577
|
+
readonly EXCHANGE_ROOT_MODULE: "exchange-root-module";
|
|
4578
|
+
readonly MERGE_GROUPS: "merge-groups";
|
|
4579
|
+
};
|
|
4580
|
+
|
|
4544
4581
|
export declare const HI_LOAD_OBJECT_REASON: {
|
|
4545
4582
|
readonly ADD_SUBARTICLE: "add_subarticle";
|
|
4546
4583
|
readonly MOVE_SUBARTICLE: "move_subarticle";
|
|
@@ -4577,8 +4614,15 @@ export declare interface HiApiOptions extends HomagIntelligenceSubscription {
|
|
|
4577
4614
|
language?: string;
|
|
4578
4615
|
}
|
|
4579
4616
|
|
|
4617
|
+
export declare interface HiArticlePick {
|
|
4618
|
+
articleId: string;
|
|
4619
|
+
attributes?: HiPlanRootAttribute[];
|
|
4620
|
+
}
|
|
4621
|
+
|
|
4580
4622
|
export declare type HiAttributeOptionsResult = CheckDropDownResult | CheckDropDownEntry[] | undefined;
|
|
4581
4623
|
|
|
4624
|
+
export declare type HiAttributeValue = string | boolean;
|
|
4625
|
+
|
|
4582
4626
|
export declare interface HiCallbacks {
|
|
4583
4627
|
/**
|
|
4584
4628
|
* Requests the calculation script for the given library ID.
|
|
@@ -4674,6 +4718,15 @@ export declare type HiContextAction = (typeof HI_CONTEXT_ACTION)[keyof typeof HI
|
|
|
4674
4718
|
*/
|
|
4675
4719
|
export declare const HIDDEN_INTERACTION_LIFECYCLE_METHODS: readonly ["startInteraction", "resumeInteraction", "endInteraction"];
|
|
4676
4720
|
|
|
4721
|
+
/** A free docking vector of a root of the group, and how the article docks to it. */
|
|
4722
|
+
export declare interface HiDockTarget {
|
|
4723
|
+
rootId: string;
|
|
4724
|
+
ownDockingVector: PosDock | string;
|
|
4725
|
+
dockingVector: PosDock | string;
|
|
4726
|
+
mode?: PosDockMode;
|
|
4727
|
+
offset?: HiPlanPosition3;
|
|
4728
|
+
}
|
|
4729
|
+
|
|
4677
4730
|
export declare interface HighlightHelper {
|
|
4678
4731
|
init(object: Object3D, camera: PerspectiveCamera): void;
|
|
4679
4732
|
setCamera(camera: PerspectiveCamera): void;
|
|
@@ -4687,6 +4740,48 @@ export declare interface HighlightHelper {
|
|
|
4687
4740
|
invalidate?(): void;
|
|
4688
4741
|
}
|
|
4689
4742
|
|
|
4743
|
+
export declare type HiGroupOperation = (typeof HI_GROUP_OPERATION)[keyof typeof HI_GROUP_OPERATION];
|
|
4744
|
+
|
|
4745
|
+
export declare interface HiGroupOperationPayloads {
|
|
4746
|
+
'change-module-attribute': {
|
|
4747
|
+
rootModuleId: string;
|
|
4748
|
+
moduleId?: string | null;
|
|
4749
|
+
attributeId: string;
|
|
4750
|
+
value: HiAttributeValue;
|
|
4751
|
+
};
|
|
4752
|
+
'change-group-attribute': {
|
|
4753
|
+
groupId: string;
|
|
4754
|
+
attributeId: string;
|
|
4755
|
+
value: HiAttributeValue;
|
|
4756
|
+
};
|
|
4757
|
+
'delete-group': {
|
|
4758
|
+
groupId: string;
|
|
4759
|
+
};
|
|
4760
|
+
'delete-root-module': {
|
|
4761
|
+
rootModuleId: string;
|
|
4762
|
+
};
|
|
4763
|
+
'merge-article-into-group': HiArticlePick & {
|
|
4764
|
+
groupId: string;
|
|
4765
|
+
dockTo: HiDockTarget;
|
|
4766
|
+
};
|
|
4767
|
+
'exchange-root-module': {
|
|
4768
|
+
groupId: string;
|
|
4769
|
+
rootModuleId: string;
|
|
4770
|
+
articleId: string;
|
|
4771
|
+
};
|
|
4772
|
+
'merge-groups': {
|
|
4773
|
+
targetGroupId: string;
|
|
4774
|
+
groupIds: string[];
|
|
4775
|
+
};
|
|
4776
|
+
}
|
|
4777
|
+
|
|
4778
|
+
export declare interface HiGroupOperationResult {
|
|
4779
|
+
command: HiGroupOperation;
|
|
4780
|
+
groups: HiPlanGroup[];
|
|
4781
|
+
removedGroupIds: string[];
|
|
4782
|
+
changedModuleIds?: string[];
|
|
4783
|
+
}
|
|
4784
|
+
|
|
4690
4785
|
export declare type HiLoadObjectReason = (typeof HI_LOAD_OBJECT_REASON)[keyof typeof HI_LOAD_OBJECT_REASON];
|
|
4691
4786
|
|
|
4692
4787
|
export declare interface HiObjectSelectionApi {
|
|
@@ -4832,7 +4927,6 @@ export declare interface HiPlanGroup {
|
|
|
4832
4927
|
position: HiPlanGroupPosition;
|
|
4833
4928
|
attributes?: PosModuleAttribute[];
|
|
4834
4929
|
roots: HiPlanRoot[];
|
|
4835
|
-
logMessages: PosErrorMsg[];
|
|
4836
4930
|
}
|
|
4837
4931
|
|
|
4838
4932
|
export declare interface HiPlanGroupPosition {
|
|
@@ -4889,7 +4983,6 @@ export declare interface HiPlanRoot {
|
|
|
4889
4983
|
id: string;
|
|
4890
4984
|
imageUrl?: string;
|
|
4891
4985
|
}>;
|
|
4892
|
-
logMessages?: PosErrorMsg[];
|
|
4893
4986
|
}
|
|
4894
4987
|
|
|
4895
4988
|
export declare interface HiPlanRootAttribute {
|
|
@@ -9585,6 +9678,16 @@ export declare class RaycastHelper extends EventDispatcher<Record<RAYCAST_EVENT,
|
|
|
9585
9678
|
private _findHover;
|
|
9586
9679
|
private _intersection;
|
|
9587
9680
|
private _intersect;
|
|
9681
|
+
/**
|
|
9682
|
+
* Components are hit through their bounding boxes, and the box of a component
|
|
9683
|
+
* encloses the boxes of the sub components within it, so the nearest hit of a
|
|
9684
|
+
* priority is usually the enclosing one and a click on a sub component would
|
|
9685
|
+
* never reach it. Move the innermost hit nested within that nearest one to the
|
|
9686
|
+
* front. A sub component counts as nested when it lies mostly within, as it
|
|
9687
|
+
* can protrude from the box around it. Hits that are not nested keep their
|
|
9688
|
+
* distance order, so unrelated objects are unaffected.
|
|
9689
|
+
*/
|
|
9690
|
+
private _preferNestedComponent;
|
|
9588
9691
|
intersectAtPosition(position: Position2): RoomleEventedIntersection | null;
|
|
9589
9692
|
private _findObjectWithHandler;
|
|
9590
9693
|
private _onDragStart;
|
|
@@ -9670,8 +9773,9 @@ export declare class RoomDesignerApi implements RoomDesignerRequests {
|
|
|
9670
9773
|
selectRoot(rootModuleId: string): Promise<void>;
|
|
9671
9774
|
selectModule(rootModuleId: string, subModuleId: string): Promise<void>;
|
|
9672
9775
|
openCloseGroup(groupOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean): Promise<void>;
|
|
9673
|
-
deleteGroup(groupId: string): void
|
|
9674
|
-
deleteRootModule(rootModuleId: string): void
|
|
9776
|
+
deleteGroup(groupId: string): Promise<void>;
|
|
9777
|
+
deleteRootModule(rootModuleId: string): Promise<void>;
|
|
9778
|
+
mergeGroups(groupIds: string[]): Promise<void>;
|
|
9675
9779
|
getPosDataOfAllGroups(): Promise<PosGroup[]>;
|
|
9676
9780
|
getRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
9677
9781
|
saveExternalObjectSnapshot(): Promise<ExternalObjectSnapshotSaveResult | null>;
|
|
@@ -9687,8 +9791,9 @@ export declare interface RoomDesignerRequests {
|
|
|
9687
9791
|
selectRoot(rootModuleId: string): Promise<void>;
|
|
9688
9792
|
selectModule(rootModuleId: string, subModuleId: string): Promise<void>;
|
|
9689
9793
|
openCloseGroup(groupOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean): void;
|
|
9690
|
-
deleteGroup(groupId: string): void
|
|
9691
|
-
deleteRootModule(rootModuleId: string): void
|
|
9794
|
+
deleteGroup(groupId: string): Promise<void>;
|
|
9795
|
+
deleteRootModule(rootModuleId: string): Promise<void>;
|
|
9796
|
+
mergeGroups(groupIds: string[]): Promise<void>;
|
|
9692
9797
|
getPosDataOfAllGroups(): Promise<PosGroup[]>;
|
|
9693
9798
|
getRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
9694
9799
|
saveExternalObjectSnapshot(): Promise<ExternalObjectSnapshotSaveResult | null>;
|
|
@@ -11166,13 +11271,15 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
11166
11271
|
}>;
|
|
11167
11272
|
getExternalObjectValidSubArticles(posGroupId?: string): PosArticle[];
|
|
11168
11273
|
selectExternalObjectSubArticle(subArticleId: string): void;
|
|
11169
|
-
|
|
11274
|
+
_mergeExternalObjects(groupIds: string[]): Promise<void>;
|
|
11275
|
+
removeExternalObject(groupOrRootModuleId: string): Promise<void>;
|
|
11170
11276
|
selectExternalObject(groupOrRootModuleId: string, subModuleId: string | null, contextAction: HiContextAction): Promise<void>;
|
|
11171
11277
|
highlightExternalObject(groupOrRootModuleId: string, subModuleId: string | null): Promise<void>;
|
|
11172
11278
|
openOrCloseGeometryOfExternalObject(groupIdOrRootModuleId: string, _subModuleId: string | null, open: boolean, animate: boolean): void;
|
|
11173
11279
|
_selectExternalObjectGroup(groupId: string, switchToPlanner: boolean): Promise<void>;
|
|
11174
11280
|
getExternalObjectGroups(): Promise<object[]>;
|
|
11175
11281
|
getExternalObjectPlanContext(include?: HiPlanContextSection[]): Promise<HiPlanContext>;
|
|
11282
|
+
externalObjectGroupOperation<C extends HiGroupOperation>(command: C, payload: HiGroupOperationPayloads[C]): Promise<HiGroupOperationResult>;
|
|
11176
11283
|
getExternalRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
11177
11284
|
/**
|
|
11178
11285
|
* Highlights a product in the planner.
|