@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,134 +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"] = void 0;
|
|
11
|
-
|
|
12
|
-
var _style = _interopRequireDefault(require("styled-jsx/style"));
|
|
13
|
-
|
|
14
|
-
require("core-js/modules/es.number.to-fixed.js");
|
|
15
|
-
|
|
16
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
|
-
|
|
18
|
-
var _react = _interopRequireDefault(require("react"));
|
|
19
|
-
|
|
20
|
-
var _react2 = require("@realsee/five/react");
|
|
21
|
-
|
|
22
|
-
var styles = [".controller.jsx-2630336174{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;padding:2px;line-height:1.5;}", ".panel.jsx-2630336174{margin:5px 0 0 5px;max-width:230px;}", ".panel.jsx-2630336174+.panel.jsx-2630336174{margin-top:10px;}", ".panel.jsx-2630336174 .label.jsx-2630336174{font-weight:bold;margin-bottom:5px;text-shadow:0 0 2px rgba(255,255,255,0.5);}", ".panel.jsx-2630336174 .content.jsx-2630336174{font-size:12px;background-color:#0078e7;color:white;padding:1rem;}", ".state.jsx-2630336174{font-family:monospace;color:yellowgreen;}", ".state_s.jsx-2630336174{color:white;}", ".btns.jsx-2630336174{position:absolute;right:0;left:0;bottom:36px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}", ".btns.jsx-2630336174 button.jsx-2630336174{margin:0 6px;}"];
|
|
23
|
-
/**
|
|
24
|
-
* <br />
|
|
25
|
-
* ### Five 状态控制器
|
|
26
|
-
* > 这是一个简单的 `Five` 状态控制器,用于演示如何控制 `Five` VR 实例的状态。
|
|
27
|
-
*
|
|
28
|
-
* `Five` 实例的核心状态有五个:
|
|
29
|
-
*
|
|
30
|
-
* - `longitude` 视野水平方向位移(左右)。
|
|
31
|
-
* - `latitude` 视野垂直方向位移(上下)。
|
|
32
|
-
* - `fov` 视野大小(远近)。
|
|
33
|
-
* - `panoIndex` 全景模式下所在点位。
|
|
34
|
-
* - `mode` 当前实例所处模式:"Panorama" 全景模式; "Floorplan" 模型模式。
|
|
35
|
-
*
|
|
36
|
-
* @param param `{ showState }` 是否展示状态信息
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
styles.__hash = "2630336174";
|
|
40
|
-
|
|
41
|
-
var FiveStateController = function FiveStateController(_ref) {
|
|
42
|
-
var showState = _ref.showState;
|
|
43
|
-
|
|
44
|
-
var _useFiveCurrentState = (0, _react2.useFiveCurrentState)(),
|
|
45
|
-
_useFiveCurrentState2 = (0, _slicedToArray2["default"])(_useFiveCurrentState, 2),
|
|
46
|
-
state = _useFiveCurrentState2[0],
|
|
47
|
-
setState = _useFiveCurrentState2[1];
|
|
48
|
-
|
|
49
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_style["default"], {
|
|
50
|
-
id: styles.__hash
|
|
51
|
-
}, styles), /*#__PURE__*/_react["default"].createElement("div", {
|
|
52
|
-
className: "jsx-".concat(styles.__hash) + " " + "controller"
|
|
53
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
54
|
-
className: "jsx-".concat(styles.__hash) + " " + "panel"
|
|
55
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
56
|
-
style: {
|
|
57
|
-
opacity: showState ? '1' : '0'
|
|
58
|
-
},
|
|
59
|
-
className: "jsx-".concat(styles.__hash) + " " + "content"
|
|
60
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
|
-
className: "jsx-".concat(styles.__hash) + " " + "label"
|
|
62
|
-
}, "\u5F53\u524D\u72B6\u6001"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
|
-
className: "jsx-".concat(styles.__hash) + " " + "state"
|
|
64
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
|
-
className: "jsx-".concat(styles.__hash)
|
|
66
|
-
}, "longitude: ", /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
|
-
className: "jsx-".concat(styles.__hash) + " " + "state_s"
|
|
68
|
-
}, state.longitude.toFixed(10))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
|
-
className: "jsx-".concat(styles.__hash)
|
|
70
|
-
}, "latitude: ", /*#__PURE__*/_react["default"].createElement("span", {
|
|
71
|
-
className: "jsx-".concat(styles.__hash) + " " + "state_s"
|
|
72
|
-
}, state.latitude.toFixed(10))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
-
className: "jsx-".concat(styles.__hash)
|
|
74
|
-
}, "fov: ", /*#__PURE__*/_react["default"].createElement("span", {
|
|
75
|
-
className: "jsx-".concat(styles.__hash) + " " + "state_s"
|
|
76
|
-
}, state.fov.toFixed(0))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
-
className: "jsx-".concat(styles.__hash)
|
|
78
|
-
}, "panoIndex: ", /*#__PURE__*/_react["default"].createElement("span", {
|
|
79
|
-
className: "jsx-".concat(styles.__hash) + " " + "state_s"
|
|
80
|
-
}, state.panoIndex.toFixed(0))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
|
-
className: "jsx-".concat(styles.__hash)
|
|
82
|
-
}, "mode: ", /*#__PURE__*/_react["default"].createElement("span", {
|
|
83
|
-
className: "jsx-".concat(styles.__hash) + " " + "state_s"
|
|
84
|
-
}, state.mode)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
|
-
className: "jsx-".concat(styles.__hash) + " " + "btns"
|
|
86
|
-
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
87
|
-
onMouseDown: function onMouseDown() {
|
|
88
|
-
return setState({
|
|
89
|
-
longitude: state.longitude - Math.PI / 4
|
|
90
|
-
});
|
|
91
|
-
},
|
|
92
|
-
className: "jsx-".concat(styles.__hash) + " " + "pure-button pure-button-primary"
|
|
93
|
-
}, "\u5411\u5DE6"), /*#__PURE__*/_react["default"].createElement("button", {
|
|
94
|
-
onMouseDown: function onMouseDown() {
|
|
95
|
-
return setState({
|
|
96
|
-
latitude: state.latitude - Math.PI / 4
|
|
97
|
-
});
|
|
98
|
-
},
|
|
99
|
-
className: "jsx-".concat(styles.__hash) + " " + "pure-button pure-button-primary"
|
|
100
|
-
}, "\u5411\u4E0A"), /*#__PURE__*/_react["default"].createElement("button", {
|
|
101
|
-
onMouseDown: function onMouseDown() {
|
|
102
|
-
return setState({
|
|
103
|
-
latitude: state.latitude + Math.PI / 4
|
|
104
|
-
});
|
|
105
|
-
},
|
|
106
|
-
className: "jsx-".concat(styles.__hash) + " " + "pure-button pure-button-primary"
|
|
107
|
-
}, "\u5411\u4E0B"), /*#__PURE__*/_react["default"].createElement("button", {
|
|
108
|
-
onMouseDown: function onMouseDown() {
|
|
109
|
-
return setState({
|
|
110
|
-
longitude: state.longitude + Math.PI / 4
|
|
111
|
-
});
|
|
112
|
-
},
|
|
113
|
-
className: "jsx-".concat(styles.__hash) + " " + "pure-button pure-button-primary"
|
|
114
|
-
}, "\u5411\u53F3"), /*#__PURE__*/_react["default"].createElement("button", {
|
|
115
|
-
onMouseDown: function onMouseDown() {
|
|
116
|
-
return setState({
|
|
117
|
-
fov: state.fov + 20
|
|
118
|
-
});
|
|
119
|
-
},
|
|
120
|
-
className: "jsx-".concat(styles.__hash) + " " + "pure-button pure-button-primary"
|
|
121
|
-
}, "\u89C6\u89D2+"), /*#__PURE__*/_react["default"].createElement("button", {
|
|
122
|
-
onMouseDown: function onMouseDown() {
|
|
123
|
-
return setState({
|
|
124
|
-
fov: state.fov - 20
|
|
125
|
-
});
|
|
126
|
-
},
|
|
127
|
-
className: "jsx-".concat(styles.__hash) + " " + "pure-button pure-button-primary"
|
|
128
|
-
}, "\u89C6\u89D2-")))));
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
exports["default"] = FiveStateController;
|
|
132
|
-
FiveStateController.defaultProps = {
|
|
133
|
-
showState: true
|
|
134
|
-
};
|
|
@@ -1,36 +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 _typeof = require("@babel/runtime/helpers/typeof");
|
|
18
|
-
|
|
19
|
-
Object.defineProperty(exports, "__esModule", {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
exports["default"] = ExampleMobile;
|
|
23
|
-
|
|
24
|
-
var React = _interopRequireWildcard(require("react"));
|
|
25
|
-
|
|
26
|
-
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); }
|
|
27
|
-
|
|
28
|
-
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; }
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* 移动端 VR 看房
|
|
32
|
-
* @returns
|
|
33
|
-
*/
|
|
34
|
-
function ExampleMobile() {
|
|
35
|
-
return /*#__PURE__*/React.createElement("div", null, "\u79FB\u52A8\u7AEF VR \u770B\u623F");
|
|
36
|
-
}
|
package/examples/VRHouse/PC.js
DELETED
|
@@ -1,36 +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 _typeof = require("@babel/runtime/helpers/typeof");
|
|
18
|
-
|
|
19
|
-
Object.defineProperty(exports, "__esModule", {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
exports["default"] = ExamplePC;
|
|
23
|
-
|
|
24
|
-
var React = _interopRequireWildcard(require("react"));
|
|
25
|
-
|
|
26
|
-
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); }
|
|
27
|
-
|
|
28
|
-
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; }
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* PC端 VR 看房
|
|
32
|
-
* @returns
|
|
33
|
-
*/
|
|
34
|
-
function ExamplePC() {
|
|
35
|
-
return /*#__PURE__*/React.createElement("div", null, "PC\u7AEF VR \u770B\u623F");
|
|
36
|
-
}
|
|
@@ -1,36 +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 _typeof = require("@babel/runtime/helpers/typeof");
|
|
18
|
-
|
|
19
|
-
Object.defineProperty(exports, "__esModule", {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
exports["default"] = VRHouse;
|
|
23
|
-
|
|
24
|
-
var React = _interopRequireWildcard(require("react"));
|
|
25
|
-
|
|
26
|
-
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); }
|
|
27
|
-
|
|
28
|
-
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; }
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* VR 看房
|
|
32
|
-
* @returns
|
|
33
|
-
*/
|
|
34
|
-
function VRHouse() {
|
|
35
|
-
return /*#__PURE__*/React.createElement("div", null, "VR \u770B\u623F");
|
|
36
|
-
}
|
package/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import GlassFilters from './components/GlassFilters';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
/** React Components */
|
|
4
|
-
GlassFilters: typeof GlassFilters;
|
|
5
|
-
/** Five Plugins */
|
|
6
|
-
ModelChassisCompassPlugin: (five: import("@realsee/five").Five, parameters: import("./plugins/ModelChassisCompassPlugin").ModelChassisCompassPluginParameterType) => import("./plugins/ModelChassisCompassPlugin").ModelChassisCompassPluginExportType;
|
|
7
|
-
ModelTVVideoPlugin: (five: import("@realsee/five").Five, parameters: import("./plugins/ModelTVVideoPlugin").ModelTVVideoPluginParameterType) => import("./plugins/ModelTVVideoPlugin").ModelTVVideoPluginExportType;
|
|
8
|
-
ModelViewPlugin: (five: import("@realsee/five").Five) => import("./plugins/ModelViewPlugin").ModelViewPluginExportType;
|
|
9
|
-
PanoRulerPlugin: (five: import("@realsee/five").Five, parameters: import("./plugins/PanoRulerPlugin").PanoRulerPluginParameterType) => import("./plugins/PanoRulerPlugin").PanoRulerPluginExportType;
|
|
10
|
-
PanoTVVideoPlugin: (five: import("@realsee/five").Five, parameters: import("./plugins/PanoTVVideoPlugin").PanoTVVideoPluginParameterType) => import("./plugins/PanoTVVideoPlugin").PanoTVVideoPluginExportType;
|
|
11
|
-
ModelFloorplanPlugin: (five: import("@realsee/five").Five, parameters: import("./plugins/floorplan/ModelFloorplanPlugin").ModelFloorplanParameterType) => import("./typedoc/plugins").ModelFloorplanPluginController;
|
|
12
|
-
TopviewFloorplanPlugin: (five: import("@realsee/five").Five, parameters: import("./plugins/floorplan/TopviewFloorplanPlugin").TopviewFloorplanPluginParameterType) => import("./typedoc/plugins").TopviewFloorplanPluginController;
|
|
13
|
-
PanoFloorplanRadarPlugin: ((five: import("@realsee/five").Five) => import("./plugins/floorplan/PanoFloorplanRadarPlugin").PanoFloorplanRadarPluginController) | ((five: import("@realsee/five").Five, parameters: import("./plugins/floorplan/PanoFloorplanRadarPlugin").PanoFloorplanRadarPluginControllerParameter) => import("./plugins/floorplan/PanoFloorplanRadarPlugin").PanoFloorplanRadarPluginController);
|
|
14
|
-
};
|
|
15
|
-
export default _default;
|
package/index.js
DELETED
|
@@ -1,45 +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"] = void 0;
|
|
11
|
-
|
|
12
|
-
var _GlassFilters = _interopRequireDefault(require("./components/GlassFilters"));
|
|
13
|
-
|
|
14
|
-
var _ModelChassisCompassPlugin = _interopRequireDefault(require("./plugins/ModelChassisCompassPlugin"));
|
|
15
|
-
|
|
16
|
-
var _ModelTVVideoPlugin = _interopRequireDefault(require("./plugins/ModelTVVideoPlugin"));
|
|
17
|
-
|
|
18
|
-
var _ModelViewPlugin = _interopRequireDefault(require("./plugins/ModelViewPlugin"));
|
|
19
|
-
|
|
20
|
-
var _PanoRulerPlugin = _interopRequireDefault(require("./plugins/PanoRulerPlugin"));
|
|
21
|
-
|
|
22
|
-
var _PanoTVVideoPlugin = _interopRequireDefault(require("./plugins/PanoTVVideoPlugin"));
|
|
23
|
-
|
|
24
|
-
var _ModelFloorplanPlugin = _interopRequireDefault(require("./plugins/floorplan/ModelFloorplanPlugin"));
|
|
25
|
-
|
|
26
|
-
var _TopviewFloorplanPlugin = _interopRequireDefault(require("./plugins/floorplan/TopviewFloorplanPlugin"));
|
|
27
|
-
|
|
28
|
-
var _PanoFloorplanRadarPlugin = _interopRequireDefault(require("./plugins/floorplan/PanoFloorplanRadarPlugin"));
|
|
29
|
-
|
|
30
|
-
var _default = {
|
|
31
|
-
/** React Components */
|
|
32
|
-
GlassFilters: _GlassFilters["default"],
|
|
33
|
-
|
|
34
|
-
/** Five Plugins */
|
|
35
|
-
ModelChassisCompassPlugin: _ModelChassisCompassPlugin["default"],
|
|
36
|
-
ModelTVVideoPlugin: _ModelTVVideoPlugin["default"],
|
|
37
|
-
ModelViewPlugin: _ModelViewPlugin["default"],
|
|
38
|
-
PanoRulerPlugin: _PanoRulerPlugin["default"],
|
|
39
|
-
PanoTVVideoPlugin: _PanoTVVideoPlugin["default"],
|
|
40
|
-
// floorplan
|
|
41
|
-
ModelFloorplanPlugin: _ModelFloorplanPlugin["default"],
|
|
42
|
-
TopviewFloorplanPlugin: _TopviewFloorplanPlugin["default"],
|
|
43
|
-
PanoFloorplanRadarPlugin: _PanoFloorplanRadarPlugin["default"]
|
|
44
|
-
};
|
|
45
|
-
exports["default"] = _default;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
export declare type EventMap = {
|
|
2
|
-
[name: string]: (...args: any[]) => void | boolean;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* 监听者模式
|
|
6
|
-
* @template T 预设的监听回调类型
|
|
7
|
-
* @example
|
|
8
|
-
* ```
|
|
9
|
-
* new Subscribe<{
|
|
10
|
-
* "foo": [arg1: number, arg2: string],
|
|
11
|
-
* "bar": [arg: boolean],
|
|
12
|
-
* }>()
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
declare class Subscribe<T extends EventMap> {
|
|
16
|
-
/**
|
|
17
|
-
* 判断是否注册了事件
|
|
18
|
-
* @param name 事件类型
|
|
19
|
-
*/
|
|
20
|
-
hasListener(name: keyof T): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* 注册事件
|
|
23
|
-
* @param name 事件类型
|
|
24
|
-
* @param callback 事件回调函数
|
|
25
|
-
* @param once 是否只执行一次
|
|
26
|
-
* @returns 解除事件
|
|
27
|
-
* @template K 预设的监听事件名称
|
|
28
|
-
* @template C 回调函数函数上下文
|
|
29
|
-
*/
|
|
30
|
-
on<K extends keyof T>(name: K, callback: (...args: Parameters<T[K]>) => ReturnType<T[K]>, once?: boolean): () => void;
|
|
31
|
-
/**
|
|
32
|
-
* 注册事件(是否只执行一次)
|
|
33
|
-
* @param name 事件类型
|
|
34
|
-
* @param callback 事件回调函数
|
|
35
|
-
* @returns 解除事件
|
|
36
|
-
* @template K 预设的监听事件名称
|
|
37
|
-
* @template C 回调函数函数上下文
|
|
38
|
-
*/
|
|
39
|
-
once<K extends keyof T>(name: K, callback: (...args: Parameters<T[K]>) => ReturnType<T[K]>): () => void;
|
|
40
|
-
/**
|
|
41
|
-
* 解除事件
|
|
42
|
-
*
|
|
43
|
-
* 如果 name 不传的话解除对应所有事件
|
|
44
|
-
* 如果 name, callback 不传的话解除所有name的所有事件
|
|
45
|
-
* @param name 事件类型
|
|
46
|
-
* @param callback 事件回调函数
|
|
47
|
-
* @template K 预设的监听事件名称
|
|
48
|
-
*/
|
|
49
|
-
off<K extends keyof T>(name?: K, callback?: (...args: Parameters<T[K]>) => ReturnType<T[K]>): void;
|
|
50
|
-
/**
|
|
51
|
-
* 触发事件
|
|
52
|
-
* @param name 事件类型
|
|
53
|
-
* @param data 触发事件的数据
|
|
54
|
-
* @returns canceled 是否被触发取消
|
|
55
|
-
* @template K 预设的监听事件名称
|
|
56
|
-
*/
|
|
57
|
-
emit<K extends keyof T>(name: K, ...data: Parameters<T[K]>): boolean;
|
|
58
|
-
}
|
|
59
|
-
export declare namespace SubscribeMixinType {
|
|
60
|
-
interface hasListener<T extends EventMap> {
|
|
61
|
-
(name: keyof T): boolean;
|
|
62
|
-
}
|
|
63
|
-
interface on<T extends EventMap> {
|
|
64
|
-
<K extends keyof T>(name: K, callback: (...args: Parameters<T[K]>) => ReturnType<T[K]>, once?: boolean): () => void;
|
|
65
|
-
}
|
|
66
|
-
interface once<T extends EventMap> {
|
|
67
|
-
<K extends keyof T>(name: K, callback: (...args: Parameters<T[K]>) => ReturnType<T[K]>): () => void;
|
|
68
|
-
}
|
|
69
|
-
interface off<T extends EventMap> {
|
|
70
|
-
<K extends keyof T>(names?: K | K[], callback?: (...args: any[]) => any): void;
|
|
71
|
-
}
|
|
72
|
-
interface emit<T extends EventMap> {
|
|
73
|
-
<K extends keyof T>(name: K, ...data: Parameters<T[K]>): boolean;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
export { Subscribe };
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.function.name.js");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.array.from.js");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.string.iterator.js");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.symbol.iterator.js");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/es.array.iterator.js");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.array.is-array.js");
|
|
16
|
-
|
|
17
|
-
require("core-js/modules/es.object.define-property.js");
|
|
18
|
-
|
|
19
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(exports, "__esModule", {
|
|
22
|
-
value: true
|
|
23
|
-
});
|
|
24
|
-
exports.SubscribeMixinType = exports.Subscribe = void 0;
|
|
25
|
-
|
|
26
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
27
|
-
|
|
28
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
29
|
-
|
|
30
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
31
|
-
|
|
32
|
-
require("core-js/modules/es.symbol.js");
|
|
33
|
-
|
|
34
|
-
require("core-js/modules/es.symbol.description.js");
|
|
35
|
-
|
|
36
|
-
require("core-js/modules/es.object.to-string.js");
|
|
37
|
-
|
|
38
|
-
require("core-js/modules/es.array.splice.js");
|
|
39
|
-
|
|
40
|
-
require("core-js/modules/es.array.slice.js");
|
|
41
|
-
|
|
42
|
-
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; } } }; }
|
|
43
|
-
|
|
44
|
-
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); }
|
|
45
|
-
|
|
46
|
-
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; }
|
|
47
|
-
|
|
48
|
-
// type UniqueSymbol = ReturnType<(a: string) => { readonly 0: unique symbol }[0]>;
|
|
49
|
-
//
|
|
50
|
-
// function createSymbol(description: string): UniqueSymbol {
|
|
51
|
-
// // TODO 解决提示
|
|
52
|
-
// // @ts-ignore
|
|
53
|
-
// return typeof Symbol === "undefined" ? `$Symbol<${description}>$` : Symbol(description);
|
|
54
|
-
// }
|
|
55
|
-
//
|
|
56
|
-
// const EVENT_SYMBOL = createSymbol("$$LIVE_EVENT$$")
|
|
57
|
-
var EVENT_SYMBOL = Symbol("$$LIVE_EVENT$$");
|
|
58
|
-
|
|
59
|
-
function __generateEventIfNotExisted(instance) {
|
|
60
|
-
if (!instance[EVENT_SYMBOL]) {
|
|
61
|
-
instance[EVENT_SYMBOL] = {};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return instance[EVENT_SYMBOL];
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function __removeEventIfNotExisted(instance) {
|
|
68
|
-
if (!instance[EVENT_SYMBOL]) {
|
|
69
|
-
delete instance[EVENT_SYMBOL];
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* 监听者模式
|
|
74
|
-
* @template T 预设的监听回调类型
|
|
75
|
-
* @example
|
|
76
|
-
* ```
|
|
77
|
-
* new Subscribe<{
|
|
78
|
-
* "foo": [arg1: number, arg2: string],
|
|
79
|
-
* "bar": [arg: boolean],
|
|
80
|
-
* }>()
|
|
81
|
-
* ```
|
|
82
|
-
*/
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
var Subscribe = /*#__PURE__*/function () {
|
|
86
|
-
function Subscribe() {
|
|
87
|
-
(0, _classCallCheck2["default"])(this, Subscribe);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
(0, _createClass2["default"])(Subscribe, [{
|
|
91
|
-
key: "hasListener",
|
|
92
|
-
value:
|
|
93
|
-
/**
|
|
94
|
-
* 判断是否注册了事件
|
|
95
|
-
* @param name 事件类型
|
|
96
|
-
*/
|
|
97
|
-
function hasListener(name) {
|
|
98
|
-
var events = __generateEventIfNotExisted(this);
|
|
99
|
-
|
|
100
|
-
return events && events[name] && events[name].length > 0;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* 注册事件
|
|
104
|
-
* @param name 事件类型
|
|
105
|
-
* @param callback 事件回调函数
|
|
106
|
-
* @param once 是否只执行一次
|
|
107
|
-
* @returns 解除事件
|
|
108
|
-
* @template K 预设的监听事件名称
|
|
109
|
-
* @template C 回调函数函数上下文
|
|
110
|
-
*/
|
|
111
|
-
|
|
112
|
-
}, {
|
|
113
|
-
key: "on",
|
|
114
|
-
value: function on(name, callback, once) {
|
|
115
|
-
var _this = this;
|
|
116
|
-
|
|
117
|
-
var events = __generateEventIfNotExisted(this);
|
|
118
|
-
|
|
119
|
-
if (!events[name]) events[name] = [];
|
|
120
|
-
events[name].push([callback, once || false]);
|
|
121
|
-
return function () {
|
|
122
|
-
return _this.off(name, callback);
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* 注册事件(是否只执行一次)
|
|
127
|
-
* @param name 事件类型
|
|
128
|
-
* @param callback 事件回调函数
|
|
129
|
-
* @returns 解除事件
|
|
130
|
-
* @template K 预设的监听事件名称
|
|
131
|
-
* @template C 回调函数函数上下文
|
|
132
|
-
*/
|
|
133
|
-
|
|
134
|
-
}, {
|
|
135
|
-
key: "once",
|
|
136
|
-
value: function once(name, callback) {
|
|
137
|
-
return this.on(name, callback, true);
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* 解除事件
|
|
141
|
-
*
|
|
142
|
-
* 如果 name 不传的话解除对应所有事件
|
|
143
|
-
* 如果 name, callback 不传的话解除所有name的所有事件
|
|
144
|
-
* @param name 事件类型
|
|
145
|
-
* @param callback 事件回调函数
|
|
146
|
-
* @template K 预设的监听事件名称
|
|
147
|
-
*/
|
|
148
|
-
|
|
149
|
-
}, {
|
|
150
|
-
key: "off",
|
|
151
|
-
value: function off(name, callback) {
|
|
152
|
-
if (name === undefined) {
|
|
153
|
-
__removeEventIfNotExisted(this);
|
|
154
|
-
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
var events = __generateEventIfNotExisted(this);
|
|
159
|
-
|
|
160
|
-
if (!events[name]) events[name] = [];
|
|
161
|
-
|
|
162
|
-
if (callback === undefined) {
|
|
163
|
-
events[name].length = 0;
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
var index = 0;
|
|
168
|
-
|
|
169
|
-
for (; index < events[name].length; index++) {
|
|
170
|
-
if (events[name][index][0] === callback) break;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
if (index < events[name].length) {
|
|
174
|
-
events[name].splice(index, 1);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* 触发事件
|
|
179
|
-
* @param name 事件类型
|
|
180
|
-
* @param data 触发事件的数据
|
|
181
|
-
* @returns canceled 是否被触发取消
|
|
182
|
-
* @template K 预设的监听事件名称
|
|
183
|
-
*/
|
|
184
|
-
|
|
185
|
-
}, {
|
|
186
|
-
key: "emit",
|
|
187
|
-
value: function emit(name) {
|
|
188
|
-
var canceled = false;
|
|
189
|
-
|
|
190
|
-
var events = __generateEventIfNotExisted(this);
|
|
191
|
-
|
|
192
|
-
var event = events[name] || [];
|
|
193
|
-
|
|
194
|
-
for (var _len = arguments.length, data = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
195
|
-
data[_key - 1] = arguments[_key];
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
var _iterator = _createForOfIteratorHelper(event.slice()),
|
|
199
|
-
_step;
|
|
200
|
-
|
|
201
|
-
try {
|
|
202
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
203
|
-
var one = _step.value;
|
|
204
|
-
|
|
205
|
-
var _one = (0, _slicedToArray2["default"])(one, 2),
|
|
206
|
-
_callback = _one[0],
|
|
207
|
-
_one$ = _one[1],
|
|
208
|
-
_once = _one$ === void 0 ? false : _one$;
|
|
209
|
-
|
|
210
|
-
var result = _callback.apply(void 0, data);
|
|
211
|
-
|
|
212
|
-
if (_once) this.off(name, _callback);
|
|
213
|
-
if (result === false) canceled = true;
|
|
214
|
-
}
|
|
215
|
-
} catch (err) {
|
|
216
|
-
_iterator.e(err);
|
|
217
|
-
} finally {
|
|
218
|
-
_iterator.f();
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
return canceled;
|
|
222
|
-
}
|
|
223
|
-
}]);
|
|
224
|
-
return Subscribe;
|
|
225
|
-
}();
|
|
226
|
-
|
|
227
|
-
exports.Subscribe = Subscribe;
|
|
228
|
-
var SubscribeMixinType;
|
|
229
|
-
exports.SubscribeMixinType = SubscribeMixinType;
|
|
230
|
-
|
|
231
|
-
(function (_SubscribeMixinType) {})(SubscribeMixinType || (exports.SubscribeMixinType = SubscribeMixinType = {}));
|
|
@@ -1,22 +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.coordsMoveByOffset = coordsMoveByOffset;
|
|
9
|
-
|
|
10
|
-
var _formatRad = require("./formatRad");
|
|
11
|
-
|
|
12
|
-
function coordsMoveByOffset(coords, offset, layout) {
|
|
13
|
-
var longitude = coords.longitude,
|
|
14
|
-
latitude = coords.latitude;
|
|
15
|
-
longitude = longitude - offset.x / layout.width * 3;
|
|
16
|
-
latitude = latitude - offset.y / layout.height * 3;
|
|
17
|
-
longitude = (0, _formatRad.formatRad)(longitude);
|
|
18
|
-
return {
|
|
19
|
-
longitude: longitude,
|
|
20
|
-
latitude: latitude
|
|
21
|
-
};
|
|
22
|
-
}
|