@realsee/dnalogel 2.0.0-alpha.2 → 2.0.0-alpha.22
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 +78 -0
- package/README.md +93 -4
- package/TERMS.txt +56 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +49 -0
- package/dist/CSS3DRenderPlugin/index.js +234 -0
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.js +302 -0
- package/dist/CameraMovementPlugin/typing.d.ts +68 -0
- package/dist/ModelChassisCompassPlugin/index.d.ts +19 -0
- package/dist/ModelChassisCompassPlugin/index.js +143 -0
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +26 -0
- package/dist/ModelEntryDoorGuidePlugin/index.js +201 -0
- package/dist/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/index.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/index.js +668 -0
- package/dist/ModelItemLabelPlugin/typings.d.ts +56 -0
- package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/dist/ModelRoomLabelPlugin/Controller.d.ts +36 -0
- package/dist/ModelRoomLabelPlugin/index.d.ts +12 -0
- package/dist/ModelRoomLabelPlugin/index.js +505 -0
- package/dist/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelTVVideoPlugin/index.d.ts +4 -0
- package/dist/ModelTVVideoPlugin/index.js +301 -0
- package/dist/ModelTVVideoPlugin/typings.d.ts +25 -0
- package/dist/ModelTVVideoPlugin/utils/parseData.d.ts +2 -0
- package/dist/ModelViewPlugin/index.d.ts +17 -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 +635 -0
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/dist/PanoCursorRaycasterPlugin/index.js +90 -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 +13 -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 +5531 -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/dist/PanoRulerPlugin/index.d.ts +31 -0
- package/dist/PanoRulerPlugin/index.js +612 -0
- package/dist/PanoRulerPlugin/style.d.ts +2 -0
- package/dist/PanoRulerPlugin/typings.d.ts +21 -0
- package/dist/PanoSpatialTagPlugin/index.d.ts +33 -0
- package/dist/PanoSpatialTagPlugin/index.js +1294 -0
- package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/style.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/typings.d.ts +40 -0
- package/dist/floorplan/Assets/camera.d.ts +1 -0
- package/{libs/floorplan/ModelFloorplanPlugin → dist/floorplan}/Assets/compass.d.ts +0 -0
- package/dist/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +105 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.js +4034 -0
- package/dist/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
- package/dist/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
- package/dist/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +28 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +1642 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +75 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +3646 -0
- package/dist/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/dist/floorplan/constant.d.ts +5 -0
- package/dist/floorplan/typings/floorplanData.d.ts +137 -0
- package/dist/floorplan/typings/floorplanServerData.d.ts +131 -0
- package/dist/floorplan/typings/utility.d.ts +2 -0
- package/dist/floorplan/utils/formatData.d.ts +5 -0
- package/dist/floorplan/utils/formatPosition.d.ts +36 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.es.js +15138 -0
- package/dist/index.js +15180 -0
- package/dist/index.umd.js +15173 -0
- package/dist/shared-utils/Preloader.d.ts +6 -0
- package/dist/shared-utils/Subscribe.d.ts +45 -0
- package/dist/shared-utils/animationFrame/BetterTween.d.ts +11 -0
- package/dist/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
- package/dist/shared-utils/animationFrame/formatRad.d.ts +15 -0
- package/dist/shared-utils/animationFrame/index.d.ts +15 -0
- package/dist/shared-utils/animationFrame/tween.d.ts +75 -0
- package/dist/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/dist/shared-utils/createCanvasTextTexture.d.ts +8 -0
- package/dist/shared-utils/createLine/index.d.ts +3 -0
- package/dist/shared-utils/debounce.d.ts +6 -0
- package/dist/shared-utils/equal.d.ts +11 -0
- package/dist/shared-utils/filter.d.ts +27 -0
- package/dist/shared-utils/five/changeMode.d.ts +2 -0
- package/dist/shared-utils/five/useFivePlugin.d.ts +1 -0
- package/dist/shared-utils/formatRad.d.ts +7 -0
- package/dist/shared-utils/getPxmm.d.ts +11 -0
- package/dist/shared-utils/getRandomColor.d.ts +1 -0
- package/dist/shared-utils/isNil.d.ts +10 -0
- package/dist/shared-utils/isTruelyObject.d.ts +18 -0
- package/dist/shared-utils/math/evenNumber.d.ts +3 -0
- package/dist/shared-utils/math/planimetry.d.ts +116 -0
- package/dist/shared-utils/math/rad2Deg.d.ts +1 -0
- package/dist/shared-utils/nearlyEqual.d.ts +7 -0
- package/dist/shared-utils/nextFrame.d.ts +1 -0
- package/dist/shared-utils/noop.d.ts +5 -0
- package/dist/shared-utils/object3d2LocalMatrix.d.ts +12 -0
- package/dist/shared-utils/px2rem.d.ts +1 -0
- package/dist/shared-utils/removeArrayItem.d.ts +7 -0
- package/dist/shared-utils/tap.d.ts +8 -0
- package/dist/shared-utils/three/centerPoint.d.ts +2 -0
- package/dist/shared-utils/three/getExtraModelLoader.d.ts +6 -0
- package/dist/shared-utils/three/getNormal.d.ts +2 -0
- package/dist/shared-utils/three/getTextureLoader.d.ts +6 -0
- package/dist/shared-utils/three/loadFbxObj.d.ts +2 -0
- package/dist/shared-utils/three/loadTexture.d.ts +2 -0
- package/dist/shared-utils/three/transformPositionToVector3.d.ts +7 -0
- package/dist/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
- package/dist/shared-utils/throttle.d.ts +7 -0
- package/dist/shared-utils/tinyEJSrender.d.ts +5 -0
- package/dist/shared-utils/to.d.ts +8 -0
- package/dist/shared-utils/useDebounce.d.ts +8 -0
- package/dist/shared-utils/useThrottle.d.ts +8 -0
- package/dist/shared-utils/uuid.d.ts +4 -0
- package/dist/shared-utils/vectorTocoordinates.d.ts +7 -0
- package/dist/typings/math.type.d.ts +44 -0
- package/dist/typings/utils.type.d.ts +2 -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 +88 -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/ModelItemLabelPluginData.html +1 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.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 +19 -0
- package/docs/modules.html +28 -0
- package/libs/CSS3DRenderPlugin/index.d.ts +2 -2
- package/libs/CSS3DRenderPlugin/index.js +27 -26
- package/libs/CameraMovementPlugin/typing.d.ts +1 -1
- package/libs/ModelChassisCompassPlugin/index.js +2 -2
- package/libs/ModelEntryDoorGuidePlugin/index.d.ts +1 -1
- package/libs/ModelEntryDoorGuidePlugin/index.js +13 -9
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +409 -0
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +133 -0
- package/libs/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/libs/ModelItemLabelPlugin/events.type.js +1 -0
- package/libs/ModelItemLabelPlugin/index.d.ts +4 -0
- package/libs/ModelItemLabelPlugin/index.js +120 -0
- package/libs/ModelItemLabelPlugin/typings.d.ts +56 -0
- package/libs/ModelItemLabelPlugin/typings.js +7 -0
- package/libs/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/libs/ModelItemLabelPlugin/utils/parseData.js +4 -0
- package/libs/ModelRoomLabelPlugin/Controller.js +67 -25
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +121 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +255 -0
- package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
- package/libs/ModelTVVideoPlugin/index.d.ts +4 -0
- package/libs/ModelTVVideoPlugin/index.js +254 -0
- package/libs/ModelTVVideoPlugin/typings.d.ts +25 -0
- package/libs/ModelTVVideoPlugin/typings.js +8 -0
- package/libs/ModelTVVideoPlugin/utils/parseData.d.ts +2 -0
- package/libs/ModelTVVideoPlugin/utils/parseData.js +13 -0
- package/libs/ModelViewPlugin/index.js +6 -6
- 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 +253 -0
- package/libs/PanoCursorRaycasterPlugin/index.d.ts +1 -1
- package/libs/PanoCursorRaycasterPlugin/index.js +5 -3
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +124 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.js +329 -0
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +64 -0
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +305 -0
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +61 -0
- package/libs/PanoMeasurePlugin/Controller/index.js +265 -0
- package/libs/PanoMeasurePlugin/Model/index.d.ts +38 -0
- package/libs/PanoMeasurePlugin/Model/index.js +139 -0
- package/libs/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/libs/PanoMeasurePlugin/Model/line.js +114 -0
- package/libs/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Model/point.js +48 -0
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Model/polyline.js +65 -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 +153 -0
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +48 -0
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +110 -0
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +153 -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 +148 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +13 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +70 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +102 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +79 -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 +115 -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 +33 -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 +22 -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 +400 -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 +413 -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/compass.d.ts +1 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.js +0 -0
- package/libs/floorplan/Components/BaseImage.js +222 -0
- package/libs/floorplan/Components/Camera.js +120 -0
- package/libs/floorplan/Components/Compass.js +119 -0
- package/libs/floorplan/Components/CurrentFloor.js +456 -0
- package/libs/floorplan/Components/Main.js +464 -0
- package/libs/floorplan/Components/Normalmage.js +63 -0
- package/libs/floorplan/Components/RoomHighlight/Room.js +68 -0
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +199 -0
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +173 -0
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +265 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +331 -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/RuleLabels/RuleItem.js +284 -0
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +269 -0
- package/libs/floorplan/Components/SvgImage.js +83 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +4 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +455 -279
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +152 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +250 -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.js +89 -37
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +30 -14
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +269 -118
- package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +0 -1
- package/libs/floorplan/constant.d.ts +5 -0
- package/libs/floorplan/constant.js +6 -0
- package/libs/floorplan/typings/floorplanServerData.d.ts +4 -0
- package/libs/floorplan/utils/formatPosition.d.ts +1 -1
- package/libs/floorplan/utils/formatPosition.js +3 -3
- package/libs/index.d.ts +22 -9
- package/libs/index.js +11 -3
- package/libs/shared-utils/Subscribe.js +8 -1
- package/libs/shared-utils/animationFrame/BetterTween.js +47 -18
- package/libs/shared-utils/createCanvasTextTexture.js +6 -5
- package/libs/shared-utils/getPxmm.d.ts +6 -1
- package/libs/shared-utils/getPxmm.js +26 -12
- package/libs/shared-utils/math/evenNumber.js +1 -1
- package/libs/shared-utils/three/getExtraModelLoader.d.ts +1 -1
- package/libs/shared-utils/three/getNormal.d.ts +1 -1
- package/libs/shared-utils/three/getTextureLoader.d.ts +1 -1
- package/libs/shared-utils/three/loadFbxObj.d.ts +1 -1
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +2 -1
- package/libs/shared-utils/tinyEJSrender.d.ts +5 -0
- package/libs/shared-utils/tinyEJSrender.js +210 -0
- package/libs/shared-utils/useDebounce.js +1 -1
- package/libs/shared-utils/useThrottle.js +2 -1
- package/libs/shared-utils/vectorTocoordinates.d.ts +1 -1
- package/package.json +26 -13
- package/dist/dnalogel.cjs.js +0 -2
- package/dist/dnalogel.es.js +0 -37145
- package/dist/dnalogel.umd.js +0 -2
- package/dist/style.css +0 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte +0 -63
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte.map +0 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte +0 -80
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte.map +0 -1
- package/libs/floorplan/Components/BaseImage.svelte +0 -25
- package/libs/floorplan/Components/BaseImage.svelte.map +0 -1
- package/libs/floorplan/Components/Normalmage.svelte +0 -11
- package/libs/floorplan/Components/Normalmage.svelte.map +0 -1
- package/libs/floorplan/Components/RoomHighlight/Room.svelte +0 -21
- package/libs/floorplan/Components/RoomHighlight/Room.svelte.map +0 -1
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte +0 -60
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte +0 -35
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte +0 -7
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte +0 -16
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte +0 -17
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte.map +0 -1
- package/libs/floorplan/Components/SvgImage.svelte +0 -25
- package/libs/floorplan/Components/SvgImage.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte +0 -46
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte +0 -48
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte +0 -37
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte +0 -50
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte +0 -41
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte +0 -25
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte +0 -148
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte +0 -15
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte +0 -84
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte +0 -18
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte +0 -40
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte +0 -61
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte.map +0 -1
|
@@ -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;
|
|
@@ -1,47 +1,98 @@
|
|
|
1
|
-
import Main from './Components/Main
|
|
1
|
+
import Main from './Components/Main';
|
|
2
2
|
import formatData, { formatExtraObjects } from '../utils/formatData';
|
|
3
3
|
export default class PanoFloorplanRadarPluginController {
|
|
4
|
-
app;
|
|
5
|
-
five;
|
|
6
|
-
wrapperSelector = '';
|
|
7
|
-
data;
|
|
8
|
-
wrapper = null;
|
|
9
|
-
extraObjects;
|
|
10
|
-
originExtraObjects;
|
|
11
|
-
configs = {};
|
|
12
4
|
constructor(five, params) {
|
|
5
|
+
Object.defineProperty(this, "app", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: void 0
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(this, "five", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: void 0
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(this, "wrapperSelector", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true,
|
|
20
|
+
writable: true,
|
|
21
|
+
value: ''
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(this, "data", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true,
|
|
27
|
+
value: void 0
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(this, "wrapper", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true,
|
|
32
|
+
writable: true,
|
|
33
|
+
value: null
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(this, "extraObjects", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
configurable: true,
|
|
38
|
+
writable: true,
|
|
39
|
+
value: void 0
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(this, "originExtraObjects", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
configurable: true,
|
|
44
|
+
writable: true,
|
|
45
|
+
value: void 0
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(this, "configs", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
configurable: true,
|
|
50
|
+
writable: true,
|
|
51
|
+
value: {}
|
|
52
|
+
});
|
|
53
|
+
Object.defineProperty(this, "dispose", {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
configurable: true,
|
|
56
|
+
writable: true,
|
|
57
|
+
value: () => {
|
|
58
|
+
var _a;
|
|
59
|
+
(_a = this.app) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(this, "load", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
configurable: true,
|
|
65
|
+
writable: true,
|
|
66
|
+
value: async (data) => {
|
|
67
|
+
const copyData = JSON.parse(JSON.stringify(data));
|
|
68
|
+
const floorplanData = await formatData(copyData);
|
|
69
|
+
this.data = floorplanData;
|
|
70
|
+
// const loadImage = async () => {
|
|
71
|
+
// const floorIndex = this.five.work.observers[this.five.getCurrentState().panoIndex].floorIndex
|
|
72
|
+
// // 当有 svgString 时,没有加载过程
|
|
73
|
+
// if (floorplanData.outlines[floorIndex]?.svgContent) return
|
|
74
|
+
// // 如果当前楼层图片不存在,不存在加载过程
|
|
75
|
+
// const nowFloorImageSrc = floorplanData.outlines[floorIndex]?.url
|
|
76
|
+
// if (!nowFloorImageSrc) return
|
|
77
|
+
// // 图片加载完成时再 render
|
|
78
|
+
// await new Promise<void>((resolve) => {
|
|
79
|
+
// const nowFloorImage = new Image()
|
|
80
|
+
// nowFloorImage.src = nowFloorImageSrc
|
|
81
|
+
// nowFloorImage.onload = () => resolve()
|
|
82
|
+
// })
|
|
83
|
+
// }
|
|
84
|
+
// await loadImage()
|
|
85
|
+
this.render();
|
|
86
|
+
}
|
|
87
|
+
});
|
|
13
88
|
this.five = five;
|
|
14
|
-
params
|
|
15
|
-
if (typeof params
|
|
89
|
+
(params === null || params === void 0 ? void 0 : params.configs) && Object.assign(this.configs, params.configs);
|
|
90
|
+
if (typeof (params === null || params === void 0 ? void 0 : params.wrapper) === 'string')
|
|
16
91
|
this.wrapperSelector = params.wrapper;
|
|
17
|
-
else if (params
|
|
92
|
+
else if ((params === null || params === void 0 ? void 0 : params.wrapper) instanceof Element)
|
|
18
93
|
this.wrapper = params.wrapper;
|
|
19
94
|
five.once('dispose', this.dispose);
|
|
20
95
|
}
|
|
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
96
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
46
97
|
appendTo(wrapper) {
|
|
47
98
|
this.wrapper = wrapper;
|
|
@@ -59,6 +110,7 @@ export default class PanoFloorplanRadarPluginController {
|
|
|
59
110
|
this.render();
|
|
60
111
|
}
|
|
61
112
|
render() {
|
|
113
|
+
var _a;
|
|
62
114
|
// 处理 wrapper
|
|
63
115
|
if (!this.wrapper) {
|
|
64
116
|
const _wrapper = document.querySelector(this.wrapperSelector);
|
|
@@ -74,7 +126,7 @@ export default class PanoFloorplanRadarPluginController {
|
|
|
74
126
|
floorplanData: this.data,
|
|
75
127
|
extraObjects: this.extraObjects,
|
|
76
128
|
cameraImageUrl: this.configs.cameraImageUrl,
|
|
77
|
-
hoverEnable: this.configs.hoverEnable
|
|
129
|
+
hoverEnable: (_a = this.configs.hoverEnable) !== null && _a !== void 0 ? _a : false,
|
|
78
130
|
};
|
|
79
131
|
if (!this.app) {
|
|
80
132
|
this.app = new Main({
|
|
@@ -1,19 +1,34 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
|
+
import type { FLOOR_PLAN_ATTACHED_TO } from '../constant';
|
|
2
3
|
import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
3
4
|
import type { FloorplanRoomItem } from '../typings/floorplanData';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/** TopviewFloorplanPlugin 配置参数 */
|
|
6
|
+
interface Configs {
|
|
7
|
+
northDesc?: string;
|
|
7
8
|
modelOpacity?: number;
|
|
8
9
|
cameraImageUrl?: string;
|
|
10
|
+
/** 是否开启高亮房间功能,默认为 false */
|
|
9
11
|
hoverEnable?: boolean;
|
|
12
|
+
/** 是否开启放大缩小和拖动功能,默认为 false */
|
|
13
|
+
gestureEnable?: boolean;
|
|
14
|
+
/** 是否展示指南针,默认为 true */
|
|
10
15
|
compassEnable?: boolean;
|
|
11
|
-
|
|
16
|
+
/** 是否展示户型图标尺,默认为 true */
|
|
12
17
|
ruleLabelsEnable?: boolean;
|
|
18
|
+
/** 是否展示房间标签,默认为 true */
|
|
13
19
|
roomLabelsEnable?: boolean;
|
|
20
|
+
/** 点击房间时,是否需要跳转到被点房间的全景态点位上,默认为 true */
|
|
14
21
|
preventRoomClick?: boolean;
|
|
22
|
+
/** 户型图展示时,应该对应到模型的哪个位置上,默认是 BOUNDING_CENTER */
|
|
23
|
+
attachedTo?: FLOOR_PLAN_ATTACHED_TO;
|
|
24
|
+
/** 用户自定义房间标间 DOM 函数 */
|
|
15
25
|
getLabelElement?: (room: FloorplanRoomItem) => Element | null;
|
|
16
26
|
}
|
|
27
|
+
/** TopviewFloorplanPlugin 初始化参数 */
|
|
28
|
+
export interface TopviewFloorplanPluginParameterType extends Configs {
|
|
29
|
+
selector?: string | Element;
|
|
30
|
+
scale?: number;
|
|
31
|
+
}
|
|
17
32
|
export declare type TopviewFloorplanPluginReturnType = TopviewFloorplanPluginController;
|
|
18
33
|
export declare class TopviewFloorplanPluginController {
|
|
19
34
|
size: {
|
|
@@ -38,22 +53,23 @@ export declare class TopviewFloorplanPluginController {
|
|
|
38
53
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
39
54
|
appendTo(wrapper: Element): this;
|
|
40
55
|
dispose: () => void;
|
|
41
|
-
|
|
56
|
+
private onFiveWantsMoveToPano;
|
|
57
|
+
private onFiveWantsGesture;
|
|
42
58
|
private onModelShownFloorChange;
|
|
43
|
-
|
|
44
|
-
private
|
|
45
|
-
|
|
46
|
-
private
|
|
47
|
-
/** 在户型图展示时阻止 Five 滑动行为 */
|
|
48
|
-
private handleWantsPanGesture;
|
|
49
|
-
private handleModelLoaded;
|
|
59
|
+
private onFivePanoArrived;
|
|
60
|
+
private onFivePanGesture;
|
|
61
|
+
private onFivePinchGesture;
|
|
62
|
+
private onFiveModelLoaded;
|
|
50
63
|
/** 非 Topview 态隐藏户型图 */
|
|
51
|
-
private
|
|
64
|
+
private onFiveModeChange;
|
|
52
65
|
/** 动画结束后是 Topview 态就展示户型图 */
|
|
53
|
-
private
|
|
66
|
+
private onFiveInitAnimationEnded;
|
|
54
67
|
private show;
|
|
55
68
|
private hide;
|
|
56
69
|
/** 更新户型图大小 */
|
|
57
70
|
private updateSize;
|
|
71
|
+
/** 更新户型图位置 */
|
|
72
|
+
private updatePosition;
|
|
58
73
|
private render;
|
|
59
74
|
}
|
|
75
|
+
export {};
|