@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
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports["default"] = exports.ModelFloorplanPlugin = void 0;
|
|
11
|
-
|
|
12
|
-
var _Controller = _interopRequireDefault(require("./Controller"));
|
|
13
|
-
|
|
14
|
-
var ModelFloorplanPlugin = function ModelFloorplanPlugin(five, params) {
|
|
15
|
-
return new _Controller["default"](five, params);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
exports.ModelFloorplanPlugin = ModelFloorplanPlugin;
|
|
19
|
-
var _default = ModelFloorplanPlugin;
|
|
20
|
-
exports["default"] = _default;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.SHOW_ANIME_DURATION = exports.FloorplanErrorType = exports.FIVE_CAMERA_DEFAULT_FOV = exports.DEFAULT_SHOW_MODEL_OPACITY = void 0;
|
|
9
|
-
var FloorplanErrorType;
|
|
10
|
-
/** 户型图展示 & 模型消失的默认时间 */
|
|
11
|
-
|
|
12
|
-
exports.FloorplanErrorType = FloorplanErrorType;
|
|
13
|
-
|
|
14
|
-
(function (FloorplanErrorType) {
|
|
15
|
-
FloorplanErrorType["UnknowError"] = "UnknowError";
|
|
16
|
-
FloorplanErrorType["DataNotLoaded"] = "DataNotLoaded";
|
|
17
|
-
FloorplanErrorType["BreakOffByHide"] = "BreakOffByHide";
|
|
18
|
-
FloorplanErrorType["ModelNotLoaded"] = "ModelNotLoaded";
|
|
19
|
-
FloorplanErrorType["ChangeModeError"] = "ChangeModeError";
|
|
20
|
-
FloorplanErrorType["UpdateCameraError"] = "UpdateCameraError";
|
|
21
|
-
FloorplanErrorType["DifferentShowParams"] = "DifferentShowParams";
|
|
22
|
-
})(FloorplanErrorType || (exports.FloorplanErrorType = FloorplanErrorType = {}));
|
|
23
|
-
|
|
24
|
-
var SHOW_ANIME_DURATION = 500;
|
|
25
|
-
/** Five camera 默认 fov */
|
|
26
|
-
|
|
27
|
-
exports.SHOW_ANIME_DURATION = SHOW_ANIME_DURATION;
|
|
28
|
-
var FIVE_CAMERA_DEFAULT_FOV = 80;
|
|
29
|
-
/** 展示户型图时,默认模型的透明度 */
|
|
30
|
-
|
|
31
|
-
exports.FIVE_CAMERA_DEFAULT_FOV = FIVE_CAMERA_DEFAULT_FOV;
|
|
32
|
-
var DEFAULT_SHOW_MODEL_OPACITY = 0.01;
|
|
33
|
-
exports.DEFAULT_SHOW_MODEL_OPACITY = DEFAULT_SHOW_MODEL_OPACITY;
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.checkShowState = checkShowState;
|
|
11
|
-
exports["default"] = correctFiveState;
|
|
12
|
-
|
|
13
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
14
|
-
|
|
15
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
|
-
|
|
17
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
18
|
-
|
|
19
|
-
var _five = require("@realsee/five");
|
|
20
|
-
|
|
21
|
-
var _changeMode = _interopRequireDefault(require("../../../../shared-utils/five/changeMode"));
|
|
22
|
-
|
|
23
|
-
var _constant = require("./constant");
|
|
24
|
-
|
|
25
|
-
var _to = _interopRequireDefault(require("../../../../shared-utils/to"));
|
|
26
|
-
|
|
27
|
-
var _nearlyEqual = _interopRequireDefault(require("../../../../shared-utils/nearlyEqual"));
|
|
28
|
-
|
|
29
|
-
/** 判断当前状态是否可以展示户型图 */
|
|
30
|
-
function checkShowState(five, showState) {
|
|
31
|
-
if (five.currentMode !== _five.Five.Mode.Floorplan) return false;
|
|
32
|
-
var latitude = showState.latitude,
|
|
33
|
-
longitude = showState.longitude,
|
|
34
|
-
fov = showState.fov;
|
|
35
|
-
|
|
36
|
-
var _five$getCurrentState = five.getCurrentState(),
|
|
37
|
-
_latitude = _five$getCurrentState.latitude,
|
|
38
|
-
_longitude = _five$getCurrentState.longitude;
|
|
39
|
-
|
|
40
|
-
var _fov = five.camera.fov;
|
|
41
|
-
if ((0, _nearlyEqual["default"])(latitude, _latitude, 1) && (0, _nearlyEqual["default"])(longitude, _longitude, 1) && fov === _fov) return true;
|
|
42
|
-
return false;
|
|
43
|
-
}
|
|
44
|
-
/** 更改 Five 状态到展示户型图的状态
|
|
45
|
-
* 1. 判断状态不符合时,会纠正到正确的状态
|
|
46
|
-
* 2. 内置了相应的动画时间计算
|
|
47
|
-
* 3. 纠正成功会返回 true,失败「可能会被用户行为中断」会返回 false
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
function correctFiveState(_x, _x2) {
|
|
52
|
-
return _correctFiveState.apply(this, arguments);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function _correctFiveState() {
|
|
56
|
-
_correctFiveState = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(five, showState) {
|
|
57
|
-
var userAction,
|
|
58
|
-
result,
|
|
59
|
-
_yield$to,
|
|
60
|
-
_yield$to2,
|
|
61
|
-
changeModeError,
|
|
62
|
-
_result,
|
|
63
|
-
_five$getCurrentState2,
|
|
64
|
-
latitude,
|
|
65
|
-
longitude,
|
|
66
|
-
fov,
|
|
67
|
-
time,
|
|
68
|
-
_yield$to3,
|
|
69
|
-
_yield$to4,
|
|
70
|
-
updateCameraError,
|
|
71
|
-
_args = arguments;
|
|
72
|
-
|
|
73
|
-
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
74
|
-
while (1) {
|
|
75
|
-
switch (_context.prev = _context.next) {
|
|
76
|
-
case 0:
|
|
77
|
-
userAction = _args.length > 2 && _args[2] !== undefined ? _args[2] : true;
|
|
78
|
-
// 当前已满足状态,不需要变更
|
|
79
|
-
result = checkShowState(five, showState);
|
|
80
|
-
|
|
81
|
-
if (!(result === true)) {
|
|
82
|
-
_context.next = 4;
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
return _context.abrupt("return");
|
|
87
|
-
|
|
88
|
-
case 4:
|
|
89
|
-
if (!(five.currentMode !== _five.Five.Mode.Floorplan)) {
|
|
90
|
-
_context.next = 16;
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
_context.next = 7;
|
|
95
|
-
return (0, _to["default"])((0, _changeMode["default"])(five, _five.Five.Mode.Floorplan, showState, undefined, userAction));
|
|
96
|
-
|
|
97
|
-
case 7:
|
|
98
|
-
_yield$to = _context.sent;
|
|
99
|
-
_yield$to2 = (0, _slicedToArray2["default"])(_yield$to, 1);
|
|
100
|
-
changeModeError = _yield$to2[0];
|
|
101
|
-
|
|
102
|
-
if (!changeModeError) {
|
|
103
|
-
_context.next = 12;
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
throw changeModeError;
|
|
108
|
-
|
|
109
|
-
case 12:
|
|
110
|
-
// changeMode 是异步行为,可能会被打断,需要在结束后加一次判断
|
|
111
|
-
_result = checkShowState(five, showState);
|
|
112
|
-
|
|
113
|
-
if (!(_result === false)) {
|
|
114
|
-
_context.next = 15;
|
|
115
|
-
break;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
throw new Error(_constant.FloorplanErrorType.ChangeModeError);
|
|
119
|
-
|
|
120
|
-
case 15:
|
|
121
|
-
return _context.abrupt("return");
|
|
122
|
-
|
|
123
|
-
case 16:
|
|
124
|
-
// 纠正相机状态
|
|
125
|
-
// 根据 latitude、longitude、fov 计算动画时间,最多 1s
|
|
126
|
-
_five$getCurrentState2 = five.getCurrentState(), latitude = _five$getCurrentState2.latitude, longitude = _five$getCurrentState2.longitude, fov = _five$getCurrentState2.fov;
|
|
127
|
-
time = Math.min(1000, Math.max(200, Math.abs(latitude - Math.PI / 2) * 1000, (longitude > Math.PI ? 2 * Math.PI - longitude : longitude) * 500, Math.abs(fov - showState.fov) * 10));
|
|
128
|
-
_context.next = 20;
|
|
129
|
-
return (0, _to["default"])(five.updateCamera(showState, time, userAction));
|
|
130
|
-
|
|
131
|
-
case 20:
|
|
132
|
-
_yield$to3 = _context.sent;
|
|
133
|
-
_yield$to4 = (0, _slicedToArray2["default"])(_yield$to3, 1);
|
|
134
|
-
updateCameraError = _yield$to4[0];
|
|
135
|
-
|
|
136
|
-
if (!updateCameraError) {
|
|
137
|
-
_context.next = 25;
|
|
138
|
-
break;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
throw new Error(_constant.FloorplanErrorType.UpdateCameraError);
|
|
142
|
-
|
|
143
|
-
case 25:
|
|
144
|
-
return _context.abrupt("return");
|
|
145
|
-
|
|
146
|
-
case 26:
|
|
147
|
-
case "end":
|
|
148
|
-
return _context.stop();
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}, _callee);
|
|
152
|
-
}));
|
|
153
|
-
return _correctFiveState.apply(this, arguments);
|
|
154
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Five } from '@realsee/five';
|
|
3
|
-
import { FloorplanData } from '../../typings/floorplanData';
|
|
4
|
-
declare const _default: React.NamedExoticComponent<{
|
|
5
|
-
five: Five;
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
floorplanData: FloorplanData;
|
|
9
|
-
cameraImage?: {
|
|
10
|
-
style: React.CSSProperties;
|
|
11
|
-
} | undefined;
|
|
12
|
-
}>;
|
|
13
|
-
export default _default;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.array.iterator.js");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.object.to-string.js");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.string.iterator.js");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.weak-map.js");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.object.define-property.js");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
-
|
|
17
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
-
|
|
19
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(exports, "__esModule", {
|
|
22
|
-
value: true
|
|
23
|
-
});
|
|
24
|
-
exports["default"] = void 0;
|
|
25
|
-
|
|
26
|
-
require("core-js/modules/es.array.concat.js");
|
|
27
|
-
|
|
28
|
-
require("core-js/modules/es.object.assign.js");
|
|
29
|
-
|
|
30
|
-
require("core-js/modules/es.array.every.js");
|
|
31
|
-
|
|
32
|
-
require("core-js/modules/es.object.keys.js");
|
|
33
|
-
|
|
34
|
-
var React = _interopRequireWildcard(require("react"));
|
|
35
|
-
|
|
36
|
-
var _throttle = _interopRequireDefault(require("../../../../shared-utils/throttle"));
|
|
37
|
-
|
|
38
|
-
var _Camera = require("./Camera.style");
|
|
39
|
-
|
|
40
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
|
-
|
|
42
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
43
|
-
|
|
44
|
-
var _default = /*#__PURE__*/React.memo(function Camera(props) {
|
|
45
|
-
var _props$cameraImage;
|
|
46
|
-
|
|
47
|
-
var getCameraPositionTransform = function getCameraPositionTransform(panoIndex) {
|
|
48
|
-
var observers = props.floorplanData.observers;
|
|
49
|
-
var observer = observers[panoIndex];
|
|
50
|
-
var left = Math.floor(observer.positionInImage.x * props.width);
|
|
51
|
-
var top = Math.floor(observer.positionInImage.y * props.height);
|
|
52
|
-
return "translate(".concat(left, "px, ").concat(top, "px)");
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
var getCameraRotationTransform = function getCameraRotationTransform() {
|
|
56
|
-
var _five$getCurrentState = five.getCurrentState(),
|
|
57
|
-
longitude = _five$getCurrentState.longitude; // 为什么要加 45 ==> 因为 UI 给的图初始角度是 -45
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var rotate = Math.floor(longitude / Math.PI * 180) * -1 + 45;
|
|
61
|
-
return "rotate(".concat(rotate, "deg)");
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
var changePosition = function changePosition(panoIndex) {
|
|
65
|
-
if (!cameraPositionDomRef.current) return;
|
|
66
|
-
cameraPositionDomRef.current.style.transform = getCameraPositionTransform(panoIndex);
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
var changeRotate = (0, _throttle["default"])(function () {
|
|
70
|
-
if (!cameraRotateDomRef.current) return;
|
|
71
|
-
cameraRotateDomRef.current.style.transform = getCameraRotationTransform();
|
|
72
|
-
}, 1000 / 60);
|
|
73
|
-
var five = props.five;
|
|
74
|
-
var cameraPositionDomRef = React.useRef(null);
|
|
75
|
-
var cameraRotateDomRef = React.useRef(null);
|
|
76
|
-
var originPositionStyle = {
|
|
77
|
-
transform: getCameraPositionTransform(five.getCurrentState().panoIndex)
|
|
78
|
-
};
|
|
79
|
-
var originRotationStyle = {
|
|
80
|
-
transform: getCameraRotationTransform()
|
|
81
|
-
};
|
|
82
|
-
React.useEffect(function () {
|
|
83
|
-
var onModelLoaded = function onModelLoaded() {
|
|
84
|
-
changePosition(five.getCurrentState().panoIndex);
|
|
85
|
-
changeRotate();
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
changePosition(five.getCurrentState().panoIndex);
|
|
89
|
-
changeRotate();
|
|
90
|
-
five.on('panoWillArrive', changePosition);
|
|
91
|
-
five.on('cameraUpdate', changeRotate);
|
|
92
|
-
five.on('modelLoaded', onModelLoaded);
|
|
93
|
-
return function () {
|
|
94
|
-
five.off('panoWillArrive', changePosition);
|
|
95
|
-
five.off('cameraUpdate', changeRotate);
|
|
96
|
-
five.off('modelLoaded', onModelLoaded);
|
|
97
|
-
};
|
|
98
|
-
});
|
|
99
|
-
var rotateBaseStyle = Object.assign({}, _Camera.rotateStyle, (_props$cameraImage = props.cameraImage) === null || _props$cameraImage === void 0 ? void 0 : _props$cameraImage.style);
|
|
100
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
101
|
-
ref: cameraPositionDomRef,
|
|
102
|
-
style: Object.assign({}, _Camera.positionStyle, originPositionStyle)
|
|
103
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
104
|
-
ref: cameraRotateDomRef,
|
|
105
|
-
style: Object.assign({}, rotateBaseStyle, originRotationStyle)
|
|
106
|
-
}));
|
|
107
|
-
}, function (prev, next) {
|
|
108
|
-
return Object.keys(prev).every(function (key) {
|
|
109
|
-
return next[key] === prev[key];
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
exports["default"] = _default;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.rotateStyle = exports.positionStyle = void 0;
|
|
11
|
-
|
|
12
|
-
require("core-js/modules/es.array.concat.js");
|
|
13
|
-
|
|
14
|
-
var _px2rem = _interopRequireDefault(require("../../../../shared-utils/px2rem"));
|
|
15
|
-
|
|
16
|
-
var positionStyle = {
|
|
17
|
-
position: 'absolute',
|
|
18
|
-
left: '0',
|
|
19
|
-
top: '0',
|
|
20
|
-
width: '0',
|
|
21
|
-
height: '0',
|
|
22
|
-
transform: 'none',
|
|
23
|
-
pointerEvents: 'none',
|
|
24
|
-
transition: 'transform 1s linear'
|
|
25
|
-
};
|
|
26
|
-
exports.positionStyle = positionStyle;
|
|
27
|
-
var rotateStyle = {
|
|
28
|
-
position: 'absolute',
|
|
29
|
-
left: "".concat((0, _px2rem["default"])(-15)),
|
|
30
|
-
top: "".concat((0, _px2rem["default"])(-15)),
|
|
31
|
-
width: "".concat((0, _px2rem["default"])(17)),
|
|
32
|
-
height: "".concat((0, _px2rem["default"])(17)),
|
|
33
|
-
backgroundSize: '100%',
|
|
34
|
-
backgroundRepeat: 'no-repeat',
|
|
35
|
-
transformOrigin: "".concat((0, _px2rem["default"])(15), " ").concat((0, _px2rem["default"])(15)),
|
|
36
|
-
transform: 'rotate(45deg)',
|
|
37
|
-
backgroundImage: "url('//vrlab-static.ljcdn.com/release/web/default-sidemap-camera.5e0b9a1a.png')"
|
|
38
|
-
};
|
|
39
|
-
exports.rotateStyle = rotateStyle;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.array.iterator.js");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.object.to-string.js");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.string.iterator.js");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.weak-map.js");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.object.define-property.js");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
-
|
|
17
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
-
|
|
19
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(exports, "__esModule", {
|
|
22
|
-
value: true
|
|
23
|
-
});
|
|
24
|
-
exports.ExtraObjects = ExtraObjects;
|
|
25
|
-
|
|
26
|
-
require("core-js/modules/es.array.map.js");
|
|
27
|
-
|
|
28
|
-
var React = _interopRequireWildcard(require("react"));
|
|
29
|
-
|
|
30
|
-
var _px2rem = _interopRequireDefault(require("../../../../../shared-utils/px2rem"));
|
|
31
|
-
|
|
32
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
|
-
|
|
34
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
|
-
|
|
36
|
-
function ExtraObjects(props) {
|
|
37
|
-
var containerStyle = {
|
|
38
|
-
width: '100%',
|
|
39
|
-
height: '100%',
|
|
40
|
-
position: 'absolute',
|
|
41
|
-
top: '0',
|
|
42
|
-
left: '0',
|
|
43
|
-
pointerEvents: 'none'
|
|
44
|
-
};
|
|
45
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
style: containerStyle
|
|
47
|
-
}, props.extraObjects.map(function (extraObject) {
|
|
48
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
49
|
-
key: extraObject.id,
|
|
50
|
-
style: {
|
|
51
|
-
width: 0,
|
|
52
|
-
height: 0,
|
|
53
|
-
position: 'absolute',
|
|
54
|
-
top: extraObject.positionInImage.y * 100 + '%',
|
|
55
|
-
left: extraObject.positionInImage.x * 100 + '%'
|
|
56
|
-
}
|
|
57
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
58
|
-
style: {
|
|
59
|
-
width: "".concat((0, _px2rem["default"])(extraObject.icon.width)),
|
|
60
|
-
height: "".concat((0, _px2rem["default"])(extraObject.icon.height)),
|
|
61
|
-
backgroundImage: "url(".concat(extraObject.icon.url, ")"),
|
|
62
|
-
transform: 'translate(-50%, -50%)'
|
|
63
|
-
}
|
|
64
|
-
}));
|
|
65
|
-
}));
|
|
66
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Five } from '@realsee/five';
|
|
3
|
-
import { FloorplanData } from '../../../typings/floorplanData';
|
|
4
|
-
export default function RoomHighlight(props: {
|
|
5
|
-
five: Five;
|
|
6
|
-
pxmm: number;
|
|
7
|
-
floorIndex: number;
|
|
8
|
-
floorplanData: FloorplanData;
|
|
9
|
-
}): JSX.Element;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.array.iterator.js");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.object.to-string.js");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.string.iterator.js");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.weak-map.js");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.object.define-property.js");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
-
|
|
17
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
-
|
|
19
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(exports, "__esModule", {
|
|
22
|
-
value: true
|
|
23
|
-
});
|
|
24
|
-
exports["default"] = RoomHighlight;
|
|
25
|
-
|
|
26
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
27
|
-
|
|
28
|
-
require("core-js/modules/es.string.sub.js");
|
|
29
|
-
|
|
30
|
-
require("core-js/modules/es.array.sort.js");
|
|
31
|
-
|
|
32
|
-
require("core-js/modules/es.array.filter.js");
|
|
33
|
-
|
|
34
|
-
require("core-js/modules/es.array.map.js");
|
|
35
|
-
|
|
36
|
-
var React = _interopRequireWildcard(require("react"));
|
|
37
|
-
|
|
38
|
-
var _three = require("three");
|
|
39
|
-
|
|
40
|
-
var _formatPosition = _interopRequireWildcard(require("../../../utils/formatPosition"));
|
|
41
|
-
|
|
42
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
43
|
-
|
|
44
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
45
|
-
|
|
46
|
-
function RoomHighlight(props) {
|
|
47
|
-
if (!props.five.work || !props.five.model) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
48
|
-
var nowFloorData = props.floorplanData.floorDatas[props.floorIndex];
|
|
49
|
-
var contentDomRef = React.useRef(null);
|
|
50
|
-
var floorplanObservers = props.floorplanData.observers;
|
|
51
|
-
|
|
52
|
-
var handleClick = function handleClick(e) {
|
|
53
|
-
if (!contentDomRef.current) return;
|
|
54
|
-
var boundingClient = contentDomRef.current.getBoundingClientRect(); // 注意 React 对事件做了代理,clientX 和 clientY 不再相对于原 DOM,而是 document
|
|
55
|
-
|
|
56
|
-
var mouseVector = new _three.Vector2(e.clientX, e.clientY);
|
|
57
|
-
var contentOffset = new _three.Vector2(boundingClient.left, boundingClient.top); // 相当于原生 mouseEvent 的 clientX clientY
|
|
58
|
-
|
|
59
|
-
var mouseOriginVector = mouseVector.clone().sub(contentOffset);
|
|
60
|
-
var mouseOffsetVector = new _three.Vector2(mouseOriginVector.x / contentDomRef.current.clientWidth, mouseOriginVector.y / contentDomRef.current.clientHeight);
|
|
61
|
-
var closestPoint = floorplanObservers.filter(function (observer) {
|
|
62
|
-
return observer.floorIndex === props.floorIndex;
|
|
63
|
-
}).sort(function (ob1, ob2) {
|
|
64
|
-
var position1 = new _three.Vector2(ob1.positionInImage.x, ob1.positionInImage.y);
|
|
65
|
-
var position2 = new _three.Vector2(ob2.positionInImage.x, ob2.positionInImage.y);
|
|
66
|
-
return position1.distanceTo(mouseOffsetVector) - position2.distanceTo(mouseOffsetVector);
|
|
67
|
-
})[0];
|
|
68
|
-
props.five.moveToPano(closestPoint.index);
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
var highlightStyle = {
|
|
72
|
-
position: 'absolute',
|
|
73
|
-
width: '100%',
|
|
74
|
-
height: '100%',
|
|
75
|
-
pointerEvents: 'all'
|
|
76
|
-
};
|
|
77
|
-
var svgStyle = {
|
|
78
|
-
width: '100%',
|
|
79
|
-
height: '100%',
|
|
80
|
-
overflow: 'visible'
|
|
81
|
-
};
|
|
82
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
83
|
-
ref: contentDomRef,
|
|
84
|
-
className: "floorplan-plugin__room-highlight",
|
|
85
|
-
style: highlightStyle,
|
|
86
|
-
onClick: handleClick
|
|
87
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
88
|
-
style: svgStyle
|
|
89
|
-
}, nowFloorData.rooms.map(function (room) {
|
|
90
|
-
return /*#__PURE__*/React.createElement(Room, (0, _extends2["default"])({
|
|
91
|
-
key: room.id
|
|
92
|
-
}, props, {
|
|
93
|
-
data: room
|
|
94
|
-
}));
|
|
95
|
-
})));
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function Room(props) {
|
|
99
|
-
var bounding = props.floorplanData.bounding;
|
|
100
|
-
|
|
101
|
-
var _pathD = (0, _formatPosition.pathD)(props.data.path, {
|
|
102
|
-
needZ: true,
|
|
103
|
-
format: function format(vector) {
|
|
104
|
-
return (0, _formatPosition["default"])(vector, props.pxmm, bounding);
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
var pathElement = React.useRef(null);
|
|
109
|
-
|
|
110
|
-
var handleMouseOver = function handleMouseOver() {
|
|
111
|
-
pathElement.current && (pathElement.current.style.opacity = '0.1');
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
var handleMouseOut = function handleMouseOut() {
|
|
115
|
-
pathElement.current && (pathElement.current.style.opacity = '0');
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
return /*#__PURE__*/React.createElement("path", {
|
|
119
|
-
ref: pathElement,
|
|
120
|
-
d: _pathD,
|
|
121
|
-
fill: "#000",
|
|
122
|
-
opacity: 0,
|
|
123
|
-
onMouseOver: handleMouseOver,
|
|
124
|
-
onMouseOut: handleMouseOut
|
|
125
|
-
});
|
|
126
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Five } from '@realsee/five';
|
|
3
|
-
import { FloorplanData, FloorplanExtraObject } from '../../../typings/floorplanData';
|
|
4
|
-
export default function NowFloor(props: {
|
|
5
|
-
five: Five;
|
|
6
|
-
pxmm: number;
|
|
7
|
-
floorIndex: number;
|
|
8
|
-
hoverEnable?: boolean;
|
|
9
|
-
extraObjects?: FloorplanExtraObject[];
|
|
10
|
-
floorplanData: FloorplanData;
|
|
11
|
-
}): JSX.Element;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.array.iterator.js");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.object.to-string.js");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.string.iterator.js");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.weak-map.js");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.object.define-property.js");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
-
|
|
17
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
-
|
|
19
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(exports, "__esModule", {
|
|
22
|
-
value: true
|
|
23
|
-
});
|
|
24
|
-
exports["default"] = NowFloor;
|
|
25
|
-
|
|
26
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
27
|
-
|
|
28
|
-
require("core-js/modules/es.array.filter.js");
|
|
29
|
-
|
|
30
|
-
var React = _interopRequireWildcard(require("react"));
|
|
31
|
-
|
|
32
|
-
var _RoomHighlight = _interopRequireDefault(require("./RoomHighlight"));
|
|
33
|
-
|
|
34
|
-
var _FloorplanImage = _interopRequireDefault(require("../../../components/FloorplanImage"));
|
|
35
|
-
|
|
36
|
-
var _ExtraObjects = require("./ExtraObjects");
|
|
37
|
-
|
|
38
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
39
|
-
|
|
40
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
41
|
-
|
|
42
|
-
function NowFloor(props) {
|
|
43
|
-
var _props$extraObjects;
|
|
44
|
-
|
|
45
|
-
var nowFloorStyle = {
|
|
46
|
-
position: 'relative',
|
|
47
|
-
width: '100%',
|
|
48
|
-
height: '100%'
|
|
49
|
-
};
|
|
50
|
-
var nowFloorExtraObjects = props === null || props === void 0 ? void 0 : (_props$extraObjects = props.extraObjects) === null || _props$extraObjects === void 0 ? void 0 : _props$extraObjects.filter(function (object) {
|
|
51
|
-
return object.floorIndex === props.floorIndex;
|
|
52
|
-
});
|
|
53
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
54
|
-
style: nowFloorStyle
|
|
55
|
-
}, /*#__PURE__*/React.createElement(_FloorplanImage["default"], props), nowFloorExtraObjects && /*#__PURE__*/React.createElement(_ExtraObjects.ExtraObjects, {
|
|
56
|
-
extraObjects: nowFloorExtraObjects
|
|
57
|
-
}), props.hoverEnable && /*#__PURE__*/React.createElement(_RoomHighlight["default"], (0, _extends2["default"])({}, props, props.floorplanData)));
|
|
58
|
-
}
|