@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,312 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
add_render_callback,
|
|
5
|
+
add_resize_listener,
|
|
6
|
+
append,
|
|
7
|
+
append_styles,
|
|
8
|
+
assign,
|
|
9
|
+
attr,
|
|
10
|
+
check_outros,
|
|
11
|
+
create_component,
|
|
12
|
+
destroy_component,
|
|
13
|
+
detach,
|
|
14
|
+
element,
|
|
15
|
+
get_spread_update,
|
|
16
|
+
group_outros,
|
|
17
|
+
init,
|
|
18
|
+
insert,
|
|
19
|
+
mount_component,
|
|
20
|
+
safe_not_equal,
|
|
21
|
+
set_style,
|
|
22
|
+
space,
|
|
23
|
+
transition_in,
|
|
24
|
+
transition_out
|
|
25
|
+
} from "svelte/internal";
|
|
26
|
+
|
|
27
|
+
import { onMount } from 'svelte';
|
|
28
|
+
import Camera from './Camera';
|
|
29
|
+
import CurrentFloor from './CurrentFloor/CurrentFloor';
|
|
30
|
+
|
|
31
|
+
function add_css(target) {
|
|
32
|
+
append_styles(target, "svelte-7d8ub2", ".plugin-floorplan-radar.svelte-7d8ub2{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-7d8ub2{position:relative}");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// (41:2) {#if clientWidth !== 0}
|
|
36
|
+
function create_if_block(ctx) {
|
|
37
|
+
let div;
|
|
38
|
+
let currentfloor;
|
|
39
|
+
let t;
|
|
40
|
+
let camera;
|
|
41
|
+
let style_width = `${/*contentWidth*/ ctx[7]}px`;
|
|
42
|
+
let style_height = `${/*contentHeight*/ ctx[10]}px`;
|
|
43
|
+
let current;
|
|
44
|
+
|
|
45
|
+
const currentfloor_spread_levels = [
|
|
46
|
+
{
|
|
47
|
+
five: /*five*/ ctx[0],
|
|
48
|
+
pxmm: /*pxmm*/ ctx[8],
|
|
49
|
+
floorIndex: /*floorIndex*/ ctx[9],
|
|
50
|
+
floorplanData: /*floorplanData*/ ctx[2],
|
|
51
|
+
hoverEnable: /*hoverEnable*/ ctx[1],
|
|
52
|
+
extraObjects: /*extraObjects*/ ctx[4]
|
|
53
|
+
}
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
let currentfloor_props = {};
|
|
57
|
+
|
|
58
|
+
for (let i = 0; i < currentfloor_spread_levels.length; i += 1) {
|
|
59
|
+
currentfloor_props = assign(currentfloor_props, currentfloor_spread_levels[i]);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
currentfloor = new CurrentFloor({ props: currentfloor_props });
|
|
63
|
+
|
|
64
|
+
const camera_spread_levels = [
|
|
65
|
+
{
|
|
66
|
+
pxmm: /*pxmm*/ ctx[8],
|
|
67
|
+
five: /*five*/ ctx[0],
|
|
68
|
+
floorplanData: /*floorplanData*/ ctx[2],
|
|
69
|
+
cameraImageUrl: /*cameraImageUrl*/ ctx[3]
|
|
70
|
+
}
|
|
71
|
+
];
|
|
72
|
+
|
|
73
|
+
let camera_props = {};
|
|
74
|
+
|
|
75
|
+
for (let i = 0; i < camera_spread_levels.length; i += 1) {
|
|
76
|
+
camera_props = assign(camera_props, camera_spread_levels[i]);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
camera = new Camera({ props: camera_props });
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
c() {
|
|
83
|
+
div = element("div");
|
|
84
|
+
create_component(currentfloor.$$.fragment);
|
|
85
|
+
t = space();
|
|
86
|
+
create_component(camera.$$.fragment);
|
|
87
|
+
attr(div, "class", "plugin-floorplan-radar-container svelte-7d8ub2");
|
|
88
|
+
set_style(div, "width", style_width, false);
|
|
89
|
+
set_style(div, "height", style_height, false);
|
|
90
|
+
},
|
|
91
|
+
m(target, anchor) {
|
|
92
|
+
insert(target, div, anchor);
|
|
93
|
+
mount_component(currentfloor, div, null);
|
|
94
|
+
append(div, t);
|
|
95
|
+
mount_component(camera, div, null);
|
|
96
|
+
current = true;
|
|
97
|
+
},
|
|
98
|
+
p(ctx, dirty) {
|
|
99
|
+
const currentfloor_changes = (dirty & /*five, pxmm, floorIndex, floorplanData, hoverEnable, extraObjects*/ 791)
|
|
100
|
+
? get_spread_update(currentfloor_spread_levels, [
|
|
101
|
+
{
|
|
102
|
+
five: /*five*/ ctx[0],
|
|
103
|
+
pxmm: /*pxmm*/ ctx[8],
|
|
104
|
+
floorIndex: /*floorIndex*/ ctx[9],
|
|
105
|
+
floorplanData: /*floorplanData*/ ctx[2],
|
|
106
|
+
hoverEnable: /*hoverEnable*/ ctx[1],
|
|
107
|
+
extraObjects: /*extraObjects*/ ctx[4]
|
|
108
|
+
}
|
|
109
|
+
])
|
|
110
|
+
: {};
|
|
111
|
+
|
|
112
|
+
currentfloor.$set(currentfloor_changes);
|
|
113
|
+
|
|
114
|
+
const camera_changes = (dirty & /*pxmm, five, floorplanData, cameraImageUrl*/ 269)
|
|
115
|
+
? get_spread_update(camera_spread_levels, [
|
|
116
|
+
{
|
|
117
|
+
pxmm: /*pxmm*/ ctx[8],
|
|
118
|
+
five: /*five*/ ctx[0],
|
|
119
|
+
floorplanData: /*floorplanData*/ ctx[2],
|
|
120
|
+
cameraImageUrl: /*cameraImageUrl*/ ctx[3]
|
|
121
|
+
}
|
|
122
|
+
])
|
|
123
|
+
: {};
|
|
124
|
+
|
|
125
|
+
camera.$set(camera_changes);
|
|
126
|
+
|
|
127
|
+
if (dirty & /*contentWidth*/ 128 && style_width !== (style_width = `${/*contentWidth*/ ctx[7]}px`)) {
|
|
128
|
+
set_style(div, "width", style_width, false);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (dirty & /*contentHeight*/ 1024 && style_height !== (style_height = `${/*contentHeight*/ ctx[10]}px`)) {
|
|
132
|
+
set_style(div, "height", style_height, false);
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
i(local) {
|
|
136
|
+
if (current) return;
|
|
137
|
+
transition_in(currentfloor.$$.fragment, local);
|
|
138
|
+
transition_in(camera.$$.fragment, local);
|
|
139
|
+
current = true;
|
|
140
|
+
},
|
|
141
|
+
o(local) {
|
|
142
|
+
transition_out(currentfloor.$$.fragment, local);
|
|
143
|
+
transition_out(camera.$$.fragment, local);
|
|
144
|
+
current = false;
|
|
145
|
+
},
|
|
146
|
+
d(detaching) {
|
|
147
|
+
if (detaching) detach(div);
|
|
148
|
+
destroy_component(currentfloor);
|
|
149
|
+
destroy_component(camera);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function create_fragment(ctx) {
|
|
155
|
+
let div;
|
|
156
|
+
let div_resize_listener;
|
|
157
|
+
let current;
|
|
158
|
+
let if_block = /*clientWidth*/ ctx[5] !== 0 && create_if_block(ctx);
|
|
159
|
+
|
|
160
|
+
return {
|
|
161
|
+
c() {
|
|
162
|
+
div = element("div");
|
|
163
|
+
if (if_block) if_block.c();
|
|
164
|
+
attr(div, "class", "plugin-floorplan-radar svelte-7d8ub2");
|
|
165
|
+
add_render_callback(() => /*div_elementresize_handler*/ ctx[11].call(div));
|
|
166
|
+
},
|
|
167
|
+
m(target, anchor) {
|
|
168
|
+
insert(target, div, anchor);
|
|
169
|
+
if (if_block) if_block.m(div, null);
|
|
170
|
+
div_resize_listener = add_resize_listener(div, /*div_elementresize_handler*/ ctx[11].bind(div));
|
|
171
|
+
current = true;
|
|
172
|
+
},
|
|
173
|
+
p(ctx, [dirty]) {
|
|
174
|
+
if (/*clientWidth*/ ctx[5] !== 0) {
|
|
175
|
+
if (if_block) {
|
|
176
|
+
if_block.p(ctx, dirty);
|
|
177
|
+
|
|
178
|
+
if (dirty & /*clientWidth*/ 32) {
|
|
179
|
+
transition_in(if_block, 1);
|
|
180
|
+
}
|
|
181
|
+
} else {
|
|
182
|
+
if_block = create_if_block(ctx);
|
|
183
|
+
if_block.c();
|
|
184
|
+
transition_in(if_block, 1);
|
|
185
|
+
if_block.m(div, null);
|
|
186
|
+
}
|
|
187
|
+
} else if (if_block) {
|
|
188
|
+
group_outros();
|
|
189
|
+
|
|
190
|
+
transition_out(if_block, 1, 1, () => {
|
|
191
|
+
if_block = null;
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
check_outros();
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
i(local) {
|
|
198
|
+
if (current) return;
|
|
199
|
+
transition_in(if_block);
|
|
200
|
+
current = true;
|
|
201
|
+
},
|
|
202
|
+
o(local) {
|
|
203
|
+
transition_out(if_block);
|
|
204
|
+
current = false;
|
|
205
|
+
},
|
|
206
|
+
d(detaching) {
|
|
207
|
+
if (detaching) detach(div);
|
|
208
|
+
if (if_block) if_block.d();
|
|
209
|
+
div_resize_listener();
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
function instance($$self, $$props, $$invalidate) {
|
|
215
|
+
let { five } = $$props;
|
|
216
|
+
let { hoverEnable } = $$props;
|
|
217
|
+
let { floorplanData } = $$props;
|
|
218
|
+
let { cameraImageUrl } = $$props;
|
|
219
|
+
let { extraObjects = [] } = $$props;
|
|
220
|
+
let pxmm = 0;
|
|
221
|
+
let floorIndex = 0;
|
|
222
|
+
let clientWidth = 0;
|
|
223
|
+
let clientHeight = 0;
|
|
224
|
+
let contentWidth = 0;
|
|
225
|
+
let contentHeight = 0;
|
|
226
|
+
|
|
227
|
+
function handlePanoArrived(panoIndex) {
|
|
228
|
+
$$invalidate(9, floorIndex = five.work.observers[panoIndex].floorIndex);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
onMount(() => {
|
|
232
|
+
five.on('panoArrived', handlePanoArrived);
|
|
233
|
+
|
|
234
|
+
return () => {
|
|
235
|
+
five.off('panoArrived', handlePanoArrived);
|
|
236
|
+
};
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
function div_elementresize_handler() {
|
|
240
|
+
clientWidth = this.clientWidth;
|
|
241
|
+
clientHeight = this.clientHeight;
|
|
242
|
+
$$invalidate(5, clientWidth);
|
|
243
|
+
$$invalidate(6, clientHeight);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
$$self.$$set = $$props => {
|
|
247
|
+
if ('five' in $$props) $$invalidate(0, five = $$props.five);
|
|
248
|
+
if ('hoverEnable' in $$props) $$invalidate(1, hoverEnable = $$props.hoverEnable);
|
|
249
|
+
if ('floorplanData' in $$props) $$invalidate(2, floorplanData = $$props.floorplanData);
|
|
250
|
+
if ('cameraImageUrl' in $$props) $$invalidate(3, cameraImageUrl = $$props.cameraImageUrl);
|
|
251
|
+
if ('extraObjects' in $$props) $$invalidate(4, extraObjects = $$props.extraObjects);
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
$$self.$$.update = () => {
|
|
255
|
+
if ($$self.$$.dirty & /*clientWidth, clientHeight, floorplanData, contentWidth*/ 228) {
|
|
256
|
+
$: {
|
|
257
|
+
const size = Math.min(clientWidth, clientHeight);
|
|
258
|
+
const { max, min } = floorplanData.bounding;
|
|
259
|
+
const boundingWidth = max.x - min.x;
|
|
260
|
+
const boundingHeight = max.y - min.y;
|
|
261
|
+
|
|
262
|
+
const contentSize = (function getSize() {
|
|
263
|
+
if (boundingWidth > boundingHeight) return [size, size / boundingWidth * boundingHeight];
|
|
264
|
+
return [size / boundingHeight * boundingWidth, size];
|
|
265
|
+
})();
|
|
266
|
+
|
|
267
|
+
$$invalidate(7, contentWidth = contentSize[0]);
|
|
268
|
+
$$invalidate(10, contentHeight = contentSize[1]);
|
|
269
|
+
$$invalidate(8, pxmm = contentWidth / boundingWidth);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
return [
|
|
275
|
+
five,
|
|
276
|
+
hoverEnable,
|
|
277
|
+
floorplanData,
|
|
278
|
+
cameraImageUrl,
|
|
279
|
+
extraObjects,
|
|
280
|
+
clientWidth,
|
|
281
|
+
clientHeight,
|
|
282
|
+
contentWidth,
|
|
283
|
+
pxmm,
|
|
284
|
+
floorIndex,
|
|
285
|
+
contentHeight,
|
|
286
|
+
div_elementresize_handler
|
|
287
|
+
];
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
class Component extends SvelteComponent {
|
|
291
|
+
constructor(options) {
|
|
292
|
+
super();
|
|
293
|
+
|
|
294
|
+
init(
|
|
295
|
+
this,
|
|
296
|
+
options,
|
|
297
|
+
instance,
|
|
298
|
+
create_fragment,
|
|
299
|
+
safe_not_equal,
|
|
300
|
+
{
|
|
301
|
+
five: 0,
|
|
302
|
+
hoverEnable: 1,
|
|
303
|
+
floorplanData: 2,
|
|
304
|
+
cameraImageUrl: 3,
|
|
305
|
+
extraObjects: 4
|
|
306
|
+
},
|
|
307
|
+
add_css
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export default Component;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
3
|
+
import type { FloorplanExtraObject3D } from '../typings/floorplanData';
|
|
4
|
+
export interface PanoFloorplanRadarPluginControllerParameter {
|
|
5
|
+
wrapper?: string | Element;
|
|
6
|
+
configs?: {
|
|
7
|
+
hoverEnable?: boolean;
|
|
8
|
+
cameraImageUrl?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export default class PanoFloorplanRadarPluginController {
|
|
12
|
+
private app?;
|
|
13
|
+
private five;
|
|
14
|
+
private wrapperSelector;
|
|
15
|
+
private data?;
|
|
16
|
+
private wrapper;
|
|
17
|
+
private extraObjects?;
|
|
18
|
+
private originExtraObjects?;
|
|
19
|
+
private configs;
|
|
20
|
+
constructor(five: Five, params?: PanoFloorplanRadarPluginControllerParameter);
|
|
21
|
+
dispose: () => void;
|
|
22
|
+
load: (data: FloorplanServerData) => Promise<void>;
|
|
23
|
+
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
24
|
+
appendTo(wrapper: Element): void;
|
|
25
|
+
changeConfigs(configs: PanoFloorplanRadarPluginController['configs']): void;
|
|
26
|
+
setExtraObjectsWith3DPositions(data: FloorplanExtraObject3D[]): void;
|
|
27
|
+
private render;
|
|
28
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import Main from './Components/Main';
|
|
2
|
+
import formatData, { formatExtraObjects } from '../utils/formatData';
|
|
3
|
+
export default class PanoFloorplanRadarPluginController {
|
|
4
|
+
app;
|
|
5
|
+
five;
|
|
6
|
+
wrapperSelector = '';
|
|
7
|
+
data;
|
|
8
|
+
wrapper = null;
|
|
9
|
+
extraObjects;
|
|
10
|
+
originExtraObjects;
|
|
11
|
+
configs = {};
|
|
12
|
+
constructor(five, params) {
|
|
13
|
+
this.five = five;
|
|
14
|
+
params?.configs && Object.assign(this.configs, params.configs);
|
|
15
|
+
if (typeof params?.wrapper === 'string')
|
|
16
|
+
this.wrapperSelector = params.wrapper;
|
|
17
|
+
else if (params?.wrapper instanceof Element)
|
|
18
|
+
this.wrapper = params.wrapper;
|
|
19
|
+
five.once('dispose', this.dispose);
|
|
20
|
+
}
|
|
21
|
+
dispose = () => {
|
|
22
|
+
this.app?.$destroy();
|
|
23
|
+
};
|
|
24
|
+
load = async (data) => {
|
|
25
|
+
const copyData = JSON.parse(JSON.stringify(data));
|
|
26
|
+
const floorplanData = await formatData(copyData);
|
|
27
|
+
this.data = floorplanData;
|
|
28
|
+
// const loadImage = async () => {
|
|
29
|
+
// const floorIndex = this.five.work.observers[this.five.getCurrentState().panoIndex].floorIndex
|
|
30
|
+
// // 当有 svgString 时,没有加载过程
|
|
31
|
+
// if (floorplanData.outlines[floorIndex]?.svgContent) return
|
|
32
|
+
// // 如果当前楼层图片不存在,不存在加载过程
|
|
33
|
+
// const nowFloorImageSrc = floorplanData.outlines[floorIndex]?.url
|
|
34
|
+
// if (!nowFloorImageSrc) return
|
|
35
|
+
// // 图片加载完成时再 render
|
|
36
|
+
// await new Promise<void>((resolve) => {
|
|
37
|
+
// const nowFloorImage = new Image()
|
|
38
|
+
// nowFloorImage.src = nowFloorImageSrc
|
|
39
|
+
// nowFloorImage.onload = () => resolve()
|
|
40
|
+
// })
|
|
41
|
+
// }
|
|
42
|
+
// await loadImage()
|
|
43
|
+
this.render();
|
|
44
|
+
};
|
|
45
|
+
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
46
|
+
appendTo(wrapper) {
|
|
47
|
+
this.wrapper = wrapper;
|
|
48
|
+
this.render();
|
|
49
|
+
}
|
|
50
|
+
changeConfigs(configs) {
|
|
51
|
+
Object.assign(this.configs, configs);
|
|
52
|
+
this.render();
|
|
53
|
+
}
|
|
54
|
+
setExtraObjectsWith3DPositions(data) {
|
|
55
|
+
this.originExtraObjects = data;
|
|
56
|
+
if (!this.data)
|
|
57
|
+
return;
|
|
58
|
+
this.extraObjects = formatExtraObjects(data, this.five, this.data);
|
|
59
|
+
this.render();
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
// 处理 wrapper
|
|
63
|
+
if (!this.wrapper) {
|
|
64
|
+
const _wrapper = document.querySelector(this.wrapperSelector);
|
|
65
|
+
this.wrapper = _wrapper;
|
|
66
|
+
}
|
|
67
|
+
if (!this.data || !this.wrapper)
|
|
68
|
+
return;
|
|
69
|
+
if (!this.extraObjects && this.originExtraObjects) {
|
|
70
|
+
this.extraObjects = formatExtraObjects(this.originExtraObjects, this.five, this.data);
|
|
71
|
+
}
|
|
72
|
+
const props = {
|
|
73
|
+
five: this.five,
|
|
74
|
+
floorplanData: this.data,
|
|
75
|
+
extraObjects: this.extraObjects,
|
|
76
|
+
cameraImageUrl: this.configs.cameraImageUrl,
|
|
77
|
+
hoverEnable: this.configs.hoverEnable ?? false,
|
|
78
|
+
};
|
|
79
|
+
if (!this.app) {
|
|
80
|
+
this.app = new Main({
|
|
81
|
+
target: this.wrapper,
|
|
82
|
+
props,
|
|
83
|
+
});
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
this.app.$set(props);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
|
+
import PanoFloorplanRadarPluginController from './Controller';
|
|
3
|
+
export declare const PanoFloorplanRadarPlugin: FivePlugin<PanoFloorplanRadarPluginParameterType, PanoFloorplanRadarPluginReturnType>;
|
|
4
|
+
export default PanoFloorplanRadarPlugin;
|
|
5
|
+
export type { PanoFloorplanRadarPluginController };
|
|
6
|
+
export type { PanoFloorplanRadarPluginControllerParameter } from './Controller';
|
|
7
|
+
export declare type PanoFloorplanRadarPluginReturnType = PanoFloorplanRadarPluginController;
|
|
8
|
+
export declare type PanoFloorplanRadarPluginParameterType = ConstructorParameters<typeof PanoFloorplanRadarPluginController>[1];
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
3
|
+
import type { FloorplanRoomItem } from '../typings/floorplanData';
|
|
4
|
+
import { FLOOR_PLAN_ATTACHED_TO } from '../constant';
|
|
5
|
+
export interface TopviewFloorplanPluginParameterType {
|
|
6
|
+
northDesc?: string;
|
|
7
|
+
selector?: string | Element;
|
|
8
|
+
scale?: number;
|
|
9
|
+
modelOpacity?: number;
|
|
10
|
+
cameraImageUrl?: string;
|
|
11
|
+
hoverEnable?: boolean;
|
|
12
|
+
compassEnable?: boolean;
|
|
13
|
+
autoShowEnable?: boolean;
|
|
14
|
+
ruleLabelsEnable?: boolean;
|
|
15
|
+
roomLabelsEnable?: boolean;
|
|
16
|
+
preventRoomClick?: boolean;
|
|
17
|
+
attachedTo?: FLOOR_PLAN_ATTACHED_TO;
|
|
18
|
+
getLabelElement?: (room: FloorplanRoomItem) => Element | null;
|
|
19
|
+
}
|
|
20
|
+
export declare type TopviewFloorplanPluginReturnType = TopviewFloorplanPluginController;
|
|
21
|
+
export declare class TopviewFloorplanPluginController {
|
|
22
|
+
size: {
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
visible: boolean;
|
|
27
|
+
private pxmm;
|
|
28
|
+
private app?;
|
|
29
|
+
private five;
|
|
30
|
+
private panoIndex;
|
|
31
|
+
private floorIndex;
|
|
32
|
+
private configs;
|
|
33
|
+
private lastPanoramaLongitude;
|
|
34
|
+
private selector?;
|
|
35
|
+
private floorplanData?;
|
|
36
|
+
private wrapper?;
|
|
37
|
+
private container;
|
|
38
|
+
constructor(five: Five, params: TopviewFloorplanPluginParameterType);
|
|
39
|
+
/** 加载户型图数据 */
|
|
40
|
+
load(data: FloorplanServerData): Promise<void>;
|
|
41
|
+
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
42
|
+
appendTo(wrapper: Element): this;
|
|
43
|
+
dispose: () => void;
|
|
44
|
+
/** 模型楼层高亮改变时,自动进行楼层切换 */
|
|
45
|
+
private onModelShownFloorChange;
|
|
46
|
+
/** panoIndex 改变时,更新 floorIndex */
|
|
47
|
+
private handlePanoArrived;
|
|
48
|
+
/** 配置了 preventRoomClick 后,在户型图展示时阻止 Five 走点 */
|
|
49
|
+
private handleWantsMoveToPano;
|
|
50
|
+
/** 在户型图展示时阻止 Five 滑动行为 */
|
|
51
|
+
private handleWantsPanGesture;
|
|
52
|
+
private handleModelLoaded;
|
|
53
|
+
/** 非 Topview 态隐藏户型图 */
|
|
54
|
+
private handleModeChange;
|
|
55
|
+
/** 动画结束后是 Topview 态就展示户型图 */
|
|
56
|
+
private handleInitAnimationEnded;
|
|
57
|
+
private show;
|
|
58
|
+
private hide;
|
|
59
|
+
/** 更新户型图大小 */
|
|
60
|
+
private updateSize;
|
|
61
|
+
private render;
|
|
62
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { pluginStyle } from './style';
|
|
2
|
+
import formatData from '../utils/formatData';
|
|
3
|
+
import { omit } from '../../shared-utils/filter';
|
|
4
|
+
import getPxmm from '../../shared-utils/getPxmm';
|
|
5
|
+
import Main from "../ModelFloorplanPlugin/Components/Main";
|
|
6
|
+
import changeModelCanvasOpacity from '../../shared-utils/changeModelCanvasOpacity';
|
|
7
|
+
export class TopviewFloorplanPluginController {
|
|
8
|
+
size = { width: 0, height: 0 };
|
|
9
|
+
visible = false;
|
|
10
|
+
pxmm = 0;
|
|
11
|
+
app;
|
|
12
|
+
five;
|
|
13
|
+
panoIndex = 0;
|
|
14
|
+
floorIndex = 0;
|
|
15
|
+
configs = {};
|
|
16
|
+
lastPanoramaLongitude = 0;
|
|
17
|
+
selector;
|
|
18
|
+
floorplanData;
|
|
19
|
+
wrapper;
|
|
20
|
+
container = document.createElement('div');
|
|
21
|
+
constructor(five, params) {
|
|
22
|
+
this.five = five;
|
|
23
|
+
this.selector = params.selector;
|
|
24
|
+
this.configs = omit(params, ['selector']);
|
|
25
|
+
// 设置 container 样式
|
|
26
|
+
this.container.classList.add('floorplan-plugin');
|
|
27
|
+
Object.assign(this.container.style, pluginStyle);
|
|
28
|
+
// 如果初始化的时候模型已经加载完毕了,就不用再等 modelLoaded
|
|
29
|
+
this.five.model.loaded ? this.handleModelLoaded() : five.once('modelLoaded', this.handleModelLoaded);
|
|
30
|
+
this.five.once('dispose', this.dispose);
|
|
31
|
+
this.five.on('modeChange', this.handleModeChange);
|
|
32
|
+
this.five.on('panoArrived', this.handlePanoArrived);
|
|
33
|
+
this.five.on('initAnimationEnded', this.handleInitAnimationEnded);
|
|
34
|
+
this.five.on('modelShownFloorChange', this.onModelShownFloorChange);
|
|
35
|
+
}
|
|
36
|
+
/** 加载户型图数据 */
|
|
37
|
+
async load(data) {
|
|
38
|
+
const copyData = JSON.parse(JSON.stringify(data));
|
|
39
|
+
this.floorplanData = await formatData(copyData);
|
|
40
|
+
this.render();
|
|
41
|
+
}
|
|
42
|
+
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
43
|
+
appendTo(wrapper) {
|
|
44
|
+
this.wrapper = wrapper;
|
|
45
|
+
wrapper.appendChild(this.container);
|
|
46
|
+
return this;
|
|
47
|
+
}
|
|
48
|
+
dispose = () => {
|
|
49
|
+
this.hide();
|
|
50
|
+
this.container?.remove();
|
|
51
|
+
this.app?.$destroy();
|
|
52
|
+
this.five.off('modeChange', this.handleModeChange);
|
|
53
|
+
this.five.off('panoArrived', this.handlePanoArrived);
|
|
54
|
+
this.five.off('modelLoaded', this.handleModelLoaded);
|
|
55
|
+
this.five.off('wantsMoveToPano', this.handleWantsMoveToPano);
|
|
56
|
+
this.five.off('wantsPanGesture', this.handleWantsPanGesture);
|
|
57
|
+
this.five.off('initAnimationEnded', this.handleInitAnimationEnded);
|
|
58
|
+
this.five.off('modelShownFloorChange', this.onModelShownFloorChange);
|
|
59
|
+
};
|
|
60
|
+
/** 模型楼层高亮改变时,自动进行楼层切换 */
|
|
61
|
+
onModelShownFloorChange = (shownFloor) => {
|
|
62
|
+
if (shownFloor === null)
|
|
63
|
+
return;
|
|
64
|
+
this.floorIndex = shownFloor;
|
|
65
|
+
this.updateSize();
|
|
66
|
+
this.render();
|
|
67
|
+
};
|
|
68
|
+
/** panoIndex 改变时,更新 floorIndex */
|
|
69
|
+
handlePanoArrived = (index) => {
|
|
70
|
+
if (!this.five?.work)
|
|
71
|
+
return;
|
|
72
|
+
this.panoIndex = index;
|
|
73
|
+
this.floorIndex = this.five.work.observers[index].floorIndex;
|
|
74
|
+
};
|
|
75
|
+
/** 配置了 preventRoomClick 后,在户型图展示时阻止 Five 走点 */
|
|
76
|
+
handleWantsMoveToPano = () => {
|
|
77
|
+
if (!this.visible)
|
|
78
|
+
return;
|
|
79
|
+
if (this.configs.preventRoomClick)
|
|
80
|
+
return false;
|
|
81
|
+
return;
|
|
82
|
+
};
|
|
83
|
+
/** 在户型图展示时阻止 Five 滑动行为 */
|
|
84
|
+
handleWantsPanGesture = () => {
|
|
85
|
+
if (!this.visible)
|
|
86
|
+
return;
|
|
87
|
+
return false;
|
|
88
|
+
};
|
|
89
|
+
handleModelLoaded = () => {
|
|
90
|
+
if (this.wrapper)
|
|
91
|
+
return;
|
|
92
|
+
if (!this.selector)
|
|
93
|
+
return;
|
|
94
|
+
const wrapper = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
95
|
+
if (!wrapper)
|
|
96
|
+
throw new Error('不正确的父容器选择器');
|
|
97
|
+
this.wrapper = wrapper;
|
|
98
|
+
wrapper.append(this.container);
|
|
99
|
+
};
|
|
100
|
+
/** 非 Topview 态隐藏户型图 */
|
|
101
|
+
handleModeChange = (mode) => {
|
|
102
|
+
if (mode !== 'Topview')
|
|
103
|
+
return this.hide();
|
|
104
|
+
};
|
|
105
|
+
/** 动画结束后是 Topview 态就展示户型图 */
|
|
106
|
+
handleInitAnimationEnded = () => {
|
|
107
|
+
const { mode } = this.five.getCurrentState();
|
|
108
|
+
if (mode === 'Topview')
|
|
109
|
+
this.show();
|
|
110
|
+
};
|
|
111
|
+
show() {
|
|
112
|
+
this.visible = true;
|
|
113
|
+
this.five.model.show(this.floorIndex);
|
|
114
|
+
this.updateSize();
|
|
115
|
+
const renderDuration = 500;
|
|
116
|
+
const modelOpacity = this.configs.modelOpacity;
|
|
117
|
+
if (typeof modelOpacity === 'number') {
|
|
118
|
+
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
119
|
+
}
|
|
120
|
+
this.render(renderDuration);
|
|
121
|
+
this.five.on('wantsMoveToPano', this.handleWantsMoveToPano);
|
|
122
|
+
this.five.on('wantsPanGesture', this.handleWantsPanGesture);
|
|
123
|
+
}
|
|
124
|
+
hide() {
|
|
125
|
+
const modelOpacity = 1;
|
|
126
|
+
const renderDuration = 0;
|
|
127
|
+
this.visible = false;
|
|
128
|
+
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
129
|
+
this.render();
|
|
130
|
+
this.five.on('wantsMoveToPano', this.handleWantsMoveToPano);
|
|
131
|
+
this.five.on('wantsPanGesture', this.handleWantsPanGesture);
|
|
132
|
+
}
|
|
133
|
+
/** 更新户型图大小 */
|
|
134
|
+
updateSize = () => {
|
|
135
|
+
if (!this.floorplanData)
|
|
136
|
+
return;
|
|
137
|
+
if (!this.container || !this.wrapper)
|
|
138
|
+
return;
|
|
139
|
+
if (this.five.getCurrentState().mode !== 'Topview')
|
|
140
|
+
return;
|
|
141
|
+
// 计算户型图展示大小
|
|
142
|
+
const { min, max } = this.floorplanData.bounding;
|
|
143
|
+
const width = max.x - min.x;
|
|
144
|
+
const height = max.y - min.y;
|
|
145
|
+
// 每毫米对应的 px 值
|
|
146
|
+
const options = this.configs.attachedTo ? { attachedTo: this.configs.attachedTo } : undefined;
|
|
147
|
+
const pxmm = getPxmm(this.five, this.wrapper, this.floorIndex, options);
|
|
148
|
+
const _width = Math.ceil(width * pxmm);
|
|
149
|
+
const _height = Math.ceil(height * pxmm);
|
|
150
|
+
this.pxmm = pxmm;
|
|
151
|
+
this.size = { width: _width, height: _height };
|
|
152
|
+
this.container.style.width = _width + 'px';
|
|
153
|
+
this.container.style.height = _height + 'px';
|
|
154
|
+
};
|
|
155
|
+
render(duration) {
|
|
156
|
+
if (!this.container || !this.floorplanData)
|
|
157
|
+
return;
|
|
158
|
+
if (this.size.width === 0)
|
|
159
|
+
return;
|
|
160
|
+
const { northDesc, getLabelElement, cameraImageUrl, preventRoomClick, hoverEnable, compassEnable, roomLabelsEnable, ruleLabelsEnable, } = this.configs;
|
|
161
|
+
const handleClick = preventRoomClick ? () => false : undefined;
|
|
162
|
+
const props = {
|
|
163
|
+
northDesc: northDesc ?? '北',
|
|
164
|
+
five: this.five,
|
|
165
|
+
pxmm: this.pxmm,
|
|
166
|
+
cameraImageUrl,
|
|
167
|
+
visible: this.visible,
|
|
168
|
+
duration: duration ?? 0,
|
|
169
|
+
panoIndex: this.panoIndex,
|
|
170
|
+
floorIndex: this.floorIndex,
|
|
171
|
+
floorplanData: this.floorplanData,
|
|
172
|
+
hoverEnable: hoverEnable ?? false,
|
|
173
|
+
compassEnable: compassEnable ?? true,
|
|
174
|
+
ruleLabelsEnable: ruleLabelsEnable ?? true,
|
|
175
|
+
roomLabelsEnable: roomLabelsEnable ?? true,
|
|
176
|
+
lastPanoramaLongitude: this.lastPanoramaLongitude,
|
|
177
|
+
getLabelElement,
|
|
178
|
+
onRoomHeightClick: handleClick,
|
|
179
|
+
};
|
|
180
|
+
if (!this.app) {
|
|
181
|
+
this.app = new Main({
|
|
182
|
+
target: this.container,
|
|
183
|
+
intro: true,
|
|
184
|
+
props,
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
this.app.$set(props);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|