@realsee/dnalogel 0.1.7 → 2.0.0-alpha.3
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/README.md +6 -89
- package/dist/dnalogel.cjs.js +2 -0
- package/dist/dnalogel.es.js +37288 -0
- package/dist/dnalogel.umd.js +2 -0
- package/dist/style.css +1 -0
- package/{plugins → libs}/CSS3DRenderPlugin/index.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/index.js +181 -0
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +18 -0
- package/{plugins → libs}/CameraMovementPlugin/index.d.ts +0 -0
- package/libs/CameraMovementPlugin/index.js +159 -0
- package/{plugins → libs}/CameraMovementPlugin/typing.d.ts +0 -0
- package/libs/CameraMovementPlugin/typing.js +17 -0
- package/{plugins → libs}/ModelChassisCompassPlugin/index.d.ts +1 -1
- package/libs/ModelChassisCompassPlugin/index.js +75 -0
- package/{plugins → libs}/ModelEntryDoorGuidePlugin/index.d.ts +6 -2
- package/libs/ModelEntryDoorGuidePlugin/index.js +136 -0
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -0
- package/{plugins → libs}/ModelRoomLabelPlugin/Controller.d.ts +3 -2
- package/libs/ModelRoomLabelPlugin/Controller.js +100 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte +63 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte.map +1 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte +80 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte.map +1 -0
- package/libs/ModelRoomLabelPlugin/index.d.ts +12 -0
- package/libs/ModelRoomLabelPlugin/index.js +9 -0
- package/{plugins → libs}/ModelRoomLabelPlugin/typings.d.ts +2 -2
- package/libs/ModelRoomLabelPlugin/typings.js +1 -0
- package/{plugins → libs}/ModelRoomLabelPlugin/utils/parseData.d.ts +0 -0
- package/libs/ModelRoomLabelPlugin/utils/parseData.js +14 -0
- package/{plugins → libs}/ModelViewPlugin/index.d.ts +0 -0
- package/libs/ModelViewPlugin/index.js +160 -0
- package/libs/PanoCompassPlugin/index.d.ts +25 -0
- package/libs/PanoCompassPlugin/index.js +89 -0
- package/{plugins → libs}/PanoCursorRaycasterPlugin/index.d.ts +2 -3
- package/libs/PanoCursorRaycasterPlugin/index.js +74 -0
- package/libs/floorplan/Assets/camera.d.ts +1 -0
- package/libs/floorplan/Assets/camera.js +1 -0
- package/libs/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/libs/floorplan/Assets/floorplanExtraObject.js +1 -0
- package/libs/floorplan/Components/BaseImage.svelte +25 -0
- package/libs/floorplan/Components/BaseImage.svelte.map +1 -0
- package/libs/floorplan/Components/Normalmage.svelte +11 -0
- package/libs/floorplan/Components/Normalmage.svelte.map +1 -0
- package/libs/floorplan/Components/RoomHighlight/Room.svelte +21 -0
- package/libs/floorplan/Components/RoomHighlight/Room.svelte.map +1 -0
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte +60 -0
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte.map +1 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte +35 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte.map +1 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte +7 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte.map +1 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte +16 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte.map +1 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte +17 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte.map +1 -0
- package/libs/floorplan/Components/SvgImage.svelte +25 -0
- package/libs/floorplan/Components/SvgImage.svelte.map +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.js +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte +46 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte.map +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte +48 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte.map +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte +37 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte +50 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte.map +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte +41 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte.map +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte +25 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte.map +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte +148 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte.map +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte +15 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte.map +1 -0
- package/{plugins → libs}/floorplan/ModelFloorplanPlugin/Controller.d.ts +16 -14
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +357 -0
- package/{plugins → libs}/floorplan/ModelFloorplanPlugin/index.d.ts +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -0
- package/{plugins → libs}/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +0 -0
- package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.js +1 -0
- package/{plugins → libs}/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/utils/constant.js +16 -0
- package/{plugins → libs}/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +0 -0
- package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +46 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte +84 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte.map +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte +18 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte +40 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte.map +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte +61 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte.map +1 -0
- package/{plugins → libs}/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +6 -11
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +88 -0
- package/{plugins → libs}/floorplan/PanoFloorplanRadarPlugin/index.d.ts +0 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -0
- package/{plugins → libs}/floorplan/TopviewFloorplanPlugin/Controller.d.ts +15 -11
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +189 -0
- package/{plugins → libs}/floorplan/TopviewFloorplanPlugin/index.d.ts +0 -0
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -0
- package/{plugins → libs}/floorplan/TopviewFloorplanPlugin/style.d.ts +0 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +8 -0
- package/{plugins → libs}/floorplan/typings/floorplanData.d.ts +6 -0
- package/libs/floorplan/typings/floorplanData.js +6 -0
- package/{plugins → libs}/floorplan/typings/floorplanServerData.d.ts +4 -2
- package/libs/floorplan/typings/floorplanServerData.js +101 -0
- package/libs/floorplan/typings/utility.d.ts +2 -0
- package/libs/floorplan/typings/utility.js +1 -0
- package/{plugins → libs}/floorplan/utils/formatData.d.ts +3 -3
- package/libs/floorplan/utils/formatData.js +94 -0
- package/{plugins → libs}/floorplan/utils/formatPosition.d.ts +3 -4
- package/libs/floorplan/utils/formatPosition.js +50 -0
- package/libs/index.d.ts +19 -0
- package/libs/index.js +11 -0
- package/{shared-utils → libs/shared-utils}/Preloader.d.ts +0 -0
- package/libs/shared-utils/Preloader.js +38 -0
- package/{shared-utils → libs/shared-utils}/Subscribe.d.ts +3 -3
- package/libs/shared-utils/Subscribe.js +101 -0
- package/{shared-utils → libs/shared-utils}/animationFrame/BetterTween.d.ts +0 -0
- package/libs/shared-utils/animationFrame/BetterTween.js +30 -0
- package/{shared-utils → libs/shared-utils}/animationFrame/calculateProgress.d.ts +0 -0
- package/libs/shared-utils/animationFrame/calculateProgress.js +23 -0
- package/{shared-utils → libs/shared-utils}/animationFrame/formatRad.d.ts +0 -0
- package/libs/shared-utils/animationFrame/formatRad.js +20 -0
- package/{shared-utils → libs/shared-utils}/animationFrame/index.d.ts +0 -0
- package/libs/shared-utils/animationFrame/index.js +48 -0
- package/{shared-utils → libs/shared-utils}/animationFrame/tween.d.ts +0 -0
- package/libs/shared-utils/animationFrame/tween.js +44 -0
- package/libs/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/libs/shared-utils/changeModelCanvasOpacity.js +15 -0
- package/{shared-utils → libs/shared-utils}/createCanvasTextTexture.d.ts +0 -0
- package/libs/shared-utils/createCanvasTextTexture.js +19 -0
- package/{shared-utils → libs/shared-utils}/createLine/index.d.ts +1 -1
- package/libs/shared-utils/createLine/index.js +8 -0
- package/{shared-utils → libs/shared-utils}/debounce.d.ts +1 -1
- package/libs/shared-utils/debounce.js +14 -0
- package/{shared-utils → libs/shared-utils}/equal.d.ts +0 -0
- package/libs/shared-utils/equal.js +84 -0
- package/{shared-utils → libs/shared-utils}/filter.d.ts +0 -0
- package/libs/shared-utils/filter.js +53 -0
- package/{shared-utils → libs/shared-utils}/five/changeMode.d.ts +0 -0
- package/libs/shared-utils/five/changeMode.js +15 -0
- package/{shared-utils → libs/shared-utils}/five/useFivePlugin.d.ts +0 -0
- package/libs/shared-utils/five/useFivePlugin.js +8 -0
- package/{shared-utils → libs/shared-utils}/formatRad.d.ts +0 -0
- package/libs/shared-utils/formatRad.js +10 -0
- package/{shared-utils → libs/shared-utils}/getPxmm.d.ts +0 -0
- package/libs/shared-utils/getPxmm.js +20 -0
- package/{shared-utils → libs/shared-utils}/getRandomColor.d.ts +0 -0
- package/libs/shared-utils/getRandomColor.js +10 -0
- package/{shared-utils → libs/shared-utils}/isNil.d.ts +0 -0
- package/libs/shared-utils/isNil.js +14 -0
- package/{shared-utils → libs/shared-utils}/isTruelyObject.d.ts +0 -0
- package/libs/shared-utils/isTruelyObject.js +20 -0
- package/libs/shared-utils/math/evenNumber.d.ts +3 -0
- package/libs/shared-utils/math/evenNumber.js +4 -0
- package/{shared-utils → libs/shared-utils}/math/planimetry.d.ts +4 -4
- package/libs/shared-utils/math/planimetry.js +288 -0
- package/{shared-utils → libs/shared-utils}/math/rad2Deg.d.ts +0 -0
- package/libs/shared-utils/math/rad2Deg.js +3 -0
- package/{shared-utils → libs/shared-utils}/nearlyEqual.d.ts +0 -0
- package/libs/shared-utils/nearlyEqual.js +9 -0
- package/{shared-utils → libs/shared-utils}/nextFrame.d.ts +0 -0
- package/libs/shared-utils/nextFrame.js +6 -0
- package/{shared-utils → libs/shared-utils}/noop.d.ts +0 -0
- package/libs/shared-utils/noop.js +7 -0
- package/{shared-utils → libs/shared-utils}/object3d2LocalMatrix.d.ts +0 -0
- package/libs/shared-utils/object3d2LocalMatrix.js +29 -0
- package/{shared-utils → libs/shared-utils}/px2rem.d.ts +0 -0
- package/libs/shared-utils/px2rem.js +4 -0
- package/libs/shared-utils/removeArrayItem.d.ts +7 -0
- package/libs/shared-utils/removeArrayItem.js +12 -0
- package/{shared-utils → libs/shared-utils}/tap.d.ts +0 -0
- package/{shared-utils → libs/shared-utils}/tap.js +4 -13
- package/{shared-utils → libs/shared-utils}/three/centerPoint.d.ts +0 -0
- package/libs/shared-utils/three/centerPoint.js +4 -0
- package/{shared-utils → libs/shared-utils}/three/getExtraModelLoader.d.ts +0 -0
- package/libs/shared-utils/three/getExtraModelLoader.js +18 -0
- package/{shared-utils → libs/shared-utils}/three/getNormal.d.ts +0 -0
- package/libs/shared-utils/three/getNormal.js +6 -0
- package/{shared-utils → libs/shared-utils}/three/getTextureLoader.d.ts +0 -0
- package/libs/shared-utils/three/getTextureLoader.js +17 -0
- package/{shared-utils → libs/shared-utils}/three/loadFbxObj.d.ts +0 -0
- package/libs/shared-utils/three/loadFbxObj.js +13 -0
- package/libs/shared-utils/three/loadTexture.d.ts +2 -0
- package/libs/shared-utils/three/loadTexture.js +10 -0
- package/{shared-utils → libs/shared-utils}/three/transformPositionToVector3.d.ts +0 -0
- package/libs/shared-utils/three/transformPositionToVector3.js +3 -0
- package/{shared-utils → libs/shared-utils}/three/transfromToMeshBasicMaterial.d.ts +0 -0
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +14 -0
- package/{shared-utils → libs/shared-utils}/throttle.d.ts +1 -1
- package/libs/shared-utils/throttle.js +18 -0
- package/{shared-utils → libs/shared-utils}/to.d.ts +0 -0
- package/libs/shared-utils/to.js +18 -0
- package/{shared-utils → libs/shared-utils}/useDebounce.d.ts +0 -0
- package/libs/shared-utils/useDebounce.js +22 -0
- package/{shared-utils → libs/shared-utils}/useThrottle.d.ts +0 -0
- package/libs/shared-utils/useThrottle.js +25 -0
- package/libs/{gltf-viewer → shared-utils}/uuid.d.ts +0 -0
- package/libs/shared-utils/uuid.js +11 -0
- package/{shared-utils → libs/shared-utils}/vectorTocoordinates.d.ts +0 -0
- package/libs/shared-utils/vectorTocoordinates.js +9 -0
- package/{typings → libs/typings}/math.type.d.ts +0 -0
- package/libs/typings/math.type.js +1 -0
- package/{typings → libs/typings}/utils.type.d.ts +0 -0
- package/libs/typings/utils.type.js +1 -0
- package/package.json +45 -17
- package/TERMS.txt +0 -56
- package/components/ARVideoFigure/ARVideoFigureMesh.d.ts +0 -44
- package/components/ARVideoFigure/ARVideoFigureMesh.js +0 -371
- package/components/ARVideoFigure/ARVideoFigureScene.d.ts +0 -11
- package/components/ARVideoFigure/ARVideoFigureScene.js +0 -85
- package/components/ARVideoFigure/ImgBgTransparent.d.ts +0 -16
- package/components/ARVideoFigure/ImgBgTransparent.js +0 -65
- package/components/ARVideoFigure/ImgBgTransparentMesh.d.ts +0 -30
- package/components/ARVideoFigure/ImgBgTransparentMesh.js +0 -183
- package/components/ARVideoFigure/fragmentShader.d.ts +0 -5
- package/components/ARVideoFigure/fragmentShader.js +0 -18
- package/components/ARVideoFigure/index.d.ts +0 -15
- package/components/ARVideoFigure/index.js +0 -80
- package/components/ARVideoFigure/vertexShader.d.ts +0 -1
- package/components/ARVideoFigure/vertexShader.js +0 -10
- package/components/GLTFView/index.d.ts +0 -72
- package/components/GLTFView/index.js +0 -149
- package/components/GlassFilters/index.d.ts +0 -32
- package/components/GlassFilters/index.js +0 -78
- package/components/ModelView/ModelViewController.d.ts +0 -18
- package/components/ModelView/ModelViewController.js +0 -157
- package/components/ModelView/index.d.ts +0 -10
- package/components/ModelView/index.js +0 -24
- package/components/PaintBrush/index.d.ts +0 -16
- package/components/PaintBrush/index.js +0 -47
- package/components/PanoTag/index.d.ts +0 -4
- package/components/PanoTag/index.js +0 -13
- package/custom.d.js +0 -3
- package/data/1aGKl9JmrlXMXx8d.d.ts +0 -104
- package/data/1aGKl9JmrlXMXx8d.js +0 -537
- package/data/54djM0oR6ky3Ey8e.d.ts +0 -55
- package/data/54djM0oR6ky3Ey8e.js +0 -350
- package/data/6gyq3v1verxD7JO1.d.ts +0 -104
- package/data/6gyq3v1verxD7JO1.js +0 -462
- package/data/8054djM0oR6ky3Ey8e.d.ts +0 -55
- package/data/8054djM0oR6ky3Ey8e.js +0 -350
- package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.d.ts +0 -84
- package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +0 -600
- package/data/PrXel3aqGbp34JQn.d.ts +0 -389
- package/data/PrXel3aqGbp34JQn.js +0 -4649
- package/data/XJ6NMLWnkAY3Rdx8.d.ts +0 -843
- package/data/XJ6NMLWnkAY3Rdx8.js +0 -7989
- package/data/YdoNP9K4rwQDwjJr.d.ts +0 -83
- package/data/YdoNP9K4rwQDwjJr.js +0 -1453
- package/data/ZLvK29zj4L29Jowd.d.ts +0 -55
- package/data/ZLvK29zj4L29Jowd.js +0 -372
- package/data/auto3d-njL5J99VwCmnjtQElOmXQr.d.ts +0 -86
- package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +0 -711
- package/data/extrude-walls/ZLvK29zj4L29Jowd.d.ts +0 -5
- package/data/extrude-walls/ZLvK29zj4L29Jowd.js +0 -14
- package/data/extrude-walls/lo024DEgzanMj5BE.d.ts +0 -5
- package/data/extrude-walls/lo024DEgzanMj5BE.js +0 -14
- package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.d.ts +0 -85
- package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.js +0 -511
- package/data/lo024DEgzanMj5BE.d.ts +0 -55
- package/data/lo024DEgzanMj5BE.js +0 -966
- package/data/oPzy3ApbjjpD8YdR.d.ts +0 -83
- package/data/oPzy3ApbjjpD8YdR.js +0 -283
- package/data/qjAxMG4XbPn96wKG.d.ts +0 -104
- package/data/qjAxMG4XbPn96wKG.js +0 -637
- package/data/rXel3aPQRRBD4JQn.d.ts +0 -86
- package/data/rXel3aPQRRBD4JQn.js +0 -622
- package/data/vLykj3NWrllMrG06.d.ts +0 -91
- package/data/vLykj3NWrllMrG06.js +0 -2729
- package/data/wz0QV9KA4ugyo9ME.d.ts +0 -39
- package/data/wz0QV9KA4ugyo9ME.js +0 -136
- package/data/zxMawr9raSg8LYjG.d.ts +0 -53
- package/data/zxMawr9raSg8LYjG.js +0 -590
- package/examples/FiveStateController/index.js +0 -134
- package/examples/VRHouse/Mobile.js +0 -36
- package/examples/VRHouse/PC.js +0 -36
- package/examples/VRHouse/index.js +0 -36
- package/index.d.ts +0 -15
- package/index.js +0 -45
- package/libs/gltf-viewer/Subscribe.d.ts +0 -76
- package/libs/gltf-viewer/Subscribe.js +0 -231
- package/libs/gltf-viewer/coordsMoveByOffset.d.ts +0 -13
- package/libs/gltf-viewer/coordsMoveByOffset.js +0 -22
- package/libs/gltf-viewer/coordsToDirection.d.ts +0 -5
- package/libs/gltf-viewer/coordsToDirection.js +0 -41
- package/libs/gltf-viewer/formatRad.d.ts +0 -1
- package/libs/gltf-viewer/formatRad.js +0 -13
- package/libs/gltf-viewer/getFrameTime.d.ts +0 -1
- package/libs/gltf-viewer/getFrameTime.js +0 -28
- package/libs/gltf-viewer/index.d.ts +0 -55
- package/libs/gltf-viewer/index.js +0 -650
- package/libs/gltf-viewer/mouseWheel.d.ts +0 -2
- package/libs/gltf-viewer/mouseWheel.js +0 -59
- package/libs/gltf-viewer/requestAnimationFrame.d.ts +0 -1
- package/libs/gltf-viewer/requestAnimationFrame.js +0 -18
- package/libs/gltf-viewer/requestAnimationFrameInterval.d.ts +0 -1
- package/libs/gltf-viewer/requestAnimationFrameInterval.js +0 -31
- package/libs/gltf-viewer/uuid.js +0 -28
- package/plugins/AutoPreloadPlugin/index.d.ts +0 -23
- package/plugins/AutoPreloadPlugin/index.js +0 -111
- package/plugins/CSS3DRenderPlugin/components/Marker/index.d.ts +0 -12
- package/plugins/CSS3DRenderPlugin/components/Marker/index.js +0 -121
- package/plugins/CSS3DRenderPlugin/index.js +0 -298
- package/plugins/CameraMovementPlugin/index.js +0 -362
- package/plugins/CameraMovementPlugin/typing.js +0 -37
- package/plugins/ModelChassisCompassPlugin/index.js +0 -157
- package/plugins/ModelEntryDoorGuidePlugin/index.js +0 -247
- package/plugins/ModelExtrudeWallsPlugin/index.d.ts +0 -16
- package/plugins/ModelExtrudeWallsPlugin/index.js +0 -252
- package/plugins/ModelRoomLabelPlugin/Controller.js +0 -153
- package/plugins/ModelRoomLabelPlugin/RoomLabelItem.d.ts +0 -8
- package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +0 -66
- package/plugins/ModelRoomLabelPlugin/RoomLabelItems.d.ts +0 -7
- package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +0 -159
- package/plugins/ModelRoomLabelPlugin/index.d.ts +0 -8
- package/plugins/ModelRoomLabelPlugin/index.js +0 -18
- package/plugins/ModelRoomLabelPlugin/typings.js +0 -7
- package/plugins/ModelRoomLabelPlugin/utils/parseData.js +0 -35
- package/plugins/ModelTVVideoPlugin/index.d.ts +0 -21
- package/plugins/ModelTVVideoPlugin/index.js +0 -397
- package/plugins/ModelViewPlugin/index.js +0 -223
- package/plugins/PanoCursorRaycasterPlugin/PanoCursorRaycasterPluginUsage.d.ts +0 -48
- package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.d.ts +0 -9
- package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +0 -117
- package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.d.ts +0 -11
- package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +0 -39
- package/plugins/PanoCursorRaycasterPlugin/index.js +0 -126
- package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.d.ts +0 -5
- package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +0 -27
- package/plugins/PanoCursorRaycasterPlugin/utils/createLine.d.ts +0 -3
- package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +0 -48
- package/plugins/PanoDoorLabelPlugin/index.d.ts +0 -4
- package/plugins/PanoDoorLabelPlugin/index.js +0 -14
- package/plugins/PanoIRobotPlugin/index.d.ts +0 -10
- package/plugins/PanoIRobotPlugin/index.js +0 -18
- package/plugins/PanoMaskSelectorPlugin/compare.d.ts +0 -1
- package/plugins/PanoMaskSelectorPlugin/compare.js +0 -17
- package/plugins/PanoMaskSelectorPlugin/createBox.d.ts +0 -7
- package/plugins/PanoMaskSelectorPlugin/createBox.js +0 -79
- package/plugins/PanoMaskSelectorPlugin/createTextures.d.ts +0 -3
- package/plugins/PanoMaskSelectorPlugin/createTextures.js +0 -45
- package/plugins/PanoMaskSelectorPlugin/fragmentShader.d.ts +0 -1
- package/plugins/PanoMaskSelectorPlugin/fragmentShader.js +0 -10
- package/plugins/PanoMaskSelectorPlugin/index.d.ts +0 -49
- package/plugins/PanoMaskSelectorPlugin/index.js +0 -348
- package/plugins/PanoMaskSelectorPlugin/vertexShader.d.ts +0 -1
- package/plugins/PanoMaskSelectorPlugin/vertexShader.js +0 -10
- package/plugins/PanoRulerPlugin/data/roomInfo.d.ts +0 -3
- package/plugins/PanoRulerPlugin/data/roomInfo.js +0 -51
- package/plugins/PanoRulerPlugin/data/roomRules.d.ts +0 -3
- package/plugins/PanoRulerPlugin/data/roomRules.js +0 -235
- package/plugins/PanoRulerPlugin/index.d.ts +0 -27
- package/plugins/PanoRulerPlugin/index.js +0 -637
- package/plugins/PanoRulerPlugin/typings.d.ts +0 -21
- package/plugins/PanoRulerPlugin/typings.js +0 -7
- package/plugins/PanoTVVideoPlugin/index.d.ts +0 -26
- package/plugins/PanoTVVideoPlugin/index.js +0 -433
- package/plugins/TreasurePlugin/Controller.d.ts +0 -73
- package/plugins/TreasurePlugin/Controller.js +0 -250
- package/plugins/TreasurePlugin/TreasureFaceAnime.d.ts +0 -25
- package/plugins/TreasurePlugin/TreasureFaceAnime.js +0 -143
- package/plugins/TreasurePlugin/TreasureObject.d.ts +0 -53
- package/plugins/TreasurePlugin/TreasureObject.js +0 -406
- package/plugins/TreasurePlugin/TreasureOpenAnime.d.ts +0 -25
- package/plugins/TreasurePlugin/TreasureOpenAnime.js +0 -127
- package/plugins/TreasurePlugin/constants.d.ts +0 -33
- package/plugins/TreasurePlugin/constants.js +0 -67
- package/plugins/TreasurePlugin/index.d.ts +0 -11
- package/plugins/TreasurePlugin/index.js +0 -26
- package/plugins/TreasurePlugin/typings.d.ts +0 -2
- package/plugins/TreasurePlugin/typings.js +0 -7
- package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +0 -1
- package/plugins/floorplan/Assets/floorplanExtraObject.js +0 -10
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +0 -626
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.d.ts +0 -13
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +0 -78
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.d.ts +0 -5
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +0 -84
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.d.ts +0 -10
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +0 -129
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.d.ts +0 -13
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +0 -118
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +0 -13
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +0 -62
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +0 -20
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +0 -88
- package/plugins/floorplan/ModelFloorplanPlugin/controller.style.d.ts +0 -1
- package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +0 -16
- package/plugins/floorplan/ModelFloorplanPlugin/index.js +0 -20
- package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +0 -7
- package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +0 -33
- package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +0 -154
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.d.ts +0 -13
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +0 -113
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.d.ts +0 -3
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +0 -39
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.d.ts +0 -5
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +0 -66
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.d.ts +0 -9
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +0 -126
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.d.ts +0 -11
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +0 -58
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.d.ts +0 -17
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +0 -85
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.d.ts +0 -2
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +0 -15
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +0 -211
- package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +0 -20
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +0 -262
- package/plugins/floorplan/TopviewFloorplanPlugin/index.js +0 -18
- package/plugins/floorplan/TopviewFloorplanPlugin/style.js +0 -16
- package/plugins/floorplan/components/FloorplanImage.d.ts +0 -7
- package/plugins/floorplan/components/FloorplanImage.js +0 -90
- package/plugins/floorplan/typings/floorplanData.js +0 -7
- package/plugins/floorplan/typings/floorplanServerData.js +0 -382
- package/plugins/floorplan/utils/formatData.js +0 -217
- package/plugins/floorplan/utils/formatPosition.js +0 -89
- package/shared-utils/Preloader.js +0 -57
- package/shared-utils/Subscribe.js +0 -230
- package/shared-utils/animationFrame/BetterTween.js +0 -103
- package/shared-utils/animationFrame/calculateProgress.js +0 -40
- package/shared-utils/animationFrame/formatRad.js +0 -36
- package/shared-utils/animationFrame/index.js +0 -81
- package/shared-utils/animationFrame/tween.js +0 -92
- package/shared-utils/changeModelCanvansOpacity.d.ts +0 -2
- package/shared-utils/changeModelCanvansOpacity.js +0 -38
- package/shared-utils/createCanvasTextTexture.js +0 -31
- package/shared-utils/createFiveContainer.d.ts +0 -10
- package/shared-utils/createFiveContainer.js +0 -171
- package/shared-utils/createLine/index.js +0 -43
- package/shared-utils/debounce.js +0 -30
- package/shared-utils/equal.js +0 -107
- package/shared-utils/filter.js +0 -127
- package/shared-utils/five/changeMode.js +0 -82
- package/shared-utils/five/useFivePlugin.js +0 -17
- package/shared-utils/formatRad.js +0 -18
- package/shared-utils/getPxmm.js +0 -51
- package/shared-utils/getRandomColor.js +0 -23
- package/shared-utils/isNil.js +0 -26
- package/shared-utils/isTruelyObject.js +0 -31
- package/shared-utils/math/evenNumber.d.ts +0 -1
- package/shared-utils/math/evenNumber.js +0 -13
- package/shared-utils/math/planimetry.js +0 -352
- package/shared-utils/math/rad2Deg.js +0 -12
- package/shared-utils/nearlyEqual.js +0 -19
- package/shared-utils/nextFrame.js +0 -15
- package/shared-utils/noop.js +0 -19
- package/shared-utils/object3d2LocalMatrix.js +0 -79
- package/shared-utils/px2rem.js +0 -22
- package/shared-utils/three/centerPoint.js +0 -14
- package/shared-utils/three/getExtraModelLoader.js +0 -45
- package/shared-utils/three/getNormal.js +0 -17
- package/shared-utils/three/getTextureLoader.js +0 -50
- package/shared-utils/three/loadFbxObj.js +0 -54
- package/shared-utils/three/loadTexture.d.ts +0 -2
- package/shared-utils/three/loadTexture.js +0 -46
- package/shared-utils/three/transformPositionToVector3.js +0 -20
- package/shared-utils/three/transfromToMeshBasicMaterial.js +0 -33
- package/shared-utils/throttle.js +0 -29
- package/shared-utils/to.js +0 -67
- package/shared-utils/useDebounce.js +0 -49
- package/shared-utils/useThrottle.js +0 -47
- package/shared-utils/uuid.d.ts +0 -4
- package/shared-utils/uuid.js +0 -28
- package/shared-utils/vectorTocoordinates.js +0 -18
- package/typedoc/components.d.ts +0 -6
- package/typedoc/components.js +0 -7
- package/typedoc/plugins.d.ts +0 -19
- package/typedoc/plugins.js +0 -165
- package/typedoc/shared-utils.d.ts +0 -3
- package/typedoc/shared-utils.js +0 -7
- package/typedoc/typings.d.ts +0 -3
- package/typedoc/typings.js +0 -7
- package/typings/math.type.js +0 -7
- package/typings/utils.type.js +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAAA,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CjB,CAAC,CAAC,MAAM;;AAER,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY;AACtE,EAAE,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACxB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC;AACjH,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/F,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAClE,IAAI,CAAC,CAAC,GAAG;AACT,EAAE,CAAC,CAAC,EAAE;AACN,CAAC,CAAC,GAAG;;AAEL,CAAC,KAAK;AACN,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC;AAC1B,IAAI,KAAK,CAAC,CAAC,GAAG,CAAC;AACf,IAAI,MAAM,CAAC,CAAC,GAAG,CAAC;AAChB,IAAI,OAAO,CAAC,CAAC,IAAI;AACjB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM;AAC3B,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM;AACvB,EAAE;;AAEF,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC;AACpC,IAAI,QAAQ,CAAC,CAAC,QAAQ;AACtB,EAAE;AACF,CAAC,CAAC,KAAK;","names":[],"sources":["Main.svelte"]}
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { FloorplanExtraObject3D } from '../typings/floorplanData';
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
3
|
+
import type { FloorplanExtraObject3D } from '../typings/floorplanData';
|
|
5
4
|
export interface PanoFloorplanRadarPluginControllerParameter {
|
|
6
5
|
wrapper?: string | Element;
|
|
7
6
|
configs?: {
|
|
8
7
|
hoverEnable?: boolean;
|
|
9
|
-
|
|
10
|
-
style: React.CSSProperties;
|
|
11
|
-
};
|
|
8
|
+
cameraImageUrl?: string;
|
|
12
9
|
};
|
|
13
10
|
}
|
|
14
11
|
export default class PanoFloorplanRadarPluginController {
|
|
12
|
+
private app?;
|
|
15
13
|
private five;
|
|
16
|
-
private pxmm;
|
|
17
14
|
private wrapperSelector;
|
|
18
15
|
private data?;
|
|
19
16
|
private wrapper;
|
|
20
|
-
private size;
|
|
21
17
|
private extraObjects?;
|
|
22
|
-
private
|
|
18
|
+
private originExtraObjects?;
|
|
23
19
|
private configs;
|
|
24
20
|
constructor(five: Five, params?: PanoFloorplanRadarPluginControllerParameter);
|
|
25
21
|
dispose: () => void;
|
|
@@ -28,6 +24,5 @@ export default class PanoFloorplanRadarPluginController {
|
|
|
28
24
|
appendTo(wrapper: Element): void;
|
|
29
25
|
changeConfigs(configs: PanoFloorplanRadarPluginController['configs']): void;
|
|
30
26
|
setExtraObjectsWith3DPositions(data: FloorplanExtraObject3D[]): void;
|
|
31
|
-
private updateSize;
|
|
32
27
|
private render;
|
|
33
28
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import Main from './Components/Main.svelte';
|
|
2
|
+
import formatData, { formatExtraObjects } from '../utils/formatData';
|
|
3
|
+
export default class PanoFloorplanRadarPluginController {
|
|
4
|
+
app;
|
|
5
|
+
five;
|
|
6
|
+
wrapperSelector = '';
|
|
7
|
+
data;
|
|
8
|
+
wrapper = null;
|
|
9
|
+
extraObjects;
|
|
10
|
+
originExtraObjects;
|
|
11
|
+
configs = {};
|
|
12
|
+
constructor(five, params) {
|
|
13
|
+
this.five = five;
|
|
14
|
+
params?.configs && Object.assign(this.configs, params.configs);
|
|
15
|
+
if (typeof params?.wrapper === 'string')
|
|
16
|
+
this.wrapperSelector = params.wrapper;
|
|
17
|
+
else if (params?.wrapper instanceof Element)
|
|
18
|
+
this.wrapper = params.wrapper;
|
|
19
|
+
five.once('dispose', this.dispose);
|
|
20
|
+
}
|
|
21
|
+
dispose = () => {
|
|
22
|
+
this.app?.$destroy();
|
|
23
|
+
};
|
|
24
|
+
load = async (data) => {
|
|
25
|
+
const copyData = JSON.parse(JSON.stringify(data));
|
|
26
|
+
const floorplanData = await formatData(copyData);
|
|
27
|
+
this.data = floorplanData;
|
|
28
|
+
// const loadImage = async () => {
|
|
29
|
+
// const floorIndex = this.five.work.observers[this.five.getCurrentState().panoIndex].floorIndex
|
|
30
|
+
// // 当有 svgString 时,没有加载过程
|
|
31
|
+
// if (floorplanData.outlines[floorIndex]?.svgContent) return
|
|
32
|
+
// // 如果当前楼层图片不存在,不存在加载过程
|
|
33
|
+
// const nowFloorImageSrc = floorplanData.outlines[floorIndex]?.url
|
|
34
|
+
// if (!nowFloorImageSrc) return
|
|
35
|
+
// // 图片加载完成时再 render
|
|
36
|
+
// await new Promise<void>((resolve) => {
|
|
37
|
+
// const nowFloorImage = new Image()
|
|
38
|
+
// nowFloorImage.src = nowFloorImageSrc
|
|
39
|
+
// nowFloorImage.onload = () => resolve()
|
|
40
|
+
// })
|
|
41
|
+
// }
|
|
42
|
+
// await loadImage()
|
|
43
|
+
this.render();
|
|
44
|
+
};
|
|
45
|
+
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
46
|
+
appendTo(wrapper) {
|
|
47
|
+
this.wrapper = wrapper;
|
|
48
|
+
this.render();
|
|
49
|
+
}
|
|
50
|
+
changeConfigs(configs) {
|
|
51
|
+
Object.assign(this.configs, configs);
|
|
52
|
+
this.render();
|
|
53
|
+
}
|
|
54
|
+
setExtraObjectsWith3DPositions(data) {
|
|
55
|
+
this.originExtraObjects = data;
|
|
56
|
+
if (!this.data)
|
|
57
|
+
return;
|
|
58
|
+
this.extraObjects = formatExtraObjects(data, this.five, this.data);
|
|
59
|
+
this.render();
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
// 处理 wrapper
|
|
63
|
+
if (!this.wrapper) {
|
|
64
|
+
const _wrapper = document.querySelector(this.wrapperSelector);
|
|
65
|
+
this.wrapper = _wrapper;
|
|
66
|
+
}
|
|
67
|
+
if (!this.data || !this.wrapper)
|
|
68
|
+
return;
|
|
69
|
+
if (!this.extraObjects && this.originExtraObjects) {
|
|
70
|
+
this.extraObjects = formatExtraObjects(this.originExtraObjects, this.five, this.data);
|
|
71
|
+
}
|
|
72
|
+
const props = {
|
|
73
|
+
five: this.five,
|
|
74
|
+
floorplanData: this.data,
|
|
75
|
+
extraObjects: this.extraObjects,
|
|
76
|
+
cameraImageUrl: this.configs.cameraImageUrl,
|
|
77
|
+
hoverEnable: this.configs.hoverEnable ?? false,
|
|
78
|
+
};
|
|
79
|
+
if (!this.app) {
|
|
80
|
+
this.app = new Main({
|
|
81
|
+
target: this.wrapper,
|
|
82
|
+
props,
|
|
83
|
+
});
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
this.app.$set(props);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
File without changes
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { FloorplanRoomItem } from '../typings/floorplanData';
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
3
|
+
import type { FloorplanRoomItem } from '../typings/floorplanData';
|
|
5
4
|
export interface TopviewFloorplanPluginParameterType {
|
|
6
5
|
selector?: string | Element;
|
|
7
6
|
scale?: number;
|
|
7
|
+
modelOpacity?: number;
|
|
8
|
+
cameraImageUrl?: string;
|
|
8
9
|
hoverEnable?: boolean;
|
|
10
|
+
compassEnable?: boolean;
|
|
9
11
|
autoShowEnable?: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
ruleLabelsEnable?: boolean;
|
|
13
|
+
roomLabelsEnable?: boolean;
|
|
14
|
+
preventRoomClick?: boolean;
|
|
13
15
|
getLabelElement?: (room: FloorplanRoomItem) => Element | null;
|
|
14
16
|
}
|
|
15
17
|
export declare type TopviewFloorplanPluginReturnType = TopviewFloorplanPluginController;
|
|
@@ -19,13 +21,13 @@ export declare class TopviewFloorplanPluginController {
|
|
|
19
21
|
height: number;
|
|
20
22
|
};
|
|
21
23
|
visible: boolean;
|
|
24
|
+
private pxmm;
|
|
25
|
+
private app?;
|
|
22
26
|
private five;
|
|
23
|
-
protected pxmm: number;
|
|
24
27
|
private panoIndex;
|
|
25
28
|
private floorIndex;
|
|
26
29
|
private configs;
|
|
27
30
|
private lastPanoramaLongitude;
|
|
28
|
-
private handleClick;
|
|
29
31
|
private selector?;
|
|
30
32
|
private floorplanData?;
|
|
31
33
|
private wrapper?;
|
|
@@ -40,8 +42,10 @@ export declare class TopviewFloorplanPluginController {
|
|
|
40
42
|
private onModelShownFloorChange;
|
|
41
43
|
/** panoIndex 改变时,更新 floorIndex */
|
|
42
44
|
private handlePanoArrived;
|
|
43
|
-
/**
|
|
44
|
-
private
|
|
45
|
+
/** 配置了 preventRoomClick 后,在户型图展示时阻止 Five 走点 */
|
|
46
|
+
private handleWantsMoveToPano;
|
|
47
|
+
/** 在户型图展示时阻止 Five 滑动行为 */
|
|
48
|
+
private handleWantsPanGesture;
|
|
45
49
|
private handleModelLoaded;
|
|
46
50
|
/** 非 Topview 态隐藏户型图 */
|
|
47
51
|
private handleModeChange;
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { pluginStyle } from './style';
|
|
2
|
+
import formatData from '../utils/formatData';
|
|
3
|
+
import { omit } from '../../shared-utils/filter';
|
|
4
|
+
import getPxmm from '../../shared-utils/getPxmm';
|
|
5
|
+
import Main from "../ModelFloorplanPlugin/Components/Main.svelte";
|
|
6
|
+
import changeModelCanvasOpacity from '../../shared-utils/changeModelCanvasOpacity';
|
|
7
|
+
export class TopviewFloorplanPluginController {
|
|
8
|
+
size = { width: 0, height: 0 };
|
|
9
|
+
visible = false;
|
|
10
|
+
pxmm = 0;
|
|
11
|
+
app;
|
|
12
|
+
five;
|
|
13
|
+
panoIndex = 0;
|
|
14
|
+
floorIndex = 0;
|
|
15
|
+
configs = {};
|
|
16
|
+
lastPanoramaLongitude = 0;
|
|
17
|
+
selector;
|
|
18
|
+
floorplanData;
|
|
19
|
+
wrapper;
|
|
20
|
+
container = document.createElement('div');
|
|
21
|
+
constructor(five, params) {
|
|
22
|
+
this.five = five;
|
|
23
|
+
this.selector = params.selector;
|
|
24
|
+
this.configs = omit(params, ['selector']);
|
|
25
|
+
// 设置 container 样式
|
|
26
|
+
this.container.classList.add('floorplan-plugin');
|
|
27
|
+
Object.assign(this.container.style, pluginStyle);
|
|
28
|
+
// 如果初始化的时候模型已经加载完毕了,就不用再等 modelLoaded
|
|
29
|
+
this.five.model.loaded ? this.handleModelLoaded() : five.once('modelLoaded', this.handleModelLoaded);
|
|
30
|
+
this.five.once('dispose', this.dispose);
|
|
31
|
+
this.five.on('modeChange', this.handleModeChange);
|
|
32
|
+
this.five.on('panoArrived', this.handlePanoArrived);
|
|
33
|
+
this.five.on('initAnimationEnded', this.handleInitAnimationEnded);
|
|
34
|
+
this.five.on('modelShownFloorChange', this.onModelShownFloorChange);
|
|
35
|
+
}
|
|
36
|
+
/** 加载户型图数据 */
|
|
37
|
+
async load(data) {
|
|
38
|
+
const copyData = JSON.parse(JSON.stringify(data));
|
|
39
|
+
this.floorplanData = await formatData(copyData);
|
|
40
|
+
this.render();
|
|
41
|
+
}
|
|
42
|
+
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
43
|
+
appendTo(wrapper) {
|
|
44
|
+
this.wrapper = wrapper;
|
|
45
|
+
wrapper.appendChild(this.container);
|
|
46
|
+
return this;
|
|
47
|
+
}
|
|
48
|
+
dispose = () => {
|
|
49
|
+
this.hide();
|
|
50
|
+
this.container?.remove();
|
|
51
|
+
this.app?.$destroy();
|
|
52
|
+
this.five.off('modeChange', this.handleModeChange);
|
|
53
|
+
this.five.off('panoArrived', this.handlePanoArrived);
|
|
54
|
+
this.five.off('modelLoaded', this.handleModelLoaded);
|
|
55
|
+
this.five.off('wantsMoveToPano', this.handleWantsMoveToPano);
|
|
56
|
+
this.five.off('wantsPanGesture', this.handleWantsPanGesture);
|
|
57
|
+
this.five.off('initAnimationEnded', this.handleInitAnimationEnded);
|
|
58
|
+
this.five.off('modelShownFloorChange', this.onModelShownFloorChange);
|
|
59
|
+
};
|
|
60
|
+
/** 模型楼层高亮改变时,自动进行楼层切换 */
|
|
61
|
+
onModelShownFloorChange = (shownFloor) => {
|
|
62
|
+
if (shownFloor === null)
|
|
63
|
+
return;
|
|
64
|
+
this.floorIndex = shownFloor;
|
|
65
|
+
this.render();
|
|
66
|
+
};
|
|
67
|
+
/** panoIndex 改变时,更新 floorIndex */
|
|
68
|
+
handlePanoArrived = (index) => {
|
|
69
|
+
if (!this.five?.work)
|
|
70
|
+
return;
|
|
71
|
+
this.panoIndex = index;
|
|
72
|
+
this.floorIndex = this.five.work.observers[index].floorIndex;
|
|
73
|
+
};
|
|
74
|
+
/** 配置了 preventRoomClick 后,在户型图展示时阻止 Five 走点 */
|
|
75
|
+
handleWantsMoveToPano = () => {
|
|
76
|
+
if (!this.visible)
|
|
77
|
+
return;
|
|
78
|
+
if (this.configs.preventRoomClick)
|
|
79
|
+
return false;
|
|
80
|
+
return;
|
|
81
|
+
};
|
|
82
|
+
/** 在户型图展示时阻止 Five 滑动行为 */
|
|
83
|
+
handleWantsPanGesture = () => {
|
|
84
|
+
if (!this.visible)
|
|
85
|
+
return;
|
|
86
|
+
return false;
|
|
87
|
+
};
|
|
88
|
+
handleModelLoaded = () => {
|
|
89
|
+
if (this.wrapper)
|
|
90
|
+
return;
|
|
91
|
+
if (!this.selector)
|
|
92
|
+
return;
|
|
93
|
+
const wrapper = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
94
|
+
if (!wrapper)
|
|
95
|
+
throw new Error('不正确的父容器选择器');
|
|
96
|
+
this.wrapper = wrapper;
|
|
97
|
+
wrapper.append(this.container);
|
|
98
|
+
};
|
|
99
|
+
/** 非 Topview 态隐藏户型图 */
|
|
100
|
+
handleModeChange = (mode) => {
|
|
101
|
+
if (mode !== 'Topview')
|
|
102
|
+
return this.hide();
|
|
103
|
+
};
|
|
104
|
+
/** 动画结束后是 Topview 态就展示户型图 */
|
|
105
|
+
handleInitAnimationEnded = () => {
|
|
106
|
+
const { mode } = this.five.getCurrentState();
|
|
107
|
+
if (mode === 'Topview')
|
|
108
|
+
this.show();
|
|
109
|
+
};
|
|
110
|
+
show() {
|
|
111
|
+
this.visible = true;
|
|
112
|
+
this.updateSize();
|
|
113
|
+
this.five.model.show(this.floorIndex);
|
|
114
|
+
const renderDuration = 500;
|
|
115
|
+
const modelOpacity = this.configs.modelOpacity;
|
|
116
|
+
if (typeof modelOpacity === 'number') {
|
|
117
|
+
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
118
|
+
}
|
|
119
|
+
this.render(renderDuration);
|
|
120
|
+
this.five.on('wantsMoveToPano', this.handleWantsMoveToPano);
|
|
121
|
+
this.five.on('wantsPanGesture', this.handleWantsPanGesture);
|
|
122
|
+
}
|
|
123
|
+
hide() {
|
|
124
|
+
const modelOpacity = 1;
|
|
125
|
+
const renderDuration = 0;
|
|
126
|
+
this.visible = false;
|
|
127
|
+
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
128
|
+
this.render();
|
|
129
|
+
this.five.on('wantsMoveToPano', this.handleWantsMoveToPano);
|
|
130
|
+
this.five.on('wantsPanGesture', this.handleWantsPanGesture);
|
|
131
|
+
}
|
|
132
|
+
/** 更新户型图大小 */
|
|
133
|
+
updateSize = () => {
|
|
134
|
+
if (!this.floorplanData)
|
|
135
|
+
return;
|
|
136
|
+
if (!this.container || !this.wrapper)
|
|
137
|
+
return;
|
|
138
|
+
if (this.five.getCurrentState().mode !== 'Topview')
|
|
139
|
+
return;
|
|
140
|
+
// 计算户型图展示大小
|
|
141
|
+
const { min, max } = this.floorplanData.bounding;
|
|
142
|
+
const width = max.x - min.x;
|
|
143
|
+
const height = max.y - min.y;
|
|
144
|
+
// 每毫米对应的 px 值
|
|
145
|
+
const pxmm = getPxmm(this.five, this.wrapper);
|
|
146
|
+
const _width = Math.ceil(width * pxmm);
|
|
147
|
+
const _height = Math.ceil(height * pxmm);
|
|
148
|
+
this.pxmm = pxmm;
|
|
149
|
+
this.size = { width: _width, height: _height };
|
|
150
|
+
this.container.style.width = _width + 'px';
|
|
151
|
+
this.container.style.height = _height + 'px';
|
|
152
|
+
};
|
|
153
|
+
render(duration) {
|
|
154
|
+
if (!this.container || !this.floorplanData)
|
|
155
|
+
return;
|
|
156
|
+
if (this.size.width === 0)
|
|
157
|
+
return;
|
|
158
|
+
const { getLabelElement, cameraImageUrl, preventRoomClick, hoverEnable, compassEnable, roomLabelsEnable, ruleLabelsEnable, } = this.configs;
|
|
159
|
+
const handleClick = preventRoomClick ? () => false : undefined;
|
|
160
|
+
console.log('🚀 ~ TopviewFloorplanPluginController ~ handleClick', handleClick);
|
|
161
|
+
const props = {
|
|
162
|
+
five: this.five,
|
|
163
|
+
pxmm: this.pxmm,
|
|
164
|
+
cameraImageUrl,
|
|
165
|
+
visible: this.visible,
|
|
166
|
+
duration: duration ?? 0,
|
|
167
|
+
panoIndex: this.panoIndex,
|
|
168
|
+
floorIndex: this.floorIndex,
|
|
169
|
+
floorplanData: this.floorplanData,
|
|
170
|
+
hoverEnable: hoverEnable ?? false,
|
|
171
|
+
compassEnable: compassEnable ?? true,
|
|
172
|
+
ruleLabelsEnable: ruleLabelsEnable ?? true,
|
|
173
|
+
roomLabelsEnable: roomLabelsEnable ?? true,
|
|
174
|
+
lastPanoramaLongitude: this.lastPanoramaLongitude,
|
|
175
|
+
getLabelElement,
|
|
176
|
+
onRoomHeightClick: handleClick,
|
|
177
|
+
};
|
|
178
|
+
if (!this.app) {
|
|
179
|
+
this.app = new Main({
|
|
180
|
+
target: this.container,
|
|
181
|
+
intro: true,
|
|
182
|
+
props,
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
this.app.$set(props);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* 1. 数据的下划线到驼峰的转换
|
|
4
4
|
* 2. svg url 到 svg content 的处理
|
|
5
5
|
*/
|
|
6
|
+
import type { RecordKeys, RecordValue } from './utility';
|
|
6
7
|
/** 户型图坐标,坐标原点时户型图中心点,单位是户型图单位 */
|
|
7
8
|
export interface FloorplanPosition {
|
|
8
9
|
x: number;
|
|
@@ -77,11 +78,16 @@ export interface FloorplanRoomItem {
|
|
|
77
78
|
/** 当前房间里的 observer 索引 */
|
|
78
79
|
observerIndexs: number[];
|
|
79
80
|
}
|
|
81
|
+
/** 户型图标尺 */
|
|
82
|
+
export declare type FloorplanRuleLabels = Record<'top' | 'right' | 'bottom' | 'left', FloorplanPosition[][]>;
|
|
83
|
+
export declare type RuleLabelsKey = RecordKeys<FloorplanRuleLabels>;
|
|
84
|
+
export declare type RuleLabelsValue = RecordValue<FloorplanRuleLabels>;
|
|
80
85
|
/** 当前楼层的数据 */
|
|
81
86
|
export interface FloorplanFloorData {
|
|
82
87
|
floorName: string;
|
|
83
88
|
floorIndex: number;
|
|
84
89
|
rooms: FloorplanRoomItem[];
|
|
90
|
+
rules: FloorplanRuleLabels;
|
|
85
91
|
}
|
|
86
92
|
/** 对 observer 做一些样式上的计算
|
|
87
93
|
* @description 每一个 floorplanObserver 对应一个 observer
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** 房屋数据映射表 */
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ROOM_FETILE_TYPE_MAP: ({
|
|
3
3
|
type: number;
|
|
4
4
|
floorType: number;
|
|
5
5
|
roomType: string;
|
|
@@ -36,7 +36,7 @@ export interface FloorplanServerImagePosition {
|
|
|
36
36
|
export interface FloorplanServerOutlineItem {
|
|
37
37
|
url: string;
|
|
38
38
|
index: number;
|
|
39
|
-
checksum
|
|
39
|
+
checksum?: string;
|
|
40
40
|
svg_url?: string;
|
|
41
41
|
}
|
|
42
42
|
/** 户型图入户门 */
|
|
@@ -96,11 +96,13 @@ export interface FloorplanServerRoomItem {
|
|
|
96
96
|
/** 当前房间里的 observer 索引 */
|
|
97
97
|
observer_indexs: number[];
|
|
98
98
|
}
|
|
99
|
+
export declare type FloorplanServerRuleLabels = Record<'top' | 'right' | 'bottom' | 'left', FloorplanServerPosition[][]>;
|
|
99
100
|
/** 当前楼层的数据 */
|
|
100
101
|
export interface FloorplanServerFloorData {
|
|
101
102
|
floor_name: string;
|
|
102
103
|
floor_index: number;
|
|
103
104
|
rooms: FloorplanServerRoomItem[];
|
|
105
|
+
rules: FloorplanServerRuleLabels;
|
|
104
106
|
}
|
|
105
107
|
/** 对 observer 做一些样式上的计算
|
|
106
108
|
* @description 每一个 FloorplanServer_observer 对应一个 observer
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/** 房屋数据映射表 */
|
|
2
|
+
export const ROOM_FETILE_TYPE_MAP = [
|
|
3
|
+
{ type: 0, floorType: 1, roomType: '100900000012', name: '其他' },
|
|
4
|
+
{ type: 1, floorType: 1, roomType: '100900000002', name: '客厅' },
|
|
5
|
+
{ type: 2, floorType: 1, roomType: '100900000002', name: '餐厅' },
|
|
6
|
+
{ type: 3, floorType: 0, roomType: '100900000001', name: '卧室' },
|
|
7
|
+
{ type: 4, floorType: 0, roomType: '100900000001', name: '书房' },
|
|
8
|
+
{ type: 5, floorType: 3, roomType: '100900000004', name: '卫生间' },
|
|
9
|
+
{ type: 6, floorType: 3, roomType: '100900000004', name: '淋浴间' },
|
|
10
|
+
{ type: 7, floorType: 3, roomType: '100900000004', name: '洗手间' },
|
|
11
|
+
{ type: 8, floorType: 3, roomType: '100900000003', name: '厨房' },
|
|
12
|
+
{
|
|
13
|
+
type: 9,
|
|
14
|
+
floorType: 1,
|
|
15
|
+
roomType: '100900000003',
|
|
16
|
+
name: '开放厨房',
|
|
17
|
+
onlySubArea: true,
|
|
18
|
+
},
|
|
19
|
+
{ type: 10, floorType: 0, roomType: '100900000001', name: '多功能间' },
|
|
20
|
+
{ type: 11, floorType: 0, roomType: '100900000009', name: '保姆间' },
|
|
21
|
+
{ type: 12, floorType: 4, roomType: '100900000005', name: '阳台' },
|
|
22
|
+
{ type: 13, floorType: 4, roomType: '100900000006', name: '露台' },
|
|
23
|
+
{ type: 14, floorType: 0, roomType: '100900000008', name: '储物间' },
|
|
24
|
+
{ type: 15, floorType: 0, roomType: '100900000013', name: '衣帽间' },
|
|
25
|
+
{ type: 16, floorType: 0, roomType: '100900000011', name: '阁楼' },
|
|
26
|
+
{ type: 17, floorType: 2, roomType: '100900000007', name: '花园' },
|
|
27
|
+
{ type: 18, floorType: 5, roomType: '100900000010', name: '车库' },
|
|
28
|
+
{ type: 19, floorType: 1, roomType: '100900000012', name: '电梯' },
|
|
29
|
+
{ type: 20, floorType: 1, roomType: '100900000012', name: '地下室' },
|
|
30
|
+
{ type: 21, floorType: 1, roomType: '100900000012', name: '天井' },
|
|
31
|
+
{ type: 22, floorType: 1, roomType: '100900000012', name: '阳光房' },
|
|
32
|
+
{ type: 23, floorType: 1, roomType: '100900000012', name: '过道' },
|
|
33
|
+
{ type: 24, floorType: 1, roomType: '100900000012', name: '楼梯间' },
|
|
34
|
+
{ type: 25, floorType: 1, roomType: '100900000012', name: '门厅' },
|
|
35
|
+
{ type: 26, floorType: 2, roomType: '100900000012', name: '入户花园' },
|
|
36
|
+
{ type: 27, floorType: 1, roomType: '100900000012', name: '玄关' },
|
|
37
|
+
{ type: 28, floorType: 1, roomType: '100900000012', name: '挑空' },
|
|
38
|
+
{ type: 29, floorType: 4, roomType: '100900000012', name: '晾晒区' },
|
|
39
|
+
{ type: 30, floorType: 4, roomType: '100900000012', name: '洗衣房' },
|
|
40
|
+
{ type: 31, floorType: 0, roomType: '100900000012', name: '娱乐区' },
|
|
41
|
+
{ type: 32, floorType: 0, roomType: '100900000012', name: '健身区' },
|
|
42
|
+
{ type: 33, floorType: 0, roomType: '100900000012', name: '接待区' },
|
|
43
|
+
{ type: 34, floorType: 0, roomType: '100900000012', name: '影音区' },
|
|
44
|
+
{ type: 35, floorType: 1, roomType: '100900000012', name: '餐饮区' },
|
|
45
|
+
{
|
|
46
|
+
type: 36,
|
|
47
|
+
floorType: 1,
|
|
48
|
+
roomType: '100900000012',
|
|
49
|
+
name: '其他',
|
|
50
|
+
onlySubArea: true,
|
|
51
|
+
},
|
|
52
|
+
{ type: 37, floorType: 1, roomType: '100900000002', name: '起居室' },
|
|
53
|
+
{ type: 38, floorType: 0, roomType: '100900000001', name: '主卧' },
|
|
54
|
+
{ type: 39, floorType: 0, roomType: '100900000001', name: '次卧' },
|
|
55
|
+
{ type: 40, floorType: 0, roomType: '100900000001', name: '优化间' },
|
|
56
|
+
{ type: 41, floorType: 0, roomType: '100900000001', name: '办公室' },
|
|
57
|
+
{ type: 42, floorType: 0, roomType: '100900000001', name: '会议室' },
|
|
58
|
+
{ type: 43, floorType: 0, roomType: '100900000001', name: '洽谈间' },
|
|
59
|
+
{ type: 44, floorType: 1, roomType: '100900000002', name: '共享大厅' },
|
|
60
|
+
{ type: 45, floorType: 1, roomType: '100900000012', name: '水吧' },
|
|
61
|
+
{ type: 46, floorType: 0, roomType: '100900000015', name: '出入口' },
|
|
62
|
+
{ type: 47, floorType: 0, roomType: '100900000015', name: '大厅' },
|
|
63
|
+
{ type: 48, floorType: 0, roomType: '100900000015', name: '包厢' },
|
|
64
|
+
{ type: 49, floorType: 0, roomType: '100900000015', name: '其他' },
|
|
65
|
+
{ type: 50, floorType: 0, roomType: '100900000016', name: '出入口' },
|
|
66
|
+
{ type: 51, floorType: 0, roomType: '100900000016', name: '办公区' },
|
|
67
|
+
{ type: 52, floorType: 0, roomType: '100900000016', name: '老板间' },
|
|
68
|
+
{ type: 53, floorType: 0, roomType: '100900000016', name: '会议室' },
|
|
69
|
+
{ type: 54, floorType: 0, roomType: '100900000016', name: '休息区/水吧' },
|
|
70
|
+
{ type: 55, floorType: 0, roomType: '100900000016', name: '其他' },
|
|
71
|
+
{ type: 56, floorType: 2, roomType: '100900000012', name: '空中花园' },
|
|
72
|
+
{ type: 57, floorType: 0, roomType: '100900000001', name: '洋室' },
|
|
73
|
+
{ type: 58, floorType: 0, roomType: '100900000001', name: '和室' },
|
|
74
|
+
];
|
|
75
|
+
/** 地板信息映射表 */
|
|
76
|
+
export const FLOOR_TYPE_MAP = [
|
|
77
|
+
{ type: 0, description: '木质地板' },
|
|
78
|
+
{ type: 1, description: '瓷砖地面' },
|
|
79
|
+
{ type: 2, description: '户外地面' },
|
|
80
|
+
{ type: 3, description: '卫生间地面' },
|
|
81
|
+
{ type: 4, description: '阳台地面' },
|
|
82
|
+
{ type: 5, description: '车库地面' },
|
|
83
|
+
];
|
|
84
|
+
/** 房屋类型映射表 */
|
|
85
|
+
export const ROOM_TYPE_MAP = [
|
|
86
|
+
{ roomType: '100900000001', description: '室' },
|
|
87
|
+
{ roomType: '100900000002', description: '厅' },
|
|
88
|
+
{ roomType: '100900000003', description: '厨' },
|
|
89
|
+
{ roomType: '100900000004', description: '卫' },
|
|
90
|
+
{ roomType: '100900000005', description: '阳台' },
|
|
91
|
+
{ roomType: '100900000006', description: '露台' },
|
|
92
|
+
{ roomType: '100900000007', description: '花园' },
|
|
93
|
+
{ roomType: '100900000008', description: '储' },
|
|
94
|
+
{ roomType: '100900000009', description: '保姆间' },
|
|
95
|
+
{ roomType: '100900000010', description: '车库' },
|
|
96
|
+
{ roomType: '100900000011', description: '阁楼' },
|
|
97
|
+
{ roomType: '100900000012', description: '其他' },
|
|
98
|
+
{ roomType: '100900000013', description: '衣' },
|
|
99
|
+
{ roomType: '100900000015', description: '商铺' },
|
|
100
|
+
{ roomType: '100900000016', description: '写字楼' },
|
|
101
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Five } from '@realsee/five';
|
|
2
|
-
import { FloorplanData, FloorplanExtraObject, FloorplanExtraObject3D } from '../typings/floorplanData';
|
|
3
|
-
import { FloorplanServerData } from '../typings/floorplanServerData';
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import type { FloorplanData, FloorplanExtraObject, FloorplanExtraObject3D } from '../typings/floorplanData';
|
|
3
|
+
import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
4
4
|
export default function formatData(data: FloorplanServerData): Promise<FloorplanData>;
|
|
5
5
|
export declare function formatExtraObjects(data: FloorplanExtraObject3D[], five: Five, floorplanData: FloorplanData): FloorplanExtraObject[];
|