@realsee/dnalogel 0.1.7 → 2.0.0-alpha.11
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/CHANGELOG.md +38 -0
- package/README.md +24 -68
- package/{plugins → dist}/CSS3DRenderPlugin/index.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/index.js +231 -0
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/{plugins → dist}/CameraMovementPlugin/index.d.ts +0 -0
- package/dist/CameraMovementPlugin/index.js +302 -0
- package/{plugins → dist}/CameraMovementPlugin/typing.d.ts +0 -0
- package/{plugins → dist}/ModelChassisCompassPlugin/index.d.ts +1 -1
- package/dist/ModelChassisCompassPlugin/index.js +142 -0
- package/{plugins → dist}/ModelEntryDoorGuidePlugin/index.d.ts +6 -2
- package/dist/ModelEntryDoorGuidePlugin/index.js +196 -0
- package/dist/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/{plugins → dist}/ModelRoomLabelPlugin/Controller.d.ts +3 -2
- package/dist/ModelRoomLabelPlugin/index.d.ts +12 -0
- package/dist/ModelRoomLabelPlugin/index.js +463 -0
- package/{plugins → dist}/ModelRoomLabelPlugin/typings.d.ts +2 -2
- package/{plugins → dist}/ModelRoomLabelPlugin/utils/parseData.d.ts +0 -0
- package/{plugins → dist}/ModelViewPlugin/index.d.ts +0 -0
- package/dist/ModelViewPlugin/index.js +187 -0
- package/dist/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/dist/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/dist/PanoCompassPlugin/index.d.ts +51 -0
- package/dist/PanoCompassPlugin/index.js +521 -0
- package/{plugins → dist}/PanoCursorRaycasterPlugin/index.d.ts +2 -3
- package/dist/PanoCursorRaycasterPlugin/index.js +88 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +61 -0
- package/dist/PanoMeasurePlugin/Model/index.d.ts +38 -0
- package/dist/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/dist/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
- package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
- package/dist/PanoMeasurePlugin/index.d.ts +7 -0
- package/dist/PanoMeasurePlugin/index.js +4789 -0
- package/dist/PanoMeasurePlugin/typings/data.d.ts +28 -0
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
- package/dist/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/dist/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/{plugins → dist}/PanoRulerPlugin/index.d.ts +9 -5
- package/dist/PanoRulerPlugin/index.js +610 -0
- package/dist/PanoRulerPlugin/style.d.ts +2 -0
- package/{plugins → dist}/PanoRulerPlugin/typings.d.ts +0 -0
- package/dist/PanoSpatialTagPlugin/index.d.ts +33 -0
- package/dist/PanoSpatialTagPlugin/index.js +1259 -0
- package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/{plugins/floorplan/TopviewFloorplanPlugin → dist/PanoSpatialTagPlugin}/style.d.ts +0 -0
- package/dist/PanoSpatialTagPlugin/typings.d.ts +40 -0
- package/dist/floorplan/Assets/camera.d.ts +1 -0
- package/dist/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +1 -0
- package/{plugins → dist}/floorplan/ModelFloorplanPlugin/Controller.d.ts +19 -14
- package/{plugins → dist}/floorplan/ModelFloorplanPlugin/index.d.ts +1 -1
- package/dist/floorplan/ModelFloorplanPlugin/index.js +3842 -0
- package/{plugins → dist}/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +0 -0
- package/{plugins → dist}/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +1 -1
- package/{plugins → dist}/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +0 -0
- package/{plugins → dist}/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +6 -11
- package/{plugins → dist}/floorplan/PanoFloorplanRadarPlugin/index.d.ts +0 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +1673 -0
- package/{plugins → dist}/floorplan/TopviewFloorplanPlugin/Controller.d.ts +18 -11
- package/{plugins → dist}/floorplan/TopviewFloorplanPlugin/index.d.ts +0 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +3481 -0
- package/{plugins/floorplan/ModelFloorplanPlugin/controller.style.d.ts → dist/floorplan/TopviewFloorplanPlugin/style.d.ts} +0 -0
- package/dist/floorplan/constant.d.ts +5 -0
- package/{plugins → dist}/floorplan/typings/floorplanData.d.ts +6 -0
- package/{plugins → dist}/floorplan/typings/floorplanServerData.d.ts +8 -2
- package/dist/floorplan/typings/utility.d.ts +2 -0
- package/{plugins → dist}/floorplan/utils/formatData.d.ts +3 -3
- package/{plugins → dist}/floorplan/utils/formatPosition.d.ts +3 -4
- package/dist/index.d.ts +26 -0
- package/dist/index.es.js +12928 -0
- package/dist/index.js +12967 -0
- package/dist/index.umd.js +12961 -0
- package/{shared-utils → dist/shared-utils}/Preloader.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/Subscribe.d.ts +3 -3
- package/{shared-utils → dist/shared-utils}/animationFrame/BetterTween.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/animationFrame/calculateProgress.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/animationFrame/formatRad.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/animationFrame/index.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/animationFrame/tween.d.ts +0 -0
- package/dist/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/{shared-utils → dist/shared-utils}/createCanvasTextTexture.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/createLine/index.d.ts +1 -1
- package/{shared-utils → dist/shared-utils}/debounce.d.ts +1 -1
- package/{shared-utils → dist/shared-utils}/equal.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/filter.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/five/changeMode.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/five/useFivePlugin.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/formatRad.d.ts +0 -0
- package/dist/shared-utils/getPxmm.d.ts +11 -0
- package/{shared-utils → dist/shared-utils}/getRandomColor.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/isNil.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/isTruelyObject.d.ts +0 -0
- package/dist/shared-utils/math/evenNumber.d.ts +3 -0
- package/{shared-utils → dist/shared-utils}/math/planimetry.d.ts +4 -4
- package/{shared-utils → dist/shared-utils}/math/rad2Deg.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/nearlyEqual.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/nextFrame.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/noop.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/object3d2LocalMatrix.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/px2rem.d.ts +0 -0
- package/dist/shared-utils/removeArrayItem.d.ts +7 -0
- package/{shared-utils → dist/shared-utils}/tap.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/three/centerPoint.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/three/getExtraModelLoader.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/three/getNormal.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/three/getTextureLoader.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/three/loadFbxObj.d.ts +0 -0
- package/dist/shared-utils/three/loadTexture.d.ts +2 -0
- package/{shared-utils → dist/shared-utils}/three/transformPositionToVector3.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/three/transfromToMeshBasicMaterial.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/throttle.d.ts +1 -1
- package/dist/shared-utils/tinyEJSrender.d.ts +5 -0
- package/{shared-utils → dist/shared-utils}/to.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/useDebounce.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/useThrottle.d.ts +0 -0
- package/{libs/gltf-viewer → dist/shared-utils}/uuid.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/vectorTocoordinates.d.ts +0 -0
- package/{typings → dist/typings}/math.type.d.ts +0 -0
- package/{typings → dist/typings}/utils.type.d.ts +0 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +78 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1413 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/ModelRoomLabelController.html +20 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -0
- package/docs/enums/ModelFloorplanErrorType.html +1 -0
- package/docs/index.html +43 -0
- package/docs/interfaces/LineJson.html +1 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -0
- package/docs/interfaces/ModelFloorplanParameterType.html +1 -0
- package/docs/interfaces/ModelFloorplanViewEvent.html +5 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -0
- package/docs/interfaces/PanoCompassPluginData.html +1 -0
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -0
- package/docs/interfaces/PointJson.html +1 -0
- package/docs/interfaces/RoomLabel.html +13 -0
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +1 -0
- package/docs/modules.html +28 -0
- package/libs/CSS3DRenderPlugin/index.d.ts +49 -0
- package/libs/CSS3DRenderPlugin/index.js +179 -0
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +18 -0
- package/libs/CameraMovementPlugin/index.d.ts +7 -0
- package/libs/CameraMovementPlugin/index.js +159 -0
- package/libs/CameraMovementPlugin/typing.d.ts +68 -0
- package/libs/CameraMovementPlugin/typing.js +17 -0
- package/libs/ModelChassisCompassPlugin/index.d.ts +19 -0
- package/libs/ModelChassisCompassPlugin/index.js +75 -0
- package/libs/ModelEntryDoorGuidePlugin/index.d.ts +26 -0
- package/libs/ModelEntryDoorGuidePlugin/index.js +137 -0
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -0
- package/libs/ModelRoomLabelPlugin/Controller.d.ts +36 -0
- package/libs/ModelRoomLabelPlugin/Controller.js +100 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +121 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +255 -0
- package/libs/ModelRoomLabelPlugin/index.d.ts +12 -0
- package/libs/ModelRoomLabelPlugin/index.js +9 -0
- package/libs/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/libs/ModelRoomLabelPlugin/typings.js +1 -0
- package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/libs/ModelRoomLabelPlugin/utils/parseData.js +14 -0
- package/libs/ModelViewPlugin/index.d.ts +17 -0
- package/libs/ModelViewPlugin/index.js +160 -0
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -0
- package/libs/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +48 -0
- package/libs/PanoCompassPlugin/index.d.ts +51 -0
- package/libs/PanoCompassPlugin/index.js +171 -0
- package/libs/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/libs/PanoCursorRaycasterPlugin/index.js +74 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +69 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.js +216 -0
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +44 -0
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +223 -0
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +61 -0
- package/libs/PanoMeasurePlugin/Controller/index.js +176 -0
- package/libs/PanoMeasurePlugin/Model/index.d.ts +38 -0
- package/libs/PanoMeasurePlugin/Model/index.js +114 -0
- package/libs/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/libs/PanoMeasurePlugin/Model/line.js +64 -0
- package/libs/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Model/point.js +28 -0
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Model/polyline.js +48 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +15 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +108 -0
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +33 -0
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +75 -0
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +103 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +117 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +102 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +35 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +69 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +78 -0
- package/libs/PanoMeasurePlugin/index.d.ts +7 -0
- package/libs/PanoMeasurePlugin/index.js +5 -0
- package/libs/PanoMeasurePlugin/typings/data.d.ts +28 -0
- package/libs/PanoMeasurePlugin/typings/data.js +1 -0
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
- package/libs/PanoMeasurePlugin/typings/event.type.js +1 -0
- package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/libs/PanoMeasurePlugin/typings/utils.type.js +1 -0
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/clearGroup.js +3 -0
- package/libs/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/libs/PanoMeasurePlugin/utils/constants.js +31 -0
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +114 -0
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +21 -0
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +27 -0
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +9 -0
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +14 -0
- package/libs/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -0
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +6 -0
- package/libs/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/libs/PanoMeasurePlugin/utils/line.js +32 -0
- package/libs/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/libs/PanoMeasurePlugin/utils/math.js +44 -0
- package/libs/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +21 -0
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +6 -0
- package/libs/PanoRulerPlugin/index.d.ts +31 -0
- package/libs/PanoRulerPlugin/index.js +398 -0
- package/libs/PanoRulerPlugin/style.d.ts +2 -0
- package/libs/PanoRulerPlugin/style.js +88 -0
- package/libs/PanoRulerPlugin/typings.d.ts +21 -0
- package/libs/PanoRulerPlugin/typings.js +1 -0
- package/libs/PanoSpatialTagPlugin/Components/origins.js +168 -0
- package/libs/PanoSpatialTagPlugin/Components/tag.js +302 -0
- package/libs/PanoSpatialTagPlugin/index.d.ts +33 -0
- package/libs/PanoSpatialTagPlugin/index.js +411 -0
- package/libs/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/libs/PanoSpatialTagPlugin/store.js +2 -0
- package/libs/PanoSpatialTagPlugin/style.d.ts +1 -0
- package/libs/PanoSpatialTagPlugin/style.js +8 -0
- package/libs/PanoSpatialTagPlugin/typings.d.ts +40 -0
- package/libs/PanoSpatialTagPlugin/typings.js +1 -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.js +217 -0
- package/libs/floorplan/Components/Normalmage.js +63 -0
- package/libs/floorplan/Components/RoomHighlight/Room.js +70 -0
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +289 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +328 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +64 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +103 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +140 -0
- package/libs/floorplan/Components/SvgImage.js +83 -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.js +120 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +114 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.js +463 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +383 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.js +171 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.js +265 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +301 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.js +219 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +105 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +359 -0
- package/libs/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -0
- package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
- package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.js +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
- package/libs/floorplan/ModelFloorplanPlugin/utils/constant.js +16 -0
- package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
- package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +46 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +152 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +248 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +154 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +312 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +28 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +88 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +62 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +191 -0
- package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +8 -0
- package/libs/floorplan/constant.d.ts +5 -0
- package/libs/floorplan/constant.js +6 -0
- package/libs/floorplan/typings/floorplanData.d.ts +137 -0
- package/libs/floorplan/typings/floorplanData.js +6 -0
- package/libs/floorplan/typings/floorplanServerData.d.ts +131 -0
- 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/libs/floorplan/utils/formatData.d.ts +5 -0
- package/libs/floorplan/utils/formatData.js +94 -0
- package/libs/floorplan/utils/formatPosition.d.ts +36 -0
- package/libs/floorplan/utils/formatPosition.js +50 -0
- package/libs/index.d.ts +26 -0
- package/libs/index.js +16 -0
- package/libs/shared-utils/Preloader.d.ts +6 -0
- package/libs/shared-utils/Preloader.js +38 -0
- package/libs/shared-utils/Subscribe.d.ts +45 -0
- package/libs/shared-utils/Subscribe.js +101 -0
- package/libs/shared-utils/animationFrame/BetterTween.d.ts +11 -0
- package/libs/shared-utils/animationFrame/BetterTween.js +30 -0
- package/libs/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
- package/libs/shared-utils/animationFrame/calculateProgress.js +23 -0
- package/libs/shared-utils/animationFrame/formatRad.d.ts +15 -0
- package/libs/shared-utils/animationFrame/formatRad.js +20 -0
- package/libs/shared-utils/animationFrame/index.d.ts +15 -0
- package/libs/shared-utils/animationFrame/index.js +48 -0
- package/libs/shared-utils/animationFrame/tween.d.ts +75 -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/libs/shared-utils/createCanvasTextTexture.d.ts +8 -0
- package/libs/shared-utils/createCanvasTextTexture.js +19 -0
- package/libs/shared-utils/createLine/index.d.ts +3 -0
- package/libs/shared-utils/createLine/index.js +8 -0
- package/libs/shared-utils/debounce.d.ts +6 -0
- package/libs/shared-utils/debounce.js +14 -0
- package/libs/shared-utils/equal.d.ts +11 -0
- package/libs/shared-utils/equal.js +84 -0
- package/libs/shared-utils/filter.d.ts +27 -0
- package/libs/shared-utils/filter.js +53 -0
- package/libs/shared-utils/five/changeMode.d.ts +2 -0
- package/libs/shared-utils/five/changeMode.js +15 -0
- package/libs/shared-utils/five/useFivePlugin.d.ts +1 -0
- package/libs/shared-utils/five/useFivePlugin.js +8 -0
- package/libs/shared-utils/formatRad.d.ts +7 -0
- package/libs/shared-utils/formatRad.js +10 -0
- package/libs/shared-utils/getPxmm.d.ts +11 -0
- package/libs/shared-utils/getPxmm.js +34 -0
- package/libs/shared-utils/getRandomColor.d.ts +1 -0
- package/libs/shared-utils/getRandomColor.js +10 -0
- package/libs/shared-utils/isNil.d.ts +10 -0
- package/libs/shared-utils/isNil.js +14 -0
- package/libs/shared-utils/isTruelyObject.d.ts +18 -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/libs/shared-utils/math/planimetry.d.ts +116 -0
- package/libs/shared-utils/math/planimetry.js +288 -0
- package/libs/shared-utils/math/rad2Deg.d.ts +1 -0
- package/libs/shared-utils/math/rad2Deg.js +3 -0
- package/libs/shared-utils/nearlyEqual.d.ts +7 -0
- package/libs/shared-utils/nearlyEqual.js +9 -0
- package/libs/shared-utils/nextFrame.d.ts +1 -0
- package/libs/shared-utils/nextFrame.js +6 -0
- package/libs/shared-utils/noop.d.ts +5 -0
- package/libs/shared-utils/noop.js +7 -0
- package/libs/shared-utils/object3d2LocalMatrix.d.ts +12 -0
- package/libs/shared-utils/object3d2LocalMatrix.js +29 -0
- package/libs/shared-utils/px2rem.d.ts +1 -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/libs/shared-utils/tap.d.ts +8 -0
- package/{shared-utils → libs/shared-utils}/tap.js +4 -13
- package/libs/shared-utils/three/centerPoint.d.ts +2 -0
- package/libs/shared-utils/three/centerPoint.js +4 -0
- package/libs/shared-utils/three/getExtraModelLoader.d.ts +6 -0
- package/libs/shared-utils/three/getExtraModelLoader.js +18 -0
- package/libs/shared-utils/three/getNormal.d.ts +2 -0
- package/libs/shared-utils/three/getNormal.js +6 -0
- package/libs/shared-utils/three/getTextureLoader.d.ts +6 -0
- package/libs/shared-utils/three/getTextureLoader.js +17 -0
- package/libs/shared-utils/three/loadFbxObj.d.ts +2 -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/libs/shared-utils/three/transformPositionToVector3.d.ts +7 -0
- package/libs/shared-utils/three/transformPositionToVector3.js +3 -0
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +14 -0
- package/libs/shared-utils/throttle.d.ts +7 -0
- package/libs/shared-utils/throttle.js +18 -0
- package/libs/shared-utils/tinyEJSrender.d.ts +5 -0
- package/libs/shared-utils/tinyEJSrender.js +180 -0
- package/libs/shared-utils/to.d.ts +8 -0
- package/libs/shared-utils/to.js +18 -0
- package/libs/shared-utils/useDebounce.d.ts +8 -0
- package/libs/shared-utils/useDebounce.js +22 -0
- package/libs/shared-utils/useThrottle.d.ts +8 -0
- package/libs/shared-utils/useThrottle.js +25 -0
- package/{shared-utils → libs/shared-utils}/uuid.d.ts +0 -0
- package/libs/shared-utils/uuid.js +11 -0
- package/libs/shared-utils/vectorTocoordinates.d.ts +7 -0
- package/libs/shared-utils/vectorTocoordinates.js +9 -0
- package/libs/typings/math.type.d.ts +44 -0
- package/libs/typings/math.type.js +1 -0
- package/libs/typings/utils.type.d.ts +2 -0
- package/libs/typings/utils.type.js +1 -0
- package/package.json +55 -17
- 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.js +0 -637
- 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.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.d.ts +0 -6
- 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.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
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Vector2 } from 'three';
|
|
2
|
+
/** 交换数组元素 */
|
|
3
|
+
function exchange(array, index1, index2) {
|
|
4
|
+
const value = array[index1];
|
|
5
|
+
array[index1] = array[index2];
|
|
6
|
+
array[index2] = value;
|
|
7
|
+
}
|
|
8
|
+
export default class Magnifier {
|
|
9
|
+
five;
|
|
10
|
+
scale;
|
|
11
|
+
width;
|
|
12
|
+
height;
|
|
13
|
+
pixelRatio;
|
|
14
|
+
originWidth;
|
|
15
|
+
originHeight;
|
|
16
|
+
context;
|
|
17
|
+
canvas = document.createElement('canvas');
|
|
18
|
+
container;
|
|
19
|
+
constructor(five, options) {
|
|
20
|
+
if (!five.renderer)
|
|
21
|
+
throw new Error('Five Render 未初始化');
|
|
22
|
+
this.five = five;
|
|
23
|
+
const scale = options.scale;
|
|
24
|
+
const pixelRatio = five.renderer.getPixelRatio();
|
|
25
|
+
const originWidth = options.width;
|
|
26
|
+
const originHeight = options.height;
|
|
27
|
+
const width = originWidth * pixelRatio;
|
|
28
|
+
const height = originHeight * pixelRatio;
|
|
29
|
+
const magnifier = this.canvas;
|
|
30
|
+
const context = this.canvas.getContext('2d');
|
|
31
|
+
if (!context)
|
|
32
|
+
throw new Error('CANNOT CREATE CONTEXT2D');
|
|
33
|
+
this.scale = scale;
|
|
34
|
+
this.context = context;
|
|
35
|
+
this.width = width;
|
|
36
|
+
this.height = height;
|
|
37
|
+
this.originWidth = originWidth;
|
|
38
|
+
this.originHeight = originHeight;
|
|
39
|
+
this.pixelRatio = pixelRatio;
|
|
40
|
+
magnifier.classList.add('plugin-measure-magnifier');
|
|
41
|
+
magnifier.style.position = 'absolute';
|
|
42
|
+
magnifier.style.pointerEvents = 'none';
|
|
43
|
+
magnifier.style.borderRadius = '50%';
|
|
44
|
+
magnifier.style.left = -width / 2 + 'px';
|
|
45
|
+
magnifier.style.top = -height - 90 + 'px';
|
|
46
|
+
magnifier.setAttribute('width', width.toString());
|
|
47
|
+
magnifier.setAttribute('height', height.toString());
|
|
48
|
+
this.canvas.style.width = originWidth + 'px';
|
|
49
|
+
this.canvas.style.height = originHeight + 'px';
|
|
50
|
+
}
|
|
51
|
+
dispose() {
|
|
52
|
+
this.clear();
|
|
53
|
+
this.canvas.remove();
|
|
54
|
+
}
|
|
55
|
+
clear() {
|
|
56
|
+
this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
|
57
|
+
}
|
|
58
|
+
appendTo(element) {
|
|
59
|
+
this.container = element;
|
|
60
|
+
element.append(this.canvas);
|
|
61
|
+
}
|
|
62
|
+
updateWithPoint(point) {
|
|
63
|
+
if (!this.five.renderer || !this.container)
|
|
64
|
+
return;
|
|
65
|
+
const { scale, pixelRatio, context, originWidth, originHeight, width, height } = this;
|
|
66
|
+
const position2d = point.clone().project(this.five.camera);
|
|
67
|
+
const left = ((position2d.x + 1) / 2) * this.container.clientWidth;
|
|
68
|
+
const right = (-(position2d.x - 1) / 2) * this.container.clientWidth;
|
|
69
|
+
const top = (-(position2d.y - 1) / 2) * this.container.clientHeight;
|
|
70
|
+
if (left < 183) {
|
|
71
|
+
this.canvas.style.top = -originHeight / 2 + 'px';
|
|
72
|
+
this.canvas.style.left = 90 + 'px';
|
|
73
|
+
}
|
|
74
|
+
else if (top < 183) {
|
|
75
|
+
this.canvas.style.top = 90 + 'px';
|
|
76
|
+
this.canvas.style.left = -originWidth / 2 + 'px';
|
|
77
|
+
}
|
|
78
|
+
else if (right < 183) {
|
|
79
|
+
this.canvas.style.top = -originHeight / 2 + 'px';
|
|
80
|
+
this.canvas.style.left = -originWidth - 90 + 'px';
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
this.canvas.style.left = -originWidth / 2 + 'px';
|
|
84
|
+
this.canvas.style.top = -originHeight - 90 + 'px';
|
|
85
|
+
}
|
|
86
|
+
this.canvas.style.transform = `translate3d(${left}px, ${top}px, 10px)`;
|
|
87
|
+
const renderSize = this.five.renderer.getSize(new Vector2());
|
|
88
|
+
const x = ((position2d.x + 1) / 2) * renderSize.x;
|
|
89
|
+
const y = ((position2d.y + 1) / 2) * renderSize.y;
|
|
90
|
+
const pixels = this.five.getPixels(x - originWidth / scale / 2, y - originHeight / scale / 2, originWidth / scale, originHeight / scale, pixelRatio * scale);
|
|
91
|
+
const length = (width * height) / 2;
|
|
92
|
+
for (let index = 0; index < length; index++) {
|
|
93
|
+
const targetIndex = (height - Math.floor(index / width) - 1) * width + (index % width);
|
|
94
|
+
exchange(pixels, index * 4 + 0, targetIndex * 4 + 0);
|
|
95
|
+
exchange(pixels, index * 4 + 1, targetIndex * 4 + 1);
|
|
96
|
+
exchange(pixels, index * 4 + 2, targetIndex * 4 + 2);
|
|
97
|
+
exchange(pixels, index * 4 + 3, targetIndex * 4 + 3);
|
|
98
|
+
}
|
|
99
|
+
const imageData = context.createImageData(width, height);
|
|
100
|
+
imageData.data.set(pixels);
|
|
101
|
+
context.putImageData(imageData, 0, 0);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const MAIN_NORMAL_PATH = "M31.379 15.466a1.045 1.045 0 0 1-.92 1.076l-11.276.607a1.6 1.6 0 0 0-1.512 1.511l-.599 11.113a1.045 1.045 0 0 1-.92 1.075l-.164.008a1.183 1.183 0 0 1-1.123-.975l-.016-.164-.221-10.768a1.6 1.6 0 0 0-1.567-1.567l-11.3-.231-.165-.016a1.187 1.187 0 0 1-.964-.996l-.01-.127.007-.164c.061-.496.455-.876.958-.917l.118-.003 11.112-.599a1.6 1.6 0 0 0 1.498-1.37l.014-.142.607-11.276a1.045 1.045 0 0 1 1.076-.92c.573.015 1.055.46 1.13 1.019l.009.121.221 10.766a1.6 1.6 0 0 0 1.567 1.566l11.3.234a1.181 1.181 0 0 1 1.14 1.139z";
|
|
2
|
+
export declare const MAIN_DONE_PATH = "M27.1772552,8.15828895 C27.8664561,7.48070421 28.5574369,7.81156875 28.8336646,8.04968716 C29.1098924,8.28780557 29.3990219,9.110014 28.8256559,9.79263351 L28.7110903,9.9165024 L13.9697229,25.1399531 C13.3288458,25.7700285 12.3239388,25.8070917 11.6402346,25.2511429 L11.5159715,25.1399531 L3.7056151,18.0063788 C3.01641417,17.3287941 3.00699739,16.2207954 3.68458213,15.5315945 C4.32230894,14.8829348 5.3413021,14.8364368 6.03356826,15.3981178 L6.15936649,15.5105615 L12.6856594,21.9049888 L27.1772552,8.15828895 Z";
|
|
3
|
+
export declare const MAIN_MOUSE_ENTER_FILL = "url(#fpm__main-b)";
|
|
4
|
+
export declare const MAIN_MOUSE_LEAVE_FILL = "url(#fpm__main-c)";
|
|
5
|
+
declare const _default: string;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export const MAIN_NORMAL_PATH = 'M31.379 15.466a1.045 1.045 0 0 1-.92 1.076l-11.276.607a1.6 1.6 0 0 0-1.512 1.511l-.599 11.113a1.045 1.045 0 0 1-.92 1.075l-.164.008a1.183 1.183 0 0 1-1.123-.975l-.016-.164-.221-10.768a1.6 1.6 0 0 0-1.567-1.567l-11.3-.231-.165-.016a1.187 1.187 0 0 1-.964-.996l-.01-.127.007-.164c.061-.496.455-.876.958-.917l.118-.003 11.112-.599a1.6 1.6 0 0 0 1.498-1.37l.014-.142.607-11.276a1.045 1.045 0 0 1 1.076-.92c.573.015 1.055.46 1.13 1.019l.009.121.221 10.766a1.6 1.6 0 0 0 1.567 1.566l11.3.234a1.181 1.181 0 0 1 1.14 1.139z';
|
|
2
|
+
export const MAIN_DONE_PATH = 'M27.1772552,8.15828895 C27.8664561,7.48070421 28.5574369,7.81156875 28.8336646,8.04968716 C29.1098924,8.28780557 29.3990219,9.110014 28.8256559,9.79263351 L28.7110903,9.9165024 L13.9697229,25.1399531 C13.3288458,25.7700285 12.3239388,25.8070917 11.6402346,25.2511429 L11.5159715,25.1399531 L3.7056151,18.0063788 C3.01641417,17.3287941 3.00699739,16.2207954 3.68458213,15.5315945 C4.32230894,14.8829348 5.3413021,14.8364368 6.03356826,15.3981178 L6.15936649,15.5105615 L12.6856594,21.9049888 L27.1772552,8.15828895 Z';
|
|
3
|
+
export const MAIN_MOUSE_ENTER_FILL = 'url(#fpm__main-b)';
|
|
4
|
+
export const MAIN_MOUSE_LEAVE_FILL = 'url(#fpm__main-c)';
|
|
5
|
+
const revokeSvg = `
|
|
6
|
+
<svg class="fpm__revoke-icon" width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
|
7
|
+
<defs>
|
|
8
|
+
<linearGradient x1="47.631%" y1="55.183%" x2="2.967%" y2="86.323%" id="fpm__revoke-a">
|
|
9
|
+
<stop stop-color="#FFF" offset="0%" />
|
|
10
|
+
<stop stop-color="#FFF" stop-opacity=".5" offset="100%" />
|
|
11
|
+
</linearGradient>
|
|
12
|
+
<linearGradient x1="5.297%" y1="43.016%" x2="38.238%" y2="79.932%" id="fpm__revoke-b">
|
|
13
|
+
<stop stop-color="#FFF" offset="0%" />
|
|
14
|
+
<stop stop-color="#FFF" stop-opacity="0" offset="100%" />
|
|
15
|
+
</linearGradient>
|
|
16
|
+
</defs>
|
|
17
|
+
<path
|
|
18
|
+
d="M13.388 7.108c.552 0 1.005.42 1.06.957l.006.11v1.224c0 .921.745 1.667 1.666 1.667h7.184c5.804 0 10.509 4.616 10.509 10.309 0 5.595-4.544 10.15-10.21 10.305l-.3.004H8.924c-.917 0-1.66-.729-1.66-1.628 0-.846.658-1.541 1.5-1.62l.16-.008h14.38c3.972 0 7.191-3.158 7.191-7.053 0-3.81-3.08-6.916-6.933-7.049l-.257-.004H10.029l-.109-.005H8.212c-.245 0-.482-.085-.67-.237l-.09-.082a1.066 1.066 0 0 1-.065-1.422l.079-.086 5.175-5.077c.2-.195.468-.305.747-.305z"
|
|
19
|
+
fill="url(#fpm__revoke-a)"
|
|
20
|
+
fill-rule="nonzero"
|
|
21
|
+
stroke="url(#fpm__revoke-b)"
|
|
22
|
+
stroke-width=".5"
|
|
23
|
+
/>
|
|
24
|
+
</svg>
|
|
25
|
+
`;
|
|
26
|
+
const exitSvg = `
|
|
27
|
+
<svg class="fpm__exit-icon width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
|
28
|
+
<defs>
|
|
29
|
+
<linearGradient x1="36.288%" y1="73.736%" x2="54.242%" y2="97.166%" id="fpm__exit-a">
|
|
30
|
+
<stop stop-color="#FFF" offset="0%" />
|
|
31
|
+
<stop stop-color="#FFF" stop-opacity=".5" offset="100%" />
|
|
32
|
+
</linearGradient>
|
|
33
|
+
<linearGradient x1="100%" y1="47.234%" x2="24.047%" y2="47.234%" id="fpm__exit-b">
|
|
34
|
+
<stop stop-color="#FFF" offset="0%" />
|
|
35
|
+
<stop stop-color="#FFF" stop-opacity=".005" offset="99.535%" />
|
|
36
|
+
<stop stop-color="#FFF" stop-opacity="0" offset="100%" />
|
|
37
|
+
</linearGradient>
|
|
38
|
+
</defs>
|
|
39
|
+
<path
|
|
40
|
+
d="M22 7a1.5 1.5 0 0 1 .144 2.993L22 10h-9a1.5 1.5 0 0 0-1.493 1.356l-.007.144v17a1.5 1.5 0 0 0 1.356 1.493L13 30h9a1.5 1.5 0 0 1 .144 2.993L22 33h-9a4.5 4.5 0 0 1-4.495-4.288L8.5 28.5v-17a4.5 4.5 0 0 1 4.288-4.495L13 7h9zm6.317 7.755a1 1 0 0 1 .7.286l4.856 4.764a1 1 0 0 1-.7 1.713h-5.856V21.5h-8.032a1.5 1.5 0 1 1 0-3h6.365c.92 0 1.666-.746 1.667-1.667v-1.078a1 1 0 0 1 1-1z"
|
|
41
|
+
fill="url(#fpm__exit-a)"
|
|
42
|
+
fill-rule="nonzero"
|
|
43
|
+
stroke="url(#fpm__exit-b)"
|
|
44
|
+
stroke-width=".5"
|
|
45
|
+
/>
|
|
46
|
+
</svg>
|
|
47
|
+
`;
|
|
48
|
+
const mainSvg = `
|
|
49
|
+
<svg class="fpm__main-icon" width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg">
|
|
50
|
+
<defs>
|
|
51
|
+
<mask id="fpm__main-icon-mask">
|
|
52
|
+
<rect id="fpm__main-icon-mask-black" x="0" y="0" width="30" height="30" fill="black"></rect>
|
|
53
|
+
<rect id="fpm__main-icon-mask-white" x="0" y="0" width="0" height="30" fill="white"></rect>
|
|
54
|
+
</mask>
|
|
55
|
+
<linearGradient id="fpm__main-a" x1="25.371%" y1="0%" x2="109.587%" y2="172.268%">
|
|
56
|
+
<stop stop-color="#FFF" offset="0%" />
|
|
57
|
+
<stop stop-color="#FFF" stop-opacity=".77" offset="44.051%" />
|
|
58
|
+
<stop stop-color="#FFF" stop-opacity=".201" offset="100%" />
|
|
59
|
+
</linearGradient>
|
|
60
|
+
<radialGradient id="fpm__main-b" fx="50%" fy="50%" r="50.864%" gradientTransform="matrix(-.98302 0 0 -1 .992 1)">
|
|
61
|
+
<stop stop-color="#2D7CFF" offset="0%" />
|
|
62
|
+
<stop stop-color="#2D7CFF" stop-opacity=".3" offset="100%" />
|
|
63
|
+
</radialGradient>
|
|
64
|
+
<radialGradient id="fpm__main-c" fx="50%" fy="50%" r="50.864%" gradientTransform="matrix(-.98302 0 0 -1 .992 1)">
|
|
65
|
+
<stop stop-opacity=".4" offset="0%" />
|
|
66
|
+
<stop stop-opacity=".12" offset="100%" />
|
|
67
|
+
</radialGradient>
|
|
68
|
+
</defs>
|
|
69
|
+
<g fill="none" fill-rule="evenodd">
|
|
70
|
+
<circle fill="url(#fpm__main-a)" cx="30" cy="30" r="30" />
|
|
71
|
+
<path
|
|
72
|
+
class="fpm__main-icon-path"
|
|
73
|
+
d="${MAIN_NORMAL_PATH}"
|
|
74
|
+
fill="${MAIN_MOUSE_LEAVE_FILL}"
|
|
75
|
+
fill-rule="nonzero"
|
|
76
|
+
transform="translate(14 14)"
|
|
77
|
+
/>
|
|
78
|
+
</g>
|
|
79
|
+
</svg>
|
|
80
|
+
`;
|
|
81
|
+
export default `
|
|
82
|
+
<style>
|
|
83
|
+
.fpm__revoke {
|
|
84
|
+
opacity: 0.3;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.fpm__revoke.enabled {
|
|
88
|
+
opacity: 0.7;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.fpm__revoke.enabled:hover {
|
|
92
|
+
opacity: 1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.fpm__revoke-icon {
|
|
96
|
+
width: 40px;
|
|
97
|
+
height: 40px;
|
|
98
|
+
margin-top: 10px;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
}
|
|
101
|
+
</style>
|
|
102
|
+
<div class="fpm_ui-bg"></div>
|
|
103
|
+
<div class="fpm_operating-space">
|
|
104
|
+
<div class="fpm__ui-item fpm__revoke">
|
|
105
|
+
${revokeSvg}
|
|
106
|
+
<span class="fpm__text fpm__revoke-text">撤销</span>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="fpm__ui-item fpm__main">
|
|
109
|
+
${mainSvg}
|
|
110
|
+
<span class="fpm__text fpm__main-text">添加</span>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="fpm__ui-item fpm__exit">
|
|
113
|
+
${exitSvg}
|
|
114
|
+
<span class="fpm__text fpm__exit-text">退出</span>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
`;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import MeasureController from '../../Controller';
|
|
2
|
+
export declare class MainBtnController {
|
|
3
|
+
private container;
|
|
4
|
+
private measureController;
|
|
5
|
+
private mainIconMaskTween?;
|
|
6
|
+
private mainElement;
|
|
7
|
+
constructor(measureController: MeasureController, container: Element);
|
|
8
|
+
dispose(): void;
|
|
9
|
+
private getMainElement;
|
|
10
|
+
private change2Add;
|
|
11
|
+
private change2Cancel;
|
|
12
|
+
private change2Done;
|
|
13
|
+
private onMouseEnter;
|
|
14
|
+
private onMouseLeave;
|
|
15
|
+
private onClick;
|
|
16
|
+
private editedLineChangeHandler;
|
|
17
|
+
private modeChangeHandler;
|
|
18
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import TWEEN from '@tweenjs/tween.js';
|
|
2
|
+
import { mainIconStyle as mainIconStyle, mainItemStyle as mainItemStyle } from './style';
|
|
3
|
+
import { tweenProgress } from '../../../shared-utils/animationFrame/BetterTween';
|
|
4
|
+
import { MAIN_NORMAL_PATH, MAIN_DONE_PATH, MAIN_MOUSE_ENTER_FILL, MAIN_MOUSE_LEAVE_FILL } from './HTML';
|
|
5
|
+
export class MainBtnController {
|
|
6
|
+
container;
|
|
7
|
+
measureController;
|
|
8
|
+
mainIconMaskTween;
|
|
9
|
+
mainElement;
|
|
10
|
+
constructor(measureController, container) {
|
|
11
|
+
this.measureController = measureController;
|
|
12
|
+
this.container = container;
|
|
13
|
+
this.mainElement = this.getMainElement();
|
|
14
|
+
Object.assign(this.mainElement.mainIcon.style, mainIconStyle);
|
|
15
|
+
Object.assign(this.mainElement.mainItem.style, mainItemStyle);
|
|
16
|
+
this.change2Add();
|
|
17
|
+
this.measureController.hook.on('modeChange', this.modeChangeHandler);
|
|
18
|
+
this.mainElement.mainIcon.addEventListener('click', this.onClick);
|
|
19
|
+
this.mainElement.mainIcon.addEventListener('mouseenter', this.onMouseEnter);
|
|
20
|
+
this.mainElement.mainIcon.addEventListener('mouseleave', this.onMouseLeave);
|
|
21
|
+
}
|
|
22
|
+
dispose() {
|
|
23
|
+
this.measureController.hook.off('modeChange', this.modeChangeHandler);
|
|
24
|
+
this.measureController.hook.off('editedLineChange', this.editedLineChangeHandler);
|
|
25
|
+
this.mainElement.mainIcon.removeEventListener('click', this.onClick);
|
|
26
|
+
this.mainElement.mainIcon.removeEventListener('mouseenter', this.onMouseEnter);
|
|
27
|
+
this.mainElement.mainIcon.removeEventListener('mouseleave', this.onMouseLeave);
|
|
28
|
+
}
|
|
29
|
+
getMainElement() {
|
|
30
|
+
const mainTextDom = this.container.querySelector('.fpm__main-text');
|
|
31
|
+
const mainItem = this.container.querySelector('.fpm__main');
|
|
32
|
+
const mainIcon = this.container.querySelector('.fpm__main-icon');
|
|
33
|
+
const pathDom = mainItem?.querySelector('.fpm__main-icon-path');
|
|
34
|
+
const maskWhiteRect = mainIcon?.querySelector('#fpm__main-icon-mask-white');
|
|
35
|
+
if (!mainItem || !mainTextDom || !mainIcon || !pathDom || !maskWhiteRect)
|
|
36
|
+
throw new Error('cannot find dom');
|
|
37
|
+
return { mainTextDom, mainItem, mainIcon, pathDom, maskWhiteRect };
|
|
38
|
+
}
|
|
39
|
+
change2Add() {
|
|
40
|
+
this.measureController.hook.off('editedLineChange', this.editedLineChangeHandler);
|
|
41
|
+
const { mainIcon, mainTextDom, pathDom } = this.mainElement;
|
|
42
|
+
mainIcon.style.transition = mainTextDom.innerText === '完成' ? 'none' : 'transform 300ms ease-in-out';
|
|
43
|
+
mainIcon.style.transform = 'rotate(0deg)';
|
|
44
|
+
mainTextDom.innerText = '添加';
|
|
45
|
+
pathDom?.setAttribute('d', MAIN_NORMAL_PATH);
|
|
46
|
+
}
|
|
47
|
+
change2Cancel(withAnime = true) {
|
|
48
|
+
const { mainIcon, mainTextDom, pathDom } = this.mainElement;
|
|
49
|
+
pathDom.setAttribute('d', MAIN_NORMAL_PATH);
|
|
50
|
+
pathDom.setAttribute('mask', '');
|
|
51
|
+
mainIcon.style.transition = withAnime ? 'transform 300ms ease-in-out' : 'none';
|
|
52
|
+
mainIcon.style.transform = 'rotate(45deg)';
|
|
53
|
+
mainTextDom && (mainTextDom.innerText = '取消');
|
|
54
|
+
this.measureController.hook.on('editedLineChange', this.editedLineChangeHandler);
|
|
55
|
+
}
|
|
56
|
+
change2Done() {
|
|
57
|
+
const { mainTextDom, mainIcon, pathDom, maskWhiteRect } = this.getMainElement();
|
|
58
|
+
if (mainTextDom.innerText === '完成')
|
|
59
|
+
return;
|
|
60
|
+
mainIcon.style.transition = 'none';
|
|
61
|
+
mainIcon.style.transform = 'rotate(0deg)';
|
|
62
|
+
mainTextDom.innerText = '完成';
|
|
63
|
+
pathDom.setAttribute('d', MAIN_DONE_PATH);
|
|
64
|
+
pathDom.setAttribute('mask', `url(#fpm__main-icon-mask)`);
|
|
65
|
+
this.mainIconMaskTween?.dispose();
|
|
66
|
+
this.mainIconMaskTween = tweenProgress()
|
|
67
|
+
.easing(TWEEN.Easing.Quartic.InOut)
|
|
68
|
+
.onUpdate(({ progress }) => {
|
|
69
|
+
maskWhiteRect.setAttribute('width', (progress * 30).toString());
|
|
70
|
+
})
|
|
71
|
+
.onComplete(() => this.mainIconMaskTween?.dispose())
|
|
72
|
+
.play();
|
|
73
|
+
}
|
|
74
|
+
/* 鼠标移入时变成蓝色 */
|
|
75
|
+
onMouseEnter = () => {
|
|
76
|
+
const { mainItem, pathDom } = this.mainElement;
|
|
77
|
+
mainItem.style.opacity = '1';
|
|
78
|
+
pathDom.setAttribute('fill', MAIN_MOUSE_ENTER_FILL);
|
|
79
|
+
};
|
|
80
|
+
/* 鼠标移出时变成灰色 */
|
|
81
|
+
onMouseLeave = () => {
|
|
82
|
+
const { mainItem, pathDom } = this.mainElement;
|
|
83
|
+
mainItem.style.opacity = '0.7';
|
|
84
|
+
pathDom.setAttribute('fill', MAIN_MOUSE_LEAVE_FILL);
|
|
85
|
+
};
|
|
86
|
+
onClick = () => {
|
|
87
|
+
const mode = this.measureController.getCurrentMode();
|
|
88
|
+
mode === 'Watch' ? this.measureController.changeMode('Edit') : this.measureController.save().changeMode('Watch');
|
|
89
|
+
};
|
|
90
|
+
editedLineChangeHandler = (lines) => {
|
|
91
|
+
// 线的数量大于 1 时,没有状态的变化
|
|
92
|
+
if (lines.length > 1)
|
|
93
|
+
return;
|
|
94
|
+
// 因为撤销导致的状态变更 -> 取消
|
|
95
|
+
if (lines.length === 0)
|
|
96
|
+
return this.change2Cancel(false);
|
|
97
|
+
this.change2Done();
|
|
98
|
+
};
|
|
99
|
+
modeChangeHandler = (mode) => {
|
|
100
|
+
mode === 'Watch' ? this.change2Add() : this.change2Cancel();
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import MeasureController, { Mode } from '../../../Controller';
|
|
2
|
+
export default class Revoke {
|
|
3
|
+
private container;
|
|
4
|
+
private revokeIcon;
|
|
5
|
+
private revokeItem;
|
|
6
|
+
private measureController;
|
|
7
|
+
constructor(measureController: MeasureController, container: Element);
|
|
8
|
+
dispose(): void;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
onModeChange: (mode: Mode) => void;
|
|
11
|
+
handleRevoke: () => () => void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export default class Revoke {
|
|
2
|
+
container;
|
|
3
|
+
revokeIcon;
|
|
4
|
+
revokeItem;
|
|
5
|
+
measureController;
|
|
6
|
+
constructor(measureController, container) {
|
|
7
|
+
this.measureController = measureController;
|
|
8
|
+
this.container = container;
|
|
9
|
+
const revokeIcon = this.container.querySelector('.fpm__revoke-icon');
|
|
10
|
+
const revokeItem = this.container.querySelector('.fpm__revoke');
|
|
11
|
+
if (!revokeIcon || !revokeItem)
|
|
12
|
+
throw new Error('不正确的选择器');
|
|
13
|
+
this.revokeIcon = revokeIcon;
|
|
14
|
+
this.revokeItem = revokeItem;
|
|
15
|
+
this.revokeIcon.addEventListener('click', this.onClick);
|
|
16
|
+
measureController.hook.on('modeChange', this.onModeChange);
|
|
17
|
+
}
|
|
18
|
+
dispose() {
|
|
19
|
+
this.revokeIcon.removeEventListener('click', this.onClick);
|
|
20
|
+
this.measureController.hook.off('modeChange', this.onModeChange);
|
|
21
|
+
}
|
|
22
|
+
onClick = () => {
|
|
23
|
+
this.measureController.revoke();
|
|
24
|
+
};
|
|
25
|
+
onModeChange = (mode) => {
|
|
26
|
+
if (mode !== 'Edit') {
|
|
27
|
+
this.revokeItem.classList.remove('enabled');
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.revokeItem.classList.add('enabled');
|
|
31
|
+
};
|
|
32
|
+
handleRevoke = () => {
|
|
33
|
+
return () => { };
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import MeasureController from '../../Controller';
|
|
2
|
+
export interface UIControllerParams {
|
|
3
|
+
container: Element;
|
|
4
|
+
}
|
|
5
|
+
export declare class UIController {
|
|
6
|
+
private revoke?;
|
|
7
|
+
private container;
|
|
8
|
+
private mainController?;
|
|
9
|
+
private disposers;
|
|
10
|
+
private measureController;
|
|
11
|
+
constructor(measureController: MeasureController, params: UIControllerParams);
|
|
12
|
+
dispose(): void;
|
|
13
|
+
show(): this;
|
|
14
|
+
hide(): this;
|
|
15
|
+
private handleExit;
|
|
16
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import htmlString from './HTML';
|
|
2
|
+
import { uiWrapperStyle, operatingSpaceStyle, controllerBackgroundStyle, buttonGroupStyle, exitIconStyle, exitItemStyle, textStyle, } from './style';
|
|
3
|
+
import { MainBtnController } from './MainBtnController';
|
|
4
|
+
import Revoke from './Revoke';
|
|
5
|
+
export class UIController {
|
|
6
|
+
revoke;
|
|
7
|
+
container;
|
|
8
|
+
mainController;
|
|
9
|
+
disposers = [];
|
|
10
|
+
measureController;
|
|
11
|
+
constructor(measureController, params) {
|
|
12
|
+
this.measureController = measureController;
|
|
13
|
+
this.container = document.createElement('div');
|
|
14
|
+
this.container.innerHTML = htmlString;
|
|
15
|
+
this.container.classList.add('fpm__ui-controller');
|
|
16
|
+
params.container.appendChild(this.container);
|
|
17
|
+
const textDoms = this.container.querySelectorAll('.fpm__text');
|
|
18
|
+
const UIItems = this.container.querySelectorAll('.fpm__ui-item');
|
|
19
|
+
const bgDom = this.container.querySelector('.fpm_ui-bg');
|
|
20
|
+
const operatingSpaceDom = this.container.querySelector('.fpm_operating-space');
|
|
21
|
+
Object.assign(bgDom?.style, controllerBackgroundStyle);
|
|
22
|
+
Object.assign(operatingSpaceDom?.style, operatingSpaceStyle);
|
|
23
|
+
Object.assign(this.container.style, uiWrapperStyle);
|
|
24
|
+
UIItems.forEach((item) => Object.assign(item.style, buttonGroupStyle));
|
|
25
|
+
textDoms.forEach((item) => Object.assign(item.style, textStyle));
|
|
26
|
+
}
|
|
27
|
+
dispose() {
|
|
28
|
+
this.hide();
|
|
29
|
+
this.container.remove();
|
|
30
|
+
}
|
|
31
|
+
show() {
|
|
32
|
+
this.container.style.opacity = '1';
|
|
33
|
+
this.container.style.transform = 'translate(0, 0)';
|
|
34
|
+
this.revoke = new Revoke(this.measureController, this.container);
|
|
35
|
+
this.mainController = new MainBtnController(this.measureController, this.container);
|
|
36
|
+
this.disposers.push(this.handleExit());
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
hide() {
|
|
40
|
+
this.container.style.opacity = '0';
|
|
41
|
+
this.container.style.transform = 'translate(0, 10px)';
|
|
42
|
+
this.revoke?.dispose();
|
|
43
|
+
this.mainController?.dispose();
|
|
44
|
+
this.disposers.forEach((disposer) => disposer());
|
|
45
|
+
this.disposers = [];
|
|
46
|
+
return this;
|
|
47
|
+
}
|
|
48
|
+
handleExit = () => {
|
|
49
|
+
const exitIcon = this.container.querySelector('.fpm__exit-icon');
|
|
50
|
+
const exitItem = this.container.querySelector('.fpm__exit');
|
|
51
|
+
if (!exitItem || !exitIcon)
|
|
52
|
+
throw new Error('cannot find dom');
|
|
53
|
+
Object.assign(exitItem.style, exitItemStyle);
|
|
54
|
+
Object.assign(exitIcon?.style, exitIconStyle);
|
|
55
|
+
const onMouseEnter = () => (exitItem.style.opacity = '1');
|
|
56
|
+
const onMouseLeave = () => (exitItem.style.opacity = '0.7');
|
|
57
|
+
const handleClick = () => {
|
|
58
|
+
this.measureController.disable();
|
|
59
|
+
};
|
|
60
|
+
exitIcon.addEventListener('click', handleClick);
|
|
61
|
+
exitIcon.addEventListener('mouseenter', onMouseEnter);
|
|
62
|
+
exitIcon.addEventListener('mouseleave', onMouseLeave);
|
|
63
|
+
return () => {
|
|
64
|
+
exitIcon.removeEventListener('click', handleClick);
|
|
65
|
+
exitIcon.removeEventListener('mouseenter', onMouseEnter);
|
|
66
|
+
exitIcon.removeEventListener('mouseleave', onMouseLeave);
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const addHoverImage = "//vrlab-static.ljcdn.com/release/web/measure/add-hover.944fffad.png";
|
|
2
|
+
export declare const addNormalImage = "//vrlab-static.ljcdn.com/release/web/measure/add-normal.39e967e9.png";
|
|
3
|
+
export declare const cancelHoverImage = "//vrlab-static.ljcdn.com/release/web/measure/canale-hover.74b37e24.png";
|
|
4
|
+
export declare const cancelNormalImage = "//vrlab-static.ljcdn.com/release/web/measure/cancle-normal.77bb326c.png";
|
|
5
|
+
export declare const doneHoverImage = "//vrlab-static.ljcdn.com/release/web/measure/done-hover.9e09438b.png";
|
|
6
|
+
export declare const doneNormalImage = "//vrlab-static.ljcdn.com/release/web/measure/done-normal.4fcddd73.png";
|
|
7
|
+
export declare const exitImage = "//vrlab-static.ljcdn.com/release/web/measure/exit.6693ad51.png";
|
|
8
|
+
export declare const revokeImage = "//vrlab-static.ljcdn.com/release/web/measure/revoke.3e424843.png";
|
|
9
|
+
export declare const uiWrapperStyle: Partial<CSSStyleDeclaration>;
|
|
10
|
+
export declare const operatingSpaceStyle: Partial<CSSStyleDeclaration>;
|
|
11
|
+
export declare const buttonGroupStyle: Partial<CSSStyleDeclaration>;
|
|
12
|
+
export declare const controllerBackgroundStyle: Partial<CSSStyleDeclaration>;
|
|
13
|
+
export declare const mainItemStyle: Partial<CSSStyleDeclaration>;
|
|
14
|
+
export declare const exitItemStyle: Partial<CSSStyleDeclaration>;
|
|
15
|
+
export declare const mainIconStyle: Partial<CSSStyleDeclaration>;
|
|
16
|
+
export declare const exitIconStyle: Partial<CSSStyleDeclaration>;
|
|
17
|
+
export declare const textStyle: Partial<CSSStyleDeclaration>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export const addHoverImage = '//vrlab-static.ljcdn.com/release/web/measure/add-hover.944fffad.png';
|
|
2
|
+
export const addNormalImage = '//vrlab-static.ljcdn.com/release/web/measure/add-normal.39e967e9.png';
|
|
3
|
+
export const cancelHoverImage = '//vrlab-static.ljcdn.com/release/web/measure/canale-hover.74b37e24.png';
|
|
4
|
+
export const cancelNormalImage = '//vrlab-static.ljcdn.com/release/web/measure/cancle-normal.77bb326c.png';
|
|
5
|
+
export const doneHoverImage = '//vrlab-static.ljcdn.com/release/web/measure/done-hover.9e09438b.png';
|
|
6
|
+
export const doneNormalImage = '//vrlab-static.ljcdn.com/release/web/measure/done-normal.4fcddd73.png';
|
|
7
|
+
export const exitImage = '//vrlab-static.ljcdn.com/release/web/measure/exit.6693ad51.png';
|
|
8
|
+
export const revokeImage = '//vrlab-static.ljcdn.com/release/web/measure/revoke.3e424843.png';
|
|
9
|
+
export const uiWrapperStyle = {
|
|
10
|
+
position: 'absolute',
|
|
11
|
+
top: '0',
|
|
12
|
+
left: '0',
|
|
13
|
+
width: '100%',
|
|
14
|
+
height: '100%',
|
|
15
|
+
opacity: '0',
|
|
16
|
+
transform: 'translate(0, 10px)',
|
|
17
|
+
transition: 'opacity 500ms ease-in-out, transform 500ms ease-in-out',
|
|
18
|
+
};
|
|
19
|
+
export const operatingSpaceStyle = {
|
|
20
|
+
position: 'absolute',
|
|
21
|
+
left: '50%',
|
|
22
|
+
bottom: '32px',
|
|
23
|
+
transform: 'translateX(-50%)',
|
|
24
|
+
width: '300px',
|
|
25
|
+
height: '89px',
|
|
26
|
+
display: 'flex',
|
|
27
|
+
justifyContent: 'space-between',
|
|
28
|
+
fontSize: '16px',
|
|
29
|
+
pointerEvents: 'all',
|
|
30
|
+
color: '#fff',
|
|
31
|
+
zIndex: '10',
|
|
32
|
+
};
|
|
33
|
+
export const buttonGroupStyle = {
|
|
34
|
+
height: '100%',
|
|
35
|
+
width: 'max-content',
|
|
36
|
+
display: 'flex',
|
|
37
|
+
flexDirection: 'column',
|
|
38
|
+
justifyContent: 'space-between',
|
|
39
|
+
alignItems: 'center',
|
|
40
|
+
};
|
|
41
|
+
// 操作区下方的背景
|
|
42
|
+
export const controllerBackgroundStyle = {
|
|
43
|
+
position: 'absolute',
|
|
44
|
+
bottom: '0',
|
|
45
|
+
left: '0',
|
|
46
|
+
opacity: '0.5',
|
|
47
|
+
width: '100%',
|
|
48
|
+
height: '184px',
|
|
49
|
+
background: `linear-gradient(180deg, rgba(0,0,0,0.00) 0%, #000000 100%)`,
|
|
50
|
+
zIndex: '0',
|
|
51
|
+
};
|
|
52
|
+
// item
|
|
53
|
+
export const mainItemStyle = {
|
|
54
|
+
margin: '0 80px',
|
|
55
|
+
opacity: '0.7',
|
|
56
|
+
};
|
|
57
|
+
export const exitItemStyle = {
|
|
58
|
+
opacity: '0.7',
|
|
59
|
+
};
|
|
60
|
+
// icon
|
|
61
|
+
export const mainIconStyle = {
|
|
62
|
+
width: '60px',
|
|
63
|
+
height: '60px',
|
|
64
|
+
backgroundSize: '100%',
|
|
65
|
+
cursor: 'pointer',
|
|
66
|
+
};
|
|
67
|
+
export const exitIconStyle = {
|
|
68
|
+
width: '40px',
|
|
69
|
+
height: '40px',
|
|
70
|
+
marginTop: '10px',
|
|
71
|
+
backgroundSize: '100%',
|
|
72
|
+
cursor: 'pointer',
|
|
73
|
+
};
|
|
74
|
+
// text
|
|
75
|
+
export const textStyle = {
|
|
76
|
+
cursor: 'default',
|
|
77
|
+
userSelect: 'none',
|
|
78
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FivePlugin } from '@realsee/five';
|
|
2
|
+
import MeasureController, { MeasurePluginParameter } from './Controller';
|
|
3
|
+
declare const PanoMeasurePlugin: FivePlugin<MeasurePluginParameter, PluginReturns>;
|
|
4
|
+
export default PanoMeasurePlugin;
|
|
5
|
+
export declare type PluginReturns = MeasureController;
|
|
6
|
+
export type { PluginEvent } from './typings/event.type';
|
|
7
|
+
export type { LineJson, PointJson } from './typings/data';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface LineCompletelyJson {
|
|
2
|
+
id: string;
|
|
3
|
+
points: PointJson[];
|
|
4
|
+
}
|
|
5
|
+
export interface PolylineCompletelyJson {
|
|
6
|
+
id: string;
|
|
7
|
+
points: PointJson[];
|
|
8
|
+
lines: LineCompletelyJson[];
|
|
9
|
+
}
|
|
10
|
+
export interface LineJson {
|
|
11
|
+
id: string;
|
|
12
|
+
points: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface PolylineJson {
|
|
15
|
+
id: string;
|
|
16
|
+
points: string[];
|
|
17
|
+
lines: string[];
|
|
18
|
+
}
|
|
19
|
+
export interface PointJson {
|
|
20
|
+
id: string;
|
|
21
|
+
lines: string[];
|
|
22
|
+
position: number[];
|
|
23
|
+
}
|
|
24
|
+
export interface PluginData {
|
|
25
|
+
lines: LineJson[];
|
|
26
|
+
points: PointJson[];
|
|
27
|
+
polylines: PolylineJson[];
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SubscribeEventMap } from '@realsee/five';
|
|
2
|
+
import { Vector3 } from 'three';
|
|
3
|
+
import { Mode } from '../Controller';
|
|
4
|
+
import { LineCompletelyJson } from './data';
|
|
5
|
+
interface ControllerEvent extends SubscribeEventMap {
|
|
6
|
+
/**
|
|
7
|
+
* Mode 变更
|
|
8
|
+
*/
|
|
9
|
+
modeChange: (mode: Mode) => void;
|
|
10
|
+
}
|
|
11
|
+
interface WatchEvent extends SubscribeEventMap {
|
|
12
|
+
selectedChange: (lines: LineCompletelyJson[]) => void;
|
|
13
|
+
}
|
|
14
|
+
interface EditEvent {
|
|
15
|
+
/**
|
|
16
|
+
* 编辑线条变更
|
|
17
|
+
*/
|
|
18
|
+
editedLineChange: (lines: LineCompletelyJson[]) => void;
|
|
19
|
+
anchorChange: (anchor: Vector3 | null) => void;
|
|
20
|
+
}
|
|
21
|
+
interface DragEvent extends SubscribeEventMap {
|
|
22
|
+
wantsDragLine: (event: {
|
|
23
|
+
point: string;
|
|
24
|
+
lines: string[];
|
|
25
|
+
}) => boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare type PluginEvent = ControllerEvent & EditEvent & WatchEvent & DragEvent;
|
|
28
|
+
export {};
|