@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
package/lib/roomle-sdk.d.ts
CHANGED
|
@@ -3512,9 +3512,10 @@ export declare interface ExternalObjectAPI {
|
|
|
3512
3512
|
/**
|
|
3513
3513
|
* "removeExternalObject" removes a group or root module from the plan.
|
|
3514
3514
|
* If the removed root module is located between other root modules the remaining group is split up in multiple groups.
|
|
3515
|
+
* The returned promise resolves once the plan object is removed.
|
|
3515
3516
|
* @param groupOrRootModuleId The ID of the group or root module to be removed.
|
|
3516
3517
|
*/
|
|
3517
|
-
removeExternalObject(groupOrRootModuleId: string): void
|
|
3518
|
+
removeExternalObject(groupOrRootModuleId: string): Promise<void>;
|
|
3518
3519
|
/**
|
|
3519
3520
|
* "selectExternalObject" changes the selected object in the scene.
|
|
3520
3521
|
* The function selects either a complete group of root modules or a single root module or a single sub module.
|
|
@@ -3558,6 +3559,22 @@ export declare interface ExternalObjectAPI {
|
|
|
3558
3559
|
* @param include The sections to include. All sections are returned when omitted or empty.
|
|
3559
3560
|
*/
|
|
3560
3561
|
getExternalObjectPlanContext(include?: HiPlanContextSection[]): Promise<HiPlanContext>;
|
|
3562
|
+
/**
|
|
3563
|
+
* "externalObjectGroupOperation" changes the groups in the plan by command. The payload refers to
|
|
3564
|
+
* groups, root modules and articles by the ids of "getExternalObjectPlanContext":
|
|
3565
|
+
* - "change-module-attribute" { rootModuleId, moduleId?, attributeId, value } sets an attribute of a root module or of one of its sub modules
|
|
3566
|
+
* - "change-group-attribute" { groupId, attributeId, value } sets an attribute on every module of the group that has it
|
|
3567
|
+
* - "delete-group" { groupId } removes the group from the plan
|
|
3568
|
+
* - "delete-root-module" { rootModuleId } removes a root module; the rest of the group splits where it is no longer docked together
|
|
3569
|
+
* - "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
|
|
3570
|
+
* - "exchange-root-module" { groupId, rootModuleId, articleId } replaces a root module with an article of one root module, keeping its docking
|
|
3571
|
+
* - "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
|
|
3572
|
+
* The promise resolves once the planner has loaded the result, with the affected groups in the shape of the plan context,
|
|
3573
|
+
* and rejects with the reason when the payload is invalid or the operation cannot be performed.
|
|
3574
|
+
* @param command The operation.
|
|
3575
|
+
* @param payload The payload of the operation.
|
|
3576
|
+
*/
|
|
3577
|
+
externalObjectGroupOperation<C extends HiGroupOperation>(command: C, payload: HiGroupOperationPayloads[C]): Promise<HiGroupOperationResult>;
|
|
3561
3578
|
/**
|
|
3562
3579
|
* It generates a snapshot of the external object in the plan without saving any data.
|
|
3563
3580
|
* By default, the snapshot includes order data, room information, the plan XML, GLBs of the complete scene,
|
|
@@ -4213,6 +4230,7 @@ export declare interface GlueLogic {
|
|
|
4213
4230
|
createOrReplacePosDataFromArticleLayout(articleLayoutJson: ExternalObjectGroupLayout, layoutType: string, posArticles?: PosArticle[]): Promise<PosGroup | PosGroup[] | undefined>;
|
|
4214
4231
|
newPosDataFromGroup(posDataJson: PosGroup): Promise<PosGroup>;
|
|
4215
4232
|
getPlanContext(include?: HiPlanContextSection[]): Promise<HiPlanContext>;
|
|
4233
|
+
executeGroupOperation(command: string, payload: unknown): Promise<HiGroupOperationResult>;
|
|
4216
4234
|
getGroupDataForOrder(options: GetGroupDataForOrderOptions): Promise<HiOrderData | null>;
|
|
4217
4235
|
getMaterialUrl(materialId: string, groupOrModuleId?: string): string | null;
|
|
4218
4236
|
}
|
|
@@ -4378,6 +4396,25 @@ export declare const HI_CONTEXT_ACTION: {
|
|
|
4378
4396
|
readonly ISOLATION: "isolation";
|
|
4379
4397
|
};
|
|
4380
4398
|
|
|
4399
|
+
/**
|
|
4400
|
+
* Group operations change the groups of the plan context by command: a
|
|
4401
|
+
* command names the operation, its payload refers to the groups, root modules
|
|
4402
|
+
* and articles by the ids the plan context shows. `runGroupOperation`
|
|
4403
|
+
* validates the payload, performs the operation with the glue-logic features
|
|
4404
|
+
* behind `HiGroupOperations` and returns the affected groups in the
|
|
4405
|
+
* plan-context shape. A new command is one entry in `HI_GROUP_OPERATION`, one
|
|
4406
|
+
* payload type and one handler.
|
|
4407
|
+
*/
|
|
4408
|
+
export declare const HI_GROUP_OPERATION: {
|
|
4409
|
+
readonly CHANGE_MODULE_ATTRIBUTE: "change-module-attribute";
|
|
4410
|
+
readonly CHANGE_GROUP_ATTRIBUTE: "change-group-attribute";
|
|
4411
|
+
readonly DELETE_GROUP: "delete-group";
|
|
4412
|
+
readonly DELETE_ROOT_MODULE: "delete-root-module";
|
|
4413
|
+
readonly MERGE_ARTICLE_INTO_GROUP: "merge-article-into-group";
|
|
4414
|
+
readonly EXCHANGE_ROOT_MODULE: "exchange-root-module";
|
|
4415
|
+
readonly MERGE_GROUPS: "merge-groups";
|
|
4416
|
+
};
|
|
4417
|
+
|
|
4381
4418
|
export declare const HI_LOAD_OBJECT_REASON: {
|
|
4382
4419
|
readonly ADD_SUBARTICLE: "add_subarticle";
|
|
4383
4420
|
readonly MOVE_SUBARTICLE: "move_subarticle";
|
|
@@ -4414,8 +4451,15 @@ export declare interface HiApiOptions extends HomagIntelligenceSubscription {
|
|
|
4414
4451
|
language?: string;
|
|
4415
4452
|
}
|
|
4416
4453
|
|
|
4454
|
+
export declare interface HiArticlePick {
|
|
4455
|
+
articleId: string;
|
|
4456
|
+
attributes?: HiPlanRootAttribute[];
|
|
4457
|
+
}
|
|
4458
|
+
|
|
4417
4459
|
export declare type HiAttributeOptionsResult = CheckDropDownResult | CheckDropDownEntry[] | undefined;
|
|
4418
4460
|
|
|
4461
|
+
export declare type HiAttributeValue = string | boolean;
|
|
4462
|
+
|
|
4419
4463
|
export declare interface HiCallbacks {
|
|
4420
4464
|
/**
|
|
4421
4465
|
* Requests the calculation script for the given library ID.
|
|
@@ -4511,6 +4555,15 @@ export declare type HiContextAction = (typeof HI_CONTEXT_ACTION)[keyof typeof HI
|
|
|
4511
4555
|
*/
|
|
4512
4556
|
export declare const HIDDEN_INTERACTION_LIFECYCLE_METHODS: readonly ["startInteraction", "resumeInteraction", "endInteraction"];
|
|
4513
4557
|
|
|
4558
|
+
/** A free docking vector of a root of the group, and how the article docks to it. */
|
|
4559
|
+
export declare interface HiDockTarget {
|
|
4560
|
+
rootId: string;
|
|
4561
|
+
ownDockingVector: PosDock | string;
|
|
4562
|
+
dockingVector: PosDock | string;
|
|
4563
|
+
mode?: PosDockMode;
|
|
4564
|
+
offset?: HiPlanPosition3;
|
|
4565
|
+
}
|
|
4566
|
+
|
|
4514
4567
|
export declare interface HighlightHelper {
|
|
4515
4568
|
init(object: Object3D, camera: PerspectiveCamera): void;
|
|
4516
4569
|
setCamera(camera: PerspectiveCamera): void;
|
|
@@ -4524,6 +4577,48 @@ export declare interface HighlightHelper {
|
|
|
4524
4577
|
invalidate?(): void;
|
|
4525
4578
|
}
|
|
4526
4579
|
|
|
4580
|
+
export declare type HiGroupOperation = (typeof HI_GROUP_OPERATION)[keyof typeof HI_GROUP_OPERATION];
|
|
4581
|
+
|
|
4582
|
+
export declare interface HiGroupOperationPayloads {
|
|
4583
|
+
'change-module-attribute': {
|
|
4584
|
+
rootModuleId: string;
|
|
4585
|
+
moduleId?: string | null;
|
|
4586
|
+
attributeId: string;
|
|
4587
|
+
value: HiAttributeValue;
|
|
4588
|
+
};
|
|
4589
|
+
'change-group-attribute': {
|
|
4590
|
+
groupId: string;
|
|
4591
|
+
attributeId: string;
|
|
4592
|
+
value: HiAttributeValue;
|
|
4593
|
+
};
|
|
4594
|
+
'delete-group': {
|
|
4595
|
+
groupId: string;
|
|
4596
|
+
};
|
|
4597
|
+
'delete-root-module': {
|
|
4598
|
+
rootModuleId: string;
|
|
4599
|
+
};
|
|
4600
|
+
'merge-article-into-group': HiArticlePick & {
|
|
4601
|
+
groupId: string;
|
|
4602
|
+
dockTo: HiDockTarget;
|
|
4603
|
+
};
|
|
4604
|
+
'exchange-root-module': {
|
|
4605
|
+
groupId: string;
|
|
4606
|
+
rootModuleId: string;
|
|
4607
|
+
articleId: string;
|
|
4608
|
+
};
|
|
4609
|
+
'merge-groups': {
|
|
4610
|
+
targetGroupId: string;
|
|
4611
|
+
groupIds: string[];
|
|
4612
|
+
};
|
|
4613
|
+
}
|
|
4614
|
+
|
|
4615
|
+
export declare interface HiGroupOperationResult {
|
|
4616
|
+
command: HiGroupOperation;
|
|
4617
|
+
groups: HiPlanGroup[];
|
|
4618
|
+
removedGroupIds: string[];
|
|
4619
|
+
changedModuleIds?: string[];
|
|
4620
|
+
}
|
|
4621
|
+
|
|
4527
4622
|
export declare type HiLoadObjectReason = (typeof HI_LOAD_OBJECT_REASON)[keyof typeof HI_LOAD_OBJECT_REASON];
|
|
4528
4623
|
|
|
4529
4624
|
export declare interface HiObjectSelectionApi {
|
|
@@ -4669,7 +4764,6 @@ export declare interface HiPlanGroup {
|
|
|
4669
4764
|
position: HiPlanGroupPosition;
|
|
4670
4765
|
attributes?: PosModuleAttribute[];
|
|
4671
4766
|
roots: HiPlanRoot[];
|
|
4672
|
-
logMessages: PosErrorMsg[];
|
|
4673
4767
|
}
|
|
4674
4768
|
|
|
4675
4769
|
export declare interface HiPlanGroupPosition {
|
|
@@ -4726,7 +4820,6 @@ export declare interface HiPlanRoot {
|
|
|
4726
4820
|
id: string;
|
|
4727
4821
|
imageUrl?: string;
|
|
4728
4822
|
}>;
|
|
4729
|
-
logMessages?: PosErrorMsg[];
|
|
4730
4823
|
}
|
|
4731
4824
|
|
|
4732
4825
|
export declare interface HiPlanRootAttribute {
|
|
@@ -9381,6 +9474,16 @@ export declare class RaycastHelper extends EventDispatcher<Record<RAYCAST_EVENT,
|
|
|
9381
9474
|
private _findHover;
|
|
9382
9475
|
private _intersection;
|
|
9383
9476
|
private _intersect;
|
|
9477
|
+
/**
|
|
9478
|
+
* Components are hit through their bounding boxes, and the box of a component
|
|
9479
|
+
* encloses the boxes of the sub components within it, so the nearest hit of a
|
|
9480
|
+
* priority is usually the enclosing one and a click on a sub component would
|
|
9481
|
+
* never reach it. Move the innermost hit nested within that nearest one to the
|
|
9482
|
+
* front. A sub component counts as nested when it lies mostly within, as it
|
|
9483
|
+
* can protrude from the box around it. Hits that are not nested keep their
|
|
9484
|
+
* distance order, so unrelated objects are unaffected.
|
|
9485
|
+
*/
|
|
9486
|
+
private _preferNestedComponent;
|
|
9384
9487
|
intersectAtPosition(position: Position2): RoomleEventedIntersection | null;
|
|
9385
9488
|
private _findObjectWithHandler;
|
|
9386
9489
|
private _onDragStart;
|
|
@@ -9466,8 +9569,9 @@ export declare class RoomDesignerApi implements RoomDesignerRequests {
|
|
|
9466
9569
|
selectRoot(rootModuleId: string): Promise<void>;
|
|
9467
9570
|
selectModule(rootModuleId: string, subModuleId: string): Promise<void>;
|
|
9468
9571
|
openCloseGroup(groupOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean): Promise<void>;
|
|
9469
|
-
deleteGroup(groupId: string): void
|
|
9470
|
-
deleteRootModule(rootModuleId: string): void
|
|
9572
|
+
deleteGroup(groupId: string): Promise<void>;
|
|
9573
|
+
deleteRootModule(rootModuleId: string): Promise<void>;
|
|
9574
|
+
mergeGroups(groupIds: string[]): Promise<void>;
|
|
9471
9575
|
getPosDataOfAllGroups(): Promise<PosGroup[]>;
|
|
9472
9576
|
getRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
9473
9577
|
saveExternalObjectSnapshot(): Promise<ExternalObjectSnapshotSaveResult | null>;
|
|
@@ -9483,8 +9587,9 @@ export declare interface RoomDesignerRequests {
|
|
|
9483
9587
|
selectRoot(rootModuleId: string): Promise<void>;
|
|
9484
9588
|
selectModule(rootModuleId: string, subModuleId: string): Promise<void>;
|
|
9485
9589
|
openCloseGroup(groupOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean): void;
|
|
9486
|
-
deleteGroup(groupId: string): void
|
|
9487
|
-
deleteRootModule(rootModuleId: string): void
|
|
9590
|
+
deleteGroup(groupId: string): Promise<void>;
|
|
9591
|
+
deleteRootModule(rootModuleId: string): Promise<void>;
|
|
9592
|
+
mergeGroups(groupIds: string[]): Promise<void>;
|
|
9488
9593
|
getPosDataOfAllGroups(): Promise<PosGroup[]>;
|
|
9489
9594
|
getRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
9490
9595
|
saveExternalObjectSnapshot(): Promise<ExternalObjectSnapshotSaveResult | null>;
|
|
@@ -10962,13 +11067,15 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
10962
11067
|
}>;
|
|
10963
11068
|
getExternalObjectValidSubArticles(posGroupId?: string): PosArticle[];
|
|
10964
11069
|
selectExternalObjectSubArticle(subArticleId: string): void;
|
|
10965
|
-
|
|
11070
|
+
_mergeExternalObjects(groupIds: string[]): Promise<void>;
|
|
11071
|
+
removeExternalObject(groupOrRootModuleId: string): Promise<void>;
|
|
10966
11072
|
selectExternalObject(groupOrRootModuleId: string, subModuleId: string | null, contextAction: HiContextAction): Promise<void>;
|
|
10967
11073
|
highlightExternalObject(groupOrRootModuleId: string, subModuleId: string | null): Promise<void>;
|
|
10968
11074
|
openOrCloseGeometryOfExternalObject(groupIdOrRootModuleId: string, _subModuleId: string | null, open: boolean, animate: boolean): void;
|
|
10969
11075
|
_selectExternalObjectGroup(groupId: string, switchToPlanner: boolean): Promise<void>;
|
|
10970
11076
|
getExternalObjectGroups(): Promise<object[]>;
|
|
10971
11077
|
getExternalObjectPlanContext(include?: HiPlanContextSection[]): Promise<HiPlanContext>;
|
|
11078
|
+
externalObjectGroupOperation<C extends HiGroupOperation>(command: C, payload: HiGroupOperationPayloads[C]): Promise<HiGroupOperationResult>;
|
|
10972
11079
|
getExternalRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
|
|
10973
11080
|
/**
|
|
10974
11081
|
* Highlights a product in the planner.
|
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-DbOsSpKq.mjs";
|
|
2
2
|
import { i as a, t as o } from "./kernel-BWfRHWkW.mjs";
|
|
3
|
-
import { Et as s, St as c } from "./threejs-utils-
|
|
3
|
+
import { Et as s, St as c } from "./threejs-utils-DHTRY4yW.mjs";
|
|
4
4
|
import { D as l, g as u } from "./common-utils-CNGLvAo_.mjs";
|
|
5
|
-
import { F as d, G as f, J as p, K as m, M as h, N as g, P as _, S as v,
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { n as
|
|
9
|
-
import { t as
|
|
10
|
-
export { o as CONFIGURATION_TYPE, c as CORE_EDGE_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE,
|
|
5
|
+
import { F as d, G as f, J as p, K as m, M as h, N as g, P as _, S as v, V as y, Y as b, b as x, dt as S, ft as C, ht as w, j as T, k as E, lt as D, q as O, t as k, u as A, ut as j, x as M, y as N, z as P } from "./roomle-sdk-CN9TqA78.mjs";
|
|
6
|
+
import { t as F } from "./configurator-i-Zl5omd.mjs";
|
|
7
|
+
import { t as I } from "./planner-BOrph7M7.mjs";
|
|
8
|
+
import { n as L, t as R } from "./glb-viewer-C1-vP2Vq.mjs";
|
|
9
|
+
import { t as z } from "./api-Woc5NOM1.mjs";
|
|
10
|
+
export { o as CONFIGURATION_TYPE, c as CORE_EDGE_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, F as Configurator, T as FloorPlanElementViewModel, R as GlbViewer, P as HI_CONTEXT_ACTION, y as HI_GROUP_OPERATION, v as MeasurementLinePlanElementViewModel, N as PLAN_ELEMENT_CHANGE_TYPES, d as PlanElementViewModel, _ as PlanObjectViewModel, I as Planner, D as RapiAccess, j as RapiInvalidIdError, S as RapiOfflineError, z as RoomDesignerApi, E as RoomleConfigurator, L as RoomleGLBViewer, w as RoomleLightSource, A as RoomlePlanner, k as RoomleSdk, g as StaticPlanObjectViewModel, h as WallPlanElementViewModel, f as createExtObj, b as createExtObjId, u as download, C as getCatalogIdFromConfigurationHash, m as isExtObjId, O as isExternalObject, x as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, e as isPlanSnapshotId, M as isSafari, l as md5Hash, p as removeExtObjIdPrefix };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, _t as t, bt as n, gt as r, ht as i, vt as a, yt as o } from "./threejs-utils-DHTRY4yW.mjs";
|
|
2
2
|
import { Ai as s, Ar as c, Bt as l, Di as u, Dn as d, E as f, Ei as p, Er as m, Gr as h, Ht as g, J as ee, Jt as _, Kn as v, Kr as te, Pr as ne, S as y, Ti as b, V as re, Y as ie, Z as x, _i as S, _n as ae, at as oe, ci as se, cn as C, ct as w, dn as ce, f as le, gi as T, gn as ue, h as de, hn as fe, ht as pe, ii as me, jn as E, kn as he, li as ge, ln as D, mt as _e, pn as ve, st as ye, tn as be, un as O, vn as k, w as A, xn as j, y as xe, yi as Se, z as Ce } from "./three.core-BTUCraWz.mjs";
|
|
3
3
|
import { r as we } from "./three.module-DUSFrLM6.mjs";
|
|
4
4
|
import { C as M, D as Te, E as Ee, O as N, S as P, T as De, _ as Oe, a as ke, b as F, d as Ae, f as I, g as L, h as je, i as Me, l as R, m as Ne, n as Pe, o as Fe, p as Ie, r as Le, s as Re, t as ze, u as z, v as Be, w as Ve, x as B, y as V } from "./shading-settings-DJ4kY2Cn.mjs";
|
|
@@ -738,7 +738,7 @@ var U = {
|
|
|
738
738
|
uvTransform: P
|
|
739
739
|
}), this.separateDeptRenderTarget);
|
|
740
740
|
}
|
|
741
|
-
}, st = class extends
|
|
741
|
+
}, st = class extends r {
|
|
742
742
|
set groundDepthWrite(e) {
|
|
743
743
|
this._groundDepthWrite = e;
|
|
744
744
|
}
|
|
@@ -750,7 +750,7 @@ var U = {
|
|
|
750
750
|
this.addToCache(e, { visible: !1 });
|
|
751
751
|
}
|
|
752
752
|
addMesh(e) {
|
|
753
|
-
e.userData.isFloor ? this.addToCache(e, { visible: this._groundDepthWrite }) : e.visible && (
|
|
753
|
+
e.userData.isFloor ? this.addToCache(e, { visible: this._groundDepthWrite }) : e.visible && (n(e.material, .7) || o(e.material)) && this.addToCache(e, { visible: !1 });
|
|
754
754
|
}
|
|
755
755
|
addObject(e) {
|
|
756
756
|
e.name === "dimensioning" && this.addToCache(e, { visible: !1 });
|
|
@@ -1152,7 +1152,7 @@ var U = {
|
|
|
1152
1152
|
UNLIT: "unlit",
|
|
1153
1153
|
EMISSIVE: "emissive",
|
|
1154
1154
|
SHADOW: "shadow"
|
|
1155
|
-
}, yt = class e extends
|
|
1155
|
+
}, yt = class e extends r {
|
|
1156
1156
|
static {
|
|
1157
1157
|
this.useModifiedMaterial = !0;
|
|
1158
1158
|
}
|
|
@@ -1197,7 +1197,7 @@ var U = {
|
|
|
1197
1197
|
e.isLight && !e.userData.shadowLightSource && this.addToCache(e, { visible: !1 });
|
|
1198
1198
|
}
|
|
1199
1199
|
_setMeshMaterialAndVisibility(e) {
|
|
1200
|
-
e.userData.isFloor ? this._setMeshShadowFloorMaterial(e) : e.material && e.receiveShadow && !Array.isArray(e.material) && !(e.material.transparent === !0 && e.material.opacity < .9) ? this._setShadowMaterialForOpaqueObject(e) :
|
|
1200
|
+
e.userData.isFloor ? this._setMeshShadowFloorMaterial(e) : e.material && e.receiveShadow && !Array.isArray(e.material) && !(e.material.transparent === !0 && e.material.opacity < .9) ? this._setShadowMaterialForOpaqueObject(e) : n(e.material, .9) ? this.addToCache(e, { visible: !1 }) : e.receiveShadow ? this.addToCache(e, {
|
|
1201
1201
|
castShadow: !1,
|
|
1202
1202
|
material: this._receiveShadowMaterial
|
|
1203
1203
|
}) : this.addToCache(e, { visible: !1 });
|
|
@@ -2240,7 +2240,7 @@ var U = {
|
|
|
2240
2240
|
get debugOutput() {
|
|
2241
2241
|
return this._sceneRenderer.debugOutput;
|
|
2242
2242
|
}
|
|
2243
|
-
constructor(
|
|
2243
|
+
constructor(t, n) {
|
|
2244
2244
|
this.materialsNeedUpdate = !0, this._passRenderer = new Ie(), this._outlinePass = null, this._debugPass = null, this._cameraUpdate = new I(), this._cameraChanged = !0, this._noUpdateNeededCount = 0, this._noOStaticFrames = 0, this._maxSamples = 1, this._passUpdateStates = {
|
|
2245
2245
|
updateGroundReflection: !1,
|
|
2246
2246
|
updateGBuffer: !1,
|
|
@@ -2248,20 +2248,20 @@ var U = {
|
|
|
2248
2248
|
updateShadowAndAoPass: !1,
|
|
2249
2249
|
updateOutlinePass: !1,
|
|
2250
2250
|
updateDebugPass: !1
|
|
2251
|
-
}, this.aoPassMapTexture = null, this._lutMap = /* @__PURE__ */ new Map(), this._lutPassParameters = Yt, this.lutPassNeedsUpdate = !1, this._renderToRenderTarget = !1, this._creator_ =
|
|
2252
|
-
let
|
|
2251
|
+
}, this.aoPassMapTexture = null, this._lutMap = /* @__PURE__ */ new Map(), this._lutPassParameters = Yt, this.lutPassNeedsUpdate = !1, this._renderToRenderTarget = !1, this._creator_ = t, this._sceneRenderer = n, this._maxSamples = e(this._sceneRenderer.renderer);
|
|
2252
|
+
let r = this._sceneRenderer.linearAoFilter, i = r ? this._maxSamples : 0, a = r ? this._maxSamples : 0;
|
|
2253
2253
|
this._sceneRenderPass = new Rt(this), this._bakedGroundContactShadowPass = new tt(this, this._sceneRenderer.renderer, this._sceneRenderer.groundGroup, { sharedShadowGroundPlane: this._sceneRenderer.shadowAndAoGroundPlane }), this._gBufferRenderPass = new ot(this, {
|
|
2254
2254
|
shared: !0,
|
|
2255
2255
|
capabilities: this._sceneRenderer.renderer.capabilities,
|
|
2256
2256
|
width: this._sceneRenderer.width,
|
|
2257
2257
|
height: this._sceneRenderer.height,
|
|
2258
|
-
samples:
|
|
2259
|
-
textureMinificationFilter:
|
|
2260
|
-
textureMagnificationFilter:
|
|
2258
|
+
samples: i,
|
|
2259
|
+
textureMinificationFilter: r ? _ : j,
|
|
2260
|
+
textureMagnificationFilter: r ? _ : j
|
|
2261
2261
|
}), this._groundReflectionPass = new ct(this, this._sceneRenderer.width, this._sceneRenderer.height, this._maxSamples, {}), this._screenSpaceShadowMapPass = new vt(this, new b(this._sceneRenderer.width, this._sceneRenderer.height), {
|
|
2262
2262
|
samples: a,
|
|
2263
2263
|
alwaysUpdate: !1
|
|
2264
|
-
}), this._shadowAndAoPass = new X(this, this._sceneRenderer.width, this._sceneRenderer.height,
|
|
2264
|
+
}), this._shadowAndAoPass = new X(this, this._sceneRenderer.width, this._sceneRenderer.height, i), this._lutPass = new Wt({
|
|
2265
2265
|
lut: void 0,
|
|
2266
2266
|
intensity: 1
|
|
2267
2267
|
}), this._outputPass = new Jt();
|
|
@@ -2453,8 +2453,8 @@ var Zt = {
|
|
|
2453
2453
|
get shadowAndAoGroundPlane() {
|
|
2454
2454
|
return this._shadowAndAoGroundPlane;
|
|
2455
2455
|
}
|
|
2456
|
-
constructor(
|
|
2457
|
-
this.debugOutput = "off", this.outputColorSpace = "", this.toneMapping = "", this.linearAoFilter = !0, this.environmentLights = !1, this.enableObjectSelection = !0, this.groundLevel = 0, this.uiInteractionMode = !1, this.width = 0, this.height = 0, this.boundingVolume = new Ne(), this.boundingVolumeSet = !1, this.renderCacheManager = new
|
|
2456
|
+
constructor(e, n, r, s, c) {
|
|
2457
|
+
this.debugOutput = "off", this.outputColorSpace = "", this.toneMapping = "", this.linearAoFilter = !0, this.environmentLights = !1, this.enableObjectSelection = !0, this.groundLevel = 0, this.uiInteractionMode = !1, this.width = 0, this.height = 0, this.boundingVolume = new Ne(), this.boundingVolumeSet = !1, this.renderCacheManager = new t(), this.selectedObjects = [], this.groundGroup = new _e(), this._shadingType = ze.DEFAULT, this._qualityLevel = Zt.HIGHEST, this._qualityMap = /* @__PURE__ */ new Map(), this._customShadingParameters = null, this._creator_ = e, this.width = r, this.height = s, this.linearAoFilter = c ?? !0, this.renderer = n, this.renderCacheManager.registerCache("inivisibleGround", new a((e) => e === this.groundGroup)), this.renderCacheManager.registerCache("groundReflection", new a((e) => e === this.groundGroup || e.name === "dimensioning" ? !0 : !!(e instanceof D && o(e.material)))), this.renderCacheManager.registerCache("debug", new a()), this.renderCacheManager.registerCache("floorDepthWrite", new i((e) => e.userData?.isFloor)), this._shadowAndAoGroundPlane = new W(null), this.groundGroup.rotateX(-Math.PI / 2), this._renderPassManager = new Xt(e, this), this.outlineRenderer = new $e(this._renderPassManager, null, {}), this.parameters = {
|
|
2458
2458
|
gBufferRenderTargetParameters: this.gBufferRenderPass.parameters,
|
|
2459
2459
|
bakedGroundContactShadowParameters: this.bakedGroundContactShadowPass.parameters,
|
|
2460
2460
|
screenSpaceShadowMapParameters: this.screenSpaceShadowMapPass.parameters,
|
|
@@ -2587,4 +2587,4 @@ Ge([We, Ue("design:type", Object)], Qt.prototype, "_initData", void 0);
|
|
|
2587
2587
|
//#endregion
|
|
2588
2588
|
export { ft as a, Ke as c, Nt as i, Qt as n, J as o, Q as r, U as s, Zt as t };
|
|
2589
2589
|
|
|
2590
|
-
//# sourceMappingURL=scene-renderer-
|
|
2590
|
+
//# sourceMappingURL=scene-renderer-DGSgD6mp.mjs.map
|