@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,89 +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"] = formatFloorplanPoint;
|
|
11
|
-
exports.floorplanPosition2ImagePosition = floorplanPosition2ImagePosition;
|
|
12
|
-
exports.getFloorIndexFromModelPosition = getFloorIndexFromModelPosition;
|
|
13
|
-
exports.modelPosition2FloorplanPosition = modelPosition2FloorplanPosition;
|
|
14
|
-
exports.pathD = pathD;
|
|
15
|
-
|
|
16
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
17
|
-
|
|
18
|
-
require("core-js/modules/es.array.concat.js");
|
|
19
|
-
|
|
20
|
-
require("core-js/modules/es.array.for-each.js");
|
|
21
|
-
|
|
22
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
23
|
-
|
|
24
|
-
require("core-js/modules/es.array.map.js");
|
|
25
|
-
|
|
26
|
-
function pathD(points) {
|
|
27
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
28
|
-
var d = '';
|
|
29
|
-
var needZ = options.needZ,
|
|
30
|
-
needA = options.needA;
|
|
31
|
-
if (needZ) points = points.concat(points[0]);
|
|
32
|
-
points.forEach(function (_point, index) {
|
|
33
|
-
var _ref = options.format ? options.format(_point) : _point,
|
|
34
|
-
x = _ref.x,
|
|
35
|
-
y = _ref.y;
|
|
36
|
-
|
|
37
|
-
var point = x + ',' + y;
|
|
38
|
-
if (index == 0) return d += 'M' + point;
|
|
39
|
-
if (needA && needA[index]) return d += 'A' + needA[index] + ',' + point;
|
|
40
|
-
return d += 'L' + point;
|
|
41
|
-
});
|
|
42
|
-
return d + (needZ ? 'Z' : '');
|
|
43
|
-
}
|
|
44
|
-
/** 把户型图上点点位转换到 SVG 上的点位 */
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
function formatFloorplanPoint(_ref2, pxmm, bounding) {
|
|
48
|
-
var x = _ref2.x,
|
|
49
|
-
y = _ref2.y;
|
|
50
|
-
var max = bounding.max,
|
|
51
|
-
min = bounding.min;
|
|
52
|
-
return {
|
|
53
|
-
x: (x - min.x) * pxmm,
|
|
54
|
-
y: (max.y - y) * pxmm
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
/** 模型坐标转户型图坐标 */
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
function modelPosition2FloorplanPosition(position, floorplanData) {
|
|
61
|
-
var x = position.x * 1000 + floorplanData.bounding.origin.x;
|
|
62
|
-
var y = -position.z * 1000 + floorplanData.bounding.origin.y;
|
|
63
|
-
return {
|
|
64
|
-
x: x,
|
|
65
|
-
y: y
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
/** 户型图点位转在图片上的相对坐标 */
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
function floorplanPosition2ImagePosition(position, floorplanData) {
|
|
72
|
-
var bounding = floorplanData.bounding;
|
|
73
|
-
var boundingWidth = bounding.max.x - bounding.min.x;
|
|
74
|
-
var boundingHeight = bounding.max.y - bounding.min.y;
|
|
75
|
-
return {
|
|
76
|
-
x: (position.x - bounding.min.x) / boundingWidth,
|
|
77
|
-
y: (bounding.max.y - position.y) / boundingHeight
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
/** 求三维坐标点所在的楼层 */
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
function getFloorIndexFromModelPosition(position, five) {
|
|
84
|
-
var floorIndex = Math.max.apply(Math, (0, _toConsumableArray2["default"])(five.work.observers.map(function (observer) {
|
|
85
|
-
if (position.z >= observer.standingPosition.z) return observer.floorIndex;
|
|
86
|
-
return 0;
|
|
87
|
-
})));
|
|
88
|
-
return floorIndex;
|
|
89
|
-
}
|
|
@@ -1,57 +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.Preloader = void 0;
|
|
9
|
-
|
|
10
|
-
require("core-js/modules/es.object.to-string.js");
|
|
11
|
-
|
|
12
|
-
require("core-js/modules/es.promise.js");
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* 预载器
|
|
16
|
-
*/
|
|
17
|
-
var Preloader = {
|
|
18
|
-
blob: function blob(url) {
|
|
19
|
-
var noop = function noop() {
|
|
20
|
-
return null;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
return new Promise(function (resolve, reject) {
|
|
24
|
-
var xhr = new XMLHttpRequest();
|
|
25
|
-
|
|
26
|
-
var clear = function clear() {
|
|
27
|
-
xhr.ontimeout = noop;
|
|
28
|
-
xhr.onreadystatechange = noop;
|
|
29
|
-
xhr.onprogress = noop;
|
|
30
|
-
xhr.onabort = noop;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
xhr.ontimeout = function () {
|
|
34
|
-
reject(new Error('timeout'));
|
|
35
|
-
clear();
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
xhr.onreadystatechange = function () {
|
|
39
|
-
if (xhr.readyState !== 4) return;
|
|
40
|
-
if (xhr.status === 0 && !xhr.response) return;
|
|
41
|
-
|
|
42
|
-
if (xhr.status === 200 || xhr.status === 0) {
|
|
43
|
-
resolve(xhr.response);
|
|
44
|
-
clear();
|
|
45
|
-
} else {
|
|
46
|
-
reject(new Error('status:' + xhr.status));
|
|
47
|
-
clear();
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
xhr.open('GET', url, true);
|
|
52
|
-
xhr.responseType = 'blob';
|
|
53
|
-
xhr.send(null);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
exports.Preloader = Preloader;
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.array.slice.js");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.object.to-string.js");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.function.name.js");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.array.from.js");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/es.string.iterator.js");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.symbol.js");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.symbol.description.js");
|
|
16
|
-
|
|
17
|
-
require("core-js/modules/es.symbol.iterator.js");
|
|
18
|
-
|
|
19
|
-
require("core-js/modules/es.array.iterator.js");
|
|
20
|
-
|
|
21
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
22
|
-
|
|
23
|
-
require("core-js/modules/es.array.is-array.js");
|
|
24
|
-
|
|
25
|
-
require("core-js/modules/es.object.define-property.js");
|
|
26
|
-
|
|
27
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
28
|
-
|
|
29
|
-
Object.defineProperty(exports, "__esModule", {
|
|
30
|
-
value: true
|
|
31
|
-
});
|
|
32
|
-
exports["default"] = void 0;
|
|
33
|
-
|
|
34
|
-
require("core-js/modules/es.array.concat.js");
|
|
35
|
-
|
|
36
|
-
require("core-js/modules/es.array.filter.js");
|
|
37
|
-
|
|
38
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
39
|
-
|
|
40
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
41
|
-
|
|
42
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
43
|
-
|
|
44
|
-
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; } } }; }
|
|
45
|
-
|
|
46
|
-
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); }
|
|
47
|
-
|
|
48
|
-
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; }
|
|
49
|
-
|
|
50
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
51
|
-
var __EVENT__ = '__events__';
|
|
52
|
-
/**
|
|
53
|
-
* 订阅类。
|
|
54
|
-
* 观察者模式(供前端使用),Node端推荐<a href="https://nodejs.org/api/events.html#events_class_eventemitter">EventEmitter</a>。
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
var Subscribe = /*#__PURE__*/function () {
|
|
58
|
-
function Subscribe() {
|
|
59
|
-
(0, _classCallCheck2["default"])(this, Subscribe);
|
|
60
|
-
this[__EVENT__] = {};
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* 判断是否注册时事件
|
|
64
|
-
* @param {string|[string]} name 事件类型
|
|
65
|
-
*/
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
(0, _createClass2["default"])(Subscribe, [{
|
|
69
|
-
key: "hasListener",
|
|
70
|
-
value: function hasListener(name) {
|
|
71
|
-
var events = this[__EVENT__];
|
|
72
|
-
return events && events[name] && events[name].length;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* 注册事件
|
|
76
|
-
* @param {string|[string]} names 事件类型
|
|
77
|
-
* @param {function} callback 事件回调函数
|
|
78
|
-
* @param {any} context 事件回调函数调用的上下文
|
|
79
|
-
* @param {boolean} once 是否只执行一次
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
}, {
|
|
83
|
-
key: "on",
|
|
84
|
-
value: function on(names, callback, context) {
|
|
85
|
-
var _this = this;
|
|
86
|
-
|
|
87
|
-
var once = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
88
|
-
|
|
89
|
-
var _iterator = _createForOfIteratorHelper([].concat(names)),
|
|
90
|
-
_step;
|
|
91
|
-
|
|
92
|
-
try {
|
|
93
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
94
|
-
var name = _step.value;
|
|
95
|
-
if (!this[__EVENT__][name]) this[__EVENT__][name] = [];
|
|
96
|
-
|
|
97
|
-
this[__EVENT__][name].push([callback, context, once]);
|
|
98
|
-
}
|
|
99
|
-
} catch (err) {
|
|
100
|
-
_iterator.e(err);
|
|
101
|
-
} finally {
|
|
102
|
-
_iterator.f();
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
return function () {
|
|
106
|
-
return _this.off(names, callback);
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* 注册事件(是否只执行一次)
|
|
111
|
-
* @param {string|[string]} names 事件类型
|
|
112
|
-
* @param {function} callback 事件回调函数
|
|
113
|
-
* @param {any} context 事件回调函数调用的上下文
|
|
114
|
-
*/
|
|
115
|
-
|
|
116
|
-
}, {
|
|
117
|
-
key: "once",
|
|
118
|
-
value: function once(names, callback, context) {
|
|
119
|
-
return this.on(names, callback, context, true);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* 解除事件
|
|
123
|
-
* @param {string|[string]} names 事件类型
|
|
124
|
-
* @param {function} callback 事件回调函数
|
|
125
|
-
*
|
|
126
|
-
* 如果 name 不传的话解除对应所有事件
|
|
127
|
-
* 如果 name, callback 不传的话解除所有name的所有事件
|
|
128
|
-
*/
|
|
129
|
-
|
|
130
|
-
}, {
|
|
131
|
-
key: "off",
|
|
132
|
-
value: function off(names, callback) {
|
|
133
|
-
if (arguments.length === 0) {
|
|
134
|
-
this[__EVENT__] = {};
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
var hasNames = function hasNames(names) {
|
|
139
|
-
return names;
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
if (hasNames(names)) {
|
|
143
|
-
var events = this[__EVENT__];
|
|
144
|
-
|
|
145
|
-
var _iterator2 = _createForOfIteratorHelper([].concat(names)),
|
|
146
|
-
_step2;
|
|
147
|
-
|
|
148
|
-
try {
|
|
149
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
150
|
-
var name = _step2.value;
|
|
151
|
-
if (events[name] === undefined) continue;
|
|
152
|
-
|
|
153
|
-
if (callback === undefined) {
|
|
154
|
-
events[name].length = 0;
|
|
155
|
-
continue;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
events[name] = events[name].filter(function (one) {
|
|
159
|
-
return one[0] !== callback;
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
} catch (err) {
|
|
163
|
-
_iterator2.e(err);
|
|
164
|
-
} finally {
|
|
165
|
-
_iterator2.f();
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
return this;
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* 触发事件
|
|
173
|
-
* @param {string|[string]} name 事件类型
|
|
174
|
-
* @param {...any} data 触发事件的数据
|
|
175
|
-
*/
|
|
176
|
-
|
|
177
|
-
}, {
|
|
178
|
-
key: "emit",
|
|
179
|
-
value: function emit(name) {
|
|
180
|
-
var canceled = false;
|
|
181
|
-
var event = this[__EVENT__][name] || [];
|
|
182
|
-
|
|
183
|
-
if (event.length === 0) {
|
|
184
|
-
console.warn(" \uD83D\uDC80 \"".concat(name, "\" \u27F6 Unregistered event. "));
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
for (var _len = arguments.length, data = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
188
|
-
data[_key - 1] = arguments[_key];
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
var _iterator3 = _createForOfIteratorHelper(event),
|
|
192
|
-
_step3;
|
|
193
|
-
|
|
194
|
-
try {
|
|
195
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
196
|
-
var one = _step3.value;
|
|
197
|
-
|
|
198
|
-
try {
|
|
199
|
-
var _one = (0, _slicedToArray2["default"])(one, 3),
|
|
200
|
-
callback = _one[0],
|
|
201
|
-
_one$ = _one[1],
|
|
202
|
-
context = _one$ === void 0 ? this : _one$,
|
|
203
|
-
_one$2 = _one[2],
|
|
204
|
-
once = _one$2 === void 0 ? false : _one$2;
|
|
205
|
-
|
|
206
|
-
var result = callback.apply(context, data);
|
|
207
|
-
if (once) this.off(name, callback);
|
|
208
|
-
|
|
209
|
-
if (result === false) {
|
|
210
|
-
// 如果回调的返回结果是false,则中断后续的调用链
|
|
211
|
-
canceled = true;
|
|
212
|
-
return canceled;
|
|
213
|
-
}
|
|
214
|
-
} catch (error) {
|
|
215
|
-
console.warn(error);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
} catch (err) {
|
|
219
|
-
_iterator3.e(err);
|
|
220
|
-
} finally {
|
|
221
|
-
_iterator3.f();
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
return canceled;
|
|
225
|
-
}
|
|
226
|
-
}]);
|
|
227
|
-
return Subscribe;
|
|
228
|
-
}();
|
|
229
|
-
|
|
230
|
-
exports["default"] = Subscribe;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.reflect.construct.js");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.object.define-property.js");
|
|
6
|
-
|
|
7
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10
|
-
value: true
|
|
11
|
-
});
|
|
12
|
-
exports.BetterTween = void 0;
|
|
13
|
-
exports.tweenProgress = tweenProgress;
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.array.concat.js");
|
|
16
|
-
|
|
17
|
-
require("core-js/modules/es.array.for-each.js");
|
|
18
|
-
|
|
19
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
20
|
-
|
|
21
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
22
|
-
|
|
23
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
24
|
-
|
|
25
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
26
|
-
|
|
27
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
28
|
-
|
|
29
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
30
|
-
|
|
31
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
32
|
-
|
|
33
|
-
var _tween = _interopRequireDefault(require("@tweenjs/tween.js"));
|
|
34
|
-
|
|
35
|
-
var _ = require(".");
|
|
36
|
-
|
|
37
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
38
|
-
|
|
39
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
40
|
-
|
|
41
|
-
var BetterTween = /*#__PURE__*/function (_TWEEN$Tween) {
|
|
42
|
-
(0, _inherits2["default"])(BetterTween, _TWEEN$Tween);
|
|
43
|
-
|
|
44
|
-
var _super = _createSuper(BetterTween);
|
|
45
|
-
|
|
46
|
-
function BetterTween() {
|
|
47
|
-
var _this;
|
|
48
|
-
|
|
49
|
-
(0, _classCallCheck2["default"])(this, BetterTween);
|
|
50
|
-
|
|
51
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
52
|
-
args[_key] = arguments[_key];
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
56
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "disposeMethods", []);
|
|
57
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onDispose", function (callback) {
|
|
58
|
-
_this.disposeMethods.push(callback);
|
|
59
|
-
|
|
60
|
-
return (0, _assertThisInitialized2["default"])(_this);
|
|
61
|
-
});
|
|
62
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "play", function () {
|
|
63
|
-
_this.start(0);
|
|
64
|
-
|
|
65
|
-
_this.animationFrameDisposer = (0, _.requestAnimationFrameInterval)(function (time) {
|
|
66
|
-
return _this.update(time);
|
|
67
|
-
});
|
|
68
|
-
return (0, _assertThisInitialized2["default"])(_this);
|
|
69
|
-
});
|
|
70
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "dispose", function () {
|
|
71
|
-
var _this$animationFrameD, _this2;
|
|
72
|
-
|
|
73
|
-
_this.stop();
|
|
74
|
-
|
|
75
|
-
(_this$animationFrameD = (_this2 = _this).animationFrameDisposer) === null || _this$animationFrameD === void 0 ? void 0 : _this$animationFrameD.call(_this2);
|
|
76
|
-
|
|
77
|
-
_this.disposeMethods.forEach(function (fn) {
|
|
78
|
-
return fn();
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
_this.disposeMethods = [];
|
|
82
|
-
|
|
83
|
-
_tween["default"].remove((0, _assertThisInitialized2["default"])(_this));
|
|
84
|
-
});
|
|
85
|
-
return _this;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
return BetterTween;
|
|
89
|
-
}(_tween["default"].Tween);
|
|
90
|
-
|
|
91
|
-
exports.BetterTween = BetterTween;
|
|
92
|
-
|
|
93
|
-
function tweenProgress(duration) {
|
|
94
|
-
var easing = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _tween["default"].Easing.Linear.None;
|
|
95
|
-
var tween = new BetterTween({
|
|
96
|
-
progress: 0
|
|
97
|
-
}).to({
|
|
98
|
-
progress: 1
|
|
99
|
-
});
|
|
100
|
-
if (duration !== undefined) tween.duration(duration);
|
|
101
|
-
if (easing !== undefined) tween.easing(easing);
|
|
102
|
-
return tween;
|
|
103
|
-
}
|
|
@@ -1,40 +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.progressNumber = progressNumber;
|
|
9
|
-
exports.progressRad = progressRad;
|
|
10
|
-
|
|
11
|
-
var _formatRad = require("./formatRad");
|
|
12
|
-
|
|
13
|
-
var PI = Math.PI;
|
|
14
|
-
var PI_2 = PI * 2;
|
|
15
|
-
/**
|
|
16
|
-
* 线性过程插值
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
function progressNumber(from, to, pst) {
|
|
20
|
-
return from + (to - from) * pst;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 弧度过程插值值,会取锐角进行插值
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function progressRad(from, to, pst) {
|
|
28
|
-
from = (0, _formatRad.formatRad)(from);
|
|
29
|
-
to = (0, _formatRad.formatRad)(to);
|
|
30
|
-
|
|
31
|
-
if (to - from > PI) {
|
|
32
|
-
return (0, _formatRad.formatRad)(progressNumber(from + PI_2, to, pst));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (from - to > PI) {
|
|
36
|
-
return (0, _formatRad.formatRad)(progressNumber(from - PI_2, to, pst));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return progressNumber(from, to, pst);
|
|
40
|
-
}
|
|
@@ -1,36 +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.formatLatitude = formatLatitude;
|
|
9
|
-
exports.formatLongitude = formatLongitude;
|
|
10
|
-
exports.formatRad = void 0;
|
|
11
|
-
var PI_2 = Math.PI * 2;
|
|
12
|
-
/**
|
|
13
|
-
* 把一个任意角度的弧度值转换为一个 [0, 2PI] 的弧度值
|
|
14
|
-
* @param rad 弧度值
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
function formatLongitude(rad) {
|
|
18
|
-
return (rad % PI_2 + PI_2) % PI_2;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* 把一个任意角度的弧度值转换为一个 [-2PI, 2PI] 的弧度值
|
|
22
|
-
* @param rad 弧度值
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
function formatLatitude(rad) {
|
|
27
|
-
return rad % PI_2;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* 把一个任意角度的弧度值转换为一个 [0, 2PI] 的弧度值
|
|
31
|
-
* @param rad 弧度值
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var formatRad = formatLongitude;
|
|
36
|
-
exports.formatRad = formatRad;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
exports.getFrameTime = getFrameTime;
|
|
10
|
-
exports.nextFrame = nextFrame;
|
|
11
|
-
exports.requestAnimationFrameInterval = requestAnimationFrameInterval;
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/web.timers.js");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.date.now.js");
|
|
16
|
-
|
|
17
|
-
require("core-js/modules/es.date.to-string.js");
|
|
18
|
-
|
|
19
|
-
require("core-js/modules/es.object.to-string.js");
|
|
20
|
-
|
|
21
|
-
require("core-js/modules/es.promise.js");
|
|
22
|
-
|
|
23
|
-
var _requestAnimationFrame = window.requestAnimationFrame || function (fn) {
|
|
24
|
-
return setTimeout(fn, 16);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
var _cancelAnimationFrame = window.cancelAnimationFrame || clearTimeout;
|
|
28
|
-
|
|
29
|
-
var _default = _requestAnimationFrame;
|
|
30
|
-
exports["default"] = _default;
|
|
31
|
-
|
|
32
|
-
function nextFrame(fn) {
|
|
33
|
-
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
34
|
-
if (delay <= 0) _requestAnimationFrame(fn);else _requestAnimationFrame(function () {
|
|
35
|
-
return nextFrame(fn, delay - 1);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* 在每个 AnimationFrame 中调用传入的函数
|
|
40
|
-
* @param callback 每次 AnimationFrame 中调用的函数
|
|
41
|
-
* @param frame 每秒运行多少次
|
|
42
|
-
* @returns 返回一个函数,调用可以停止 AnimationFrameLoop
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
function requestAnimationFrameInterval(callback) {
|
|
47
|
-
var frame = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
|
|
48
|
-
var index = -1;
|
|
49
|
-
var oldTime = 0;
|
|
50
|
-
var startTime = -1;
|
|
51
|
-
var minDeltaTime = 1000 / frame;
|
|
52
|
-
|
|
53
|
-
function loop(time) {
|
|
54
|
-
startTime === -1 && (startTime = time);
|
|
55
|
-
index = _requestAnimationFrame(loop);
|
|
56
|
-
var deltaTime = time - oldTime;
|
|
57
|
-
if (deltaTime < minDeltaTime) return;
|
|
58
|
-
oldTime = time;
|
|
59
|
-
callback && callback(time - startTime);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
index = _requestAnimationFrame(loop);
|
|
63
|
-
return function stop() {
|
|
64
|
-
_cancelAnimationFrame(index);
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* 获取两个 AnimationFrame 间隔的时间
|
|
69
|
-
* @returns 返回一个 Promise,resolve 的结果是两个 AnimationFrame 间隔的时间
|
|
70
|
-
*/
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
function getFrameTime() {
|
|
74
|
-
var start = Date.now();
|
|
75
|
-
return new Promise(function (resolve) {
|
|
76
|
-
_requestAnimationFrame(function () {
|
|
77
|
-
resolve(Date.now() - start);
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
} // export { Easing } from './tween'
|
|
81
|
-
// export { default as tween } from './tween'
|