@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,26 +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
|
-
Object.defineProperty(exports, "TREASURE_TYPE", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function get() {
|
|
11
|
-
return _constants.TREASURE_TYPE;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
exports["default"] = exports.TreasurePlugin = void 0;
|
|
15
|
-
|
|
16
|
-
var _Controller = require("./Controller");
|
|
17
|
-
|
|
18
|
-
var _constants = require("./constants");
|
|
19
|
-
|
|
20
|
-
var TreasurePlugin = function TreasurePlugin(five) {
|
|
21
|
-
return new _Controller.TreasurePluginController(five);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
exports.TreasurePlugin = TreasurePlugin;
|
|
25
|
-
var _default = TreasurePlugin;
|
|
26
|
-
exports["default"] = _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const FLOORPLANE_EXTRA_OBJECT_IMAGE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALaADAAQAAAABAAAAMAAAAADe2FZjAAAEF0lEQVRoBe2WzWskRRiHf13V092TxI2oEzYeVDwITtyDuCiihwiCePGgxIM3vYgHL4J4UIhBRA8i/gPqyUvWg7AiIuIeloDiYUHJLOK6BPwIk9nNODM9Xf1RVe1b3elJRjCZmQ6euqGmuqer33rq4e23GqiOykBloDJQGagMVAYqA5WBykBlYFYD1qwP/tdzaZqOx9zYOLxeX0+L5yzLGp0X/03a25MOnGRcBtx+6Rlo9SL08G4EooFnxa8Yiivox5/h5Ys/4cl7NVorNDRnngX+0MIkVMeMSf23zyKML8J7/Dy8hwF2Buh9CnS+AEQIdLspBuGb+M7/qLW4qJrNpsLapjYhpwVnx3BMfCtNNx3Etc9xywvnMf80wG8HmQainw0RxSGrnmeBp+8k5/j9S0HbvXb5io0Lz880/0wPHV1NlhLd316He+4xOCv5ragF7L9PrH1qBJyB0626x/lC+qrSvH5r/W+n1WpxUM5nMY4GPeH8lHJaPgfeAFQHCL+ntkXT+vnUc3W6pvTIwC0wy3rA4dwLmK2avZ7Eo9uKBuYJfgJscbs8dLCxDMt+EOEPBEZNEWyBYHqTz6bPXrzUnNrSShxHIsYiOL69zrCGLLcLqJP68tB+9w5wj+YhWDafQ2s61wNqxjZhmrQ2pvMFCEvXuCUZ7wqH794ZWs28LJqlTXSUyuksF2M/yOwqgkx2c1ADa4wLAQRk2sAGQQakhN6yFC2hltfz5kSY44NKQeeh+vtI/SSzWhg2CzCgmWISmKUGmaYFBDfCSymnfxJ6/+ospVcWOLLp5DGP/y0P/Rp66O99DQNq7Po3Ds0a0wY+My2QSv2N2mO/OyxR2o6UQk+Lv7yJ06JYSnnolZVU9cUn2O9SmaMWGFBqYXRwbqAJWIi94TX5biotpcGl1DXZ6LnqIbNDTnmUgi52Mv5l5ysMxIcZcGjy2DTK4ZHlcBC14zeSge4qphICjj3bS0A7o9nSp2TOkm7aZ8bGZy/jxhO87V91G0+dfY/Z7BWIIK9KYUi5qy/Hf8YfBG3sqJTHiQWhmTVkbip+wX3x6volVSx+LPAxF+VLXhZ8VQ+iP2Rta/iWe5v42Fngj0BbdnRTXh12ZIcKhTaGbcYjybRwXBU1lu9KlndXp04NM52poKWO0RZsviNaP9a6grkO972+st05pXhE5c1hTEluJy7XUejGUQNLMbAmTdWY1rKBLW3aTJqBZ7nZkb36DhYCreeYHbMUXHvaYi5XDK70EcgulmRjm77wNtenzuXCbmnTRaAx493rbGf3Jr/njMzj920CnKdUaFCjlDioy7NYNvOdGrQJNgI32/L2tkXfFPlxgToqjWVhD6KdLnQRdARf/HHQz2r2X2Gqy8pAZaAyUBmoDFQGKgP/q4F/AJYg9/s0ZoABAAAAAElFTkSuQmCC";
|
|
@@ -1,10 +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.FLOORPLANE_EXTRA_OBJECT_IMAGE = void 0;
|
|
9
|
-
var FLOORPLANE_EXTRA_OBJECT_IMAGE = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALaADAAQAAAABAAAAMAAAAADe2FZjAAAEF0lEQVRoBe2WzWskRRiHf13V092TxI2oEzYeVDwITtyDuCiihwiCePGgxIM3vYgHL4J4UIhBRA8i/gPqyUvWg7AiIuIeloDiYUHJLOK6BPwIk9nNODM9Xf1RVe1b3elJRjCZmQ6euqGmuqer33rq4e23GqiOykBloDJQGagMVAYqA5WBykBlYFYD1qwP/tdzaZqOx9zYOLxeX0+L5yzLGp0X/03a25MOnGRcBtx+6Rlo9SL08G4EooFnxa8Yiivox5/h5Ys/4cl7NVorNDRnngX+0MIkVMeMSf23zyKML8J7/Dy8hwF2Buh9CnS+AEQIdLspBuGb+M7/qLW4qJrNpsLapjYhpwVnx3BMfCtNNx3Etc9xywvnMf80wG8HmQainw0RxSGrnmeBp+8k5/j9S0HbvXb5io0Lz880/0wPHV1NlhLd316He+4xOCv5ragF7L9PrH1qBJyB0626x/lC+qrSvH5r/W+n1WpxUM5nMY4GPeH8lHJaPgfeAFQHCL+ntkXT+vnUc3W6pvTIwC0wy3rA4dwLmK2avZ7Eo9uKBuYJfgJscbs8dLCxDMt+EOEPBEZNEWyBYHqTz6bPXrzUnNrSShxHIsYiOL69zrCGLLcLqJP68tB+9w5wj+YhWDafQ2s61wNqxjZhmrQ2pvMFCEvXuCUZ7wqH794ZWs28LJqlTXSUyuksF2M/yOwqgkx2c1ADa4wLAQRk2sAGQQakhN6yFC2hltfz5kSY44NKQeeh+vtI/SSzWhg2CzCgmWISmKUGmaYFBDfCSymnfxJ6/+ospVcWOLLp5DGP/y0P/Rp66O99DQNq7Po3Ds0a0wY+My2QSv2N2mO/OyxR2o6UQk+Lv7yJ06JYSnnolZVU9cUn2O9SmaMWGFBqYXRwbqAJWIi94TX5biotpcGl1DXZ6LnqIbNDTnmUgi52Mv5l5ysMxIcZcGjy2DTK4ZHlcBC14zeSge4qphICjj3bS0A7o9nSp2TOkm7aZ8bGZy/jxhO87V91G0+dfY/Z7BWIIK9KYUi5qy/Hf8YfBG3sqJTHiQWhmTVkbip+wX3x6volVSx+LPAxF+VLXhZ8VQ+iP2Rta/iWe5v42Fngj0BbdnRTXh12ZIcKhTaGbcYjybRwXBU1lu9KlndXp04NM52poKWO0RZsviNaP9a6grkO972+st05pXhE5c1hTEluJy7XUejGUQNLMbAmTdWY1rKBLW3aTJqBZ7nZkb36DhYCreeYHbMUXHvaYi5XDK70EcgulmRjm77wNtenzuXCbmnTRaAx493rbGf3Jr/njMzj920CnKdUaFCjlDioy7NYNvOdGrQJNgI32/L2tkXfFPlxgToqjWVhD6KdLnQRdARf/HHQz2r2X2Gqy8pAZaAyUBmoDFQGKgP/q4F/AJYg9/s0ZoABAAAAAElFTkSuQmCC';
|
|
10
|
-
exports.FLOORPLANE_EXTRA_OBJECT_IMAGE = FLOORPLANE_EXTRA_OBJECT_IMAGE;
|
|
@@ -1,626 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.array.iterator.js");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.string.iterator.js");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.weak-map.js");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/es.object.define-property.js");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
14
|
-
|
|
15
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
16
|
-
|
|
17
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
18
|
-
|
|
19
|
-
Object.defineProperty(exports, "__esModule", {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
exports["default"] = exports.MODEL_FLOORPLAN_PLUGIN_NAME = void 0;
|
|
23
|
-
|
|
24
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
25
|
-
|
|
26
|
-
require("core-js/modules/es.object.to-string.js");
|
|
27
|
-
|
|
28
|
-
require("core-js/modules/es.promise.js");
|
|
29
|
-
|
|
30
|
-
require("core-js/modules/es.promise.finally.js");
|
|
31
|
-
|
|
32
|
-
require("core-js/modules/es.object.assign.js");
|
|
33
|
-
|
|
34
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
35
|
-
|
|
36
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
37
|
-
|
|
38
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
39
|
-
|
|
40
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
41
|
-
|
|
42
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
43
|
-
|
|
44
|
-
var React = _interopRequireWildcard(require("react"));
|
|
45
|
-
|
|
46
|
-
var _components = _interopRequireDefault(require("./components"));
|
|
47
|
-
|
|
48
|
-
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
49
|
-
|
|
50
|
-
var _to = _interopRequireDefault(require("../../../shared-utils/to"));
|
|
51
|
-
|
|
52
|
-
var _formatData = _interopRequireDefault(require("../utils/formatData"));
|
|
53
|
-
|
|
54
|
-
var _equal = _interopRequireDefault(require("../../../shared-utils/equal"));
|
|
55
|
-
|
|
56
|
-
var _getPxmm = _interopRequireDefault(require("../../../shared-utils/getPxmm"));
|
|
57
|
-
|
|
58
|
-
var _correctFiveState = _interopRequireWildcard(require("./utils/correctFiveState"));
|
|
59
|
-
|
|
60
|
-
var _changeModelCanvansOpacity = _interopRequireDefault(require("../../../shared-utils/changeModelCanvansOpacity"));
|
|
61
|
-
|
|
62
|
-
var _controller = require("./controller.style");
|
|
63
|
-
|
|
64
|
-
var _filter = require("../../../shared-utils/filter");
|
|
65
|
-
|
|
66
|
-
var _five2 = require("@realsee/five");
|
|
67
|
-
|
|
68
|
-
var _constant = require("./utils/constant");
|
|
69
|
-
|
|
70
|
-
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); }
|
|
71
|
-
|
|
72
|
-
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; }
|
|
73
|
-
|
|
74
|
-
var MODEL_FLOORPLAN_PLUGIN_NAME = 'modelFloorplanPlugin';
|
|
75
|
-
exports.MODEL_FLOORPLAN_PLUGIN_NAME = MODEL_FLOORPLAN_PLUGIN_NAME;
|
|
76
|
-
|
|
77
|
-
var ModelFloorplanPluginController = /*#__PURE__*/function () {
|
|
78
|
-
/** 展示状态 */
|
|
79
|
-
|
|
80
|
-
/** 户型图大小 */
|
|
81
|
-
function ModelFloorplanPluginController(_five, params) {
|
|
82
|
-
var _this = this,
|
|
83
|
-
_params$scale;
|
|
84
|
-
|
|
85
|
-
(0, _classCallCheck2["default"])(this, ModelFloorplanPluginController);
|
|
86
|
-
(0, _defineProperty2["default"])(this, "name", MODEL_FLOORPLAN_PLUGIN_NAME);
|
|
87
|
-
(0, _defineProperty2["default"])(this, "visible", false);
|
|
88
|
-
(0, _defineProperty2["default"])(this, "size", {
|
|
89
|
-
width: 0,
|
|
90
|
-
height: 0
|
|
91
|
-
});
|
|
92
|
-
(0, _defineProperty2["default"])(this, "pxmm", 0);
|
|
93
|
-
(0, _defineProperty2["default"])(this, "panoIndex", 0);
|
|
94
|
-
(0, _defineProperty2["default"])(this, "floorIndex", 0);
|
|
95
|
-
(0, _defineProperty2["default"])(this, "configs", {});
|
|
96
|
-
(0, _defineProperty2["default"])(this, "lastPanoramaLongitude", 0);
|
|
97
|
-
(0, _defineProperty2["default"])(this, "container", document.createElement('div'));
|
|
98
|
-
(0, _defineProperty2["default"])(this, "dispose", function () {
|
|
99
|
-
var _this$container;
|
|
100
|
-
|
|
101
|
-
var five = _this.five;
|
|
102
|
-
|
|
103
|
-
_this.hide();
|
|
104
|
-
|
|
105
|
-
_this.container && _reactDom["default"].unmountComponentAtNode(_this.container);
|
|
106
|
-
(_this$container = _this.container) === null || _this$container === void 0 ? void 0 : _this$container.remove();
|
|
107
|
-
five.off('modelLoaded', _this.handleModelLoaded);
|
|
108
|
-
five.off('modeChange', _this.handleModeChange);
|
|
109
|
-
five.off('panGesture', _this.handlePanGesture);
|
|
110
|
-
five.off('panoArrived', _this.handlePanoArrived);
|
|
111
|
-
five.off('wantsChangeMode', _this.handleWantsChangeMode);
|
|
112
|
-
five.off('wantsInteriaPan', _this.handleWantsInteriaPan);
|
|
113
|
-
five.off('wantsTapGesture', _this.handleWantsTapGesture);
|
|
114
|
-
five.off('modelShownFloorChange', _this.onModelShownFloorChange);
|
|
115
|
-
});
|
|
116
|
-
(0, _defineProperty2["default"])(this, "updateSize", function () {
|
|
117
|
-
if (!_this.floorplanData) return;
|
|
118
|
-
if (!(0, _correctFiveState.checkShowState)(_this.five, _this.showState)) return;
|
|
119
|
-
if (!_this.container || !_this.wrapper) return; // 计算户型图展示大小
|
|
120
|
-
|
|
121
|
-
var _this$floorplanData$b = _this.floorplanData.bounding,
|
|
122
|
-
min = _this$floorplanData$b.min,
|
|
123
|
-
max = _this$floorplanData$b.max;
|
|
124
|
-
var width = max.x - min.x;
|
|
125
|
-
var height = max.y - min.y; // 每毫米对应的 px 值
|
|
126
|
-
|
|
127
|
-
var pxmm = (0, _getPxmm["default"])(_this.five, _this.wrapper);
|
|
128
|
-
|
|
129
|
-
var _width = Math.ceil(width * pxmm);
|
|
130
|
-
|
|
131
|
-
var _height = Math.ceil(height * pxmm);
|
|
132
|
-
|
|
133
|
-
if (_this.size.width === _width && _this.size.height === _height) return;
|
|
134
|
-
_this.pxmm = pxmm;
|
|
135
|
-
_this.size = {
|
|
136
|
-
width: _width,
|
|
137
|
-
height: _height
|
|
138
|
-
};
|
|
139
|
-
_this.container.style.width = _width + 'px';
|
|
140
|
-
_this.container.style.height = _height + 'px';
|
|
141
|
-
});
|
|
142
|
-
(0, _defineProperty2["default"])(this, "show", /*#__PURE__*/function () {
|
|
143
|
-
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(opts) {
|
|
144
|
-
var _this$five$model;
|
|
145
|
-
|
|
146
|
-
var _this$showRejection, sameWithLastOpts, showPromise;
|
|
147
|
-
|
|
148
|
-
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
149
|
-
while (1) {
|
|
150
|
-
switch (_context2.prev = _context2.next) {
|
|
151
|
-
case 0:
|
|
152
|
-
if (!(!_this.showPromise && _this.visible)) {
|
|
153
|
-
_context2.next = 2;
|
|
154
|
-
break;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
return _context2.abrupt("return", true);
|
|
158
|
-
|
|
159
|
-
case 2:
|
|
160
|
-
if ((_this$five$model = _this.five.model) !== null && _this$five$model !== void 0 && _this$five$model.loaded) {
|
|
161
|
-
_context2.next = 4;
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
throw new Error(_constant.FloorplanErrorType.ModelNotLoaded);
|
|
166
|
-
|
|
167
|
-
case 4:
|
|
168
|
-
if (_this.floorplanData) {
|
|
169
|
-
_context2.next = 6;
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
throw new Error(_constant.FloorplanErrorType.DataNotLoaded);
|
|
174
|
-
|
|
175
|
-
case 6:
|
|
176
|
-
_this.visible = true;
|
|
177
|
-
|
|
178
|
-
if (!_this.showPromise) {
|
|
179
|
-
_context2.next = 12;
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
sameWithLastOpts = (0, _equal["default"])(opts, _this.ModelFloorplanPluginsShowOpts, {
|
|
184
|
-
deep: false
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
if (!(!!_this.showPromise && sameWithLastOpts)) {
|
|
188
|
-
_context2.next = 11;
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
return _context2.abrupt("return", _this.showPromise);
|
|
193
|
-
|
|
194
|
-
case 11:
|
|
195
|
-
if (!!_this.showPromise && !sameWithLastOpts) (_this$showRejection = _this.showRejection) === null || _this$showRejection === void 0 ? void 0 : _this$showRejection.call(_this, _constant.FloorplanErrorType.DifferentShowParams);
|
|
196
|
-
|
|
197
|
-
case 12:
|
|
198
|
-
_this.ModelFloorplanPluginsShowOpts = opts;
|
|
199
|
-
showPromise = new Promise( /*#__PURE__*/function () {
|
|
200
|
-
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(resolve, reject) {
|
|
201
|
-
var _opts$modelOpacity;
|
|
202
|
-
|
|
203
|
-
var hasRejected, _yield$to, _yield$to2, correctError, modelOpacity, renderDuration;
|
|
204
|
-
|
|
205
|
-
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
206
|
-
while (1) {
|
|
207
|
-
switch (_context.prev = _context.next) {
|
|
208
|
-
case 0:
|
|
209
|
-
hasRejected = false;
|
|
210
|
-
|
|
211
|
-
_this.showRejection = function (errorMsg) {
|
|
212
|
-
hasRejected = true;
|
|
213
|
-
reject(errorMsg ? new Error(errorMsg) : new Error(_constant.FloorplanErrorType.UnknowError));
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
_context.next = 4;
|
|
217
|
-
return (0, _to["default"])((0, _correctFiveState["default"])(_this.five, _this.showState, opts === null || opts === void 0 ? void 0 : opts.userAction));
|
|
218
|
-
|
|
219
|
-
case 4:
|
|
220
|
-
_yield$to = _context.sent;
|
|
221
|
-
_yield$to2 = (0, _slicedToArray2["default"])(_yield$to, 1);
|
|
222
|
-
correctError = _yield$to2[0];
|
|
223
|
-
|
|
224
|
-
if (!correctError) {
|
|
225
|
-
_context.next = 9;
|
|
226
|
-
break;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
return _context.abrupt("return", reject(correctError));
|
|
230
|
-
|
|
231
|
-
case 9:
|
|
232
|
-
if (!hasRejected) {
|
|
233
|
-
_context.next = 11;
|
|
234
|
-
break;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
return _context.abrupt("return", reject(new Error(_constant.FloorplanErrorType.UnknowError)));
|
|
238
|
-
|
|
239
|
-
case 11:
|
|
240
|
-
if (_this.visible) {
|
|
241
|
-
_context.next = 13;
|
|
242
|
-
break;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
return _context.abrupt("return", reject(new Error(_constant.FloorplanErrorType.UnknowError)));
|
|
246
|
-
|
|
247
|
-
case 13:
|
|
248
|
-
// 更新户型图状态
|
|
249
|
-
_this.visible = true; // 更新户型图大小
|
|
250
|
-
|
|
251
|
-
_this.updateSize(); // 高亮当前楼层,有两个目的
|
|
252
|
-
// 1. 点击模型时,可以跳转到当前楼层的点位上
|
|
253
|
-
// 2. 当前楼层比较小时,户型图也比较小,如果展示全部楼层,会展示户型图外有一圈模型
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
if (opts !== null && opts !== void 0 && opts.floorIndex) _this.floorIndex = opts.floorIndex;
|
|
257
|
-
|
|
258
|
-
_this.five.model.show(_this.floorIndex); // 模型消失, 渲染户型图
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
modelOpacity = (_opts$modelOpacity = opts === null || opts === void 0 ? void 0 : opts.modelOpacity) !== null && _opts$modelOpacity !== void 0 ? _opts$modelOpacity : 0.01;
|
|
262
|
-
renderDuration = opts !== null && opts !== void 0 && opts.immediatily ? 0 : _constant.SHOW_ANIME_DURATION;
|
|
263
|
-
(0, _changeModelCanvansOpacity["default"])(_this.five, modelOpacity, renderDuration);
|
|
264
|
-
|
|
265
|
-
_this.render(renderDuration); // 展示之后的事件监听
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
_this.five.on('wantsGesture', _this.handleWantsGesture);
|
|
269
|
-
|
|
270
|
-
_this.five.on('wantsTapGesture', _this.handleWantsTapGesture);
|
|
271
|
-
|
|
272
|
-
return _context.abrupt("return", resolve(true));
|
|
273
|
-
|
|
274
|
-
case 24:
|
|
275
|
-
case "end":
|
|
276
|
-
return _context.stop();
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}, _callee);
|
|
280
|
-
}));
|
|
281
|
-
|
|
282
|
-
return function (_x2, _x3) {
|
|
283
|
-
return _ref2.apply(this, arguments);
|
|
284
|
-
};
|
|
285
|
-
}()).then(function () {
|
|
286
|
-
var _opts$userAction;
|
|
287
|
-
|
|
288
|
-
_this.hooks.emit('showAnimationEnded', {
|
|
289
|
-
auto: !!(opts !== null && opts !== void 0 && opts.isAutoShow),
|
|
290
|
-
userAction: (_opts$userAction = opts === null || opts === void 0 ? void 0 : opts.userAction) !== null && _opts$userAction !== void 0 ? _opts$userAction : true
|
|
291
|
-
});
|
|
292
|
-
|
|
293
|
-
return true;
|
|
294
|
-
})["catch"](function (error) {
|
|
295
|
-
// 自动展示的报错内部处理
|
|
296
|
-
if (opts !== null && opts !== void 0 && opts.isAutoShow) return false;
|
|
297
|
-
if (!(error instanceof Error)) return false; // 非自动展示的报错继续向外抛出
|
|
298
|
-
|
|
299
|
-
throw error;
|
|
300
|
-
})["finally"](function () {
|
|
301
|
-
_this.showPromise = void 0;
|
|
302
|
-
_this.showRejection = void 0;
|
|
303
|
-
});
|
|
304
|
-
_this.showPromise = showPromise;
|
|
305
|
-
return _context2.abrupt("return", showPromise);
|
|
306
|
-
|
|
307
|
-
case 16:
|
|
308
|
-
case "end":
|
|
309
|
-
return _context2.stop();
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}, _callee2);
|
|
313
|
-
}));
|
|
314
|
-
|
|
315
|
-
return function (_x) {
|
|
316
|
-
return _ref.apply(this, arguments);
|
|
317
|
-
};
|
|
318
|
-
}());
|
|
319
|
-
(0, _defineProperty2["default"])(this, "hide", function (options) {
|
|
320
|
-
var _this$showRejection2, _options$userAction;
|
|
321
|
-
|
|
322
|
-
if (_this.size.width === 0) return true;
|
|
323
|
-
if (_this.visible === false) return true;
|
|
324
|
-
var isAutoHide = !!(options !== null && options !== void 0 && options.isAutoHide);
|
|
325
|
-
|
|
326
|
-
_this.five.off('wantsGesture', _this.handleWantsGesture);
|
|
327
|
-
|
|
328
|
-
_this.five.off('wantsTapGesture', _this.handleWantsTapGesture);
|
|
329
|
-
|
|
330
|
-
_this.visible = false;
|
|
331
|
-
(_this$showRejection2 = _this.showRejection) === null || _this$showRejection2 === void 0 ? void 0 : _this$showRejection2.call(_this, _constant.FloorplanErrorType.BreakOffByHide);
|
|
332
|
-
(0, _changeModelCanvansOpacity["default"])(_this.five, 1, 0);
|
|
333
|
-
|
|
334
|
-
_this.render();
|
|
335
|
-
|
|
336
|
-
_this.hooks.emit('hide', {
|
|
337
|
-
auto: isAutoHide,
|
|
338
|
-
userAction: (_options$userAction = options === null || options === void 0 ? void 0 : options.userAction) !== null && _options$userAction !== void 0 ? _options$userAction : true
|
|
339
|
-
});
|
|
340
|
-
|
|
341
|
-
return true;
|
|
342
|
-
});
|
|
343
|
-
(0, _defineProperty2["default"])(this, "onModelShownFloorChange", function (shownFloor) {
|
|
344
|
-
if (shownFloor === null) return;
|
|
345
|
-
_this.floorIndex = shownFloor;
|
|
346
|
-
|
|
347
|
-
_this.render();
|
|
348
|
-
});
|
|
349
|
-
(0, _defineProperty2["default"])(this, "handleModelLoaded", function () {
|
|
350
|
-
if (_this.wrapper) return;
|
|
351
|
-
if (!_this.selector) return;
|
|
352
|
-
var wrapper = _this.selector instanceof Element ? _this.selector : document.querySelector(_this.selector);
|
|
353
|
-
if (!wrapper) throw new Error('不正确的父容器选择器');
|
|
354
|
-
_this.wrapper = wrapper;
|
|
355
|
-
wrapper.append(_this.container);
|
|
356
|
-
});
|
|
357
|
-
(0, _defineProperty2["default"])(this, "handleClick", function () {
|
|
358
|
-
if (!_this.visible) return;
|
|
359
|
-
|
|
360
|
-
var prevented = _this.hooks.emit('click');
|
|
361
|
-
|
|
362
|
-
if (prevented) return false;
|
|
363
|
-
});
|
|
364
|
-
(0, _defineProperty2["default"])(this, "handleWantsTapGesture", function () {
|
|
365
|
-
return _this.handleClick();
|
|
366
|
-
});
|
|
367
|
-
(0, _defineProperty2["default"])(this, "handleWantsChangeMode", function (mode) {
|
|
368
|
-
if (mode !== 'Panorama') {
|
|
369
|
-
_this.lastPanoramaLongitude = _this.five.getCurrentState().longitude;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
if (mode !== 'Floorplan') _this.hide();
|
|
373
|
-
});
|
|
374
|
-
(0, _defineProperty2["default"])(this, "handleModeChange", function (mode) {
|
|
375
|
-
if (mode === 'Floorplan') {
|
|
376
|
-
_this.five.on('panGesture', _this.handlePanGesture);
|
|
377
|
-
} else {
|
|
378
|
-
_this.hide();
|
|
379
|
-
|
|
380
|
-
_this.five.off('panGesture', _this.handlePanGesture);
|
|
381
|
-
}
|
|
382
|
-
});
|
|
383
|
-
(0, _defineProperty2["default"])(this, "handlePanoArrived", function (index) {
|
|
384
|
-
var _this$five;
|
|
385
|
-
|
|
386
|
-
if (!((_this$five = _this.five) !== null && _this$five !== void 0 && _this$five.work)) return;
|
|
387
|
-
_this.panoIndex = index;
|
|
388
|
-
_this.floorIndex = _this.five.work.observers[index].floorIndex;
|
|
389
|
-
});
|
|
390
|
-
(0, _defineProperty2["default"])(this, "handleWantsInteriaPan", function () {
|
|
391
|
-
if (_this.visible) return false;
|
|
392
|
-
});
|
|
393
|
-
(0, _defineProperty2["default"])(this, "handleWantsGesture", function (type, pointers) {
|
|
394
|
-
if (!_this.visible) return;
|
|
395
|
-
if (pointers.length > 1) return false;
|
|
396
|
-
if (type === 'mouseWheel') return false;
|
|
397
|
-
});
|
|
398
|
-
(0, _defineProperty2["default"])(this, "handlePanGesture", /*#__PURE__*/function () {
|
|
399
|
-
var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(_ref3, isFinal) {
|
|
400
|
-
var latitude, longitude, latitudeHide, longitudeHide, canHide, latitudeVisible, longitudeVisible, handleInteriaPan;
|
|
401
|
-
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
402
|
-
while (1) {
|
|
403
|
-
switch (_context4.prev = _context4.next) {
|
|
404
|
-
case 0:
|
|
405
|
-
latitude = _ref3.latitude, longitude = _ref3.longitude;
|
|
406
|
-
|
|
407
|
-
if (!(_this.configs.autoShowEnable === false)) {
|
|
408
|
-
_context4.next = 3;
|
|
409
|
-
break;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
return _context4.abrupt("return");
|
|
413
|
-
|
|
414
|
-
case 3:
|
|
415
|
-
if (!(isFinal && _this.visible)) {
|
|
416
|
-
_context4.next = 5;
|
|
417
|
-
break;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
return _context4.abrupt("return", _this.five.setState(_this.showState, true));
|
|
421
|
-
|
|
422
|
-
case 5:
|
|
423
|
-
// 满足消失的条件:
|
|
424
|
-
// 水平旋转角大于正负 5 度 || 俯仰角度大于 5 度
|
|
425
|
-
latitudeHide = Math.abs(latitude - Math.PI / 2) > 5 * Math.PI / 180;
|
|
426
|
-
longitudeHide = longitude > 5 * (Math.PI / 180) && longitude < 355 * (Math.PI / 180);
|
|
427
|
-
canHide = latitudeHide || longitudeHide;
|
|
428
|
-
|
|
429
|
-
if (!(_this.visible && canHide)) {
|
|
430
|
-
_context4.next = 10;
|
|
431
|
-
break;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
return _context4.abrupt("return", _this.hide({
|
|
435
|
-
isAutoHide: true
|
|
436
|
-
}));
|
|
437
|
-
|
|
438
|
-
case 10:
|
|
439
|
-
if (!(_this.five.camera.fov / _constant.FIVE_CAMERA_DEFAULT_FOV < 0.8)) {
|
|
440
|
-
_context4.next = 12;
|
|
441
|
-
break;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
return _context4.abrupt("return");
|
|
445
|
-
|
|
446
|
-
case 12:
|
|
447
|
-
// 户型图展示条件:
|
|
448
|
-
// 水平旋转角正负 30 度 && 俯仰角度小于 10 度
|
|
449
|
-
latitudeVisible = Math.abs(latitude - Math.PI / 2) < 10 * Math.PI / 180;
|
|
450
|
-
longitudeVisible = longitude < 30 * (Math.PI / 180) || longitude > 330 * (Math.PI / 180);
|
|
451
|
-
|
|
452
|
-
if (!(isFinal && !_this.visible && latitudeVisible && longitudeVisible)) {
|
|
453
|
-
_context4.next = 18;
|
|
454
|
-
break;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
// 当手指离开时需要等惯性结束之后在进行判断
|
|
458
|
-
handleInteriaPan = /*#__PURE__*/function () {
|
|
459
|
-
var _ref5 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(any, isFinal) {
|
|
460
|
-
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
461
|
-
while (1) {
|
|
462
|
-
switch (_context3.prev = _context3.next) {
|
|
463
|
-
case 0:
|
|
464
|
-
if (isFinal) {
|
|
465
|
-
_context3.next = 2;
|
|
466
|
-
break;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
return _context3.abrupt("return");
|
|
470
|
-
|
|
471
|
-
case 2:
|
|
472
|
-
_this.five.off('interiaPan', handleInteriaPan);
|
|
473
|
-
|
|
474
|
-
_context3.next = 5;
|
|
475
|
-
return _this.show({
|
|
476
|
-
isAutoShow: true
|
|
477
|
-
});
|
|
478
|
-
|
|
479
|
-
case 5:
|
|
480
|
-
case "end":
|
|
481
|
-
return _context3.stop();
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
}, _callee3);
|
|
485
|
-
}));
|
|
486
|
-
|
|
487
|
-
return function handleInteriaPan(_x6, _x7) {
|
|
488
|
-
return _ref5.apply(this, arguments);
|
|
489
|
-
};
|
|
490
|
-
}();
|
|
491
|
-
|
|
492
|
-
_this.five.on('interiaPan', handleInteriaPan);
|
|
493
|
-
|
|
494
|
-
return _context4.abrupt("return");
|
|
495
|
-
|
|
496
|
-
case 18:
|
|
497
|
-
case "end":
|
|
498
|
-
return _context4.stop();
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
}, _callee4);
|
|
502
|
-
}));
|
|
503
|
-
|
|
504
|
-
return function (_x4, _x5) {
|
|
505
|
-
return _ref4.apply(this, arguments);
|
|
506
|
-
};
|
|
507
|
-
}());
|
|
508
|
-
this.five = _five;
|
|
509
|
-
this.hooks = new _five2.Subscribe();
|
|
510
|
-
this.selector = params.selector;
|
|
511
|
-
this.configs = (0, _filter.omit)(params, ['selector']);
|
|
512
|
-
this.showState = {
|
|
513
|
-
longitude: 0,
|
|
514
|
-
latitude: Math.PI / 2,
|
|
515
|
-
fov: _constant.FIVE_CAMERA_DEFAULT_FOV / ((_params$scale = params === null || params === void 0 ? void 0 : params.scale) !== null && _params$scale !== void 0 ? _params$scale : 1)
|
|
516
|
-
}; // 设置 container 样式
|
|
517
|
-
|
|
518
|
-
this.container.classList.add('floorplan-plugin');
|
|
519
|
-
Object.assign(this.container.style, _controller.pluginStyle); // 如果初始化的时候模型已经加载完毕了,就不用再等 modelLoaded
|
|
520
|
-
|
|
521
|
-
this.five.model.loaded ? this.handleModelLoaded() : _five.once('modelLoaded', this.handleModelLoaded);
|
|
522
|
-
|
|
523
|
-
_five.once('dispose', this.dispose);
|
|
524
|
-
|
|
525
|
-
_five.on('modeChange', this.handleModeChange);
|
|
526
|
-
|
|
527
|
-
_five.on('panGesture', this.handlePanGesture);
|
|
528
|
-
|
|
529
|
-
_five.on('panoArrived', this.handlePanoArrived);
|
|
530
|
-
|
|
531
|
-
_five.on('wantsChangeMode', this.handleWantsChangeMode);
|
|
532
|
-
|
|
533
|
-
_five.on('wantsInteriaPan', this.handleWantsInteriaPan);
|
|
534
|
-
|
|
535
|
-
_five.on('modelShownFloorChange', this.onModelShownFloorChange);
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
(0, _createClass2["default"])(ModelFloorplanPluginController, [{
|
|
539
|
-
key: "load",
|
|
540
|
-
value:
|
|
541
|
-
/** 加载户型图数据 */
|
|
542
|
-
function () {
|
|
543
|
-
var _load = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(data) {
|
|
544
|
-
var copyData;
|
|
545
|
-
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
546
|
-
while (1) {
|
|
547
|
-
switch (_context5.prev = _context5.next) {
|
|
548
|
-
case 0:
|
|
549
|
-
copyData = JSON.parse(JSON.stringify(data));
|
|
550
|
-
_context5.next = 3;
|
|
551
|
-
return (0, _formatData["default"])(copyData);
|
|
552
|
-
|
|
553
|
-
case 3:
|
|
554
|
-
this.floorplanData = _context5.sent;
|
|
555
|
-
this.render();
|
|
556
|
-
|
|
557
|
-
case 5:
|
|
558
|
-
case "end":
|
|
559
|
-
return _context5.stop();
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
}, _callee5, this);
|
|
563
|
-
}));
|
|
564
|
-
|
|
565
|
-
function load(_x8) {
|
|
566
|
-
return _load.apply(this, arguments);
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
return load;
|
|
570
|
-
}()
|
|
571
|
-
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
572
|
-
|
|
573
|
-
}, {
|
|
574
|
-
key: "appendTo",
|
|
575
|
-
value: function appendTo(wrapper) {
|
|
576
|
-
this.wrapper = wrapper;
|
|
577
|
-
wrapper.appendChild(this.container);
|
|
578
|
-
return this;
|
|
579
|
-
}
|
|
580
|
-
/** 更新户型图大小 */
|
|
581
|
-
|
|
582
|
-
}, {
|
|
583
|
-
key: "changeFloor",
|
|
584
|
-
value:
|
|
585
|
-
/** 更改户型图楼层 */
|
|
586
|
-
function changeFloor(floorIndex) {
|
|
587
|
-
this.five.model.show(floorIndex);
|
|
588
|
-
this.floorIndex = floorIndex;
|
|
589
|
-
this.render();
|
|
590
|
-
}
|
|
591
|
-
}, {
|
|
592
|
-
key: "changeConfigs",
|
|
593
|
-
value: function changeConfigs(params) {
|
|
594
|
-
Object.assign(this.configs, params);
|
|
595
|
-
if (!this.container) return;
|
|
596
|
-
this.render();
|
|
597
|
-
}
|
|
598
|
-
/** 模型楼层高亮改变时,自动进行楼层切换 */
|
|
599
|
-
|
|
600
|
-
}, {
|
|
601
|
-
key: "render",
|
|
602
|
-
value: function render(duration) {
|
|
603
|
-
if (!this.container) return;
|
|
604
|
-
if (this.size.width === 0) return;
|
|
605
|
-
var props = {
|
|
606
|
-
five: this.five,
|
|
607
|
-
pxmm: this.pxmm,
|
|
608
|
-
visible: this.visible,
|
|
609
|
-
duration: duration !== null && duration !== void 0 ? duration : 0,
|
|
610
|
-
panoIndex: this.panoIndex,
|
|
611
|
-
floorIndex: this.floorIndex,
|
|
612
|
-
floorplanData: this.floorplanData,
|
|
613
|
-
onRoomHeightClick: this.handleClick,
|
|
614
|
-
cameraImage: this.configs.cameraImage,
|
|
615
|
-
hoverEnable: this.configs.hoverEnable,
|
|
616
|
-
getLabelElement: this.configs.getLabelElement,
|
|
617
|
-
lastPanoramaLongitude: this.lastPanoramaLongitude
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
_reactDom["default"].render( /*#__PURE__*/React.createElement(_components["default"], props), this.container);
|
|
621
|
-
}
|
|
622
|
-
}]);
|
|
623
|
-
return ModelFloorplanPluginController;
|
|
624
|
-
}();
|
|
625
|
-
|
|
626
|
-
exports["default"] = ModelFloorplanPluginController;
|