@realsee/dnalogel 0.1.7-alpha.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/{plugins → libs}/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -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 +0 -0
- package/libs/ModelChassisCompassPlugin/index.js +75 -0
- package/{plugins → libs}/ModelEntryDoorGuidePlugin/index.d.ts +2 -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/{plugins → libs}/ModelRoomLabelPlugin/index.d.ts +4 -4
- 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/{plugins → libs}/floorplan/Assets/floorplanExtraObject.d.ts +0 -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 +11 -12
- 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 +0 -0
- 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 +13 -12
- 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 -2
- package/libs/floorplan/typings/floorplanData.js +6 -0
- package/{plugins → libs}/floorplan/typings/floorplanServerData.d.ts +1 -1
- package/libs/floorplan/typings/floorplanServerData.js +101 -0
- package/{plugins/floorplan/ModelFloorplanPlugin → libs/floorplan}/typings/utility.d.ts +0 -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/{shared-utils → libs/shared-utils}/changeModelCanvasOpacity.d.ts +0 -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/{shared-utils → libs/shared-utils}/math/evenNumber.d.ts +0 -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/{shared-utils → libs/shared-utils}/removeArrayItem.d.ts +1 -1
- 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/{shared-utils → libs/shared-utils}/three/loadTexture.d.ts +0 -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 -110
- package/components/GLTFView/index.js +0 -187
- 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 -158
- 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/81zxMaeVKLQU93OZMG.d.ts +0 -49
- package/data/81zxMaeVKLQU93OZMG.js +0 -633
- 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 -4787
- 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/_vLykj3NWrllMrG06.d.ts +0 -95
- package/data/_vLykj3NWrllMrG06.js +0 -1
- 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 -2993
- 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 -233
- 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 -78
- package/libs/gltf-viewer/index.js +0 -760
- 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 -123
- package/plugins/CSS3DRenderPlugin/index.js +0 -303
- package/plugins/CSS3DRenderPlugin/utils/createResizeObserver.js +0 -34
- package/plugins/CameraMovementPlugin/index.js +0 -362
- package/plugins/CameraMovementPlugin/typing.js +0 -37
- package/plugins/ModelChassisCompassPlugin/index.js +0 -158
- package/plugins/ModelEntryDoorGuidePlugin/index.js +0 -252
- package/plugins/ModelExtrudeWallsPlugin/index.d.ts +0 -16
- package/plugins/ModelExtrudeWallsPlugin/index.js +0 -252
- package/plugins/ModelRoomLabelPlugin/Controller.js +0 -154
- 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.js +0 -23
- 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 -399
- 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 -128
- 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 -82
- 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 -350
- package/plugins/PanoMaskSelectorPlugin/vertexShader.d.ts +0 -1
- package/plugins/PanoMaskSelectorPlugin/vertexShader.js +0 -10
- package/plugins/PanoMeasurePlugin/Controller/BaseController.d.ts +0 -36
- package/plugins/PanoMeasurePlugin/Controller/BaseController.js +0 -105
- package/plugins/PanoMeasurePlugin/Controller/EditController.d.ts +0 -52
- package/plugins/PanoMeasurePlugin/Controller/EditController.js +0 -343
- package/plugins/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +0 -12
- package/plugins/PanoMeasurePlugin/Controller/ShortcutKeyController.js +0 -69
- package/plugins/PanoMeasurePlugin/Controller/WatchController.d.ts +0 -25
- package/plugins/PanoMeasurePlugin/Controller/WatchController.js +0 -373
- package/plugins/PanoMeasurePlugin/Controller/index.d.ts +0 -61
- package/plugins/PanoMeasurePlugin/Controller/index.js +0 -230
- package/plugins/PanoMeasurePlugin/Model/index.d.ts +0 -38
- package/plugins/PanoMeasurePlugin/Model/index.js +0 -237
- package/plugins/PanoMeasurePlugin/Model/line.d.ts +0 -30
- package/plugins/PanoMeasurePlugin/Model/line.js +0 -123
- package/plugins/PanoMeasurePlugin/Model/point.d.ts +0 -16
- package/plugins/PanoMeasurePlugin/Model/point.js +0 -72
- package/plugins/PanoMeasurePlugin/Model/polyline.d.ts +0 -16
- package/plugins/PanoMeasurePlugin/Model/polyline.js +0 -111
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +0 -2
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +0 -11
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +0 -2
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +0 -11
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +0 -2
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +0 -11
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +0 -22
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/index.js +0 -184
- package/plugins/PanoMeasurePlugin/Modules/FiveHelper.d.ts +0 -11
- package/plugins/PanoMeasurePlugin/Modules/FiveHelper.js +0 -68
- package/plugins/PanoMeasurePlugin/Modules/GuideController.d.ts +0 -18
- package/plugins/PanoMeasurePlugin/Modules/GuideController.js +0 -107
- package/plugins/PanoMeasurePlugin/Modules/Magnifier.d.ts +0 -24
- package/plugins/PanoMeasurePlugin/Modules/Magnifier.js +0 -139
- package/plugins/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +0 -6
- package/plugins/PanoMeasurePlugin/Modules/UIController/HTML.js +0 -26
- package/plugins/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +0 -18
- package/plugins/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +0 -169
- package/plugins/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +0 -12
- package/plugins/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +0 -59
- package/plugins/PanoMeasurePlugin/Modules/UIController/index.d.ts +0 -16
- package/plugins/PanoMeasurePlugin/Modules/UIController/index.js +0 -125
- package/plugins/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -17
- package/plugins/PanoMeasurePlugin/Modules/UIController/style.js +0 -103
- package/plugins/PanoMeasurePlugin/index.d.ts +0 -7
- package/plugins/PanoMeasurePlugin/index.js +0 -20
- package/plugins/PanoMeasurePlugin/typings/data.d.ts +0 -28
- package/plugins/PanoMeasurePlugin/typings/data.js +0 -7
- package/plugins/PanoMeasurePlugin/typings/event.type.d.ts +0 -28
- package/plugins/PanoMeasurePlugin/typings/event.type.js +0 -7
- package/plugins/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
- package/plugins/PanoMeasurePlugin/typings/utils.type.js +0 -7
- package/plugins/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
- package/plugins/PanoMeasurePlugin/utils/clearGroup.js +0 -16
- package/plugins/PanoMeasurePlugin/utils/constants.d.ts +0 -4
- package/plugins/PanoMeasurePlugin/utils/constants.js +0 -47
- package/plugins/PanoMeasurePlugin/utils/distanceDom.d.ts +0 -28
- package/plugins/PanoMeasurePlugin/utils/distanceDom.js +0 -147
- package/plugins/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +0 -2
- package/plugins/PanoMeasurePlugin/utils/findAssociatedLines.js +0 -39
- package/plugins/PanoMeasurePlugin/utils/findClosestPoint.d.ts +0 -10
- package/plugins/PanoMeasurePlugin/utils/findClosestPoint.js +0 -49
- package/plugins/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +0 -4
- package/plugins/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +0 -20
- package/plugins/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +0 -10
- package/plugins/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +0 -33
- package/plugins/PanoMeasurePlugin/utils/ironbox.d.ts +0 -1
- package/plugins/PanoMeasurePlugin/utils/ironbox.js +0 -14
- package/plugins/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +0 -2
- package/plugins/PanoMeasurePlugin/utils/isNDCPointInScreen.js +0 -16
- package/plugins/PanoMeasurePlugin/utils/line.d.ts +0 -17
- package/plugins/PanoMeasurePlugin/utils/line.js +0 -61
- package/plugins/PanoMeasurePlugin/utils/math.d.ts +0 -17
- package/plugins/PanoMeasurePlugin/utils/math.js +0 -57
- package/plugins/PanoMeasurePlugin/utils/mouseGroup.d.ts +0 -2
- package/plugins/PanoMeasurePlugin/utils/mouseGroup.js +0 -42
- package/plugins/PanoMeasurePlugin/utils/ndc2Screen.d.ts +0 -5
- package/plugins/PanoMeasurePlugin/utils/ndc2Screen.js +0 -16
- 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 -31
- package/plugins/PanoRulerPlugin/index.js +0 -642
- 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.js +0 -10
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +0 -637
- 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/RoomMaterial.d.ts +0 -11
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomMaterial.js +0 -174
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RuleLabels.d.ts +0 -8
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RuleLabels.js +0 -182
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +0 -15
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +0 -74
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +0 -23
- 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/typings/utility.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 -114
- 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 -272
- 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/index.d.ts +0 -4
- package/plugins/floorplan/index.js +0 -13
- package/plugins/floorplan/typings/floorplanData.js +0 -7
- package/plugins/floorplan/typings/floorplanServerData.js +0 -382
- package/plugins/floorplan/utils/formatData.js +0 -218
- package/plugins/floorplan/utils/formatPosition.js +0 -91
- package/shared-utils/Preloader.js +0 -57
- package/shared-utils/Subscribe.js +0 -232
- package/shared-utils/animationFrame/BetterTween.js +0 -107
- 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/changeModelCanvasOpacity.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 -129
- 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.js +0 -15
- package/shared-utils/math/planimetry.js +0 -354
- 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/removeArrayItem.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.js +0 -65
- 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/libs.d.ts +0 -1
- package/typedoc/libs.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,252 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.array.iterator.js");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.string.iterator.js");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.weak-map.js");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/es.object.define-property.js");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
14
|
-
|
|
15
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
16
|
-
|
|
17
|
-
Object.defineProperty(exports, "__esModule", {
|
|
18
|
-
value: true
|
|
19
|
-
});
|
|
20
|
-
exports.ModelExtrudeWallsPlugin = void 0;
|
|
21
|
-
|
|
22
|
-
require("core-js/modules/es.array.for-each.js");
|
|
23
|
-
|
|
24
|
-
require("core-js/modules/es.object.to-string.js");
|
|
25
|
-
|
|
26
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
27
|
-
|
|
28
|
-
require("core-js/modules/es.function.name.js");
|
|
29
|
-
|
|
30
|
-
var _five = require("@realsee/five");
|
|
31
|
-
|
|
32
|
-
var THREE = _interopRequireWildcard(require("three"));
|
|
33
|
-
|
|
34
|
-
var _nextFrame = require("../../shared-utils/nextFrame");
|
|
35
|
-
|
|
36
|
-
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); }
|
|
37
|
-
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
|
-
var lineTo = function lineTo(d, s) {
|
|
41
|
-
return d.forEach(function (p, i) {
|
|
42
|
-
return s[!i ? 'moveTo' : 'lineTo'](p[0], p[1]);
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
var generateSideWallUV = function generateSideWallUV() {
|
|
47
|
-
return [new THREE.Vector2(1, 1), new THREE.Vector2(0, 1), new THREE.Vector2(0, 0), new THREE.Vector2(1, 0)];
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
var bezierArcTransition = function bezierArcTransition(t) {
|
|
51
|
-
return -0.7 * (2.4 * t * t * t - 3.6 * t * t + 0.2 * t);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
var ModelExtrudeWallsPlugin = function ModelExtrudeWallsPlugin(five) {
|
|
55
|
-
var parameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
56
|
-
var state = {
|
|
57
|
-
data: parameters.data,
|
|
58
|
-
walls: {},
|
|
59
|
-
visible: true
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
var wrapper = function wrapper() {
|
|
63
|
-
if (!state.data) return;
|
|
64
|
-
var wallShape = new THREE.Shape();
|
|
65
|
-
var floorplanShape = new THREE.Shape();
|
|
66
|
-
lineTo(state.data.exterior, wallShape);
|
|
67
|
-
lineTo(state.data.exterior, floorplanShape);
|
|
68
|
-
lineTo(state.data.interior, floorplanShape);
|
|
69
|
-
var bb = new THREE.Box2();
|
|
70
|
-
bb.setFromPoints(wallShape.extractPoints(1).shape);
|
|
71
|
-
|
|
72
|
-
var generateTopUV = function generateTopUV(geometry, vertices, indexA, indexB, indexC) {
|
|
73
|
-
var ax = vertices[indexA * 3];
|
|
74
|
-
var ay = vertices[indexA * 3 + 1];
|
|
75
|
-
var bx = vertices[indexB * 3];
|
|
76
|
-
var by = vertices[indexB * 3 + 1];
|
|
77
|
-
var cx = vertices[indexC * 3];
|
|
78
|
-
var cy = vertices[indexC * 3 + 1];
|
|
79
|
-
var bbx = bb.max.x - bb.min.x;
|
|
80
|
-
var bby = bb.max.y - bb.min.y;
|
|
81
|
-
return [new THREE.Vector2((ax - bb.min.x) / bbx, 1.0 - (ay - bb.min.y) / bby), new THREE.Vector2((bx - bb.min.x) / bbx, 1.0 - (by - bb.min.y) / bby), new THREE.Vector2((cx - bb.min.x) / bbx, 1.0 - (cy - bb.min.y) / bby)];
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
var extrudeSettings = {
|
|
85
|
-
steps: 1,
|
|
86
|
-
depth: Math.abs(state.data.height),
|
|
87
|
-
bevelEnabled: false,
|
|
88
|
-
UVGenerator: {
|
|
89
|
-
generateTopUV: generateTopUV,
|
|
90
|
-
generateSideWallUV: generateSideWallUV
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
var geometry1 = new THREE.ExtrudeGeometry(wallShape, extrudeSettings);
|
|
94
|
-
var geometry2 = new THREE.ExtrudeGeometry(wallShape, extrudeSettings);
|
|
95
|
-
var geometry3 = new THREE.ExtrudeGeometry(floorplanShape, extrudeSettings);
|
|
96
|
-
geometry1.faces.forEach(function (face) {
|
|
97
|
-
var temp = face.a;
|
|
98
|
-
face.a = face.c;
|
|
99
|
-
face.c = temp;
|
|
100
|
-
});
|
|
101
|
-
geometry1.faceVertexUvs.forEach(function (faceVertexUvs) {
|
|
102
|
-
faceVertexUvs.forEach(function (uv) {
|
|
103
|
-
var temp = uv[0];
|
|
104
|
-
uv[0] = uv[2];
|
|
105
|
-
uv[2] = temp;
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
geometry1.computeFaceNormals();
|
|
109
|
-
var material0 = new THREE.MeshBasicMaterial({
|
|
110
|
-
color: 0xc8c8c8,
|
|
111
|
-
// color: 0x2bb8aa,
|
|
112
|
-
wireframe: false,
|
|
113
|
-
transparent: true,
|
|
114
|
-
opacity: 0.9
|
|
115
|
-
});
|
|
116
|
-
var material1 = new THREE.MeshBasicMaterial({
|
|
117
|
-
color: 0xffeedf,
|
|
118
|
-
wireframe: false,
|
|
119
|
-
transparent: true,
|
|
120
|
-
opacity: 0.7
|
|
121
|
-
});
|
|
122
|
-
var material2 = new THREE.MeshBasicMaterial({
|
|
123
|
-
color: 0xffffff,
|
|
124
|
-
wireframe: false,
|
|
125
|
-
transparent: true,
|
|
126
|
-
opacity: 0,
|
|
127
|
-
depthTest: false
|
|
128
|
-
});
|
|
129
|
-
var material3 = new THREE.MeshBasicMaterial({
|
|
130
|
-
color: 0xc8c8c8,
|
|
131
|
-
// color: 0x2bb8aa,
|
|
132
|
-
wireframe: false,
|
|
133
|
-
transparent: true,
|
|
134
|
-
opacity: 0.2,
|
|
135
|
-
depthTest: false
|
|
136
|
-
});
|
|
137
|
-
var renderOrder = 99;
|
|
138
|
-
|
|
139
|
-
var initMesh = function initMesh(m) {
|
|
140
|
-
m.rotation.x = -Math.PI / 2;
|
|
141
|
-
m.rotation.y = 0;
|
|
142
|
-
m.rotation.z = 0; // Math.PI / 2
|
|
143
|
-
|
|
144
|
-
m.position.y = five.model.bounding.min.y;
|
|
145
|
-
m.name = 'extrude-walls' + renderOrder;
|
|
146
|
-
m.renderOrder = renderOrder++;
|
|
147
|
-
five.needsRender = true;
|
|
148
|
-
}; // 内墙
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
var insideWall = new THREE.Mesh(geometry1, [material2, material0]); // 外墙
|
|
152
|
-
|
|
153
|
-
var outsideWall = new THREE.Mesh(geometry2, [material2, material3]); // 内墙
|
|
154
|
-
|
|
155
|
-
var lookDownWall = new THREE.Mesh(geometry3, [material1, material2]);
|
|
156
|
-
|
|
157
|
-
var append = function append() {
|
|
158
|
-
initMesh(insideWall);
|
|
159
|
-
initMesh(lookDownWall);
|
|
160
|
-
initMesh(outsideWall);
|
|
161
|
-
five.scene.add(insideWall);
|
|
162
|
-
five.scene.add(outsideWall);
|
|
163
|
-
five.scene.add(lookDownWall);
|
|
164
|
-
state.walls.inside = insideWall;
|
|
165
|
-
state.walls.outside = outsideWall;
|
|
166
|
-
state.walls.lookDown = lookDownWall;
|
|
167
|
-
state.visible = true;
|
|
168
|
-
visible(five.currentMode === _five.Five.Mode.Floorplan);
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
if (five.model.loaded) {
|
|
172
|
-
append();
|
|
173
|
-
} else {
|
|
174
|
-
five.once('modelLoaded', function () {
|
|
175
|
-
return append();
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
var enable = function enable() {
|
|
181
|
-
state.visible = true;
|
|
182
|
-
visible(true);
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
var disable = function disable() {
|
|
186
|
-
state.visible = false;
|
|
187
|
-
visible(false);
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
var visible = function visible() {
|
|
191
|
-
var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
192
|
-
if (state.walls.inside) state.walls.inside.visible = flag;
|
|
193
|
-
if (state.walls.outside) state.walls.outside.visible = flag;
|
|
194
|
-
if (state.walls.lookDown) state.walls.lookDown.visible = flag;
|
|
195
|
-
five.needsRender = true;
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
var modeChangeListener = function modeChangeListener(mode, prevMode) {
|
|
199
|
-
if (!state.visible) return;
|
|
200
|
-
|
|
201
|
-
if (prevMode === _five.Five.Mode.Floorplan) {
|
|
202
|
-
five.once('initAnimationEnded', function () {
|
|
203
|
-
return (0, _nextFrame.nextFrame)(function () {
|
|
204
|
-
return visible(false);
|
|
205
|
-
});
|
|
206
|
-
});
|
|
207
|
-
return;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
return visible(mode === _five.Five.Mode.Floorplan);
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
var cameraDirectionUpdateListener = function cameraDirectionUpdateListener(_ref) {
|
|
214
|
-
var latitude = _ref.latitude;
|
|
215
|
-
if (state.walls.inside) state.walls.inside.material[1].opacity = bezierArcTransition(latitude / (Math.PI / 2));
|
|
216
|
-
if (state.walls.outside) state.walls.outside.material[1].opacity = bezierArcTransition(latitude / (Math.PI / 2));
|
|
217
|
-
if (state.walls.lookDown) state.walls.lookDown.material[0].opacity = bezierArcTransition(latitude / (Math.PI / 2));
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
five.on('modeChange', modeChangeListener);
|
|
221
|
-
five.on('cameraDirectionUpdate', cameraDirectionUpdateListener);
|
|
222
|
-
|
|
223
|
-
var dispose = function dispose() {
|
|
224
|
-
five.off('modeChange', modeChangeListener);
|
|
225
|
-
five.off('cameraDirectionUpdate', cameraDirectionUpdateListener);
|
|
226
|
-
if (state.walls.inside) five.scene.remove(state.walls.inside);
|
|
227
|
-
if (state.walls.outside) five.scene.remove(state.walls.outside);
|
|
228
|
-
if (state.walls.lookDown) five.scene.remove(state.walls.lookDown);
|
|
229
|
-
state.data = undefined;
|
|
230
|
-
state.walls = {};
|
|
231
|
-
state.visible = true;
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
wrapper();
|
|
235
|
-
|
|
236
|
-
var load = function load(data) {
|
|
237
|
-
state.data = data;
|
|
238
|
-
if (state.walls.inside) five.scene.remove(state.walls.inside);
|
|
239
|
-
if (state.walls.outside) five.scene.remove(state.walls.outside);
|
|
240
|
-
if (state.walls.lookDown) five.scene.remove(state.walls.lookDown);
|
|
241
|
-
wrapper();
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
return {
|
|
245
|
-
enable: enable,
|
|
246
|
-
disable: disable,
|
|
247
|
-
dispose: dispose,
|
|
248
|
-
load: load
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
exports.ModelExtrudeWallsPlugin = ModelExtrudeWallsPlugin;
|
|
@@ -1,154 +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.ModelRoomLabelController = void 0;
|
|
25
|
-
|
|
26
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
27
|
-
|
|
28
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
29
|
-
|
|
30
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
31
|
-
|
|
32
|
-
var React = _interopRequireWildcard(require("react"));
|
|
33
|
-
|
|
34
|
-
var ReactDOM = _interopRequireWildcard(require("react-dom"));
|
|
35
|
-
|
|
36
|
-
var _RoomLabelItems = _interopRequireDefault(require("./RoomLabelItems"));
|
|
37
|
-
|
|
38
|
-
var _parseData = require("./utils/parseData");
|
|
39
|
-
|
|
40
|
-
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); }
|
|
41
|
-
|
|
42
|
-
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; }
|
|
43
|
-
|
|
44
|
-
var ModelRoomLabelController = /*#__PURE__*/function () {
|
|
45
|
-
function ModelRoomLabelController(five) {
|
|
46
|
-
var _this = this;
|
|
47
|
-
|
|
48
|
-
(0, _classCallCheck2["default"])(this, ModelRoomLabelController);
|
|
49
|
-
(0, _defineProperty2["default"])(this, "enabled", true);
|
|
50
|
-
(0, _defineProperty2["default"])(this, "roomLabels", []);
|
|
51
|
-
(0, _defineProperty2["default"])(this, "container", document.createElement('div'));
|
|
52
|
-
(0, _defineProperty2["default"])(this, "onFiveModeChange", function (mode) {
|
|
53
|
-
if (mode !== 'Floorplan') {
|
|
54
|
-
_this.fiveModeEnabled = false;
|
|
55
|
-
|
|
56
|
-
_this.render();
|
|
57
|
-
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
_this.five.once('initAnimationEnded', function () {
|
|
62
|
-
_this.fiveModeEnabled = _this.five.currentMode === 'Floorplan';
|
|
63
|
-
|
|
64
|
-
_this.render();
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
this.five = five;
|
|
68
|
-
this.fiveModeEnabled = this.five.currentMode === 'Floorplan'; // init container style
|
|
69
|
-
|
|
70
|
-
this.container.classList.add('model-room-label-plugin-container');
|
|
71
|
-
this.container.style.width = '100%';
|
|
72
|
-
this.container.style.height = '100%';
|
|
73
|
-
this.container.style.position = 'absolute';
|
|
74
|
-
this.container.style.pointerEvents = 'none';
|
|
75
|
-
this.container.style.left = '0';
|
|
76
|
-
this.container.style.top = '0'; // five lisenter
|
|
77
|
-
|
|
78
|
-
this.five.once('dispose', function () {
|
|
79
|
-
return _this.dispose();
|
|
80
|
-
});
|
|
81
|
-
this.five.on('modeChange', this.onFiveModeChange);
|
|
82
|
-
this.render();
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
(0, _createClass2["default"])(ModelRoomLabelController, [{
|
|
86
|
-
key: "dispose",
|
|
87
|
-
value: function dispose() {
|
|
88
|
-
this.five.off('modeChange', this.onFiveModeChange);
|
|
89
|
-
ReactDOM.unmountComponentAtNode(this.container);
|
|
90
|
-
this.container.remove();
|
|
91
|
-
}
|
|
92
|
-
/** 加载数据 */
|
|
93
|
-
|
|
94
|
-
}, {
|
|
95
|
-
key: "load",
|
|
96
|
-
value: function load(data) {
|
|
97
|
-
this.roomLabels = (0, _parseData.parseModelRoomLabelPluginData)(data);
|
|
98
|
-
this.render();
|
|
99
|
-
}
|
|
100
|
-
/** 设置插件容器 */
|
|
101
|
-
|
|
102
|
-
}, {
|
|
103
|
-
key: "appendTo",
|
|
104
|
-
value: function appendTo(wrapper) {
|
|
105
|
-
this.wrapper = wrapper;
|
|
106
|
-
wrapper.appendChild(this.container);
|
|
107
|
-
this.render();
|
|
108
|
-
return this;
|
|
109
|
-
}
|
|
110
|
-
/** 禁用插件功能
|
|
111
|
-
* @description
|
|
112
|
-
* - 如果当前正在展示中,会清除所有展示的 DOM
|
|
113
|
-
* - 如果当前未展示,即使后续 Five 状态满足展示要求,也不会展示
|
|
114
|
-
* */
|
|
115
|
-
|
|
116
|
-
}, {
|
|
117
|
-
key: "disable",
|
|
118
|
-
value: function disable() {
|
|
119
|
-
this.enabled = false;
|
|
120
|
-
this.render();
|
|
121
|
-
return this;
|
|
122
|
-
}
|
|
123
|
-
/** 启用插件功能
|
|
124
|
-
* @description
|
|
125
|
-
* - 如果当前符合展示条件,会立刻展示
|
|
126
|
-
* - 如果不符合展示条件,会等待 Five 状态满足条件后再展示
|
|
127
|
-
*/
|
|
128
|
-
|
|
129
|
-
}, {
|
|
130
|
-
key: "enable",
|
|
131
|
-
value: function enable() {
|
|
132
|
-
this.enabled = true;
|
|
133
|
-
this.render();
|
|
134
|
-
return this;
|
|
135
|
-
}
|
|
136
|
-
/** 监听 Five Mode 变化
|
|
137
|
-
* @description
|
|
138
|
-
* Mode 不符合要求时,立刻消失,满足要求时,需要等待动画结束再展示
|
|
139
|
-
*/
|
|
140
|
-
|
|
141
|
-
}, {
|
|
142
|
-
key: "render",
|
|
143
|
-
value: function render() {
|
|
144
|
-
if (!this.wrapper) return;
|
|
145
|
-
ReactDOM.render(this.enabled && this.fiveModeEnabled ? /*#__PURE__*/React.createElement(_RoomLabelItems["default"], {
|
|
146
|
-
five: this.five,
|
|
147
|
-
roomLabels: this.roomLabels
|
|
148
|
-
}) : /*#__PURE__*/React.createElement(React.Fragment, null), this.container);
|
|
149
|
-
}
|
|
150
|
-
}]);
|
|
151
|
-
return ModelRoomLabelController;
|
|
152
|
-
}();
|
|
153
|
-
|
|
154
|
-
exports.ModelRoomLabelController = ModelRoomLabelController;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Five } from '@realsee/five';
|
|
3
|
-
import { RoomLabel } from './typings';
|
|
4
|
-
declare const RefRoomLabelItem: React.ForwardRefExoticComponent<{
|
|
5
|
-
five: Five;
|
|
6
|
-
item: RoomLabel;
|
|
7
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export default RefRoomLabelItem;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.array.iterator.js");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.object.to-string.js");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.string.iterator.js");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.weak-map.js");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.object.define-property.js");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
-
|
|
17
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
-
|
|
19
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(exports, "__esModule", {
|
|
22
|
-
value: true
|
|
23
|
-
});
|
|
24
|
-
exports["default"] = void 0;
|
|
25
|
-
|
|
26
|
-
var _style = _interopRequireDefault(require("styled-jsx/style"));
|
|
27
|
-
|
|
28
|
-
require("core-js/modules/es.function.name.js");
|
|
29
|
-
|
|
30
|
-
require("core-js/modules/es.array.concat.js");
|
|
31
|
-
|
|
32
|
-
var React = _interopRequireWildcard(require("react"));
|
|
33
|
-
|
|
34
|
-
var _px2rem = _interopRequireDefault(require("../../shared-utils/px2rem"));
|
|
35
|
-
|
|
36
|
-
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); }
|
|
37
|
-
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
|
-
function RoomLabelItem(props, ref) {
|
|
41
|
-
var five = props.five;
|
|
42
|
-
var roomName = props.item.name;
|
|
43
|
-
var handleClick = React.useCallback(function () {
|
|
44
|
-
five.setState({
|
|
45
|
-
panoIndex: props.item.panoIndex,
|
|
46
|
-
mode: 'Panorama',
|
|
47
|
-
longitude: props.item.longitude
|
|
48
|
-
});
|
|
49
|
-
}, [props.five]);
|
|
50
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
51
|
-
onClick: handleClick,
|
|
52
|
-
ref: ref,
|
|
53
|
-
className: _style["default"].dynamic([["312299051", [(0, _px2rem["default"])(roomName.length > 3 ? 8 : 10), (0, _px2rem["default"])(-64), (0, _px2rem["default"])(20), (0, _px2rem["default"])(32), (0, _px2rem["default"])(6), (0, _px2rem["default"])(-44), (0, _px2rem["default"])(48), (0, _px2rem["default"])(1)]]]) + " " + "room-guid-label-plugin__item"
|
|
54
|
-
}, /*#__PURE__*/React.createElement(_style["default"], {
|
|
55
|
-
id: "312299051",
|
|
56
|
-
dynamic: [(0, _px2rem["default"])(roomName.length > 3 ? 8 : 10), (0, _px2rem["default"])(-64), (0, _px2rem["default"])(20), (0, _px2rem["default"])(32), (0, _px2rem["default"])(6), (0, _px2rem["default"])(-44), (0, _px2rem["default"])(48), (0, _px2rem["default"])(1)]
|
|
57
|
-
}, [".room-guid-label-plugin__item.__jsx-style-dynamic-selector{position:absolute;z-index:0;font-size:".concat((0, _px2rem["default"])(roomName.length > 3 ? 8 : 10), ";-webkit-transform:'';-ms-transform:'';transform:'';cursor:pointer;point-events:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}"), ".room-guid-label-plugin__item-text.__jsx-style-dynamic-selector{position:absolute;left:0;top:".concat((0, _px2rem["default"])(-64), ";-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:").concat((0, _px2rem["default"])(20), ";min-width:").concat((0, _px2rem["default"])(32), ";padding:0 ").concat((0, _px2rem["default"])(6), ";pointer-events:all;background:url('//vrlab-static.ljcdn.com/release/web/room-label-bg.23e9d038.png') no-repeat;background-size:100% 100%;white-space:nowrap;}"), ".room-guid-label-plugin__item-bar.__jsx-style-dynamic-selector{position:absolute;top:".concat((0, _px2rem["default"])(-44), ";height:").concat((0, _px2rem["default"])(48), ";width:").concat((0, _px2rem["default"])(1), ";background-image:linear-gradient(to bottom,rgba(255,255,255,1),rgba(255,255,255,0));}")]), /*#__PURE__*/React.createElement("span", {
|
|
58
|
-
className: _style["default"].dynamic([["312299051", [(0, _px2rem["default"])(roomName.length > 3 ? 8 : 10), (0, _px2rem["default"])(-64), (0, _px2rem["default"])(20), (0, _px2rem["default"])(32), (0, _px2rem["default"])(6), (0, _px2rem["default"])(-44), (0, _px2rem["default"])(48), (0, _px2rem["default"])(1)]]]) + " " + "room-guid-label-plugin__item-text"
|
|
59
|
-
}, roomName), /*#__PURE__*/React.createElement("div", {
|
|
60
|
-
className: _style["default"].dynamic([["312299051", [(0, _px2rem["default"])(roomName.length > 3 ? 8 : 10), (0, _px2rem["default"])(-64), (0, _px2rem["default"])(20), (0, _px2rem["default"])(32), (0, _px2rem["default"])(6), (0, _px2rem["default"])(-44), (0, _px2rem["default"])(48), (0, _px2rem["default"])(1)]]]) + " " + "room-guid-label-plugin__item-bar"
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
var RefRoomLabelItem = /*#__PURE__*/React.forwardRef(RoomLabelItem);
|
|
65
|
-
var _default = RefRoomLabelItem;
|
|
66
|
-
exports["default"] = _default;
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.array.iterator.js");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.string.iterator.js");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.weak-map.js");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/es.object.define-property.js");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
14
|
-
|
|
15
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
16
|
-
|
|
17
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
18
|
-
|
|
19
|
-
Object.defineProperty(exports, "__esModule", {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
exports["default"] = RoomLabelItems;
|
|
23
|
-
|
|
24
|
-
var _style = _interopRequireDefault(require("styled-jsx/style"));
|
|
25
|
-
|
|
26
|
-
var _construct2 = _interopRequireDefault(require("@babel/runtime/helpers/construct"));
|
|
27
|
-
|
|
28
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
29
|
-
|
|
30
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
31
|
-
|
|
32
|
-
require("core-js/modules/es.string.sub.js");
|
|
33
|
-
|
|
34
|
-
require("core-js/modules/es.array.concat.js");
|
|
35
|
-
|
|
36
|
-
require("core-js/modules/es.array.for-each.js");
|
|
37
|
-
|
|
38
|
-
require("core-js/modules/es.object.to-string.js");
|
|
39
|
-
|
|
40
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
41
|
-
|
|
42
|
-
require("core-js/modules/es.array.sort.js");
|
|
43
|
-
|
|
44
|
-
require("core-js/modules/es.array.map.js");
|
|
45
|
-
|
|
46
|
-
require("core-js/modules/es.array.filter.js");
|
|
47
|
-
|
|
48
|
-
require("core-js/modules/es.object.values.js");
|
|
49
|
-
|
|
50
|
-
var React = _interopRequireWildcard(require("react"));
|
|
51
|
-
|
|
52
|
-
var _three = require("three");
|
|
53
|
-
|
|
54
|
-
var _RoomLabelItem = _interopRequireDefault(require("./RoomLabelItem"));
|
|
55
|
-
|
|
56
|
-
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); }
|
|
57
|
-
|
|
58
|
-
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; }
|
|
59
|
-
|
|
60
|
-
function getLabelVisible(five, roomLabelItem) {
|
|
61
|
-
// 先看是不是在当前展示的楼层上
|
|
62
|
-
var isLabelInFloor = five.model.shownFloor === null || roomLabelItem.floorIndex === five.model.shownFloor;
|
|
63
|
-
if (!isLabelInFloor) return false; // 再看是不是被模型遮挡
|
|
64
|
-
|
|
65
|
-
var raycaster = new _three.Raycaster();
|
|
66
|
-
var cameraPosition = five.camera.position.clone();
|
|
67
|
-
var position = new _three.Vector3(roomLabelItem.position.x, roomLabelItem.position.y, roomLabelItem.position.z);
|
|
68
|
-
var vectorDistance = position.distanceTo(cameraPosition);
|
|
69
|
-
raycaster.set(cameraPosition.clone(), position.clone().sub(cameraPosition).normalize());
|
|
70
|
-
|
|
71
|
-
var _five$model$intersect = five.model.intersectRaycaster(raycaster),
|
|
72
|
-
_five$model$intersect2 = (0, _slicedToArray2["default"])(_five$model$intersect, 1),
|
|
73
|
-
intersection = _five$model$intersect2[0];
|
|
74
|
-
|
|
75
|
-
if (intersection && intersection.distance + 1 < vectorDistance) return false;
|
|
76
|
-
return true;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
function getLabelTransform(five, roomLabelItem, containerWidth, containerHeight) {
|
|
80
|
-
var position = new _three.Vector3(roomLabelItem.position.x, roomLabelItem.position.y, roomLabelItem.position.z);
|
|
81
|
-
var mouse = position.clone().project(five.camera);
|
|
82
|
-
var xOffset = Math.ceil((mouse.x + 1) / 2 * containerWidth);
|
|
83
|
-
var yOffset = Math.ceil((-mouse.y + 1) / 2 * containerHeight);
|
|
84
|
-
return "translate(".concat(xOffset, "px, ").concat(yOffset, "px)");
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function updateFormatData(five, labels, containerWidth, containerHeight) {
|
|
88
|
-
labels.forEach(function (roomLabelItem) {
|
|
89
|
-
// 计算是否可见,入股不可见,不会更新位置
|
|
90
|
-
roomLabelItem.visible = getLabelVisible(five, roomLabelItem);
|
|
91
|
-
if (!roomLabelItem.visible) return roomLabelItem; // 更新位置
|
|
92
|
-
|
|
93
|
-
roomLabelItem.transform = getLabelTransform(five, roomLabelItem, containerWidth, containerHeight);
|
|
94
|
-
return true;
|
|
95
|
-
});
|
|
96
|
-
labels.filter(function (_ref) {
|
|
97
|
-
var visible = _ref.visible;
|
|
98
|
-
return visible;
|
|
99
|
-
}).map(function (roomLabelItem) {
|
|
100
|
-
return {
|
|
101
|
-
roomLabelItem: roomLabelItem,
|
|
102
|
-
distance: (0, _construct2["default"])(_three.Vector3, (0, _toConsumableArray2["default"])(Object.values(roomLabelItem.position))).clone().distanceTo(five.camera.position)
|
|
103
|
-
};
|
|
104
|
-
}).sort(function (a, b) {
|
|
105
|
-
return a.distance - b.distance;
|
|
106
|
-
}).forEach(function (_ref2, index) {
|
|
107
|
-
var roomLabelItem = _ref2.roomLabelItem;
|
|
108
|
-
roomLabelItem.zIndex = index * 10;
|
|
109
|
-
});
|
|
110
|
-
return labels;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
function RoomLabelItems(props) {
|
|
114
|
-
var five = props.five;
|
|
115
|
-
var itemRefs = React.useRef([]);
|
|
116
|
-
var contentRef = React.useRef(null);
|
|
117
|
-
var roomLabels = props.roomLabels;
|
|
118
|
-
|
|
119
|
-
function onFiveCameraDirectionUpdate() {
|
|
120
|
-
if (!contentRef.current) return;
|
|
121
|
-
updateFormatData(five, roomLabels, contentRef.current.clientWidth, contentRef.current.clientHeight).forEach(function (item, index) {
|
|
122
|
-
var ref = itemRefs.current[index];
|
|
123
|
-
if (!ref) return;
|
|
124
|
-
|
|
125
|
-
if (!item.visible) {
|
|
126
|
-
ref.style.opacity = '0';
|
|
127
|
-
ref.style.pointerEvents = 'none';
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
ref.style.opacity = '1';
|
|
132
|
-
ref.style.pointerEvents = 'all';
|
|
133
|
-
ref.style.transform = item.transform;
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
React.useEffect(function () {
|
|
138
|
-
five.on('cameraDirectionUpdate', onFiveCameraDirectionUpdate);
|
|
139
|
-
onFiveCameraDirectionUpdate();
|
|
140
|
-
return function () {
|
|
141
|
-
five.off('cameraDirectionUpdate', onFiveCameraDirectionUpdate);
|
|
142
|
-
};
|
|
143
|
-
}, []);
|
|
144
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
145
|
-
ref: contentRef,
|
|
146
|
-
className: "jsx-2859587460" + " " + "room-guid-label-plugin__content"
|
|
147
|
-
}, /*#__PURE__*/React.createElement(_style["default"], {
|
|
148
|
-
id: "2859587460"
|
|
149
|
-
}, [".room-guid-label-plugin__content.jsx-2859587460{width:100%;height:100%;position:relative;color:#fff;}"]), roomLabels.map(function (item) {
|
|
150
|
-
return /*#__PURE__*/React.createElement(_RoomLabelItem["default"], {
|
|
151
|
-
key: item.id,
|
|
152
|
-
item: item,
|
|
153
|
-
five: props.five,
|
|
154
|
-
ref: function ref(_ref3) {
|
|
155
|
-
return itemRefs.current.push(_ref3);
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
}));
|
|
159
|
-
}
|
|
@@ -1,23 +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.modelRoomLabelPluginServerParams = exports["default"] = exports.ModelRoomLabelPlugin = void 0;
|
|
9
|
-
|
|
10
|
-
var _Controller = require("./Controller");
|
|
11
|
-
|
|
12
|
-
var ModelRoomLabelPlugin = function ModelRoomLabelPlugin(five) {
|
|
13
|
-
return new _Controller.ModelRoomLabelController(five);
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
exports.ModelRoomLabelPlugin = ModelRoomLabelPlugin;
|
|
17
|
-
var _default = ModelRoomLabelPlugin;
|
|
18
|
-
exports["default"] = _default;
|
|
19
|
-
var modelRoomLabelPluginServerParams = {
|
|
20
|
-
name: 'ModelRoomLabelPlugin',
|
|
21
|
-
version: 0
|
|
22
|
-
};
|
|
23
|
-
exports.modelRoomLabelPluginServerParams = modelRoomLabelPluginServerParams;
|