@realsee/dnalogel 3.19.0-dev.2 → 3.20.0-dev.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/PanoVideoPlugin/Controller.d.ts +0 -17
- package/dist/PanoVideoPlugin/VideoMeshController.d.ts +0 -6
- package/dist/floorplan/typings/floorplanData.d.ts +7 -0
- package/dist/floorplan/typings/floorplanServerData.d.ts +7 -0
- package/dist/floorplan/typings/index.d.ts +9 -0
- package/dist/index.cjs.js +60 -60
- package/dist/index.js +5377 -5224
- package/dist/index.umd.js +52 -52
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +30 -30
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +32 -32
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/GuideLineItem.GuideLineItem.html +18 -18
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +42 -42
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/MoveController.html +27 -27
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +26 -26
- package/docs/classes/PanoMeasurePluginModel.html +26 -26
- package/docs/classes/PanoMeasurePluginPoint.html +10 -10
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +50 -50
- package/docs/classes/Util.BetterTween.html +9 -9
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.LineSegments.html +7 -7
- package/docs/classes/Util.Magnifier.html +19 -19
- package/docs/classes/Util.Object3D.html +8 -8
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +15 -15
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/classes/WalkController.html +26 -26
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +20 -20
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/PointType.html +6 -6
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/AreaMakerPlugin.html +4 -4
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/CurrentPanoImagePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/MovePlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/PanoVideoPlugin.html +4 -4
- package/docs/functions/PipelinePlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.absoluteUrl.html +4 -4
- package/docs/functions/Util.checkFiveModelLoaded.html +4 -4
- package/docs/functions/Util.equal.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.Config.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +14 -14
- package/docs/interfaces/AreaMakerPluginType.Params.html +6 -6
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +8 -8
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +7 -7
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.State.html +7 -7
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +20 -20
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -5
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -10
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +11 -11
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +6 -6
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +5 -5
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -7
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +37 -14
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +38 -15
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +5 -5
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -20
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +21 -21
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -5
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +15 -15
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +13 -13
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/interfaces/Util.PointIntersection.html +7 -7
- package/docs/modules/AreaMakerPluginType.html +4 -4
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/CurrentPanoImagePluginType.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +4 -4
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +4 -4
- package/docs/types/AreaMakerPluginType.PluginData.html +4 -4
- package/docs/types/AreaMakerPluginType.ServerData.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/CurrentPanoImagePluginExportType.html +4 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
- package/docs/types/DeprecatedTagProperty.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/InternalHelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelId.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PipelinePluginParameterType.html +4 -4
- package/docs/types/PipelinePluginReturnType.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagInstance.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagConfigByKey.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagContentTypeMapping.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TagInstance.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TagRendererMap.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/defaultGlobalConfig.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoVideoPlugin/Controller.d.ts +0 -17
- package/libs/PanoVideoPlugin/Controller.js +39 -63
- package/libs/PanoVideoPlugin/VideoMeshController.d.ts +0 -6
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -9
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +208 -188
- package/libs/floorplan/Components/Main.js +158 -138
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +273 -155
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +143 -123
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +41 -39
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +28 -26
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +24 -22
- package/libs/floorplan/typings/floorplanData.d.ts +7 -0
- package/libs/floorplan/typings/floorplanServerData.d.ts +7 -0
- package/libs/floorplan/typings/index.d.ts +9 -0
- package/libs/floorplan/utils/formatData.js +8 -7
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/classnames/index.js +32 -32
- package/package.json +1 -1
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import { RoomLabel as
|
|
3
|
-
import { svelteResizeObserver as
|
|
4
|
-
function
|
|
5
|
-
|
|
1
|
+
import { SvelteComponent as I, init as W, safe_not_equal as w, append_styles as z, empty as T, insert as g, transition_in as _, group_outros as v, transition_out as d, check_outros as y, detach as h, element as q, attr as C, action_destroyer as M, listen as O, update_keyed_each as S, outro_and_destroy_block as j, run_all as B, assign as F, create_component as G, mount_component as H, get_spread_update as J, destroy_component as K } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { RoomLabel as P } from "./RoomLabel.js";
|
|
3
|
+
import { svelteResizeObserver as Q } from "../../../shared-utils/svelte/resizeObserver.js";
|
|
4
|
+
function U(r) {
|
|
5
|
+
z(r, "svelte-13xux0b", ".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}");
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
const l =
|
|
9
|
-
return l[
|
|
7
|
+
function L(r, e, o) {
|
|
8
|
+
const l = r.slice();
|
|
9
|
+
return l[14] = e[o], l;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
let e, o = [], l = /* @__PURE__ */ new Map(),
|
|
11
|
+
function k(r) {
|
|
12
|
+
let e, o = [], l = /* @__PURE__ */ new Map(), t, f, u, n = (
|
|
13
13
|
/*rooms*/
|
|
14
|
-
|
|
14
|
+
r[10]
|
|
15
15
|
);
|
|
16
|
-
const b = (
|
|
16
|
+
const b = (i) => (
|
|
17
17
|
/*room*/
|
|
18
|
-
|
|
18
|
+
i[14].id
|
|
19
19
|
);
|
|
20
|
-
for (let
|
|
21
|
-
let
|
|
22
|
-
l.set(
|
|
20
|
+
for (let i = 0; i < n.length; i += 1) {
|
|
21
|
+
let m = L(r, n, i), s = b(m);
|
|
22
|
+
l.set(s, o[i] = A(s, m));
|
|
23
23
|
}
|
|
24
24
|
return {
|
|
25
25
|
c() {
|
|
26
|
-
e =
|
|
27
|
-
for (let
|
|
28
|
-
o[
|
|
29
|
-
|
|
26
|
+
e = q("div");
|
|
27
|
+
for (let i = 0; i < o.length; i += 1)
|
|
28
|
+
o[i].c();
|
|
29
|
+
C(e, "class", "floorplan-plugin__room-labels svelte-13xux0b");
|
|
30
30
|
},
|
|
31
|
-
m(
|
|
32
|
-
|
|
33
|
-
for (let
|
|
34
|
-
o[
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
m(i, m) {
|
|
32
|
+
g(i, e, m);
|
|
33
|
+
for (let s = 0; s < o.length; s += 1)
|
|
34
|
+
o[s] && o[s].m(e, null);
|
|
35
|
+
t = !0, f || (u = [
|
|
36
|
+
M(Q.call(null, e)),
|
|
37
|
+
O(
|
|
38
38
|
e,
|
|
39
39
|
"clientWidth",
|
|
40
40
|
/*clientWidth_handler*/
|
|
41
|
-
|
|
41
|
+
r[13]
|
|
42
42
|
)
|
|
43
43
|
], f = !0);
|
|
44
44
|
},
|
|
45
|
-
p(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
p(i, m) {
|
|
46
|
+
m & /*pxmm, rooms, hoveredRoom, roomAreaEnable, roomNameEnable, roomDimensionEnable, getLabelElement, getRoomAreaText, getRoomDimensionText, adaptiveRoomLabelVisibleEnable*/
|
|
47
|
+
1791 && (n = /*rooms*/
|
|
48
|
+
i[10], v(), o = S(o, m, b, 1, i, n, l, e, j, A, null, L), y());
|
|
49
49
|
},
|
|
50
|
-
i(
|
|
51
|
-
if (!
|
|
52
|
-
for (let
|
|
53
|
-
_(o[
|
|
54
|
-
|
|
50
|
+
i(i) {
|
|
51
|
+
if (!t) {
|
|
52
|
+
for (let m = 0; m < n.length; m += 1)
|
|
53
|
+
_(o[m]);
|
|
54
|
+
t = !0;
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
o(
|
|
58
|
-
for (let
|
|
59
|
-
d(o[
|
|
60
|
-
|
|
57
|
+
o(i) {
|
|
58
|
+
for (let m = 0; m < o.length; m += 1)
|
|
59
|
+
d(o[m]);
|
|
60
|
+
t = !1;
|
|
61
61
|
},
|
|
62
|
-
d(
|
|
63
|
-
|
|
64
|
-
for (let
|
|
65
|
-
o[
|
|
66
|
-
f = !1,
|
|
62
|
+
d(i) {
|
|
63
|
+
i && h(e);
|
|
64
|
+
for (let m = 0; m < o.length; m += 1)
|
|
65
|
+
o[m].d();
|
|
66
|
+
f = !1, B(u);
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
let o, l,
|
|
70
|
+
function A(r, e) {
|
|
71
|
+
let o, l, t;
|
|
72
72
|
const f = [
|
|
73
73
|
{
|
|
74
74
|
pxmm: (
|
|
75
75
|
/*pxmm*/
|
|
76
|
-
e[
|
|
76
|
+
e[9]
|
|
77
77
|
),
|
|
78
78
|
room: (
|
|
79
79
|
/*room*/
|
|
80
|
-
e[
|
|
80
|
+
e[14]
|
|
81
81
|
),
|
|
82
82
|
hoveredRoom: (
|
|
83
83
|
/*hoveredRoom*/
|
|
84
|
-
e[
|
|
84
|
+
e[3]
|
|
85
85
|
),
|
|
86
86
|
roomAreaEnable: (
|
|
87
87
|
/*roomAreaEnable*/
|
|
@@ -91,48 +91,56 @@ function v(m, e) {
|
|
|
91
91
|
/*roomNameEnable*/
|
|
92
92
|
e[1]
|
|
93
93
|
),
|
|
94
|
+
roomDimensionEnable: (
|
|
95
|
+
/*roomDimensionEnable*/
|
|
96
|
+
e[2]
|
|
97
|
+
),
|
|
94
98
|
getLabelElement: (
|
|
95
99
|
/*getLabelElement*/
|
|
96
|
-
e[
|
|
100
|
+
e[6]
|
|
97
101
|
),
|
|
98
102
|
getRoomAreaText: (
|
|
99
103
|
/*getRoomAreaText*/
|
|
100
|
-
e[
|
|
104
|
+
e[4]
|
|
105
|
+
),
|
|
106
|
+
getRoomDimensionText: (
|
|
107
|
+
/*getRoomDimensionText*/
|
|
108
|
+
e[5]
|
|
101
109
|
),
|
|
102
110
|
adaptiveRoomLabelVisibleEnable: (
|
|
103
111
|
/*adaptiveRoomLabelVisibleEnable*/
|
|
104
|
-
e[
|
|
112
|
+
e[7]
|
|
105
113
|
)
|
|
106
114
|
}
|
|
107
115
|
];
|
|
108
|
-
let
|
|
109
|
-
for (let
|
|
110
|
-
|
|
111
|
-
return l = new
|
|
112
|
-
key:
|
|
116
|
+
let u = {};
|
|
117
|
+
for (let n = 0; n < f.length; n += 1)
|
|
118
|
+
u = F(u, f[n]);
|
|
119
|
+
return l = new P({ props: u }), {
|
|
120
|
+
key: r,
|
|
113
121
|
first: null,
|
|
114
122
|
c() {
|
|
115
|
-
o =
|
|
123
|
+
o = T(), G(l.$$.fragment), this.first = o;
|
|
116
124
|
},
|
|
117
|
-
m(
|
|
118
|
-
|
|
125
|
+
m(n, b) {
|
|
126
|
+
g(n, o, b), H(l, n, b), t = !0;
|
|
119
127
|
},
|
|
120
|
-
p(
|
|
121
|
-
e =
|
|
122
|
-
const
|
|
123
|
-
|
|
128
|
+
p(n, b) {
|
|
129
|
+
e = n;
|
|
130
|
+
const i = b & /*pxmm, rooms, hoveredRoom, roomAreaEnable, roomNameEnable, roomDimensionEnable, getLabelElement, getRoomAreaText, getRoomDimensionText, adaptiveRoomLabelVisibleEnable*/
|
|
131
|
+
1791 ? J(f, [
|
|
124
132
|
{
|
|
125
133
|
pxmm: (
|
|
126
134
|
/*pxmm*/
|
|
127
|
-
e[
|
|
135
|
+
e[9]
|
|
128
136
|
),
|
|
129
137
|
room: (
|
|
130
138
|
/*room*/
|
|
131
|
-
e[
|
|
139
|
+
e[14]
|
|
132
140
|
),
|
|
133
141
|
hoveredRoom: (
|
|
134
142
|
/*hoveredRoom*/
|
|
135
|
-
e[
|
|
143
|
+
e[3]
|
|
136
144
|
),
|
|
137
145
|
roomAreaEnable: (
|
|
138
146
|
/*roomAreaEnable*/
|
|
@@ -142,114 +150,126 @@ function v(m, e) {
|
|
|
142
150
|
/*roomNameEnable*/
|
|
143
151
|
e[1]
|
|
144
152
|
),
|
|
153
|
+
roomDimensionEnable: (
|
|
154
|
+
/*roomDimensionEnable*/
|
|
155
|
+
e[2]
|
|
156
|
+
),
|
|
145
157
|
getLabelElement: (
|
|
146
158
|
/*getLabelElement*/
|
|
147
|
-
e[
|
|
159
|
+
e[6]
|
|
148
160
|
),
|
|
149
161
|
getRoomAreaText: (
|
|
150
162
|
/*getRoomAreaText*/
|
|
151
|
-
e[
|
|
163
|
+
e[4]
|
|
164
|
+
),
|
|
165
|
+
getRoomDimensionText: (
|
|
166
|
+
/*getRoomDimensionText*/
|
|
167
|
+
e[5]
|
|
152
168
|
),
|
|
153
169
|
adaptiveRoomLabelVisibleEnable: (
|
|
154
170
|
/*adaptiveRoomLabelVisibleEnable*/
|
|
155
|
-
e[
|
|
171
|
+
e[7]
|
|
156
172
|
)
|
|
157
173
|
}
|
|
158
174
|
]) : {};
|
|
159
|
-
l.$set(
|
|
175
|
+
l.$set(i);
|
|
160
176
|
},
|
|
161
|
-
i(
|
|
162
|
-
|
|
177
|
+
i(n) {
|
|
178
|
+
t || (_(l.$$.fragment, n), t = !0);
|
|
163
179
|
},
|
|
164
|
-
o(
|
|
165
|
-
d(l.$$.fragment,
|
|
180
|
+
o(n) {
|
|
181
|
+
d(l.$$.fragment, n), t = !1;
|
|
166
182
|
},
|
|
167
|
-
d(
|
|
168
|
-
|
|
183
|
+
d(n) {
|
|
184
|
+
n && h(o), K(l, n);
|
|
169
185
|
}
|
|
170
186
|
};
|
|
171
187
|
}
|
|
172
|
-
function
|
|
188
|
+
function X(r) {
|
|
173
189
|
let e, o, l = (
|
|
174
190
|
/*rooms*/
|
|
175
|
-
|
|
191
|
+
r[10] && k(r)
|
|
176
192
|
);
|
|
177
193
|
return {
|
|
178
194
|
c() {
|
|
179
|
-
l && l.c(), e =
|
|
195
|
+
l && l.c(), e = T();
|
|
180
196
|
},
|
|
181
|
-
m(
|
|
182
|
-
l && l.m(
|
|
197
|
+
m(t, f) {
|
|
198
|
+
l && l.m(t, f), g(t, e, f), o = !0;
|
|
183
199
|
},
|
|
184
|
-
p(
|
|
200
|
+
p(t, [f]) {
|
|
185
201
|
/*rooms*/
|
|
186
|
-
|
|
187
|
-
|
|
202
|
+
t[10] ? l ? (l.p(t, f), f & /*rooms*/
|
|
203
|
+
1024 && _(l, 1)) : (l = k(t), l.c(), _(l, 1), l.m(e.parentNode, e)) : l && (v(), d(l, 1, 1, () => {
|
|
188
204
|
l = null;
|
|
189
205
|
}), y());
|
|
190
206
|
},
|
|
191
|
-
i(
|
|
207
|
+
i(t) {
|
|
192
208
|
o || (_(l), o = !0);
|
|
193
209
|
},
|
|
194
|
-
o(
|
|
210
|
+
o(t) {
|
|
195
211
|
d(l), o = !1;
|
|
196
212
|
},
|
|
197
|
-
d(
|
|
198
|
-
l && l.d(
|
|
213
|
+
d(t) {
|
|
214
|
+
l && l.d(t), t && h(e);
|
|
199
215
|
}
|
|
200
216
|
};
|
|
201
217
|
}
|
|
202
|
-
function
|
|
203
|
-
let l, { floorIndex:
|
|
204
|
-
const
|
|
205
|
-
o(
|
|
218
|
+
function Y(r, e, o) {
|
|
219
|
+
let l, { floorIndex: t } = e, { roomAreaEnable: f } = e, { roomNameEnable: u } = e, { roomDimensionEnable: n } = e, { floorplanData: b } = e, { hoveredRoom: i } = e, { getRoomAreaText: m } = e, { getRoomDimensionText: s } = e, { getLabelElement: E } = e, { adaptiveRoomLabelVisibleEnable: R } = e, c = 0, D = 0;
|
|
220
|
+
const x = (a) => {
|
|
221
|
+
o(8, c = a.detail);
|
|
206
222
|
};
|
|
207
|
-
return
|
|
208
|
-
"floorIndex" in
|
|
209
|
-
},
|
|
210
|
-
if (
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
const { max:
|
|
214
|
-
o(
|
|
223
|
+
return r.$$set = (a) => {
|
|
224
|
+
"floorIndex" in a && o(11, t = a.floorIndex), "roomAreaEnable" in a && o(0, f = a.roomAreaEnable), "roomNameEnable" in a && o(1, u = a.roomNameEnable), "roomDimensionEnable" in a && o(2, n = a.roomDimensionEnable), "floorplanData" in a && o(12, b = a.floorplanData), "hoveredRoom" in a && o(3, i = a.hoveredRoom), "getRoomAreaText" in a && o(4, m = a.getRoomAreaText), "getRoomDimensionText" in a && o(5, s = a.getRoomDimensionText), "getLabelElement" in a && o(6, E = a.getLabelElement), "adaptiveRoomLabelVisibleEnable" in a && o(7, R = a.adaptiveRoomLabelVisibleEnable);
|
|
225
|
+
}, r.$$.update = () => {
|
|
226
|
+
if (r.$$.dirty & /*floorplanData, floorIndex*/
|
|
227
|
+
6144 && o(10, l = b.floorDatas[t].rooms), r.$$.dirty & /*floorplanData, clientWidth*/
|
|
228
|
+
4352) {
|
|
229
|
+
const { max: a, min: N } = b.bounding, V = a.x - N.x;
|
|
230
|
+
o(9, D = c / V);
|
|
215
231
|
}
|
|
216
232
|
}, [
|
|
217
233
|
f,
|
|
218
|
-
s,
|
|
219
|
-
b,
|
|
220
|
-
a,
|
|
221
|
-
r,
|
|
222
234
|
u,
|
|
223
|
-
|
|
235
|
+
n,
|
|
236
|
+
i,
|
|
237
|
+
m,
|
|
238
|
+
s,
|
|
224
239
|
E,
|
|
240
|
+
R,
|
|
241
|
+
c,
|
|
242
|
+
D,
|
|
225
243
|
l,
|
|
226
|
-
n,
|
|
227
244
|
t,
|
|
228
|
-
|
|
245
|
+
b,
|
|
246
|
+
x
|
|
229
247
|
];
|
|
230
248
|
}
|
|
231
|
-
class
|
|
249
|
+
class ee extends I {
|
|
232
250
|
constructor(e) {
|
|
233
|
-
super(),
|
|
251
|
+
super(), W(
|
|
234
252
|
this,
|
|
235
253
|
e,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
254
|
+
Y,
|
|
255
|
+
X,
|
|
256
|
+
w,
|
|
239
257
|
{
|
|
240
|
-
floorIndex:
|
|
258
|
+
floorIndex: 11,
|
|
241
259
|
roomAreaEnable: 0,
|
|
242
260
|
roomNameEnable: 1,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
261
|
+
roomDimensionEnable: 2,
|
|
262
|
+
floorplanData: 12,
|
|
263
|
+
hoveredRoom: 3,
|
|
264
|
+
getRoomAreaText: 4,
|
|
265
|
+
getRoomDimensionText: 5,
|
|
266
|
+
getLabelElement: 6,
|
|
267
|
+
adaptiveRoomLabelVisibleEnable: 7
|
|
248
268
|
},
|
|
249
|
-
|
|
269
|
+
U
|
|
250
270
|
);
|
|
251
271
|
}
|
|
252
272
|
}
|
|
253
273
|
export {
|
|
254
|
-
|
|
274
|
+
ee as RoomLabels
|
|
255
275
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var F = Object.defineProperty, P = Object.defineProperties;
|
|
2
2
|
var E = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var w = Object.getOwnPropertySymbols;
|
|
4
4
|
var x = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var v = (d, r, t) => r in d ? F(d, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[r] = t, l = (d, r) => {
|
|
6
6
|
for (var t in r || (r = {}))
|
|
7
|
-
x.call(r, t) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
I.call(r, t) &&
|
|
7
|
+
x.call(r, t) && v(d, t, r[t]);
|
|
8
|
+
if (w)
|
|
9
|
+
for (var t of w(r))
|
|
10
|
+
I.call(r, t) && v(d, t, r[t]);
|
|
11
11
|
return d;
|
|
12
|
-
},
|
|
13
|
-
var o = (d, r, t) => (
|
|
12
|
+
}, p = (d, r) => P(d, E(r));
|
|
13
|
+
var o = (d, r, t) => (v(d, typeof r != "symbol" ? r + "" : r, t), t);
|
|
14
14
|
var u = (d, r, t) => new Promise((e, i) => {
|
|
15
15
|
var n = (a) => {
|
|
16
16
|
try {
|
|
@@ -27,19 +27,19 @@ var u = (d, r, t) => new Promise((e, i) => {
|
|
|
27
27
|
}, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(n, h);
|
|
28
28
|
s((t = t.apply(d, r)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
30
|
+
import * as b from "three";
|
|
31
31
|
import { to as M } from "../../shared-utils/to.js";
|
|
32
32
|
import { equal as y } from "../../shared-utils/equal.js";
|
|
33
33
|
import { Main as L } from "../Components/Main.js";
|
|
34
|
-
import { formatData as
|
|
34
|
+
import { formatData as S } from "../utils/formatData.js";
|
|
35
35
|
import { CAMERA_IMAGE as _ } from "../Assets/camera.js";
|
|
36
|
-
import { omit as
|
|
37
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
38
|
-
import { Controller as
|
|
36
|
+
import { omit as C } from "../../shared-utils/filter.js";
|
|
37
|
+
import { FLOOR_PLAN_ATTACHED_TO as D } from "../constant.js";
|
|
38
|
+
import { Controller as O } from "../../base/BasePluginWithData.js";
|
|
39
39
|
import { getPxmm as T, getAttachedY as k } from "../../shared-utils/getPxmm.js";
|
|
40
|
-
import { correctFiveState as
|
|
41
|
-
import { changeModelCanvasOpacity as
|
|
42
|
-
import { FloorplanErrorType as
|
|
40
|
+
import { correctFiveState as R } from "../utils/correctFiveState.js";
|
|
41
|
+
import { changeModelCanvasOpacity as A } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
42
|
+
import { FloorplanErrorType as m, SHOW_ANIME_DURATION as H } from "../utils/constant.js";
|
|
43
43
|
import "../../shared-utils/isTruelyObject.js";
|
|
44
44
|
import "../../vendor/svelte/internal/index.js";
|
|
45
45
|
import "../../vendor/svelte/transition/index.js";
|
|
@@ -100,7 +100,7 @@ function W(d) {
|
|
|
100
100
|
const { latitude: r, longitude: t } = d, e = Math.abs(r - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
101
101
|
return e && i;
|
|
102
102
|
}
|
|
103
|
-
class Qt extends
|
|
103
|
+
class Qt extends O {
|
|
104
104
|
constructor(t, e) {
|
|
105
105
|
var a, f;
|
|
106
106
|
super(t);
|
|
@@ -177,7 +177,7 @@ class Qt extends D {
|
|
|
177
177
|
o(this, "_disable", (t) => {
|
|
178
178
|
var i, n, h;
|
|
179
179
|
const { userAction: e } = t;
|
|
180
|
-
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this,
|
|
180
|
+
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, m.BreakOffByDisable), this.showPromise = void 0, (n = this.app) == null || n.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
|
|
181
181
|
});
|
|
182
182
|
o(this, "_enable", (t) => {
|
|
183
183
|
const { userAction: e } = t;
|
|
@@ -188,9 +188,9 @@ class Qt extends D {
|
|
|
188
188
|
if (!this.state.enabled)
|
|
189
189
|
return;
|
|
190
190
|
if (!((h = this.five.model) != null && h.loaded))
|
|
191
|
-
throw new Error(
|
|
191
|
+
throw new Error(m.ModelNotLoaded);
|
|
192
192
|
if (!this.data)
|
|
193
|
-
throw new Error(
|
|
193
|
+
throw new Error(m.DataNotLoaded);
|
|
194
194
|
if (this.showPromise)
|
|
195
195
|
return this.showPromise;
|
|
196
196
|
const e = {
|
|
@@ -202,22 +202,22 @@ class Qt extends D {
|
|
|
202
202
|
}, i = l(l({}, e), t), n = () => u(this, null, function* () {
|
|
203
203
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
204
204
|
let s = !1, a;
|
|
205
|
-
this.showRejection = (
|
|
206
|
-
s = !0, a =
|
|
205
|
+
this.showRejection = (g) => {
|
|
206
|
+
s = !0, a = g;
|
|
207
207
|
};
|
|
208
|
-
const [f] = yield M(
|
|
208
|
+
const [f] = yield M(R(this.five, this.showState, i.userAction));
|
|
209
209
|
if (f)
|
|
210
210
|
throw f;
|
|
211
211
|
if (s)
|
|
212
|
-
throw a ? new Error(a) : new Error(
|
|
212
|
+
throw a ? new Error(a) : new Error(m.UnknownError);
|
|
213
213
|
if (!this.updateSize())
|
|
214
|
-
throw new Error(
|
|
214
|
+
throw new Error(m.UpdateSizeError);
|
|
215
215
|
this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
216
216
|
});
|
|
217
217
|
return this.isHiddenByHideFunc = !1, this.showPromise = n().then(() => {
|
|
218
218
|
this.showPromise = void 0, this.showRejection = void 0;
|
|
219
|
-
const s = i.modelOpacity, a = i.immediately ? 0 :
|
|
220
|
-
|
|
219
|
+
const s = i.modelOpacity, a = i.immediately ? 0 : H;
|
|
220
|
+
A(this.five, s, a), this.render(a), this.hooks.emit("showAnimationEnded", {
|
|
221
221
|
auto: i.isAutoShow,
|
|
222
222
|
userAction: i.userAction
|
|
223
223
|
});
|
|
@@ -228,12 +228,12 @@ class Qt extends D {
|
|
|
228
228
|
}));
|
|
229
229
|
o(this, "_hide", (t) => {
|
|
230
230
|
var n;
|
|
231
|
-
(n = this.showRejection) == null || n.call(this,
|
|
231
|
+
(n = this.showRejection) == null || n.call(this, m.BreakOffByHide), this.showPromise = void 0;
|
|
232
232
|
const i = l(l({}, {
|
|
233
233
|
userAction: !0,
|
|
234
234
|
isAutoHide: !1
|
|
235
235
|
}), t);
|
|
236
|
-
|
|
236
|
+
A(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
|
|
237
237
|
});
|
|
238
238
|
o(this, "handleClick", () => {
|
|
239
239
|
if (!this.state.visible)
|
|
@@ -243,7 +243,7 @@ class Qt extends D {
|
|
|
243
243
|
});
|
|
244
244
|
/** modelLoaded 之后自动执行 append container 操作 */
|
|
245
245
|
o(this, "onFiveModelLoaded", () => {
|
|
246
|
-
const e = this.five.model.bounding.getCenter(new
|
|
246
|
+
const e = this.five.model.bounding.getCenter(new b.Vector3());
|
|
247
247
|
if (this.showState.offset = e, this.state.enabled === !1 || this.wrapper || !this.selector)
|
|
248
248
|
return;
|
|
249
249
|
const i = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
@@ -277,7 +277,7 @@ class Qt extends D {
|
|
|
277
277
|
/** 户型图展示中,转动三维模型,结束时应该自动修复模型状态 */
|
|
278
278
|
o(this, "onFiveWantsPanGesture", (t, e) => {
|
|
279
279
|
if (this.five.getCurrentState().mode === this.showState.mode && this.state.config.autoShowEnable !== !1 && e && this.state.visible)
|
|
280
|
-
return this.five.updateCamera(
|
|
280
|
+
return this.five.updateCamera(C(this.showState, ["offset"]), 0), !1;
|
|
281
281
|
});
|
|
282
282
|
/** 阻止点击分间走点 */
|
|
283
283
|
o(this, "onFiveWantsTapGesture", () => this.handleClick());
|
|
@@ -319,15 +319,17 @@ class Qt extends D {
|
|
|
319
319
|
roomLabelsEnable: !0,
|
|
320
320
|
roomAreaEnable: !0,
|
|
321
321
|
roomNameEnable: !0,
|
|
322
|
+
roomDimensionEnable: !0,
|
|
322
323
|
cameraImageUrl: _,
|
|
323
|
-
attachedTo:
|
|
324
|
+
attachedTo: D.BOUNDING_CENTER,
|
|
324
325
|
getLabelElement: void 0,
|
|
325
326
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
326
327
|
missingFloorConfig: l(l({}, this.defaultMissingFloorConfig), e.missingFloorConfig),
|
|
327
328
|
i18n: (c) => c,
|
|
328
329
|
getRoomAreaText: (c) => (c / 1e6).toFixed(1) + "㎡",
|
|
330
|
+
getRoomDimensionText: (c, g) => (c / 1e3).toFixed(1) + "m x " + (g / 1e3).toFixed(1) + "m",
|
|
329
331
|
getRuleDistanceText: (c) => c.toString()
|
|
330
|
-
}, n = e ?
|
|
332
|
+
}, n = e ? C(e, ["selector", "scale"]) : {}, h = l(l({}, i.missingFloorConfig), n.missingFloorConfig), s = p(l(l({}, i), n), { missingFloorConfig: h });
|
|
331
333
|
this.state = { enabled: !0, visible: !1, config: s }, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
|
|
332
334
|
}
|
|
333
335
|
load(t, e, i = !0) {
|
|
@@ -338,7 +340,7 @@ class Qt extends D {
|
|
|
338
340
|
const h = t;
|
|
339
341
|
h && !h.version && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
|
|
340
342
|
const s = JSON.parse(JSON.stringify(t)), a = n(s) ? s.data : s, f = this.data;
|
|
341
|
-
this.data = yield
|
|
343
|
+
this.data = yield S(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, f), e && this.updateState(e, i), this.render();
|
|
342
344
|
});
|
|
343
345
|
}
|
|
344
346
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
@@ -374,7 +376,7 @@ class Qt extends D {
|
|
|
374
376
|
/** 更新户型图位置 */
|
|
375
377
|
updatePosition() {
|
|
376
378
|
var s;
|
|
377
|
-
const t = k(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new
|
|
379
|
+
const t = k(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new b.Vector3()).setY(t);
|
|
378
380
|
if (!e)
|
|
379
381
|
return;
|
|
380
382
|
const i = e.clone().project(this.five.camera), n = (i.x + 1) / 2, h = -(i.y - 1) / 2;
|
|
@@ -382,13 +384,13 @@ class Qt extends D {
|
|
|
382
384
|
}
|
|
383
385
|
formatData(t) {
|
|
384
386
|
return u(this, null, function* () {
|
|
385
|
-
return yield
|
|
387
|
+
return yield S(t.data);
|
|
386
388
|
});
|
|
387
389
|
}
|
|
388
390
|
updateState(t, e) {
|
|
389
391
|
var s;
|
|
390
|
-
const i = this.state, n = (s = t.config) != null && s.missingFloorConfig ? l(l({}, i.config.missingFloorConfig), t.config.missingFloorConfig) : i.config.missingFloorConfig, h = t.config ?
|
|
391
|
-
this.state =
|
|
392
|
+
const i = this.state, n = (s = t.config) != null && s.missingFloorConfig ? l(l({}, i.config.missingFloorConfig), t.config.missingFloorConfig) : i.config.missingFloorConfig, h = t.config ? p(l(l({}, i.config), t.config), { missingFloorConfig: n }) : i.config;
|
|
393
|
+
this.state = p(l(l({}, this.state), t), { config: h }), !y(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
392
394
|
}
|
|
393
395
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
394
396
|
*
|
|
@@ -417,7 +419,7 @@ class Qt extends D {
|
|
|
417
419
|
render(t) {
|
|
418
420
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
|
|
419
421
|
return;
|
|
420
|
-
const e =
|
|
422
|
+
const e = p(l({}, this.state.config), {
|
|
421
423
|
visible: this.state.visible,
|
|
422
424
|
duration: t != null ? t : 0,
|
|
423
425
|
panoIndex: this.panoIndex,
|