@roomle/web-sdk 3.10.1-alpha.3 → 4.0.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/{BufferGeometry-Dj5loCTL.mjs → BufferGeometry-CnbfgBmz.mjs} +2 -2
- package/lib/{BufferGeometry-Dj5loCTL.mjs.map → BufferGeometry-CnbfgBmz.mjs.map} +1 -1
- package/lib/{GLTFExporter-CquK-kkI.mjs → GLTFExporter-BxcjPMva.mjs} +2 -2
- package/lib/{GLTFExporter-CquK-kkI.mjs.map → GLTFExporter-BxcjPMva.mjs.map} +1 -1
- package/lib/{GaussianBlurNode-CDYPio-x.mjs → GaussianBlurNode-8gO-I1qG.mjs} +14 -14
- package/lib/{GaussianBlurNode-CDYPio-x.mjs.map → GaussianBlurNode-8gO-I1qG.mjs.map} +1 -1
- package/lib/{Object3D-YXSPdGeJ.mjs → Object3D-DMaDdv-D.mjs} +1 -1
- package/lib/{Object3D-YXSPdGeJ.mjs.map → Object3D-DMaDdv-D.mjs.map} +1 -1
- package/lib/{PointLightHelper-g98giMRd.mjs → PointLightHelper-CahXSxiA.mjs} +4 -4
- package/lib/{PointLightHelper-g98giMRd.mjs.map → PointLightHelper-CahXSxiA.mjs.map} +1 -1
- package/lib/{SpotLightHelper-xR8lCZau.mjs → SpotLightHelper-BEqeYq1p.mjs} +3 -3
- package/lib/{SpotLightHelper-xR8lCZau.mjs.map → SpotLightHelper-BEqeYq1p.mjs.map} +1 -1
- package/lib/{USDZExporter-BMqBymZI.mjs → USDZExporter-ZZoG1mne.mjs} +3 -3
- package/lib/{USDZExporter-BMqBymZI.mjs.map → USDZExporter-ZZoG1mne.mjs.map} +1 -1
- package/lib/{Vector4-CqzXUndP.mjs → Vector4-BkA_VGid.mjs} +2 -2
- package/lib/{Vector4-CqzXUndP.mjs.map → Vector4-BkA_VGid.mjs.map} +1 -1
- package/lib/{api-Cjq6uyhy.mjs → api-CUyBdNba.mjs} +2 -2
- package/lib/{api-Cjq6uyhy.mjs.map → api-CUyBdNba.mjs.map} +1 -1
- package/lib/{asset-loader.worker-CHyN7JB1.mjs → asset-loader.worker-C_5RQYHp.mjs} +1 -1
- package/lib/asset-loader.worker-C_5RQYHp.mjs.map +1 -0
- package/lib/{banana-for-scale-Cs2s9dNp.mjs → banana-for-scale-B77S3z9R.mjs} +4 -4
- package/lib/{banana-for-scale-Cs2s9dNp.mjs.map → banana-for-scale-B77S3z9R.mjs.map} +1 -1
- package/lib/{budgeteer.sw-BCLEIWCW.mjs → budgeteer.sw-DxeAvd0v.mjs} +1 -1
- package/lib/budgeteer.sw-DxeAvd0v.mjs.map +1 -0
- package/lib/{common-utils-DeAwtH0V.mjs → common-utils-BiOW17Ao.mjs} +2 -2
- package/lib/{common-utils-DeAwtH0V.mjs.map → common-utils-BiOW17Ao.mjs.map} +1 -1
- package/lib/{component-dimensioning-DINSxpnW.mjs → component-dimensioning-DPyPzSsa.mjs} +7 -7
- package/lib/{component-dimensioning-DINSxpnW.mjs.map → component-dimensioning-DPyPzSsa.mjs.map} +1 -1
- package/lib/{component-raycast-helper-DiX3LOGg.mjs → component-raycast-helper-RiQIybsX.mjs} +5 -5
- package/lib/{component-raycast-helper-DiX3LOGg.mjs.map → component-raycast-helper-RiQIybsX.mjs.map} +1 -1
- package/lib/configurator-BBlZVIId.mjs +2 -0
- package/lib/{configurator-BC4t2q94.mjs → configurator-C_rsqn9l.mjs} +4 -4
- package/lib/{configurator-BC4t2q94.mjs.map → configurator-C_rsqn9l.mjs.map} +1 -1
- package/lib/{continuous-drawing-helper-BlGATN0C.mjs → continuous-drawing-helper-C_Yc0uuv.mjs} +3 -3
- package/lib/{continuous-drawing-helper-BlGATN0C.mjs.map → continuous-drawing-helper-C_Yc0uuv.mjs.map} +1 -1
- package/lib/{decorate-CTUwswpM.mjs → decorate-BAtqSPNS.mjs} +1 -1
- package/lib/{decorate-CTUwswpM.mjs.map → decorate-BAtqSPNS.mjs.map} +1 -1
- package/lib/dimensioning-helper-Bzf1sbpy.mjs +2 -0
- package/lib/{dimensioning-helper-DMop5qcu.mjs → dimensioning-helper-D9oxGkry.mjs} +5 -5
- package/lib/{dimensioning-helper-DMop5qcu.mjs.map → dimensioning-helper-D9oxGkry.mjs.map} +1 -1
- package/lib/{fflate.module-n0Jozp8Z.mjs → fflate.module-CTnSdWOb.mjs} +1 -1
- package/lib/{fflate.module-n0Jozp8Z.mjs.map → fflate.module-CTnSdWOb.mjs.map} +1 -1
- package/lib/{glb-viewer-ClwM-_6N.mjs → glb-viewer-A5vSLFZ5.mjs} +8 -8
- package/lib/{glb-viewer-ClwM-_6N.mjs.map → glb-viewer-A5vSLFZ5.mjs.map} +1 -1
- package/lib/glb-viewer-B4ILlvw0.mjs +2 -0
- package/lib/{highlight-coordinator-COSQsFCt.mjs → highlight-coordinator-CZEJGeXA.mjs} +4 -4
- package/lib/{highlight-coordinator-COSQsFCt.mjs.map → highlight-coordinator-CZEJGeXA.mjs.map} +1 -1
- package/lib/{homag-intelligence-7erRasyd.mjs → homag-intelligence-BdCDX7LF.mjs} +3 -3
- package/lib/{homag-intelligence-7erRasyd.mjs.map → homag-intelligence-BdCDX7LF.mjs.map} +1 -1
- package/lib/{imos-ix-poc-export-helper-ChN0ot1C.mjs → imos-ix-poc-export-helper-CaXXDNvP.mjs} +4 -4
- package/lib/{imos-ix-poc-export-helper-ChN0ot1C.mjs.map → imos-ix-poc-export-helper-CaXXDNvP.mjs.map} +1 -1
- package/lib/{kernel-C7YDLxq8.mjs → kernel-BWfRHWkW.mjs} +1 -1
- package/lib/{kernel-C7YDLxq8.mjs.map → kernel-BWfRHWkW.mjs.map} +1 -1
- package/lib/{kernel-utils-042AuCQh.mjs → kernel-utils-BYEsHVYJ.mjs} +2 -2
- package/lib/{kernel-utils-042AuCQh.mjs.map → kernel-utils-BYEsHVYJ.mjs.map} +1 -1
- package/lib/{layer-CFAr2mK_.mjs → layer-CIWL5ZW3.mjs} +1 -1
- package/lib/{layer-CFAr2mK_.mjs.map → layer-CIWL5ZW3.mjs.map} +1 -1
- package/lib/{main-dvJVxkY5.mjs → main-BUl8iCi1.mjs} +3149 -25886
- package/lib/main-BUl8iCi1.mjs.map +1 -0
- package/lib/{material-viewer-DsjLu7dY.mjs → material-viewer-C4SqVaGG.mjs} +7 -7
- package/lib/{material-viewer-DsjLu7dY.mjs.map → material-viewer-C4SqVaGG.mjs.map} +1 -1
- package/lib/packages-C9gO5mKk.mjs +10 -0
- package/lib/packages-C9gO5mKk.mjs.map +1 -0
- package/lib/planner-49YwTdiA.mjs +2 -0
- package/lib/{planner-mEOHjdf5.mjs → planner-t4QH26WW.mjs} +3 -3
- package/lib/{planner-mEOHjdf5.mjs.map → planner-t4QH26WW.mjs.map} +1 -1
- package/lib/{plugin-system-DRpL0Rer.mjs → plugin-system-COZJdJH_.mjs} +3 -3
- package/lib/{plugin-system-DRpL0Rer.mjs.map → plugin-system-COZJdJH_.mjs.map} +1 -1
- package/lib/roomle-headless.d.ts +142 -98
- package/lib/roomle-headless.js +74 -58
- package/lib/roomle-headless.js.map +1 -1
- package/lib/{roomle-renderer-BD3ZmpLS.mjs → roomle-renderer-DhLUaHJZ.mjs} +23 -10
- package/lib/roomle-renderer-DhLUaHJZ.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +123 -95
- package/lib/roomle-sdk.js +9 -9
- package/lib/{roomle-webgpu-renderer--zQziKoO.mjs → roomle-webgpu-renderer-CRGcdahn.mjs} +293 -240
- package/lib/roomle-webgpu-renderer-CRGcdahn.mjs.map +1 -0
- package/lib/{scene-renderer-DfFZINZw.mjs → scene-renderer-D5CfxCag.mjs} +7 -7
- package/lib/{scene-renderer-DfFZINZw.mjs.map → scene-renderer-D5CfxCag.mjs.map} +1 -1
- package/lib/{script-loader-CBi6aL4c.mjs → script-loader-D6IuUFjw.mjs} +3 -3
- package/lib/{script-loader-CBi6aL4c.mjs.map → script-loader-D6IuUFjw.mjs.map} +1 -1
- package/lib/{shading-settings-BOXM96zx.mjs → shading-settings-BEMqEGzB.mjs} +3 -3
- package/lib/{shading-settings-BOXM96zx.mjs.map → shading-settings-BEMqEGzB.mjs.map} +1 -1
- package/lib/{stats-helper-BjkO2TkP.mjs → stats-helper-DAfbSToL.mjs} +3 -3
- package/lib/{stats-helper-BjkO2TkP.mjs.map → stats-helper-DAfbSToL.mjs.map} +1 -1
- package/lib/svgo.browser-DYieWzyw.mjs +21270 -0
- package/lib/svgo.browser-DYieWzyw.mjs.map +1 -0
- package/lib/{three.core-tV_4n8Wg.mjs → three.core-DjCexDCp.mjs} +1 -1
- package/lib/{three.core-tV_4n8Wg.mjs.map → three.core-DjCexDCp.mjs.map} +1 -1
- package/lib/{three.module-DC5fF9Zl.mjs → three.module-CuRNgijg.mjs} +2 -2
- package/lib/{three.module-DC5fF9Zl.mjs.map → three.module-CuRNgijg.mjs.map} +1 -1
- package/lib/{three.tsl-Caqi2VRr.mjs → three.tsl-BIBER8nk.mjs} +49 -47
- package/lib/{three.tsl-Caqi2VRr.mjs.map → three.tsl-BIBER8nk.mjs.map} +1 -1
- package/lib/three.tsl-Q-21y0pO.mjs +2 -0
- package/lib/{three.webgpu-CT4fuV2X.mjs → three.webgpu-Bz4Xtk0X.mjs} +2 -2
- package/lib/{three.webgpu-CT4fuV2X.mjs.map → three.webgpu-Bz4Xtk0X.mjs.map} +1 -1
- package/lib/{three.webgpu-CxNhl3k-.mjs → three.webgpu-dtN0kDKB.mjs} +2 -2
- package/lib/{threejs-utils-CFcj19P1.mjs → threejs-utils-Dpvg3Czz.mjs} +5 -5
- package/lib/{threejs-utils-CFcj19P1.mjs.map → threejs-utils-Dpvg3Czz.mjs.map} +1 -1
- package/lib/{tools-core-DdgxDXwP.mjs → tools-core-BDOFf9le.mjs} +3 -3
- package/lib/{tools-core-DdgxDXwP.mjs.map → tools-core-BDOFf9le.mjs.map} +1 -1
- package/lib/workers-DcgrO-z7.mjs +6 -0
- package/lib/{workers-Dc-RTL8D.mjs.map → workers-DcgrO-z7.mjs.map} +1 -1
- package/package.json +1 -1
- package/lib/asset-loader.worker-CHyN7JB1.mjs.map +0 -1
- package/lib/budgeteer.sw-BCLEIWCW.mjs.map +0 -1
- package/lib/configurator-DrfzsCZi.mjs +0 -2
- package/lib/dimensioning-helper-BwBj5QDM.mjs +0 -2
- package/lib/glb-viewer-DDQoDXq6.mjs +0 -2
- package/lib/main-dvJVxkY5.mjs.map +0 -1
- package/lib/packages-DKHZt16c.mjs +0 -4
- package/lib/planner-Beg0IuiG.mjs +0 -2
- package/lib/roomle-renderer-BD3ZmpLS.mjs.map +0 -1
- package/lib/roomle-webgpu-renderer--zQziKoO.mjs.map +0 -1
- package/lib/three.tsl-Bb8l7rD7.mjs +0 -2
- package/lib/workers-Dc-RTL8D.mjs +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roomle-renderer-DhLUaHJZ.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 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 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 * @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 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 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"}
|
package/lib/roomle-sdk.d.ts
CHANGED
|
@@ -19,6 +19,11 @@ import { HiCallbacks } from '../../../../common/src/hi/hi-types';
|
|
|
19
19
|
import { HiOrderData } from '../../../../common/src/hi/hi-types';
|
|
20
20
|
import { HiOrderHeader } from '../../../../common/src/hi/hi-types';
|
|
21
21
|
import { Intersection } from 'three';
|
|
22
|
+
import { isIdAComponent } from '../../common/src/utils/id-inferrer';
|
|
23
|
+
import { isIdAConfigurationString } from '../../common/src/utils/id-inferrer';
|
|
24
|
+
import { isIdAnItem } from '../../common/src/utils/id-inferrer';
|
|
25
|
+
import { isIdAPlan } from '../../common/src/utils/id-inferrer';
|
|
26
|
+
import { isPlanSnapshotId } from '../../common/src/utils/id-inferrer';
|
|
22
27
|
import { Layers } from 'three';
|
|
23
28
|
import { Light } from 'three';
|
|
24
29
|
import { Material } from 'three';
|
|
@@ -718,12 +723,6 @@ export declare interface CommonInitData {
|
|
|
718
723
|
* @groups scene-settings
|
|
719
724
|
*/
|
|
720
725
|
colors?: ColorsIn3dScene;
|
|
721
|
-
/**
|
|
722
|
-
* @deprecated
|
|
723
|
-
* @description Set if the currently loaded id is an item or a configuration.
|
|
724
|
-
* In the new configurator UI this is determined automatically based on the id.
|
|
725
|
-
*/
|
|
726
|
-
isItem?: boolean;
|
|
727
726
|
/**
|
|
728
727
|
* @description The item id or configuration id of the item which should be loaded.
|
|
729
728
|
* Examples:
|
|
@@ -731,13 +730,6 @@ export declare interface CommonInitData {
|
|
|
731
730
|
* Item id: usm:frame
|
|
732
731
|
*/
|
|
733
732
|
id?: RapiId;
|
|
734
|
-
/* Excluded from this release type: preloadId */
|
|
735
|
-
/**
|
|
736
|
-
* @deprecated
|
|
737
|
-
* @description Set if the AR button should be shown.
|
|
738
|
-
* In the new configurator UI this is in the configurator settings object called buttons.
|
|
739
|
-
*/
|
|
740
|
-
showArButton?: boolean;
|
|
741
733
|
/* Excluded from this release type: useRoomlePrice */
|
|
742
734
|
/**
|
|
743
735
|
* @description Set how many positions after the decimal point should be shown.
|
|
@@ -768,24 +760,6 @@ export declare interface CommonInitData {
|
|
|
768
760
|
* - 'short': Short unit string, for example '200 m'
|
|
769
761
|
*/
|
|
770
762
|
unitStringType?: string;
|
|
771
|
-
/**
|
|
772
|
-
* @description Add a tag id which is used to show different variations for the current item/configuration
|
|
773
|
-
* @deprecated
|
|
774
|
-
*/
|
|
775
|
-
typeChangeTag?: RapiId;
|
|
776
|
-
/* Excluded from this release type: preloadHint */
|
|
777
|
-
/**
|
|
778
|
-
* @deprecated
|
|
779
|
-
* @description Change the offset of the camera. For example if you add a margin left (0.1 means 10%) then
|
|
780
|
-
* the item moves to the right.
|
|
781
|
-
* This value is overridden in the new configurator UI.
|
|
782
|
-
* */
|
|
783
|
-
offset?: CanvasOffset;
|
|
784
|
-
/**
|
|
785
|
-
* @deprecated
|
|
786
|
-
* @description Add a tag id which is used to show different variations when opening the configurator
|
|
787
|
-
*/
|
|
788
|
-
startTag?: RapiId;
|
|
789
763
|
/**
|
|
790
764
|
* @description When mesh selection is enabled, the meshes of the object are used directly for highlighting.
|
|
791
765
|
* Setting it to false could be useful for square/rectangular (shelf) items.
|
|
@@ -795,7 +769,6 @@ export declare interface CommonInitData {
|
|
|
795
769
|
* @description if set to true it shows a little overlay with performance stats
|
|
796
770
|
*/
|
|
797
771
|
stats?: boolean;
|
|
798
|
-
/* Excluded from this release type: _measureTraffic */
|
|
799
772
|
/**
|
|
800
773
|
* @description This flag enables:
|
|
801
774
|
* - Scripter debug logs (e.g. which parameter is not assigned to a parameter group)
|
|
@@ -817,7 +790,6 @@ export declare interface CommonInitData {
|
|
|
817
790
|
* For more information ask your Roomle contact.
|
|
818
791
|
*/
|
|
819
792
|
usePriceService?: boolean;
|
|
820
|
-
/* Excluded from this release type: disableEnvMap */
|
|
821
793
|
/**
|
|
822
794
|
* @description Url to an exr or hdr env map
|
|
823
795
|
* @groups scene-settings
|
|
@@ -1106,11 +1078,6 @@ export declare interface ConfiguratorDebugCallbacks {
|
|
|
1106
1078
|
}
|
|
1107
1079
|
|
|
1108
1080
|
export declare interface ConfiguratorInitData {
|
|
1109
|
-
/**
|
|
1110
|
-
* @deprecated
|
|
1111
|
-
* @description Download all necessary files to run the configurator in offline mode
|
|
1112
|
-
*/
|
|
1113
|
-
offlineSync?: string;
|
|
1114
1081
|
/**
|
|
1115
1082
|
* @description Sets the behavior of the highlighting of a hovered component.
|
|
1116
1083
|
* usage: highlighting=smart
|
|
@@ -1127,11 +1094,6 @@ export declare interface ConfiguratorInitData {
|
|
|
1127
1094
|
* @groups scene-settings
|
|
1128
1095
|
*/
|
|
1129
1096
|
ls?: string;
|
|
1130
|
-
/**
|
|
1131
|
-
* @deprecated
|
|
1132
|
-
* @description define which floors to load
|
|
1133
|
-
*/
|
|
1134
|
-
floorMaterialsTag?: RapiId;
|
|
1135
1097
|
/**
|
|
1136
1098
|
* @description Set the distance to which the user can zoom (in centimeters).
|
|
1137
1099
|
* default: object size divided by 10 or 10 cm
|
|
@@ -1208,16 +1170,6 @@ export declare interface ConfiguratorInitData {
|
|
|
1208
1170
|
* @groups scene-settings
|
|
1209
1171
|
*/
|
|
1210
1172
|
transparentBackground?: boolean;
|
|
1211
|
-
/**
|
|
1212
|
-
* @deprecated
|
|
1213
|
-
* @description Shows partlist if there are no prices
|
|
1214
|
-
*/
|
|
1215
|
-
showInfos?: boolean;
|
|
1216
|
-
/**
|
|
1217
|
-
* @deprecated
|
|
1218
|
-
* @description Show price label using prices from configuration script
|
|
1219
|
-
*/
|
|
1220
|
-
showPrice?: boolean;
|
|
1221
1173
|
/**
|
|
1222
1174
|
* @description If set to true it will try to apply all current global parameters to the loaded object
|
|
1223
1175
|
*/
|
|
@@ -1233,6 +1185,7 @@ export declare interface ConfiguratorInitData {
|
|
|
1233
1185
|
cameraSpacing?: number;
|
|
1234
1186
|
/* Excluded from this release type: ssr */
|
|
1235
1187
|
/* Excluded from this release type: featureFlags */
|
|
1188
|
+
/* Excluded from this release type: webGpuConfig */
|
|
1236
1189
|
/**
|
|
1237
1190
|
* @description if true, the meshes of the component will be used, in addition to the bounding box, for raycasting (selecting)
|
|
1238
1191
|
* Warning: this will decrease performance when hovering over components with complex meshes
|
|
@@ -3343,7 +3296,6 @@ export declare interface FeatureFlags {
|
|
|
3343
3296
|
/* Excluded from this release type: interiorLights */
|
|
3344
3297
|
/* Excluded from this release type: advancedDimensioning */
|
|
3345
3298
|
/* Excluded from this release type: webGpu */
|
|
3346
|
-
/* Excluded from this release type: webGpuConfig */
|
|
3347
3299
|
/* Excluded from this release type: advancedHighlighting */
|
|
3348
3300
|
/* Excluded from this release type: fence */
|
|
3349
3301
|
/* Excluded from this release type: awaitConfigurationSavesBeforeRequestPlan */
|
|
@@ -3359,7 +3311,6 @@ export declare class FeatureFlagsImplementation implements FeatureFlags {
|
|
|
3359
3311
|
advancedDimensioning: boolean;
|
|
3360
3312
|
enableSnapping: boolean;
|
|
3361
3313
|
webGpu: boolean;
|
|
3362
|
-
webGpuConfig: WebGpuConfig;
|
|
3363
3314
|
forceSaveThumbnails: boolean;
|
|
3364
3315
|
advancedHighlighting: boolean;
|
|
3365
3316
|
fence: boolean;
|
|
@@ -3589,7 +3540,6 @@ export declare class GlobalInitData implements Context, GlobalInitDataDefinition
|
|
|
3589
3540
|
overrideCountry: string | null;
|
|
3590
3541
|
configuratorId?: string;
|
|
3591
3542
|
overrideRapi?: RapiServerUrlType;
|
|
3592
|
-
alwaysUseCache: boolean;
|
|
3593
3543
|
customApiUrl?: string;
|
|
3594
3544
|
e2e: boolean;
|
|
3595
3545
|
e2eRoomleRendererForImages: boolean;
|
|
@@ -3616,11 +3566,6 @@ export declare interface GlobalInitDataDefinition {
|
|
|
3616
3566
|
* @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.
|
|
3617
3567
|
*/
|
|
3618
3568
|
configuratorId?: string;
|
|
3619
|
-
/**
|
|
3620
|
-
* @deprecated
|
|
3621
|
-
* @description when set to true and assets were precached by the asset loader they are returned from cache. Otherwise we always return a fresh copy from network usage: alwaysUseCache=true default: not set -> assets fetched from url, set -> assets from cache
|
|
3622
|
-
*/
|
|
3623
|
-
alwaysUseCache?: boolean;
|
|
3624
3569
|
/**
|
|
3625
3570
|
* @description Set which RAPI (Roomle API) backend should be used usage: customApiUrl=https://www.roomle.com/api/v2
|
|
3626
3571
|
*/
|
|
@@ -4060,30 +4005,21 @@ export declare class InitData implements Context, Omit<InitDataDefinition, 'colo
|
|
|
4060
4005
|
_creator_: string;
|
|
4061
4006
|
autoQuality: boolean;
|
|
4062
4007
|
colors: ThreeJsColorsIn3dScene;
|
|
4063
|
-
isItem: boolean;
|
|
4064
4008
|
id?: RapiId;
|
|
4065
|
-
preloadId?: RapiId;
|
|
4066
|
-
showArButton: boolean;
|
|
4067
4009
|
useRoomlePrice: boolean;
|
|
4068
4010
|
precisionInch?: number;
|
|
4069
4011
|
precisionCm?: number;
|
|
4070
4012
|
unit?: string;
|
|
4071
4013
|
unitStringType?: string;
|
|
4072
|
-
typeChangeTag?: RapiId;
|
|
4073
|
-
preloadHint?: RapiId;
|
|
4074
|
-
offset?: CanvasOffset;
|
|
4075
|
-
startTag?: RapiId;
|
|
4076
4014
|
measurementSystem?: Enumify_3<typeof MEASUREMENT_SYSTEM_STRING>;
|
|
4077
4015
|
meshSelection: boolean;
|
|
4078
4016
|
stats: boolean;
|
|
4079
|
-
_measureTraffic: boolean;
|
|
4080
4017
|
debug: boolean;
|
|
4081
4018
|
debugGeometry: boolean;
|
|
4082
4019
|
debugLines: boolean;
|
|
4083
4020
|
debugBoundingBox: boolean;
|
|
4084
4021
|
usePriceService: boolean;
|
|
4085
4022
|
disableDebugGUI: boolean;
|
|
4086
|
-
disableEnvMap: boolean;
|
|
4087
4023
|
envMapUrl: string;
|
|
4088
4024
|
envMapIntensity: number;
|
|
4089
4025
|
envMapRotation: number;
|
|
@@ -4097,12 +4033,10 @@ export declare class InitData implements Context, Omit<InitDataDefinition, 'colo
|
|
|
4097
4033
|
restrictionLevel: number;
|
|
4098
4034
|
hi?: HomagIntelligenceInitData;
|
|
4099
4035
|
disableDefaultLabelStyles: boolean;
|
|
4100
|
-
offlineSync?: string;
|
|
4101
4036
|
highlighting: Enumify_3<typeof ROOMLE_HIGHLIGHTNG>;
|
|
4102
4037
|
initialFloorMaterial?: string;
|
|
4103
4038
|
dls?: string;
|
|
4104
4039
|
ls?: string;
|
|
4105
|
-
floorMaterialsTag?: RapiId;
|
|
4106
4040
|
zoomDistance?: number;
|
|
4107
4041
|
cameraSpacing: number;
|
|
4108
4042
|
cameraRestriction?: number;
|
|
@@ -4117,13 +4051,12 @@ export declare class InitData implements Context, Omit<InitDataDefinition, 'colo
|
|
|
4117
4051
|
transparentHighlighting: boolean;
|
|
4118
4052
|
transparentBackground: boolean;
|
|
4119
4053
|
snappingEnabled: boolean;
|
|
4120
|
-
showInfos: boolean;
|
|
4121
|
-
showPrice: boolean;
|
|
4122
4054
|
applyCurrentGlobalParameters: boolean;
|
|
4123
4055
|
configureInRoom: boolean;
|
|
4124
4056
|
dockInRoom: boolean;
|
|
4125
4057
|
discardExternalObjectsWhenLoadingPlan: boolean;
|
|
4126
4058
|
featureFlags: FeatureFlagsImplementation;
|
|
4059
|
+
webGpuConfig: WebGpuConfig;
|
|
4127
4060
|
meshRaycasting: boolean;
|
|
4128
4061
|
defaultFloorMaterial?: number | string;
|
|
4129
4062
|
mode: Enumify_3<typeof CAMERA_TYPE>;
|
|
@@ -4309,6 +4242,16 @@ export declare const isExtObjId: (id: unknown) => id is ExtObjId_2;
|
|
|
4309
4242
|
|
|
4310
4243
|
export declare const isFirefox: () => boolean;
|
|
4311
4244
|
|
|
4245
|
+
export { isIdAComponent }
|
|
4246
|
+
|
|
4247
|
+
export { isIdAConfigurationString }
|
|
4248
|
+
|
|
4249
|
+
export { isIdAnItem }
|
|
4250
|
+
|
|
4251
|
+
export { isIdAPlan }
|
|
4252
|
+
|
|
4253
|
+
export { isPlanSnapshotId }
|
|
4254
|
+
|
|
4312
4255
|
export declare const isSafari: () => boolean;
|
|
4313
4256
|
|
|
4314
4257
|
export declare const KERNEL_MESSAGE_TYPE: {
|
|
@@ -4956,12 +4899,6 @@ export declare interface LogMessageScope {
|
|
|
4956
4899
|
export declare class LongArray extends EmsArray<number> {
|
|
4957
4900
|
}
|
|
4958
4901
|
|
|
4959
|
-
export declare interface LutImageDefinition {
|
|
4960
|
-
name: string;
|
|
4961
|
-
url: string;
|
|
4962
|
-
type: string;
|
|
4963
|
-
}
|
|
4964
|
-
|
|
4965
4902
|
export declare const enum MAIL_TYPE {
|
|
4966
4903
|
STANDARD = 1,
|
|
4967
4904
|
AUGMENTED_REALITY = 2,
|
|
@@ -5255,6 +5192,24 @@ export declare interface MessageObject {
|
|
|
5255
5192
|
type: string;
|
|
5256
5193
|
}
|
|
5257
5194
|
|
|
5195
|
+
/**
|
|
5196
|
+
* Options for the model exports (GLB/USDZ).
|
|
5197
|
+
*
|
|
5198
|
+
* Example:
|
|
5199
|
+
* ```
|
|
5200
|
+
* {
|
|
5201
|
+
* filename: 'my-sofa' // downloads as my-sofa.glb / my-sofa.usdz
|
|
5202
|
+
* }
|
|
5203
|
+
* ```
|
|
5204
|
+
*/
|
|
5205
|
+
export declare interface ModelExportOptions {
|
|
5206
|
+
/**
|
|
5207
|
+
* Name of the downloaded file. The matching extension is appended if it is
|
|
5208
|
+
* not part of the given name. Defaults to `roomle-export`.
|
|
5209
|
+
*/
|
|
5210
|
+
filename?: string;
|
|
5211
|
+
}
|
|
5212
|
+
|
|
5258
5213
|
export declare abstract class Node_2 extends PlanElement {
|
|
5259
5214
|
readonly nodeType: NodeType;
|
|
5260
5215
|
getNumberOfConnectedWalls(): number;
|
|
@@ -6247,8 +6202,8 @@ export declare class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
6247
6202
|
private _recycleLights;
|
|
6248
6203
|
removePlanObjectFromScene(planViewModel: PlanElementViewModel | undefined): void;
|
|
6249
6204
|
planElementChanged(plan: Plan_2, planElementViewModel: PlanElementViewModel): void;
|
|
6250
|
-
exportGLB(): Promise<void>;
|
|
6251
|
-
exportUSDZ(): Promise<void>;
|
|
6205
|
+
exportGLB(options?: ModelExportOptions): Promise<void>;
|
|
6206
|
+
exportUSDZ(options?: ModelExportOptions): Promise<void>;
|
|
6252
6207
|
importGLB(url: string): void;
|
|
6253
6208
|
clearScene(): void;
|
|
6254
6209
|
private _addSky;
|
|
@@ -8045,12 +8000,12 @@ export declare class RoomleConfigurator<P extends readonly PluginName[] = readon
|
|
|
8045
8000
|
*
|
|
8046
8001
|
* @returns the elevation plans, containing one plan with its SVG markup
|
|
8047
8002
|
*/
|
|
8048
|
-
create2DElevationPlan(): ElevationPlans
|
|
8003
|
+
create2DElevationPlan(): Promise<ElevationPlans>;
|
|
8049
8004
|
/**
|
|
8050
8005
|
* Creates the 2D elevation plan of the current configuration (see
|
|
8051
8006
|
* {@link create2DElevationPlan}) and downloads it as an SVG file.
|
|
8052
8007
|
*/
|
|
8053
|
-
download2DElevationPlan(): void
|
|
8008
|
+
download2DElevationPlan(): Promise<void>;
|
|
8054
8009
|
private createCameraForElevationPlan;
|
|
8055
8010
|
exportCanvasScreenshot(quality?: number): Promise<string>;
|
|
8056
8011
|
initSceneManager(sceneManager?: ConfiguratorSceneManager): void;
|
|
@@ -8699,12 +8654,16 @@ export declare class RoomleConfigurator<P extends readonly PluginName[] = readon
|
|
|
8699
8654
|
updateComponentParameter(runtimeId: number, parameterKey: string, value: string): void;
|
|
8700
8655
|
/**
|
|
8701
8656
|
* Downloads the current configuration model in GLTF .GLB model file.
|
|
8657
|
+
*
|
|
8658
|
+
* @param options Optional export options, e.g. `{ filename: 'my-sofa' }`.
|
|
8702
8659
|
*/
|
|
8703
|
-
exportGLB(): Promise<void>;
|
|
8660
|
+
exportGLB(options?: ModelExportOptions): Promise<void>;
|
|
8704
8661
|
/**
|
|
8705
8662
|
* Downloads the current configuration model to Universal Scene Descriptor Zip .USDZ model file.
|
|
8663
|
+
*
|
|
8664
|
+
* @param options Optional export options, e.g. `{ filename: 'my-sofa' }`.
|
|
8706
8665
|
*/
|
|
8707
|
-
exportUSDZ(): Promise<void>;
|
|
8666
|
+
exportUSDZ(options?: ModelExportOptions): Promise<void>;
|
|
8708
8667
|
}
|
|
8709
8668
|
|
|
8710
8669
|
export declare type RoomleConfiguratorType = RoomleConfigurator | RoomleConfiguratorWithExtObjs;
|
|
@@ -9004,12 +8963,12 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
9004
8963
|
*
|
|
9005
8964
|
* @returns the elevation plans, each containing its SVG markup
|
|
9006
8965
|
*/
|
|
9007
|
-
create2DElevationPlan(): ElevationPlans
|
|
8966
|
+
create2DElevationPlan(): Promise<ElevationPlans>;
|
|
9008
8967
|
/**
|
|
9009
8968
|
* Creates the 2D elevation plans of the current plan (see
|
|
9010
8969
|
* {@link create2DElevationPlan}) and downloads each plan as an SVG file.
|
|
9011
8970
|
*/
|
|
9012
|
-
download2DElevationPlan(): void
|
|
8971
|
+
download2DElevationPlan(): Promise<void>;
|
|
9013
8972
|
loadPlan(id: string, options?: InitDataDefinition & GlobalInitDataDefinition): Promise<RapiPlan | RapiPlanSnapshotGetData>;
|
|
9014
8973
|
/**
|
|
9015
8974
|
* Set general configuration parameter
|
|
@@ -9023,12 +8982,16 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
9023
8982
|
resetCameraPosition(): void;
|
|
9024
8983
|
/**
|
|
9025
8984
|
* Downloads the current plan/scene to a GLTF .GLB model file.
|
|
8985
|
+
*
|
|
8986
|
+
* @param options Optional export options, e.g. `{ filename: 'my-plan' }`.
|
|
9026
8987
|
*/
|
|
9027
|
-
exportGLB(): void;
|
|
8988
|
+
exportGLB(options?: ModelExportOptions): void;
|
|
9028
8989
|
/**
|
|
9029
8990
|
* Downloads the current plan/scene to a Universal Scene Descriptor Zip .USDZ model file.
|
|
8991
|
+
*
|
|
8992
|
+
* @param options Optional export options, e.g. `{ filename: 'my-plan' }`.
|
|
9030
8993
|
*/
|
|
9031
|
-
exportUSDZ(): Promise<void>;
|
|
8994
|
+
exportUSDZ(options?: ModelExportOptions): Promise<void>;
|
|
9032
8995
|
importGLB(url: string): void;
|
|
9033
8996
|
private _initPromiseCallback;
|
|
9034
8997
|
isReady(): void;
|
|
@@ -9707,7 +9670,6 @@ export declare abstract class RoomleRenderer<RendererType extends WebGLRenderer
|
|
|
9707
9670
|
switchToPlanner(_renderMode: PlannerRenderMode): void;
|
|
9708
9671
|
abstract setShadingType(shadingType: SceneShadingType): void;
|
|
9709
9672
|
abstract setCustomOutlineParameters(outlineCustomParameters: OutlineCustomParameters): void;
|
|
9710
|
-
abstract loadLutImages(luts: LutImageDefinition[]): void;
|
|
9711
9673
|
abstract render(scene: Scene, camera: Camera): void;
|
|
9712
9674
|
abstract showGUI(updateCallback: () => void): void;
|
|
9713
9675
|
abstract clearCache(): void;
|
|
@@ -9791,7 +9753,7 @@ export declare class RoomleWebGPURenderer extends RoomleRenderer<WebGPURenderer>
|
|
|
9791
9753
|
private _webGpuGroundShadowReflection;
|
|
9792
9754
|
private _initData;
|
|
9793
9755
|
constructor(creator: string, renderer: WebGPURenderer, enableSSGI: boolean, outlineColors?: OutlineColors);
|
|
9794
|
-
private
|
|
9756
|
+
private enableDefaultRenderPasses;
|
|
9795
9757
|
addGroundShadowLightAndFloor(scene: Scene): Promise<void>;
|
|
9796
9758
|
private addRenderPass;
|
|
9797
9759
|
clearCache(): void;
|
|
@@ -9801,7 +9763,6 @@ export declare class RoomleWebGPURenderer extends RoomleRenderer<WebGPURenderer>
|
|
|
9801
9763
|
switchToConfigurator(): void;
|
|
9802
9764
|
switchToPlanner(renderMode: PlannerRenderMode): void;
|
|
9803
9765
|
highlightObjects(selectedMeshes: Object3D[]): void;
|
|
9804
|
-
loadLutImages(_luts: LutImageDefinition[]): void;
|
|
9805
9766
|
render(scene: Scene, camera: Camera): void;
|
|
9806
9767
|
private renderToFreezeTarget;
|
|
9807
9768
|
private updateCameraProjectionMatrix;
|
|
@@ -9812,11 +9773,14 @@ export declare class RoomleWebGPURenderer extends RoomleRenderer<WebGPURenderer>
|
|
|
9812
9773
|
private getOutlinePassOrUndefined;
|
|
9813
9774
|
private enableSsgiPass;
|
|
9814
9775
|
private enableTraaPass;
|
|
9776
|
+
private enableFogPass;
|
|
9777
|
+
private disableFogPass;
|
|
9815
9778
|
private applyQualityParameters;
|
|
9816
9779
|
private getSsgiPassOrUndefined;
|
|
9817
9780
|
setShadingType(shadingType: SceneShadingType): void;
|
|
9818
9781
|
showGUI(updateCallback: () => void): void;
|
|
9819
9782
|
private addDebugGUI;
|
|
9783
|
+
private applyToneMappingConfig;
|
|
9820
9784
|
private addToneMappingSettings;
|
|
9821
9785
|
getOrCreateGUIParameters(name: string): ParametersGroup;
|
|
9822
9786
|
private createAndCacheGUIParameters;
|
|
@@ -10055,9 +10019,9 @@ export declare abstract class SceneManager implements Context, LifeCycleCallback
|
|
|
10055
10019
|
protected _getCameraControl2D(): CameraControl2D;
|
|
10056
10020
|
protected _getCameraControlFirstPerson(): CameraControlFirstPerson;
|
|
10057
10021
|
createUSDZExport(): Promise<Uint8Array<ArrayBuffer> | undefined>;
|
|
10058
|
-
exportUSDZ(): Promise<void>;
|
|
10022
|
+
exportUSDZ(options?: ModelExportOptions): Promise<void>;
|
|
10059
10023
|
createExportGLB(objectFilter?: (object: Object3D) => boolean): Promise<ArrayBuffer | null>;
|
|
10060
|
-
exportGLB(): Promise<void>;
|
|
10024
|
+
exportGLB(options?: ModelExportOptions): Promise<void>;
|
|
10061
10025
|
}
|
|
10062
10026
|
|
|
10063
10027
|
export declare interface ScenePlugin extends ScenePluginHooks, Context {
|
|
@@ -10842,12 +10806,25 @@ export declare interface WallSide {
|
|
|
10842
10806
|
value: Enumify<typeof WALL_SIDES>;
|
|
10843
10807
|
}
|
|
10844
10808
|
|
|
10809
|
+
export declare const WEBGPU_TONE_MAPPINGS: {
|
|
10810
|
+
readonly NONE: "none";
|
|
10811
|
+
readonly LINEAR: "linear";
|
|
10812
|
+
readonly REINHARD: "reinhard";
|
|
10813
|
+
readonly CINEON: "cineon";
|
|
10814
|
+
readonly ACES_FILMIC: "acesFilmic";
|
|
10815
|
+
readonly AGX: "agx";
|
|
10816
|
+
readonly NEUTRAL: "neutral";
|
|
10817
|
+
};
|
|
10818
|
+
|
|
10845
10819
|
export declare class WebGpuConfig implements WebGpuConfigDefinition {
|
|
10846
10820
|
autoDetectQualityLevel: boolean;
|
|
10847
10821
|
autoQualityMinFps: number;
|
|
10848
10822
|
autoQualityMaxFps: number;
|
|
10849
10823
|
topLight: WebGpuTopLightConfig;
|
|
10850
10824
|
groundReflection: WebGpuGroundReflectionConfig;
|
|
10825
|
+
fog: WebGpuFogConfig;
|
|
10826
|
+
toneMapping: WebGpuToneMapping;
|
|
10827
|
+
toneMappingExposure: number;
|
|
10851
10828
|
}
|
|
10852
10829
|
|
|
10853
10830
|
export declare interface WebGpuConfigDefinition {
|
|
@@ -10880,6 +10857,55 @@ export declare interface WebGpuConfigDefinition {
|
|
|
10880
10857
|
* @description Visual configuration for the WebGPU ground reflection.
|
|
10881
10858
|
*/
|
|
10882
10859
|
groundReflection?: WebGpuGroundReflectionConfigDefinition;
|
|
10860
|
+
/**
|
|
10861
|
+
* @description Visual configuration for the WebGPU fog.
|
|
10862
|
+
*/
|
|
10863
|
+
fog?: WebGpuFogConfigDefinition;
|
|
10864
|
+
/**
|
|
10865
|
+
* @description Tone mapping operator applied by the WebGPU renderer.
|
|
10866
|
+
* @default 'none'
|
|
10867
|
+
*/
|
|
10868
|
+
toneMapping?: WebGpuToneMapping;
|
|
10869
|
+
/**
|
|
10870
|
+
* @description Exposure (intensity) of the tone mapping applied by the
|
|
10871
|
+
* WebGPU renderer. Higher values produce a brighter image.
|
|
10872
|
+
* @default 1
|
|
10873
|
+
*/
|
|
10874
|
+
toneMappingExposure?: number;
|
|
10875
|
+
}
|
|
10876
|
+
|
|
10877
|
+
export declare class WebGpuFogConfig implements WebGpuFogConfigDefinition {
|
|
10878
|
+
enabled: boolean;
|
|
10879
|
+
nearBlend: number;
|
|
10880
|
+
farBlend: number;
|
|
10881
|
+
}
|
|
10882
|
+
|
|
10883
|
+
export declare interface WebGpuFogConfigDefinition {
|
|
10884
|
+
/**
|
|
10885
|
+
* @description If true, a fog is added to the scene in webGPU mode.
|
|
10886
|
+
* This is mainly so you cant see the outer edge of the
|
|
10887
|
+
* floor (which makes it blends smoothly into the background).
|
|
10888
|
+
* This fog exists in a cylindrical shape around the origin and the
|
|
10889
|
+
* farBlend and nearBlend parameters indirectly control the radius
|
|
10890
|
+
* at which the fog starts and ends.
|
|
10891
|
+
* @default true
|
|
10892
|
+
*/
|
|
10893
|
+
enabled?: boolean;
|
|
10894
|
+
/**
|
|
10895
|
+
* @description Radial distance from the start of the fog to the end of the fog.
|
|
10896
|
+
* This creates a smooth transition from full fog to no fog.
|
|
10897
|
+
* Larger values produce a softer, more gradual fog transition.
|
|
10898
|
+
* @default 7
|
|
10899
|
+
*/
|
|
10900
|
+
nearBlend?: number;
|
|
10901
|
+
/**
|
|
10902
|
+
* @description Distance from the far end of the camera view/floor boundaries
|
|
10903
|
+
* at which the fully opaque fog should start to appear.
|
|
10904
|
+
* Larger values move the fully opaque(/end of the) fog
|
|
10905
|
+
* closer to the center of the scene.
|
|
10906
|
+
* @default 10
|
|
10907
|
+
*/
|
|
10908
|
+
farBlend?: number;
|
|
10883
10909
|
}
|
|
10884
10910
|
|
|
10885
10911
|
export declare class WebGpuGroundReflectionConfig implements WebGpuGroundReflectionConfigDefinition {
|
|
@@ -10915,6 +10941,8 @@ export declare interface WebGpuGroundReflectionConfigDefinition {
|
|
|
10915
10941
|
endFadeout?: number;
|
|
10916
10942
|
}
|
|
10917
10943
|
|
|
10944
|
+
export declare type WebGpuToneMapping = Enumify_3<typeof WEBGPU_TONE_MAPPINGS>;
|
|
10945
|
+
|
|
10918
10946
|
export declare class WebGpuTopLightConfig implements WebGpuTopLightConfigDefinition {
|
|
10919
10947
|
intensity: number;
|
|
10920
10948
|
shadowIntensity: number;
|
package/lib/roomle-sdk.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import "./
|
|
9
|
-
export {
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./packages-C9gO5mKk.mjs";
|
|
2
|
+
import { i as a, t as o } from "./kernel-BWfRHWkW.mjs";
|
|
3
|
+
import { mt as s, vt as c } from "./threejs-utils-Dpvg3Czz.mjs";
|
|
4
|
+
import { B as l, F as u, G as d, H as f, I as p, J as m, K as h, M as g, N as _, P as v, S as y, U as b, W as x, a as S, b as C, c as w, ct as T, dt as E, k as D, l as O, n as k, ot as A, pt as j, st as M, ut as N, v as P, x as F, y as I } from "./main-BUl8iCi1.mjs";
|
|
5
|
+
import { t as L } from "./configurator-C_rsqn9l.mjs";
|
|
6
|
+
import { t as R } from "./planner-t4QH26WW.mjs";
|
|
7
|
+
import { n as z, t as B } from "./glb-viewer-A5vSLFZ5.mjs";
|
|
8
|
+
import { t as V } from "./api-CUyBdNba.mjs";
|
|
9
|
+
export { o as CONFIGURATION_TYPE, s as CORE_EDGE_TYPE, c as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, L as Configurator, S as ConfiguratorUiCallbacks, g as FloorPlanElementViewModel, B as GlbViewer, m as GlobalCallback, l as HI_CONTEXT_ACTION, N as IdbManager, k as Main, y as MeasurementLinePlanElementViewModel, P as PLAN_ELEMENT_CHANGE_TYPES, p as PlanElementViewModel, u as PlanObjectViewModel, R as Planner, A as RapiAccess, M as RapiInvalidIdError, T as RapiOfflineError, V as RoomDesignerApi, D as RoomleConfigurator, z as RoomleGLBViewer, j as RoomleLightSource, w as RoomlePlanner, I as RoomlePlannerUiCallback, O as RoomleSdk, v as StaticPlanObjectViewModel, _ as WallPlanElementViewModel, f as createExtObj, h as createExtObjId, E as getCatalogIdFromConfigurationHash, b as isExtObjId, x as isExternalObject, C as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, e as isPlanSnapshotId, F as isSafari, d as removeExtObjIdPrefix };
|