@realsee/dnalogel 2.14.2-alpha.0 → 2.14.2
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/dist/CSS3DRenderPlugin/typing.d.ts +5 -5
- package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +3 -3
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -1
- package/dist/CameraMovementPlugin/typing.d.ts +4 -4
- package/dist/CruisePlugin/typing.d.ts +4 -4
- package/dist/GuideLinePlugin/typing.d.ts +1 -1
- package/dist/ItemLabelPlugin/events.type.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -1
- package/dist/ModelItemLabelPlugin/events.type.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/Controller.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/index.d.ts +1 -1
- package/dist/Object3DHelperPlugin/typings.d.ts +2 -2
- package/dist/PanoCompassPlugin/index.d.ts +1 -1
- package/dist/PanoCompassPlugin/typings.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +6 -6
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/dist/PanoRulerPlugin/typings.d.ts +1 -1
- package/dist/PanoRulerProPlugin/typings.d.ts +1 -1
- package/dist/PanoSpatialTagPlugin/typings.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
- package/dist/PanoTagPlugin/index.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/controller.d.ts +11 -11
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +5 -5
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +19 -19
- package/dist/PanoVideoPlugin/index.d.ts +2 -2
- package/dist/base/BasePlugin.d.ts +1 -1
- package/dist/base/BasePluginWithData.d.ts +1 -1
- package/dist/components/PaintBrush/Subscribe.d.ts +1 -1
- package/dist/components/PaintBrush/typings.d.ts +1 -1
- package/dist/floorplan/MapviewFloorplanPlugin/index.d.ts +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +2 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +4 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +2 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +2 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +2 -2
- package/dist/floorplan/typings/floorplanData.d.ts +3 -3
- package/dist/floorplan/typings/floorplanServerData.d.ts +1 -1
- package/dist/floorplan/typings/utility.d.ts +2 -2
- package/dist/index.cjs.js +23 -23
- package/dist/index.js +1008 -1005
- package/dist/index.umd.js +23 -23
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +2 -2
- package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +1 -1
- package/dist/shared-utils/Object3DHelper/typings/Direction.d.ts +2 -2
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +2 -2
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +2 -2
- package/dist/shared-utils/three/PointHelper.d.ts +3 -3
- package/dist/typings/math.type.d.ts +3 -3
- package/docs/assets/highlight.css +6 -6
- package/docs/assets/main.js +56 -52
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +27 -5
- package/docs/classes/CSS3DRender.html +36 -36
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +37 -37
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +46 -46
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -5
- package/docs/functions/CameraMovementPlugin.html +5 -5
- package/docs/functions/CruisePlugin.html +5 -5
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +5 -5
- package/docs/functions/MapviewFloorplanPlugin.html +5 -5
- package/docs/functions/ModelChassisCompassPlugin.html +5 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
- package/docs/functions/ModelFloorplanPlugin.html +5 -5
- package/docs/functions/ModelItemLabelPlugin.html +5 -5
- package/docs/functions/ModelRoomLabelPlugin.html +5 -5
- package/docs/functions/ModelTVVideoPlugin.html +5 -5
- package/docs/functions/ModelViewPlugin.html +5 -5
- package/docs/functions/Object3DHelperPlugin.html +5 -5
- package/docs/functions/PanoCompassPlugin.html +5 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
- package/docs/functions/PanoDoorLabelPlugin.html +5 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
- package/docs/functions/PanoMeasurePlugin.html +5 -5
- package/docs/functions/PanoRulerPlugin.html +5 -5
- package/docs/functions/PanoRulerProPlugin.html +5 -5
- package/docs/functions/PanoSpatialTagPlugin.html +5 -5
- package/docs/functions/PanoTagPlugin.html +5 -5
- package/docs/functions/PanoVideoPlugin.html +5 -5
- package/docs/functions/TopviewFloorplanPlugin.html +5 -5
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +9 -9
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +23 -23
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +35 -35
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ImagePlaneGroup.html +6 -6
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +21 -21
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +14 -14
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +14 -14
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +21 -21
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +14 -14
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +23 -23
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +16 -16
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +22 -22
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +20 -20
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +18 -18
- package/docs/interfaces/PanoRulerPluginOptions.html +9 -9
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +15 -15
- package/docs/interfaces/PanoRulerProPluginOptions.html +9 -9
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +29 -29
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +17 -17
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +6 -6
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +45 -45
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelElement.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +17 -17
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +9 -9
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PanoVideoPluginParameterType.html +5 -5
- package/docs/types/PanoVideoPluginReturnType.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +13 -13
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -6
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/typing.d.ts +5 -5
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +3 -3
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -1
- package/libs/CameraMovementPlugin/typing.d.ts +4 -4
- package/libs/CruisePlugin/typing.d.ts +4 -4
- package/libs/GuideLinePlugin/typing.d.ts +1 -1
- package/libs/ItemLabelPlugin/events.type.d.ts +1 -1
- package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -1
- package/libs/ModelItemLabelPlugin/events.type.d.ts +1 -1
- package/libs/ModelRoomLabelPlugin/Controller.d.ts +1 -1
- package/libs/ModelRoomLabelPlugin/index.d.ts +1 -1
- package/libs/Object3DHelperPlugin/typings.d.ts +2 -2
- package/libs/PanoCompassPlugin/index.d.ts +1 -1
- package/libs/PanoCompassPlugin/typings.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +6 -6
- package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/libs/PanoRulerPlugin/typings.d.ts +1 -1
- package/libs/PanoRulerProPlugin/typings.d.ts +1 -1
- package/libs/PanoSpatialTagPlugin/typings.d.ts +1 -1
- package/libs/PanoTagPlugin/Archive/deprecated.d.ts +1 -1
- package/libs/PanoTagPlugin/Components/Common/Media.js +29 -31
- package/libs/PanoTagPlugin/controller/TagRender.js +73 -73
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +34 -46
- package/libs/PanoTagPlugin/controller/index.js +8 -8
- package/libs/PanoTagPlugin/index.d.ts +2 -2
- package/libs/PanoTagPlugin/typings/controller.d.ts +11 -11
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +2 -2
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +5 -5
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +19 -19
- package/libs/PanoVideoPlugin/index.d.ts +2 -2
- package/libs/base/BasePlugin.d.ts +1 -1
- package/libs/base/BasePlugin.js +3 -3
- package/libs/base/BasePluginWithData.d.ts +1 -1
- package/libs/components/PaintBrush/Subscribe.d.ts +1 -1
- package/libs/components/PaintBrush/typings.d.ts +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/index.d.ts +2 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.d.ts +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +64 -60
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +104 -100
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +4 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +60 -51
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.d.ts +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +2 -0
- package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +2 -2
- package/libs/floorplan/typings/floorplanData.d.ts +3 -3
- package/libs/floorplan/typings/floorplanServerData.d.ts +1 -1
- package/libs/floorplan/typings/utility.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/typings/Direction.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +2 -2
- package/libs/shared-utils/three/PointHelper.d.ts +3 -3
- package/libs/typings/math.type.d.ts +3 -3
- package/package.json +15 -17
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { svelteResizeObserver as
|
|
1
|
+
import { SvelteComponent as K, init as L, safe_not_equal as Q, append_styles as T, empty as V, insert as y, transition_in as u, transition_out as p, check_outros as N, detach as I, onMount as X, element as P, attr as R, action_destroyer as Y, listen as H, group_outros as B, run_all as Z, assign as W, create_component as z, space as x, set_style as q, mount_component as C, append as $, get_spread_update as S, destroy_component as A } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import ee from "./Camera.js";
|
|
3
|
+
import te from "./CurrentFloor/CurrentFloor.js";
|
|
4
|
+
import { svelteResizeObserver as ne } from "../../../shared-utils/svelte/resizeObserver.js";
|
|
5
5
|
import "../../Assets/camera.js";
|
|
6
6
|
import "../../../shared-utils/throttle.js";
|
|
7
7
|
import "./CurrentFloor/ExtraObjects.js";
|
|
@@ -12,190 +12,194 @@ import "../../Components/RoomHighlight/RoomHighlight.js";
|
|
|
12
12
|
import "../../Components/RoomHighlight/Room.js";
|
|
13
13
|
import "../../utils/formatPosition.js";
|
|
14
14
|
import "../../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
15
|
-
function re(
|
|
16
|
-
|
|
15
|
+
function re(i) {
|
|
16
|
+
T(i, "svelte-1mvqyqq", ".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}");
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
let e, l,
|
|
18
|
+
function M(i) {
|
|
19
|
+
let e, l, n, o, r = i[7] !== 0 && F(i);
|
|
20
20
|
return {
|
|
21
21
|
c() {
|
|
22
|
-
e =
|
|
22
|
+
e = P("div"), r && r.c(), R(e, "class", "plugin-floorplan-radar svelte-1mvqyqq");
|
|
23
23
|
},
|
|
24
24
|
m(f, m) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
],
|
|
25
|
+
y(f, e, m), r && r.m(e, null), l = !0, n || (o = [
|
|
26
|
+
Y(ne.call(null, e)),
|
|
27
|
+
H(e, "clientWidth", i[13]),
|
|
28
|
+
H(e, "clientHeight", i[14])
|
|
29
|
+
], n = !0);
|
|
30
30
|
},
|
|
31
31
|
p(f, m) {
|
|
32
|
-
f[
|
|
33
|
-
|
|
34
|
-
}),
|
|
32
|
+
f[7] !== 0 ? r ? (r.p(f, m), m & 128 && u(r, 1)) : (r = F(f), r.c(), u(r, 1), r.m(e, null)) : r && (B(), p(r, 1, 1, () => {
|
|
33
|
+
r = null;
|
|
34
|
+
}), N());
|
|
35
35
|
},
|
|
36
36
|
i(f) {
|
|
37
|
-
l || (u(
|
|
37
|
+
l || (u(r), l = !0);
|
|
38
38
|
},
|
|
39
39
|
o(f) {
|
|
40
|
-
|
|
40
|
+
p(r), l = !1;
|
|
41
41
|
},
|
|
42
42
|
d(f) {
|
|
43
|
-
f &&
|
|
43
|
+
f && I(e), r && r.d(), n = !1, Z(o);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
let e, l,
|
|
49
|
-
const
|
|
47
|
+
function F(i) {
|
|
48
|
+
let e, l, n, o, r = `${i[9]}px`, f = `${i[12]}px`, m;
|
|
49
|
+
const c = [
|
|
50
50
|
{
|
|
51
|
-
five:
|
|
52
|
-
pxmm:
|
|
53
|
-
floorIndex:
|
|
54
|
-
floorplanData:
|
|
55
|
-
hoverEnable:
|
|
56
|
-
extraObjects:
|
|
51
|
+
five: i[0],
|
|
52
|
+
pxmm: i[10],
|
|
53
|
+
floorIndex: i[11],
|
|
54
|
+
floorplanData: i[3],
|
|
55
|
+
hoverEnable: i[2],
|
|
56
|
+
extraObjects: i[5],
|
|
57
|
+
highlightData: i[6]
|
|
57
58
|
}
|
|
58
59
|
];
|
|
59
|
-
let
|
|
60
|
-
for (let t = 0; t <
|
|
61
|
-
|
|
62
|
-
l = new
|
|
63
|
-
const
|
|
60
|
+
let h = {};
|
|
61
|
+
for (let t = 0; t < c.length; t += 1)
|
|
62
|
+
h = W(h, c[t]);
|
|
63
|
+
l = new te({ props: h });
|
|
64
|
+
const g = [
|
|
64
65
|
{
|
|
65
|
-
pxmm:
|
|
66
|
-
five:
|
|
67
|
-
floorplanData:
|
|
68
|
-
cameraImageUrl:
|
|
66
|
+
pxmm: i[10],
|
|
67
|
+
five: i[0],
|
|
68
|
+
floorplanData: i[3],
|
|
69
|
+
cameraImageUrl: i[4]
|
|
69
70
|
}
|
|
70
71
|
];
|
|
71
|
-
let
|
|
72
|
-
for (let t = 0; t <
|
|
73
|
-
|
|
74
|
-
return
|
|
72
|
+
let d = {};
|
|
73
|
+
for (let t = 0; t < g.length; t += 1)
|
|
74
|
+
d = W(d, g[t]);
|
|
75
|
+
return o = new ee({ props: d }), {
|
|
75
76
|
c() {
|
|
76
|
-
e =
|
|
77
|
+
e = P("div"), z(l.$$.fragment), n = x(), z(o.$$.fragment), R(e, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), q(e, "width", r), q(e, "height", f);
|
|
77
78
|
},
|
|
78
79
|
m(t, s) {
|
|
79
|
-
|
|
80
|
+
y(t, e, s), C(l, e, null), $(e, n), C(o, e, null), m = !0;
|
|
80
81
|
},
|
|
81
82
|
p(t, s) {
|
|
82
|
-
const
|
|
83
|
+
const _ = s & 3181 ? S(c, [
|
|
83
84
|
{
|
|
84
85
|
five: t[0],
|
|
85
|
-
pxmm: t[
|
|
86
|
-
floorIndex: t[
|
|
86
|
+
pxmm: t[10],
|
|
87
|
+
floorIndex: t[11],
|
|
87
88
|
floorplanData: t[3],
|
|
88
89
|
hoverEnable: t[2],
|
|
89
|
-
extraObjects: t[5]
|
|
90
|
+
extraObjects: t[5],
|
|
91
|
+
highlightData: t[6]
|
|
90
92
|
}
|
|
91
93
|
]) : {};
|
|
92
|
-
l.$set(
|
|
93
|
-
const v = s &
|
|
94
|
+
l.$set(_);
|
|
95
|
+
const v = s & 1049 ? S(g, [
|
|
94
96
|
{
|
|
95
|
-
pxmm: t[
|
|
97
|
+
pxmm: t[10],
|
|
96
98
|
five: t[0],
|
|
97
99
|
floorplanData: t[3],
|
|
98
100
|
cameraImageUrl: t[4]
|
|
99
101
|
}
|
|
100
102
|
]) : {};
|
|
101
|
-
|
|
103
|
+
o.$set(v), s & 512 && r !== (r = `${t[9]}px`) && q(e, "width", r), s & 4096 && f !== (f = `${t[12]}px`) && q(e, "height", f);
|
|
102
104
|
},
|
|
103
105
|
i(t) {
|
|
104
|
-
m || (u(l.$$.fragment, t), u(
|
|
106
|
+
m || (u(l.$$.fragment, t), u(o.$$.fragment, t), m = !0);
|
|
105
107
|
},
|
|
106
108
|
o(t) {
|
|
107
|
-
|
|
109
|
+
p(l.$$.fragment, t), p(o.$$.fragment, t), m = !1;
|
|
108
110
|
},
|
|
109
111
|
d(t) {
|
|
110
|
-
t &&
|
|
112
|
+
t && I(e), A(l), A(o);
|
|
111
113
|
}
|
|
112
114
|
};
|
|
113
115
|
}
|
|
114
|
-
function
|
|
115
|
-
let e, l,
|
|
116
|
+
function le(i) {
|
|
117
|
+
let e, l, n = i[1] && M(i);
|
|
116
118
|
return {
|
|
117
119
|
c() {
|
|
118
|
-
|
|
120
|
+
n && n.c(), e = V();
|
|
119
121
|
},
|
|
120
|
-
m(
|
|
121
|
-
|
|
122
|
+
m(o, r) {
|
|
123
|
+
n && n.m(o, r), y(o, e, r), l = !0;
|
|
122
124
|
},
|
|
123
|
-
p(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}),
|
|
125
|
+
p(o, [r]) {
|
|
126
|
+
o[1] ? n ? (n.p(o, r), r & 2 && u(n, 1)) : (n = M(o), n.c(), u(n, 1), n.m(e.parentNode, e)) : n && (B(), p(n, 1, 1, () => {
|
|
127
|
+
n = null;
|
|
128
|
+
}), N());
|
|
127
129
|
},
|
|
128
|
-
i(
|
|
129
|
-
l || (u(
|
|
130
|
+
i(o) {
|
|
131
|
+
l || (u(n), l = !0);
|
|
130
132
|
},
|
|
131
|
-
o(
|
|
132
|
-
|
|
133
|
+
o(o) {
|
|
134
|
+
p(n), l = !1;
|
|
133
135
|
},
|
|
134
|
-
d(
|
|
135
|
-
|
|
136
|
+
d(o) {
|
|
137
|
+
n && n.d(o), o && I(e);
|
|
136
138
|
}
|
|
137
139
|
};
|
|
138
140
|
}
|
|
139
|
-
function
|
|
140
|
-
var w,
|
|
141
|
-
let { five:
|
|
142
|
-
function
|
|
143
|
-
l(
|
|
141
|
+
function ie(i, e, l) {
|
|
142
|
+
var w, j;
|
|
143
|
+
let { five: n } = e, { visible: o } = e, { hoverEnable: r } = e, { floorplanData: f } = e, { cameraImageUrl: m } = e, { extraObjects: c = [] } = e, { highlightData: h } = e, g = 0, d = (j = (w = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : w.floorIndex) != null ? j : 0, t = 0, s = 0, _ = 0, v = 0;
|
|
144
|
+
function k(a) {
|
|
145
|
+
l(11, d = n.work.observers[a].floorIndex);
|
|
144
146
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
+
X(() => (n.on("panoArrived", k), () => {
|
|
148
|
+
n.off("panoArrived", k);
|
|
147
149
|
}));
|
|
148
|
-
const
|
|
149
|
-
l(6, c = a.detail);
|
|
150
|
-
}, G = (a) => {
|
|
150
|
+
const G = (a) => {
|
|
151
151
|
l(7, t = a.detail);
|
|
152
|
+
}, J = (a) => {
|
|
153
|
+
l(8, s = a.detail);
|
|
152
154
|
};
|
|
153
|
-
return
|
|
154
|
-
"five" in a && l(0,
|
|
155
|
-
},
|
|
156
|
-
if (
|
|
157
|
-
const a = Math.min(
|
|
158
|
-
return b >
|
|
155
|
+
return i.$$set = (a) => {
|
|
156
|
+
"five" in a && l(0, n = a.five), "visible" in a && l(1, o = a.visible), "hoverEnable" in a && l(2, r = a.hoverEnable), "floorplanData" in a && l(3, f = a.floorplanData), "cameraImageUrl" in a && l(4, m = a.cameraImageUrl), "extraObjects" in a && l(5, c = a.extraObjects), "highlightData" in a && l(6, h = a.highlightData);
|
|
157
|
+
}, i.$$.update = () => {
|
|
158
|
+
if (i.$$.dirty & 904) {
|
|
159
|
+
const a = Math.min(t, s), { max: O, min: E } = f.bounding, b = O.x - E.x, D = O.y - E.y, U = function() {
|
|
160
|
+
return b > D ? [a, a / b * D] : [a / D * b, a];
|
|
159
161
|
}();
|
|
160
|
-
l(
|
|
162
|
+
l(9, _ = U[0]), l(12, v = U[1]), l(10, g = _ / b);
|
|
161
163
|
}
|
|
162
164
|
}, [
|
|
163
|
-
r,
|
|
164
|
-
i,
|
|
165
165
|
n,
|
|
166
|
+
o,
|
|
167
|
+
r,
|
|
166
168
|
f,
|
|
167
169
|
m,
|
|
168
|
-
p,
|
|
169
170
|
c,
|
|
171
|
+
h,
|
|
170
172
|
t,
|
|
171
173
|
s,
|
|
172
|
-
|
|
173
|
-
h,
|
|
174
|
+
_,
|
|
174
175
|
g,
|
|
175
|
-
|
|
176
|
-
|
|
176
|
+
d,
|
|
177
|
+
v,
|
|
178
|
+
G,
|
|
179
|
+
J
|
|
177
180
|
];
|
|
178
181
|
}
|
|
179
|
-
class
|
|
182
|
+
class De extends K {
|
|
180
183
|
constructor(e) {
|
|
181
|
-
super(),
|
|
184
|
+
super(), L(
|
|
182
185
|
this,
|
|
183
186
|
e,
|
|
187
|
+
ie,
|
|
184
188
|
le,
|
|
185
|
-
|
|
186
|
-
L,
|
|
189
|
+
Q,
|
|
187
190
|
{
|
|
188
191
|
five: 0,
|
|
189
192
|
visible: 1,
|
|
190
193
|
hoverEnable: 2,
|
|
191
194
|
floorplanData: 3,
|
|
192
195
|
cameraImageUrl: 4,
|
|
193
|
-
extraObjects: 5
|
|
196
|
+
extraObjects: 5,
|
|
197
|
+
highlightData: 6
|
|
194
198
|
},
|
|
195
199
|
re
|
|
196
200
|
);
|
|
197
201
|
}
|
|
198
202
|
}
|
|
199
203
|
export {
|
|
200
|
-
|
|
204
|
+
De as default
|
|
201
205
|
};
|
|
@@ -2,6 +2,7 @@ import type { Five } from '@realsee/five';
|
|
|
2
2
|
import type { BaseOptions } from '../../base/BasePlugin';
|
|
3
3
|
import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
4
4
|
import type { FloorplanExtraObject3D } from '../typings/floorplanData';
|
|
5
|
+
import type { HighlightData } from '../typings';
|
|
5
6
|
import type { State, Config, EventMap, Parameters, PluginData, PluginServerData } from './typing';
|
|
6
7
|
import * as BasePlugin from '../../base/BasePluginWithData';
|
|
7
8
|
export declare class Controller extends BasePlugin.Controller<State, EventMap, PluginServerData, PluginData> {
|
|
@@ -13,6 +14,7 @@ export declare class Controller extends BasePlugin.Controller<State, EventMap, P
|
|
|
13
14
|
private wrapper;
|
|
14
15
|
private disposed;
|
|
15
16
|
private extraObjects;
|
|
17
|
+
private highlightData;
|
|
16
18
|
constructor(five: Five, params?: Parameters);
|
|
17
19
|
dispose: () => void;
|
|
18
20
|
load(serverData: PluginServerData | FloorplanServerData, state?: Partial<State>, userAction?: boolean): Promise<void>;
|
|
@@ -20,6 +22,8 @@ export declare class Controller extends BasePlugin.Controller<State, EventMap, P
|
|
|
20
22
|
hide(options?: BaseOptions): Promise<void>;
|
|
21
23
|
enable(options?: BaseOptions): void;
|
|
22
24
|
disable(options?: BaseOptions): void;
|
|
25
|
+
highlight: (highlightData: HighlightData) => void;
|
|
26
|
+
unhighlight: () => void;
|
|
23
27
|
/** 更改插件 State */
|
|
24
28
|
setState(state: Partial<State>, options?: BaseOptions): void;
|
|
25
29
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var w = Object.defineProperty, v = Object.defineProperties;
|
|
2
|
+
var A = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var f = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var m = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var c = (r, i, t) => i in r ? w(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t, p = (r, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
|
|
7
|
+
m.call(i, t) && c(r, t, i[t]);
|
|
8
8
|
if (f)
|
|
9
9
|
for (var t of f(i))
|
|
10
|
-
|
|
10
|
+
S.call(i, t) && c(r, t, i[t]);
|
|
11
11
|
return r;
|
|
12
|
-
}, b = (r, i) =>
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
}, b = (r, i) => v(r, A(i));
|
|
13
|
+
var o = (r, i, t) => (c(r, typeof i != "symbol" ? i + "" : i, t), t);
|
|
14
|
+
var l = (r, i, t) => new Promise((e, s) => {
|
|
15
|
+
var h = (n) => {
|
|
16
16
|
try {
|
|
17
|
-
u(t.next(
|
|
17
|
+
u(t.next(n));
|
|
18
18
|
} catch (d) {
|
|
19
19
|
s(d);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (n) => {
|
|
22
22
|
try {
|
|
23
|
-
u(t.throw(
|
|
23
|
+
u(t.throw(n));
|
|
24
24
|
} catch (d) {
|
|
25
25
|
s(d);
|
|
26
26
|
}
|
|
27
|
-
}, u = (
|
|
27
|
+
}, u = (n) => n.done ? e(n.value) : Promise.resolve(n.value).then(h, a);
|
|
28
28
|
u((t = t.apply(r, i)).next());
|
|
29
29
|
});
|
|
30
|
-
import
|
|
31
|
-
import { equal as
|
|
32
|
-
import { CAMERA_IMAGE as
|
|
33
|
-
import { Controller as
|
|
34
|
-
import { formatData as
|
|
30
|
+
import D from "./Components/Main.js";
|
|
31
|
+
import { equal as _ } from "../../shared-utils/equal.js";
|
|
32
|
+
import { CAMERA_IMAGE as E } from "../Assets/camera.js";
|
|
33
|
+
import { Controller as y } from "../../base/BasePluginWithData.js";
|
|
34
|
+
import { formatData as g, formatExtraObjects as C } from "../utils/formatData.js";
|
|
35
35
|
import "../../vendor/svelte/internal/index.js";
|
|
36
36
|
import "./Components/Camera.js";
|
|
37
37
|
import "../../shared-utils/throttle.js";
|
|
@@ -49,44 +49,52 @@ import "../../shared-utils/isTruelyObject.js";
|
|
|
49
49
|
import "../../base/BasePlugin.js";
|
|
50
50
|
import "../../shared-utils/Subscribe.js";
|
|
51
51
|
import "../Assets/floorplanExtraObject.js";
|
|
52
|
-
class V extends
|
|
52
|
+
class V extends y {
|
|
53
53
|
constructor(t, e) {
|
|
54
54
|
super(t);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
o(this, "name", "panoFloorplanRadarPlugin");
|
|
56
|
+
o(this, "state");
|
|
57
|
+
o(this, "data");
|
|
58
|
+
o(this, "app");
|
|
59
|
+
o(this, "wrapperSelector", "");
|
|
60
|
+
o(this, "wrapper", null);
|
|
61
|
+
o(this, "disposed", !1);
|
|
62
|
+
o(this, "extraObjects", []);
|
|
63
|
+
o(this, "highlightData", {});
|
|
64
|
+
o(this, "dispose", () => {
|
|
64
65
|
var t;
|
|
65
66
|
this.disposed = !0, (t = this.app) == null || t.$destroy(), this.wrapper = null, this.wrapperSelector = "", this.hooks.emit("dispose");
|
|
66
67
|
});
|
|
67
|
-
|
|
68
|
+
o(this, "highlight", (t) => {
|
|
69
|
+
!this.state.config.highlightEnable || (this.highlightData = t, this.render());
|
|
70
|
+
});
|
|
71
|
+
o(this, "unhighlight", () => {
|
|
72
|
+
this.highlightData = {}, this.render();
|
|
73
|
+
});
|
|
74
|
+
o(this, "_disable", (t) => {
|
|
68
75
|
var s;
|
|
69
76
|
const { userAction: e } = t;
|
|
70
77
|
(s = this.app) == null || s.$destroy(), this.app = void 0, this.hooks.emit("disable", { userAction: e });
|
|
71
78
|
});
|
|
72
79
|
this.five = t;
|
|
73
80
|
const s = {
|
|
74
|
-
hoverEnable: !
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
81
|
+
hoverEnable: !0,
|
|
82
|
+
highlightEnable: !0,
|
|
83
|
+
cameraImageUrl: E
|
|
84
|
+
}, h = e != null && e.configs ? e.configs : {}, a = p(p({}, s), h);
|
|
85
|
+
this.state = { enabled: !0, visible: !0, config: a }, e != null && e.wrapper && console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"), typeof (e == null ? void 0 : e.wrapper) == "string" ? this.wrapperSelector = e.wrapper : (e == null ? void 0 : e.wrapper) instanceof Element && (this.wrapper = e.wrapper), t.once("dispose", this.dispose);
|
|
78
86
|
}
|
|
79
87
|
load(t, e, s = !0) {
|
|
80
|
-
return
|
|
81
|
-
function
|
|
88
|
+
return l(this, null, function* () {
|
|
89
|
+
function h(d) {
|
|
82
90
|
return Object.prototype.hasOwnProperty.apply(d, ["version"]);
|
|
83
91
|
}
|
|
84
|
-
const
|
|
85
|
-
this.data = yield
|
|
92
|
+
const a = JSON.parse(JSON.stringify(t)), u = h(a) ? a.data : a, n = this.data;
|
|
93
|
+
this.data = yield g(u), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, n), e && this.updateState(e, s), this.render();
|
|
86
94
|
});
|
|
87
95
|
}
|
|
88
96
|
show() {
|
|
89
|
-
return
|
|
97
|
+
return l(this, arguments, function* (t = {}) {
|
|
90
98
|
if (this.state.visible)
|
|
91
99
|
return;
|
|
92
100
|
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
@@ -94,7 +102,7 @@ class V extends E {
|
|
|
94
102
|
});
|
|
95
103
|
}
|
|
96
104
|
hide() {
|
|
97
|
-
return
|
|
105
|
+
return l(this, arguments, function* (t = {}) {
|
|
98
106
|
if (!this.state.visible)
|
|
99
107
|
return;
|
|
100
108
|
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
@@ -114,14 +122,14 @@ class V extends E {
|
|
|
114
122
|
this.updateState({ enabled: !1 }, t.userAction || e), this._disable({ userAction: e });
|
|
115
123
|
}
|
|
116
124
|
setState(t, e = {}) {
|
|
117
|
-
const s = this.state,
|
|
118
|
-
if (this.updateState(t,
|
|
119
|
-
const
|
|
120
|
-
t.enabled ? this._enable(
|
|
125
|
+
const s = this.state, h = e.userAction !== void 0 ? e.userAction : !0;
|
|
126
|
+
if (this.updateState(t, h), t.enabled !== void 0 && s.enabled !== t.enabled) {
|
|
127
|
+
const a = { userAction: h };
|
|
128
|
+
t.enabled ? this._enable(a) : this._disable(a);
|
|
121
129
|
}
|
|
122
130
|
if (t.visible !== void 0 && s.visible !== t.visible) {
|
|
123
|
-
const
|
|
124
|
-
t.visible ? this._show(
|
|
131
|
+
const a = { userAction: h };
|
|
132
|
+
t.visible ? this._show(a) : this._hide(a);
|
|
125
133
|
}
|
|
126
134
|
}
|
|
127
135
|
appendTo(t) {
|
|
@@ -134,8 +142,8 @@ class V extends E {
|
|
|
134
142
|
!this.data || (this.extraObjects = C(t, this.five, this.data), this.render());
|
|
135
143
|
}
|
|
136
144
|
formatData(t) {
|
|
137
|
-
return
|
|
138
|
-
return yield
|
|
145
|
+
return l(this, null, function* () {
|
|
146
|
+
return yield g(t.data);
|
|
139
147
|
});
|
|
140
148
|
}
|
|
141
149
|
_enable(t) {
|
|
@@ -156,7 +164,7 @@ class V extends E {
|
|
|
156
164
|
}
|
|
157
165
|
updateState(t, e) {
|
|
158
166
|
const s = this.state;
|
|
159
|
-
this.state = p(p({}, this.state), t), !
|
|
167
|
+
this.state = p(p({}, this.state), t), !_(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: e });
|
|
160
168
|
}
|
|
161
169
|
render() {
|
|
162
170
|
if (this.disposed || !this.state.enabled)
|
|
@@ -171,9 +179,10 @@ class V extends E {
|
|
|
171
179
|
five: this.five,
|
|
172
180
|
floorplanData: this.data,
|
|
173
181
|
visible: this.state.visible,
|
|
174
|
-
extraObjects: this.extraObjects
|
|
182
|
+
extraObjects: this.extraObjects,
|
|
183
|
+
highlightData: this.highlightData
|
|
175
184
|
});
|
|
176
|
-
this.app ? this.app.$set(t) : this.app = new
|
|
185
|
+
this.app ? this.app.$set(t) : this.app = new D({ target: this.wrapper, props: t });
|
|
177
186
|
}
|
|
178
187
|
}
|
|
179
188
|
export {
|
|
@@ -2,6 +2,6 @@ import type { Parameters } from './typing';
|
|
|
2
2
|
import type { FivePlugin } from '@realsee/five';
|
|
3
3
|
import { Controller } from './Controller';
|
|
4
4
|
export declare const PanoFloorplanRadarPlugin: FivePlugin<Parameters | undefined, Controller>;
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type PanoFloorplanRadarPluginParameterType = Parameters | undefined;
|
|
6
|
+
export type PanoFloorplanRadarPluginReturnType = InstanceType<typeof Controller>;
|
|
7
7
|
export default PanoFloorplanRadarPlugin;
|
|
@@ -2,6 +2,6 @@ import type { Parameters } from './typing';
|
|
|
2
2
|
import type { FivePlugin } from '@realsee/five';
|
|
3
3
|
import { Controller } from './Controller';
|
|
4
4
|
export declare const TopviewFloorplanPlugin: FivePlugin<undefined | Parameters, Controller>;
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type TopviewFloorplanPluginParameterType = Parameters | undefined;
|
|
6
|
+
export type TopviewFloorplanPluginReturnType = InstanceType<typeof Controller>;
|
|
7
7
|
export default TopviewFloorplanPlugin;
|
|
@@ -79,9 +79,9 @@ export interface FloorplanRoomItem {
|
|
|
79
79
|
observerIndexs: number[];
|
|
80
80
|
}
|
|
81
81
|
/** 户型图标尺 */
|
|
82
|
-
export
|
|
83
|
-
export
|
|
84
|
-
export
|
|
82
|
+
export type FloorplanRuleLabels = Record<'top' | 'right' | 'bottom' | 'left', FloorplanPosition[][]>;
|
|
83
|
+
export type RuleLabelsKey = RecordKeys<FloorplanRuleLabels>;
|
|
84
|
+
export type RuleLabelsValue = RecordValue<FloorplanRuleLabels>;
|
|
85
85
|
/** 当前楼层的数据 */
|
|
86
86
|
export interface FloorplanFloorData {
|
|
87
87
|
floorName: string;
|
|
@@ -100,7 +100,7 @@ export interface FloorplanServerRoomItem {
|
|
|
100
100
|
/** 当前房间里的 observer 索引 */
|
|
101
101
|
observer_indexs: number[];
|
|
102
102
|
}
|
|
103
|
-
export
|
|
103
|
+
export type FloorplanServerRuleLabels = Record<'top' | 'right' | 'bottom' | 'left', FloorplanServerPosition[][]>;
|
|
104
104
|
/** 当前楼层的数据 */
|
|
105
105
|
export interface FloorplanServerFloorData {
|
|
106
106
|
floor_name: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type RecordKeys<T> = T extends Record<infer P, any> ? P : any;
|
|
2
|
+
export type RecordValue<T> = T extends Record<any, infer P> ? P : any;
|
|
@@ -3,7 +3,7 @@ import type * as THREE from 'three';
|
|
|
3
3
|
import { Group, Mesh, Object3D, Vector3 } from 'three';
|
|
4
4
|
import type { Direction, Direction4 } from '../typings';
|
|
5
5
|
import type { tipsDom } from '../Helper/HTML/tipsDom';
|
|
6
|
-
|
|
6
|
+
type NonVoid<T> = T extends void ? never : T;
|
|
7
7
|
declare class IObject3D extends Object3D {
|
|
8
8
|
constructor();
|
|
9
9
|
add(...objects: Object3D[]): this;
|
|
@@ -50,7 +50,7 @@ export declare abstract class MoveHelperAbstract<OriginObject3D extends Object3D
|
|
|
50
50
|
}
|
|
51
51
|
export declare abstract class BoundingBoxHelperAbstract<OriginObject3D extends Object3D = Object3D> extends BaseHelper<OriginObject3D> {
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
type Circle = (Mesh | Group) & {
|
|
54
54
|
direction: Direction;
|
|
55
55
|
circle: Mesh;
|
|
56
56
|
angleSector?: Mesh & {
|
|
@@ -3,7 +3,7 @@ import { RectangleScaleHelperAbstract } from '.';
|
|
|
3
3
|
import type { Create3DElementReturnType } from '../../../CSS3DRenderPlugin';
|
|
4
4
|
import type { Vector3 } from 'three';
|
|
5
5
|
import type { CSS3DObjectPlus } from '../../../CSS3DRenderPlugin/utils/three/CSS3DObject';
|
|
6
|
-
|
|
6
|
+
type NonVoid<T> = T extends void ? never : T;
|
|
7
7
|
export declare class CSS3DScaleHelper<T extends CSS3DObjectPlus = CSS3DObjectPlus> extends RectangleScaleHelperAbstract<T, HTMLElement> {
|
|
8
8
|
points: RectangleScaleHelperAbstract<THREE.Object3D, HTMLElement>['points'];
|
|
9
9
|
cornerPositions: Vector3[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type Direction = 'x' | 'y' | 'z';
|
|
2
|
+
export type Direction4 = 'nesw' | 'nwse' | 'ns' | 'ew';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as THREE from 'three';
|
|
2
|
-
export
|
|
2
|
+
export type HelperEventMap = {
|
|
3
3
|
wantToMove: (position: THREE.Vector3) => void;
|
|
4
4
|
wantToRotate: (quaternion: THREE.Quaternion) => void;
|
|
5
5
|
wantToScale: (scale: THREE.Vector3) => void;
|
|
@@ -34,7 +34,7 @@ export interface Object3DHelperState {
|
|
|
34
34
|
visible: boolean;
|
|
35
35
|
disposed: boolean;
|
|
36
36
|
}
|
|
37
|
-
export
|
|
37
|
+
export type Object3DHelperEventMap = {
|
|
38
38
|
show: (options?: {
|
|
39
39
|
userAction?: boolean;
|
|
40
40
|
}) => void;
|