@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,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FloorplanData, FloorplanExtraObject } from '../../typings/floorplanData';
|
|
3
|
-
import type { Five } from '@realsee/five';
|
|
4
|
-
export interface Props {
|
|
5
|
-
five: Five;
|
|
6
|
-
pxmm: number;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
hoverEnable?: boolean;
|
|
10
|
-
floorplanData: FloorplanData;
|
|
11
|
-
extraObjects?: FloorplanExtraObject[];
|
|
12
|
-
cameraImage?: {
|
|
13
|
-
style: React.CSSProperties;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
declare const _default: React.NamedExoticComponent<Props>;
|
|
17
|
-
export default _default;
|
|
@@ -1,85 +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.object.assign.js");
|
|
27
|
-
|
|
28
|
-
require("core-js/modules/es.array.every.js");
|
|
29
|
-
|
|
30
|
-
require("core-js/modules/es.object.keys.js");
|
|
31
|
-
|
|
32
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
33
|
-
|
|
34
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
35
|
-
|
|
36
|
-
var _Camera = _interopRequireDefault(require("./Camera"));
|
|
37
|
-
|
|
38
|
-
var React = _interopRequireWildcard(require("react"));
|
|
39
|
-
|
|
40
|
-
var _NowFloor = _interopRequireDefault(require("./NowFloor"));
|
|
41
|
-
|
|
42
|
-
var _index = require("./index.style");
|
|
43
|
-
|
|
44
|
-
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); }
|
|
45
|
-
|
|
46
|
-
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; }
|
|
47
|
-
|
|
48
|
-
var _default = /*#__PURE__*/React.memo(function Content(props) {
|
|
49
|
-
if (!props.floorplanData) return null;
|
|
50
|
-
var five = props.five;
|
|
51
|
-
var panoIndex = five.getCurrentState().panoIndex;
|
|
52
|
-
var observers = five.work.observers;
|
|
53
|
-
|
|
54
|
-
var _React$useState = React.useState(observers[panoIndex].floorIndex),
|
|
55
|
-
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
56
|
-
floorIndex = _React$useState2[0],
|
|
57
|
-
changeFloorIndex = _React$useState2[1];
|
|
58
|
-
|
|
59
|
-
var sizeStyle = {
|
|
60
|
-
width: props.width + 'px',
|
|
61
|
-
height: props.height + 'px'
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
var handlePanoArrived = function handlePanoArrived(panoIndex) {
|
|
65
|
-
changeFloorIndex(observers[panoIndex].floorIndex);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
React.useEffect(function () {
|
|
69
|
-
five.on('panoArrived', handlePanoArrived);
|
|
70
|
-
return function () {
|
|
71
|
-
five.off('panoArrived', handlePanoArrived);
|
|
72
|
-
};
|
|
73
|
-
}, []);
|
|
74
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
75
|
-
style: Object.assign({}, _index.contentStyle, sizeStyle)
|
|
76
|
-
}, /*#__PURE__*/React.createElement(_NowFloor["default"], (0, _extends2["default"])({}, props, {
|
|
77
|
-
floorIndex: floorIndex
|
|
78
|
-
})), /*#__PURE__*/React.createElement(_Camera["default"], props));
|
|
79
|
-
}, function (prev, next) {
|
|
80
|
-
return Object.keys(prev).every(function (key) {
|
|
81
|
-
return next[key] === prev[key];
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
exports["default"] = _default;
|
|
@@ -1,15 +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.contentStyle = void 0;
|
|
9
|
-
var contentStyle = {
|
|
10
|
-
position: 'absolute',
|
|
11
|
-
left: '50%',
|
|
12
|
-
top: '50%',
|
|
13
|
-
transform: 'translate(-50%, -50%)'
|
|
14
|
-
};
|
|
15
|
-
exports.contentStyle = contentStyle;
|
|
@@ -1,211 +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"] = 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.object.assign.js");
|
|
31
|
-
|
|
32
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
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 _Content = _interopRequireDefault(require("./Content"));
|
|
47
|
-
|
|
48
|
-
var ReactDOM = _interopRequireWildcard(require("react-dom"));
|
|
49
|
-
|
|
50
|
-
var _formatData = _interopRequireWildcard(require("../utils/formatData"));
|
|
51
|
-
|
|
52
|
-
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); }
|
|
53
|
-
|
|
54
|
-
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; }
|
|
55
|
-
|
|
56
|
-
var PanoFloorplanRadarPluginController = /*#__PURE__*/function () {
|
|
57
|
-
function PanoFloorplanRadarPluginController(five, params) {
|
|
58
|
-
var _this = this;
|
|
59
|
-
|
|
60
|
-
(0, _classCallCheck2["default"])(this, PanoFloorplanRadarPluginController);
|
|
61
|
-
(0, _defineProperty2["default"])(this, "pxmm", 0);
|
|
62
|
-
(0, _defineProperty2["default"])(this, "wrapperSelector", '');
|
|
63
|
-
(0, _defineProperty2["default"])(this, "wrapper", null);
|
|
64
|
-
(0, _defineProperty2["default"])(this, "size", {
|
|
65
|
-
width: 0,
|
|
66
|
-
height: 0
|
|
67
|
-
});
|
|
68
|
-
(0, _defineProperty2["default"])(this, "configs", {});
|
|
69
|
-
(0, _defineProperty2["default"])(this, "dispose", function () {
|
|
70
|
-
_this.wrapper && ReactDOM.unmountComponentAtNode(_this.wrapper);
|
|
71
|
-
});
|
|
72
|
-
(0, _defineProperty2["default"])(this, "load", /*#__PURE__*/function () {
|
|
73
|
-
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(data) {
|
|
74
|
-
var _wrapper, copyData, floorplanData;
|
|
75
|
-
|
|
76
|
-
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
77
|
-
while (1) {
|
|
78
|
-
switch (_context.prev = _context.next) {
|
|
79
|
-
case 0:
|
|
80
|
-
// 处理 wrapper
|
|
81
|
-
if (!_this.wrapper) {
|
|
82
|
-
_wrapper = document.querySelector(_this.wrapperSelector);
|
|
83
|
-
if (!_wrapper) console.warn('插件容器不存在,可能得到与预期不符的效果,是不是忘记初始化容器了?');
|
|
84
|
-
_this.wrapper = _wrapper;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
copyData = JSON.parse(JSON.stringify(data));
|
|
88
|
-
_context.next = 4;
|
|
89
|
-
return (0, _formatData["default"])(copyData);
|
|
90
|
-
|
|
91
|
-
case 4:
|
|
92
|
-
floorplanData = _context.sent;
|
|
93
|
-
_this.data = floorplanData;
|
|
94
|
-
_context.next = 8;
|
|
95
|
-
return new Promise(function (resolve) {
|
|
96
|
-
var _floorplanData$outlin, _floorplanData$outlin2;
|
|
97
|
-
|
|
98
|
-
var floorIndex = _this.five.work.observers[_this.five.getCurrentState().panoIndex].floorIndex; // 当有 svgString 时,没有加载过程
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
// 当有 svgString 时,没有加载过程
|
|
102
|
-
if ((_floorplanData$outlin = floorplanData.outlines[floorIndex]) !== null && _floorplanData$outlin !== void 0 && _floorplanData$outlin.svgContent) return resolve();
|
|
103
|
-
var nowFloorImage = new Image();
|
|
104
|
-
var nowFloorImageSrc = (_floorplanData$outlin2 = floorplanData.outlines[floorIndex]) === null || _floorplanData$outlin2 === void 0 ? void 0 : _floorplanData$outlin2.url; // 如果当前楼层图片不存在,不存在加载过程
|
|
105
|
-
|
|
106
|
-
// 如果当前楼层图片不存在,不存在加载过程
|
|
107
|
-
if (!nowFloorImageSrc) return resolve(); // 图片加载完成时再 render
|
|
108
|
-
|
|
109
|
-
// 图片加载完成时再 render
|
|
110
|
-
nowFloorImage.onload = function () {
|
|
111
|
-
return resolve();
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
nowFloorImage.src = nowFloorImageSrc;
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
case 8:
|
|
118
|
-
_this.updateSize();
|
|
119
|
-
|
|
120
|
-
_this.render();
|
|
121
|
-
|
|
122
|
-
case 10:
|
|
123
|
-
case "end":
|
|
124
|
-
return _context.stop();
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}, _callee);
|
|
128
|
-
}));
|
|
129
|
-
|
|
130
|
-
return function (_x) {
|
|
131
|
-
return _ref.apply(this, arguments);
|
|
132
|
-
};
|
|
133
|
-
}());
|
|
134
|
-
this.five = five;
|
|
135
|
-
(params === null || params === void 0 ? void 0 : params.configs) && Object.assign(this.configs, params.configs);
|
|
136
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.wrapper) === 'string') this.wrapperSelector = params.wrapper;else if ((params === null || params === void 0 ? void 0 : params.wrapper) instanceof Element) this.wrapper = params.wrapper;
|
|
137
|
-
five.once('dispose', this.dispose);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
(0, _createClass2["default"])(PanoFloorplanRadarPluginController, [{
|
|
141
|
-
key: "appendTo",
|
|
142
|
-
value:
|
|
143
|
-
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
144
|
-
function appendTo(wrapper) {
|
|
145
|
-
this.wrapper = wrapper;
|
|
146
|
-
}
|
|
147
|
-
}, {
|
|
148
|
-
key: "changeConfigs",
|
|
149
|
-
value: function changeConfigs(configs) {
|
|
150
|
-
Object.assign(this.configs, configs);
|
|
151
|
-
this.render();
|
|
152
|
-
}
|
|
153
|
-
}, {
|
|
154
|
-
key: "setExtraObjectsWith3DPositions",
|
|
155
|
-
value: function setExtraObjectsWith3DPositions(data) {
|
|
156
|
-
this.orginExtraObjects = data;
|
|
157
|
-
if (!this.data) return;
|
|
158
|
-
this.extraObjects = (0, _formatData.formatExtraObjects)(data, this.five, this.data);
|
|
159
|
-
this.render();
|
|
160
|
-
}
|
|
161
|
-
}, {
|
|
162
|
-
key: "updateSize",
|
|
163
|
-
value: function updateSize() {
|
|
164
|
-
if (!this.data || !this.wrapper) return;
|
|
165
|
-
var size = Math.min(this.wrapper.clientWidth, this.wrapper.clientHeight);
|
|
166
|
-
var _this$data$bounding = this.data.bounding,
|
|
167
|
-
max = _this$data$bounding.max,
|
|
168
|
-
min = _this$data$bounding.min;
|
|
169
|
-
var boundingWidth = max.x - min.x;
|
|
170
|
-
var boundingHeight = max.y - min.y;
|
|
171
|
-
|
|
172
|
-
var _getSize = function getSize() {
|
|
173
|
-
if (boundingWidth > boundingHeight) return [size, size / boundingWidth * boundingHeight];
|
|
174
|
-
return [size / boundingHeight * boundingWidth, size];
|
|
175
|
-
}(),
|
|
176
|
-
_getSize2 = (0, _slicedToArray2["default"])(_getSize, 2),
|
|
177
|
-
width = _getSize2[0],
|
|
178
|
-
height = _getSize2[1];
|
|
179
|
-
|
|
180
|
-
this.size = {
|
|
181
|
-
width: width,
|
|
182
|
-
height: height
|
|
183
|
-
};
|
|
184
|
-
this.pxmm = width / boundingWidth;
|
|
185
|
-
}
|
|
186
|
-
}, {
|
|
187
|
-
key: "render",
|
|
188
|
-
value: function render() {
|
|
189
|
-
if (!this.data || !this.pxmm || !this.wrapper) return;
|
|
190
|
-
|
|
191
|
-
if (!this.extraObjects && this.orginExtraObjects) {
|
|
192
|
-
this.extraObjects = (0, _formatData.formatExtraObjects)(this.orginExtraObjects, this.five, this.data);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
var props = {
|
|
196
|
-
pxmm: this.pxmm,
|
|
197
|
-
five: this.five,
|
|
198
|
-
width: this.size.width,
|
|
199
|
-
height: this.size.height,
|
|
200
|
-
floorplanData: this.data,
|
|
201
|
-
extraObjects: this.extraObjects,
|
|
202
|
-
hoverEnable: this.configs.hoverEnable,
|
|
203
|
-
cameraImage: this.configs.cameraImage
|
|
204
|
-
};
|
|
205
|
-
ReactDOM.render( /*#__PURE__*/React.createElement(_Content["default"], (0, _extends2["default"])({}, props, this.configs)), this.wrapper);
|
|
206
|
-
}
|
|
207
|
-
}]);
|
|
208
|
-
return PanoFloorplanRadarPluginController;
|
|
209
|
-
}();
|
|
210
|
-
|
|
211
|
-
exports["default"] = PanoFloorplanRadarPluginController;
|
|
@@ -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.PanoFloorplanRadarPlugin = void 0;
|
|
11
|
-
|
|
12
|
-
var _Controller = _interopRequireDefault(require("./Controller"));
|
|
13
|
-
|
|
14
|
-
var PanoFloorplanRadarPlugin = function PanoFloorplanRadarPlugin(five, params) {
|
|
15
|
-
return new _Controller["default"](five, params);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
exports.PanoFloorplanRadarPlugin = PanoFloorplanRadarPlugin;
|
|
19
|
-
var _default = PanoFloorplanRadarPlugin;
|
|
20
|
-
exports["default"] = _default;
|
|
@@ -1,262 +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.TopviewFloorplanPluginController = void 0;
|
|
25
|
-
|
|
26
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
27
|
-
|
|
28
|
-
require("core-js/modules/es.object.assign.js");
|
|
29
|
-
|
|
30
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
31
|
-
|
|
32
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
33
|
-
|
|
34
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
35
|
-
|
|
36
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
37
|
-
|
|
38
|
-
var React = _interopRequireWildcard(require("react"));
|
|
39
|
-
|
|
40
|
-
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
41
|
-
|
|
42
|
-
var _getPxmm = _interopRequireDefault(require("../../../shared-utils/getPxmm"));
|
|
43
|
-
|
|
44
|
-
var _components = _interopRequireDefault(require("../ModelFloorplanPlugin/components"));
|
|
45
|
-
|
|
46
|
-
var _changeModelCanvansOpacity = _interopRequireDefault(require("../../../shared-utils/changeModelCanvansOpacity"));
|
|
47
|
-
|
|
48
|
-
var _style = require("./style");
|
|
49
|
-
|
|
50
|
-
var _filter = require("../../../shared-utils/filter");
|
|
51
|
-
|
|
52
|
-
var _formatData = _interopRequireDefault(require("../utils/formatData"));
|
|
53
|
-
|
|
54
|
-
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); }
|
|
55
|
-
|
|
56
|
-
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; }
|
|
57
|
-
|
|
58
|
-
var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
59
|
-
function TopviewFloorplanPluginController(five, params) {
|
|
60
|
-
var _this = this;
|
|
61
|
-
|
|
62
|
-
(0, _classCallCheck2["default"])(this, TopviewFloorplanPluginController);
|
|
63
|
-
(0, _defineProperty2["default"])(this, "size", {
|
|
64
|
-
width: 0,
|
|
65
|
-
height: 0
|
|
66
|
-
});
|
|
67
|
-
(0, _defineProperty2["default"])(this, "visible", false);
|
|
68
|
-
(0, _defineProperty2["default"])(this, "pxmm", 0);
|
|
69
|
-
(0, _defineProperty2["default"])(this, "panoIndex", 0);
|
|
70
|
-
(0, _defineProperty2["default"])(this, "floorIndex", 0);
|
|
71
|
-
(0, _defineProperty2["default"])(this, "configs", {});
|
|
72
|
-
(0, _defineProperty2["default"])(this, "lastPanoramaLongitude", 0);
|
|
73
|
-
(0, _defineProperty2["default"])(this, "handleClick", function () {
|
|
74
|
-
return false;
|
|
75
|
-
});
|
|
76
|
-
(0, _defineProperty2["default"])(this, "container", document.createElement('div'));
|
|
77
|
-
(0, _defineProperty2["default"])(this, "dispose", function () {
|
|
78
|
-
var _this$container;
|
|
79
|
-
|
|
80
|
-
_this.hide();
|
|
81
|
-
|
|
82
|
-
_this.container && _reactDom["default"].unmountComponentAtNode(_this.container);
|
|
83
|
-
(_this$container = _this.container) === null || _this$container === void 0 ? void 0 : _this$container.remove();
|
|
84
|
-
|
|
85
|
-
_this.five.off('modeChange', _this.handleModeChange);
|
|
86
|
-
|
|
87
|
-
_this.five.off('panoArrived', _this.handlePanoArrived);
|
|
88
|
-
|
|
89
|
-
_this.five.off('modelLoaded', _this.handleModelLoaded);
|
|
90
|
-
|
|
91
|
-
_this.five.off('wantsGesture', _this.handleWantsGesture);
|
|
92
|
-
|
|
93
|
-
_this.five.off('initAnimationEnded', _this.handleInitAnimationEnded);
|
|
94
|
-
|
|
95
|
-
_this.five.off('modelShownFloorChange', _this.onModelShownFloorChange);
|
|
96
|
-
});
|
|
97
|
-
(0, _defineProperty2["default"])(this, "onModelShownFloorChange", function (shownFloor) {
|
|
98
|
-
if (shownFloor === null) return;
|
|
99
|
-
_this.floorIndex = shownFloor;
|
|
100
|
-
|
|
101
|
-
_this.render();
|
|
102
|
-
});
|
|
103
|
-
(0, _defineProperty2["default"])(this, "handlePanoArrived", function (index) {
|
|
104
|
-
var _this$five;
|
|
105
|
-
|
|
106
|
-
if (!((_this$five = _this.five) !== null && _this$five !== void 0 && _this$five.work)) return;
|
|
107
|
-
_this.panoIndex = index;
|
|
108
|
-
_this.floorIndex = _this.five.work.observers[index].floorIndex;
|
|
109
|
-
});
|
|
110
|
-
(0, _defineProperty2["default"])(this, "handleWantsGesture", function () {
|
|
111
|
-
if (!_this.visible) return;
|
|
112
|
-
return false;
|
|
113
|
-
});
|
|
114
|
-
(0, _defineProperty2["default"])(this, "handleModelLoaded", function () {
|
|
115
|
-
if (_this.wrapper) return;
|
|
116
|
-
if (!_this.selector) return;
|
|
117
|
-
var wrapper = _this.selector instanceof Element ? _this.selector : document.querySelector(_this.selector);
|
|
118
|
-
if (!wrapper) throw new Error('不正确的父容器选择器');
|
|
119
|
-
_this.wrapper = wrapper;
|
|
120
|
-
wrapper.append(_this.container);
|
|
121
|
-
});
|
|
122
|
-
(0, _defineProperty2["default"])(this, "handleModeChange", function (mode) {
|
|
123
|
-
if (mode !== 'Topview') return _this.hide();
|
|
124
|
-
});
|
|
125
|
-
(0, _defineProperty2["default"])(this, "handleInitAnimationEnded", function () {
|
|
126
|
-
var _this$five$getCurrent = _this.five.getCurrentState(),
|
|
127
|
-
mode = _this$five$getCurrent.mode;
|
|
128
|
-
|
|
129
|
-
if (mode === 'Topview') _this.show();
|
|
130
|
-
});
|
|
131
|
-
(0, _defineProperty2["default"])(this, "updateSize", function () {
|
|
132
|
-
if (!_this.floorplanData) return;
|
|
133
|
-
if (!_this.container || !_this.wrapper) return;
|
|
134
|
-
if (_this.five.getCurrentState().mode !== 'Topview') return; // 计算户型图展示大小
|
|
135
|
-
|
|
136
|
-
var _this$floorplanData$b = _this.floorplanData.bounding,
|
|
137
|
-
min = _this$floorplanData$b.min,
|
|
138
|
-
max = _this$floorplanData$b.max;
|
|
139
|
-
var width = max.x - min.x;
|
|
140
|
-
var height = max.y - min.y; // 每毫米对应的 px 值
|
|
141
|
-
|
|
142
|
-
var pxmm = (0, _getPxmm["default"])(_this.five, _this.wrapper);
|
|
143
|
-
|
|
144
|
-
var _width = Math.ceil(width * pxmm);
|
|
145
|
-
|
|
146
|
-
var _height = Math.ceil(height * pxmm);
|
|
147
|
-
|
|
148
|
-
_this.pxmm = pxmm;
|
|
149
|
-
_this.size = {
|
|
150
|
-
width: _width,
|
|
151
|
-
height: _height
|
|
152
|
-
};
|
|
153
|
-
_this.container.style.width = _width + 'px';
|
|
154
|
-
_this.container.style.height = _height + 'px';
|
|
155
|
-
});
|
|
156
|
-
this.five = five;
|
|
157
|
-
this.selector = params.selector;
|
|
158
|
-
this.configs = (0, _filter.omit)(params, ['selector']); // 设置 container 样式
|
|
159
|
-
|
|
160
|
-
this.container.classList.add('floorplan-plugin');
|
|
161
|
-
Object.assign(this.container.style, _style.pluginStyle); // 如果初始化的时候模型已经加载完毕了,就不用再等 modelLoaded
|
|
162
|
-
|
|
163
|
-
this.five.model.loaded ? this.handleModelLoaded() : five.once('modelLoaded', this.handleModelLoaded);
|
|
164
|
-
this.five.once('dispose', this.dispose);
|
|
165
|
-
this.five.on('modeChange', this.handleModeChange);
|
|
166
|
-
this.five.on('panoArrived', this.handlePanoArrived);
|
|
167
|
-
this.five.on('initAnimationEnded', this.handleInitAnimationEnded);
|
|
168
|
-
this.five.on('modelShownFloorChange', this.onModelShownFloorChange);
|
|
169
|
-
}
|
|
170
|
-
/** 加载户型图数据 */
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
(0, _createClass2["default"])(TopviewFloorplanPluginController, [{
|
|
174
|
-
key: "load",
|
|
175
|
-
value: function () {
|
|
176
|
-
var _load = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(data) {
|
|
177
|
-
var copyData;
|
|
178
|
-
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
179
|
-
while (1) {
|
|
180
|
-
switch (_context.prev = _context.next) {
|
|
181
|
-
case 0:
|
|
182
|
-
copyData = JSON.parse(JSON.stringify(data));
|
|
183
|
-
_context.next = 3;
|
|
184
|
-
return (0, _formatData["default"])(copyData);
|
|
185
|
-
|
|
186
|
-
case 3:
|
|
187
|
-
this.floorplanData = _context.sent;
|
|
188
|
-
this.render();
|
|
189
|
-
|
|
190
|
-
case 5:
|
|
191
|
-
case "end":
|
|
192
|
-
return _context.stop();
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}, _callee, this);
|
|
196
|
-
}));
|
|
197
|
-
|
|
198
|
-
function load(_x) {
|
|
199
|
-
return _load.apply(this, arguments);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
return load;
|
|
203
|
-
}()
|
|
204
|
-
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
205
|
-
|
|
206
|
-
}, {
|
|
207
|
-
key: "appendTo",
|
|
208
|
-
value: function appendTo(wrapper) {
|
|
209
|
-
this.wrapper = wrapper;
|
|
210
|
-
wrapper.appendChild(this.container);
|
|
211
|
-
return this;
|
|
212
|
-
}
|
|
213
|
-
}, {
|
|
214
|
-
key: "show",
|
|
215
|
-
value: function show() {
|
|
216
|
-
var modelOpacity = 0.01;
|
|
217
|
-
var renderDuration = 500;
|
|
218
|
-
this.visible = true;
|
|
219
|
-
this.updateSize();
|
|
220
|
-
this.render(renderDuration);
|
|
221
|
-
(0, _changeModelCanvansOpacity["default"])(this.five, modelOpacity, renderDuration);
|
|
222
|
-
this.five.on('wantsGesture', this.handleWantsGesture);
|
|
223
|
-
}
|
|
224
|
-
}, {
|
|
225
|
-
key: "hide",
|
|
226
|
-
value: function hide() {
|
|
227
|
-
var modelOpacity = 1;
|
|
228
|
-
var renderDuration = 0;
|
|
229
|
-
this.visible = false;
|
|
230
|
-
(0, _changeModelCanvansOpacity["default"])(this.five, modelOpacity, renderDuration);
|
|
231
|
-
this.render();
|
|
232
|
-
this.five.off('wantsGesture', this.handleWantsGesture);
|
|
233
|
-
}
|
|
234
|
-
/** 更新户型图大小 */
|
|
235
|
-
|
|
236
|
-
}, {
|
|
237
|
-
key: "render",
|
|
238
|
-
value: function render(duration) {
|
|
239
|
-
if (!this.container) return;
|
|
240
|
-
if (this.size.width === 0) return;
|
|
241
|
-
var props = {
|
|
242
|
-
five: this.five,
|
|
243
|
-
pxmm: this.pxmm,
|
|
244
|
-
visible: this.visible,
|
|
245
|
-
duration: duration || 0,
|
|
246
|
-
panoIndex: this.panoIndex,
|
|
247
|
-
floorIndex: this.floorIndex,
|
|
248
|
-
floorplanData: this.floorplanData,
|
|
249
|
-
onRoomHeightClick: this.handleClick,
|
|
250
|
-
cameraImage: this.configs.cameraImage,
|
|
251
|
-
hoverEnable: this.configs.hoverEnable,
|
|
252
|
-
getLabelElement: this.configs.getLabelElement,
|
|
253
|
-
lastPanoramaLongitude: this.lastPanoramaLongitude
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
_reactDom["default"].render( /*#__PURE__*/React.createElement(_components["default"], props), this.container);
|
|
257
|
-
}
|
|
258
|
-
}]);
|
|
259
|
-
return TopviewFloorplanPluginController;
|
|
260
|
-
}();
|
|
261
|
-
|
|
262
|
-
exports.TopviewFloorplanPluginController = TopviewFloorplanPluginController;
|
|
@@ -1,18 +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["default"] = exports.TopviewFloorplanPlugin = void 0;
|
|
9
|
-
|
|
10
|
-
var _Controller = require("./Controller");
|
|
11
|
-
|
|
12
|
-
var TopviewFloorplanPlugin = function TopviewFloorplanPlugin(five, params) {
|
|
13
|
-
return new _Controller.TopviewFloorplanPluginController(five, params);
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
exports.TopviewFloorplanPlugin = TopviewFloorplanPlugin;
|
|
17
|
-
var _default = TopviewFloorplanPlugin;
|
|
18
|
-
exports["default"] = _default;
|
|
@@ -1,16 +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.pluginStyle = void 0;
|
|
9
|
-
var pluginStyle = {
|
|
10
|
-
position: 'absolute',
|
|
11
|
-
left: '50%',
|
|
12
|
-
top: '50%',
|
|
13
|
-
transform: 'translate(-50%, -50%)',
|
|
14
|
-
pointerEvents: 'none'
|
|
15
|
-
};
|
|
16
|
-
exports.pluginStyle = pluginStyle;
|