@roomle/web-sdk 5.0.0-alpha.1 → 5.0.0-alpha.2
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-hQ0uOklW.mjs → api-_uapNMXJ.mjs} +2 -2
- package/lib/{api-hQ0uOklW.mjs.map → api-_uapNMXJ.mjs.map} +1 -1
- package/lib/asset-loader.worker-eqHzNAwa.mjs.map +1 -1
- package/lib/budgeteer.sw-BUMElkO1.mjs.map +1 -1
- package/lib/{configurator-CVg8_f9w.mjs → configurator-775XGXt7.mjs} +3 -3
- package/lib/{configurator-CVg8_f9w.mjs.map → configurator-775XGXt7.mjs.map} +1 -1
- package/lib/configurator-AsfKvlbu.mjs +2 -0
- package/lib/glb-viewer-BxoR_l9C.mjs +2 -0
- package/lib/{glb-viewer-Csx9GwVi.mjs → glb-viewer-zeePqoAF.mjs} +3 -3
- package/lib/{glb-viewer-Csx9GwVi.mjs.map → glb-viewer-zeePqoAF.mjs.map} +1 -1
- package/lib/{homag-intelligence-Dh4VWYH6.mjs → homag-intelligence-AJ5cG6sO.mjs} +3 -3
- package/lib/{homag-intelligence-Dh4VWYH6.mjs.map → homag-intelligence-AJ5cG6sO.mjs.map} +1 -1
- package/lib/{material-viewer-DqUJzRXN.mjs → material-viewer-A-EWqr8E.mjs} +3 -3
- package/lib/{material-viewer-DqUJzRXN.mjs.map → material-viewer-A-EWqr8E.mjs.map} +1 -1
- package/lib/{packages-Bz8iWtUY.mjs → packages-DQIp7goa.mjs} +5 -5
- package/lib/{packages-Bz8iWtUY.mjs.map → packages-DQIp7goa.mjs.map} +1 -1
- package/lib/planner-B8g2qQA_.mjs +2 -0
- package/lib/{planner-CpcR6z07.mjs → planner-COj-8vjv.mjs} +3 -3
- package/lib/{planner-CpcR6z07.mjs.map → planner-COj-8vjv.mjs.map} +1 -1
- package/lib/roomle-headless.d.ts +20 -0
- package/lib/roomle-headless.js +7 -7
- package/lib/roomle-renderer-FUqNfNIf.mjs.map +1 -1
- package/lib/{roomle-sdk-BCmaueGp.mjs → roomle-sdk-BfbERUK3.mjs} +44 -18
- package/lib/roomle-sdk-BfbERUK3.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +20 -0
- package/lib/roomle-sdk.js +6 -6
- package/lib/{script-loader-Dmcvx-Qu.mjs → script-loader-VBJ59aAf.mjs} +2 -2
- package/lib/{script-loader-Dmcvx-Qu.mjs.map → script-loader-VBJ59aAf.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-CRWZtE-S.mjs → tools-core-Dj7M_Fqz.mjs} +3 -3
- package/lib/{tools-core-CRWZtE-S.mjs.map → tools-core-Dj7M_Fqz.mjs.map} +1 -1
- package/package.json +2 -2
- package/lib/configurator-BM0nny5l.mjs +0 -2
- package/lib/glb-viewer-gEdln_PJ.mjs +0 -2
- package/lib/planner-g06Phdjc.mjs +0 -2
- package/lib/roomle-sdk-BCmaueGp.mjs.map +0 -1
package/lib/roomle-headless.d.ts
CHANGED
|
@@ -437,6 +437,11 @@ export declare class CameraControl3D extends CameraControl {
|
|
|
437
437
|
private _zoomSpeed;
|
|
438
438
|
minDistance: number;
|
|
439
439
|
maxDistance: number;
|
|
440
|
+
/**
|
|
441
|
+
* When enabled the camera is not stopped by the bounds it was fitted to, it can be
|
|
442
|
+
* zoomed in until {@link _zoomDistance} - see the `configuratorZoom` init param.
|
|
443
|
+
*/
|
|
444
|
+
configuratorZoom: boolean;
|
|
440
445
|
resetDistance: number;
|
|
441
446
|
minPolarAngle: number;
|
|
442
447
|
maxPolarAngle: number;
|
|
@@ -4318,6 +4323,7 @@ export declare class InitData implements Context, Omit<InitDataDefinition, 'colo
|
|
|
4318
4323
|
readonly: boolean;
|
|
4319
4324
|
externalObjectSettings: ExternalObjectApiConfiguration;
|
|
4320
4325
|
plannerIsolationConfigurator: boolean;
|
|
4326
|
+
configuratorZoom: boolean;
|
|
4321
4327
|
/**
|
|
4322
4328
|
* If true, the callbacks will only be called if the geometry is ready.
|
|
4323
4329
|
* Before RML-8368 false was the default. For more info see there
|
|
@@ -6066,6 +6072,14 @@ export declare interface PlannerInitData {
|
|
|
6066
6072
|
* The default value is true.
|
|
6067
6073
|
*/
|
|
6068
6074
|
dockInRoom?: boolean;
|
|
6075
|
+
/**
|
|
6076
|
+
* @description If set to true the 3D planner camera zooms in as close to objects as the configurator does,
|
|
6077
|
+
* instead of stopping at the bounds of the plan. Objects which would be cut by the camera near plane are
|
|
6078
|
+
* hidden while they are cut.
|
|
6079
|
+
* @default false
|
|
6080
|
+
* usage: configuratorZoom=false
|
|
6081
|
+
*/
|
|
6082
|
+
configuratorZoom?: boolean;
|
|
6069
6083
|
}
|
|
6070
6084
|
|
|
6071
6085
|
export declare class PlannerKernelAccess extends ConfiguratorKernelAccess {
|
|
@@ -6495,6 +6509,7 @@ export declare class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
6495
6509
|
private _handleMeasurementLineDraggablePoints;
|
|
6496
6510
|
resetConfiguratorContext(reason: CancelSelectionReasons): void;
|
|
6497
6511
|
protected _setupScene(offset?: CanvasOffset, transparent?: boolean): Promise<void>;
|
|
6512
|
+
protected _changeCameraBehaviour(cameraBehaviour: CameraBehaviour): void;
|
|
6498
6513
|
protected onBeforeRender(): void;
|
|
6499
6514
|
private _resetCameraFacingVisibility;
|
|
6500
6515
|
private _forceWallsAndCeiling;
|
|
@@ -6895,6 +6910,9 @@ export declare class PlanViewModel extends ConfiguratorViewModel implements Plan
|
|
|
6895
6910
|
private _wallAtticsGroup;
|
|
6896
6911
|
private _helpLineGroup;
|
|
6897
6912
|
private _plannerSceneEventHandler;
|
|
6913
|
+
private _cameraHideSphere;
|
|
6914
|
+
private readonly _cameraHideViewModelGroups;
|
|
6915
|
+
private _objectsHiddenByCamera;
|
|
6898
6916
|
private _cameraType;
|
|
6899
6917
|
private _nodeZoom;
|
|
6900
6918
|
private _latestWallPlanObjectViewModel;
|
|
@@ -7015,6 +7033,8 @@ export declare class PlanViewModel extends ConfiguratorViewModel implements Plan
|
|
|
7015
7033
|
getBoundingBoxFromRuntimeIds(runtimeIds: number[]): Box3;
|
|
7016
7034
|
hideAllExceptRuntimeIds(runtimeIds: number[]): void;
|
|
7017
7035
|
hideAllExcept(planObjectId: number): void;
|
|
7036
|
+
hideObjectsCutByCamera(camera: PerspectiveCamera): boolean;
|
|
7037
|
+
restoreObjectsHiddenByCamera(): boolean;
|
|
7018
7038
|
showAll(): void;
|
|
7019
7039
|
planHistoryStateChanged(): void;
|
|
7020
7040
|
setNodeVisibility(visible: boolean): 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-DQIp7goa.mjs";
|
|
2
2
|
import { i as a, t as o } from "./kernel-BWfRHWkW.mjs";
|
|
3
3
|
import { bt as s, gt as c } from "./threejs-utils-D5DMIzUO.mjs";
|
|
4
4
|
import { Si as l, m as u, nt as d } from "./three.core-0KaTx8dm.mjs";
|
|
5
5
|
import { i as f } from "./decorate-CjaqqbUP.mjs";
|
|
6
6
|
import { V as p } from "./common-utils-CyQUubmw.mjs";
|
|
7
|
-
import { A as m, F as h, G as ee, J as te, K as ne, M as re, N as ie, P as ae, S as oe, V as se, W as ce, a as g, at as le, b as ue, ct as de, dt as fe, i as pe, j as me, k as he, l as ge, lt as _e, m as ve, mt as ye, o as _, ot as v, q as y, r as b, s as x, st as S, t as C, u as w, ut as T, x as E, y as D, z as O } from "./roomle-sdk-
|
|
7
|
+
import { A as m, F as h, G as ee, J as te, K as ne, M as re, N as ie, P as ae, S as oe, V as se, W as ce, a as g, at as le, b as ue, ct as de, dt as fe, i as pe, j as me, k as he, l as ge, lt as _e, m as ve, mt as ye, o as _, ot as v, q as y, r as b, s as x, st as S, t as C, u as w, ut as T, x as E, y as D, z as O } from "./roomle-sdk-BfbERUK3.mjs";
|
|
8
8
|
import { n as k } from "./roomle-renderer-FUqNfNIf.mjs";
|
|
9
|
-
import { n as A } from "./script-loader-
|
|
10
|
-
import { t as j } from "./configurator-
|
|
11
|
-
import { t as M } from "./planner-
|
|
12
|
-
import { n as N, t as P } from "./glb-viewer-
|
|
13
|
-
import { t as be } from "./api-
|
|
9
|
+
import { n as A } from "./script-loader-VBJ59aAf.mjs";
|
|
10
|
+
import { t as j } from "./configurator-775XGXt7.mjs";
|
|
11
|
+
import { t as M } from "./planner-COj-8vjv.mjs";
|
|
12
|
+
import { n as N, t as P } from "./glb-viewer-zeePqoAF.mjs";
|
|
13
|
+
import { t as be } from "./api-_uapNMXJ.mjs";
|
|
14
14
|
import { t as xe } from "./roomle-headless-setup-DbO_rLjK.mjs";
|
|
15
15
|
import { createRequire as Se } from "module";
|
|
16
16
|
//#region packages/headless-core/src/headless-tween-stub.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roomle-renderer-FUqNfNIf.mjs","names":[],"sources":["../../packages/common-core/src/utils/shims.ts","../../packages/common-core/src/utils/fps-counter.ts","../../packages/common-core/src/roomle-renderer.ts"],"sourcesContent":["import type { ROOMLE_COLORS } from './common-utils';\nimport type {\n HexColorNumber,\n HexColorString,\n RapiId,\n RapiServerUrlType,\n} from '../../../typings/rapi-types';\nimport type { CAMERA_TYPE } from '../cameracontrol/camera-type';\nimport type { Enumify } from '#/common/src/utils/types';\nimport type { ROOMLE_HIGHLIGHTNG } from './common-utils';\nimport type { DefaultEnvironmentSceneType } from '../webgl/renderer/environment-scene';\nimport type {\n CustomShadingParameters,\n SceneShadingType,\n} from '../webgl/renderer/shading-settings';\nimport type { Color } from 'three';\nimport type { HomagIntelligenceInitData } from '../../../homag-intelligence/src/hi-api-types';\n\nexport const enum WINDOW_EVENT {\n RESIZE = 'resize',\n KEY_DOWN = 'keydown',\n KEY_UP = 'keyup',\n VISIBILITY_CHANGE = 'visibilitychange',\n}\n\nexport const DRAW_PREVIEW_MODES = {\n DEFAULT: 'default',\n VECTOR: 'vector',\n} as const;\n\nexport const WEBGPU_TONE_MAPPINGS = {\n NONE: 'none',\n LINEAR: 'linear',\n REINHARD: 'reinhard',\n CINEON: 'cineon',\n ACES_FILMIC: 'acesFilmic',\n AGX: 'agx',\n NEUTRAL: 'neutral',\n} as const;\n\nexport type WebGpuToneMapping = Enumify<typeof WEBGPU_TONE_MAPPINGS>;\n\n/**\n * Init data parameters which are not context specific\n */\nexport interface GlobalInitDataDefinition {\n /**\n * @description locale to use for the\n * embedding instance\n */\n locale?: string;\n\n /**\n * @internal\n * @deprecated\n * @description Can be used for content testing\n */\n overrideTenant?: number;\n\n /**\n * @description Set country to use for the Roomle price service. If not used the customer IP address will be used to determine the location. usage: overrideCountry=de\n */\n overrideCountry?: string | null;\n\n /**\n * @internal\n * @description Set which RAPI (Roomle API) backend should be used options: live, test\n */\n overrideRapi?: RapiServerUrlType;\n\n /**\n * @description The id which should be used for this embedding instance. When this id is set all InitData parameter can be set and changed in Rubens Admin. This is the way we recommend to set init data params. Ask your Roomle contact for your configuratorId.\n */\n configuratorId?: string;\n\n /**\n * @description Set which RAPI (Roomle API) backend should be used usage: customApiUrl=https://www.roomle.com/api/v2\n */\n customApiUrl?: string;\n\n /**\n * @internal\n * @description Can be set to true if started as an end-to-end test. This will disable post-processing\n */\n e2e?: boolean;\n\n /**\n * @internal\n * @description If set to true, the Roomle Renderer is used for perspective and top images this should help the E2E tests of Joe to migrate from comparing Roomle Renderer images to Three.js Renderer images\n */\n e2eRoomleRendererForImages?: boolean;\n\n /**\n * @internal\n * @description When loading a plan, the external objects from the plan XML are discarded\n */\n discardExternalObjectsWhenLoadingPlan?: boolean;\n\n /**\n * @description If set to true, the plan will be locked and no changes can be made to walls, floors or construction elements.\n * @default false\n */\n lockPlan?: boolean;\n\n /**\n * @description If set to true, the plan is in read-only mode. Hides all editing UI and prevents interaction with plan elements.\n * Automatically sets edit=false and lockPlan=true and saveToIdb=false\n * @default false\n */\n readonly?: boolean;\n}\n\nexport interface WebGpuTopLightConfigDefinition {\n /**\n * @description Intensity (brightness) of the WebGPU top light.\n * @default 1\n */\n intensity?: number;\n\n /**\n * @description Intensity of the shadow cast by the top light.\n * 0 means no shadow, 1 means a fully opaque shadow.\n * @default 1\n */\n shadowIntensity?: number;\n\n /**\n * @description Softness (blur radius) of the top light's shadow edges.\n * Higher values produce softer shadows.\n * @default 1.1\n */\n shadowRadius?: number;\n}\n\nexport interface WebGpuGroundReflectionConfigDefinition {\n /**\n * @description Enables or disables the ground reflection entirely.\n * When disabled the floor still receives shadows but does not render a reflection,\n * which also avoids the extra reflection render pass.\n * @default true\n */\n enabled?: boolean;\n\n /**\n * @description Strength of the ground reflection.\n * 0 means no reflection, 1 means a full mirror-like reflection.\n * @default 0.1\n */\n intensity?: number;\n\n /**\n * @description Depth at which the reflection starts to fade out.\n * @default 0.05\n */\n startFadeout?: number;\n\n /**\n * @description Depth at which the reflection is fully faded out.\n * @default 0.15\n */\n endFadeout?: number;\n}\n\nexport interface WebGpuFogConfigDefinition {\n /**\n * @description If true, a fog is added to the scene in webGPU mode.\n * This is mainly so you cant see the outer edge of the\n * floor (which makes it blends smoothly into the background).\n * This fog exists in a cylindrical shape around the origin and the\n * farBlend and nearBlend parameters indirectly control the radius\n * at which the fog starts and ends.\n * @default true\n */\n enabled?: boolean;\n\n /**\n * @description Radial distance from the start of the fog to the end of the fog.\n * This creates a smooth transition from full fog to no fog.\n * Larger values produce a softer, more gradual fog transition.\n * @default 7\n */\n nearBlend?: number;\n\n /**\n * @description Distance from the far end of the camera view/floor boundaries\n * at which the fully opaque fog should start to appear.\n * Larger values move the fully opaque(/end of the) fog\n * closer to the center of the scene.\n * @default 10\n */\n farBlend?: number;\n}\n\nexport interface WebGpuSSGIConfigDefinition {\n /**\n * @description Radius of the denoising filter applied to the indirect lighting.\n * Higher values produce a stronger denoising effect, which can help reduce noise\n * in the indirect lighting but may also blur fine details.\n * @default 20\n */\n giDenoiseRadius?: number;\n\n /**\n * @description Radius of the denoising filter applied to the ambient occlusion (AO) pass.\n * Higher values produce a stronger denoising effect, which can help reduce noise\n * in the AO but may also blur fine details.\n * @default 10\n */\n aoDenoiseRadius?: number;\n}\n\nexport interface WebGpuConfigDefinition {\n /**\n * @description If true, the initial webgpu quality level is autodetected based on\n * a benchmark of the graphics hardware. If false, the default quality level is used.\n * @default true\n */\n autoDetectQualityLevel?: boolean;\n\n /**\n * @description This can be used to configure the lower bound of webgpu auto quality\n * meaning the fps bound which, when hit, will set the quality setting lower\n * To disable: set to 0\n * @default 24\n */\n autoQualityMinFps?: number;\n\n /**\n * @description This can be used to configure the upper bound of webgpu auto quality\n * meaning the fps bound which, when hit, will set the quality setting higher\n * This should be sufficiently larger than the minFps to not cause the quality to go up and down all the time\n * To disable: set to something very high\n * @default 59\n */\n autoQualityMaxFps?: number;\n\n /**\n * @description Visual configuration for the WebGPU top light and its shadow.\n */\n topLight?: WebGpuTopLightConfigDefinition;\n\n /**\n * @description Visual configuration for the WebGPU ground reflection.\n */\n groundReflection?: WebGpuGroundReflectionConfigDefinition;\n\n /**\n * @description Visual configuration for the WebGPU fog.\n */\n fog?: WebGpuFogConfigDefinition;\n\n /**\n * @description Visual configuration for the WebGPU screen space global illumination (SSGI) effect.\n */\n ssgi?: WebGpuSSGIConfigDefinition;\n\n /**\n * @description Tone mapping operator applied by the WebGPU renderer.\n * @default 'none'\n */\n toneMapping?: WebGpuToneMapping;\n\n /**\n * @description Exposure (intensity) of the tone mapping applied by the\n * WebGPU renderer. Higher values produce a brighter image.\n * @default 1\n */\n toneMappingExposure?: number;\n}\n\nexport interface FeatureFlags {\n pulsePreview?: boolean;\n reDock?: boolean;\n\n /**\n * @description Sets whether the snapping behavior of objects in the planner is initially enabled.\n */\n enableSnapping?: boolean;\n\n /**\n * @internal\n * @description If true, the advanced docking behavior is enabled (for test purposes only)\n */\n advancedDocking?: boolean;\n\n /**\n * @internal\n * @description If true, when inserting new objects in the planner, we will try to merge them into existing groups if possible.\n * This is for test purposes only and should not be enabled in production yet, as it can lead to unexpected behavior.\n */\n mergeOnInsert?: boolean;\n\n /**\n * @internal\n * @description If “vector”, the vector preview is activated when drawing walls (for test purposes only).\n * By default, the walls are immediately drawn with their actual thickness,\n * but this leads to problems when displaying the dimensions of the walls,\n * as it is not possible to guess which side of the wall of the room currently being entered is the inside of the wall.\n */\n drawPreviewMode?: Enumify<typeof DRAW_PREVIEW_MODES>;\n /**\n * @internal\n * @description TO BE REMOVED ONCE RML-13218 IS RESOLVED.\n * Forces new thumbnails to be generated on configuration save\n */\n forceSaveThumbnails?: boolean;\n\n /**\n * @internal\n * @description Enables dynamically placed interior lights in the room planner.\n */\n interiorLights?: boolean;\n\n /**\n * @internal\n * @description If true, the advanced dimensioning is enabled (for test purposes only)\n */\n advancedDimensioning?: boolean;\n\n /**\n * @internal\n * @deprecated Use the top-level `webGpu` init data property instead.\n * @description If true, the scene will be rendered with WebGPU instead of WebGL\n */\n webGpu?: boolean;\n\n /**\n * @internal\n * @description If true, the advanced highlighting behavior is enabled (for test purposes only)\n */\n advancedHighlighting?: boolean;\n\n /**\n * @internal\n * @description If true, enables the POC for planning fences (e.g. garden fences) in the room planner.\n */\n fence?: boolean;\n\n /**\n * @internal\n * @description If true, `onRequestPlan` waits until every pending configuration\n * save in the plan has been persisted to the Roomle backend before firing.\n * See RML-17394\n */\n awaitConfigurationSavesBeforeRequestPlan?: boolean;\n}\n\nexport type RoomleColors = keyof typeof ROOMLE_COLORS;\n\nexport type ColorsIn3dScene = Record<\n RoomleColors,\n HexColorString | HexColorNumber\n>;\n\nexport type ThreeJsColorsIn3dScene = Record<keyof typeof ROOMLE_COLORS, Color>;\n\n/**\n * Init data parameter which can be used in configurator AND planner\n */\nexport interface CommonInitData {\n /**\n * @description If set to true the configurator will make sure every device has great user experience with fluid frame rate.\n * If set to false the configurator will always show the highest quality possible.\n * That could lead to stutter and other problems on low-end devices. We advise you to only turn off \"autoQuality\" if you really know what you are doing.\n * usage: autoQuality=false\n * @groups scene-settings\n */\n autoQuality?: boolean;\n\n /**\n * @description Can be used to personalize colors used in the 3D scene\n * @groups scene-settings\n */\n colors?: ColorsIn3dScene;\n\n /**\n * @description The item id or configuration id of the item which should be loaded.\n * Examples:\n * Configuration id: usm:frame:2449773A7F54278EBB61A67A10EF6A10E8BB6F38BE775B028AC050B438414507\n * Item id: usm:frame\n */\n id?: RapiId;\n\n /**\n * @internal\n * @deprecated\n * @description Use prices which are hardcoded in the configuration script.\n * Only used for trade show demos.\n */\n useRoomlePrice?: boolean;\n\n /**\n * @description Set how many positions after the decimal point should be shown.\n * For example:\n * 8' 1.68\" -> precisionCm=2 -> 8' 1.68\"\n * 8' 1.68\" -> precisionCm=1 -> 8' 1.7\"\n * 8' 1.68\" -> precisionCm=0 -> 8' 2\"\n */\n precisionInch?: number;\n\n /**\n * @description Set how many positions after the decimal point should be shown.\n * For example:\n * 123,45 -> precisionCm=2 -> 123,45\n * 123,45 -> precisionCm=1 -> 123,5\n * 123,45 -> precisionCm=0 -> 124\n */\n precisionCm?: number;\n\n /**\n * @description Defines which unit should be used for measurements/dimensions\n * Options: 'cm', 'mm', 'inchfeet'\n */\n unit?: string;\n\n /**\n * @description How the current unit should be formatted\n * Options:\n * - 'none': No unit string added, for example '200'\n * - 'long': Long unit string, for example '200 meters'\n * - 'short': Short unit string, for example '200 m'\n */\n unitStringType?: string;\n\n /**\n * @description When mesh selection is enabled, the meshes of the object are used directly for highlighting.\n * Setting it to false could be useful for square/rectangular (shelf) items.\n */\n meshSelection?: boolean;\n\n /**\n * @description if set to true it shows a little overlay with performance stats\n */\n stats?: boolean;\n\n /**\n * @description This flag enables:\n * - Scripter debug logs (e.g. which parameter is not assigned to a parameter group)\n * - Free camera movement (no restrictions, camera stays after reload, panning using Shift key)\n */\n debug?: boolean;\n\n /**\n * @description This flag enables:\n * - External object docking vector debug geometry\n */\n debugGeometry?: boolean;\n\n /**\n * @description If true this flag shows component bounding boxes\n */\n debugBoundingBox?: boolean;\n\n /**\n * @description This flag enables:\n * - Help line geometry in the planner\n * @internal\n */\n debugLines?: boolean;\n\n /**\n * @description If set to true, prices are calculated using the Roomle price service.\n * For more information ask your Roomle contact.\n */\n usePriceService?: boolean;\n\n /**\n * @description Url to an exr or hdr env map\n * @groups scene-settings\n */\n envMapUrl?: string;\n\n /**\n * @description Set the intensity of the environment map\n * @groups scene-settings\n */\n envMapIntensity?: number;\n\n /**\n * @description Set the rotation of the environment map in radians, between 0 and 2 * PI, rotates counter-clockwise\n * @groups scene-settings\n */\n envMapRotation?: number;\n\n /**\n * @description Set the maximum number of light sources extracted from the environment map\n * @groups scene-settings\n */\n maxLightSources?: number;\n\n /**\n * @description Use old light setting instead of env maps. Ignored when using the WebGPU renderer\n * @groups scene-settings\n */\n legacyLight?: boolean;\n\n /**\n * @description Generate environment map from a scene instead of env maps\n * use all_around for an surrounding light\n * use front for a mainly frontal light\n * @groups scene-settings\n */\n sceneLight?: DefaultEnvironmentSceneType;\n\n /**\n * @description General shading properties for the overall appearance\n * default: for planner and a configurator with colorful, metallic or wooden materials\n * bright: for a configurator with white and bright materials\n * @groups scene-settings\n */\n shading?: SceneShadingType;\n\n /**\n * @description Customized shading properties for the overall appearance\n * @groups scene-settings\n */\n customShading?: CustomShadingParameters;\n\n /**\n * @description Activates the linear AO filter mode to reduce AO anti-aliasing artifacts\n * @groups scene-settings\n */\n linearAoFilter?: boolean;\n\n /**\n * @description Customized shading properties for the overall appearance in MOC\n * @groups scene-settings\n */\n customShadingMoc?: CustomShadingParameters;\n\n /**\n * @description restrictionLevel defines visibility of parameters and possible children\n */\n restrictionLevel?: number;\n\n /**\n * @description Settings for Homag Intelligence\n * @internal\n */\n hi?: HomagIntelligenceInitData;\n\n /**\n * @description disable injection of default styles for measurements and component dimension labels\n * to enable easier customization of these styles (via the assigned classes)\n */\n disableDefaultLabelStyles?: boolean;\n}\n\nexport interface ConfiguratorInitData {\n /**\n * @description Sets the behavior of the highlighting of a hovered component.\n * usage: highlighting=smart\n */\n highlighting?: Enumify<typeof ROOMLE_HIGHLIGHTNG>;\n\n /**\n * @description Set the floor material which is used when loading the configurator\n * For different options see {@link @roomle/web-sdk/configurator-core/src/environment/dynamic-environment-setting-loader#EnvironmentSetting}\n */\n initialFloorMaterial?: string;\n\n /**\n * @internal\n * @description Load a light setting using an URL.\n * Check lights in {@link @roomle/web-sdk/configurator-core/src/scene-settings-loader#SceneSettings} for an example.\n * value is a dynamic light setting url\n */\n dls?: string;\n\n /**\n * @description Load a predefined light setting, eg: ls=sofa\n * @groups scene-settings\n */\n ls?: string;\n\n /**\n * @description Set the distance to which the user can zoom (in centimeters).\n * default: object size divided by 10 or 10 cm\n * usage: zoomDistance=3\n * @groups scene-settings\n */\n zoomDistance?: number;\n\n /**\n * @description When set this param restricts the camera rotation to the given angle (e.g. 45 degree), this overrides minHorizontalCameraAngle and maxHorizontalCameraAngle\n * default: not set -> no camera restriction\n * usage: cameraRestriction=45\n * @groups scene-settings\n */\n cameraRestriction?: number;\n\n /**\n * @description Sets the default/initial vertical camera angle (pitch)\n * default: 10\n * usage: verticalCameraAngle=45\n * @groups scene-settings\n */\n verticalCameraAngle?: number;\n\n /**\n * @description When set this param restricts the down/vertical camera rotation to the given angle (e.g. 45 degree)\n * default: not set -> no camera angle restriction\n * usage: minVerticalCameraAngle=45\n * @groups scene-settings\n */\n minVerticalCameraAngle?: number;\n\n /**\n * @description When set this param restricts the up/vertical camera rotation to the given angle (e.g. 45 degree)\n * default: not set -> no camera angle restriction\n * usage: maxVerticalCameraAngle=45\n * @groups scene-settings\n */\n maxVerticalCameraAngle?: number;\n\n /**\n * @description Sets the default/initial horizontal camera angle (yaw)\n * default: -30\n * usage: horizontalCameraAngle=45\n * @groups scene-settings\n */\n horizontalCameraAngle?: number;\n\n /**\n * @description When set this param restricts the left/horizontal camera rotation to the given angle (e.g. 45 degree)\n * default: not set -> no camera angle restriction\n * usage: minHorizontalCameraAngle=45\n * @groups scene-settings\n */\n minHorizontalCameraAngle?: number;\n\n /**\n * @description When set this param restricts the right/horizontal camera rotation to the given angle (e.g. 45 degree)\n * default: not set -> no camera angle restriction\n * usage: maxHorizontalCameraAngle=45\n * @groups scene-settings\n */\n maxHorizontalCameraAngle?: number;\n\n /**\n * @description If set to false the camera will just jump to a new position\n * default: true\n * usage: animateCamera=false\n * @groups scene-settings\n */\n animateCamera?: boolean;\n\n /**\n * @internal\n * @description Easter Egg\n * */\n bananaForScale?: boolean;\n\n /**\n * @description If set to true, components which are between the camera and the selected component/preview will be rendered transparent\n * usage: transparentHighlighting=true\n * @groups scene-settings\n */\n transparentHighlighting?: boolean;\n\n /**\n * @description If set to true, the background is transparent and allows elements behind the configurator to be visible through the scene.\n * usage: transparentBackground=true\n * @groups scene-settings\n */\n transparentBackground?: boolean;\n\n /**\n * @description If set to true it will try to apply all current global parameters to the loaded object\n */\n applyCurrentGlobalParameters?: boolean;\n\n /**\n * @description If set to true, component dimension labels stay visible even when the distance-based proximity check would normally hide them.\n * @default false\n */\n disableMeasurementCollisionDetection?: boolean;\n\n /**\n * @description Adds the given spacing (in centimeters) to the loaded object. This is then used to calculate the initial camera distance\n * default: 0\n * usage:\n * cameraSpacing=100, zoom out further by increasing camera spacing by 100 centimeters\n * cameraSpacing=-30, zoom in further by decreasing camera spacing by 30 centimeters\n * @groups scene-settings\n */\n cameraSpacing?: number;\n\n /**\n * @internal\n * @description If set to true, screen space reflections are enabled\n */\n ssr?: boolean;\n\n /**\n * @internal\n * @description features that can be enabled/disabled\n */\n featureFlags?: FeatureFlags;\n\n /**\n * @internal\n * @description If true, the scene will be rendered with WebGPU instead of WebGL\n * @default false\n * usage: webGpu=true\n */\n webGpu?: boolean;\n\n /**\n * @internal\n * @description Configuration for the WebGPU renderer (e.g. auto quality fps bounds).\n */\n webGpuConfig?: WebGpuConfigDefinition;\n\n /**\n * @description if true, the meshes of the component will be used, in addition to the bounding box, for raycasting (selecting)\n * Warning: this will decrease performance when hovering over components with complex meshes\n * @default false\n * usage: meshRaycasting=true\n */\n meshRaycasting?: boolean;\n}\n\nexport interface PlannerInitData {\n /**\n * @description Sets the default floor material when creating a new plan or drawing.\n * Can be a number (RGB color) or a string (material ID).\n */\n defaultFloorMaterial?: number | string;\n\n /**\n * @description Select with which camera mode to start initially.\n * usage: mode=2D\n * options: 2D, 3D, FP\n */\n mode?: Enumify<typeof CAMERA_TYPE>;\n\n /**\n * @internal\n * @description If set to true the plan can be edited.\n */\n edit?: boolean;\n\n /**\n * @description If set to true it will treat the planner as a multi object configurator (moc).\n * This means:\n * - do not merge geometries\n * - set configurator environment & lights in planner\n * - reduce initial spacing of camera (higher zoom)\n */\n moc?: boolean;\n\n /**\n * @description If set to true we will not hide other items while configuring in the planner\n */\n configureInRoom?: boolean;\n\n /**\n * @description If set to true docking of configurable objects in the planner is enabled.\n * The default value is true.\n */\n dockInRoom?: boolean;\n}\n\nexport interface InitDataDefinition\n extends CommonInitData,\n ConfiguratorInitData,\n PlannerInitData {}\n","const FPS_LIST_SIZE = 10;\nconst FPS_MEASUREMENT_INTERVAL_MS = 20;\n\nexport default class FpsCounter {\n private _index: number = 0;\n private _fpsList: number[];\n private _prevTime: number = 0;\n private _frames: number = 0;\n private _fps: number = -1;\n\n constructor() {\n this._fpsList = Array(FPS_LIST_SIZE).fill(0);\n this._prevTime = (performance || Date).now();\n this.reset();\n }\n\n public update() {\n this._frames++;\n const time = (performance || Date).now();\n\n if (time >= this._prevTime + FPS_MEASUREMENT_INTERVAL_MS) {\n this._fpsList[this._index % FPS_LIST_SIZE] =\n (this._frames * 1000) / (time - this._prevTime);\n\n if (this._index >= FPS_LIST_SIZE) {\n this._fps =\n this._fpsList.reduce((pv, cv) => pv + cv) / this._fpsList.length;\n }\n\n this._prevTime = time;\n this._frames = 0;\n this._index++;\n }\n }\n\n public start() {\n this._prevTime = (performance || Date).now();\n this._frames = 0;\n }\n\n public reset() {\n this._fps = -1;\n this._fpsList = Array(FPS_LIST_SIZE).fill(0);\n this._index = 0;\n }\n\n public getFps() {\n return this._fps;\n }\n}\n","import type { Camera, Object3D, Scene, Vector2, WebGLRenderer } from 'three';\nimport { Box3 } from 'three';\nimport type { Enumify } from '#/common/src/utils/types';\nimport type { CAMERA_TYPE } from './cameracontrol/camera-type';\nimport type { WebGPURenderer } from 'three/webgpu';\nimport type { SceneShadingType } from './webgl/renderer/shading-settings';\nimport type { OutlineCustomParameters } from './webgl/renderer/scene-renderer';\n\nexport type GenericRoomleRenderer = RoomleRenderer<\n WebGLRenderer | WebGPURenderer\n>;\n\nexport enum PlannerRenderMode {\n Mode3D,\n Mode2D,\n}\n\nexport abstract class RoomleRenderer<\n RendererType extends WebGLRenderer | WebGPURenderer,\n> {\n public _creator_: string;\n public renderer: RendererType;\n protected isConfiguratorMode: boolean = true;\n protected isCameraMoving: boolean = false;\n protected cameraType: Enumify<typeof CAMERA_TYPE>;\n protected shadowNeedsUpdate: boolean = false;\n protected boundingBox: Box3 = new Box3();\n protected boundingBoxNeedsUpdate: boolean = false;\n\n protected constructor(creator: string, renderer: RendererType) {\n this._creator_ = creator;\n this.renderer = renderer;\n }\n\n public get isConfiguring(): boolean {\n return this.isConfiguratorMode;\n }\n\n public dispose(): void {\n this.renderer.dispose();\n }\n\n public setSize(width: number, height: number): void {\n this.renderer.setSize(width, height);\n }\n\n public getSize(target: Vector2): Vector2 {\n return this.renderer.getSize(target);\n }\n\n public setCameraType(cameraType: Enumify<typeof CAMERA_TYPE>) {\n this.cameraType = cameraType;\n }\n\n public movingCameraStarts(): void {\n this.isCameraMoving = true;\n }\n\n public movingCameraStops(): void {\n this.isCameraMoving = false;\n }\n\n public forceShadowUpdates(_updateBakedGroundShadow: boolean): void {\n this.shadowNeedsUpdate = true;\n }\n\n public clear() {\n this.renderer.clear();\n }\n\n public updateBounds(geometryBounds: Box3) {\n this.boundingBox.copy(geometryBounds);\n this.boundingBoxNeedsUpdate = true;\n }\n\n public switchToConfigurator(): void {\n this.isConfiguratorMode = true;\n }\n\n public switchToPlanner(_renderMode: PlannerRenderMode) {\n this.isConfiguratorMode = false;\n }\n\n public abstract setShadingType(shadingType: SceneShadingType): void;\n\n public abstract setCustomOutlineParameters(\n outlineCustomParameters: OutlineCustomParameters,\n ): void;\n\n public abstract render(scene: Scene, camera: Camera): void;\n\n public abstract showGUI(updateCallback: () => void): void;\n\n public abstract clearCache(): void;\n\n public abstract highlightObjects(selectedMeshes: Object3D[]): void;\n\n public abstract setGroundShadow(enabled: boolean, scene: Scene): void;\n\n public abstract enableUiInteractionMode(): void;\n\n public abstract disableUiInteractionMode(): void;\n}\n"],"mappings":";;AAkBA,IAAkB,IAAX,yBAAA,GAAA;QACL,EAAA,SAAA,UACA,EAAA,WAAA,WACA,EAAA,SAAA,SACA,EAAA,oBAAA;KACD,EAEY,IAAqB;CAChC,SAAS;CACT,QAAQ;CACT,EAEY,IAAuB;CAClC,MAAM;CACN,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,aAAa;CACb,KAAK;CACL,SAAS;CACV,ECtCK,IAAgB,IAChB,IAA8B,IAEf,IAArB,MAAgC;CAO9B,cAAc;AAGZ,gBATuB,oBAEG,kBACF,eACH,IAGrB,KAAK,WAAW,MAAM,EAAc,CAAC,KAAK,EAAE,EAC5C,KAAK,aAAa,eAAe,MAAM,KAAK,EAC5C,KAAK,OAAO;;CAGd,SAAgB;AACd,OAAK;EACL,IAAM,KAAQ,eAAe,MAAM,KAAK;AAExC,EAAI,KAAQ,KAAK,YAAY,MAC3B,KAAK,SAAS,KAAK,SAAS,KACzB,KAAK,UAAU,OAAS,IAAO,KAAK,YAEnC,KAAK,UAAU,MACjB,KAAK,OACH,KAAK,SAAS,QAAQ,GAAI,MAAO,IAAK,EAAG,GAAG,KAAK,SAAS,SAG9D,KAAK,YAAY,GACjB,KAAK,UAAU,GACf,KAAK;;CAIT,QAAe;AAEb,EADA,KAAK,aAAa,eAAe,MAAM,KAAK,EAC5C,KAAK,UAAU;;CAGjB,QAAe;AAGb,EAFA,KAAK,OAAO,IACZ,KAAK,WAAW,MAAM,EAAc,CAAC,KAAK,EAAE,EAC5C,KAAK,SAAS;;CAGhB,SAAgB;AACd,SAAO,KAAK;;GCnCJ,IAAL,yBAAA,GAAA;QACL,EAAA,EAAA,SAAA,KAAA,UACA,EAAA,EAAA,SAAA,KAAA;KACD,EAEqB,IAAtB,MAEE;CAUA,YAAsB,GAAiB,GAAwB;AAE7D,4BATsC,0BACJ,6BAEG,uBACT,IAAI,GAAM,gCACI,IAG1C,KAAK,YAAY,GACjB,KAAK,WAAW;;CAGlB,IAAW,gBAAyB;AAClC,SAAO,KAAK;;CAGd,UAAuB;AACrB,OAAK,SAAS,SAAS;;CAGzB,QAAe,GAAe,GAAsB;AAClD,OAAK,SAAS,QAAQ,GAAO,EAAO;;CAGtC,QAAe,GAA0B;AACvC,SAAO,KAAK,SAAS,QAAQ,EAAO;;CAGtC,cAAqB,GAAyC;AAC5D,OAAK,aAAa;;CAGpB,qBAAkC;AAChC,OAAK,iBAAiB;;CAGxB,oBAAiC;AAC/B,OAAK,iBAAiB;;CAGxB,mBAA0B,GAAyC;AACjE,OAAK,oBAAoB;;CAG3B,QAAe;AACb,OAAK,SAAS,OAAO;;CAGvB,aAAoB,GAAsB;AAExC,EADA,KAAK,YAAY,KAAK,EAAe,EACrC,KAAK,yBAAyB;;CAGhC,uBAAoC;AAClC,OAAK,qBAAqB;;CAG5B,gBAAuB,GAAgC;AACrD,OAAK,qBAAqB"}
|
|
1
|
+
{"version":3,"file":"roomle-renderer-FUqNfNIf.mjs","names":[],"sources":["../../packages/common-core/src/utils/shims.ts","../../packages/common-core/src/utils/fps-counter.ts","../../packages/common-core/src/roomle-renderer.ts"],"sourcesContent":["import type { ROOMLE_COLORS } from './common-utils';\nimport type {\n HexColorNumber,\n HexColorString,\n RapiId,\n RapiServerUrlType,\n} from '../../../typings/rapi-types';\nimport type { CAMERA_TYPE } from '../cameracontrol/camera-type';\nimport type { Enumify } from '#/common/src/utils/types';\nimport type { ROOMLE_HIGHLIGHTNG } from './common-utils';\nimport type { DefaultEnvironmentSceneType } from '../webgl/renderer/environment-scene';\nimport type {\n CustomShadingParameters,\n SceneShadingType,\n} from '../webgl/renderer/shading-settings';\nimport type { Color } from 'three';\nimport type { HomagIntelligenceInitData } from '../../../homag-intelligence/src/hi-api-types';\n\nexport const enum WINDOW_EVENT {\n RESIZE = 'resize',\n KEY_DOWN = 'keydown',\n KEY_UP = 'keyup',\n VISIBILITY_CHANGE = 'visibilitychange',\n}\n\nexport const DRAW_PREVIEW_MODES = {\n DEFAULT: 'default',\n VECTOR: 'vector',\n} as const;\n\nexport const WEBGPU_TONE_MAPPINGS = {\n NONE: 'none',\n LINEAR: 'linear',\n REINHARD: 'reinhard',\n CINEON: 'cineon',\n ACES_FILMIC: 'acesFilmic',\n AGX: 'agx',\n NEUTRAL: 'neutral',\n} as const;\n\nexport type WebGpuToneMapping = Enumify<typeof WEBGPU_TONE_MAPPINGS>;\n\n/**\n * Init data parameters which are not context specific\n */\nexport interface GlobalInitDataDefinition {\n /**\n * @description locale to use for the\n * embedding instance\n */\n locale?: string;\n\n /**\n * @internal\n * @deprecated\n * @description Can be used for content testing\n */\n overrideTenant?: number;\n\n /**\n * @description Set country to use for the Roomle price service. If not used the customer IP address will be used to determine the location. usage: overrideCountry=de\n */\n overrideCountry?: string | null;\n\n /**\n * @internal\n * @description Set which RAPI (Roomle API) backend should be used options: live, test\n */\n overrideRapi?: RapiServerUrlType;\n\n /**\n * @description The id which should be used for this embedding instance. When this id is set all InitData parameter can be set and changed in Rubens Admin. This is the way we recommend to set init data params. Ask your Roomle contact for your configuratorId.\n */\n configuratorId?: string;\n\n /**\n * @description Set which RAPI (Roomle API) backend should be used usage: customApiUrl=https://www.roomle.com/api/v2\n */\n customApiUrl?: string;\n\n /**\n * @internal\n * @description Can be set to true if started as an end-to-end test. This will disable post-processing\n */\n e2e?: boolean;\n\n /**\n * @internal\n * @description If set to true, the Roomle Renderer is used for perspective and top images this should help the E2E tests of Joe to migrate from comparing Roomle Renderer images to Three.js Renderer images\n */\n e2eRoomleRendererForImages?: boolean;\n\n /**\n * @internal\n * @description When loading a plan, the external objects from the plan XML are discarded\n */\n discardExternalObjectsWhenLoadingPlan?: boolean;\n\n /**\n * @description If set to true, the plan will be locked and no changes can be made to walls, floors or construction elements.\n * @default false\n */\n lockPlan?: boolean;\n\n /**\n * @description If set to true, the plan is in read-only mode. Hides all editing UI and prevents interaction with plan elements.\n * Automatically sets edit=false and lockPlan=true and saveToIdb=false\n * @default false\n */\n readonly?: boolean;\n}\n\nexport interface WebGpuTopLightConfigDefinition {\n /**\n * @description Intensity (brightness) of the WebGPU top light.\n * @default 1\n */\n intensity?: number;\n\n /**\n * @description Intensity of the shadow cast by the top light.\n * 0 means no shadow, 1 means a fully opaque shadow.\n * @default 1\n */\n shadowIntensity?: number;\n\n /**\n * @description Softness (blur radius) of the top light's shadow edges.\n * Higher values produce softer shadows.\n * @default 1.1\n */\n shadowRadius?: number;\n}\n\nexport interface WebGpuGroundReflectionConfigDefinition {\n /**\n * @description Enables or disables the ground reflection entirely.\n * When disabled the floor still receives shadows but does not render a reflection,\n * which also avoids the extra reflection render pass.\n * @default true\n */\n enabled?: boolean;\n\n /**\n * @description Strength of the ground reflection.\n * 0 means no reflection, 1 means a full mirror-like reflection.\n * @default 0.1\n */\n intensity?: number;\n\n /**\n * @description Depth at which the reflection starts to fade out.\n * @default 0.05\n */\n startFadeout?: number;\n\n /**\n * @description Depth at which the reflection is fully faded out.\n * @default 0.15\n */\n endFadeout?: number;\n}\n\nexport interface WebGpuFogConfigDefinition {\n /**\n * @description If true, a fog is added to the scene in webGPU mode.\n * This is mainly so you cant see the outer edge of the\n * floor (which makes it blends smoothly into the background).\n * This fog exists in a cylindrical shape around the origin and the\n * farBlend and nearBlend parameters indirectly control the radius\n * at which the fog starts and ends.\n * @default true\n */\n enabled?: boolean;\n\n /**\n * @description Radial distance from the start of the fog to the end of the fog.\n * This creates a smooth transition from full fog to no fog.\n * Larger values produce a softer, more gradual fog transition.\n * @default 7\n */\n nearBlend?: number;\n\n /**\n * @description Distance from the far end of the camera view/floor boundaries\n * at which the fully opaque fog should start to appear.\n * Larger values move the fully opaque(/end of the) fog\n * closer to the center of the scene.\n * @default 10\n */\n farBlend?: number;\n}\n\nexport interface WebGpuSSGIConfigDefinition {\n /**\n * @description Radius of the denoising filter applied to the indirect lighting.\n * Higher values produce a stronger denoising effect, which can help reduce noise\n * in the indirect lighting but may also blur fine details.\n * @default 20\n */\n giDenoiseRadius?: number;\n\n /**\n * @description Radius of the denoising filter applied to the ambient occlusion (AO) pass.\n * Higher values produce a stronger denoising effect, which can help reduce noise\n * in the AO but may also blur fine details.\n * @default 10\n */\n aoDenoiseRadius?: number;\n}\n\nexport interface WebGpuConfigDefinition {\n /**\n * @description If true, the initial webgpu quality level is autodetected based on\n * a benchmark of the graphics hardware. If false, the default quality level is used.\n * @default true\n */\n autoDetectQualityLevel?: boolean;\n\n /**\n * @description This can be used to configure the lower bound of webgpu auto quality\n * meaning the fps bound which, when hit, will set the quality setting lower\n * To disable: set to 0\n * @default 24\n */\n autoQualityMinFps?: number;\n\n /**\n * @description This can be used to configure the upper bound of webgpu auto quality\n * meaning the fps bound which, when hit, will set the quality setting higher\n * This should be sufficiently larger than the minFps to not cause the quality to go up and down all the time\n * To disable: set to something very high\n * @default 59\n */\n autoQualityMaxFps?: number;\n\n /**\n * @description Visual configuration for the WebGPU top light and its shadow.\n */\n topLight?: WebGpuTopLightConfigDefinition;\n\n /**\n * @description Visual configuration for the WebGPU ground reflection.\n */\n groundReflection?: WebGpuGroundReflectionConfigDefinition;\n\n /**\n * @description Visual configuration for the WebGPU fog.\n */\n fog?: WebGpuFogConfigDefinition;\n\n /**\n * @description Visual configuration for the WebGPU screen space global illumination (SSGI) effect.\n */\n ssgi?: WebGpuSSGIConfigDefinition;\n\n /**\n * @description Tone mapping operator applied by the WebGPU renderer.\n * @default 'none'\n */\n toneMapping?: WebGpuToneMapping;\n\n /**\n * @description Exposure (intensity) of the tone mapping applied by the\n * WebGPU renderer. Higher values produce a brighter image.\n * @default 1\n */\n toneMappingExposure?: number;\n}\n\nexport interface FeatureFlags {\n pulsePreview?: boolean;\n reDock?: boolean;\n\n /**\n * @description Sets whether the snapping behavior of objects in the planner is initially enabled.\n */\n enableSnapping?: boolean;\n\n /**\n * @internal\n * @description If true, the advanced docking behavior is enabled (for test purposes only)\n */\n advancedDocking?: boolean;\n\n /**\n * @internal\n * @description If true, when inserting new objects in the planner, we will try to merge them into existing groups if possible.\n * This is for test purposes only and should not be enabled in production yet, as it can lead to unexpected behavior.\n */\n mergeOnInsert?: boolean;\n\n /**\n * @internal\n * @description If “vector”, the vector preview is activated when drawing walls (for test purposes only).\n * By default, the walls are immediately drawn with their actual thickness,\n * but this leads to problems when displaying the dimensions of the walls,\n * as it is not possible to guess which side of the wall of the room currently being entered is the inside of the wall.\n */\n drawPreviewMode?: Enumify<typeof DRAW_PREVIEW_MODES>;\n /**\n * @internal\n * @description TO BE REMOVED ONCE RML-13218 IS RESOLVED.\n * Forces new thumbnails to be generated on configuration save\n */\n forceSaveThumbnails?: boolean;\n\n /**\n * @internal\n * @description Enables dynamically placed interior lights in the room planner.\n */\n interiorLights?: boolean;\n\n /**\n * @internal\n * @description If true, the advanced dimensioning is enabled (for test purposes only)\n */\n advancedDimensioning?: boolean;\n\n /**\n * @internal\n * @deprecated Use the top-level `webGpu` init data property instead.\n * @description If true, the scene will be rendered with WebGPU instead of WebGL\n */\n webGpu?: boolean;\n\n /**\n * @internal\n * @description If true, the advanced highlighting behavior is enabled (for test purposes only)\n */\n advancedHighlighting?: boolean;\n\n /**\n * @internal\n * @description If true, enables the POC for planning fences (e.g. garden fences) in the room planner.\n */\n fence?: boolean;\n\n /**\n * @internal\n * @description If true, `onRequestPlan` waits until every pending configuration\n * save in the plan has been persisted to the Roomle backend before firing.\n * See RML-17394\n */\n awaitConfigurationSavesBeforeRequestPlan?: boolean;\n}\n\nexport type RoomleColors = keyof typeof ROOMLE_COLORS;\n\nexport type ColorsIn3dScene = Record<\n RoomleColors,\n HexColorString | HexColorNumber\n>;\n\nexport type ThreeJsColorsIn3dScene = Record<keyof typeof ROOMLE_COLORS, Color>;\n\n/**\n * Init data parameter which can be used in configurator AND planner\n */\nexport interface CommonInitData {\n /**\n * @description If set to true the configurator will make sure every device has great user experience with fluid frame rate.\n * If set to false the configurator will always show the highest quality possible.\n * That could lead to stutter and other problems on low-end devices. We advise you to only turn off \"autoQuality\" if you really know what you are doing.\n * usage: autoQuality=false\n * @groups scene-settings\n */\n autoQuality?: boolean;\n\n /**\n * @description Can be used to personalize colors used in the 3D scene\n * @groups scene-settings\n */\n colors?: ColorsIn3dScene;\n\n /**\n * @description The item id or configuration id of the item which should be loaded.\n * Examples:\n * Configuration id: usm:frame:2449773A7F54278EBB61A67A10EF6A10E8BB6F38BE775B028AC050B438414507\n * Item id: usm:frame\n */\n id?: RapiId;\n\n /**\n * @internal\n * @deprecated\n * @description Use prices which are hardcoded in the configuration script.\n * Only used for trade show demos.\n */\n useRoomlePrice?: boolean;\n\n /**\n * @description Set how many positions after the decimal point should be shown.\n * For example:\n * 8' 1.68\" -> precisionCm=2 -> 8' 1.68\"\n * 8' 1.68\" -> precisionCm=1 -> 8' 1.7\"\n * 8' 1.68\" -> precisionCm=0 -> 8' 2\"\n */\n precisionInch?: number;\n\n /**\n * @description Set how many positions after the decimal point should be shown.\n * For example:\n * 123,45 -> precisionCm=2 -> 123,45\n * 123,45 -> precisionCm=1 -> 123,5\n * 123,45 -> precisionCm=0 -> 124\n */\n precisionCm?: number;\n\n /**\n * @description Defines which unit should be used for measurements/dimensions\n * Options: 'cm', 'mm', 'inchfeet'\n */\n unit?: string;\n\n /**\n * @description How the current unit should be formatted\n * Options:\n * - 'none': No unit string added, for example '200'\n * - 'long': Long unit string, for example '200 meters'\n * - 'short': Short unit string, for example '200 m'\n */\n unitStringType?: string;\n\n /**\n * @description When mesh selection is enabled, the meshes of the object are used directly for highlighting.\n * Setting it to false could be useful for square/rectangular (shelf) items.\n */\n meshSelection?: boolean;\n\n /**\n * @description if set to true it shows a little overlay with performance stats\n */\n stats?: boolean;\n\n /**\n * @description This flag enables:\n * - Scripter debug logs (e.g. which parameter is not assigned to a parameter group)\n * - Free camera movement (no restrictions, camera stays after reload, panning using Shift key)\n */\n debug?: boolean;\n\n /**\n * @description This flag enables:\n * - External object docking vector debug geometry\n */\n debugGeometry?: boolean;\n\n /**\n * @description If true this flag shows component bounding boxes\n */\n debugBoundingBox?: boolean;\n\n /**\n * @description This flag enables:\n * - Help line geometry in the planner\n * @internal\n */\n debugLines?: boolean;\n\n /**\n * @description If set to true, prices are calculated using the Roomle price service.\n * For more information ask your Roomle contact.\n */\n usePriceService?: boolean;\n\n /**\n * @description Url to an exr or hdr env map\n * @groups scene-settings\n */\n envMapUrl?: string;\n\n /**\n * @description Set the intensity of the environment map\n * @groups scene-settings\n */\n envMapIntensity?: number;\n\n /**\n * @description Set the rotation of the environment map in radians, between 0 and 2 * PI, rotates counter-clockwise\n * @groups scene-settings\n */\n envMapRotation?: number;\n\n /**\n * @description Set the maximum number of light sources extracted from the environment map\n * @groups scene-settings\n */\n maxLightSources?: number;\n\n /**\n * @description Use old light setting instead of env maps. Ignored when using the WebGPU renderer\n * @groups scene-settings\n */\n legacyLight?: boolean;\n\n /**\n * @description Generate environment map from a scene instead of env maps\n * use all_around for an surrounding light\n * use front for a mainly frontal light\n * @groups scene-settings\n */\n sceneLight?: DefaultEnvironmentSceneType;\n\n /**\n * @description General shading properties for the overall appearance\n * default: for planner and a configurator with colorful, metallic or wooden materials\n * bright: for a configurator with white and bright materials\n * @groups scene-settings\n */\n shading?: SceneShadingType;\n\n /**\n * @description Customized shading properties for the overall appearance\n * @groups scene-settings\n */\n customShading?: CustomShadingParameters;\n\n /**\n * @description Activates the linear AO filter mode to reduce AO anti-aliasing artifacts\n * @groups scene-settings\n */\n linearAoFilter?: boolean;\n\n /**\n * @description Customized shading properties for the overall appearance in MOC\n * @groups scene-settings\n */\n customShadingMoc?: CustomShadingParameters;\n\n /**\n * @description restrictionLevel defines visibility of parameters and possible children\n */\n restrictionLevel?: number;\n\n /**\n * @description Settings for Homag Intelligence\n * @internal\n */\n hi?: HomagIntelligenceInitData;\n\n /**\n * @description disable injection of default styles for measurements and component dimension labels\n * to enable easier customization of these styles (via the assigned classes)\n */\n disableDefaultLabelStyles?: boolean;\n}\n\nexport interface ConfiguratorInitData {\n /**\n * @description Sets the behavior of the highlighting of a hovered component.\n * usage: highlighting=smart\n */\n highlighting?: Enumify<typeof ROOMLE_HIGHLIGHTNG>;\n\n /**\n * @description Set the floor material which is used when loading the configurator\n * For different options see {@link @roomle/web-sdk/configurator-core/src/environment/dynamic-environment-setting-loader#EnvironmentSetting}\n */\n initialFloorMaterial?: string;\n\n /**\n * @internal\n * @description Load a light setting using an URL.\n * Check lights in {@link @roomle/web-sdk/configurator-core/src/scene-settings-loader#SceneSettings} for an example.\n * value is a dynamic light setting url\n */\n dls?: string;\n\n /**\n * @description Load a predefined light setting, eg: ls=sofa\n * @groups scene-settings\n */\n ls?: string;\n\n /**\n * @description Set the distance to which the user can zoom (in centimeters).\n * default: object size divided by 10 or 10 cm\n * usage: zoomDistance=3\n * @groups scene-settings\n */\n zoomDistance?: number;\n\n /**\n * @description When set this param restricts the camera rotation to the given angle (e.g. 45 degree), this overrides minHorizontalCameraAngle and maxHorizontalCameraAngle\n * default: not set -> no camera restriction\n * usage: cameraRestriction=45\n * @groups scene-settings\n */\n cameraRestriction?: number;\n\n /**\n * @description Sets the default/initial vertical camera angle (pitch)\n * default: 10\n * usage: verticalCameraAngle=45\n * @groups scene-settings\n */\n verticalCameraAngle?: number;\n\n /**\n * @description When set this param restricts the down/vertical camera rotation to the given angle (e.g. 45 degree)\n * default: not set -> no camera angle restriction\n * usage: minVerticalCameraAngle=45\n * @groups scene-settings\n */\n minVerticalCameraAngle?: number;\n\n /**\n * @description When set this param restricts the up/vertical camera rotation to the given angle (e.g. 45 degree)\n * default: not set -> no camera angle restriction\n * usage: maxVerticalCameraAngle=45\n * @groups scene-settings\n */\n maxVerticalCameraAngle?: number;\n\n /**\n * @description Sets the default/initial horizontal camera angle (yaw)\n * default: -30\n * usage: horizontalCameraAngle=45\n * @groups scene-settings\n */\n horizontalCameraAngle?: number;\n\n /**\n * @description When set this param restricts the left/horizontal camera rotation to the given angle (e.g. 45 degree)\n * default: not set -> no camera angle restriction\n * usage: minHorizontalCameraAngle=45\n * @groups scene-settings\n */\n minHorizontalCameraAngle?: number;\n\n /**\n * @description When set this param restricts the right/horizontal camera rotation to the given angle (e.g. 45 degree)\n * default: not set -> no camera angle restriction\n * usage: maxHorizontalCameraAngle=45\n * @groups scene-settings\n */\n maxHorizontalCameraAngle?: number;\n\n /**\n * @description If set to false the camera will just jump to a new position\n * default: true\n * usage: animateCamera=false\n * @groups scene-settings\n */\n animateCamera?: boolean;\n\n /**\n * @internal\n * @description Easter Egg\n * */\n bananaForScale?: boolean;\n\n /**\n * @description If set to true, components which are between the camera and the selected component/preview will be rendered transparent\n * usage: transparentHighlighting=true\n * @groups scene-settings\n */\n transparentHighlighting?: boolean;\n\n /**\n * @description If set to true, the background is transparent and allows elements behind the configurator to be visible through the scene.\n * usage: transparentBackground=true\n * @groups scene-settings\n */\n transparentBackground?: boolean;\n\n /**\n * @description If set to true it will try to apply all current global parameters to the loaded object\n */\n applyCurrentGlobalParameters?: boolean;\n\n /**\n * @description If set to true, component dimension labels stay visible even when the distance-based proximity check would normally hide them.\n * @default false\n */\n disableMeasurementCollisionDetection?: boolean;\n\n /**\n * @description Adds the given spacing (in centimeters) to the loaded object. This is then used to calculate the initial camera distance\n * default: 0\n * usage:\n * cameraSpacing=100, zoom out further by increasing camera spacing by 100 centimeters\n * cameraSpacing=-30, zoom in further by decreasing camera spacing by 30 centimeters\n * @groups scene-settings\n */\n cameraSpacing?: number;\n\n /**\n * @internal\n * @description If set to true, screen space reflections are enabled\n */\n ssr?: boolean;\n\n /**\n * @internal\n * @description features that can be enabled/disabled\n */\n featureFlags?: FeatureFlags;\n\n /**\n * @internal\n * @description If true, the scene will be rendered with WebGPU instead of WebGL\n * @default false\n * usage: webGpu=true\n */\n webGpu?: boolean;\n\n /**\n * @internal\n * @description Configuration for the WebGPU renderer (e.g. auto quality fps bounds).\n */\n webGpuConfig?: WebGpuConfigDefinition;\n\n /**\n * @description if true, the meshes of the component will be used, in addition to the bounding box, for raycasting (selecting)\n * Warning: this will decrease performance when hovering over components with complex meshes\n * @default false\n * usage: meshRaycasting=true\n */\n meshRaycasting?: boolean;\n}\n\nexport interface PlannerInitData {\n /**\n * @description Sets the default floor material when creating a new plan or drawing.\n * Can be a number (RGB color) or a string (material ID).\n */\n defaultFloorMaterial?: number | string;\n\n /**\n * @description Select with which camera mode to start initially.\n * usage: mode=2D\n * options: 2D, 3D, FP\n */\n mode?: Enumify<typeof CAMERA_TYPE>;\n\n /**\n * @internal\n * @description If set to true the plan can be edited.\n */\n edit?: boolean;\n\n /**\n * @description If set to true it will treat the planner as a multi object configurator (moc).\n * This means:\n * - do not merge geometries\n * - set configurator environment & lights in planner\n * - reduce initial spacing of camera (higher zoom)\n */\n moc?: boolean;\n\n /**\n * @description If set to true we will not hide other items while configuring in the planner\n */\n configureInRoom?: boolean;\n\n /**\n * @description If set to true docking of configurable objects in the planner is enabled.\n * The default value is true.\n */\n dockInRoom?: boolean;\n\n /**\n * @description If set to true the 3D planner camera zooms in as close to objects as the configurator does,\n * instead of stopping at the bounds of the plan. Objects which would be cut by the camera near plane are\n * hidden while they are cut.\n * @default false\n * usage: configuratorZoom=false\n */\n configuratorZoom?: boolean;\n}\n\nexport interface InitDataDefinition\n extends CommonInitData,\n ConfiguratorInitData,\n PlannerInitData {}\n","const FPS_LIST_SIZE = 10;\nconst FPS_MEASUREMENT_INTERVAL_MS = 20;\n\nexport default class FpsCounter {\n private _index: number = 0;\n private _fpsList: number[];\n private _prevTime: number = 0;\n private _frames: number = 0;\n private _fps: number = -1;\n\n constructor() {\n this._fpsList = Array(FPS_LIST_SIZE).fill(0);\n this._prevTime = (performance || Date).now();\n this.reset();\n }\n\n public update() {\n this._frames++;\n const time = (performance || Date).now();\n\n if (time >= this._prevTime + FPS_MEASUREMENT_INTERVAL_MS) {\n this._fpsList[this._index % FPS_LIST_SIZE] =\n (this._frames * 1000) / (time - this._prevTime);\n\n if (this._index >= FPS_LIST_SIZE) {\n this._fps =\n this._fpsList.reduce((pv, cv) => pv + cv) / this._fpsList.length;\n }\n\n this._prevTime = time;\n this._frames = 0;\n this._index++;\n }\n }\n\n public start() {\n this._prevTime = (performance || Date).now();\n this._frames = 0;\n }\n\n public reset() {\n this._fps = -1;\n this._fpsList = Array(FPS_LIST_SIZE).fill(0);\n this._index = 0;\n }\n\n public getFps() {\n return this._fps;\n }\n}\n","import type { Camera, Object3D, Scene, Vector2, WebGLRenderer } from 'three';\nimport { Box3 } from 'three';\nimport type { Enumify } from '#/common/src/utils/types';\nimport type { CAMERA_TYPE } from './cameracontrol/camera-type';\nimport type { WebGPURenderer } from 'three/webgpu';\nimport type { SceneShadingType } from './webgl/renderer/shading-settings';\nimport type { OutlineCustomParameters } from './webgl/renderer/scene-renderer';\n\nexport type GenericRoomleRenderer = RoomleRenderer<\n WebGLRenderer | WebGPURenderer\n>;\n\nexport enum PlannerRenderMode {\n Mode3D,\n Mode2D,\n}\n\nexport abstract class RoomleRenderer<\n RendererType extends WebGLRenderer | WebGPURenderer,\n> {\n public _creator_: string;\n public renderer: RendererType;\n protected isConfiguratorMode: boolean = true;\n protected isCameraMoving: boolean = false;\n protected cameraType: Enumify<typeof CAMERA_TYPE>;\n protected shadowNeedsUpdate: boolean = false;\n protected boundingBox: Box3 = new Box3();\n protected boundingBoxNeedsUpdate: boolean = false;\n\n protected constructor(creator: string, renderer: RendererType) {\n this._creator_ = creator;\n this.renderer = renderer;\n }\n\n public get isConfiguring(): boolean {\n return this.isConfiguratorMode;\n }\n\n public dispose(): void {\n this.renderer.dispose();\n }\n\n public setSize(width: number, height: number): void {\n this.renderer.setSize(width, height);\n }\n\n public getSize(target: Vector2): Vector2 {\n return this.renderer.getSize(target);\n }\n\n public setCameraType(cameraType: Enumify<typeof CAMERA_TYPE>) {\n this.cameraType = cameraType;\n }\n\n public movingCameraStarts(): void {\n this.isCameraMoving = true;\n }\n\n public movingCameraStops(): void {\n this.isCameraMoving = false;\n }\n\n public forceShadowUpdates(_updateBakedGroundShadow: boolean): void {\n this.shadowNeedsUpdate = true;\n }\n\n public clear() {\n this.renderer.clear();\n }\n\n public updateBounds(geometryBounds: Box3) {\n this.boundingBox.copy(geometryBounds);\n this.boundingBoxNeedsUpdate = true;\n }\n\n public switchToConfigurator(): void {\n this.isConfiguratorMode = true;\n }\n\n public switchToPlanner(_renderMode: PlannerRenderMode) {\n this.isConfiguratorMode = false;\n }\n\n public abstract setShadingType(shadingType: SceneShadingType): void;\n\n public abstract setCustomOutlineParameters(\n outlineCustomParameters: OutlineCustomParameters,\n ): void;\n\n public abstract render(scene: Scene, camera: Camera): void;\n\n public abstract showGUI(updateCallback: () => void): void;\n\n public abstract clearCache(): void;\n\n public abstract highlightObjects(selectedMeshes: Object3D[]): void;\n\n public abstract setGroundShadow(enabled: boolean, scene: Scene): void;\n\n public abstract enableUiInteractionMode(): void;\n\n public abstract disableUiInteractionMode(): void;\n}\n"],"mappings":";;AAkBA,IAAkB,IAAX,yBAAA,GAAA;QACL,EAAA,SAAA,UACA,EAAA,WAAA,WACA,EAAA,SAAA,SACA,EAAA,oBAAA;KACD,EAEY,IAAqB;CAChC,SAAS;CACT,QAAQ;CACT,EAEY,IAAuB;CAClC,MAAM;CACN,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,aAAa;CACb,KAAK;CACL,SAAS;CACV,ECtCK,IAAgB,IAChB,IAA8B,IAEf,IAArB,MAAgC;CAO9B,cAAc;AAGZ,gBATuB,oBAEG,kBACF,eACH,IAGrB,KAAK,WAAW,MAAM,EAAc,CAAC,KAAK,EAAE,EAC5C,KAAK,aAAa,eAAe,MAAM,KAAK,EAC5C,KAAK,OAAO;;CAGd,SAAgB;AACd,OAAK;EACL,IAAM,KAAQ,eAAe,MAAM,KAAK;AAExC,EAAI,KAAQ,KAAK,YAAY,MAC3B,KAAK,SAAS,KAAK,SAAS,KACzB,KAAK,UAAU,OAAS,IAAO,KAAK,YAEnC,KAAK,UAAU,MACjB,KAAK,OACH,KAAK,SAAS,QAAQ,GAAI,MAAO,IAAK,EAAG,GAAG,KAAK,SAAS,SAG9D,KAAK,YAAY,GACjB,KAAK,UAAU,GACf,KAAK;;CAIT,QAAe;AAEb,EADA,KAAK,aAAa,eAAe,MAAM,KAAK,EAC5C,KAAK,UAAU;;CAGjB,QAAe;AAGb,EAFA,KAAK,OAAO,IACZ,KAAK,WAAW,MAAM,EAAc,CAAC,KAAK,EAAE,EAC5C,KAAK,SAAS;;CAGhB,SAAgB;AACd,SAAO,KAAK;;GCnCJ,IAAL,yBAAA,GAAA;QACL,EAAA,EAAA,SAAA,KAAA,UACA,EAAA,EAAA,SAAA,KAAA;KACD,EAEqB,IAAtB,MAEE;CAUA,YAAsB,GAAiB,GAAwB;AAE7D,4BATsC,0BACJ,6BAEG,uBACT,IAAI,GAAM,gCACI,IAG1C,KAAK,YAAY,GACjB,KAAK,WAAW;;CAGlB,IAAW,gBAAyB;AAClC,SAAO,KAAK;;CAGd,UAAuB;AACrB,OAAK,SAAS,SAAS;;CAGzB,QAAe,GAAe,GAAsB;AAClD,OAAK,SAAS,QAAQ,GAAO,EAAO;;CAGtC,QAAe,GAA0B;AACvC,SAAO,KAAK,SAAS,QAAQ,EAAO;;CAGtC,cAAqB,GAAyC;AAC5D,OAAK,aAAa;;CAGpB,qBAAkC;AAChC,OAAK,iBAAiB;;CAGxB,oBAAiC;AAC/B,OAAK,iBAAiB;;CAGxB,mBAA0B,GAAyC;AACjE,OAAK,oBAAoB;;CAG3B,QAAe;AACb,OAAK,SAAS,OAAO;;CAGvB,aAAoB,GAAsB;AAExC,EADA,KAAK,YAAY,KAAK,EAAe,EACrC,KAAK,yBAAyB;;CAGhC,uBAAoC;AAClC,OAAK,qBAAqB;;CAG5B,gBAAuB,GAAgC;AACrD,OAAK,qBAAqB"}
|
|
@@ -37069,7 +37069,7 @@ var Us = 16, Ws = 6, Gs = class {
|
|
|
37069
37069
|
}
|
|
37070
37070
|
}, mc = class {
|
|
37071
37071
|
constructor(e) {
|
|
37072
|
-
return this.autoQuality = !1, this.colors = sc(Rr), this.useRoomlePrice = !1, this.unit = void 0, this.unitStringType = void 0, this.meshSelection = !0, this.stats = !1, this.debug = !1, this.debugGeometry = !1, this.debugLines = !1, this.debugBoundingBox = !1, this.usePriceService = !1, this.disableDebugGUI = !1, this.envMapUrl = tc, this.envMapIntensity = ac, this.envMapRotation = 0, this.maxLightSources = -1, this.legacyLight = !1, this.sceneLight = void 0, this.shading = Jn.DEFAULT, this.linearAoFilter = !1, this.restrictionLevel = 0, this.hi = void 0, this.disableDefaultLabelStyles = !1, this.highlighting = Vr.SMART, this.dls = void 0, this.ls = void 0, this.cameraSpacing = 0, this.animateCamera = !0, this.bananaForScale = !1, this.transparentHighlighting = !0, this.transparentBackground = !1, this.snappingEnabled = !1, this.applyCurrentGlobalParameters = !1, this.configureInRoom = !1, this.dockInRoom = !0, this.disableMeasurementCollisionDetection = !1, this.discardExternalObjectsWhenLoadingPlan = !1, this.featureFlags = new pc(), this.webGpu = !1, this.webGpuConfig = new fc(), this.meshRaycasting = !1, this.mode = G.CAMERA_3D, this.edit = !1, this.moc = !1, this.lockPlan = !1, this.readonly = !1, this.externalObjectSettings = {}, this.plannerIsolationConfigurator = !1, this.callbacksOnlyIfGeometryIsReady = !0, this._creator_ = e, new Proxy(this, { get(e, t) {
|
|
37072
|
+
return this.autoQuality = !1, this.colors = sc(Rr), this.useRoomlePrice = !1, this.unit = void 0, this.unitStringType = void 0, this.meshSelection = !0, this.stats = !1, this.debug = !1, this.debugGeometry = !1, this.debugLines = !1, this.debugBoundingBox = !1, this.usePriceService = !1, this.disableDebugGUI = !1, this.envMapUrl = tc, this.envMapIntensity = ac, this.envMapRotation = 0, this.maxLightSources = -1, this.legacyLight = !1, this.sceneLight = void 0, this.shading = Jn.DEFAULT, this.linearAoFilter = !1, this.restrictionLevel = 0, this.hi = void 0, this.disableDefaultLabelStyles = !1, this.highlighting = Vr.SMART, this.dls = void 0, this.ls = void 0, this.cameraSpacing = 0, this.animateCamera = !0, this.bananaForScale = !1, this.transparentHighlighting = !0, this.transparentBackground = !1, this.snappingEnabled = !1, this.applyCurrentGlobalParameters = !1, this.configureInRoom = !1, this.dockInRoom = !0, this.disableMeasurementCollisionDetection = !1, this.discardExternalObjectsWhenLoadingPlan = !1, this.featureFlags = new pc(), this.webGpu = !1, this.webGpuConfig = new fc(), this.meshRaycasting = !1, this.mode = G.CAMERA_3D, this.edit = !1, this.moc = !1, this.lockPlan = !1, this.readonly = !1, this.externalObjectSettings = {}, this.plannerIsolationConfigurator = !1, this.configuratorZoom = !1, this.callbacksOnlyIfGeometryIsReady = !0, this._creator_ = e, new Proxy(this, { get(e, t) {
|
|
37073
37073
|
return t === "colors" ? e.colors ? new Proxy(e.colors, {
|
|
37074
37074
|
get(e, t) {
|
|
37075
37075
|
return Er(e[t]);
|
|
@@ -42662,7 +42662,7 @@ var Fd = /* @__PURE__ */ function(e) {
|
|
|
42662
42662
|
return e[e.NONE = 0] = "NONE", e[e.ORBIT = 1] = "ORBIT", e[e.MOVE = 2] = "MOVE", e;
|
|
42663
42663
|
}({}), Id = 4, Ld = 2, Rd = 3, zd = 2, Bd = .3, Vd = 3, Hd = 2.725, Ud = class extends Pd {
|
|
42664
42664
|
constructor(e, t, n, r) {
|
|
42665
|
-
super(e, t, n), this._bounds = new D(), this._scale = 1, this._state = Fd.NONE, this._zoomSpeed = .95 ** Rd, this.minDistance = 0, this.maxDistance = 5, this.resetDistance = 5, this.minPolarAngle = Ee(0), this.maxPolarAngle = Ee(85), this._objectRotation = 0, this._lookAtSide = 0, this.minAzimuthAngle = -Infinity, this.maxAzimuthAngle = Infinity, this._zoomDistance = .1, this._userInteraction = !1, this._currentZoomHash = "", this._maxZoomedIn = !1, this._maxZoomedOut = !1, this._panningEnabled = !1, this._panningUsingRightMouseButton = !1, this._targetPositionIsPanned = !1, r ? this._camera = r : this._initCamera(), this._camera.fov = 30, this._targetPosition || (this._targetPosition = new D(0, 0, 0), this._targetPositionIsPanned = !1);
|
|
42665
|
+
super(e, t, n), this._bounds = new D(), this._scale = 1, this._state = Fd.NONE, this._zoomSpeed = .95 ** Rd, this.minDistance = 0, this.maxDistance = 5, this.configuratorZoom = !1, this.resetDistance = 5, this.minPolarAngle = Ee(0), this.maxPolarAngle = Ee(85), this._objectRotation = 0, this._lookAtSide = 0, this.minAzimuthAngle = -Infinity, this.maxAzimuthAngle = Infinity, this._zoomDistance = .1, this._userInteraction = !1, this._currentZoomHash = "", this._maxZoomedIn = !1, this._maxZoomedOut = !1, this._panningEnabled = !1, this._panningUsingRightMouseButton = !1, this._targetPositionIsPanned = !1, r ? this._camera = r : this._initCamera(), this._camera.fov = 30, this._targetPosition || (this._targetPosition = new D(0, 0, 0), this._targetPositionIsPanned = !1);
|
|
42666
42666
|
let { cameraRestriction: i, zoomDistance: a, minVerticalCameraAngle: o, maxVerticalCameraAngle: s, minHorizontalCameraAngle: c, maxHorizontalCameraAngle: l } = this._initData;
|
|
42667
42667
|
if (a && (this._zoomDistance = a / 100), o !== void 0 && (this.minPolarAngle = Ee(o < 0 ? o : o * -1)), s !== void 0 && (this.maxPolarAngle = Ee(s)), c !== void 0 && (this.minAzimuthAngle = Ee(c < 0 ? c : c * -1)), l !== void 0 && (this.maxAzimuthAngle = Ee(l)), i !== void 0) {
|
|
42668
42668
|
let e = Math.abs(Ee(i));
|
|
@@ -42884,10 +42884,11 @@ var Fd = /* @__PURE__ */ function(e) {
|
|
|
42884
42884
|
_update(e, t, n) {
|
|
42885
42885
|
n || (this._yaw = Hr(this._yaw, this.minAzimuthAngle, this.maxAzimuthAngle), this._pitch = this._initData.debug ? Hr(this._pitch, Ee(-89), Ee(89)) : Hr(this._pitch, this.minPolarAngle, this.maxPolarAngle), this._saveYawAndPitch());
|
|
42886
42886
|
let r = new Ct().setFromEuler(new wn(-this._pitch, this._yaw, 0, "ZYX")), i = new D(0, 0, -1).applyQuaternion(r);
|
|
42887
|
-
n || (this._distance *= this._scale, this._initData.debug || (this._distance = Math.min(this.maxDistance, this._distance))), e && this._targetPosition.copy(e);
|
|
42887
|
+
n || (this._distance *= this._scale, this._initData.debug || (this.configuratorZoom ? this._distance = Math.max(this._zoomDistance, this._distance) : this._distance = Math.min(this.maxDistance, this._distance))), e && this._targetPosition.copy(e);
|
|
42888
42888
|
let a = this._targetPosition.clone().sub(i.multiplyScalar(this._distance));
|
|
42889
42889
|
if (this._initData.debug) this._cameraPosition.copy(a), this._zoomChanged(!1, !1);
|
|
42890
42890
|
else if (t) this._cameraPosition.copy(a);
|
|
42891
|
+
else if (this.configuratorZoom) this._cameraPosition.copy(a), this._zoomChanged(this._distance === this.maxDistance, this._distance === this._zoomDistance);
|
|
42891
42892
|
else {
|
|
42892
42893
|
let e = this._getCameraSphere(a);
|
|
42893
42894
|
this._boundingBox != null && this._boundingBox.intersectsSphere(e) && this._scale >= 1 ? this._distance += .1 : this._boundingBox != null && !this._boundingBox.intersectsSphere(e) ? (this._cameraPosition.copy(a), this._zoomChanged(this._distance === this.maxDistance, !1)) : this._zoomChanged(!1, !0);
|
|
@@ -44099,7 +44100,7 @@ var Xd = /* @__PURE__ */ function(e) {
|
|
|
44099
44100
|
configurationLoaded(e, t, n, r, i, a) {
|
|
44100
44101
|
e === 10 && (this._configuratorContext.dockingRootComponentId = n), t === 0 ? this._getKernelAccess().kernelInstance.requestPlanComponentConstructionRecursive(n) : this.constructComponents(t);
|
|
44101
44102
|
let o = this._getKernelAccess().kernelInstance.getComponent(n), s = this._components.get(n);
|
|
44102
|
-
s && (s.computeBoundingBox(o.boxForMeasurement,
|
|
44103
|
+
s && (s.computeBoundingBox(o.boxForMeasurement, this._getKernelAccess().getComponentBounds(n, s.animationValueMap).geometryBounds), s.hash = o.hash), this._listener && s && this._listener.configurationLoaded(s, a && s.boundingBoxMesh != null);
|
|
44103
44104
|
}
|
|
44104
44105
|
finishParameterChange(e, t) {
|
|
44105
44106
|
this.materialQueue.registerCallback(e);
|
|
@@ -45054,7 +45055,12 @@ var uf = class extends Map {
|
|
|
45054
45055
|
}
|
|
45055
45056
|
}, up = "Construction", dp = "Ceiling", fp = "Floor", pp = "Ceiling Lights", mp = "Measurement Line", hp = "Wall Attics", gp = "Help Lines", _p = class extends lf {
|
|
45056
45057
|
constructor(e) {
|
|
45057
|
-
super(e), this._coreReference = null, this._configurablePlanObjectViewModels = [], this._configurableConstructionPlanObjectViewModels = [], this._staticPlanObjectViewModels = [], this._constructionPlanObjectViewModels = [], this._wallPlanObjectViewModels = [], this._measurementLinePlanObjectViewModels = [], this._wallAtticsPlanObjectViewModels = [], this._floorPlanObjectViewModels = [], this._nodePlanObjectViewModels = [], this.
|
|
45058
|
+
super(e), this._coreReference = null, this._configurablePlanObjectViewModels = [], this._configurableConstructionPlanObjectViewModels = [], this._staticPlanObjectViewModels = [], this._constructionPlanObjectViewModels = [], this._wallPlanObjectViewModels = [], this._measurementLinePlanObjectViewModels = [], this._wallAtticsPlanObjectViewModels = [], this._floorPlanObjectViewModels = [], this._nodePlanObjectViewModels = [], this._cameraHideSphere = new Nt(), this._cameraHideViewModelGroups = [
|
|
45059
|
+
this._staticPlanObjectViewModels,
|
|
45060
|
+
this._configurablePlanObjectViewModels,
|
|
45061
|
+
this._configurableConstructionPlanObjectViewModels,
|
|
45062
|
+
this._constructionPlanObjectViewModels
|
|
45063
|
+
], this._objectsHiddenByCamera = /* @__PURE__ */ new WeakSet(), this._constructionGroup = new xn(), this._constructionGroup.name = up, this._ceilingGroup = new xn(), this._ceilingGroup.name = dp, this._floorGroup = new xn(), this._floorGroup.name = fp, this._ceilingLightsGroup = new cp(), this._ceilingLightsGroup.name = pp, this._measurementLineGroup = new xn(), this._measurementLineGroup.name = mp, this._wallAtticsGroup = new xn(), this._wallAtticsGroup.name = hp, this._helpLineGroup = new xn(), this._helpLineGroup.name = gp, this._getKernelAccess().addPlannerListener(this);
|
|
45058
45064
|
}
|
|
45059
45065
|
get latestWallPlanObjectViewModel() {
|
|
45060
45066
|
return this._latestWallPlanObjectViewModel;
|
|
@@ -45440,6 +45446,20 @@ var uf = class extends Map {
|
|
|
45440
45446
|
t.getId() !== e && t.setContainerVisibility(!1);
|
|
45441
45447
|
});
|
|
45442
45448
|
}
|
|
45449
|
+
hideObjectsCutByCamera(e) {
|
|
45450
|
+
this._cameraHideSphere.center.setFromMatrixPosition(e.matrixWorld), this._cameraHideSphere.radius = e.near;
|
|
45451
|
+
let t = !1;
|
|
45452
|
+
for (let e of this._cameraHideViewModelGroups) for (let n of e) {
|
|
45453
|
+
let e = n.getContainer();
|
|
45454
|
+
n.getBounds().intersectsSphere(this._cameraHideSphere) ? e.visible && (e.visible = !1, this._objectsHiddenByCamera.add(n), t = !0) : this._objectsHiddenByCamera.delete(n) && (e.visible = !n.getPlanElement()?.hidden, t = !0);
|
|
45455
|
+
}
|
|
45456
|
+
return t;
|
|
45457
|
+
}
|
|
45458
|
+
restoreObjectsHiddenByCamera() {
|
|
45459
|
+
let e = !1;
|
|
45460
|
+
for (let t of this._cameraHideViewModelGroups) for (let n of t) this._objectsHiddenByCamera.delete(n) && (n.getContainer().visible = !n.getPlanElement()?.hidden, e = !0);
|
|
45461
|
+
return e;
|
|
45462
|
+
}
|
|
45443
45463
|
showAll() {
|
|
45444
45464
|
this._ceilingGroup.visible = this._cameraType === G.CAMERA_FP, this._floorGroup.visible = !0, this._measurementLineGroup.visible = !0, this._wallAtticsGroup.visible = !0, this._constructionGroup.visible = !0, this._helpLineGroup.visible = !0, this._staticPlanObjectViewModels.forEach((e) => e.setContainerVisibility(!0)), this._configurablePlanObjectViewModels.forEach((e) => e.setContainerVisibility(!0)), this._configurableConstructionPlanObjectViewModels.forEach((e) => e.setContainerVisibility(!0)), this._constructionPlanObjectViewModels.forEach((e) => e.setContainerVisibility(!0));
|
|
45445
45465
|
}
|
|
@@ -49324,7 +49344,7 @@ var ah = class {
|
|
|
49324
49344
|
this._highlightComponent(null, e), this._requestRender();
|
|
49325
49345
|
}
|
|
49326
49346
|
_shouldHighlightComponent() {
|
|
49327
|
-
return this._configuratorContext.baseContext === K.CONFIGURATOR ? this._initData.highlighting === Vr.ALWAYS ? !0 : this._initData.highlighting === Vr.OFF ? !1 : this._getKernelAccess().kernelInstance.getComponent(this._configuratorContext.rootComponentId).externalComponent ? !0 : (this._plannerKernelAccess.kernelInstance.getChildrenOfPlanComponent(this._configuratorContext.rootComponentId, !0, !1) || []).length >
|
|
49347
|
+
return this._configuratorContext.baseContext === K.CONFIGURATOR ? this._initData.highlighting === Vr.ALWAYS ? !0 : this._initData.highlighting === Vr.OFF ? !1 : this._getKernelAccess().kernelInstance.getComponent(this._configuratorContext.rootComponentId).externalComponent ? !0 : (this._plannerKernelAccess.kernelInstance.getChildrenOfPlanComponent(this._configuratorContext.rootComponentId, !0, !1) || []).length > 0 : !1;
|
|
49328
49348
|
}
|
|
49329
49349
|
saveConfigToIdb() {
|
|
49330
49350
|
let e, t, { configuratorId: n } = this._globalInitData, { lastLoadedPlanId: r, lastLoadedRapiId: i } = this._configuratorContext;
|
|
@@ -52826,6 +52846,10 @@ var l_ = "rml_plans", u_ = {
|
|
|
52826
52846
|
lg(this._plannerSceneEventHandler, e, this._roomleRenderer, this._initData);
|
|
52827
52847
|
}
|
|
52828
52848
|
}
|
|
52849
|
+
_changeCameraBehaviour(e) {
|
|
52850
|
+
let t = this.cameraBehaviour?.cameraControl;
|
|
52851
|
+
t instanceof Ud && t.configuratorZoom && !(this._initData.configuratorZoom && e instanceof xh) && this.viewModel.restoreObjectsHiddenByCamera(), e.cameraControl instanceof Ud && (e.cameraControl.configuratorZoom = this._initData.configuratorZoom && e instanceof xh), super._changeCameraBehaviour(e);
|
|
52852
|
+
}
|
|
52829
52853
|
onBeforeRender() {
|
|
52830
52854
|
if (this._keepWallsAndCeilingVisible) {
|
|
52831
52855
|
this._forceWallsAndCeiling();
|
|
@@ -53367,12 +53391,12 @@ var l_ = "rml_plans", u_ = {
|
|
|
53367
53391
|
for (let e of this.viewModel.getWallPlanObjectViewModels()) e.isVisible() || r.push(e), e.show();
|
|
53368
53392
|
this._resetCameraFacingVisibility();
|
|
53369
53393
|
}
|
|
53370
|
-
e.runtimeIds && this.viewModel.hideAllExceptRuntimeIds(e.runtimeIds);
|
|
53394
|
+
e.runtimeIds && this.viewModel.hideAllExceptRuntimeIds(e.runtimeIds), this.viewModel.getCeilingGroup().visible = !1;
|
|
53371
53395
|
try {
|
|
53372
53396
|
return await this._imageRenderer.prepareTopImage(this._scene, n, e);
|
|
53373
53397
|
} finally {
|
|
53374
53398
|
if (e.runtimeIds && this.viewModel.showAll(), this.cameraBehaviour.cameraControl instanceof Ud && await this.viewModel.setCameraType(G.CAMERA_3D), r.length) for (let e of r) e.hide();
|
|
53375
|
-
this._lightSetting?.addToScene(), this._roomleRenderer?.clearCache(), this._requestRender();
|
|
53399
|
+
this._setCeiling(), this._lightSetting?.addToScene(), this._roomleRenderer?.clearCache(), this._requestRender();
|
|
53376
53400
|
}
|
|
53377
53401
|
}
|
|
53378
53402
|
preparePerspectiveImageOf(e, t = {}) {
|
|
@@ -53834,7 +53858,9 @@ var l_ = "rml_plans", u_ = {
|
|
|
53834
53858
|
}
|
|
53835
53859
|
}
|
|
53836
53860
|
_updateCameraFacingVisibility() {
|
|
53837
|
-
|
|
53861
|
+
if (!(this.cameraBehaviour.cameraControl instanceof Ud)) return !1;
|
|
53862
|
+
let e = this.cameraBehaviour.cameraControl.getCamera(), t = _(e, this.viewModel.getWallPlanObjectViewModels(), this.viewModel.getAllConstructionPlanObjectViewModels(), this._draggedConstructionPlanElementViewModel);
|
|
53863
|
+
return this.cameraBehaviour.cameraControl.configuratorZoom && (t = this.viewModel.hideObjectsCutByCamera(e) || t), t;
|
|
53838
53864
|
}
|
|
53839
53865
|
_syncSelectionForDroppedConstructionVisibility(e) {
|
|
53840
53866
|
return !p_(e) || !e.isHiddenByCameraFacing() ? !0 : (this._plannerSceneEventHandler.cancelSelection("click_outside"), !1);
|
|
@@ -54813,7 +54839,7 @@ var K_ = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
54813
54839
|
async switchToConfigurator() {
|
|
54814
54840
|
let e = await this._singlePromiseFactory.create(Ba.START_HSC, "startHSC", (e) => {
|
|
54815
54841
|
if (this._hscInstance) return e(this._hscInstance);
|
|
54816
|
-
import("./configurator-
|
|
54842
|
+
import("./configurator-AsfKvlbu.mjs").then(({ Configurator: t }) => {
|
|
54817
54843
|
let n = new t(this._creator_);
|
|
54818
54844
|
n.boot({
|
|
54819
54845
|
kernelInstance: this._planInteractionManager.getConfiguratorKernel(),
|
|
@@ -54831,7 +54857,7 @@ var K_ = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
54831
54857
|
async switchToViewer() {
|
|
54832
54858
|
let e = await this._singlePromiseFactory.create(Ba.START_GLB, "startGLB", (e) => {
|
|
54833
54859
|
if (this._glbInstance) return e(this._glbInstance);
|
|
54834
|
-
import("./glb-viewer-
|
|
54860
|
+
import("./glb-viewer-BxoR_l9C.mjs").then((t) => {
|
|
54835
54861
|
let n = new t.GlbViewer(this._creator_);
|
|
54836
54862
|
n.boot(), n.getApi().setOverrides(this._initData);
|
|
54837
54863
|
let r = this._domHelper.element;
|
|
@@ -55750,7 +55776,7 @@ var K_ = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
55750
55776
|
globalInitData: JSON.parse(JSON.stringify(this._globalInitData))
|
|
55751
55777
|
}, "*", [t.port2]);
|
|
55752
55778
|
let n = D_(t.port1), r = null;
|
|
55753
|
-
this._initData.hi?.libraryId && (r = n.onLoadArticleCatalog(this._initData.hi.libraryId), this._earlyHiTagCatalogCallbacks = new G_(this._creator_, r)), await new (await (import("./homag-intelligence-
|
|
55779
|
+
this._initData.hi?.libraryId && (r = n.onLoadArticleCatalog(this._initData.hi.libraryId), this._earlyHiTagCatalogCallbacks = new G_(this._creator_, r)), await new (await (import("./homag-intelligence-AJ5cG6sO.mjs"))).HomagIntelligence(this, e, n).loadSavedPosData(), this._initData.hi?.libraryId && await this.loadExternalObjectLibrary(this._initData.hi.libraryId, r ?? void 0);
|
|
55754
55780
|
}
|
|
55755
55781
|
async _loadHomagIntelligenceArticles(e, t) {
|
|
55756
55782
|
let n = this._homagIntelligence;
|
|
@@ -59328,7 +59354,7 @@ var oy = [
|
|
|
59328
59354
|
static getConfigurator(e, t) {
|
|
59329
59355
|
t = this._setupDI(K.CONFIGURATOR, e, t);
|
|
59330
59356
|
let n = sy.lookup("global-init-data");
|
|
59331
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-
|
|
59357
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-AsfKvlbu.mjs").then(({ Configurator: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
59332
59358
|
}
|
|
59333
59359
|
static getPlanner(e, t) {
|
|
59334
59360
|
return this._getPlanner(e, t);
|
|
@@ -59339,15 +59365,15 @@ var oy = [
|
|
|
59339
59365
|
static async getGlbViewer(e, t) {
|
|
59340
59366
|
t = this._setupDI(K.GLB_VIEWER, e, t);
|
|
59341
59367
|
let n = sy.lookup("global-init-data");
|
|
59342
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-
|
|
59368
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-BxoR_l9C.mjs").then(({ GlbViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
59343
59369
|
}
|
|
59344
59370
|
static getMaterialViewer(e, t) {
|
|
59345
59371
|
t = this._setupDI(K.CONFIGURATOR, e, t);
|
|
59346
59372
|
let n = sy.lookup("global-init-data");
|
|
59347
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-
|
|
59373
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-A-EWqr8E.mjs").then(({ MaterialViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
59348
59374
|
}
|
|
59349
59375
|
static getCoreTools(e, t) {
|
|
59350
|
-
return t = this._setupDI(K.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-
|
|
59376
|
+
return t = this._setupDI(K.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-Dj7M_Fqz.mjs").then(({ ToolsCore: n }) => {
|
|
59351
59377
|
let r = new n(t);
|
|
59352
59378
|
r.boot(), e(r);
|
|
59353
59379
|
}, n));
|
|
@@ -59375,7 +59401,7 @@ var oy = [
|
|
|
59375
59401
|
}
|
|
59376
59402
|
static _getPlanner(e, t, n) {
|
|
59377
59403
|
let r = this._setupDI(K.PLANNER, e, t), i = sy.lookup("global-init-data");
|
|
59378
|
-
return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-
|
|
59404
|
+
return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-B8g2qQA_.mjs").then(({ Planner: t }) => {
|
|
59379
59405
|
e(n ? new t(r, n) : new t(r));
|
|
59380
59406
|
}, t)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
59381
59407
|
}
|
|
@@ -59392,4 +59418,4 @@ var oy = [
|
|
|
59392
59418
|
//#endregion
|
|
59393
59419
|
export { G as $, rd as A, qc as B, lf as C, Pd as D, X as E, pu as F, kc as G, Hc as H, Al as I, Dc as J, Ac as K, bl as L, Lu as M, Cu as N, Ad as O, bu as P, tc as Q, vl as R, Cf as S, Ud as T, Vc as U, K as V, jc as W, vc as X, bc as Y, hc as Z, Xp as _, jv as a, za as at, wp as b, _v as c, Ra as ct, Ch as d, Yi as dt, xo as et, sh as f, Ui as ft, eh as g, th as h, Wv as i, Ba as it, zu as j, kd as k, mv as l, Pa as lt, ih as m, Li as mt, sy as n, ro as nt, Av as o, V as ot, ah as p, Ri as pt, Oc as q, oy as r, to as rt, kv as s, H as st, cy as t, oo as tt, ev as u, Na as ut, Vp as v, of as w, Tp as x, Lp as y, Jc as z };
|
|
59394
59420
|
|
|
59395
|
-
//# sourceMappingURL=roomle-sdk-
|
|
59421
|
+
//# sourceMappingURL=roomle-sdk-BfbERUK3.mjs.map
|