@realsee/dnalogel 2.0.0-alpha.9 → 2.0.0-beta.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -28
- package/components/index.js +1450 -0
- package/dist/CSS3DRenderPlugin/Plugin.d.ts +49 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +3 -48
- package/dist/CSS3DRenderPlugin/index.js +27 -26
- package/dist/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.d.ts +4 -6
- package/dist/CameraMovementPlugin/index.js +12 -12
- package/dist/CameraMovementPlugin/typing.d.ts +1 -1
- package/dist/ItemLabelPlugin/Plugin.d.ts +4 -0
- package/dist/ItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ItemLabelPlugin/index.d.ts +9 -0
- package/dist/ItemLabelPlugin/index.js +941 -0
- package/dist/ItemLabelPlugin/typings.d.ts +59 -0
- package/dist/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
- package/dist/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
- package/dist/ItemLabelPlugin/utils/isImpacted.d.ts +6 -0
- package/dist/ItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
- package/dist/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/dist/ModelChassisCompassPlugin/index.d.ts +3 -18
- package/dist/ModelChassisCompassPlugin/index.js +8 -5
- package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +3 -25
- package/dist/ModelEntryDoorGuidePlugin/index.js +20 -20
- package/dist/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/index.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/index.js +674 -0
- package/dist/ModelItemLabelPlugin/typings.d.ts +56 -0
- package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/index.js +153 -73
- package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/dist/ModelTVVideoPlugin/index.d.ts +5 -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/Plugin.d.ts +17 -0
- package/dist/ModelViewPlugin/index.d.ts +3 -16
- package/dist/PanoCompassPlugin/Plugin.d.ts +47 -0
- package/dist/PanoCompassPlugin/index.d.ts +4 -47
- package/dist/PanoCompassPlugin/index.js +242 -129
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +1 -1
- package/dist/PanoCursorRaycasterPlugin/index.js +5 -3
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +12 -9
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +44 -0
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +2 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +18 -9
- package/dist/PanoMeasurePlugin/Model/index.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Model/line.d.ts +5 -5
- package/dist/PanoMeasurePlugin/Model/point.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +5 -2
- package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +50 -15
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/NewMainBtnController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +5 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +42 -0
- package/dist/PanoMeasurePlugin/index.d.ts +9 -6
- package/dist/PanoMeasurePlugin/index.js +2649 -3442
- package/dist/PanoMeasurePlugin/typings/data.d.ts +4 -0
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +14 -5
- package/dist/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/constants.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
- package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
- package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
- package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -2
- package/dist/PanoRulerPlugin/Plugin.d.ts +31 -0
- package/dist/PanoRulerPlugin/index.d.ts +4 -30
- package/dist/PanoRulerPlugin/index.js +12 -12
- package/dist/PanoSpatialTagPlugin/Plugin.d.ts +35 -0
- package/dist/PanoSpatialTagPlugin/index.d.ts +5 -0
- package/dist/PanoSpatialTagPlugin/index.js +1307 -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/base/BasePlugin.d.ts +100 -0
- package/dist/base/BasePluginWithData.d.ts +34 -0
- package/dist/components/PaintBrush/Controller.d.ts +43 -0
- package/dist/components/PaintBrush/Subscribe.d.ts +76 -0
- package/dist/components/PaintBrush/index.d.ts +27 -0
- package/dist/components/PaintBrush/style.d.ts +2 -0
- package/dist/components/PaintBrush/tween.d.ts +62 -0
- package/dist/components/PaintBrush/typings.d.ts +58 -0
- package/dist/components/PaintBrush/utils.d.ts +26 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.d.ts +0 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +70 -77
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +5 -7
- package/dist/floorplan/ModelFloorplanPlugin/index.js +2319 -1620
- package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +107 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +24 -16
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +5 -6
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +601 -266
- package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +53 -47
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +6 -4
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +2198 -1428
- package/dist/floorplan/TopviewFloorplanPlugin/typing.d.ts +86 -0
- package/dist/floorplan/index.d.ts +6 -0
- package/dist/floorplan/utils/constant.d.ts +22 -0
- package/dist/floorplan/utils/correctFiveState.d.ts +15 -0
- package/dist/floorplan/utils/formatPosition.d.ts +1 -1
- package/dist/index.d.ts +15 -24
- package/dist/index.es.js +10694 -7145
- package/dist/index.js +10432 -6869
- package/dist/index.umd.js +10435 -6875
- package/dist/shared-utils/five/changeMode.d.ts +4 -1
- package/dist/shared-utils/getPxmm.d.ts +8 -0
- package/dist/shared-utils/index.d.ts +1 -0
- package/dist/shared-utils/math/Interval.d.ts +13 -0
- package/dist/shared-utils/math/Rectangle.d.ts +27 -0
- package/dist/shared-utils/math/index.d.ts +2 -0
- package/dist/shared-utils/three/getExtraModelLoader.d.ts +1 -1
- package/dist/shared-utils/three/getNormal.d.ts +1 -1
- package/dist/shared-utils/three/getTextureLoader.d.ts +1 -1
- package/dist/shared-utils/three/loadFbxObj.d.ts +1 -1
- package/dist/shared-utils/tinyEJSrender.d.ts +5 -0
- package/dist/shared-utils/uuid.d.ts +1 -0
- package/dist/shared-utils/vectorTocoordinates.d.ts +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Magnifier.html +9 -0
- package/docs/classes/ModelRoomLabelController.html +5 -8
- package/docs/enums/CameraMovementEffect.html +3 -0
- package/docs/enums/DIRECTION.html +1 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -0
- package/docs/enums/Rotation.html +3 -0
- package/docs/index.html +78 -33
- package/docs/interfaces/CSS3DRenderPluginExportType.html +4 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +17 -0
- package/docs/interfaces/FloorplanBounding.html +10 -0
- package/docs/interfaces/FloorplanData.html +3 -0
- package/docs/interfaces/FloorplanEntrance.html +15 -0
- package/docs/interfaces/FloorplanExtraObject.html +7 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -0
- package/docs/interfaces/FloorplanFloorData.html +3 -0
- package/docs/interfaces/FloorplanImagePosition.html +3 -0
- package/docs/interfaces/FloorplanObserver.html +5 -0
- package/docs/interfaces/FloorplanOutlineItem.html +3 -0
- package/docs/interfaces/FloorplanPosition.html +3 -0
- package/docs/interfaces/FloorplanRoomItem.html +17 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -0
- package/docs/interfaces/FloorplanServerBounding.html +10 -0
- package/docs/interfaces/FloorplanServerComputedData.html +1 -0
- package/docs/interfaces/FloorplanServerData.html +3 -0
- package/docs/interfaces/FloorplanServerEntrance.html +15 -0
- package/docs/interfaces/FloorplanServerFloorData.html +3 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -0
- package/docs/interfaces/FloorplanServerObserver.html +5 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -0
- package/docs/interfaces/FloorplanServerPosition.html +3 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +20 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -0
- package/docs/interfaces/ItemLabelPluginData.html +1 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -0
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- 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 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -0
- package/docs/interfaces/ModelViewPluginExportType.html +1 -0
- package/docs/interfaces/OpenParameter.html +3 -0
- package/docs/interfaces/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
- package/docs/interfaces/PanoMeasureParameterType.html +1 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -0
- package/docs/interfaces/Point.html +1 -0
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -0
- package/docs/interfaces/RoomInfo.html +1 -0
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -0
- package/docs/interfaces/Rooms.html +1 -0
- package/docs/modules.html +26 -18
- package/libs/CSS3DRenderPlugin/Plugin.d.ts +49 -0
- package/libs/CSS3DRenderPlugin/Plugin.js +182 -0
- package/libs/CSS3DRenderPlugin/index.d.ts +3 -48
- package/libs/CSS3DRenderPlugin/index.js +2 -180
- package/libs/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +159 -0
- package/libs/CameraMovementPlugin/index.d.ts +4 -6
- package/libs/CameraMovementPlugin/index.js +3 -158
- package/libs/CameraMovementPlugin/typing.d.ts +1 -1
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +577 -0
- package/libs/ItemLabelPlugin/ItemLabelItem.js +227 -0
- package/libs/ItemLabelPlugin/Plugin.d.ts +4 -0
- package/libs/ItemLabelPlugin/Plugin.js +120 -0
- package/libs/ItemLabelPlugin/events.type.d.ts +9 -0
- package/libs/ItemLabelPlugin/events.type.js +1 -0
- package/libs/ItemLabelPlugin/index.d.ts +9 -0
- package/libs/ItemLabelPlugin/index.js +8 -0
- package/libs/ItemLabelPlugin/typings.d.ts +59 -0
- package/libs/ItemLabelPlugin/typings.js +7 -0
- package/libs/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
- package/libs/ItemLabelPlugin/utils/getLabelTransform.js +3 -0
- package/libs/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
- package/libs/ItemLabelPlugin/utils/getStrokeLength.js +16 -0
- package/libs/ItemLabelPlugin/utils/isImpacted.d.ts +6 -0
- package/libs/ItemLabelPlugin/utils/isImpacted.js +13 -0
- package/libs/ItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/libs/ItemLabelPlugin/utils/parseData.js +4 -0
- package/libs/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
- package/libs/ItemLabelPlugin/utils/transform2RenderData.js +4 -0
- package/libs/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/libs/ModelChassisCompassPlugin/Plugin.js +77 -0
- package/libs/ModelChassisCompassPlugin/index.d.ts +3 -18
- package/libs/ModelChassisCompassPlugin/index.js +2 -74
- package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +140 -0
- package/libs/ModelEntryDoorGuidePlugin/index.d.ts +3 -25
- package/libs/ModelEntryDoorGuidePlugin/index.js +2 -136
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +409 -0
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +133 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +120 -0
- package/libs/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/libs/ModelItemLabelPlugin/events.type.js +1 -0
- package/libs/ModelItemLabelPlugin/index.d.ts +9 -0
- package/libs/ModelItemLabelPlugin/index.js +8 -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 +65 -23
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +83 -45
- package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
- package/libs/ModelSimulationPlugin/index.d.ts +33 -0
- package/libs/ModelSimulationPlugin/index.js +166 -0
- package/libs/ModelSimulationPlugin/shaders/fragment.d.ts +2 -0
- package/libs/ModelSimulationPlugin/shaders/fragment.js +96 -0
- package/libs/ModelSimulationPlugin/shaders/vertex.d.ts +2 -0
- package/libs/ModelSimulationPlugin/shaders/vertex.js +23 -0
- package/libs/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +254 -0
- package/libs/ModelTVVideoPlugin/index.d.ts +5 -0
- package/libs/ModelTVVideoPlugin/index.js +4 -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/Plugin.d.ts +17 -0
- package/libs/ModelViewPlugin/Plugin.js +160 -0
- package/libs/ModelViewPlugin/index.d.ts +3 -16
- package/libs/ModelViewPlugin/index.js +2 -159
- package/libs/PanoCompassPlugin/Plugin.d.ts +47 -0
- package/libs/PanoCompassPlugin/Plugin.js +249 -0
- package/libs/PanoCompassPlugin/index.d.ts +4 -47
- package/libs/PanoCompassPlugin/index.js +3 -167
- package/libs/PanoCursorRaycasterPlugin/index.d.ts +1 -1
- package/libs/PanoCursorRaycasterPlugin/index.js +5 -3
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +12 -9
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +77 -14
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.js +268 -155
- package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +44 -0
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +337 -0
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +40 -20
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +246 -153
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +18 -9
- package/libs/PanoMeasurePlugin/Controller/index.js +182 -54
- package/libs/PanoMeasurePlugin/Model/index.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Model/index.js +30 -5
- package/libs/PanoMeasurePlugin/Model/line.d.ts +5 -5
- package/libs/PanoMeasurePlugin/Model/line.js +61 -11
- package/libs/PanoMeasurePlugin/Model/point.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Model/point.js +24 -4
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
- package/libs/PanoMeasurePlugin/Model/polyline.js +20 -3
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +11 -14
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +5 -2
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +107 -25
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +23 -8
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +61 -26
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +50 -15
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +234 -59
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +84 -38
- package/libs/PanoMeasurePlugin/Modules/UIController/NewMainBtnController.d.ts +12 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/NewMainBtnController.js +98 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +52 -17
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +5 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +84 -34
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +80 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +11 -1
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +64 -0
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +42 -0
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +265 -0
- package/libs/PanoMeasurePlugin/index.d.ts +9 -6
- package/libs/PanoMeasurePlugin/index.js +3 -1
- package/libs/PanoMeasurePlugin/typings/data.d.ts +4 -0
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +14 -5
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +15 -0
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/constants.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/constants.js +7 -7
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +22 -16
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.js +8 -7
- package/libs/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -2
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +5 -5
- package/libs/PanoRulerPlugin/Plugin.d.ts +31 -0
- package/libs/PanoRulerPlugin/Plugin.js +403 -0
- package/libs/PanoRulerPlugin/index.d.ts +4 -30
- package/libs/PanoRulerPlugin/index.js +2 -397
- package/libs/PanoSpatialTagPlugin/Components/origins.js +168 -0
- package/libs/PanoSpatialTagPlugin/Components/tag.js +302 -0
- package/libs/PanoSpatialTagPlugin/Plugin.d.ts +35 -0
- package/libs/PanoSpatialTagPlugin/Plugin.js +426 -0
- package/libs/PanoSpatialTagPlugin/index.d.ts +5 -0
- package/libs/PanoSpatialTagPlugin/index.js +5 -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/base/BasePlugin.d.ts +100 -0
- package/libs/base/BasePlugin.js +31 -0
- package/libs/base/BasePluginWithData.d.ts +34 -0
- package/libs/base/BasePluginWithData.js +4 -0
- package/libs/components/PaintBrush/Controller.d.ts +43 -0
- package/libs/components/PaintBrush/Controller.js +575 -0
- package/libs/components/PaintBrush/Subscribe.d.ts +76 -0
- package/libs/components/PaintBrush/Subscribe.js +121 -0
- package/libs/components/PaintBrush/index.d.ts +27 -0
- package/libs/components/PaintBrush/index.js +57 -0
- package/libs/components/PaintBrush/style.d.ts +2 -0
- package/libs/components/PaintBrush/style.js +102 -0
- package/libs/components/PaintBrush/tween.d.ts +62 -0
- package/libs/components/PaintBrush/tween.js +15 -0
- package/libs/components/PaintBrush/typings.d.ts +58 -0
- package/libs/components/PaintBrush/typings.js +6 -0
- package/libs/components/PaintBrush/utils.d.ts +26 -0
- package/libs/components/PaintBrush/utils.js +51 -0
- package/libs/components/index.d.ts +2 -0
- package/libs/components/index.js +3 -0
- package/libs/floorplan/Assets/compass.d.ts +1 -0
- package/libs/floorplan/Assets/compass.js +1 -0
- package/libs/floorplan/Components/BaseImage.js +10 -5
- package/libs/floorplan/Components/Camera.js +120 -0
- package/libs/floorplan/Components/Compass.js +120 -0
- package/libs/floorplan/Components/CurrentFloor.js +469 -0
- package/libs/floorplan/Components/Main.js +470 -0
- package/libs/floorplan/Components/RoomHighlight/Room.js +45 -8
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +30 -103
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +322 -0
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +309 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +30 -27
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +11 -9
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +284 -0
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +269 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +70 -77
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +661 -325
- package/libs/floorplan/ModelFloorplanPlugin/index.d.ts +5 -7
- package/libs/floorplan/ModelFloorplanPlugin/index.js +2 -2
- package/libs/floorplan/ModelFloorplanPlugin/typing.d.ts +107 -0
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +49 -33
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +3 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +114 -53
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +24 -16
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +194 -42
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.d.ts +5 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +53 -47
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +450 -154
- package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +6 -4
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +2 -2
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/typing.d.ts +86 -0
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/index.d.ts +6 -0
- package/libs/floorplan/index.js +7 -0
- package/libs/floorplan/utils/constant.d.ts +22 -0
- package/libs/floorplan/utils/constant.js +23 -0
- package/libs/floorplan/utils/correctFiveState.d.ts +15 -0
- package/libs/floorplan/utils/correctFiveState.js +46 -0
- package/libs/floorplan/utils/formatPosition.d.ts +1 -1
- package/libs/floorplan/utils/formatPosition.js +3 -3
- package/libs/index.d.ts +15 -24
- package/libs/index.js +25 -14
- 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/five/changeMode.d.ts +4 -1
- package/libs/shared-utils/five/changeMode.js +34 -13
- package/libs/shared-utils/getPxmm.d.ts +8 -0
- package/libs/shared-utils/getPxmm.js +25 -20
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +1 -0
- package/libs/shared-utils/math/Interval.d.ts +13 -0
- package/libs/shared-utils/math/Interval.js +40 -0
- package/libs/shared-utils/math/Rectangle.d.ts +27 -0
- package/libs/shared-utils/math/Rectangle.js +50 -0
- package/libs/shared-utils/math/evenNumber.js +1 -1
- package/libs/shared-utils/math/index.d.ts +2 -0
- package/libs/shared-utils/math/index.js +2 -0
- 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/uuid.d.ts +1 -0
- package/libs/shared-utils/uuid.js +1 -0
- package/libs/shared-utils/vectorTocoordinates.d.ts +1 -1
- package/package.json +13 -6
- package/CHANGELOG.md +0 -30
- package/dist/shared-utils/five/useFivePlugin.d.ts +0 -1
- package/dist/shared-utils/useDebounce.d.ts +0 -8
- package/dist/shared-utils/useThrottle.d.ts +0 -8
- package/docs/enums/ModelFloorplanErrorType.html +0 -1
- package/docs/interfaces/ModelFloorplanParameterType.html +0 -1
- package/docs/interfaces/ModelFloorplanViewEvent.html +0 -5
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +0 -1
|
@@ -91,7 +91,7 @@ async function loadTexture(url) {
|
|
|
91
91
|
|
|
92
92
|
function evenNumber(num, config) {
|
|
93
93
|
const roundNum = Math.round(num);
|
|
94
|
-
return roundNum % 2 === 0 ? roundNum : roundNum + Number(config
|
|
94
|
+
return roundNum % 2 === 0 ? roundNum : roundNum + Number((config === null || config === void 0 ? void 0 : config.smaller) ? -1 : 1);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
function centerPoint(point1, point2) {
|
|
@@ -128,24 +128,25 @@ function createResizeObserver(func, element) {
|
|
|
128
128
|
const CSS3DRenderPlugin = (five) => {
|
|
129
129
|
const state = { disposeCallbacks: [] };
|
|
130
130
|
const create3DDomContainer = (...params) => {
|
|
131
|
+
var _a, _b, _c;
|
|
131
132
|
const points = params[0].map((point) => (point instanceof THREE.Vector3 ? point : transformPositionToVector3(point)));
|
|
132
133
|
const config = params[1];
|
|
133
|
-
if (points
|
|
134
|
+
if ((points === null || points === void 0 ? void 0 : points.length) < 4)
|
|
134
135
|
return console.error('points must be equal or greater than than 4');
|
|
135
|
-
if (!five
|
|
136
|
-
return console.error('five.model.loaded is: ', five
|
|
136
|
+
if (!((_a = five === null || five === void 0 ? void 0 : five.model) === null || _a === void 0 ? void 0 : _a.loaded))
|
|
137
|
+
return console.error('five.model.loaded is: ', (_b = five === null || five === void 0 ? void 0 : five.model) === null || _b === void 0 ? void 0 : _b.loaded);
|
|
137
138
|
const fiveElement = five.getElement();
|
|
138
139
|
if (!fiveElement)
|
|
139
140
|
return console.error('five.getElement() is ' + fiveElement);
|
|
140
141
|
const disposers = [];
|
|
141
|
-
const ratio = config
|
|
142
|
+
const ratio = (config === null || config === void 0 ? void 0 : config.ratio) || 0.00216;
|
|
142
143
|
if (ratio <= 0.00215)
|
|
143
144
|
console.warn('if you need click css3DElement on safari, ratio must be greater than 0.00215');
|
|
144
|
-
const dpr = config
|
|
145
|
-
const mode = config
|
|
146
|
-
const autoRender = config
|
|
147
|
-
const behindFiveContainer = config
|
|
148
|
-
const container = config
|
|
145
|
+
const dpr = (config === null || config === void 0 ? void 0 : config.dpr) || 1;
|
|
146
|
+
const mode = (config === null || config === void 0 ? void 0 : config.mode) || 'front';
|
|
147
|
+
const autoRender = (_c = config === null || config === void 0 ? void 0 : config.autoRender) !== null && _c !== void 0 ? _c : true;
|
|
148
|
+
const behindFiveContainer = (config === null || config === void 0 ? void 0 : config.behindFiveContainer) || fiveElement.parentElement || document.body;
|
|
149
|
+
const container = (config === null || config === void 0 ? void 0 : config.container) || document.createElement('div');
|
|
149
150
|
container.classList.add('__Dnalogel-plugin--CSS3DRenderPlugin');
|
|
150
151
|
// 获取css3DObject, 如果mode为behind的话,一起获取mesh
|
|
151
152
|
const { css3DObject, mesh } = createObject(points, { ratio, dpr, container, mode });
|
|
@@ -154,15 +155,14 @@ const CSS3DRenderPlugin = (five) => {
|
|
|
154
155
|
const frontModeUnInited = mode === 'front' && !state.frontMode;
|
|
155
156
|
const behindModeUnInited = mode === 'behind' && !state.behindMode;
|
|
156
157
|
const inited = !(frontModeUnInited || behindModeUnInited);
|
|
157
|
-
let stopRenderFlag = false;
|
|
158
|
-
let requestAnimationFrameId = null;
|
|
159
158
|
if (behindModeUnInited) {
|
|
160
159
|
state.behindMode = { scene: new THREE.Scene(), css3DRenderer: new CSS3DRenderer.CSS3DRenderer() };
|
|
161
160
|
}
|
|
162
161
|
if (frontModeUnInited) {
|
|
163
162
|
state.frontMode = { scene: new THREE.Scene(), css3DRenderer: new CSS3DRenderer.CSS3DRenderer() };
|
|
164
163
|
}
|
|
165
|
-
const
|
|
164
|
+
const stateMode = mode === 'behind' ? state.behindMode : state.frontMode;
|
|
165
|
+
const { scene, css3DRenderer } = stateMode;
|
|
166
166
|
const render = (() => {
|
|
167
167
|
if (!inited) {
|
|
168
168
|
const css3DRendererSetSize = () => {
|
|
@@ -179,14 +179,14 @@ const CSS3DRenderPlugin = (five) => {
|
|
|
179
179
|
css3DRenderer.domElement.style.userSelect = 'none';
|
|
180
180
|
css3DRenderer.domElement.style.pointerEvents = 'none';
|
|
181
181
|
const renderEveryFrame = () => {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
requestAnimationFrameId = requestAnimationFrame(renderEveryFrame);
|
|
182
|
+
const requestAnimationFrameId = requestAnimationFrame(renderEveryFrame);
|
|
183
|
+
stateMode.requestAnimationFrameId = requestAnimationFrameId;
|
|
185
184
|
css3DRenderer.render(scene, five.camera);
|
|
186
185
|
};
|
|
187
186
|
return () => {
|
|
187
|
+
var _a;
|
|
188
188
|
scene.add(css3DObject);
|
|
189
|
-
resizeObserver
|
|
189
|
+
(_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.observe) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);
|
|
190
190
|
renderEveryFrame();
|
|
191
191
|
if (mode === 'behind' && mesh) {
|
|
192
192
|
five.scene.add(mesh);
|
|
@@ -210,19 +210,20 @@ const CSS3DRenderPlugin = (five) => {
|
|
|
210
210
|
}
|
|
211
211
|
// ======= INIT END =======
|
|
212
212
|
const dispose = () => {
|
|
213
|
-
|
|
214
|
-
disposers.forEach((d) => d
|
|
213
|
+
var _a;
|
|
214
|
+
disposers.forEach((d) => d === null || d === void 0 ? void 0 : d());
|
|
215
215
|
scene.remove(css3DObject);
|
|
216
|
-
if (typeof requestAnimationFrameId === 'number')
|
|
217
|
-
cancelAnimationFrame(requestAnimationFrameId);
|
|
218
216
|
if (scene.children.length === 0) {
|
|
217
|
+
if (typeof stateMode.requestAnimationFrameId === 'number') {
|
|
218
|
+
cancelAnimationFrame(stateMode.requestAnimationFrameId);
|
|
219
|
+
}
|
|
219
220
|
css3DRenderer.domElement.remove();
|
|
220
221
|
if (mode === 'front')
|
|
221
222
|
state.frontMode = undefined;
|
|
222
223
|
if (mode === 'behind')
|
|
223
224
|
state.behindMode = undefined;
|
|
224
225
|
if (!state.behindMode && !state.frontMode) {
|
|
225
|
-
resizeObserver
|
|
226
|
+
(_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.unobserve) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);
|
|
226
227
|
}
|
|
227
228
|
}
|
|
228
229
|
return true;
|
|
@@ -257,9 +258,9 @@ const CSS3DRenderPlugin = (five) => {
|
|
|
257
258
|
const rotateYAngle = new THREE.Vector3(1, 0, 0).angleTo(new THREE.Vector3(vector01.x, 0, vector01.z));
|
|
258
259
|
const rotateZAngle = vector01.angleTo(new THREE.Vector3(vector01.x, 0, vector01.z));
|
|
259
260
|
/**
|
|
260
|
-
* [0,1,0] => [0,0,1] 为
|
|
261
|
-
* [0,0,1] => [0,1,0] 为
|
|
262
|
-
* [0,1,1] => [-1,0,0] 为
|
|
261
|
+
* [0,1,0] => [0,0,1] 为rotate Worldx正方向
|
|
262
|
+
* [0,0,1] => [0,1,0] 为rotate Worldy正方向
|
|
263
|
+
* [0,1,1] => [-1,0,0] 为rotate Worldz正方向
|
|
263
264
|
*/
|
|
264
265
|
const rotateX = (vector12.z > 0 ? -1 : 1) * rotateXAngle;
|
|
265
266
|
const rotateY = (vector01.z < 0 ? 1 : -1) * rotateYAngle;
|
|
@@ -287,7 +288,7 @@ const CSS3DRenderPlugin = (five) => {
|
|
|
287
288
|
return {
|
|
288
289
|
create3DDomContainer,
|
|
289
290
|
disposeAll: () => {
|
|
290
|
-
state.disposeCallbacks.forEach((d) => d
|
|
291
|
+
state.disposeCallbacks.forEach((d) => d === null || d === void 0 ? void 0 : d());
|
|
291
292
|
state.disposeCallbacks = [];
|
|
292
293
|
},
|
|
293
294
|
};
|
|
@@ -324,24 +325,53 @@ function requestAnimationFrameInterval(callback, frame = 60) {
|
|
|
324
325
|
// export { default as tween } from './tween'
|
|
325
326
|
|
|
326
327
|
class BetterTween extends TWEEN__default["default"].Tween {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
328
|
+
constructor() {
|
|
329
|
+
super(...arguments);
|
|
330
|
+
Object.defineProperty(this, "disposeMethods", {
|
|
331
|
+
enumerable: true,
|
|
332
|
+
configurable: true,
|
|
333
|
+
writable: true,
|
|
334
|
+
value: []
|
|
335
|
+
});
|
|
336
|
+
Object.defineProperty(this, "animationFrameDisposer", {
|
|
337
|
+
enumerable: true,
|
|
338
|
+
configurable: true,
|
|
339
|
+
writable: true,
|
|
340
|
+
value: void 0
|
|
341
|
+
});
|
|
342
|
+
Object.defineProperty(this, "onDispose", {
|
|
343
|
+
enumerable: true,
|
|
344
|
+
configurable: true,
|
|
345
|
+
writable: true,
|
|
346
|
+
value: (callback) => {
|
|
347
|
+
this.disposeMethods.push(callback);
|
|
348
|
+
return this;
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
Object.defineProperty(this, "play", {
|
|
352
|
+
enumerable: true,
|
|
353
|
+
configurable: true,
|
|
354
|
+
writable: true,
|
|
355
|
+
value: () => {
|
|
356
|
+
this.start(0);
|
|
357
|
+
this.animationFrameDisposer = requestAnimationFrameInterval((time) => this.update(time));
|
|
358
|
+
return this;
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
Object.defineProperty(this, "dispose", {
|
|
362
|
+
enumerable: true,
|
|
363
|
+
configurable: true,
|
|
364
|
+
writable: true,
|
|
365
|
+
value: () => {
|
|
366
|
+
var _a;
|
|
367
|
+
this.stop();
|
|
368
|
+
(_a = this.animationFrameDisposer) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
369
|
+
this.disposeMethods.forEach((fn) => fn());
|
|
370
|
+
this.disposeMethods = [];
|
|
371
|
+
TWEEN__default["default"].remove(this);
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
}
|
|
345
375
|
}
|
|
346
376
|
function tweenProgress(duration, easing = TWEEN__default["default"].Easing.Linear.None) {
|
|
347
377
|
const tween = new BetterTween({ progress: 0 }).to({ progress: 1 });
|
|
@@ -352,25 +382,170 @@ function tweenProgress(duration, easing = TWEEN__default["default"].Easing.Linea
|
|
|
352
382
|
return tween;
|
|
353
383
|
}
|
|
354
384
|
|
|
355
|
-
const panoCompassPluginServerParams = {
|
|
356
|
-
name: 'PanoCompassPlugin',
|
|
357
|
-
version: 0,
|
|
358
|
-
};
|
|
359
385
|
const PanoCompassPlugin = function (five, config) {
|
|
360
386
|
return new PanoCompassController(five, config);
|
|
361
387
|
};
|
|
362
388
|
class PanoCompassController {
|
|
363
|
-
five;
|
|
364
|
-
data;
|
|
365
|
-
config;
|
|
366
|
-
group = new THREE__namespace.Group();
|
|
367
|
-
modelLoaded = false;
|
|
368
|
-
roomInfoInstance;
|
|
369
|
-
roomInfoWrapperInstance;
|
|
370
|
-
compassMeshTween;
|
|
371
|
-
compassMesh;
|
|
372
|
-
entryDoorMesh;
|
|
373
389
|
constructor(five, config) {
|
|
390
|
+
Object.defineProperty(this, "five", {
|
|
391
|
+
enumerable: true,
|
|
392
|
+
configurable: true,
|
|
393
|
+
writable: true,
|
|
394
|
+
value: void 0
|
|
395
|
+
});
|
|
396
|
+
Object.defineProperty(this, "data", {
|
|
397
|
+
enumerable: true,
|
|
398
|
+
configurable: true,
|
|
399
|
+
writable: true,
|
|
400
|
+
value: void 0
|
|
401
|
+
});
|
|
402
|
+
Object.defineProperty(this, "config", {
|
|
403
|
+
enumerable: true,
|
|
404
|
+
configurable: true,
|
|
405
|
+
writable: true,
|
|
406
|
+
value: void 0
|
|
407
|
+
});
|
|
408
|
+
Object.defineProperty(this, "group", {
|
|
409
|
+
enumerable: true,
|
|
410
|
+
configurable: true,
|
|
411
|
+
writable: true,
|
|
412
|
+
value: new THREE__namespace.Group()
|
|
413
|
+
});
|
|
414
|
+
Object.defineProperty(this, "modelLoaded", {
|
|
415
|
+
enumerable: true,
|
|
416
|
+
configurable: true,
|
|
417
|
+
writable: true,
|
|
418
|
+
value: false
|
|
419
|
+
});
|
|
420
|
+
Object.defineProperty(this, "roomInfoInstance", {
|
|
421
|
+
enumerable: true,
|
|
422
|
+
configurable: true,
|
|
423
|
+
writable: true,
|
|
424
|
+
value: void 0
|
|
425
|
+
});
|
|
426
|
+
Object.defineProperty(this, "roomInfoWrapperInstance", {
|
|
427
|
+
enumerable: true,
|
|
428
|
+
configurable: true,
|
|
429
|
+
writable: true,
|
|
430
|
+
value: void 0
|
|
431
|
+
});
|
|
432
|
+
Object.defineProperty(this, "compassMeshTween", {
|
|
433
|
+
enumerable: true,
|
|
434
|
+
configurable: true,
|
|
435
|
+
writable: true,
|
|
436
|
+
value: void 0
|
|
437
|
+
});
|
|
438
|
+
Object.defineProperty(this, "compassMesh", {
|
|
439
|
+
enumerable: true,
|
|
440
|
+
configurable: true,
|
|
441
|
+
writable: true,
|
|
442
|
+
value: void 0
|
|
443
|
+
});
|
|
444
|
+
Object.defineProperty(this, "entryDoorMesh", {
|
|
445
|
+
enumerable: true,
|
|
446
|
+
configurable: true,
|
|
447
|
+
writable: true,
|
|
448
|
+
value: void 0
|
|
449
|
+
});
|
|
450
|
+
Object.defineProperty(this, "dispose", {
|
|
451
|
+
enumerable: true,
|
|
452
|
+
configurable: true,
|
|
453
|
+
writable: true,
|
|
454
|
+
value: () => {
|
|
455
|
+
var _a, _b, _c, _d;
|
|
456
|
+
this.five.scene.remove(this.group);
|
|
457
|
+
this.group.remove(...this.group.children);
|
|
458
|
+
(_b = (_a = this.compassMesh) === null || _a === void 0 ? void 0 : _a.material.map) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
459
|
+
(_d = (_c = this.entryDoorMesh) === null || _c === void 0 ? void 0 : _c.material.map) === null || _d === void 0 ? void 0 : _d.dispose();
|
|
460
|
+
this.five.off('panoArrived', this.onFivePanoArrived);
|
|
461
|
+
this.five.off('panoWillArrive', this.onFivePanoWillArrive);
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
Object.defineProperty(this, "onFiveFistPanoLoaded", {
|
|
465
|
+
enumerable: true,
|
|
466
|
+
configurable: true,
|
|
467
|
+
writable: true,
|
|
468
|
+
value: () => {
|
|
469
|
+
this.modelLoaded = true;
|
|
470
|
+
if (this.data)
|
|
471
|
+
this.init();
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
Object.defineProperty(this, "onFivePanoWillArrive", {
|
|
475
|
+
enumerable: true,
|
|
476
|
+
configurable: true,
|
|
477
|
+
writable: true,
|
|
478
|
+
value: (panoIndex) => {
|
|
479
|
+
var _a, _b;
|
|
480
|
+
if (panoIndex === this.five.panoIndex)
|
|
481
|
+
return;
|
|
482
|
+
(_a = this.compassMeshTween) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
483
|
+
(_b = this.compassMesh) === null || _b === void 0 ? void 0 : _b.material.setValues({ opacity: 0 });
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
Object.defineProperty(this, "onFivePanoArrived", {
|
|
487
|
+
enumerable: true,
|
|
488
|
+
configurable: true,
|
|
489
|
+
writable: true,
|
|
490
|
+
value: (panoIndex) => {
|
|
491
|
+
var _a, _b, _c, _d;
|
|
492
|
+
// ======== fix compass position ========
|
|
493
|
+
const standingPosition = this.five.work.observers[panoIndex].standingPosition;
|
|
494
|
+
if (this.compassMesh) {
|
|
495
|
+
// 指南针上移 0.01m,防止与地板重合
|
|
496
|
+
this.compassMesh.position.copy(standingPosition.clone().setY(standingPosition.y + 0.01));
|
|
497
|
+
if (this.compassMesh.material.opacity !== 0)
|
|
498
|
+
return;
|
|
499
|
+
(_a = this.compassMeshTween) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
500
|
+
this.compassMeshTween = tweenProgress(1000)
|
|
501
|
+
.onUpdate(({ progress }) => {
|
|
502
|
+
var _a;
|
|
503
|
+
(_a = this.compassMesh) === null || _a === void 0 ? void 0 : _a.material.setValues({ opacity: progress });
|
|
504
|
+
this.five.needsRender = true;
|
|
505
|
+
})
|
|
506
|
+
.play();
|
|
507
|
+
}
|
|
508
|
+
// ======== fix entry door label position and rotation ========
|
|
509
|
+
if (this.entryDoorMesh) {
|
|
510
|
+
const entryDoorPosition = new THREE__namespace.Vector3(this.data.entrance.position.x, this.data.entrance.position.y, this.data.entrance.position.z);
|
|
511
|
+
const panoToEntryDoorVector = entryDoorPosition
|
|
512
|
+
.clone()
|
|
513
|
+
.setY(standingPosition.y)
|
|
514
|
+
.sub(standingPosition)
|
|
515
|
+
.normalize();
|
|
516
|
+
const compassEntryDoorPosition = standingPosition
|
|
517
|
+
.clone()
|
|
518
|
+
.add(panoToEntryDoorVector.clone().multiplyScalar(0.7))
|
|
519
|
+
.setY(standingPosition.y + 0.01);
|
|
520
|
+
this.entryDoorMesh.rotation.z = new THREE__namespace.Vector3(0, 0, -1).angleTo(panoToEntryDoorVector);
|
|
521
|
+
this.entryDoorMesh.position.copy(compassEntryDoorPosition);
|
|
522
|
+
// 不是客厅时,隐藏入户门指引
|
|
523
|
+
((_b = this.data) === null || _b === void 0 ? void 0 : _b.room_observers[panoIndex].room.type) === 1
|
|
524
|
+
? (_c = this.entryDoorMesh) === null || _c === void 0 ? void 0 : _c.material.setValues({ opacity: 1 })
|
|
525
|
+
: (_d = this.entryDoorMesh) === null || _d === void 0 ? void 0 : _d.material.setValues({ opacity: 0 });
|
|
526
|
+
}
|
|
527
|
+
// ======== fix room info ========
|
|
528
|
+
if (this.roomInfoInstance && this.roomInfoWrapperInstance) {
|
|
529
|
+
this.roomInfoWrapperInstance.css3DObject.position.copy(standingPosition.clone().setY(standingPosition.y + 0.01));
|
|
530
|
+
this.roomInfoInstance.setRoom(this.data.room_observers[panoIndex].room);
|
|
531
|
+
}
|
|
532
|
+
this.five.needsRender = true;
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
Object.defineProperty(this, "onFiveCameraDirectionUpdate", {
|
|
536
|
+
enumerable: true,
|
|
537
|
+
configurable: true,
|
|
538
|
+
writable: true,
|
|
539
|
+
value: ({ longitude, latitude, }) => {
|
|
540
|
+
var _a, _b;
|
|
541
|
+
if (!this.roomInfoWrapperInstance)
|
|
542
|
+
return;
|
|
543
|
+
this.roomInfoWrapperInstance.css3DObject.rotation.z = longitude;
|
|
544
|
+
latitude > 0.66 && this.five.getCurrentState().mode === 'Panorama'
|
|
545
|
+
? (_a = this.roomInfoInstance) === null || _a === void 0 ? void 0 : _a.show()
|
|
546
|
+
: (_b = this.roomInfoInstance) === null || _b === void 0 ? void 0 : _b.hide();
|
|
547
|
+
}
|
|
548
|
+
});
|
|
374
549
|
this.five = five;
|
|
375
550
|
this.config = config;
|
|
376
551
|
this.five.scene.add(this.group);
|
|
@@ -385,19 +560,6 @@ class PanoCompassController {
|
|
|
385
560
|
if (this.modelLoaded)
|
|
386
561
|
this.init();
|
|
387
562
|
}
|
|
388
|
-
dispose = () => {
|
|
389
|
-
this.five.scene.remove(this.group);
|
|
390
|
-
this.group.remove(...this.group.children);
|
|
391
|
-
this.compassMesh?.material.map?.dispose();
|
|
392
|
-
this.entryDoorMesh?.material.map?.dispose();
|
|
393
|
-
this.five.off('panoArrived', this.onFivePanoArrived);
|
|
394
|
-
this.five.off('panoWillArrive', this.onFivePanoWillArrive);
|
|
395
|
-
};
|
|
396
|
-
onFiveFistPanoLoaded = () => {
|
|
397
|
-
this.modelLoaded = true;
|
|
398
|
-
if (this.data)
|
|
399
|
-
this.init();
|
|
400
|
-
};
|
|
401
563
|
async init() {
|
|
402
564
|
if (!this.data || !this.modelLoaded)
|
|
403
565
|
return;
|
|
@@ -421,7 +583,8 @@ class PanoCompassController {
|
|
|
421
583
|
this.five.needsRender = true;
|
|
422
584
|
}
|
|
423
585
|
async loadCompassMesh() {
|
|
424
|
-
|
|
586
|
+
var _a;
|
|
587
|
+
const compassImageUrl = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.compassImageUrl) ||
|
|
425
588
|
'//vrlab-image4.ljcdn.com/release/web/v3/north-point-circle.96498e69.png';
|
|
426
589
|
const compassTexture = await loadTexture(compassImageUrl);
|
|
427
590
|
const compassGeometry = new THREE__namespace.CircleGeometry(0.7, 32);
|
|
@@ -436,7 +599,8 @@ class PanoCompassController {
|
|
|
436
599
|
return compassMesh;
|
|
437
600
|
}
|
|
438
601
|
async loadEntryDoorMesh() {
|
|
439
|
-
|
|
602
|
+
var _a;
|
|
603
|
+
const entryDoorImageUrl = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.entryDoorImageUrl) ||
|
|
440
604
|
'//vrlab-image4.ljcdn.com/release/web/enterDoor.831b8208.png';
|
|
441
605
|
const entryDoorTexture = await loadTexture(entryDoorImageUrl);
|
|
442
606
|
const entryDoorGeometry = new THREE__namespace.PlaneGeometry(0.2, 0.16);
|
|
@@ -460,64 +624,13 @@ class PanoCompassController {
|
|
|
460
624
|
const roomInfo = CSS3DRenderPlugin(this.five).create3DDomContainer(points);
|
|
461
625
|
return roomInfo;
|
|
462
626
|
}
|
|
463
|
-
onFivePanoWillArrive = (panoIndex) => {
|
|
464
|
-
if (panoIndex === this.five.panoIndex)
|
|
465
|
-
return;
|
|
466
|
-
this.compassMeshTween?.dispose();
|
|
467
|
-
this.compassMesh?.material.setValues({ opacity: 0 });
|
|
468
|
-
};
|
|
469
|
-
onFivePanoArrived = (panoIndex) => {
|
|
470
|
-
// ======== fix compass position ========
|
|
471
|
-
const standingPosition = this.five.work.observers[panoIndex].standingPosition;
|
|
472
|
-
if (this.compassMesh) {
|
|
473
|
-
// 指南针上移 0.01m,防止与地板重合
|
|
474
|
-
this.compassMesh.position.copy(standingPosition.clone().setY(standingPosition.y + 0.01));
|
|
475
|
-
if (this.compassMesh.material.opacity !== 0)
|
|
476
|
-
return;
|
|
477
|
-
this.compassMeshTween?.dispose();
|
|
478
|
-
this.compassMeshTween = tweenProgress(1000)
|
|
479
|
-
.onUpdate(({ progress }) => {
|
|
480
|
-
this.compassMesh?.material.setValues({ opacity: progress });
|
|
481
|
-
this.five.needsRender = true;
|
|
482
|
-
})
|
|
483
|
-
.play();
|
|
484
|
-
}
|
|
485
|
-
// ======== fix entry door label position and rotation ========
|
|
486
|
-
if (this.entryDoorMesh) {
|
|
487
|
-
const entryDoorPosition = new THREE__namespace.Vector3(this.data.entrance.position.x, this.data.entrance.position.y, this.data.entrance.position.z);
|
|
488
|
-
const panoToEntryDoorVector = entryDoorPosition
|
|
489
|
-
.clone()
|
|
490
|
-
.setY(standingPosition.y)
|
|
491
|
-
.sub(standingPosition)
|
|
492
|
-
.normalize();
|
|
493
|
-
const compassEntryDoorPosition = standingPosition
|
|
494
|
-
.clone()
|
|
495
|
-
.add(panoToEntryDoorVector.clone().multiplyScalar(0.7))
|
|
496
|
-
.setY(standingPosition.y + 0.01);
|
|
497
|
-
this.entryDoorMesh.rotation.z = new THREE__namespace.Vector3(0, 0, -1).angleTo(panoToEntryDoorVector);
|
|
498
|
-
this.entryDoorMesh.position.copy(compassEntryDoorPosition);
|
|
499
|
-
// 不是客厅时,隐藏入户门指引
|
|
500
|
-
this.data?.room_observers[panoIndex].room.type === 1
|
|
501
|
-
? this.entryDoorMesh?.material.setValues({ opacity: 1 })
|
|
502
|
-
: this.entryDoorMesh?.material.setValues({ opacity: 0 });
|
|
503
|
-
}
|
|
504
|
-
// ======== fix room info ========
|
|
505
|
-
if (this.roomInfoInstance && this.roomInfoWrapperInstance) {
|
|
506
|
-
this.roomInfoWrapperInstance.css3DObject.position.copy(standingPosition.clone().setY(standingPosition.y + 0.01));
|
|
507
|
-
this.roomInfoInstance.setRoom(this.data.room_observers[panoIndex].room);
|
|
508
|
-
}
|
|
509
|
-
this.five.needsRender = true;
|
|
510
|
-
};
|
|
511
|
-
onFiveCameraDirectionUpdate = ({ longitude, latitude, }) => {
|
|
512
|
-
if (!this.roomInfoWrapperInstance)
|
|
513
|
-
return;
|
|
514
|
-
this.roomInfoWrapperInstance.css3DObject.rotation.z = longitude;
|
|
515
|
-
latitude > 0.66 && this.five.getCurrentState().mode === 'Panorama'
|
|
516
|
-
? this.roomInfoInstance?.show()
|
|
517
|
-
: this.roomInfoInstance?.hide();
|
|
518
|
-
};
|
|
519
627
|
}
|
|
520
628
|
|
|
629
|
+
const panoCompassPluginServerParams = {
|
|
630
|
+
name: 'PanoCompassPlugin',
|
|
631
|
+
version: 0,
|
|
632
|
+
};
|
|
633
|
+
|
|
521
634
|
exports.PanoCompassPlugin = PanoCompassPlugin;
|
|
522
635
|
exports["default"] = PanoCompassPlugin;
|
|
523
636
|
exports.panoCompassPluginServerParams = panoCompassPluginServerParams;
|
|
@@ -52,20 +52,22 @@ const PanoCursorRaycasterPlugin = (five) => {
|
|
|
52
52
|
return { clear, pointAxesHelperMesh };
|
|
53
53
|
};
|
|
54
54
|
const canSeePoint = (point, distanceError = 0) => {
|
|
55
|
-
|
|
55
|
+
var _a, _b;
|
|
56
|
+
const cameraPosition = (_a = five === null || five === void 0 ? void 0 : five.camera) === null || _a === void 0 ? void 0 : _a.position;
|
|
56
57
|
if (!cameraPosition)
|
|
57
58
|
return false;
|
|
58
59
|
const distance = point.distanceTo(cameraPosition);
|
|
59
60
|
const direction = point.sub(cameraPosition).normalize();
|
|
60
61
|
const raycaster = new three.Raycaster(cameraPosition, direction);
|
|
61
|
-
const intersection = five.model.intersectRaycaster(raycaster)
|
|
62
|
+
const intersection = (_b = five.model.intersectRaycaster(raycaster)) === null || _b === void 0 ? void 0 : _b[0];
|
|
62
63
|
return !(intersection && intersection.distance + distanceError < distance);
|
|
63
64
|
};
|
|
64
65
|
const intersection = () => {
|
|
65
66
|
return state.intersection;
|
|
66
67
|
};
|
|
67
68
|
const destroy = () => {
|
|
68
|
-
|
|
69
|
+
var _a, _b;
|
|
70
|
+
(_b = (_a = state.disposers) === null || _a === void 0 ? void 0 : _a.forEach) === null || _b === void 0 ? void 0 : _b.call(_a, (d) => d === null || d === void 0 ? void 0 : d());
|
|
69
71
|
five.off('intersectionOnModelUpdate', updateIntersection);
|
|
70
72
|
five.off('intersectionHidden', clearIntersection);
|
|
71
73
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import Line from '../Model/line';
|
|
2
|
-
import Magnifier from '../Modules/Magnifier';
|
|
3
|
-
import FiveHelper from '../Modules/FiveHelper';
|
|
4
|
-
import { Group } from 'three';
|
|
5
|
-
import { Model } from '../Model';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import type Line from '../Model/line';
|
|
2
|
+
import type Magnifier from '../Modules/Magnifier';
|
|
3
|
+
import type FiveHelper from '../Modules/FiveHelper';
|
|
4
|
+
import type { Group } from 'three';
|
|
5
|
+
import type { Model } from '../Model';
|
|
6
|
+
import type { PanoMeasurePluginEvent } from '../typings/event.type';
|
|
7
|
+
import type { UserDistanceItem } from '../utils/distanceDom';
|
|
8
|
+
import type { Five, Intersection, IntersectMeshInterface, Subscribe } from '@realsee/five';
|
|
9
|
+
import type { OpenParameter } from '../typings/data';
|
|
9
10
|
export interface IControllerParams {
|
|
10
11
|
five: Five;
|
|
11
12
|
group: Group;
|
|
@@ -14,7 +15,8 @@ export interface IControllerParams {
|
|
|
14
15
|
container: Element;
|
|
15
16
|
magnifier: Magnifier;
|
|
16
17
|
fiveHelper: FiveHelper;
|
|
17
|
-
|
|
18
|
+
openParams: OpenParameter;
|
|
19
|
+
hook: Subscribe<PanoMeasurePluginEvent>;
|
|
18
20
|
userDistanceItemCreator?: () => UserDistanceItem;
|
|
19
21
|
}
|
|
20
22
|
export default abstract class BaseController {
|
|
@@ -22,6 +24,7 @@ export default abstract class BaseController {
|
|
|
22
24
|
protected group: Group;
|
|
23
25
|
protected model: Model;
|
|
24
26
|
protected disposed: boolean;
|
|
27
|
+
protected isMobile: boolean;
|
|
25
28
|
protected mouseGroup: Group;
|
|
26
29
|
protected container: Element;
|
|
27
30
|
protected fiveHelper: FiveHelper;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { LineJson } from '../typings/data';
|
|
1
2
|
import { Model } from '../Model';
|
|
2
3
|
import Line from '../Model/line';
|
|
3
|
-
import { LineJson } from '../typings/data';
|
|
4
4
|
import BaseController, { IControllerParams } from './BaseController';
|
|
5
5
|
export interface EditEvent {
|
|
6
6
|
editedLineChange: (lines: LineJson[]) => void;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { LineJson } from '../typings/data';
|
|
2
|
+
import { Model } from '../Model';
|
|
3
|
+
import Line from '../Model/line';
|
|
4
|
+
import BaseController, { IControllerParams } from './BaseController';
|
|
5
|
+
export declare type State = 'watching' | 'editing';
|
|
6
|
+
export interface EditEvent {
|
|
7
|
+
editedLineChange: (lines: LineJson[]) => void;
|
|
8
|
+
}
|
|
9
|
+
export default class MixedController extends BaseController {
|
|
10
|
+
state: State;
|
|
11
|
+
model: Model;
|
|
12
|
+
private hasAppendDashed;
|
|
13
|
+
private fiveElement?;
|
|
14
|
+
private mobileStartPoint;
|
|
15
|
+
private mobileNowPoint;
|
|
16
|
+
private highlightedLines;
|
|
17
|
+
private deleteDom;
|
|
18
|
+
/** 圆环点到上一个端点连接的虚线 */
|
|
19
|
+
private dashed;
|
|
20
|
+
constructor(params: IControllerParams);
|
|
21
|
+
dispose(): void;
|
|
22
|
+
highlightLine(line: Line): void;
|
|
23
|
+
clearHighlightLines(): void;
|
|
24
|
+
getEditingLines(): Line[];
|
|
25
|
+
/** 编辑线条发生改变时通知外部 */
|
|
26
|
+
private onLineChanged;
|
|
27
|
+
private onWantsTapGesture;
|
|
28
|
+
/** 编辑时取消走点,watch时可以走 */
|
|
29
|
+
private onWantsToMoveToPano;
|
|
30
|
+
/** 移动全景时更新 distanceItem 在屏幕上的位置 */
|
|
31
|
+
private onCameraUpdate;
|
|
32
|
+
/** mobile态时更新虚线 */
|
|
33
|
+
private updateMobileDashed;
|
|
34
|
+
/** mobile态时更新放大镜 */
|
|
35
|
+
private updateMagnifier;
|
|
36
|
+
private onGetStartPoint;
|
|
37
|
+
private onGetEndPoint;
|
|
38
|
+
private onNowPointChange;
|
|
39
|
+
private onWillChangeState;
|
|
40
|
+
private chooseLine;
|
|
41
|
+
private highlightLines;
|
|
42
|
+
private deleteDomClickCallback;
|
|
43
|
+
private cancelDeleteClickCallback;
|
|
44
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Line from '../Model/line';
|
|
1
|
+
import type Line from '../Model/line';
|
|
2
2
|
import BaseController, { IControllerParams } from './BaseController';
|
|
3
3
|
export default class WatchController extends BaseController {
|
|
4
4
|
type: string;
|
|
@@ -22,4 +22,5 @@ export default class WatchController extends BaseController {
|
|
|
22
22
|
private lineRemoved;
|
|
23
23
|
private onCameraUpdate;
|
|
24
24
|
private deleteDomClickCallback;
|
|
25
|
+
private cancelDeleteClickCallback;
|
|
25
26
|
}
|