@realsee/dnalogel 0.1.7 → 2.0.0-alpha.1
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 -90
- package/dist/dnalogel.es.js +37145 -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/{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 +17 -0
- package/libs/index.js +10 -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,406 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.reflect.construct.js");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.array.iterator.js");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.string.iterator.js");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.weak-map.js");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.object.define-property.js");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
-
|
|
17
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
-
|
|
19
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(exports, "__esModule", {
|
|
22
|
-
value: true
|
|
23
|
-
});
|
|
24
|
-
exports.TreasureObject = void 0;
|
|
25
|
-
|
|
26
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
27
|
-
|
|
28
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
29
|
-
|
|
30
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
31
|
-
|
|
32
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
33
|
-
|
|
34
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
35
|
-
|
|
36
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
37
|
-
|
|
38
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
39
|
-
|
|
40
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
41
|
-
|
|
42
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
43
|
-
|
|
44
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
45
|
-
|
|
46
|
-
require("core-js/modules/es.array.map.js");
|
|
47
|
-
|
|
48
|
-
require("core-js/modules/es.object.to-string.js");
|
|
49
|
-
|
|
50
|
-
require("core-js/modules/es.promise.js");
|
|
51
|
-
|
|
52
|
-
require("core-js/modules/es.array.for-each.js");
|
|
53
|
-
|
|
54
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
55
|
-
|
|
56
|
-
require("core-js/modules/es.string.sub.js");
|
|
57
|
-
|
|
58
|
-
var THREE = _interopRequireWildcard(require("three"));
|
|
59
|
-
|
|
60
|
-
var TWEEN = _interopRequireWildcard(require("@tweenjs/tween.js"));
|
|
61
|
-
|
|
62
|
-
var _TreasureFaceAnime = require("./TreasureFaceAnime");
|
|
63
|
-
|
|
64
|
-
var _TreasureOpenAnime = require("./TreasureOpenAnime");
|
|
65
|
-
|
|
66
|
-
var _BetterTween = require("../../shared-utils/animationFrame/BetterTween");
|
|
67
|
-
|
|
68
|
-
var _to = _interopRequireDefault(require("../../shared-utils/to"));
|
|
69
|
-
|
|
70
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
71
|
-
|
|
72
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
73
|
-
|
|
74
|
-
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); }; }
|
|
75
|
-
|
|
76
|
-
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; } }
|
|
77
|
-
|
|
78
|
-
function copyMaterial(orginMatrial) {
|
|
79
|
-
var material = new THREE.MeshBasicMaterial({
|
|
80
|
-
map: orginMatrial.map,
|
|
81
|
-
opacity: orginMatrial.opacity,
|
|
82
|
-
transparent: orginMatrial.transparent
|
|
83
|
-
});
|
|
84
|
-
return material;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
var TreasureObject = /*#__PURE__*/function (_THREE$Object3D) {
|
|
88
|
-
(0, _inherits2["default"])(TreasureObject, _THREE$Object3D);
|
|
89
|
-
|
|
90
|
-
var _super = _createSuper(TreasureObject);
|
|
91
|
-
|
|
92
|
-
function TreasureObject(params) {
|
|
93
|
-
var _this;
|
|
94
|
-
|
|
95
|
-
(0, _classCallCheck2["default"])(this, TreasureObject);
|
|
96
|
-
_this = _super.call(this);
|
|
97
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "name", 'treasureObject');
|
|
98
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "opened", false);
|
|
99
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "modelGroupPromise", Promise.resolve({
|
|
100
|
-
modelGroup: new THREE.Group(),
|
|
101
|
-
originGroup: new THREE.Group()
|
|
102
|
-
}));
|
|
103
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onFiveWantsTapGesture", function (raycaster) {
|
|
104
|
-
var _this$params$clickCal, _this$params;
|
|
105
|
-
|
|
106
|
-
var intersects = raycaster.intersectObject((0, _assertThisInitialized2["default"])(_this), true);
|
|
107
|
-
var isClickTreasure = !!intersects && intersects.length > 0;
|
|
108
|
-
if (!isClickTreasure) return;
|
|
109
|
-
(_this$params$clickCal = (_this$params = _this.params).clickCallback) === null || _this$params$clickCal === void 0 ? void 0 : _this$params$clickCal.call(_this$params, _this.treasureID);
|
|
110
|
-
|
|
111
|
-
_this.rotateToCamera();
|
|
112
|
-
|
|
113
|
-
_this.open();
|
|
114
|
-
|
|
115
|
-
return false;
|
|
116
|
-
});
|
|
117
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onFivePanoArrived", function () {
|
|
118
|
-
if (_this.position.distanceTo(_this.five.camera.position) < 3) _this.rotateToCamera();
|
|
119
|
-
});
|
|
120
|
-
_this.params = params;
|
|
121
|
-
_this.five = params.five;
|
|
122
|
-
_this.treasureID = params.id;
|
|
123
|
-
|
|
124
|
-
_this.position.copy(params.position);
|
|
125
|
-
|
|
126
|
-
var scale = 0.008 * params.config.scale;
|
|
127
|
-
|
|
128
|
-
_this.scale.fromArray([scale, scale, scale]);
|
|
129
|
-
|
|
130
|
-
return _this;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
(0, _createClass2["default"])(TreasureObject, [{
|
|
134
|
-
key: "load",
|
|
135
|
-
value: function () {
|
|
136
|
-
var _load = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
137
|
-
var _this2 = this;
|
|
138
|
-
|
|
139
|
-
var _yield$this$modelGrou, modelGroup, originGroup;
|
|
140
|
-
|
|
141
|
-
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
142
|
-
while (1) {
|
|
143
|
-
switch (_context.prev = _context.next) {
|
|
144
|
-
case 0:
|
|
145
|
-
this.modelGroupPromise = this.getModelPromise();
|
|
146
|
-
_context.next = 3;
|
|
147
|
-
return this.modelGroupPromise;
|
|
148
|
-
|
|
149
|
-
case 3:
|
|
150
|
-
_yield$this$modelGrou = _context.sent;
|
|
151
|
-
modelGroup = _yield$this$modelGrou.modelGroup;
|
|
152
|
-
originGroup = _yield$this$modelGrou.originGroup;
|
|
153
|
-
this.add(modelGroup); // ========== openAnime ==========
|
|
154
|
-
|
|
155
|
-
this.openAnime = new _TreasureOpenAnime.TreasurePluginOpenAnime({
|
|
156
|
-
five: this.five,
|
|
157
|
-
treasureGroup: modelGroup,
|
|
158
|
-
onComplete: function onComplete() {
|
|
159
|
-
var _this2$params$onOpenA, _this2$params;
|
|
160
|
-
|
|
161
|
-
return (_this2$params$onOpenA = (_this2$params = _this2.params).onOpenAnimationEnded) === null || _this2$params$onOpenA === void 0 ? void 0 : _this2$params$onOpenA.call(_this2$params, _this2.treasureID);
|
|
162
|
-
},
|
|
163
|
-
animationClip: originGroup.animations[0]
|
|
164
|
-
}); // ========== faceAnime ==========
|
|
165
|
-
|
|
166
|
-
this.faceAnime = new _TreasureFaceAnime.TreasureFaceAnime({
|
|
167
|
-
five: this.five,
|
|
168
|
-
treasureGroup: modelGroup,
|
|
169
|
-
loadTexture: this.params.loadTexture,
|
|
170
|
-
textureUrls: this.params.config.faceAnimeTextureUrls
|
|
171
|
-
});
|
|
172
|
-
this.faceAnime.play(); // ========== addEventListener ==========
|
|
173
|
-
|
|
174
|
-
this.five.on('panoArrived', this.onFivePanoArrived);
|
|
175
|
-
this.five.on('wantsTapGesture', this.onFiveWantsTapGesture);
|
|
176
|
-
this.five.needsRender = true;
|
|
177
|
-
return _context.abrupt("return", this);
|
|
178
|
-
|
|
179
|
-
case 14:
|
|
180
|
-
case "end":
|
|
181
|
-
return _context.stop();
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}, _callee, this);
|
|
185
|
-
}));
|
|
186
|
-
|
|
187
|
-
function load() {
|
|
188
|
-
return _load.apply(this, arguments);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
return load;
|
|
192
|
-
}()
|
|
193
|
-
}, {
|
|
194
|
-
key: "show",
|
|
195
|
-
value: function () {
|
|
196
|
-
var _show = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(params) {
|
|
197
|
-
var _params$duration,
|
|
198
|
-
_this3 = this;
|
|
199
|
-
|
|
200
|
-
var _yield$this$modelGrou2, modelGroup;
|
|
201
|
-
|
|
202
|
-
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
203
|
-
while (1) {
|
|
204
|
-
switch (_context2.prev = _context2.next) {
|
|
205
|
-
case 0:
|
|
206
|
-
_context2.next = 2;
|
|
207
|
-
return this.modelGroupPromise;
|
|
208
|
-
|
|
209
|
-
case 2:
|
|
210
|
-
_yield$this$modelGrou2 = _context2.sent;
|
|
211
|
-
modelGroup = _yield$this$modelGrou2.modelGroup;
|
|
212
|
-
(0, _BetterTween.tweenProgress)().duration((_params$duration = params === null || params === void 0 ? void 0 : params.duration) !== null && _params$duration !== void 0 ? _params$duration : 300).easing(TWEEN.Easing.Quadratic.InOut).onUpdate(function (_ref) {
|
|
213
|
-
var progress = _ref.progress;
|
|
214
|
-
modelGroup.children.forEach(function (child) {
|
|
215
|
-
var obj = child;
|
|
216
|
-
obj.material && (obj.material.opacity = progress);
|
|
217
|
-
_this3.five.needsRender = true;
|
|
218
|
-
});
|
|
219
|
-
}).play();
|
|
220
|
-
return _context2.abrupt("return", true);
|
|
221
|
-
|
|
222
|
-
case 6:
|
|
223
|
-
case "end":
|
|
224
|
-
return _context2.stop();
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}, _callee2, this);
|
|
228
|
-
}));
|
|
229
|
-
|
|
230
|
-
function show(_x) {
|
|
231
|
-
return _show.apply(this, arguments);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
return show;
|
|
235
|
-
}()
|
|
236
|
-
}, {
|
|
237
|
-
key: "hide",
|
|
238
|
-
value: function () {
|
|
239
|
-
var _hide = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(params) {
|
|
240
|
-
var _params$duration2,
|
|
241
|
-
_this4 = this;
|
|
242
|
-
|
|
243
|
-
var _yield$this$modelGrou3, modelGroup;
|
|
244
|
-
|
|
245
|
-
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
246
|
-
while (1) {
|
|
247
|
-
switch (_context3.prev = _context3.next) {
|
|
248
|
-
case 0:
|
|
249
|
-
_context3.next = 2;
|
|
250
|
-
return this.modelGroupPromise;
|
|
251
|
-
|
|
252
|
-
case 2:
|
|
253
|
-
_yield$this$modelGrou3 = _context3.sent;
|
|
254
|
-
modelGroup = _yield$this$modelGrou3.modelGroup;
|
|
255
|
-
(0, _BetterTween.tweenProgress)().duration((_params$duration2 = params === null || params === void 0 ? void 0 : params.duration) !== null && _params$duration2 !== void 0 ? _params$duration2 : 300).easing(TWEEN.Easing.Quadratic.InOut).onUpdate(function (_ref2) {
|
|
256
|
-
var progress = _ref2.progress;
|
|
257
|
-
modelGroup.children.forEach(function (child) {
|
|
258
|
-
var obj = child;
|
|
259
|
-
obj.material && (obj.material.opacity = 1 - progress);
|
|
260
|
-
_this4.five.needsRender = true;
|
|
261
|
-
});
|
|
262
|
-
}).play();
|
|
263
|
-
return _context3.abrupt("return", true);
|
|
264
|
-
|
|
265
|
-
case 6:
|
|
266
|
-
case "end":
|
|
267
|
-
return _context3.stop();
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}, _callee3, this);
|
|
271
|
-
}));
|
|
272
|
-
|
|
273
|
-
function hide(_x2) {
|
|
274
|
-
return _hide.apply(this, arguments);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
return hide;
|
|
278
|
-
}()
|
|
279
|
-
/** 销毁当前宝箱实例
|
|
280
|
-
* @description 注意 dispose 并不会销毁所使用的贴图,因为贴图会有共用关系,需要在最外层销毁
|
|
281
|
-
*/
|
|
282
|
-
|
|
283
|
-
}, {
|
|
284
|
-
key: "dispose",
|
|
285
|
-
value: function dispose() {
|
|
286
|
-
var _this$faceAnime, _this$openAnime;
|
|
287
|
-
|
|
288
|
-
(_this$faceAnime = this.faceAnime) === null || _this$faceAnime === void 0 ? void 0 : _this$faceAnime.dispose();
|
|
289
|
-
(_this$openAnime = this.openAnime) === null || _this$openAnime === void 0 ? void 0 : _this$openAnime.dispose();
|
|
290
|
-
this.five.off('panoArrived', this.onFivePanoArrived);
|
|
291
|
-
this.five.off('wantsTapGesture', this.onFiveWantsTapGesture);
|
|
292
|
-
}
|
|
293
|
-
/** 旋转宝箱朝向用户 */
|
|
294
|
-
|
|
295
|
-
}, {
|
|
296
|
-
key: "rotateToCamera",
|
|
297
|
-
value: function rotateToCamera() {
|
|
298
|
-
var _this5 = this;
|
|
299
|
-
|
|
300
|
-
if (this.opened) return; // 宝箱朝向
|
|
301
|
-
|
|
302
|
-
var treasureDirection = this.getWorldDirection(new THREE.Vector3()).setY(0); // 宝箱到相机位置的朝向
|
|
303
|
-
|
|
304
|
-
var toCameraDirection = this.five.camera.position.clone().sub(this.position).setY(0); // 旋转方向「从左到右还是从右到左」
|
|
305
|
-
|
|
306
|
-
var rotateDirection = treasureDirection.clone().cross(toCameraDirection).y > 0 ? 1 : -1; // 宝箱从当前朝向转到「朝向相机」相差的角度,需要考虑方向
|
|
307
|
-
|
|
308
|
-
var deltaRadY = treasureDirection.clone().angleTo(toCameraDirection); // 1s 旋转的弧度
|
|
309
|
-
|
|
310
|
-
var speed = 8;
|
|
311
|
-
var duration = Math.ceil(deltaRadY / speed * 1000);
|
|
312
|
-
var rotationStartY = this.rotation.y;
|
|
313
|
-
(0, _BetterTween.tweenProgress)(duration).onUpdate(function (_ref3) {
|
|
314
|
-
var progress = _ref3.progress;
|
|
315
|
-
_this5.rotation.y = rotationStartY + progress * deltaRadY * rotateDirection;
|
|
316
|
-
}).play();
|
|
317
|
-
}
|
|
318
|
-
/** 打开宝箱 */
|
|
319
|
-
|
|
320
|
-
}, {
|
|
321
|
-
key: "open",
|
|
322
|
-
value: function open() {
|
|
323
|
-
var _this$faceAnime2, _this$faceAnime3, _this$openAnime2;
|
|
324
|
-
|
|
325
|
-
if (!this.openAnime) return false;
|
|
326
|
-
if (this.opened) return false;
|
|
327
|
-
this.opened = true;
|
|
328
|
-
(_this$faceAnime2 = this.faceAnime) === null || _this$faceAnime2 === void 0 ? void 0 : _this$faceAnime2.pause();
|
|
329
|
-
(_this$faceAnime3 = this.faceAnime) === null || _this$faceAnime3 === void 0 ? void 0 : _this$faceAnime3.setToInitialState();
|
|
330
|
-
(_this$openAnime2 = this.openAnime) === null || _this$openAnime2 === void 0 ? void 0 : _this$openAnime2.play();
|
|
331
|
-
return true;
|
|
332
|
-
}
|
|
333
|
-
}, {
|
|
334
|
-
key: "getModelPromise",
|
|
335
|
-
value: function () {
|
|
336
|
-
var _getModelPromise = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
337
|
-
var originGroup, modelGroup, _yield$to, _yield$to2, boxTextureError, boxTexture;
|
|
338
|
-
|
|
339
|
-
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
340
|
-
while (1) {
|
|
341
|
-
switch (_context4.prev = _context4.next) {
|
|
342
|
-
case 0:
|
|
343
|
-
_context4.next = 2;
|
|
344
|
-
return this.params.loadModelGroup(this.params.config.objectUrl);
|
|
345
|
-
|
|
346
|
-
case 2:
|
|
347
|
-
originGroup = _context4.sent;
|
|
348
|
-
modelGroup = originGroup.clone();
|
|
349
|
-
modelGroup.traverse(function (obj) {
|
|
350
|
-
if (!(obj instanceof THREE.Mesh)) return;
|
|
351
|
-
obj.material = copyMaterial(obj.material);
|
|
352
|
-
if (obj.material.map) obj.material.map.encoding = THREE.sRGBEncoding;
|
|
353
|
-
obj.renderOrder = 2;
|
|
354
|
-
});
|
|
355
|
-
|
|
356
|
-
if (!this.params.config.boxTextureUrl) {
|
|
357
|
-
_context4.next = 17;
|
|
358
|
-
break;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
_context4.next = 8;
|
|
362
|
-
return (0, _to["default"])(this.params.loadTexture(this.params.config.boxTextureUrl));
|
|
363
|
-
|
|
364
|
-
case 8:
|
|
365
|
-
_yield$to = _context4.sent;
|
|
366
|
-
_yield$to2 = (0, _slicedToArray2["default"])(_yield$to, 2);
|
|
367
|
-
boxTextureError = _yield$to2[0];
|
|
368
|
-
boxTexture = _yield$to2[1];
|
|
369
|
-
|
|
370
|
-
if (!(boxTextureError || !boxTexture)) {
|
|
371
|
-
_context4.next = 14;
|
|
372
|
-
break;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
throw new Error('加载盒子贴图失败');
|
|
376
|
-
|
|
377
|
-
case 14:
|
|
378
|
-
boxTexture.encoding = THREE.sRGBEncoding;
|
|
379
|
-
modelGroup.getObjectByName('box').material.map = boxTexture;
|
|
380
|
-
modelGroup.getObjectByName('box2').material.map = boxTexture;
|
|
381
|
-
|
|
382
|
-
case 17:
|
|
383
|
-
return _context4.abrupt("return", {
|
|
384
|
-
modelGroup: modelGroup,
|
|
385
|
-
originGroup: originGroup
|
|
386
|
-
});
|
|
387
|
-
|
|
388
|
-
case 18:
|
|
389
|
-
case "end":
|
|
390
|
-
return _context4.stop();
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
}, _callee4, this);
|
|
394
|
-
}));
|
|
395
|
-
|
|
396
|
-
function getModelPromise() {
|
|
397
|
-
return _getModelPromise.apply(this, arguments);
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
return getModelPromise;
|
|
401
|
-
}()
|
|
402
|
-
}]);
|
|
403
|
-
return TreasureObject;
|
|
404
|
-
}(THREE.Object3D);
|
|
405
|
-
|
|
406
|
-
exports.TreasureObject = TreasureObject;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import { Five } from '@realsee/five';
|
|
3
|
-
export interface TreasureOpenAnimeParams {
|
|
4
|
-
five: Five;
|
|
5
|
-
onComplete?: () => unknown;
|
|
6
|
-
treasureGroup: THREE.Group;
|
|
7
|
-
animationClip: THREE.AnimationClip;
|
|
8
|
-
}
|
|
9
|
-
/** 打开宝箱的动画实例
|
|
10
|
-
* @description
|
|
11
|
-
* 因为宝箱没有关闭的场景,对于一个宝箱来讲,打开后,要么销毁,要么保留当时的状态。所以不做关闭方面的兼容处理
|
|
12
|
-
*/
|
|
13
|
-
export declare class TreasurePluginOpenAnime {
|
|
14
|
-
private five;
|
|
15
|
-
private hasPlayed;
|
|
16
|
-
private clock;
|
|
17
|
-
private treasureGroup;
|
|
18
|
-
private params;
|
|
19
|
-
private animationDispose?;
|
|
20
|
-
private action;
|
|
21
|
-
constructor(params: TreasureOpenAnimeParams);
|
|
22
|
-
dispose(): void;
|
|
23
|
-
play(): boolean;
|
|
24
|
-
private onPlayFinished;
|
|
25
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.array.iterator.js");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.object.to-string.js");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.string.iterator.js");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.weak-map.js");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.object.define-property.js");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
-
|
|
17
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
-
|
|
19
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(exports, "__esModule", {
|
|
22
|
-
value: true
|
|
23
|
-
});
|
|
24
|
-
exports.TreasurePluginOpenAnime = void 0;
|
|
25
|
-
|
|
26
|
-
require("core-js/modules/es.array.filter.js");
|
|
27
|
-
|
|
28
|
-
require("core-js/modules/es.array.index-of.js");
|
|
29
|
-
|
|
30
|
-
require("core-js/modules/es.function.name.js");
|
|
31
|
-
|
|
32
|
-
require("core-js/modules/es.array.for-each.js");
|
|
33
|
-
|
|
34
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
35
|
-
|
|
36
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
37
|
-
|
|
38
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
39
|
-
|
|
40
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
41
|
-
|
|
42
|
-
var THREE = _interopRequireWildcard(require("three"));
|
|
43
|
-
|
|
44
|
-
var _BetterTween = require("../../shared-utils/animationFrame/BetterTween");
|
|
45
|
-
|
|
46
|
-
var _animationFrame = require("../../shared-utils/animationFrame");
|
|
47
|
-
|
|
48
|
-
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); }
|
|
49
|
-
|
|
50
|
-
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; }
|
|
51
|
-
|
|
52
|
-
/** 打开宝箱的动画实例
|
|
53
|
-
* @description
|
|
54
|
-
* 因为宝箱没有关闭的场景,对于一个宝箱来讲,打开后,要么销毁,要么保留当时的状态。所以不做关闭方面的兼容处理
|
|
55
|
-
*/
|
|
56
|
-
var TreasurePluginOpenAnime = /*#__PURE__*/function () {
|
|
57
|
-
function TreasurePluginOpenAnime(params) {
|
|
58
|
-
var _this = this;
|
|
59
|
-
|
|
60
|
-
(0, _classCallCheck2["default"])(this, TreasurePluginOpenAnime);
|
|
61
|
-
(0, _defineProperty2["default"])(this, "hasPlayed", false);
|
|
62
|
-
(0, _defineProperty2["default"])(this, "clock", new THREE.Clock());
|
|
63
|
-
(0, _defineProperty2["default"])(this, "onPlayFinished", function () {
|
|
64
|
-
var _this$animationDispos;
|
|
65
|
-
|
|
66
|
-
// 销毁打开盒子动画的定时任务
|
|
67
|
-
(_this$animationDispos = _this.animationDispose) === null || _this$animationDispos === void 0 ? void 0 : _this$animationDispos.call(_this); // 选出模型中的飘带
|
|
68
|
-
|
|
69
|
-
var hideObjects = _this.treasureGroup.children.filter(function (obj) {
|
|
70
|
-
return obj.name.indexOf('Plane') === 0 || obj.name.indexOf('coin') === 0;
|
|
71
|
-
}); // 使飘带消失
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
(0, _BetterTween.tweenProgress)(300).onUpdate(function (_ref) {
|
|
75
|
-
var progress = _ref.progress;
|
|
76
|
-
var opacity = 1 - progress;
|
|
77
|
-
hideObjects.forEach(function (obj) {
|
|
78
|
-
obj.material.opacity = opacity;
|
|
79
|
-
});
|
|
80
|
-
_this.five.needsRender = true;
|
|
81
|
-
}).play().onComplete(function () {
|
|
82
|
-
var _this$params$onComple, _this$params;
|
|
83
|
-
|
|
84
|
-
return (_this$params$onComple = (_this$params = _this.params).onComplete) === null || _this$params$onComple === void 0 ? void 0 : _this$params$onComple.call(_this$params);
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
this.five = params.five;
|
|
88
|
-
this.params = params;
|
|
89
|
-
this.treasureGroup = params.treasureGroup;
|
|
90
|
-
var mixer = new THREE.AnimationMixer(this.treasureGroup);
|
|
91
|
-
this.action = mixer.clipAction(params.animationClip);
|
|
92
|
-
this.action.setLoop(THREE.LoopOnce, 1);
|
|
93
|
-
this.action.clampWhenFinished = true;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
(0, _createClass2["default"])(TreasurePluginOpenAnime, [{
|
|
97
|
-
key: "dispose",
|
|
98
|
-
value: function dispose() {
|
|
99
|
-
var _this$animationDispos2;
|
|
100
|
-
|
|
101
|
-
(_this$animationDispos2 = this.animationDispose) === null || _this$animationDispos2 === void 0 ? void 0 : _this$animationDispos2.call(this);
|
|
102
|
-
this.clock.stop();
|
|
103
|
-
}
|
|
104
|
-
}, {
|
|
105
|
-
key: "play",
|
|
106
|
-
value: function play() {
|
|
107
|
-
var _this2 = this;
|
|
108
|
-
|
|
109
|
-
if (this.hasPlayed) return false;
|
|
110
|
-
this.hasPlayed = true;
|
|
111
|
-
this.action.play();
|
|
112
|
-
var mixer = this.action.getMixer();
|
|
113
|
-
this.animationDispose = (0, _animationFrame.requestAnimationFrameInterval)(function () {
|
|
114
|
-
var deltaTime = _this2.clock.getDelta();
|
|
115
|
-
|
|
116
|
-
mixer.update(deltaTime);
|
|
117
|
-
_this2.five.needsRender = true;
|
|
118
|
-
}); // 小人出现的动画完成之后需要隐藏飘带
|
|
119
|
-
|
|
120
|
-
mixer.addEventListener('finished', this.onPlayFinished);
|
|
121
|
-
return true;
|
|
122
|
-
}
|
|
123
|
-
}]);
|
|
124
|
-
return TreasurePluginOpenAnime;
|
|
125
|
-
}();
|
|
126
|
-
|
|
127
|
-
exports.TreasurePluginOpenAnime = TreasurePluginOpenAnime;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { TreasureObjectConfig } from './TreasureObject';
|
|
2
|
-
/** 默认的宝箱对象类型:FBX */
|
|
3
|
-
export declare const DEFAULT_TREASURE_OBJECT_TYPE = "FBX";
|
|
4
|
-
/** 默认的宝箱对象地址 */
|
|
5
|
-
export declare const DEFAULT_TREASURE_OBJECT_URL: string;
|
|
6
|
-
/** 默认的宝箱对象 */
|
|
7
|
-
export declare const DEFAULT_TREASURE_OBJECT: {
|
|
8
|
-
url: string;
|
|
9
|
-
type: string;
|
|
10
|
-
};
|
|
11
|
-
/** 默认宝箱脸部动画贴图资源 */
|
|
12
|
-
export declare const DEFAULT_TREASURE_FACE_ANIMATION_URLS: string[];
|
|
13
|
-
/** 黄色宝箱盒子贴图地址 */
|
|
14
|
-
export declare const TREASURE_BOX_TEXTURE_YELLOW_URL: string;
|
|
15
|
-
/** 红色宝箱盒子贴图地址 */
|
|
16
|
-
export declare const TREASURE_BOX_TEXTURE_RED_URL: string;
|
|
17
|
-
export declare enum TREASURE_TYPE {
|
|
18
|
-
YELLOW = 0,
|
|
19
|
-
RED = 1
|
|
20
|
-
}
|
|
21
|
-
export declare const DEFAULT_TREASURE_CONFIG: TreasureObjectConfig;
|
|
22
|
-
/** 内置宝箱类型于宝箱资源的映射关系 */
|
|
23
|
-
export declare const DEFAULT_TREASURE_CONFIGS: ({
|
|
24
|
-
type: TREASURE_TYPE;
|
|
25
|
-
config: TreasureObjectConfig;
|
|
26
|
-
} | {
|
|
27
|
-
type: TREASURE_TYPE;
|
|
28
|
-
config: {
|
|
29
|
-
objectUrl: string;
|
|
30
|
-
boxTextureUrl: string;
|
|
31
|
-
faceAnimeTextureUrls: string[];
|
|
32
|
-
};
|
|
33
|
-
})[];
|
|
@@ -1,67 +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.TREASURE_TYPE = exports.TREASURE_BOX_TEXTURE_YELLOW_URL = exports.TREASURE_BOX_TEXTURE_RED_URL = exports.DEFAULT_TREASURE_OBJECT_URL = exports.DEFAULT_TREASURE_OBJECT_TYPE = exports.DEFAULT_TREASURE_OBJECT = exports.DEFAULT_TREASURE_FACE_ANIMATION_URLS = exports.DEFAULT_TREASURE_CONFIGS = exports.DEFAULT_TREASURE_CONFIG = void 0;
|
|
9
|
-
|
|
10
|
-
/** CDN 资源 Base URL */
|
|
11
|
-
var TREASURE_BASE_URL = '//vrlab-public.ljcdn.com/release/static/image/release/baoxiang_xiaobei/1/';
|
|
12
|
-
/** 默认的宝箱对象类型:FBX */
|
|
13
|
-
|
|
14
|
-
var DEFAULT_TREASURE_OBJECT_TYPE = 'FBX';
|
|
15
|
-
/** 默认的宝箱对象地址 */
|
|
16
|
-
|
|
17
|
-
exports.DEFAULT_TREASURE_OBJECT_TYPE = DEFAULT_TREASURE_OBJECT_TYPE;
|
|
18
|
-
var DEFAULT_TREASURE_OBJECT_URL = TREASURE_BASE_URL + 'baoxiang_xiaobei.fbx';
|
|
19
|
-
/** 默认的宝箱对象 */
|
|
20
|
-
|
|
21
|
-
exports.DEFAULT_TREASURE_OBJECT_URL = DEFAULT_TREASURE_OBJECT_URL;
|
|
22
|
-
var DEFAULT_TREASURE_OBJECT = {
|
|
23
|
-
url: DEFAULT_TREASURE_OBJECT_URL,
|
|
24
|
-
type: DEFAULT_TREASURE_OBJECT_TYPE
|
|
25
|
-
};
|
|
26
|
-
/** 默认宝箱脸部动画贴图资源 */
|
|
27
|
-
|
|
28
|
-
exports.DEFAULT_TREASURE_OBJECT = DEFAULT_TREASURE_OBJECT;
|
|
29
|
-
var DEFAULT_TREASURE_FACE_ANIMATION_URLS = [TREASURE_BASE_URL + 'faces/1.png', TREASURE_BASE_URL + 'faces/2.png', TREASURE_BASE_URL + 'faces/3.png', TREASURE_BASE_URL + 'faces/4.png', TREASURE_BASE_URL + 'faces/5.png'];
|
|
30
|
-
/** 黄色宝箱盒子贴图地址 */
|
|
31
|
-
|
|
32
|
-
exports.DEFAULT_TREASURE_FACE_ANIMATION_URLS = DEFAULT_TREASURE_FACE_ANIMATION_URLS;
|
|
33
|
-
var TREASURE_BOX_TEXTURE_YELLOW_URL = TREASURE_BASE_URL + 'box_Base_Color.png';
|
|
34
|
-
/** 红色宝箱盒子贴图地址 */
|
|
35
|
-
|
|
36
|
-
exports.TREASURE_BOX_TEXTURE_YELLOW_URL = TREASURE_BOX_TEXTURE_YELLOW_URL;
|
|
37
|
-
var TREASURE_BOX_TEXTURE_RED_URL = TREASURE_BASE_URL + 'box_Base_Color_red.png';
|
|
38
|
-
exports.TREASURE_BOX_TEXTURE_RED_URL = TREASURE_BOX_TEXTURE_RED_URL;
|
|
39
|
-
var TREASURE_TYPE;
|
|
40
|
-
exports.TREASURE_TYPE = TREASURE_TYPE;
|
|
41
|
-
|
|
42
|
-
(function (TREASURE_TYPE) {
|
|
43
|
-
TREASURE_TYPE[TREASURE_TYPE["YELLOW"] = 0] = "YELLOW";
|
|
44
|
-
TREASURE_TYPE[TREASURE_TYPE["RED"] = 1] = "RED";
|
|
45
|
-
})(TREASURE_TYPE || (exports.TREASURE_TYPE = TREASURE_TYPE = {}));
|
|
46
|
-
|
|
47
|
-
var DEFAULT_TREASURE_CONFIG = {
|
|
48
|
-
scale: 1,
|
|
49
|
-
boxTextureUrl: undefined,
|
|
50
|
-
objectUrl: DEFAULT_TREASURE_OBJECT_URL,
|
|
51
|
-
faceAnimeTextureUrls: DEFAULT_TREASURE_FACE_ANIMATION_URLS
|
|
52
|
-
};
|
|
53
|
-
/** 内置宝箱类型于宝箱资源的映射关系 */
|
|
54
|
-
|
|
55
|
-
exports.DEFAULT_TREASURE_CONFIG = DEFAULT_TREASURE_CONFIG;
|
|
56
|
-
var DEFAULT_TREASURE_CONFIGS = [{
|
|
57
|
-
type: TREASURE_TYPE.YELLOW,
|
|
58
|
-
config: DEFAULT_TREASURE_CONFIG
|
|
59
|
-
}, {
|
|
60
|
-
type: TREASURE_TYPE.RED,
|
|
61
|
-
config: {
|
|
62
|
-
objectUrl: DEFAULT_TREASURE_OBJECT_URL,
|
|
63
|
-
boxTextureUrl: TREASURE_BOX_TEXTURE_RED_URL,
|
|
64
|
-
faceAnimeTextureUrls: DEFAULT_TREASURE_FACE_ANIMATION_URLS
|
|
65
|
-
}
|
|
66
|
-
}];
|
|
67
|
-
exports.DEFAULT_TREASURE_CONFIGS = DEFAULT_TREASURE_CONFIGS;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FivePlugin } from '@realsee/five';
|
|
2
|
-
import { TreasurePluginController, TreasurePluginParameterType } from './Controller';
|
|
3
|
-
export declare const TreasurePlugin: FivePlugin<TreasurePluginParameterType, TreasurePluginReturnType>;
|
|
4
|
-
export default TreasurePlugin;
|
|
5
|
-
export { TREASURE_TYPE } from './constants';
|
|
6
|
-
export declare type TreasurePluginReturnType = TreasurePluginController;
|
|
7
|
-
export type { TreasurePluginItemData, TreasurePluginData, TreasurePluginItemConfigData } from './Controller';
|
|
8
|
-
export type { TreasurePluginController, TreasurePluginParameterType, TreasurePluginEvents } from './Controller';
|
|
9
|
-
export type { TreasureObject, TreasureObjectConfig, TreasureObjectParams } from './TreasureObject';
|
|
10
|
-
export type { TreasureFaceAnime, TreasureFaceAnimeParams } from './TreasureFaceAnime';
|
|
11
|
-
export type { TreasurePluginOpenAnime, TreasureOpenAnimeParams } from './TreasureOpenAnime';
|