@roomle/web-sdk 5.2.0-alpha.8 → 5.2.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-DFtMPW0B.mjs → api-DzAvODF3.mjs} +10 -10
- package/lib/{api-DFtMPW0B.mjs.map → api-DzAvODF3.mjs.map} +1 -1
- package/lib/asset-loader.worker-CE4O0JU-.mjs.map +1 -1
- package/lib/budgeteer.sw-yR2xApHT.mjs.map +1 -1
- package/lib/configurator-BpxToJbA.mjs +2 -0
- package/lib/{configurator-tJPEoXNo.mjs → configurator-CJFwkh54.mjs} +3 -3
- package/lib/{configurator-tJPEoXNo.mjs.map → configurator-CJFwkh54.mjs.map} +1 -1
- package/lib/glb-viewer-45djC72D.mjs +2 -0
- package/lib/{glb-viewer-C_yA5VPi.mjs → glb-viewer-BSHmO1do.mjs} +3 -3
- package/lib/{glb-viewer-C_yA5VPi.mjs.map → glb-viewer-BSHmO1do.mjs.map} +1 -1
- package/lib/{homag-intelligence-CvKPnW8j.mjs → homag-intelligence-CNxcr-eA.mjs} +3 -3
- package/lib/{homag-intelligence-CvKPnW8j.mjs.map → homag-intelligence-CNxcr-eA.mjs.map} +1 -1
- package/lib/{material-viewer-BKXxmrdo.mjs → material-viewer-HzxKTFQF.mjs} +3 -3
- package/lib/{material-viewer-BKXxmrdo.mjs.map → material-viewer-HzxKTFQF.mjs.map} +1 -1
- package/lib/{packages-DEEywrg6.mjs → packages-BebHC0FC.mjs} +5 -5
- package/lib/{packages-DEEywrg6.mjs.map → packages-BebHC0FC.mjs.map} +1 -1
- package/lib/{planner-CgJxkSt7.mjs → planner-DLRkyi_2.mjs} +3 -3
- package/lib/{planner-CgJxkSt7.mjs.map → planner-DLRkyi_2.mjs.map} +1 -1
- package/lib/planner-FqhSeWWA.mjs +2 -0
- package/lib/roomle-headless.d.ts +39 -9
- package/lib/roomle-headless.js +9 -9
- package/lib/{roomle-sdk-DaxoOKwx.mjs → roomle-sdk-Bt3h0SSr.mjs} +2890 -2729
- package/lib/roomle-sdk-Bt3h0SSr.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +39 -9
- package/lib/roomle-sdk.js +7 -7
- package/lib/{script-loader-fboIOYbL.mjs → script-loader-CIboUjm9.mjs} +2 -2
- package/lib/{script-loader-fboIOYbL.mjs.map → script-loader-CIboUjm9.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/{tools-core-NCflO410.mjs → tools-core-BpUxOTe-.mjs} +3 -3
- package/lib/{tools-core-NCflO410.mjs.map → tools-core-BpUxOTe-.mjs.map} +1 -1
- package/package.json +2 -2
- package/lib/configurator-Bvr4WQgw.mjs +0 -2
- package/lib/glb-viewer-PArpcKaC.mjs +0 -2
- package/lib/planner-kfY0-KyN.mjs +0 -2
- package/lib/roomle-sdk-DaxoOKwx.mjs.map +0 -1
package/lib/roomle-headless.d.ts
CHANGED
|
@@ -3500,7 +3500,8 @@ export declare interface ExternalObjectAPI {
|
|
|
3500
3500
|
* the "shapes" property, the layout type "posGroups" evaluates the "posGroups" property.
|
|
3501
3501
|
* For the layout type "posGroups" a group whose id matches a group already loaded in the plan
|
|
3502
3502
|
* completely replaces that group; root modules keep their ids when they already exist in the
|
|
3503
|
-
* replaced group, all other ids are regenerated.
|
|
3503
|
+
* replaced group, all other ids are regenerated. A root module the replace adds takes the
|
|
3504
|
+
* implicitRelevant input attributes of a root module it is docked to; its own attributes override them.
|
|
3504
3505
|
* @param layoutType The article layout type. "nobila" and "posGroups" are supported.
|
|
3505
3506
|
* @param options Options for loading the external object group.
|
|
3506
3507
|
*/
|
|
@@ -3554,6 +3555,12 @@ export declare interface ExternalObjectAPI {
|
|
|
3554
3555
|
* @param subArticleId The ID of the sub article to be selected.
|
|
3555
3556
|
*/
|
|
3556
3557
|
selectExternalObjectSubArticle(subArticleId: string): void;
|
|
3558
|
+
/**
|
|
3559
|
+
* "deleteExternalObjectSubArticle" deletes a placed sub article from its pos group.
|
|
3560
|
+
* @param posGroupId The ID of the pos group.
|
|
3561
|
+
* @param subArticleId The ID of the sub article to be deleted.
|
|
3562
|
+
*/
|
|
3563
|
+
deleteExternalObjectSubArticle(posGroupId: string, subArticleId: string): Promise<void>;
|
|
3557
3564
|
/**
|
|
3558
3565
|
* "renderImagesOfExternalObjectGroups" renders images of groups of modules.
|
|
3559
3566
|
* @param groupJson The group JSON as string or object.
|
|
@@ -3616,12 +3623,13 @@ export declare interface ExternalObjectAPI {
|
|
|
3616
3623
|
/**
|
|
3617
3624
|
* "externalObjectGroupOperation" changes the groups in the plan by command. The payload refers to
|
|
3618
3625
|
* groups, root modules and articles by the ids of "getExternalObjectPlanContext":
|
|
3619
|
-
* - "change-module-attribute" { rootModuleId, moduleId?, attributeId, value } sets an attribute
|
|
3626
|
+
* - "change-module-attribute" { rootModuleId, moduleId?, attributeId, value } without moduleId sets an attribute on the root module and on each of its sub modules that carry it; with moduleId it sets the attribute on that one sub module only
|
|
3620
3627
|
* - "change-group-attribute" { groupId, attributeId, value } sets an attribute on every module of the group that has it
|
|
3628
|
+
* - "change-attributes" { groupId, attributes: [{ attributeId, value, rootModuleIds? }] } sets several attribute values in one calculation, one load and one undo step: an entry with rootModuleIds on those root modules and their sub modules that carry it, without them on every module of the group that has it; the entries no module they name carries are skipped and named in skippedAttributes
|
|
3621
3629
|
* - "delete-group" { groupId } removes the group from the plan
|
|
3622
3630
|
* - "delete-root-module" { rootModuleId } removes a root module; the rest of the group splits where it is no longer docked together
|
|
3623
|
-
* - "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
|
|
3624
|
-
* - "exchange-root-module" { groupId, rootModuleId, articleId } replaces a root module with an article of one root module, keeping its docking
|
|
3631
|
+
* - "merge-article-into-group" { groupId, articleId, attributes?, dockTo: { rootId, ownDockingVector, dockingVector, mode?, offset? } } docks a new root module of the article to a free docking vector of a root module of the group; the new root module takes the implicitRelevant input attributes of that root module, and attributes override them
|
|
3632
|
+
* - "exchange-root-module" { groupId, rootModuleId, articleId } replaces a root module with an article of one root module, keeping its docking and the implicitRelevant input attributes of the replaced root module
|
|
3625
3633
|
* - "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
|
|
3626
3634
|
* The promise resolves once the planner has loaded the result, with the affected groups in the shape of the plan context,
|
|
3627
3635
|
* and rejects with the reason when the payload is invalid or the operation cannot be performed.
|
|
@@ -4639,14 +4647,15 @@ export declare const HI_CONTEXT_ACTION: {
|
|
|
4639
4647
|
* Group operations change the groups of the plan context by command: a
|
|
4640
4648
|
* command names the operation, its payload refers to the groups, root modules
|
|
4641
4649
|
* and articles by the ids the plan context shows. `runGroupOperation`
|
|
4642
|
-
* validates the payload, performs the operation with the
|
|
4643
|
-
*
|
|
4644
|
-
*
|
|
4650
|
+
* validates the payload, performs the operation with the HI tools behind
|
|
4651
|
+
* `HiGroupOperations` and returns the affected groups in the plan-context
|
|
4652
|
+
* shape. A new command is one entry in `HI_GROUP_OPERATION`, one
|
|
4645
4653
|
* payload type and one handler.
|
|
4646
4654
|
*/
|
|
4647
4655
|
export declare const HI_GROUP_OPERATION: {
|
|
4648
4656
|
readonly CHANGE_MODULE_ATTRIBUTE: "change-module-attribute";
|
|
4649
4657
|
readonly CHANGE_GROUP_ATTRIBUTE: "change-group-attribute";
|
|
4658
|
+
readonly CHANGE_ATTRIBUTES: "change-attributes";
|
|
4650
4659
|
readonly DELETE_GROUP: "delete-group";
|
|
4651
4660
|
readonly DELETE_ROOT_MODULE: "delete-root-module";
|
|
4652
4661
|
readonly MERGE_ARTICLE_INTO_GROUP: "merge-article-into-group";
|
|
@@ -4699,6 +4708,17 @@ export declare interface HiArticlePick {
|
|
|
4699
4708
|
attributes?: HiPlanRootAttribute[];
|
|
4700
4709
|
}
|
|
4701
4710
|
|
|
4711
|
+
/**
|
|
4712
|
+
* An attribute value of `change-attributes`: set on the named root modules
|
|
4713
|
+
* and their sub modules that carry the attribute, or without `rootModuleIds`
|
|
4714
|
+
* on every module of the group that carries it.
|
|
4715
|
+
*/
|
|
4716
|
+
export declare interface HiAttributeChange {
|
|
4717
|
+
attributeId: string;
|
|
4718
|
+
value: HiAttributeValue;
|
|
4719
|
+
rootModuleIds?: string[];
|
|
4720
|
+
}
|
|
4721
|
+
|
|
4702
4722
|
export declare type HiAttributeOptionsResult = CheckDropDownResult | CheckDropDownEntry[] | undefined;
|
|
4703
4723
|
|
|
4704
4724
|
export declare type HiAttributeValue = string | boolean;
|
|
@@ -4834,6 +4854,11 @@ export declare interface HiGroupOperationPayloads {
|
|
|
4834
4854
|
attributeId: string;
|
|
4835
4855
|
value: HiAttributeValue;
|
|
4836
4856
|
};
|
|
4857
|
+
/** Several attribute values in one calculation, one load and one undo step. */
|
|
4858
|
+
'change-attributes': {
|
|
4859
|
+
groupId: string;
|
|
4860
|
+
attributes: HiAttributeChange[];
|
|
4861
|
+
};
|
|
4837
4862
|
'delete-group': {
|
|
4838
4863
|
groupId: string;
|
|
4839
4864
|
};
|
|
@@ -4877,6 +4902,7 @@ export declare interface HiGroupOperationResult {
|
|
|
4877
4902
|
changedModuleIds?: string[];
|
|
4878
4903
|
corrections?: string[];
|
|
4879
4904
|
gapClosed?: boolean;
|
|
4905
|
+
skippedAttributes?: Array<Omit<HiAttributeChange, 'value'>>;
|
|
4880
4906
|
}
|
|
4881
4907
|
|
|
4882
4908
|
export declare type HiLoadObjectReason = (typeof HI_LOAD_OBJECT_REASON)[keyof typeof HI_LOAD_OBJECT_REASON];
|
|
@@ -5042,6 +5068,7 @@ export declare interface HiPlanMasterData {
|
|
|
5042
5068
|
libraryId: string;
|
|
5043
5069
|
modules: HiPlanMasterDataModule[];
|
|
5044
5070
|
attributes: HiPlanAttribute[];
|
|
5071
|
+
groupSettings: string[];
|
|
5045
5072
|
}
|
|
5046
5073
|
|
|
5047
5074
|
export declare interface HiPlanMasterDataModule {
|
|
@@ -5066,7 +5093,7 @@ export declare interface HiPlanObstacles {
|
|
|
5066
5093
|
|
|
5067
5094
|
/**
|
|
5068
5095
|
* The plan context is the data an AI agent needs to understand and author a
|
|
5069
|
-
* planning session. `
|
|
5096
|
+
* planning session. `createPlanContext` assembles it and every
|
|
5070
5097
|
* section leaves this file in the agent-ready shape: compacted, and in one
|
|
5071
5098
|
* coordinate system - 3D, right-handed, Y up, the coordinate system of
|
|
5072
5099
|
* `PosGroup`.
|
|
@@ -7665,6 +7692,7 @@ export declare class PlannerKernelAccess extends ConfiguratorKernelAccess {
|
|
|
7665
7692
|
addListener(listener: KernelAccessCallbackI): void;
|
|
7666
7693
|
removeListener(listener: KernelAccessCallbackI): void;
|
|
7667
7694
|
private _homagIntelligence;
|
|
7695
|
+
private _externalObjectPlanChanges;
|
|
7668
7696
|
private _arrangementCorrectionEnabled;
|
|
7669
7697
|
get arrangementCorrectionEnabled(): boolean;
|
|
7670
7698
|
get kernelContainer(): any;
|
|
@@ -7756,7 +7784,8 @@ export declare class PlannerKernelAccess extends ConfiguratorKernelAccess {
|
|
|
7756
7784
|
protected _externalObjectConfigurationDeleted(groupId: string): void;
|
|
7757
7785
|
protected _externalObjectComponentDeleted(remainingGroupOrGroups: ExternalObjectGroup | ExternalObjectGroup[], deletedRootModuleId: string): void;
|
|
7758
7786
|
_externalObjectConfigurationDuplicated(duplicatedGroup: ExternalObjectGroup): void;
|
|
7759
|
-
|
|
7787
|
+
loadExternalObjectGroups(load: () => PlanObject[]): Promise<PlanObject[]>;
|
|
7788
|
+
_externalObjectPlanChanged(movedGroup: ExternalObjectGroup, objectPositionChanged: boolean): Promise<void | undefined>;
|
|
7760
7789
|
_externalObjectConfigurationsMerged(mergedGroup: ExternalObjectGroup, idsOfGroupsMerged: string | string[], targetRootModuleId: string, mergedWithDragging: boolean): Promise<void>;
|
|
7761
7790
|
_externalObjectComponentSplitOff(splitGroups: ExternalObjectGroup[]): void;
|
|
7762
7791
|
planSnapshotCreated(planSnapshot: RapiPlanSnapshotPostData): void;
|
|
@@ -11443,6 +11472,7 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
11443
11472
|
}>;
|
|
11444
11473
|
getExternalObjectValidSubArticles(posGroupId?: string): PosArticle[];
|
|
11445
11474
|
selectExternalObjectSubArticle(subArticleId: string): void;
|
|
11475
|
+
deleteExternalObjectSubArticle(posGroupId: string, subArticleId: string): Promise<void>;
|
|
11446
11476
|
_mergeExternalObjects(groupIds: string[]): Promise<void>;
|
|
11447
11477
|
removeExternalObject(groupOrRootModuleId: string): Promise<void>;
|
|
11448
11478
|
selectExternalObject(groupOrRootModuleId: string, subModuleId: string | null, contextAction: HiContextAction): Promise<void>;
|
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-BebHC0FC.mjs";
|
|
2
2
|
import { i as a, t as o } from "./kernel-BWfRHWkW.mjs";
|
|
3
3
|
import { Tt as s, xt as c } from "./threejs-utils-Dy-rm1a9.mjs";
|
|
4
4
|
import { Ti as l, m as u, nt as d } from "./three.core-BTUCraWz.mjs";
|
|
5
5
|
import { i as f } from "./decorate-CjaqqbUP.mjs";
|
|
6
6
|
import { D as ee, H as p, g as m } from "./common-utils-CNGLvAo_.mjs";
|
|
7
|
-
import { A as te,
|
|
7
|
+
import { A as te, B as ne, F as re, G as ie, H as ae, J as oe, K as se, M as ce, N as le, P as h, S as ue, Y as de, a as fe, b as pe, ct as g, dt as me, ft as he, ht as ge, i as _e, j as ve, k as ye, l as _, lt as v, m as y, o as b, ot as x, q as S, r as C, s as w, st as T, t as E, u as D, ut as O, x as k, y as A, z as j } from "./roomle-sdk-Bt3h0SSr.mjs";
|
|
8
8
|
import { n as M } from "./roomle-renderer-nCUrLU_S.mjs";
|
|
9
|
-
import { n as N } from "./script-loader-
|
|
10
|
-
import { t as P } from "./configurator-
|
|
11
|
-
import { t as be } from "./planner-
|
|
12
|
-
import { n as xe, t as Se } from "./glb-viewer-
|
|
13
|
-
import { t as Ce } from "./api-
|
|
9
|
+
import { n as N } from "./script-loader-CIboUjm9.mjs";
|
|
10
|
+
import { t as P } from "./configurator-CJFwkh54.mjs";
|
|
11
|
+
import { t as be } from "./planner-DLRkyi_2.mjs";
|
|
12
|
+
import { n as xe, t as Se } from "./glb-viewer-BSHmO1do.mjs";
|
|
13
|
+
import { t as Ce } from "./api-DzAvODF3.mjs";
|
|
14
14
|
import { t as we } from "./roomle-headless-setup-DbO_rLjK.mjs";
|
|
15
15
|
import { createRequire as Te } from "module";
|
|
16
16
|
//#region packages/headless-core/src/headless-tween-stub.ts
|
|
@@ -597,7 +597,7 @@ var Le = (e) => {
|
|
|
597
597
|
}
|
|
598
598
|
async _load(e, t, n, r) {
|
|
599
599
|
let i = await this._getPlanner();
|
|
600
|
-
if (i.getConfiguratorContext().baseContext =
|
|
600
|
+
if (i.getConfiguratorContext().baseContext = ae.PLANNER, this._loadedScene?.identity === e) return;
|
|
601
601
|
this._loadedScene = null;
|
|
602
602
|
let a = Q(r, n);
|
|
603
603
|
this._useEnvironmentGeometry(a), await He(i, t), this._loadedScene = {
|
|
@@ -730,6 +730,6 @@ var Le = (e) => {
|
|
|
730
730
|
$()?.setModelExportOngoing(e);
|
|
731
731
|
}, Xe = () => $()?.isModelExportOngoing() ?? !1;
|
|
732
732
|
//#endregion
|
|
733
|
-
export { o as CONFIGURATION_TYPE, c as CORE_EDGE_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, P as Configurator, ve as FloorPlanElementViewModel, Se as GlbViewer,
|
|
733
|
+
export { o as CONFIGURATION_TYPE, c as CORE_EDGE_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, P as Configurator, ve as FloorPlanElementViewModel, Se as GlbViewer, ne as HI_CONTEXT_ACTION, j as HI_GROUP_OPERATION, Je as HeadlessRoomleSdk, ue as MeasurementLinePlanElementViewModel, A as PLAN_ELEMENT_CHANGE_TYPES, re as PlanElementViewModel, h as PlanObjectViewModel, be as Planner, v as RapiAccess, O as RapiInvalidIdError, me as RapiOfflineError, Ce as RoomDesignerApi, ye as RoomleConfigurator, xe as RoomleGLBViewer, ge as RoomleLightSource, D as RoomlePlanner, E as RoomleSdk, le as StaticPlanObjectViewModel, ce as WallPlanElementViewModel, ie as createExtObj, de as createExtObjId, m as download, he as getCatalogIdFromConfigurationHash, we as getHeadlessWebGpuMaxTextureDimension, se as isExtObjId, S as isExternalObject, pe as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, Xe as isModelExportOngoing, e as isPlanSnapshotId, k as isSafari, ee as md5Hash, oe as removeExtObjIdPrefix, Ye as setModelExportOngoing, Pe as setPathTracerExternalDenoiser, Re as setPathTracerPreviewHook, Le as setPathTracerProgressHook };
|
|
734
734
|
|
|
735
735
|
//# sourceMappingURL=roomle-headless.js.map
|