@realsee/dnalogel 2.0.0-alpha.4 → 2.0.0-alpha.40
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 +93 -4
- package/components/index.js +1450 -0
- package/dist/CSS3DRenderPlugin/Plugin.d.ts +49 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +4 -0
- package/dist/CSS3DRenderPlugin/index.js +234 -0
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/dist/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.d.ts +5 -0
- package/dist/CameraMovementPlugin/index.js +302 -0
- package/dist/CameraMovementPlugin/typing.d.ts +68 -0
- 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 +943 -0
- package/dist/ItemLabelPlugin/typings.d.ts +63 -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 +4 -0
- package/dist/ModelChassisCompassPlugin/index.js +145 -0
- package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +4 -0
- package/dist/ModelEntryDoorGuidePlugin/index.js +196 -0
- 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 +654 -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 +541 -0
- package/dist/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- 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 +4 -0
- package/dist/ModelViewPlugin/index.js +186 -0
- package/dist/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/dist/PanoCompassPlugin/Plugin.d.ts +47 -0
- package/dist/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/dist/PanoCompassPlugin/index.d.ts +8 -0
- package/dist/PanoCompassPlugin/index.js +636 -0
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/dist/PanoCursorRaycasterPlugin/index.js +90 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +39 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +44 -0
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +26 -0
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +70 -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 +25 -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 +59 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +15 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +13 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +20 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +44 -0
- package/dist/PanoMeasurePlugin/index.d.ts +10 -0
- package/dist/PanoMeasurePlugin/index.js +3963 -0
- package/dist/PanoMeasurePlugin/typings/data.d.ts +37 -0
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +37 -0
- package/dist/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/dist/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -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 +7 -0
- package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/dist/PanoRulerPlugin/Plugin.d.ts +31 -0
- package/dist/PanoRulerPlugin/index.d.ts +5 -0
- package/dist/PanoRulerPlugin/index.js +610 -0
- package/dist/PanoRulerPlugin/style.d.ts +2 -0
- package/dist/PanoRulerPlugin/typings.d.ts +21 -0
- package/dist/PanoRulerProPlugin/Controller.d.ts +15 -0
- package/dist/PanoRulerProPlugin/index.d.ts +8 -0
- package/dist/PanoRulerProPlugin/index.js +1006 -0
- package/dist/PanoRulerProPlugin/typings.d.ts +46 -0
- 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/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 +98 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +7 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.js +4533 -0
- package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +107 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +36 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +7 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +2008 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +67 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +7 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +4236 -0
- package/dist/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/dist/floorplan/TopviewFloorplanPlugin/typing.d.ts +86 -0
- package/dist/floorplan/constant.d.ts +5 -0
- package/dist/floorplan/index.d.ts +6 -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/{libs/floorplan/ModelFloorplanPlugin → dist/floorplan}/utils/constant.d.ts +10 -3
- package/{libs/floorplan/ModelFloorplanPlugin → dist/floorplan}/utils/correctFiveState.d.ts +2 -1
- package/dist/floorplan/utils/formatData.d.ts +5 -0
- package/dist/floorplan/utils/formatPosition.d.ts +36 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.es.js +16212 -0
- package/dist/index.js +16266 -0
- package/dist/index.umd.js +16258 -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 +5 -0
- package/dist/shared-utils/formatRad.d.ts +7 -0
- package/dist/shared-utils/getPxmm.d.ts +19 -0
- package/dist/shared-utils/getRandomColor.d.ts +1 -0
- package/dist/shared-utils/index.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/logger.d.ts +16 -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/evenNumber.d.ts +3 -0
- package/dist/shared-utils/math/index.d.ts +2 -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/uuid.d.ts +5 -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/Magnifier.html +9 -0
- package/docs/classes/ModelRoomLabelController.html +17 -0
- 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 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -0
- package/docs/enums/Rotation.html +3 -0
- package/docs/index.html +88 -0
- 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 -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/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/ModelViewPluginExportType.html +1 -0
- package/docs/interfaces/OpenParameter.html +3 -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/PanoCursorRaycasterPluginParameterType.html +1 -0
- package/docs/interfaces/PanoMeasureParameterType.html +1 -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/PanoRulerProPluginExportType.html +1 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -0
- package/docs/interfaces/PanoRulerProPluginState.html +1 -0
- 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 -0
- package/docs/interfaces/Room.html +1 -0
- package/docs/interfaces/RoomInfo.html +1 -0
- package/docs/interfaces/RoomLabel.html +13 -0
- package/docs/interfaces/RoomRules.html +1 -0
- package/docs/interfaces/Rooms.html +1 -0
- package/docs/modules.html +36 -0
- 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 +568 -0
- package/libs/ItemLabelPlugin/ItemLabelItem.js +227 -0
- package/libs/ItemLabelPlugin/Plugin.d.ts +4 -0
- package/libs/ItemLabelPlugin/Plugin.js +126 -0
- package/libs/ItemLabelPlugin/events.type.d.ts +9 -0
- package/libs/{floorplan/ModelFloorplanPlugin/typings → ItemLabelPlugin}/events.type.js +0 -0
- package/libs/ItemLabelPlugin/index.d.ts +9 -0
- package/libs/ItemLabelPlugin/index.js +8 -0
- package/libs/ItemLabelPlugin/typings.d.ts +63 -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 -135
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +389 -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 +67 -25
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +121 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +291 -0
- package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
- 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 +159 -0
- package/libs/ModelViewPlugin/index.d.ts +3 -16
- package/libs/ModelViewPlugin/index.js +2 -159
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -0
- package/libs/PanoCompassPlugin/Plugin.d.ts +47 -0
- package/libs/PanoCompassPlugin/Plugin.js +249 -0
- package/libs/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +48 -0
- package/libs/PanoCompassPlugin/index.d.ts +7 -24
- package/libs/PanoCompassPlugin/index.js +6 -88
- package/libs/PanoCursorRaycasterPlugin/index.d.ts +1 -1
- package/libs/PanoCursorRaycasterPlugin/index.js +5 -3
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +39 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +132 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.js +329 -0
- package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +44 -0
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +337 -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 +26 -0
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +316 -0
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +70 -0
- package/libs/PanoMeasurePlugin/Controller/index.js +306 -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 +12 -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 +25 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +190 -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 +59 -0
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +278 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +128 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +15 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +126 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +13 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +73 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +20 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +117 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +4 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +80 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +12 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +98 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +71 -0
- 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 +44 -0
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +264 -0
- package/libs/PanoMeasurePlugin/index.d.ts +10 -0
- package/libs/PanoMeasurePlugin/index.js +7 -0
- package/libs/PanoMeasurePlugin/typings/data.d.ts +37 -0
- package/libs/PanoMeasurePlugin/typings/data.js +1 -0
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +37 -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/calculateThreeMouse.d.ts +10 -0
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +15 -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 +120 -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 +7 -0
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +69 -0
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +6 -0
- 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 -396
- package/libs/PanoRulerPlugin/style.d.ts +1 -1
- package/libs/PanoRulerPlugin/style.js +1 -0
- package/libs/PanoRulerProPlugin/Controller.d.ts +15 -0
- package/libs/PanoRulerProPlugin/Controller.js +110 -0
- package/libs/PanoRulerProPlugin/RulerItem.js +314 -0
- package/libs/PanoRulerProPlugin/RulerItems.js +377 -0
- package/libs/PanoRulerProPlugin/index.d.ts +8 -0
- package/libs/PanoRulerProPlugin/index.js +8 -0
- package/libs/PanoRulerProPlugin/typings.d.ts +46 -0
- package/libs/PanoRulerProPlugin/typings.js +1 -0
- 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/{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 +120 -0
- package/libs/floorplan/Components/CurrentFloor.js +469 -0
- package/libs/floorplan/Components/Main.js +470 -0
- package/libs/floorplan/Components/Normalmage.js +63 -0
- package/libs/floorplan/Components/RoomHighlight/Room.js +107 -0
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +216 -0
- 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 +331 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +64 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +104 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +142 -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 +71 -75
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +666 -322
- 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 +168 -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 +373 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +24 -16
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +195 -43
- 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 -45
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +451 -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/constant.d.ts +5 -0
- package/libs/floorplan/constant.js +6 -0
- package/libs/floorplan/index.d.ts +6 -0
- package/libs/floorplan/index.js +7 -0
- package/libs/floorplan/typings/floorplanServerData.d.ts +4 -0
- package/libs/floorplan/utils/constant.d.ts +22 -0
- package/libs/floorplan/{ModelFloorplanPlugin/utils → utils}/constant.js +9 -2
- package/libs/floorplan/utils/correctFiveState.d.ts +15 -0
- package/libs/floorplan/{ModelFloorplanPlugin/utils → utils}/correctFiveState.js +16 -16
- package/libs/floorplan/utils/formatPosition.d.ts +1 -1
- package/libs/floorplan/utils/formatPosition.js +3 -3
- package/libs/index.d.ts +17 -21
- package/libs/index.js +29 -12
- 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 +14 -1
- package/libs/shared-utils/getPxmm.js +31 -12
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +1 -0
- package/libs/shared-utils/logger.d.ts +16 -0
- package/libs/shared-utils/logger.js +47 -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 +30 -14
- package/CHANGELOG.md +0 -7
- package/dist/dnalogel.cjs.js +0 -2
- package/dist/dnalogel.es.js +0 -37796
- 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/ModelFloorplanPlugin/typings/events.type.d.ts +0 -23
- 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
- package/libs/shared-utils/five/useFivePlugin.d.ts +0 -1
- package/libs/shared-utils/five/useFivePlugin.js +0 -8
- package/libs/shared-utils/useDebounce.d.ts +0 -8
- package/libs/shared-utils/useDebounce.js +0 -22
- package/libs/shared-utils/useThrottle.d.ts +0 -8
- package/libs/shared-utils/useThrottle.js +0 -25
|
@@ -0,0 +1,373 @@
|
|
|
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
|
+
empty,
|
|
16
|
+
get_spread_update,
|
|
17
|
+
group_outros,
|
|
18
|
+
init,
|
|
19
|
+
insert,
|
|
20
|
+
mount_component,
|
|
21
|
+
safe_not_equal,
|
|
22
|
+
set_style,
|
|
23
|
+
space,
|
|
24
|
+
transition_in,
|
|
25
|
+
transition_out
|
|
26
|
+
} from "svelte/internal";
|
|
27
|
+
|
|
28
|
+
import { onMount } from 'svelte';
|
|
29
|
+
import Camera from './Camera';
|
|
30
|
+
import CurrentFloor from './CurrentFloor/CurrentFloor';
|
|
31
|
+
|
|
32
|
+
function add_css(target) {
|
|
33
|
+
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}");
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// (41:0) {#if visible}
|
|
37
|
+
function create_if_block(ctx) {
|
|
38
|
+
let div;
|
|
39
|
+
let div_resize_listener;
|
|
40
|
+
let current;
|
|
41
|
+
let if_block = /*clientWidth*/ ctx[6] !== 0 && create_if_block_1(ctx);
|
|
42
|
+
|
|
43
|
+
return {
|
|
44
|
+
c() {
|
|
45
|
+
div = element("div");
|
|
46
|
+
if (if_block) if_block.c();
|
|
47
|
+
attr(div, "class", "plugin-floorplan-radar svelte-7d8ub2");
|
|
48
|
+
add_render_callback(() => /*div_elementresize_handler*/ ctx[12].call(div));
|
|
49
|
+
},
|
|
50
|
+
m(target, anchor) {
|
|
51
|
+
insert(target, div, anchor);
|
|
52
|
+
if (if_block) if_block.m(div, null);
|
|
53
|
+
div_resize_listener = add_resize_listener(div, /*div_elementresize_handler*/ ctx[12].bind(div));
|
|
54
|
+
current = true;
|
|
55
|
+
},
|
|
56
|
+
p(ctx, dirty) {
|
|
57
|
+
if (/*clientWidth*/ ctx[6] !== 0) {
|
|
58
|
+
if (if_block) {
|
|
59
|
+
if_block.p(ctx, dirty);
|
|
60
|
+
|
|
61
|
+
if (dirty & /*clientWidth*/ 64) {
|
|
62
|
+
transition_in(if_block, 1);
|
|
63
|
+
}
|
|
64
|
+
} else {
|
|
65
|
+
if_block = create_if_block_1(ctx);
|
|
66
|
+
if_block.c();
|
|
67
|
+
transition_in(if_block, 1);
|
|
68
|
+
if_block.m(div, null);
|
|
69
|
+
}
|
|
70
|
+
} else if (if_block) {
|
|
71
|
+
group_outros();
|
|
72
|
+
|
|
73
|
+
transition_out(if_block, 1, 1, () => {
|
|
74
|
+
if_block = null;
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
check_outros();
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
i(local) {
|
|
81
|
+
if (current) return;
|
|
82
|
+
transition_in(if_block);
|
|
83
|
+
current = true;
|
|
84
|
+
},
|
|
85
|
+
o(local) {
|
|
86
|
+
transition_out(if_block);
|
|
87
|
+
current = false;
|
|
88
|
+
},
|
|
89
|
+
d(detaching) {
|
|
90
|
+
if (detaching) detach(div);
|
|
91
|
+
if (if_block) if_block.d();
|
|
92
|
+
div_resize_listener();
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// (43:4) {#if clientWidth !== 0}
|
|
98
|
+
function create_if_block_1(ctx) {
|
|
99
|
+
let div;
|
|
100
|
+
let currentfloor;
|
|
101
|
+
let t;
|
|
102
|
+
let camera;
|
|
103
|
+
let style_width = `${/*contentWidth*/ ctx[8]}px`;
|
|
104
|
+
let style_height = `${/*contentHeight*/ ctx[11]}px`;
|
|
105
|
+
let current;
|
|
106
|
+
|
|
107
|
+
const currentfloor_spread_levels = [
|
|
108
|
+
{
|
|
109
|
+
five: /*five*/ ctx[0],
|
|
110
|
+
pxmm: /*pxmm*/ ctx[9],
|
|
111
|
+
floorIndex: /*floorIndex*/ ctx[10],
|
|
112
|
+
floorplanData: /*floorplanData*/ ctx[3],
|
|
113
|
+
hoverEnable: /*hoverEnable*/ ctx[2],
|
|
114
|
+
extraObjects: /*extraObjects*/ ctx[5]
|
|
115
|
+
}
|
|
116
|
+
];
|
|
117
|
+
|
|
118
|
+
let currentfloor_props = {};
|
|
119
|
+
|
|
120
|
+
for (let i = 0; i < currentfloor_spread_levels.length; i += 1) {
|
|
121
|
+
currentfloor_props = assign(currentfloor_props, currentfloor_spread_levels[i]);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
currentfloor = new CurrentFloor({ props: currentfloor_props });
|
|
125
|
+
|
|
126
|
+
const camera_spread_levels = [
|
|
127
|
+
{
|
|
128
|
+
pxmm: /*pxmm*/ ctx[9],
|
|
129
|
+
five: /*five*/ ctx[0],
|
|
130
|
+
floorplanData: /*floorplanData*/ ctx[3],
|
|
131
|
+
cameraImageUrl: /*cameraImageUrl*/ ctx[4]
|
|
132
|
+
}
|
|
133
|
+
];
|
|
134
|
+
|
|
135
|
+
let camera_props = {};
|
|
136
|
+
|
|
137
|
+
for (let i = 0; i < camera_spread_levels.length; i += 1) {
|
|
138
|
+
camera_props = assign(camera_props, camera_spread_levels[i]);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
camera = new Camera({ props: camera_props });
|
|
142
|
+
|
|
143
|
+
return {
|
|
144
|
+
c() {
|
|
145
|
+
div = element("div");
|
|
146
|
+
create_component(currentfloor.$$.fragment);
|
|
147
|
+
t = space();
|
|
148
|
+
create_component(camera.$$.fragment);
|
|
149
|
+
attr(div, "class", "plugin-floorplan-radar-container svelte-7d8ub2");
|
|
150
|
+
set_style(div, "width", style_width, false);
|
|
151
|
+
set_style(div, "height", style_height, false);
|
|
152
|
+
},
|
|
153
|
+
m(target, anchor) {
|
|
154
|
+
insert(target, div, anchor);
|
|
155
|
+
mount_component(currentfloor, div, null);
|
|
156
|
+
append(div, t);
|
|
157
|
+
mount_component(camera, div, null);
|
|
158
|
+
current = true;
|
|
159
|
+
},
|
|
160
|
+
p(ctx, dirty) {
|
|
161
|
+
const currentfloor_changes = (dirty & /*five, pxmm, floorIndex, floorplanData, hoverEnable, extraObjects*/ 1581)
|
|
162
|
+
? get_spread_update(currentfloor_spread_levels, [
|
|
163
|
+
{
|
|
164
|
+
five: /*five*/ ctx[0],
|
|
165
|
+
pxmm: /*pxmm*/ ctx[9],
|
|
166
|
+
floorIndex: /*floorIndex*/ ctx[10],
|
|
167
|
+
floorplanData: /*floorplanData*/ ctx[3],
|
|
168
|
+
hoverEnable: /*hoverEnable*/ ctx[2],
|
|
169
|
+
extraObjects: /*extraObjects*/ ctx[5]
|
|
170
|
+
}
|
|
171
|
+
])
|
|
172
|
+
: {};
|
|
173
|
+
|
|
174
|
+
currentfloor.$set(currentfloor_changes);
|
|
175
|
+
|
|
176
|
+
const camera_changes = (dirty & /*pxmm, five, floorplanData, cameraImageUrl*/ 537)
|
|
177
|
+
? get_spread_update(camera_spread_levels, [
|
|
178
|
+
{
|
|
179
|
+
pxmm: /*pxmm*/ ctx[9],
|
|
180
|
+
five: /*five*/ ctx[0],
|
|
181
|
+
floorplanData: /*floorplanData*/ ctx[3],
|
|
182
|
+
cameraImageUrl: /*cameraImageUrl*/ ctx[4]
|
|
183
|
+
}
|
|
184
|
+
])
|
|
185
|
+
: {};
|
|
186
|
+
|
|
187
|
+
camera.$set(camera_changes);
|
|
188
|
+
|
|
189
|
+
if (dirty & /*contentWidth*/ 256 && style_width !== (style_width = `${/*contentWidth*/ ctx[8]}px`)) {
|
|
190
|
+
set_style(div, "width", style_width, false);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
if (dirty & /*contentHeight*/ 2048 && style_height !== (style_height = `${/*contentHeight*/ ctx[11]}px`)) {
|
|
194
|
+
set_style(div, "height", style_height, false);
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
i(local) {
|
|
198
|
+
if (current) return;
|
|
199
|
+
transition_in(currentfloor.$$.fragment, local);
|
|
200
|
+
transition_in(camera.$$.fragment, local);
|
|
201
|
+
current = true;
|
|
202
|
+
},
|
|
203
|
+
o(local) {
|
|
204
|
+
transition_out(currentfloor.$$.fragment, local);
|
|
205
|
+
transition_out(camera.$$.fragment, local);
|
|
206
|
+
current = false;
|
|
207
|
+
},
|
|
208
|
+
d(detaching) {
|
|
209
|
+
if (detaching) detach(div);
|
|
210
|
+
destroy_component(currentfloor);
|
|
211
|
+
destroy_component(camera);
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function create_fragment(ctx) {
|
|
217
|
+
let if_block_anchor;
|
|
218
|
+
let current;
|
|
219
|
+
let if_block = /*visible*/ ctx[1] && create_if_block(ctx);
|
|
220
|
+
|
|
221
|
+
return {
|
|
222
|
+
c() {
|
|
223
|
+
if (if_block) if_block.c();
|
|
224
|
+
if_block_anchor = empty();
|
|
225
|
+
},
|
|
226
|
+
m(target, anchor) {
|
|
227
|
+
if (if_block) if_block.m(target, anchor);
|
|
228
|
+
insert(target, if_block_anchor, anchor);
|
|
229
|
+
current = true;
|
|
230
|
+
},
|
|
231
|
+
p(ctx, [dirty]) {
|
|
232
|
+
if (/*visible*/ ctx[1]) {
|
|
233
|
+
if (if_block) {
|
|
234
|
+
if_block.p(ctx, dirty);
|
|
235
|
+
|
|
236
|
+
if (dirty & /*visible*/ 2) {
|
|
237
|
+
transition_in(if_block, 1);
|
|
238
|
+
}
|
|
239
|
+
} else {
|
|
240
|
+
if_block = create_if_block(ctx);
|
|
241
|
+
if_block.c();
|
|
242
|
+
transition_in(if_block, 1);
|
|
243
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
244
|
+
}
|
|
245
|
+
} else if (if_block) {
|
|
246
|
+
group_outros();
|
|
247
|
+
|
|
248
|
+
transition_out(if_block, 1, 1, () => {
|
|
249
|
+
if_block = null;
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
check_outros();
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
i(local) {
|
|
256
|
+
if (current) return;
|
|
257
|
+
transition_in(if_block);
|
|
258
|
+
current = true;
|
|
259
|
+
},
|
|
260
|
+
o(local) {
|
|
261
|
+
transition_out(if_block);
|
|
262
|
+
current = false;
|
|
263
|
+
},
|
|
264
|
+
d(detaching) {
|
|
265
|
+
if (if_block) if_block.d(detaching);
|
|
266
|
+
if (detaching) detach(if_block_anchor);
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
function instance($$self, $$props, $$invalidate) {
|
|
272
|
+
let { five } = $$props;
|
|
273
|
+
let { visible } = $$props;
|
|
274
|
+
let { hoverEnable } = $$props;
|
|
275
|
+
let { floorplanData } = $$props;
|
|
276
|
+
let { cameraImageUrl } = $$props;
|
|
277
|
+
let { extraObjects = [] } = $$props;
|
|
278
|
+
let pxmm = 0;
|
|
279
|
+
let floorIndex = 0;
|
|
280
|
+
let clientWidth = 0;
|
|
281
|
+
let clientHeight = 0;
|
|
282
|
+
let contentWidth = 0;
|
|
283
|
+
let contentHeight = 0;
|
|
284
|
+
|
|
285
|
+
function handlePanoArrived(panoIndex) {
|
|
286
|
+
$$invalidate(10, floorIndex = five.work.observers[panoIndex].floorIndex);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
onMount(() => {
|
|
290
|
+
five.on('panoArrived', handlePanoArrived);
|
|
291
|
+
|
|
292
|
+
return () => {
|
|
293
|
+
five.off('panoArrived', handlePanoArrived);
|
|
294
|
+
};
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
function div_elementresize_handler() {
|
|
298
|
+
clientWidth = this.clientWidth;
|
|
299
|
+
clientHeight = this.clientHeight;
|
|
300
|
+
$$invalidate(6, clientWidth);
|
|
301
|
+
$$invalidate(7, clientHeight);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
$$self.$$set = $$props => {
|
|
305
|
+
if ('five' in $$props) $$invalidate(0, five = $$props.five);
|
|
306
|
+
if ('visible' in $$props) $$invalidate(1, visible = $$props.visible);
|
|
307
|
+
if ('hoverEnable' in $$props) $$invalidate(2, hoverEnable = $$props.hoverEnable);
|
|
308
|
+
if ('floorplanData' in $$props) $$invalidate(3, floorplanData = $$props.floorplanData);
|
|
309
|
+
if ('cameraImageUrl' in $$props) $$invalidate(4, cameraImageUrl = $$props.cameraImageUrl);
|
|
310
|
+
if ('extraObjects' in $$props) $$invalidate(5, extraObjects = $$props.extraObjects);
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
$$self.$$.update = () => {
|
|
314
|
+
if ($$self.$$.dirty & /*clientWidth, clientHeight, floorplanData, contentWidth*/ 456) {
|
|
315
|
+
$: {
|
|
316
|
+
const size = Math.min(clientWidth, clientHeight);
|
|
317
|
+
const { max, min } = floorplanData.bounding;
|
|
318
|
+
const boundingWidth = max.x - min.x;
|
|
319
|
+
const boundingHeight = max.y - min.y;
|
|
320
|
+
|
|
321
|
+
const contentSize = (function getSize() {
|
|
322
|
+
if (boundingWidth > boundingHeight) return [size, size / boundingWidth * boundingHeight];
|
|
323
|
+
return [size / boundingHeight * boundingWidth, size];
|
|
324
|
+
})();
|
|
325
|
+
|
|
326
|
+
$$invalidate(8, contentWidth = contentSize[0]);
|
|
327
|
+
$$invalidate(11, contentHeight = contentSize[1]);
|
|
328
|
+
$$invalidate(9, pxmm = contentWidth / boundingWidth);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
return [
|
|
334
|
+
five,
|
|
335
|
+
visible,
|
|
336
|
+
hoverEnable,
|
|
337
|
+
floorplanData,
|
|
338
|
+
cameraImageUrl,
|
|
339
|
+
extraObjects,
|
|
340
|
+
clientWidth,
|
|
341
|
+
clientHeight,
|
|
342
|
+
contentWidth,
|
|
343
|
+
pxmm,
|
|
344
|
+
floorIndex,
|
|
345
|
+
contentHeight,
|
|
346
|
+
div_elementresize_handler
|
|
347
|
+
];
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
class Component extends SvelteComponent {
|
|
351
|
+
constructor(options) {
|
|
352
|
+
super();
|
|
353
|
+
|
|
354
|
+
init(
|
|
355
|
+
this,
|
|
356
|
+
options,
|
|
357
|
+
instance,
|
|
358
|
+
create_fragment,
|
|
359
|
+
safe_not_equal,
|
|
360
|
+
{
|
|
361
|
+
five: 0,
|
|
362
|
+
visible: 1,
|
|
363
|
+
hoverEnable: 2,
|
|
364
|
+
floorplanData: 3,
|
|
365
|
+
cameraImageUrl: 4,
|
|
366
|
+
extraObjects: 5
|
|
367
|
+
},
|
|
368
|
+
add_css
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export default Component;
|
|
@@ -1,28 +1,36 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
|
+
import type { BaseOptions } from '../../base/BasePlugin';
|
|
2
3
|
import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
3
4
|
import type { FloorplanExtraObject3D } from '../typings/floorplanData';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
export default class PanoFloorplanRadarPluginController {
|
|
5
|
+
import type { State, Config, EventMap, Parameters, PluginData, PluginServerData } from './typing';
|
|
6
|
+
import * as BasePlugin from '../../base/BasePluginWithData';
|
|
7
|
+
export declare class Controller extends BasePlugin.Controller<State, EventMap, PluginServerData, PluginData> {
|
|
8
|
+
name: string;
|
|
9
|
+
state: State;
|
|
10
|
+
protected data?: PluginData;
|
|
12
11
|
private app?;
|
|
13
|
-
private five;
|
|
14
12
|
private wrapperSelector;
|
|
15
|
-
private data?;
|
|
16
13
|
private wrapper;
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
|
|
20
|
-
constructor(five: Five, params?: PanoFloorplanRadarPluginControllerParameter);
|
|
14
|
+
private disposed;
|
|
15
|
+
private extraObjects;
|
|
16
|
+
constructor(five: Five, params?: Parameters);
|
|
21
17
|
dispose: () => void;
|
|
22
|
-
load
|
|
18
|
+
load(serverData: PluginServerData | FloorplanServerData, state?: Partial<State>, userAction?: boolean): Promise<void>;
|
|
19
|
+
show(options?: BaseOptions): Promise<void>;
|
|
20
|
+
hide(options?: BaseOptions): Promise<void>;
|
|
21
|
+
enable(options?: BaseOptions): void;
|
|
22
|
+
disable(options?: BaseOptions): void;
|
|
23
|
+
/** 更改插件 State */
|
|
24
|
+
setState(state: Partial<State>, options?: BaseOptions): void;
|
|
23
25
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
24
26
|
appendTo(wrapper: Element): void;
|
|
25
|
-
changeConfigs(
|
|
27
|
+
changeConfigs(config: Config, userAction?: boolean): void;
|
|
26
28
|
setExtraObjectsWith3DPositions(data: FloorplanExtraObject3D[]): void;
|
|
29
|
+
protected formatData(serverData: PluginServerData): Promise<PluginData>;
|
|
30
|
+
private _enable;
|
|
31
|
+
private _disable;
|
|
32
|
+
private _show;
|
|
33
|
+
private _hide;
|
|
34
|
+
private updateState;
|
|
27
35
|
private render;
|
|
28
36
|
}
|
|
@@ -1,30 +1,107 @@
|
|
|
1
|
-
import Main from './Components/Main
|
|
1
|
+
import Main from './Components/Main';
|
|
2
|
+
import equal from '../../shared-utils/equal';
|
|
3
|
+
import { CAMERA_IMAGE } from '../Assets/camera';
|
|
4
|
+
import * as BasePlugin from '../../base/BasePluginWithData';
|
|
2
5
|
import formatData, { formatExtraObjects } from '../utils/formatData';
|
|
3
|
-
export
|
|
4
|
-
app;
|
|
5
|
-
five;
|
|
6
|
-
wrapperSelector = '';
|
|
7
|
-
data;
|
|
8
|
-
wrapper = null;
|
|
9
|
-
extraObjects;
|
|
10
|
-
originExtraObjects;
|
|
11
|
-
configs = {};
|
|
6
|
+
export class Controller extends BasePlugin.Controller {
|
|
12
7
|
constructor(five, params) {
|
|
8
|
+
super(five);
|
|
9
|
+
// =============== public properties =================
|
|
10
|
+
Object.defineProperty(this, "name", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: 'panoFloorplanRadarPlugin'
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(this, "state", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
configurable: true,
|
|
19
|
+
writable: true,
|
|
20
|
+
value: void 0
|
|
21
|
+
});
|
|
22
|
+
// =============== protected properties =================
|
|
23
|
+
Object.defineProperty(this, "data", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true,
|
|
27
|
+
value: void 0
|
|
28
|
+
});
|
|
29
|
+
// =============== private properties =================
|
|
30
|
+
Object.defineProperty(this, "app", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
configurable: true,
|
|
33
|
+
writable: true,
|
|
34
|
+
value: void 0
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(this, "wrapperSelector", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
configurable: true,
|
|
39
|
+
writable: true,
|
|
40
|
+
value: ''
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(this, "wrapper", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
configurable: true,
|
|
45
|
+
writable: true,
|
|
46
|
+
value: null
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(this, "disposed", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
configurable: true,
|
|
51
|
+
writable: true,
|
|
52
|
+
value: false
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(this, "extraObjects", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
configurable: true,
|
|
57
|
+
writable: true,
|
|
58
|
+
value: []
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(this, "dispose", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
configurable: true,
|
|
63
|
+
writable: true,
|
|
64
|
+
value: () => {
|
|
65
|
+
var _a;
|
|
66
|
+
this.disposed = true;
|
|
67
|
+
(_a = this.app) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
68
|
+
this.wrapper = null;
|
|
69
|
+
this.wrapperSelector = '';
|
|
70
|
+
this.hooks.emit('dispose');
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
Object.defineProperty(this, "_disable", {
|
|
74
|
+
enumerable: true,
|
|
75
|
+
configurable: true,
|
|
76
|
+
writable: true,
|
|
77
|
+
value: (options) => {
|
|
78
|
+
var _a;
|
|
79
|
+
const { userAction } = options;
|
|
80
|
+
(_a = this.app) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
81
|
+
this.app = undefined;
|
|
82
|
+
this.hooks.emit('disable', { userAction });
|
|
83
|
+
}
|
|
84
|
+
});
|
|
13
85
|
this.five = five;
|
|
14
|
-
|
|
15
|
-
|
|
86
|
+
// =============== init State ===============
|
|
87
|
+
const baseConfig = {
|
|
88
|
+
hoverEnable: false,
|
|
89
|
+
cameraImageUrl: CAMERA_IMAGE,
|
|
90
|
+
};
|
|
91
|
+
const paramsConfig = (params === null || params === void 0 ? void 0 : params.configs) ? params.configs : {};
|
|
92
|
+
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
93
|
+
this.state = { enabled: true, visible: true, config };
|
|
94
|
+
// =============== init wrapper ===============
|
|
95
|
+
if (params === null || params === void 0 ? void 0 : params.wrapper)
|
|
96
|
+
console.warn('不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法');
|
|
97
|
+
if (typeof (params === null || params === void 0 ? void 0 : params.wrapper) === 'string')
|
|
16
98
|
this.wrapperSelector = params.wrapper;
|
|
17
|
-
else if (params
|
|
99
|
+
else if ((params === null || params === void 0 ? void 0 : params.wrapper) instanceof Element)
|
|
18
100
|
this.wrapper = params.wrapper;
|
|
101
|
+
// =============== init Listener ===============
|
|
19
102
|
five.once('dispose', this.dispose);
|
|
20
103
|
}
|
|
21
|
-
|
|
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;
|
|
104
|
+
async load(serverData, state, userAction = true) {
|
|
28
105
|
// const loadImage = async () => {
|
|
29
106
|
// const floorIndex = this.five.work.observers[this.five.getCurrentState().panoIndex].floorIndex
|
|
30
107
|
// // 当有 svgString 时,没有加载过程
|
|
@@ -40,49 +117,124 @@ export default class PanoFloorplanRadarPluginController {
|
|
|
40
117
|
// })
|
|
41
118
|
// }
|
|
42
119
|
// await loadImage()
|
|
120
|
+
function isPluginServerData(serverData) {
|
|
121
|
+
return Object.prototype.hasOwnProperty.apply(serverData, ['version']);
|
|
122
|
+
}
|
|
123
|
+
const copyData = JSON.parse(JSON.stringify(serverData));
|
|
124
|
+
const _serverData = isPluginServerData(copyData) ? copyData.data : copyData;
|
|
125
|
+
const prevData = this.data;
|
|
126
|
+
this.data = await formatData(_serverData);
|
|
127
|
+
this.hooks.emit('dataLoaded', this.data);
|
|
128
|
+
this.hooks.emit('dataChange', this.data, prevData);
|
|
129
|
+
if (state)
|
|
130
|
+
this.updateState(state, userAction);
|
|
43
131
|
this.render();
|
|
44
|
-
}
|
|
132
|
+
}
|
|
133
|
+
async show(options = {}) {
|
|
134
|
+
// 已经展示完成了,不做任何操作
|
|
135
|
+
if (this.state.visible)
|
|
136
|
+
return;
|
|
137
|
+
const userAction = options.userAction !== undefined ? options.userAction : true;
|
|
138
|
+
this.updateState({ visible: true }, userAction);
|
|
139
|
+
this._show({ userAction });
|
|
140
|
+
}
|
|
141
|
+
async hide(options = {}) {
|
|
142
|
+
if (!this.state.visible)
|
|
143
|
+
return;
|
|
144
|
+
const userAction = options.userAction !== undefined ? options.userAction : true;
|
|
145
|
+
this.updateState({ visible: false }, userAction);
|
|
146
|
+
this._hide({ userAction });
|
|
147
|
+
}
|
|
148
|
+
enable(options = {}) {
|
|
149
|
+
if (this.state.enabled)
|
|
150
|
+
return;
|
|
151
|
+
const userAction = options.userAction !== undefined ? options.userAction : true;
|
|
152
|
+
this.updateState({ enabled: true }, options.userAction || userAction);
|
|
153
|
+
this._enable({ userAction });
|
|
154
|
+
}
|
|
155
|
+
disable(options = {}) {
|
|
156
|
+
if (!this.state.enabled)
|
|
157
|
+
return;
|
|
158
|
+
const userAction = options.userAction !== undefined ? options.userAction : true;
|
|
159
|
+
this.updateState({ enabled: false }, options.userAction || userAction);
|
|
160
|
+
this._disable({ userAction });
|
|
161
|
+
}
|
|
162
|
+
/** 更改插件 State */
|
|
163
|
+
setState(state, options = {}) {
|
|
164
|
+
const prevState = this.state;
|
|
165
|
+
const userAction = options.userAction !== undefined ? options.userAction : true;
|
|
166
|
+
this.updateState(state, userAction);
|
|
167
|
+
if (state.enabled !== undefined && prevState.enabled !== state.enabled) {
|
|
168
|
+
const options = { userAction };
|
|
169
|
+
state.enabled ? this._enable(options) : this._disable(options);
|
|
170
|
+
}
|
|
171
|
+
if (state.visible !== undefined && prevState.visible !== state.visible) {
|
|
172
|
+
const options = { userAction };
|
|
173
|
+
state.visible ? this._show(options) : this._hide(options);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
45
176
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
46
177
|
appendTo(wrapper) {
|
|
47
178
|
this.wrapper = wrapper;
|
|
48
179
|
this.render();
|
|
49
180
|
}
|
|
50
|
-
changeConfigs(
|
|
51
|
-
|
|
181
|
+
changeConfigs(config, userAction = true) {
|
|
182
|
+
this.setState({ config }, { userAction });
|
|
52
183
|
this.render();
|
|
53
184
|
}
|
|
54
185
|
setExtraObjectsWith3DPositions(data) {
|
|
55
|
-
this.originExtraObjects = data;
|
|
56
186
|
if (!this.data)
|
|
57
187
|
return;
|
|
58
188
|
this.extraObjects = formatExtraObjects(data, this.five, this.data);
|
|
59
189
|
this.render();
|
|
60
190
|
}
|
|
191
|
+
async formatData(serverData) {
|
|
192
|
+
return await formatData(serverData.data);
|
|
193
|
+
}
|
|
194
|
+
_enable(options) {
|
|
195
|
+
const { userAction } = options;
|
|
196
|
+
this.hooks.emit('enable', { userAction });
|
|
197
|
+
if (this.state.visible)
|
|
198
|
+
this._show({ userAction });
|
|
199
|
+
}
|
|
200
|
+
_show(options) {
|
|
201
|
+
if (this.disposed)
|
|
202
|
+
return;
|
|
203
|
+
if (!this.state.enabled)
|
|
204
|
+
return;
|
|
205
|
+
const { userAction } = options;
|
|
206
|
+
this.hooks.emit('show', { userAction });
|
|
207
|
+
this.render();
|
|
208
|
+
}
|
|
209
|
+
_hide(options) {
|
|
210
|
+
if (this.disposed)
|
|
211
|
+
return;
|
|
212
|
+
if (!this.state.enabled)
|
|
213
|
+
return;
|
|
214
|
+
const { userAction } = options;
|
|
215
|
+
this.hooks.emit('hide', { userAction });
|
|
216
|
+
this.render();
|
|
217
|
+
}
|
|
218
|
+
updateState(state, userAction) {
|
|
219
|
+
const prevState = this.state;
|
|
220
|
+
this.state = Object.assign(Object.assign({}, this.state), state);
|
|
221
|
+
if (equal(this.state, prevState, { deep: true }))
|
|
222
|
+
return;
|
|
223
|
+
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|
|
224
|
+
}
|
|
61
225
|
render() {
|
|
226
|
+
if (this.disposed)
|
|
227
|
+
return;
|
|
228
|
+
if (!this.state.enabled)
|
|
229
|
+
return;
|
|
62
230
|
// 处理 wrapper
|
|
63
|
-
if (!this.wrapper) {
|
|
231
|
+
if (!this.wrapper && this.wrapperSelector) {
|
|
64
232
|
const _wrapper = document.querySelector(this.wrapperSelector);
|
|
65
233
|
this.wrapper = _wrapper;
|
|
66
234
|
}
|
|
67
235
|
if (!this.data || !this.wrapper)
|
|
68
236
|
return;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
const props = {
|
|
73
|
-
five: this.five,
|
|
74
|
-
floorplanData: this.data,
|
|
75
|
-
extraObjects: this.extraObjects,
|
|
76
|
-
cameraImageUrl: this.configs.cameraImageUrl,
|
|
77
|
-
hoverEnable: this.configs.hoverEnable ?? false,
|
|
78
|
-
};
|
|
79
|
-
if (!this.app) {
|
|
80
|
-
this.app = new Main({
|
|
81
|
-
target: this.wrapper,
|
|
82
|
-
props,
|
|
83
|
-
});
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
this.app.$set(props);
|
|
237
|
+
const props = Object.assign(Object.assign({}, this.state.config), { five: this.five, floorplanData: this.data, visible: this.state.visible, extraObjects: this.extraObjects });
|
|
238
|
+
this.app ? this.app.$set(props) : (this.app = new Main({ target: this.wrapper, props }));
|
|
87
239
|
}
|
|
88
240
|
}
|