@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,27 +0,0 @@
|
|
|
1
|
-
import type { FivePlugin } from '@realsee/five';
|
|
2
|
-
import { RoomInfo, RoomRules } from './typings';
|
|
3
|
-
export interface PanoRulerPluginOptions {
|
|
4
|
-
distanceText?: (distance: number) => string;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface PanoRulerPluginParameterType {
|
|
8
|
-
roomInfo?: RoomInfo;
|
|
9
|
-
roomRules?: RoomRules;
|
|
10
|
-
options?: PanoRulerPluginOptions;
|
|
11
|
-
}
|
|
12
|
-
interface PanoRulerPluginPluginState {
|
|
13
|
-
enable: boolean;
|
|
14
|
-
loaded: boolean;
|
|
15
|
-
options: PanoRulerPluginOptions;
|
|
16
|
-
}
|
|
17
|
-
export interface PanoRulerPluginExportType {
|
|
18
|
-
enable: () => void;
|
|
19
|
-
disable: () => void;
|
|
20
|
-
load: (roomInfo?: RoomInfo, roomRules?: RoomRules, options?: PanoRulerPluginOptions) => Promise<boolean>;
|
|
21
|
-
state: PanoRulerPluginPluginState;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* 全景标尺插件
|
|
25
|
-
*/
|
|
26
|
-
export declare const PanoRulerPlugin: FivePlugin<PanoRulerPluginParameterType, PanoRulerPluginExportType>;
|
|
27
|
-
export default PanoRulerPlugin;
|
|
@@ -1,637 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.array.from.js");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.string.iterator.js");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.symbol.js");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.symbol.description.js");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/es.symbol.iterator.js");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.array.iterator.js");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
16
|
-
|
|
17
|
-
require("core-js/modules/es.array.is-array.js");
|
|
18
|
-
|
|
19
|
-
require("core-js/modules/es.object.define-property.js");
|
|
20
|
-
|
|
21
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
22
|
-
|
|
23
|
-
Object.defineProperty(exports, "__esModule", {
|
|
24
|
-
value: true
|
|
25
|
-
});
|
|
26
|
-
exports["default"] = exports.PanoRulerPlugin = void 0;
|
|
27
|
-
|
|
28
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
29
|
-
|
|
30
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
31
|
-
|
|
32
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
33
|
-
|
|
34
|
-
require("core-js/modules/es.array.for-each.js");
|
|
35
|
-
|
|
36
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
37
|
-
|
|
38
|
-
require("core-js/modules/es.function.name.js");
|
|
39
|
-
|
|
40
|
-
require("core-js/modules/es.array.sort.js");
|
|
41
|
-
|
|
42
|
-
require("core-js/modules/es.number.to-fixed.js");
|
|
43
|
-
|
|
44
|
-
require("core-js/modules/es.array.map.js");
|
|
45
|
-
|
|
46
|
-
require("core-js/modules/es.object.assign.js");
|
|
47
|
-
|
|
48
|
-
require("core-js/modules/es.object.to-string.js");
|
|
49
|
-
|
|
50
|
-
require("core-js/modules/es.promise.js");
|
|
51
|
-
|
|
52
|
-
require("core-js/modules/es.object.keys.js");
|
|
53
|
-
|
|
54
|
-
require("core-js/modules/es.array.index-of.js");
|
|
55
|
-
|
|
56
|
-
require("core-js/modules/es.regexp.exec.js");
|
|
57
|
-
|
|
58
|
-
require("core-js/modules/es.string.split.js");
|
|
59
|
-
|
|
60
|
-
require("core-js/modules/es.date.to-string.js");
|
|
61
|
-
|
|
62
|
-
require("core-js/modules/es.regexp.to-string.js");
|
|
63
|
-
|
|
64
|
-
require("core-js/modules/es.array.filter.js");
|
|
65
|
-
|
|
66
|
-
require("core-js/modules/es.array.slice.js");
|
|
67
|
-
|
|
68
|
-
require("core-js/modules/es.string.sub.js");
|
|
69
|
-
|
|
70
|
-
var _five = require("@realsee/five");
|
|
71
|
-
|
|
72
|
-
var _three = require("three");
|
|
73
|
-
|
|
74
|
-
var _planimetry = require("../../shared-utils/math/planimetry");
|
|
75
|
-
|
|
76
|
-
var _nextFrame = require("../../shared-utils/nextFrame");
|
|
77
|
-
|
|
78
|
-
var _throttle = _interopRequireDefault(require("../../shared-utils/throttle"));
|
|
79
|
-
|
|
80
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
81
|
-
|
|
82
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
83
|
-
|
|
84
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
85
|
-
|
|
86
|
-
var getDistance = function getDistance(p1, p2) {
|
|
87
|
-
return Math.sqrt(Math.pow(p1.z - p2.z, 2) + Math.pow(p1.x - p2.x, 2));
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
var getRoomHeightInfo = function getRoomHeightInfo(roomInfo, five) {
|
|
91
|
-
var roomHeightInfo = {};
|
|
92
|
-
var raycaster = new _three.Raycaster();
|
|
93
|
-
var work = five.work;
|
|
94
|
-
if (!work) return roomHeightInfo;
|
|
95
|
-
var observers = roomInfo.observers;
|
|
96
|
-
work.observers.forEach(function (observer, index) {
|
|
97
|
-
var position = observer.standingPosition;
|
|
98
|
-
var point = new _three.Vector3(position.x, position.y, position.z);
|
|
99
|
-
raycaster.set(point, new _three.Vector3(0, 1, 0));
|
|
100
|
-
|
|
101
|
-
var _five$model$intersect = five.model.intersectRaycaster(raycaster),
|
|
102
|
-
_five$model$intersect2 = (0, _slicedToArray2["default"])(_five$model$intersect, 1),
|
|
103
|
-
intersection = _five$model$intersect2[0];
|
|
104
|
-
|
|
105
|
-
var verticalY = intersection ? intersection.point.y : null;
|
|
106
|
-
var id = observers[index];
|
|
107
|
-
if (!id) return roomHeightInfo;
|
|
108
|
-
var observerRoomName = roomInfo.rooms[id].name;
|
|
109
|
-
|
|
110
|
-
if (roomHeightInfo[observerRoomName] === undefined) {
|
|
111
|
-
roomHeightInfo[observerRoomName] = {
|
|
112
|
-
__roof: [verticalY],
|
|
113
|
-
__floor: [point.y]
|
|
114
|
-
};
|
|
115
|
-
} else {
|
|
116
|
-
roomHeightInfo[observerRoomName].__roof.push(verticalY);
|
|
117
|
-
|
|
118
|
-
roomHeightInfo[observerRoomName].__floor.push(point.y);
|
|
119
|
-
}
|
|
120
|
-
}); // 地板高度求中位数,屋顶高度取最高
|
|
121
|
-
|
|
122
|
-
for (var roomName in roomHeightInfo) {
|
|
123
|
-
var room = roomHeightInfo[roomName];
|
|
124
|
-
|
|
125
|
-
room.__roof.sort();
|
|
126
|
-
|
|
127
|
-
room.__floor.sort();
|
|
128
|
-
|
|
129
|
-
room.floor = room.__floor[~~(room.__floor.length / 2)];
|
|
130
|
-
room.roof = room.__roof[room.__roof.length - 1];
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
return roomHeightInfo;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* 全景标尺插件
|
|
138
|
-
*/
|
|
139
|
-
var PanoRulerPlugin = function PanoRulerPlugin(five, params) {
|
|
140
|
-
var state = {
|
|
141
|
-
enable: false,
|
|
142
|
-
loaded: false,
|
|
143
|
-
options: params.options || {
|
|
144
|
-
distanceText: function distanceText(distance) {
|
|
145
|
-
return "\u7EA6".concat(distance.toFixed(1), "\u7C73");
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
var tpl = function tpl(name, distance) {
|
|
151
|
-
var domStr = "\n <div class=\"PanoRulerPlugin-rule-line\">\n <em></em>\n <div class=\"PanoRulerPlugin-rule-label\">\n <div class=\"PanoRulerPlugin-rule-label-point\"></div>\n <span class=\"PanoRulerPlugin-rule-label-name\">".concat(state.options.distanceText(distance), "</span>\n </div>\n </div>\n ");
|
|
152
|
-
var res = document.createElement('div');
|
|
153
|
-
res.setAttribute('class', 'PanoRulerPlugin-rule');
|
|
154
|
-
res.setAttribute('data-name', name);
|
|
155
|
-
res.setAttribute('style', 'display: none');
|
|
156
|
-
res.innerHTML = domStr;
|
|
157
|
-
return res;
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
var $rule = document.createElement('div');
|
|
161
|
-
$rule.setAttribute('style', "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");
|
|
162
|
-
var __rule = {};
|
|
163
|
-
|
|
164
|
-
var _load = function _load(roomInfo, roomRules) {
|
|
165
|
-
if (state.loaded) {
|
|
166
|
-
throw new Error('标尺被重复初始化!');
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
var roomHeightInfo = getRoomHeightInfo(roomInfo, five);
|
|
170
|
-
var work = five.work;
|
|
171
|
-
if (!work) return false;
|
|
172
|
-
|
|
173
|
-
var _loop = function _loop(obKey) {
|
|
174
|
-
var points = roomRules[obKey];
|
|
175
|
-
var defaultPosition = work.observers[0].standingPosition;
|
|
176
|
-
var roomPoints = points.map(function (_ref) {
|
|
177
|
-
var x = _ref.x,
|
|
178
|
-
z = _ref.z,
|
|
179
|
-
observers = _ref.observers;
|
|
180
|
-
var pointRoomName = observers.length > 0 ? roomInfo.rooms[roomInfo.observers[observers[0]]].name : '';
|
|
181
|
-
var medianFloorHeight = roomHeightInfo[pointRoomName] ? roomHeightInfo[pointRoomName].floor : null;
|
|
182
|
-
var minDistance = Infinity;
|
|
183
|
-
var nearestPoint = {
|
|
184
|
-
index: 0,
|
|
185
|
-
x: defaultPosition.x,
|
|
186
|
-
y: defaultPosition.y,
|
|
187
|
-
z: defaultPosition.z
|
|
188
|
-
};
|
|
189
|
-
observers.forEach(function (index) {
|
|
190
|
-
var position = work.observers[index].standingPosition;
|
|
191
|
-
var observerPoint = {
|
|
192
|
-
index: index,
|
|
193
|
-
x: position.x,
|
|
194
|
-
y: position.y,
|
|
195
|
-
z: position.z
|
|
196
|
-
};
|
|
197
|
-
var distance = getDistance({
|
|
198
|
-
x: x,
|
|
199
|
-
z: z
|
|
200
|
-
}, observerPoint);
|
|
201
|
-
|
|
202
|
-
if (medianFloorHeight) {
|
|
203
|
-
// 取最近点时排除高度与房间平均高度差大于0.3米的点
|
|
204
|
-
if (distance < minDistance && Math.abs(observerPoint.y - medianFloorHeight) < 0.3) {
|
|
205
|
-
minDistance = distance;
|
|
206
|
-
nearestPoint = observerPoint;
|
|
207
|
-
}
|
|
208
|
-
} else {
|
|
209
|
-
if (distance < minDistance) {
|
|
210
|
-
minDistance = distance;
|
|
211
|
-
nearestPoint = observerPoint;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
|
|
216
|
-
var _origin = new _three.Vector3(x, nearestPoint.y, z);
|
|
217
|
-
|
|
218
|
-
Object.assign(_origin, {
|
|
219
|
-
observers: observers
|
|
220
|
-
});
|
|
221
|
-
var verticalY = roomHeightInfo[pointRoomName] ? roomHeightInfo[pointRoomName].roof : null;
|
|
222
|
-
|
|
223
|
-
var _vertical = !verticalY ? null : new _three.Vector3(x, verticalY, z);
|
|
224
|
-
|
|
225
|
-
if (_vertical) Object.assign(_vertical, {
|
|
226
|
-
observers: observers
|
|
227
|
-
});
|
|
228
|
-
var origin = _origin;
|
|
229
|
-
var vertical = _vertical;
|
|
230
|
-
return {
|
|
231
|
-
origin: origin,
|
|
232
|
-
vertical: vertical
|
|
233
|
-
};
|
|
234
|
-
});
|
|
235
|
-
__rule[obKey] = {
|
|
236
|
-
origins: roomPoints.map(function (roomPoint) {
|
|
237
|
-
return roomPoint.origin;
|
|
238
|
-
}),
|
|
239
|
-
rules: []
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
var _iterator = _createForOfIteratorHelper(roomPoints),
|
|
243
|
-
_step;
|
|
244
|
-
|
|
245
|
-
try {
|
|
246
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
247
|
-
var _step$value = _step.value,
|
|
248
|
-
_origin2 = _step$value.origin,
|
|
249
|
-
vertical = _step$value.vertical;
|
|
250
|
-
if (!vertical) continue;
|
|
251
|
-
|
|
252
|
-
var _$element = tpl(obKey, _origin2.distanceTo(vertical));
|
|
253
|
-
|
|
254
|
-
$rule.append(_$element);
|
|
255
|
-
|
|
256
|
-
__rule[obKey].rules.push({
|
|
257
|
-
vertical: true,
|
|
258
|
-
rule: [_origin2, vertical],
|
|
259
|
-
$element: _$element
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
} catch (err) {
|
|
263
|
-
_iterator.e(err);
|
|
264
|
-
} finally {
|
|
265
|
-
_iterator.f();
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
for (var index = 0; index < roomPoints.length; index++) {
|
|
269
|
-
var nextIndex = index + 1;
|
|
270
|
-
if (nextIndex >= roomPoints.length) nextIndex = 0;
|
|
271
|
-
var origin = roomPoints[index].origin;
|
|
272
|
-
var next = roomPoints[nextIndex].origin;
|
|
273
|
-
var $element = tpl(obKey, origin.distanceTo(next));
|
|
274
|
-
$rule.append($element);
|
|
275
|
-
|
|
276
|
-
__rule[obKey].rules.push({
|
|
277
|
-
vertical: false,
|
|
278
|
-
rule: [origin, next],
|
|
279
|
-
$element: $element
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
for (var obKey in roomRules) {
|
|
285
|
-
_loop(obKey);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
state.loaded = true;
|
|
289
|
-
return true;
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
var load = /*#__PURE__*/function () {
|
|
293
|
-
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_roomInfo, _roomRules, options) {
|
|
294
|
-
var roomInfo, roomRules;
|
|
295
|
-
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
296
|
-
while (1) {
|
|
297
|
-
switch (_context.prev = _context.next) {
|
|
298
|
-
case 0:
|
|
299
|
-
roomInfo = _roomInfo || params.roomInfo;
|
|
300
|
-
roomRules = _roomRules || params.roomRules;
|
|
301
|
-
|
|
302
|
-
if (!(!roomInfo || !roomRules)) {
|
|
303
|
-
_context.next = 4;
|
|
304
|
-
break;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
throw new Error('标尺数据依赖不齐全!');
|
|
308
|
-
|
|
309
|
-
case 4:
|
|
310
|
-
state.options = Object.assign({}, state.options, options || {});
|
|
311
|
-
|
|
312
|
-
if (!five.model.loaded) {
|
|
313
|
-
_context.next = 9;
|
|
314
|
-
break;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
return _context.abrupt("return", _load(roomInfo, roomRules));
|
|
318
|
-
|
|
319
|
-
case 9:
|
|
320
|
-
_context.next = 11;
|
|
321
|
-
return new Promise(function (resolve) {
|
|
322
|
-
return five.once('modelLoaded', function () {
|
|
323
|
-
return resolve(_load(roomInfo, roomRules));
|
|
324
|
-
});
|
|
325
|
-
});
|
|
326
|
-
|
|
327
|
-
case 11:
|
|
328
|
-
return _context.abrupt("return", _context.sent);
|
|
329
|
-
|
|
330
|
-
case 12:
|
|
331
|
-
case "end":
|
|
332
|
-
return _context.stop();
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}, _callee);
|
|
336
|
-
}));
|
|
337
|
-
|
|
338
|
-
return function load(_x, _x2, _x3) {
|
|
339
|
-
return _ref2.apply(this, arguments);
|
|
340
|
-
};
|
|
341
|
-
}();
|
|
342
|
-
|
|
343
|
-
if (params.roomInfo && params.roomRules) {
|
|
344
|
-
load(params.roomInfo, params.roomRules);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
var getRuleScreenIntr = function getRuleScreenIntr(startPoint, endPoint, canvasWidth, canvasHeight) {
|
|
348
|
-
var screenLines = [[{
|
|
349
|
-
x: 0,
|
|
350
|
-
y: 0
|
|
351
|
-
}, {
|
|
352
|
-
x: canvasWidth,
|
|
353
|
-
y: 0
|
|
354
|
-
}], [{
|
|
355
|
-
x: 0,
|
|
356
|
-
y: 0
|
|
357
|
-
}, {
|
|
358
|
-
x: 0,
|
|
359
|
-
y: canvasHeight
|
|
360
|
-
}], [{
|
|
361
|
-
x: canvasWidth,
|
|
362
|
-
y: 0
|
|
363
|
-
}, {
|
|
364
|
-
x: canvasWidth,
|
|
365
|
-
y: canvasHeight
|
|
366
|
-
}], [{
|
|
367
|
-
x: 0,
|
|
368
|
-
y: canvasHeight
|
|
369
|
-
}, {
|
|
370
|
-
x: canvasWidth,
|
|
371
|
-
y: canvasHeight
|
|
372
|
-
}]];
|
|
373
|
-
var intr = [];
|
|
374
|
-
|
|
375
|
-
for (var i = 0; i < screenLines.length; i++) {
|
|
376
|
-
var result = (0, _planimetry.intersectionOfLine)([startPoint, endPoint], [screenLines[i][0], screenLines[i][1]], true);
|
|
377
|
-
if (result) intr.push(result);
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
if (intr.length === 0) return false;else {
|
|
381
|
-
return intr;
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
var freshRule = function freshRule() {
|
|
386
|
-
var element = five.getElement();
|
|
387
|
-
if (!element) return;
|
|
388
|
-
if (!state.loaded) return;
|
|
389
|
-
if (Object.keys(__rule).length <= 0) return;
|
|
390
|
-
var panoIndex = five.panoIndex,
|
|
391
|
-
camera = five.camera,
|
|
392
|
-
currentMode = five.currentMode;
|
|
393
|
-
if (panoIndex === undefined) return;
|
|
394
|
-
var name;
|
|
395
|
-
|
|
396
|
-
for (var _name in __rule) {
|
|
397
|
-
if (_name.split(',').indexOf(panoIndex.toString()) >= 0) name = _name;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
if (!name) return;
|
|
401
|
-
var cameraPosition = camera.position;
|
|
402
|
-
var cameraDirection = camera.getWorldDirection(new _three.Vector3());
|
|
403
|
-
var width = element.width;
|
|
404
|
-
var height = element.height; // 非全景模式下隐藏所有标尺
|
|
405
|
-
|
|
406
|
-
if (currentMode !== _five.Five.Mode.Panorama) {
|
|
407
|
-
for (var _name2 in __rule) {
|
|
408
|
-
var _iterator2 = _createForOfIteratorHelper(__rule[_name2].rules),
|
|
409
|
-
_step2;
|
|
410
|
-
|
|
411
|
-
try {
|
|
412
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
413
|
-
var $element = _step2.value.$element;
|
|
414
|
-
$element.style.display = 'none';
|
|
415
|
-
}
|
|
416
|
-
} catch (err) {
|
|
417
|
-
_iterator2.e(err);
|
|
418
|
-
} finally {
|
|
419
|
-
_iterator2.f();
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
return;
|
|
424
|
-
} // 隐藏非当前点位的标尺
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
for (var _name3 in __rule) {
|
|
428
|
-
var _iterator3 = _createForOfIteratorHelper(__rule[_name3].rules),
|
|
429
|
-
_step3;
|
|
430
|
-
|
|
431
|
-
try {
|
|
432
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
433
|
-
var _$element2 = _step3.value.$element;
|
|
434
|
-
_$element2.style.display = _name3 === name ? 'block' : 'none';
|
|
435
|
-
}
|
|
436
|
-
} catch (err) {
|
|
437
|
-
_iterator3.e(err);
|
|
438
|
-
} finally {
|
|
439
|
-
_iterator3.f();
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
var verticalLines = []; // 可以看到的角度最小的拐点
|
|
444
|
-
|
|
445
|
-
var _rule$name$origins$s = __rule[name].origins.slice().filter(function (point) {
|
|
446
|
-
return point.observers.indexOf(panoIndex) >= 0;
|
|
447
|
-
}).sort(function (pointA, pointB) {
|
|
448
|
-
var angleA = pointA.clone().setY(0).sub(cameraPosition).normalize().angleTo(cameraDirection.clone().setY(0));
|
|
449
|
-
var angleB = pointB.clone().setY(0).sub(cameraPosition).normalize().angleTo(cameraDirection.clone().setY(0));
|
|
450
|
-
return angleA - angleB;
|
|
451
|
-
}),
|
|
452
|
-
_rule$name$origins$s2 = (0, _slicedToArray2["default"])(_rule$name$origins$s, 1),
|
|
453
|
-
visibleOrigin = _rule$name$origins$s2[0];
|
|
454
|
-
|
|
455
|
-
var shownNotVerticalRules = [];
|
|
456
|
-
|
|
457
|
-
var _iterator4 = _createForOfIteratorHelper(__rule[name].rules),
|
|
458
|
-
_step4;
|
|
459
|
-
|
|
460
|
-
try {
|
|
461
|
-
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
462
|
-
var _step4$value = _step4.value,
|
|
463
|
-
rule = _step4$value.rule,
|
|
464
|
-
vertical = _step4$value.vertical,
|
|
465
|
-
_$element3 = _step4$value.$element;
|
|
466
|
-
|
|
467
|
-
var _rule = (0, _slicedToArray2["default"])(rule, 2),
|
|
468
|
-
start = _rule[0],
|
|
469
|
-
end = _rule[1];
|
|
470
|
-
|
|
471
|
-
var $line = _$element3.querySelector('.PanoRulerPlugin-rule-line');
|
|
472
|
-
|
|
473
|
-
if (!$line) return;
|
|
474
|
-
|
|
475
|
-
if (!visibleOrigin) {
|
|
476
|
-
_$element3.style.display = 'none';
|
|
477
|
-
continue;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
if (start !== visibleOrigin && end !== visibleOrigin) {
|
|
481
|
-
_$element3.style.display = 'none';
|
|
482
|
-
continue;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
if (start.distanceTo(end) < 0.5) {
|
|
486
|
-
_$element3.style.display = 'none';
|
|
487
|
-
continue;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
if (start.observers.indexOf(panoIndex) === -1 || end.observers.indexOf(panoIndex) === -1) {
|
|
491
|
-
_$element3.style.display = 'none';
|
|
492
|
-
continue;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
var startAngle = start.clone().sub(cameraPosition).normalize().angleTo(cameraDirection);
|
|
496
|
-
|
|
497
|
-
if (startAngle > Math.PI / 2) {
|
|
498
|
-
_$element3.style.display = 'none';
|
|
499
|
-
continue;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
var endAngle = end.clone().sub(cameraPosition).normalize().angleTo(cameraDirection);
|
|
503
|
-
|
|
504
|
-
if (endAngle > Math.PI / 2) {
|
|
505
|
-
_$element3.style.display = 'none';
|
|
506
|
-
continue;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
var ruleLength = start.distanceTo(end);
|
|
510
|
-
var midPoint = end.clone().sub(end.clone().sub(start).divide(new _three.Vector3(2, 2, 2)));
|
|
511
|
-
var disFromCameraToMid = midPoint.distanceTo(cameraPosition);
|
|
512
|
-
|
|
513
|
-
if (disFromCameraToMid / ruleLength > 8) {
|
|
514
|
-
_$element3.style.display = 'none';
|
|
515
|
-
continue;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
if (!vertical) shownNotVerticalRules.push(rule);
|
|
519
|
-
if (vertical) verticalLines.push({
|
|
520
|
-
$element: _$element3,
|
|
521
|
-
startAngle: startAngle
|
|
522
|
-
});
|
|
523
|
-
var mouseStart = start.clone().project(camera);
|
|
524
|
-
var startLeft = (mouseStart.x + 1) / 2 * width;
|
|
525
|
-
var startTop = (-mouseStart.y + 1) / 2 * height;
|
|
526
|
-
var mouseEnd = end.clone().project(camera);
|
|
527
|
-
var endLeft = (mouseEnd.x + 1) / 2 * width;
|
|
528
|
-
var endTop = (-mouseEnd.y + 1) / 2 * height;
|
|
529
|
-
|
|
530
|
-
var _distance = Math.sqrt(Math.pow(endLeft - startLeft, 2) + Math.pow(endTop - startTop, 2));
|
|
531
|
-
|
|
532
|
-
var visibleLength = _distance;
|
|
533
|
-
var labelOffset = 50;
|
|
534
|
-
var intr = getRuleScreenIntr({
|
|
535
|
-
x: ~~startLeft,
|
|
536
|
-
y: ~~startTop
|
|
537
|
-
}, {
|
|
538
|
-
x: ~~endLeft,
|
|
539
|
-
y: ~~endTop
|
|
540
|
-
}, width, height);
|
|
541
|
-
|
|
542
|
-
if (intr && intr.length === 1) {
|
|
543
|
-
if (visibleOrigin === start) {
|
|
544
|
-
visibleLength = Math.sqrt(Math.pow(intr[0].x - startLeft, 2) + Math.pow(intr[0].y - startTop, 2));
|
|
545
|
-
labelOffset = visibleLength / _distance * 50;
|
|
546
|
-
} else if (visibleOrigin === end) {
|
|
547
|
-
visibleLength = Math.sqrt(Math.pow(intr[0].x - endLeft, 2) + Math.pow(intr[0].y - endTop, 2));
|
|
548
|
-
labelOffset = 100 - visibleLength / _distance * 50;
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
if (intr && intr.length === 2) {
|
|
553
|
-
var middlePoint = {
|
|
554
|
-
x: (intr[0].x + intr[1].x) / 2,
|
|
555
|
-
y: (intr[0].y + intr[1].y) / 2
|
|
556
|
-
};
|
|
557
|
-
var distanceFromStart = Math.sqrt(Math.pow(middlePoint.x - startLeft, 2) + Math.pow(middlePoint.y - startTop, 2));
|
|
558
|
-
labelOffset = distanceFromStart / _distance * 100;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
var rad = Math.PI / 2 - Math.atan2(endLeft - startLeft, startTop - endTop);
|
|
562
|
-
var deg = rad / Math.PI * 180;
|
|
563
|
-
$line.style.width = _distance + 'px';
|
|
564
|
-
$line.style.left = startLeft + 'px';
|
|
565
|
-
$line.style.top = startTop + 'px';
|
|
566
|
-
$line.style.transform = "rotate(".concat(-deg, "deg)");
|
|
567
|
-
var $label = $line.querySelector('.PanoRulerPlugin-rule-label');
|
|
568
|
-
var reverse = endLeft - startLeft > 0;
|
|
569
|
-
var rotateY = reverse ? ' rotateY(180deg)' : '';
|
|
570
|
-
$label.style.transform = "rotate(".concat(deg, "deg)") + rotateY;
|
|
571
|
-
$label.style.left = "".concat(labelOffset, "%");
|
|
572
|
-
|
|
573
|
-
if (reverse) {
|
|
574
|
-
$label.setAttribute('class', 'PanoRulerPlugin-rule-label reverse');
|
|
575
|
-
} else {
|
|
576
|
-
$label.setAttribute('class', 'PanoRulerPlugin-rule-label');
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
} catch (err) {
|
|
580
|
-
_iterator4.e(err);
|
|
581
|
-
} finally {
|
|
582
|
-
_iterator4.f();
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
|
|
586
|
-
var nextFrameFreshRule = function nextFrameFreshRule() {
|
|
587
|
-
return (0, _nextFrame.nextFrame)(freshRule);
|
|
588
|
-
};
|
|
589
|
-
|
|
590
|
-
var throttleFreshRule = (0, _throttle["default"])(freshRule, 80);
|
|
591
|
-
|
|
592
|
-
var enable = function enable() {
|
|
593
|
-
var _five$getElement, _five$getElement$pare;
|
|
594
|
-
|
|
595
|
-
if (!state.loaded) return false;
|
|
596
|
-
if (state.enable) return true;
|
|
597
|
-
$rule.setAttribute('class', 'PanoRulerPlugin' + (state.options.className ? ' ' + state.options.className : ''));
|
|
598
|
-
(_five$getElement = five.getElement()) === null || _five$getElement === void 0 ? void 0 : (_five$getElement$pare = _five$getElement.parentElement) === null || _five$getElement$pare === void 0 ? void 0 : _five$getElement$pare.append($rule);
|
|
599
|
-
freshRule();
|
|
600
|
-
five.on('panoArrived', freshRule);
|
|
601
|
-
five.on('modeChange', freshRule);
|
|
602
|
-
five.on('cameraDirectionUpdate', nextFrameFreshRule);
|
|
603
|
-
five.on('movingToPano', nextFrameFreshRule);
|
|
604
|
-
five.on('mouseWheel', throttleFreshRule);
|
|
605
|
-
five.on('pinchGesture', throttleFreshRule);
|
|
606
|
-
state.enable = true;
|
|
607
|
-
return true;
|
|
608
|
-
};
|
|
609
|
-
|
|
610
|
-
var disable = function disable() {
|
|
611
|
-
if (!state.enable) return true;
|
|
612
|
-
five.off('panoArrived', freshRule);
|
|
613
|
-
five.off('modeChange', freshRule);
|
|
614
|
-
five.off('cameraDirectionUpdate', nextFrameFreshRule);
|
|
615
|
-
five.off('movingToPano', nextFrameFreshRule);
|
|
616
|
-
five.off('mouseWheel', throttleFreshRule);
|
|
617
|
-
five.off('pinchGesture', throttleFreshRule);
|
|
618
|
-
|
|
619
|
-
if ($rule) {
|
|
620
|
-
$rule.remove();
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
state.enable = false;
|
|
624
|
-
return true;
|
|
625
|
-
};
|
|
626
|
-
|
|
627
|
-
return {
|
|
628
|
-
enable: enable,
|
|
629
|
-
disable: disable,
|
|
630
|
-
load: load,
|
|
631
|
-
state: state
|
|
632
|
-
};
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
exports.PanoRulerPlugin = PanoRulerPlugin;
|
|
636
|
-
var _default = PanoRulerPlugin;
|
|
637
|
-
exports["default"] = _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface Room {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
localName: string;
|
|
5
|
-
area: number;
|
|
6
|
-
}
|
|
7
|
-
export interface Rooms {
|
|
8
|
-
[key: string]: Room;
|
|
9
|
-
}
|
|
10
|
-
export declare type RoomObservers = string[];
|
|
11
|
-
export interface RoomInfo {
|
|
12
|
-
rooms: Rooms;
|
|
13
|
-
observers: RoomObservers;
|
|
14
|
-
}
|
|
15
|
-
export interface RoomRules {
|
|
16
|
-
[key: string]: {
|
|
17
|
-
x: number;
|
|
18
|
-
z: number;
|
|
19
|
-
observers: number[];
|
|
20
|
-
}[];
|
|
21
|
-
}
|