@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,219 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
assign,
|
|
5
|
+
attr,
|
|
6
|
+
check_outros,
|
|
7
|
+
create_component,
|
|
8
|
+
destroy_component,
|
|
9
|
+
detach,
|
|
10
|
+
element,
|
|
11
|
+
empty,
|
|
12
|
+
get_spread_update,
|
|
13
|
+
group_outros,
|
|
14
|
+
init,
|
|
15
|
+
insert,
|
|
16
|
+
mount_component,
|
|
17
|
+
outro_and_destroy_block,
|
|
18
|
+
safe_not_equal,
|
|
19
|
+
transition_in,
|
|
20
|
+
transition_out,
|
|
21
|
+
update_keyed_each
|
|
22
|
+
} from "svelte/internal";
|
|
23
|
+
|
|
24
|
+
import RuleItem from './RuleItem';
|
|
25
|
+
|
|
26
|
+
function get_each_context(ctx, list, i) {
|
|
27
|
+
const child_ctx = ctx.slice();
|
|
28
|
+
child_ctx[7] = list[i][0];
|
|
29
|
+
child_ctx[8] = list[i][1];
|
|
30
|
+
return child_ctx;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// (12:2) {#each ruleLabelArray as [type, data] (type)}
|
|
34
|
+
function create_each_block(key_1, ctx) {
|
|
35
|
+
let first;
|
|
36
|
+
let ruleitem;
|
|
37
|
+
let current;
|
|
38
|
+
|
|
39
|
+
const ruleitem_spread_levels = [
|
|
40
|
+
{
|
|
41
|
+
type: /*type*/ ctx[7],
|
|
42
|
+
data: /*data*/ ctx[8],
|
|
43
|
+
pxmm: /*pxmm*/ ctx[0],
|
|
44
|
+
bounding: /*bounding*/ ctx[2]
|
|
45
|
+
}
|
|
46
|
+
];
|
|
47
|
+
|
|
48
|
+
let ruleitem_props = {};
|
|
49
|
+
|
|
50
|
+
for (let i = 0; i < ruleitem_spread_levels.length; i += 1) {
|
|
51
|
+
ruleitem_props = assign(ruleitem_props, ruleitem_spread_levels[i]);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
ruleitem = new RuleItem({ props: ruleitem_props });
|
|
55
|
+
|
|
56
|
+
return {
|
|
57
|
+
key: key_1,
|
|
58
|
+
first: null,
|
|
59
|
+
c() {
|
|
60
|
+
first = empty();
|
|
61
|
+
create_component(ruleitem.$$.fragment);
|
|
62
|
+
this.first = first;
|
|
63
|
+
},
|
|
64
|
+
m(target, anchor) {
|
|
65
|
+
insert(target, first, anchor);
|
|
66
|
+
mount_component(ruleitem, target, anchor);
|
|
67
|
+
current = true;
|
|
68
|
+
},
|
|
69
|
+
p(new_ctx, dirty) {
|
|
70
|
+
ctx = new_ctx;
|
|
71
|
+
|
|
72
|
+
const ruleitem_changes = (dirty & /*ruleLabelArray, pxmm, bounding*/ 7)
|
|
73
|
+
? get_spread_update(ruleitem_spread_levels, [
|
|
74
|
+
{
|
|
75
|
+
type: /*type*/ ctx[7],
|
|
76
|
+
data: /*data*/ ctx[8],
|
|
77
|
+
pxmm: /*pxmm*/ ctx[0],
|
|
78
|
+
bounding: /*bounding*/ ctx[2]
|
|
79
|
+
}
|
|
80
|
+
])
|
|
81
|
+
: {};
|
|
82
|
+
|
|
83
|
+
ruleitem.$set(ruleitem_changes);
|
|
84
|
+
},
|
|
85
|
+
i(local) {
|
|
86
|
+
if (current) return;
|
|
87
|
+
transition_in(ruleitem.$$.fragment, local);
|
|
88
|
+
current = true;
|
|
89
|
+
},
|
|
90
|
+
o(local) {
|
|
91
|
+
transition_out(ruleitem.$$.fragment, local);
|
|
92
|
+
current = false;
|
|
93
|
+
},
|
|
94
|
+
d(detaching) {
|
|
95
|
+
if (detaching) detach(first);
|
|
96
|
+
destroy_component(ruleitem, detaching);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function create_fragment(ctx) {
|
|
102
|
+
let div;
|
|
103
|
+
let each_blocks = [];
|
|
104
|
+
let each_1_lookup = new Map();
|
|
105
|
+
let current;
|
|
106
|
+
let each_value = /*ruleLabelArray*/ ctx[1];
|
|
107
|
+
const get_key = ctx => /*type*/ ctx[7];
|
|
108
|
+
|
|
109
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
110
|
+
let child_ctx = get_each_context(ctx, each_value, i);
|
|
111
|
+
let key = get_key(child_ctx);
|
|
112
|
+
each_1_lookup.set(key, each_blocks[i] = create_each_block(key, child_ctx));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
c() {
|
|
117
|
+
div = element("div");
|
|
118
|
+
|
|
119
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
120
|
+
each_blocks[i].c();
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
attr(div, "class", "floorplan-plugin__rulelabels");
|
|
124
|
+
},
|
|
125
|
+
m(target, anchor) {
|
|
126
|
+
insert(target, div, anchor);
|
|
127
|
+
|
|
128
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
129
|
+
each_blocks[i].m(div, null);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
current = true;
|
|
133
|
+
},
|
|
134
|
+
p(ctx, [dirty]) {
|
|
135
|
+
if (dirty & /*ruleLabelArray, pxmm, bounding*/ 7) {
|
|
136
|
+
each_value = /*ruleLabelArray*/ ctx[1];
|
|
137
|
+
group_outros();
|
|
138
|
+
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block, null, get_each_context);
|
|
139
|
+
check_outros();
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
i(local) {
|
|
143
|
+
if (current) return;
|
|
144
|
+
|
|
145
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
146
|
+
transition_in(each_blocks[i]);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
current = true;
|
|
150
|
+
},
|
|
151
|
+
o(local) {
|
|
152
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
153
|
+
transition_out(each_blocks[i]);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
current = false;
|
|
157
|
+
},
|
|
158
|
+
d(detaching) {
|
|
159
|
+
if (detaching) detach(div);
|
|
160
|
+
|
|
161
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
162
|
+
each_blocks[i].d();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function instance($$self, $$props, $$invalidate) {
|
|
169
|
+
let bounding;
|
|
170
|
+
let ruleLabelData;
|
|
171
|
+
let ruleLabelDataKeys;
|
|
172
|
+
let ruleLabelArray;
|
|
173
|
+
let { pxmm } = $$props;
|
|
174
|
+
let { floorIndex } = $$props;
|
|
175
|
+
let { floorplanData } = $$props;
|
|
176
|
+
|
|
177
|
+
$$self.$$set = $$props => {
|
|
178
|
+
if ('pxmm' in $$props) $$invalidate(0, pxmm = $$props.pxmm);
|
|
179
|
+
if ('floorIndex' in $$props) $$invalidate(3, floorIndex = $$props.floorIndex);
|
|
180
|
+
if ('floorplanData' in $$props) $$invalidate(4, floorplanData = $$props.floorplanData);
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
$$self.$$.update = () => {
|
|
184
|
+
if ($$self.$$.dirty & /*floorplanData*/ 16) {
|
|
185
|
+
$: $$invalidate(2, bounding = floorplanData.bounding);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 24) {
|
|
189
|
+
$: $$invalidate(5, ruleLabelData = floorplanData.floorDatas[floorIndex].rules);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
if ($$self.$$.dirty & /*ruleLabelData*/ 32) {
|
|
193
|
+
$: $$invalidate(6, ruleLabelDataKeys = Object.keys(ruleLabelData));
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if ($$self.$$.dirty & /*ruleLabelDataKeys, ruleLabelData*/ 96) {
|
|
197
|
+
$: $$invalidate(1, ruleLabelArray = ruleLabelDataKeys.map(key => [key, ruleLabelData[key]]));
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
return [
|
|
202
|
+
pxmm,
|
|
203
|
+
ruleLabelArray,
|
|
204
|
+
bounding,
|
|
205
|
+
floorIndex,
|
|
206
|
+
floorplanData,
|
|
207
|
+
ruleLabelData,
|
|
208
|
+
ruleLabelDataKeys
|
|
209
|
+
];
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
class Component extends SvelteComponent {
|
|
213
|
+
constructor(options) {
|
|
214
|
+
super();
|
|
215
|
+
init(this, options, instance, create_fragment, safe_not_equal, { pxmm: 0, floorIndex: 3, floorplanData: 4 });
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export default Component;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Five, Subscribe } from '@realsee/five';
|
|
2
|
+
import type { FloorplanEventHandlers } from './typings/events.type';
|
|
3
|
+
import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
4
|
+
import type { FloorplanRoomItem } from '../typings/floorplanData';
|
|
5
|
+
import { FLOOR_PLAN_ATTACHED_TO } from '../constant';
|
|
6
|
+
export interface ModelFloorplanParameterType {
|
|
7
|
+
northDesc?: string;
|
|
8
|
+
selector?: string | Element;
|
|
9
|
+
scale?: number;
|
|
10
|
+
modelOpacity?: number;
|
|
11
|
+
autoShowEnable?: boolean;
|
|
12
|
+
hoverEnable?: boolean;
|
|
13
|
+
compassEnable?: boolean;
|
|
14
|
+
ruleLabelsEnable?: boolean;
|
|
15
|
+
roomLabelsEnable?: boolean;
|
|
16
|
+
cameraImageUrl?: string;
|
|
17
|
+
attachedTo?: FLOOR_PLAN_ATTACHED_TO;
|
|
18
|
+
getLabelElement?: (room: FloorplanRoomItem) => Element | null;
|
|
19
|
+
}
|
|
20
|
+
export declare type ModelFloorplanPluginsConfigs = Omit<ModelFloorplanParameterType, 'selector' | 'scale'>;
|
|
21
|
+
export interface ModelFloorplanPluginsShowOpts {
|
|
22
|
+
floorIndex?: number;
|
|
23
|
+
isAutoShow?: boolean;
|
|
24
|
+
modelOpacity?: number;
|
|
25
|
+
immediately?: boolean;
|
|
26
|
+
userAction?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare const MODEL_FLOORPLAN_PLUGIN_NAME = "modelFloorplanPlugin";
|
|
29
|
+
export default class ModelFloorplanPluginController {
|
|
30
|
+
name: string;
|
|
31
|
+
/** 用于绑定事件钩子 */
|
|
32
|
+
hooks: Subscribe<FloorplanEventHandlers>;
|
|
33
|
+
/** 展示状态 */
|
|
34
|
+
visible: boolean;
|
|
35
|
+
/** 户型图大小 */
|
|
36
|
+
size: {
|
|
37
|
+
width: number;
|
|
38
|
+
height: number;
|
|
39
|
+
};
|
|
40
|
+
private app?;
|
|
41
|
+
private pxmm;
|
|
42
|
+
private five;
|
|
43
|
+
private panoIndex;
|
|
44
|
+
private floorIndex;
|
|
45
|
+
private configs;
|
|
46
|
+
private lastPanoramaLongitude;
|
|
47
|
+
private selector?;
|
|
48
|
+
private floorplanData?;
|
|
49
|
+
private wrapper?;
|
|
50
|
+
private container;
|
|
51
|
+
private showState;
|
|
52
|
+
/** 记录上次 show 的参数,如果不一致,需要 reject 掉正在进行的 showPromise */
|
|
53
|
+
private ModelFloorplanPluginsShowOpts?;
|
|
54
|
+
private showPromise?;
|
|
55
|
+
private showRejection?;
|
|
56
|
+
constructor(five: Five, params: ModelFloorplanParameterType);
|
|
57
|
+
dispose: () => void;
|
|
58
|
+
/** 加载户型图数据 */
|
|
59
|
+
load(data: FloorplanServerData): Promise<void>;
|
|
60
|
+
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
61
|
+
appendTo(wrapper: Element): this;
|
|
62
|
+
/** 更新户型图大小 */
|
|
63
|
+
updateSize: () => void;
|
|
64
|
+
/** 展示户型图
|
|
65
|
+
* 1. show 函数大部分情况下需要耗时
|
|
66
|
+
* 2. 如果当前已经在展示中,将不会触发任何事件
|
|
67
|
+
* 3. 如果展示过程被中断,将抛出错误
|
|
68
|
+
* 4. 多次调用 show 方法,只会触发一次 showAnimationEnded 事件,但是展示结果会取决于最后一次调用参数
|
|
69
|
+
* 5. 如果多次调用 show 方法,参数与上次参数不一致时,上次 show Promise 会被 reject
|
|
70
|
+
* @param opts.floorIndex 楼层
|
|
71
|
+
* @param opts.modelOpacity 模型透明度
|
|
72
|
+
* @param opts.immediately 是否立即展示
|
|
73
|
+
* @param opts.isAutoShow 是否是自动展示
|
|
74
|
+
*/
|
|
75
|
+
show: (opts?: ModelFloorplanPluginsShowOpts) => Promise<boolean>;
|
|
76
|
+
/** 隐藏户型图 */
|
|
77
|
+
hide: (options?: {
|
|
78
|
+
isAutoHide?: boolean;
|
|
79
|
+
userAction?: boolean;
|
|
80
|
+
}) => boolean;
|
|
81
|
+
/** 更改户型图楼层 */
|
|
82
|
+
changeFloor(floorIndex: number): void;
|
|
83
|
+
changeConfigs(params: ModelFloorplanPluginsConfigs): void;
|
|
84
|
+
/** 模型楼层高亮改变时,自动进行楼层切换 */
|
|
85
|
+
private onModelShownFloorChange;
|
|
86
|
+
private handleModelLoaded;
|
|
87
|
+
private handleClick;
|
|
88
|
+
private handleWantsTapGesture;
|
|
89
|
+
/** 从 Panorama 切换到其他模态时,记录当前的相机水平视角 */
|
|
90
|
+
private handleWantsChangeMode;
|
|
91
|
+
/** 监听模型态变化,只有在模型态才进行手势动作监听 */
|
|
92
|
+
private handleModeChange;
|
|
93
|
+
/** panoIndex 改变时,更新 floorIndex */
|
|
94
|
+
private handlePanoArrived;
|
|
95
|
+
/** 当户型图正在展示中的时候禁用惯性 */
|
|
96
|
+
private handleWantsInteriaPan;
|
|
97
|
+
/** 在户型图展示时阻止多指操作, 阻止鼠标放大 */
|
|
98
|
+
private handleWantsGesture;
|
|
99
|
+
/** 监听三维模型滑动
|
|
100
|
+
* 1. 在三维模型转动结束时,如果达到设置的阈值,会自动切换到户型图
|
|
101
|
+
* 2. 如何户型图已经展示,滑动时关闭户型图
|
|
102
|
+
*/
|
|
103
|
+
private handlePanGesture;
|
|
104
|
+
private render;
|
|
105
|
+
}
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import Main from './Components/Main';
|
|
2
|
+
import to from '../../shared-utils/to';
|
|
3
|
+
import formatData from '../utils/formatData';
|
|
4
|
+
import equal from '../../shared-utils/equal';
|
|
5
|
+
import getPxmm from '../../shared-utils/getPxmm';
|
|
6
|
+
import correctFiveState, { checkShowState } from './utils/correctFiveState';
|
|
7
|
+
import changeModelCanvasOpacity from '../../shared-utils/changeModelCanvasOpacity';
|
|
8
|
+
import { omit } from '../../shared-utils/filter';
|
|
9
|
+
import { Subscribe } from '@realsee/five';
|
|
10
|
+
import { FloorplanErrorType, FIVE_CAMERA_DEFAULT_FOV, SHOW_ANIME_DURATION } from './utils/constant';
|
|
11
|
+
export const MODEL_FLOORPLAN_PLUGIN_NAME = 'modelFloorplanPlugin';
|
|
12
|
+
export default class ModelFloorplanPluginController {
|
|
13
|
+
name = MODEL_FLOORPLAN_PLUGIN_NAME;
|
|
14
|
+
/** 用于绑定事件钩子 */
|
|
15
|
+
hooks;
|
|
16
|
+
/** 展示状态 */
|
|
17
|
+
visible = false;
|
|
18
|
+
/** 户型图大小 */
|
|
19
|
+
size = { width: 0, height: 0 };
|
|
20
|
+
app = undefined;
|
|
21
|
+
pxmm = 0;
|
|
22
|
+
five;
|
|
23
|
+
panoIndex = 0;
|
|
24
|
+
floorIndex = 0;
|
|
25
|
+
configs = {};
|
|
26
|
+
lastPanoramaLongitude = 0;
|
|
27
|
+
selector;
|
|
28
|
+
floorplanData;
|
|
29
|
+
wrapper;
|
|
30
|
+
container = document.createElement('div');
|
|
31
|
+
showState;
|
|
32
|
+
/** 记录上次 show 的参数,如果不一致,需要 reject 掉正在进行的 showPromise */
|
|
33
|
+
ModelFloorplanPluginsShowOpts;
|
|
34
|
+
showPromise;
|
|
35
|
+
showRejection;
|
|
36
|
+
constructor(five, params) {
|
|
37
|
+
this.five = five;
|
|
38
|
+
this.hooks = new Subscribe();
|
|
39
|
+
this.selector = params.selector;
|
|
40
|
+
this.configs = omit(params, ['selector']);
|
|
41
|
+
this.showState = { longitude: 0, latitude: Math.PI / 2, fov: FIVE_CAMERA_DEFAULT_FOV / (params?.scale ?? 1) };
|
|
42
|
+
// 设置 container 样式
|
|
43
|
+
this.container.classList.add('floorplan-plugin');
|
|
44
|
+
Object.assign(this.container.style, {
|
|
45
|
+
position: 'absolute',
|
|
46
|
+
left: '50%',
|
|
47
|
+
top: '50%',
|
|
48
|
+
transform: 'translate(-50%, -50%)',
|
|
49
|
+
pointerEvents: 'none',
|
|
50
|
+
zIndex: 10,
|
|
51
|
+
});
|
|
52
|
+
// 如果初始化的时候模型已经加载完毕了,就不用再等 modelLoaded
|
|
53
|
+
this.five.model.loaded ? this.handleModelLoaded() : five.once('modelLoaded', this.handleModelLoaded);
|
|
54
|
+
five.once('dispose', this.dispose);
|
|
55
|
+
five.on('modeChange', this.handleModeChange);
|
|
56
|
+
five.on('panoArrived', this.handlePanoArrived);
|
|
57
|
+
five.on('wantsChangeMode', this.handleWantsChangeMode);
|
|
58
|
+
five.on('wantsInteriaPan', this.handleWantsInteriaPan);
|
|
59
|
+
five.on('modelShownFloorChange', this.onModelShownFloorChange);
|
|
60
|
+
}
|
|
61
|
+
dispose = () => {
|
|
62
|
+
const five = this.five;
|
|
63
|
+
this.hide();
|
|
64
|
+
this.app?.$destroy();
|
|
65
|
+
this.container?.remove();
|
|
66
|
+
five.off('modelLoaded', this.handleModelLoaded);
|
|
67
|
+
five.off('modeChange', this.handleModeChange);
|
|
68
|
+
five.off('panGesture', this.handlePanGesture);
|
|
69
|
+
five.off('panoArrived', this.handlePanoArrived);
|
|
70
|
+
five.off('wantsChangeMode', this.handleWantsChangeMode);
|
|
71
|
+
five.off('wantsInteriaPan', this.handleWantsInteriaPan);
|
|
72
|
+
five.off('wantsTapGesture', this.handleWantsTapGesture);
|
|
73
|
+
five.off('modelShownFloorChange', this.onModelShownFloorChange);
|
|
74
|
+
};
|
|
75
|
+
/** 加载户型图数据 */
|
|
76
|
+
async load(data) {
|
|
77
|
+
const copyData = JSON.parse(JSON.stringify(data));
|
|
78
|
+
this.floorplanData = await formatData(copyData);
|
|
79
|
+
this.render();
|
|
80
|
+
}
|
|
81
|
+
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
82
|
+
appendTo(wrapper) {
|
|
83
|
+
this.wrapper = wrapper;
|
|
84
|
+
wrapper.appendChild(this.container);
|
|
85
|
+
return this;
|
|
86
|
+
}
|
|
87
|
+
/** 更新户型图大小 */
|
|
88
|
+
updateSize = () => {
|
|
89
|
+
if (!this.floorplanData)
|
|
90
|
+
return;
|
|
91
|
+
if (!checkShowState(this.five, this.showState))
|
|
92
|
+
return;
|
|
93
|
+
if (!this.container || !this.wrapper)
|
|
94
|
+
return;
|
|
95
|
+
// 计算户型图展示大小
|
|
96
|
+
const { min, max } = this.floorplanData.bounding;
|
|
97
|
+
const width = max.x - min.x;
|
|
98
|
+
const height = max.y - min.y;
|
|
99
|
+
// 每毫米对应的 px 值
|
|
100
|
+
const options = this.configs.attachedTo ? { attachedTo: this.configs.attachedTo } : undefined;
|
|
101
|
+
const pxmm = getPxmm(this.five, this.wrapper, this.floorIndex, options);
|
|
102
|
+
const _width = Math.ceil(width * pxmm);
|
|
103
|
+
const _height = Math.ceil(height * pxmm);
|
|
104
|
+
if (this.size.width === _width && this.size.height === _height)
|
|
105
|
+
return;
|
|
106
|
+
this.pxmm = pxmm;
|
|
107
|
+
this.size = { width: _width, height: _height };
|
|
108
|
+
this.container.style.width = _width + 'px';
|
|
109
|
+
this.container.style.height = _height + 'px';
|
|
110
|
+
};
|
|
111
|
+
/** 展示户型图
|
|
112
|
+
* 1. show 函数大部分情况下需要耗时
|
|
113
|
+
* 2. 如果当前已经在展示中,将不会触发任何事件
|
|
114
|
+
* 3. 如果展示过程被中断,将抛出错误
|
|
115
|
+
* 4. 多次调用 show 方法,只会触发一次 showAnimationEnded 事件,但是展示结果会取决于最后一次调用参数
|
|
116
|
+
* 5. 如果多次调用 show 方法,参数与上次参数不一致时,上次 show Promise 会被 reject
|
|
117
|
+
* @param opts.floorIndex 楼层
|
|
118
|
+
* @param opts.modelOpacity 模型透明度
|
|
119
|
+
* @param opts.immediately 是否立即展示
|
|
120
|
+
* @param opts.isAutoShow 是否是自动展示
|
|
121
|
+
*/
|
|
122
|
+
show = async (opts) => {
|
|
123
|
+
// 已经在展示中了
|
|
124
|
+
if (!this.showPromise && this.visible)
|
|
125
|
+
return true;
|
|
126
|
+
if (!this.five.model?.loaded)
|
|
127
|
+
throw new Error(FloorplanErrorType.ModelNotLoaded);
|
|
128
|
+
if (!this.floorplanData)
|
|
129
|
+
throw new Error(FloorplanErrorType.DataNotLoaded);
|
|
130
|
+
this.visible = true;
|
|
131
|
+
if (this.showPromise) {
|
|
132
|
+
const sameWithLastOpts = equal(opts, this.ModelFloorplanPluginsShowOpts, { deep: false });
|
|
133
|
+
if (!!this.showPromise && sameWithLastOpts)
|
|
134
|
+
return this.showPromise;
|
|
135
|
+
if (!!this.showPromise && !sameWithLastOpts)
|
|
136
|
+
this.showRejection?.(FloorplanErrorType.DifferentShowParams);
|
|
137
|
+
}
|
|
138
|
+
this.ModelFloorplanPluginsShowOpts = opts;
|
|
139
|
+
const getShowPromise = async () => {
|
|
140
|
+
let hasRejected = false;
|
|
141
|
+
let externalErrorMsg;
|
|
142
|
+
this.showRejection = (errorMsg) => {
|
|
143
|
+
hasRejected = true;
|
|
144
|
+
externalErrorMsg = errorMsg;
|
|
145
|
+
};
|
|
146
|
+
const [correctError] = await to(correctFiveState(this.five, this.showState, opts?.userAction));
|
|
147
|
+
if (correctError)
|
|
148
|
+
throw correctError;
|
|
149
|
+
// 异步结束要判断当前是不是被中断了,是不是调用了隐藏
|
|
150
|
+
if (hasRejected)
|
|
151
|
+
throw externalErrorMsg ? new Error(externalErrorMsg) : new Error(FloorplanErrorType.UnknownError);
|
|
152
|
+
if (!this.visible)
|
|
153
|
+
throw new Error(FloorplanErrorType.UnknownError);
|
|
154
|
+
// 更新户型图状态
|
|
155
|
+
this.visible = true;
|
|
156
|
+
// 更新户型图大小
|
|
157
|
+
this.updateSize();
|
|
158
|
+
// 高亮当前楼层,有两个目的
|
|
159
|
+
// 1. 点击模型时,可以跳转到当前楼层的点位上
|
|
160
|
+
// 2. 当前楼层比较小时,户型图也比较小,如果展示全部楼层,会展示户型图外有一圈模型
|
|
161
|
+
if (opts?.floorIndex)
|
|
162
|
+
this.floorIndex = opts.floorIndex;
|
|
163
|
+
this.five.model.show(this.floorIndex);
|
|
164
|
+
// 模型消失, 渲染户型图
|
|
165
|
+
const modelOpacity = opts?.modelOpacity ?? this.configs.modelOpacity ?? 1;
|
|
166
|
+
const renderDuration = opts?.immediately ? 0 : SHOW_ANIME_DURATION;
|
|
167
|
+
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
168
|
+
this.render(renderDuration);
|
|
169
|
+
// 展示之后的事件监听
|
|
170
|
+
this.five.on('wantsGesture', this.handleWantsGesture);
|
|
171
|
+
this.five.on('wantsTapGesture', this.handleWantsTapGesture);
|
|
172
|
+
return true;
|
|
173
|
+
};
|
|
174
|
+
const showPromise = getShowPromise()
|
|
175
|
+
.then(() => {
|
|
176
|
+
this.hooks.emit('showAnimationEnded', { auto: !!opts?.isAutoShow, userAction: opts?.userAction ?? true });
|
|
177
|
+
return true;
|
|
178
|
+
})
|
|
179
|
+
.catch((error) => {
|
|
180
|
+
// 自动展示的报错内部处理
|
|
181
|
+
if (opts?.isAutoShow)
|
|
182
|
+
return false;
|
|
183
|
+
if (!(error instanceof Error))
|
|
184
|
+
return false;
|
|
185
|
+
// 非自动展示的报错继续向外抛出
|
|
186
|
+
throw error;
|
|
187
|
+
})
|
|
188
|
+
.finally(() => {
|
|
189
|
+
this.showPromise = undefined;
|
|
190
|
+
this.showRejection = undefined;
|
|
191
|
+
});
|
|
192
|
+
this.showPromise = showPromise;
|
|
193
|
+
return showPromise;
|
|
194
|
+
};
|
|
195
|
+
/** 隐藏户型图 */
|
|
196
|
+
hide = (options) => {
|
|
197
|
+
if (this.size.width === 0)
|
|
198
|
+
return true;
|
|
199
|
+
if (this.visible === false)
|
|
200
|
+
return true;
|
|
201
|
+
const isAutoHide = !!options?.isAutoHide;
|
|
202
|
+
this.five.off('wantsGesture', this.handleWantsGesture);
|
|
203
|
+
this.five.off('wantsTapGesture', this.handleWantsTapGesture);
|
|
204
|
+
this.visible = false;
|
|
205
|
+
this.showRejection?.(FloorplanErrorType.BreakOffByHide);
|
|
206
|
+
changeModelCanvasOpacity(this.five, 1, 0);
|
|
207
|
+
this.render();
|
|
208
|
+
this.hooks.emit('hide', { auto: isAutoHide, userAction: options?.userAction ?? true });
|
|
209
|
+
return true;
|
|
210
|
+
};
|
|
211
|
+
/** 更改户型图楼层 */
|
|
212
|
+
changeFloor(floorIndex) {
|
|
213
|
+
this.five.model.show(floorIndex);
|
|
214
|
+
this.floorIndex = floorIndex;
|
|
215
|
+
this.render();
|
|
216
|
+
}
|
|
217
|
+
changeConfigs(params) {
|
|
218
|
+
Object.assign(this.configs, params);
|
|
219
|
+
if (!this.container)
|
|
220
|
+
return;
|
|
221
|
+
this.render();
|
|
222
|
+
}
|
|
223
|
+
/** 模型楼层高亮改变时,自动进行楼层切换 */
|
|
224
|
+
onModelShownFloorChange = (shownFloor) => {
|
|
225
|
+
if (shownFloor === null)
|
|
226
|
+
return;
|
|
227
|
+
this.floorIndex = shownFloor;
|
|
228
|
+
this.updateSize();
|
|
229
|
+
this.render();
|
|
230
|
+
};
|
|
231
|
+
handleModelLoaded = () => {
|
|
232
|
+
if (this.wrapper)
|
|
233
|
+
return;
|
|
234
|
+
if (!this.selector)
|
|
235
|
+
return;
|
|
236
|
+
const wrapper = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
237
|
+
if (!wrapper)
|
|
238
|
+
throw new Error('不正确的父容器选择器');
|
|
239
|
+
this.wrapper = wrapper;
|
|
240
|
+
wrapper.append(this.container);
|
|
241
|
+
};
|
|
242
|
+
handleClick = () => {
|
|
243
|
+
if (!this.visible)
|
|
244
|
+
return;
|
|
245
|
+
const prevented = this.hooks.emit('click');
|
|
246
|
+
if (prevented)
|
|
247
|
+
return false;
|
|
248
|
+
};
|
|
249
|
+
handleWantsTapGesture = () => this.handleClick();
|
|
250
|
+
/** 从 Panorama 切换到其他模态时,记录当前的相机水平视角 */
|
|
251
|
+
handleWantsChangeMode = (mode) => {
|
|
252
|
+
if (mode !== 'Panorama') {
|
|
253
|
+
this.lastPanoramaLongitude = this.five.getCurrentState().longitude;
|
|
254
|
+
}
|
|
255
|
+
if (mode !== 'Floorplan')
|
|
256
|
+
this.hide();
|
|
257
|
+
};
|
|
258
|
+
/** 监听模型态变化,只有在模型态才进行手势动作监听 */
|
|
259
|
+
handleModeChange = (mode) => {
|
|
260
|
+
if (mode === 'Floorplan') {
|
|
261
|
+
this.five.on('panGesture', this.handlePanGesture);
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
this.hide();
|
|
265
|
+
this.five.off('panGesture', this.handlePanGesture);
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
/** panoIndex 改变时,更新 floorIndex */
|
|
269
|
+
handlePanoArrived = (index) => {
|
|
270
|
+
if (!this.five?.work)
|
|
271
|
+
return;
|
|
272
|
+
this.panoIndex = index;
|
|
273
|
+
this.floorIndex = this.five.work.observers[index].floorIndex;
|
|
274
|
+
};
|
|
275
|
+
/** 当户型图正在展示中的时候禁用惯性 */
|
|
276
|
+
handleWantsInteriaPan = () => {
|
|
277
|
+
if (this.visible)
|
|
278
|
+
return false;
|
|
279
|
+
};
|
|
280
|
+
/** 在户型图展示时阻止多指操作, 阻止鼠标放大 */
|
|
281
|
+
handleWantsGesture = (type, pointers) => {
|
|
282
|
+
if (!this.visible)
|
|
283
|
+
return;
|
|
284
|
+
if (pointers.length > 1)
|
|
285
|
+
return false;
|
|
286
|
+
if (type === 'mouseWheel')
|
|
287
|
+
return false;
|
|
288
|
+
};
|
|
289
|
+
/** 监听三维模型滑动
|
|
290
|
+
* 1. 在三维模型转动结束时,如果达到设置的阈值,会自动切换到户型图
|
|
291
|
+
* 2. 如何户型图已经展示,滑动时关闭户型图
|
|
292
|
+
*/
|
|
293
|
+
handlePanGesture = async ({ latitude, longitude }, isFinal) => {
|
|
294
|
+
if (this.configs.autoShowEnable === false)
|
|
295
|
+
return;
|
|
296
|
+
// 如果操作结束后,户型图还在展示中,初始化模型状态
|
|
297
|
+
if (isFinal && this.visible)
|
|
298
|
+
return this.five.setState(this.showState, true);
|
|
299
|
+
// 满足消失的条件:
|
|
300
|
+
// 水平旋转角大于正负 5 度 || 俯仰角度大于 5 度
|
|
301
|
+
const latitudeHide = Math.abs(latitude - Math.PI / 2) > (5 * Math.PI) / 180;
|
|
302
|
+
const longitudeHide = longitude > 5 * (Math.PI / 180) && longitude < 355 * (Math.PI / 180);
|
|
303
|
+
const canHide = latitudeHide || longitudeHide;
|
|
304
|
+
if (this.visible && canHide)
|
|
305
|
+
return this.hide({ isAutoHide: true });
|
|
306
|
+
if (this.five.camera.fov / FIVE_CAMERA_DEFAULT_FOV < 0.8)
|
|
307
|
+
return;
|
|
308
|
+
// 户型图展示条件:
|
|
309
|
+
// 水平旋转角正负 30 度 && 俯仰角度小于 10 度
|
|
310
|
+
const latitudeVisible = Math.abs(latitude - Math.PI / 2) < (10 * Math.PI) / 180;
|
|
311
|
+
const longitudeVisible = longitude < 30 * (Math.PI / 180) || longitude > 330 * (Math.PI / 180);
|
|
312
|
+
if (isFinal && !this.visible && latitudeVisible && longitudeVisible) {
|
|
313
|
+
// 当手指离开时需要等惯性结束之后在进行判断
|
|
314
|
+
const handleInteriaPan = async (any, isFinal) => {
|
|
315
|
+
if (!isFinal)
|
|
316
|
+
return;
|
|
317
|
+
this.five.off('interiaPan', handleInteriaPan);
|
|
318
|
+
await this.show({ isAutoShow: true });
|
|
319
|
+
};
|
|
320
|
+
this.five.on('interiaPan', handleInteriaPan);
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
render(duration) {
|
|
325
|
+
if (!this.container || !this.floorplanData)
|
|
326
|
+
return;
|
|
327
|
+
if (this.size.width === 0)
|
|
328
|
+
return;
|
|
329
|
+
const { northDesc, hoverEnable, cameraImageUrl, getLabelElement, roomLabelsEnable, compassEnable, ruleLabelsEnable } = this.configs;
|
|
330
|
+
const props = {
|
|
331
|
+
northDesc: northDesc ?? '北',
|
|
332
|
+
five: this.five,
|
|
333
|
+
pxmm: this.pxmm,
|
|
334
|
+
cameraImageUrl,
|
|
335
|
+
visible: this.visible,
|
|
336
|
+
duration: duration ?? 0,
|
|
337
|
+
panoIndex: this.panoIndex,
|
|
338
|
+
floorIndex: this.floorIndex,
|
|
339
|
+
floorplanData: this.floorplanData,
|
|
340
|
+
hoverEnable: hoverEnable ?? false,
|
|
341
|
+
compassEnable: compassEnable ?? true,
|
|
342
|
+
ruleLabelsEnable: ruleLabelsEnable ?? true,
|
|
343
|
+
roomLabelsEnable: roomLabelsEnable ?? true,
|
|
344
|
+
lastPanoramaLongitude: this.lastPanoramaLongitude,
|
|
345
|
+
getLabelElement,
|
|
346
|
+
onRoomHeightClick: this.handleClick,
|
|
347
|
+
};
|
|
348
|
+
if (!this.app) {
|
|
349
|
+
this.app = new Main({
|
|
350
|
+
target: this.container,
|
|
351
|
+
intro: true,
|
|
352
|
+
props,
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
356
|
+
this.app.$set(props);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
|
+
import FloorplanPluginController, { ModelFloorplanParameterType } from './Controller';
|
|
3
|
+
export declare const ModelFloorplanPlugin: FivePlugin<ModelFloorplanParameterType, ModelFloorplanPluginReturnType>;
|
|
4
|
+
export default ModelFloorplanPlugin;
|
|
5
|
+
export declare type ModelFloorplanPluginReturnType = FloorplanPluginController;
|
|
6
|
+
export type { ModelFloorplanViewEvent } from './typings/events.type';
|
|
7
|
+
export type { FloorplanErrorType as ModelFloorplanErrorType } from './utils/constant';
|
|
8
|
+
export type { ModelFloorplanPluginsConfigs, ModelFloorplanParameterType } from './Controller';
|
|
9
|
+
export type { FloorplanEventHandlers as ModelFloorplanEventHandlers } from './typings/events.type';
|