@realsee/dnalogel 3.18.0-dev.130 → 3.19.0-dev.0
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/VideoMeshController.d.ts +1 -0
- package/dist/floorplan/typings/floorplanData.d.ts +0 -7
- package/dist/floorplan/typings/floorplanServerData.d.ts +0 -7
- package/dist/floorplan/typings/index.d.ts +0 -9
- package/dist/index.cjs.js +60 -60
- package/dist/index.js +5197 -5379
- 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 +14 -37
- 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 +15 -38
- 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/VideoMeshController.d.ts +1 -0
- package/libs/PanoVideoPlugin/VideoMeshController.js +10 -7
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +188 -208
- package/libs/floorplan/Components/Main.js +138 -158
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +155 -273
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +123 -143
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +39 -41
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +26 -28
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +22 -24
- package/libs/floorplan/typings/floorplanData.d.ts +0 -7
- package/libs/floorplan/typings/floorplanServerData.d.ts +0 -7
- package/libs/floorplan/typings/index.d.ts +0 -9
- package/libs/floorplan/utils/formatData.js +7 -8
- 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 T, init as V, safe_not_equal as D, append_styles as I, empty as k, insert as h, transition_in as _, group_outros as A, transition_out as d, check_outros as y, detach as g, element as W, attr as w, action_destroyer as z, listen as q, update_keyed_each as C, outro_and_destroy_block as M, run_all as O, assign as S, create_component as j, mount_component as B, get_spread_update as F, destroy_component as G } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { RoomLabel as H } from "./RoomLabel.js";
|
|
3
|
+
import { svelteResizeObserver as J } from "../../../shared-utils/svelte/resizeObserver.js";
|
|
4
|
+
function K(m) {
|
|
5
|
+
I(m, "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 R(m, e, o) {
|
|
8
|
+
const l = m.slice();
|
|
9
|
+
return l[12] = e[o], l;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
let e, o = [], l = /* @__PURE__ */ new Map(),
|
|
11
|
+
function L(m) {
|
|
12
|
+
let e, o = [], l = /* @__PURE__ */ new Map(), n, f, s, t = (
|
|
13
13
|
/*rooms*/
|
|
14
|
-
|
|
14
|
+
m[8]
|
|
15
15
|
);
|
|
16
|
-
const b = (
|
|
16
|
+
const b = (a) => (
|
|
17
17
|
/*room*/
|
|
18
|
-
|
|
18
|
+
a[12].id
|
|
19
19
|
);
|
|
20
|
-
for (let
|
|
21
|
-
let
|
|
22
|
-
l.set(
|
|
20
|
+
for (let a = 0; a < t.length; a += 1) {
|
|
21
|
+
let r = R(m, t, a), u = b(r);
|
|
22
|
+
l.set(u, o[a] = v(u, r));
|
|
23
23
|
}
|
|
24
24
|
return {
|
|
25
25
|
c() {
|
|
26
|
-
e =
|
|
27
|
-
for (let
|
|
28
|
-
o[
|
|
29
|
-
|
|
26
|
+
e = W("div");
|
|
27
|
+
for (let a = 0; a < o.length; a += 1)
|
|
28
|
+
o[a].c();
|
|
29
|
+
w(e, "class", "floorplan-plugin__room-labels svelte-13xux0b");
|
|
30
30
|
},
|
|
31
|
-
m(
|
|
32
|
-
|
|
33
|
-
for (let
|
|
34
|
-
o[
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
m(a, r) {
|
|
32
|
+
h(a, e, r);
|
|
33
|
+
for (let u = 0; u < o.length; u += 1)
|
|
34
|
+
o[u] && o[u].m(e, null);
|
|
35
|
+
n = !0, f || (s = [
|
|
36
|
+
z(J.call(null, e)),
|
|
37
|
+
q(
|
|
38
38
|
e,
|
|
39
39
|
"clientWidth",
|
|
40
40
|
/*clientWidth_handler*/
|
|
41
|
-
|
|
41
|
+
m[11]
|
|
42
42
|
)
|
|
43
43
|
], f = !0);
|
|
44
44
|
},
|
|
45
|
-
p(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
p(a, r) {
|
|
46
|
+
r & /*pxmm, rooms, hoveredRoom, roomAreaEnable, roomNameEnable, getLabelElement, getRoomAreaText, adaptiveRoomLabelVisibleEnable*/
|
|
47
|
+
447 && (t = /*rooms*/
|
|
48
|
+
a[8], A(), o = C(o, r, b, 1, a, t, l, e, M, v, null, R), y());
|
|
49
49
|
},
|
|
50
|
-
i(
|
|
51
|
-
if (!
|
|
52
|
-
for (let
|
|
53
|
-
_(o[
|
|
54
|
-
|
|
50
|
+
i(a) {
|
|
51
|
+
if (!n) {
|
|
52
|
+
for (let r = 0; r < t.length; r += 1)
|
|
53
|
+
_(o[r]);
|
|
54
|
+
n = !0;
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
o(
|
|
58
|
-
for (let
|
|
59
|
-
d(o[
|
|
60
|
-
|
|
57
|
+
o(a) {
|
|
58
|
+
for (let r = 0; r < o.length; r += 1)
|
|
59
|
+
d(o[r]);
|
|
60
|
+
n = !1;
|
|
61
61
|
},
|
|
62
|
-
d(
|
|
63
|
-
|
|
64
|
-
for (let
|
|
65
|
-
o[
|
|
66
|
-
f = !1,
|
|
62
|
+
d(a) {
|
|
63
|
+
a && g(e);
|
|
64
|
+
for (let r = 0; r < o.length; r += 1)
|
|
65
|
+
o[r].d();
|
|
66
|
+
f = !1, O(s);
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
let o, l,
|
|
70
|
+
function v(m, e) {
|
|
71
|
+
let o, l, n;
|
|
72
72
|
const f = [
|
|
73
73
|
{
|
|
74
74
|
pxmm: (
|
|
75
75
|
/*pxmm*/
|
|
76
|
-
e[
|
|
76
|
+
e[7]
|
|
77
77
|
),
|
|
78
78
|
room: (
|
|
79
79
|
/*room*/
|
|
80
|
-
e[
|
|
80
|
+
e[12]
|
|
81
81
|
),
|
|
82
82
|
hoveredRoom: (
|
|
83
83
|
/*hoveredRoom*/
|
|
84
|
-
e[
|
|
84
|
+
e[2]
|
|
85
85
|
),
|
|
86
86
|
roomAreaEnable: (
|
|
87
87
|
/*roomAreaEnable*/
|
|
@@ -91,56 +91,48 @@ function A(r, e) {
|
|
|
91
91
|
/*roomNameEnable*/
|
|
92
92
|
e[1]
|
|
93
93
|
),
|
|
94
|
-
roomDimensionEnable: (
|
|
95
|
-
/*roomDimensionEnable*/
|
|
96
|
-
e[2]
|
|
97
|
-
),
|
|
98
94
|
getLabelElement: (
|
|
99
95
|
/*getLabelElement*/
|
|
100
|
-
e[
|
|
96
|
+
e[4]
|
|
101
97
|
),
|
|
102
98
|
getRoomAreaText: (
|
|
103
99
|
/*getRoomAreaText*/
|
|
104
|
-
e[
|
|
105
|
-
),
|
|
106
|
-
getRoomDimensionText: (
|
|
107
|
-
/*getRoomDimensionText*/
|
|
108
|
-
e[5]
|
|
100
|
+
e[3]
|
|
109
101
|
),
|
|
110
102
|
adaptiveRoomLabelVisibleEnable: (
|
|
111
103
|
/*adaptiveRoomLabelVisibleEnable*/
|
|
112
|
-
e[
|
|
104
|
+
e[5]
|
|
113
105
|
)
|
|
114
106
|
}
|
|
115
107
|
];
|
|
116
|
-
let
|
|
117
|
-
for (let
|
|
118
|
-
|
|
119
|
-
return l = new
|
|
120
|
-
key:
|
|
108
|
+
let s = {};
|
|
109
|
+
for (let t = 0; t < f.length; t += 1)
|
|
110
|
+
s = S(s, f[t]);
|
|
111
|
+
return l = new H({ props: s }), {
|
|
112
|
+
key: m,
|
|
121
113
|
first: null,
|
|
122
114
|
c() {
|
|
123
|
-
o =
|
|
115
|
+
o = k(), j(l.$$.fragment), this.first = o;
|
|
124
116
|
},
|
|
125
|
-
m(
|
|
126
|
-
|
|
117
|
+
m(t, b) {
|
|
118
|
+
h(t, o, b), B(l, t, b), n = !0;
|
|
127
119
|
},
|
|
128
|
-
p(
|
|
129
|
-
e =
|
|
130
|
-
const
|
|
131
|
-
|
|
120
|
+
p(t, b) {
|
|
121
|
+
e = t;
|
|
122
|
+
const a = b & /*pxmm, rooms, hoveredRoom, roomAreaEnable, roomNameEnable, getLabelElement, getRoomAreaText, adaptiveRoomLabelVisibleEnable*/
|
|
123
|
+
447 ? F(f, [
|
|
132
124
|
{
|
|
133
125
|
pxmm: (
|
|
134
126
|
/*pxmm*/
|
|
135
|
-
e[
|
|
127
|
+
e[7]
|
|
136
128
|
),
|
|
137
129
|
room: (
|
|
138
130
|
/*room*/
|
|
139
|
-
e[
|
|
131
|
+
e[12]
|
|
140
132
|
),
|
|
141
133
|
hoveredRoom: (
|
|
142
134
|
/*hoveredRoom*/
|
|
143
|
-
e[
|
|
135
|
+
e[2]
|
|
144
136
|
),
|
|
145
137
|
roomAreaEnable: (
|
|
146
138
|
/*roomAreaEnable*/
|
|
@@ -150,126 +142,114 @@ function A(r, e) {
|
|
|
150
142
|
/*roomNameEnable*/
|
|
151
143
|
e[1]
|
|
152
144
|
),
|
|
153
|
-
roomDimensionEnable: (
|
|
154
|
-
/*roomDimensionEnable*/
|
|
155
|
-
e[2]
|
|
156
|
-
),
|
|
157
145
|
getLabelElement: (
|
|
158
146
|
/*getLabelElement*/
|
|
159
|
-
e[
|
|
147
|
+
e[4]
|
|
160
148
|
),
|
|
161
149
|
getRoomAreaText: (
|
|
162
150
|
/*getRoomAreaText*/
|
|
163
|
-
e[
|
|
164
|
-
),
|
|
165
|
-
getRoomDimensionText: (
|
|
166
|
-
/*getRoomDimensionText*/
|
|
167
|
-
e[5]
|
|
151
|
+
e[3]
|
|
168
152
|
),
|
|
169
153
|
adaptiveRoomLabelVisibleEnable: (
|
|
170
154
|
/*adaptiveRoomLabelVisibleEnable*/
|
|
171
|
-
e[
|
|
155
|
+
e[5]
|
|
172
156
|
)
|
|
173
157
|
}
|
|
174
158
|
]) : {};
|
|
175
|
-
l.$set(
|
|
159
|
+
l.$set(a);
|
|
176
160
|
},
|
|
177
|
-
i(
|
|
178
|
-
|
|
161
|
+
i(t) {
|
|
162
|
+
n || (_(l.$$.fragment, t), n = !0);
|
|
179
163
|
},
|
|
180
|
-
o(
|
|
181
|
-
d(l.$$.fragment,
|
|
164
|
+
o(t) {
|
|
165
|
+
d(l.$$.fragment, t), n = !1;
|
|
182
166
|
},
|
|
183
|
-
d(
|
|
184
|
-
|
|
167
|
+
d(t) {
|
|
168
|
+
t && g(o), G(l, t);
|
|
185
169
|
}
|
|
186
170
|
};
|
|
187
171
|
}
|
|
188
|
-
function
|
|
172
|
+
function P(m) {
|
|
189
173
|
let e, o, l = (
|
|
190
174
|
/*rooms*/
|
|
191
|
-
|
|
175
|
+
m[8] && L(m)
|
|
192
176
|
);
|
|
193
177
|
return {
|
|
194
178
|
c() {
|
|
195
|
-
l && l.c(), e =
|
|
179
|
+
l && l.c(), e = k();
|
|
196
180
|
},
|
|
197
|
-
m(
|
|
198
|
-
l && l.m(
|
|
181
|
+
m(n, f) {
|
|
182
|
+
l && l.m(n, f), h(n, e, f), o = !0;
|
|
199
183
|
},
|
|
200
|
-
p(
|
|
184
|
+
p(n, [f]) {
|
|
201
185
|
/*rooms*/
|
|
202
|
-
|
|
203
|
-
|
|
186
|
+
n[8] ? l ? (l.p(n, f), f & /*rooms*/
|
|
187
|
+
256 && _(l, 1)) : (l = L(n), l.c(), _(l, 1), l.m(e.parentNode, e)) : l && (A(), d(l, 1, 1, () => {
|
|
204
188
|
l = null;
|
|
205
189
|
}), y());
|
|
206
190
|
},
|
|
207
|
-
i(
|
|
191
|
+
i(n) {
|
|
208
192
|
o || (_(l), o = !0);
|
|
209
193
|
},
|
|
210
|
-
o(
|
|
194
|
+
o(n) {
|
|
211
195
|
d(l), o = !1;
|
|
212
196
|
},
|
|
213
|
-
d(
|
|
214
|
-
l && l.d(
|
|
197
|
+
d(n) {
|
|
198
|
+
l && l.d(n), n && g(e);
|
|
215
199
|
}
|
|
216
200
|
};
|
|
217
201
|
}
|
|
218
|
-
function
|
|
219
|
-
let l, { floorIndex:
|
|
220
|
-
const
|
|
221
|
-
o(
|
|
202
|
+
function Q(m, e, o) {
|
|
203
|
+
let l, { floorIndex: n } = e, { roomAreaEnable: f } = e, { roomNameEnable: s } = e, { floorplanData: t } = e, { hoveredRoom: b } = e, { getRoomAreaText: a } = e, { getLabelElement: r } = e, { adaptiveRoomLabelVisibleEnable: u } = e, c = 0, E = 0;
|
|
204
|
+
const N = (i) => {
|
|
205
|
+
o(6, c = i.detail);
|
|
222
206
|
};
|
|
223
|
-
return
|
|
224
|
-
"floorIndex" in
|
|
225
|
-
},
|
|
226
|
-
if (
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
const { max:
|
|
230
|
-
o(
|
|
207
|
+
return m.$$set = (i) => {
|
|
208
|
+
"floorIndex" in i && o(9, n = i.floorIndex), "roomAreaEnable" in i && o(0, f = i.roomAreaEnable), "roomNameEnable" in i && o(1, s = i.roomNameEnable), "floorplanData" in i && o(10, t = i.floorplanData), "hoveredRoom" in i && o(2, b = i.hoveredRoom), "getRoomAreaText" in i && o(3, a = i.getRoomAreaText), "getLabelElement" in i && o(4, r = i.getLabelElement), "adaptiveRoomLabelVisibleEnable" in i && o(5, u = i.adaptiveRoomLabelVisibleEnable);
|
|
209
|
+
}, m.$$.update = () => {
|
|
210
|
+
if (m.$$.dirty & /*floorplanData, floorIndex*/
|
|
211
|
+
1536 && o(8, l = t.floorDatas[n].rooms), m.$$.dirty & /*floorplanData, clientWidth*/
|
|
212
|
+
1088) {
|
|
213
|
+
const { max: i, min: p } = t.bounding, x = i.x - p.x;
|
|
214
|
+
o(7, E = c / x);
|
|
231
215
|
}
|
|
232
216
|
}, [
|
|
233
217
|
f,
|
|
234
|
-
u,
|
|
235
|
-
n,
|
|
236
|
-
i,
|
|
237
|
-
m,
|
|
238
218
|
s,
|
|
239
|
-
|
|
240
|
-
|
|
219
|
+
b,
|
|
220
|
+
a,
|
|
221
|
+
r,
|
|
222
|
+
u,
|
|
241
223
|
c,
|
|
242
|
-
|
|
224
|
+
E,
|
|
243
225
|
l,
|
|
226
|
+
n,
|
|
244
227
|
t,
|
|
245
|
-
|
|
246
|
-
x
|
|
228
|
+
N
|
|
247
229
|
];
|
|
248
230
|
}
|
|
249
|
-
class
|
|
231
|
+
class Z extends T {
|
|
250
232
|
constructor(e) {
|
|
251
|
-
super(),
|
|
233
|
+
super(), V(
|
|
252
234
|
this,
|
|
253
235
|
e,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
236
|
+
Q,
|
|
237
|
+
P,
|
|
238
|
+
D,
|
|
257
239
|
{
|
|
258
|
-
floorIndex:
|
|
240
|
+
floorIndex: 9,
|
|
259
241
|
roomAreaEnable: 0,
|
|
260
242
|
roomNameEnable: 1,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
getLabelElement: 6,
|
|
267
|
-
adaptiveRoomLabelVisibleEnable: 7
|
|
243
|
+
floorplanData: 10,
|
|
244
|
+
hoveredRoom: 2,
|
|
245
|
+
getRoomAreaText: 3,
|
|
246
|
+
getLabelElement: 4,
|
|
247
|
+
adaptiveRoomLabelVisibleEnable: 5
|
|
268
248
|
},
|
|
269
|
-
|
|
249
|
+
K
|
|
270
250
|
);
|
|
271
251
|
}
|
|
272
252
|
}
|
|
273
253
|
export {
|
|
274
|
-
|
|
254
|
+
Z as RoomLabels
|
|
275
255
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var F = Object.defineProperty, P = Object.defineProperties;
|
|
2
2
|
var E = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var v = Object.getOwnPropertySymbols;
|
|
4
4
|
var x = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var g = (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) && g(d, t, r[t]);
|
|
8
|
+
if (v)
|
|
9
|
+
for (var t of v(r))
|
|
10
|
+
I.call(r, t) && g(d, t, r[t]);
|
|
11
11
|
return d;
|
|
12
|
-
},
|
|
13
|
-
var o = (d, r, t) => (
|
|
12
|
+
}, m = (d, r) => P(d, E(r));
|
|
13
|
+
var o = (d, r, t) => (g(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 w 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 b } 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 S } from "../../shared-utils/filter.js";
|
|
37
|
+
import { FLOOR_PLAN_ATTACHED_TO as O } from "../constant.js";
|
|
38
|
+
import { Controller as D } 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 H } from "../utils/correctFiveState.js";
|
|
41
|
+
import { changeModelCanvasOpacity as C } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
42
|
+
import { FloorplanErrorType as p, SHOW_ANIME_DURATION as R } 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 D {
|
|
104
104
|
constructor(t, e) {
|
|
105
105
|
var a, f;
|
|
106
106
|
super(t);
|
|
@@ -177,7 +177,7 @@ class Qt extends O {
|
|
|
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, p.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 O {
|
|
|
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(p.ModelNotLoaded);
|
|
192
192
|
if (!this.data)
|
|
193
|
-
throw new Error(
|
|
193
|
+
throw new Error(p.DataNotLoaded);
|
|
194
194
|
if (this.showPromise)
|
|
195
195
|
return this.showPromise;
|
|
196
196
|
const e = {
|
|
@@ -202,22 +202,22 @@ class Qt extends O {
|
|
|
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 = (A) => {
|
|
206
|
+
s = !0, a = A;
|
|
207
207
|
};
|
|
208
|
-
const [f] = yield M(
|
|
208
|
+
const [f] = yield M(H(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(p.UnknownError);
|
|
213
213
|
if (!this.updateSize())
|
|
214
|
-
throw new Error(
|
|
214
|
+
throw new Error(p.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 : R;
|
|
220
|
+
C(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 O {
|
|
|
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, p.BreakOffByHide), this.showPromise = void 0;
|
|
232
232
|
const i = l(l({}, {
|
|
233
233
|
userAction: !0,
|
|
234
234
|
isAutoHide: !1
|
|
235
235
|
}), t);
|
|
236
|
-
|
|
236
|
+
C(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 O {
|
|
|
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 w.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 O {
|
|
|
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(S(this.showState, ["offset"]), 0), !1;
|
|
281
281
|
});
|
|
282
282
|
/** 阻止点击分间走点 */
|
|
283
283
|
o(this, "onFiveWantsTapGesture", () => this.handleClick());
|
|
@@ -319,17 +319,15 @@ class Qt extends O {
|
|
|
319
319
|
roomLabelsEnable: !0,
|
|
320
320
|
roomAreaEnable: !0,
|
|
321
321
|
roomNameEnable: !0,
|
|
322
|
-
roomDimensionEnable: !0,
|
|
323
322
|
cameraImageUrl: _,
|
|
324
|
-
attachedTo:
|
|
323
|
+
attachedTo: O.BOUNDING_CENTER,
|
|
325
324
|
getLabelElement: void 0,
|
|
326
325
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
327
326
|
missingFloorConfig: l(l({}, this.defaultMissingFloorConfig), e.missingFloorConfig),
|
|
328
327
|
i18n: (c) => c,
|
|
329
328
|
getRoomAreaText: (c) => (c / 1e6).toFixed(1) + "㎡",
|
|
330
|
-
getRoomDimensionText: (c, g) => (c / 1e3).toFixed(1) + "m x " + (g / 1e3).toFixed(1) + "m",
|
|
331
329
|
getRuleDistanceText: (c) => c.toString()
|
|
332
|
-
}, n = e ?
|
|
330
|
+
}, n = e ? S(e, ["selector", "scale"]) : {}, h = l(l({}, i.missingFloorConfig), n.missingFloorConfig), s = m(l(l({}, i), n), { missingFloorConfig: h });
|
|
333
331
|
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();
|
|
334
332
|
}
|
|
335
333
|
load(t, e, i = !0) {
|
|
@@ -340,7 +338,7 @@ class Qt extends O {
|
|
|
340
338
|
const h = t;
|
|
341
339
|
h && !h.version && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
|
|
342
340
|
const s = JSON.parse(JSON.stringify(t)), a = n(s) ? s.data : s, f = this.data;
|
|
343
|
-
this.data = yield
|
|
341
|
+
this.data = yield b(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, f), e && this.updateState(e, i), this.render();
|
|
344
342
|
});
|
|
345
343
|
}
|
|
346
344
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
@@ -376,7 +374,7 @@ class Qt extends O {
|
|
|
376
374
|
/** 更新户型图位置 */
|
|
377
375
|
updatePosition() {
|
|
378
376
|
var s;
|
|
379
|
-
const t = k(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new
|
|
377
|
+
const t = k(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new w.Vector3()).setY(t);
|
|
380
378
|
if (!e)
|
|
381
379
|
return;
|
|
382
380
|
const i = e.clone().project(this.five.camera), n = (i.x + 1) / 2, h = -(i.y - 1) / 2;
|
|
@@ -384,13 +382,13 @@ class Qt extends O {
|
|
|
384
382
|
}
|
|
385
383
|
formatData(t) {
|
|
386
384
|
return u(this, null, function* () {
|
|
387
|
-
return yield
|
|
385
|
+
return yield b(t.data);
|
|
388
386
|
});
|
|
389
387
|
}
|
|
390
388
|
updateState(t, e) {
|
|
391
389
|
var s;
|
|
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 ?
|
|
393
|
-
this.state =
|
|
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 ? m(l(l({}, i.config), t.config), { missingFloorConfig: n }) : i.config;
|
|
391
|
+
this.state = m(l(l({}, this.state), t), { config: h }), !y(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
394
392
|
}
|
|
395
393
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
396
394
|
*
|
|
@@ -419,7 +417,7 @@ class Qt extends O {
|
|
|
419
417
|
render(t) {
|
|
420
418
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
|
|
421
419
|
return;
|
|
422
|
-
const e =
|
|
420
|
+
const e = m(l({}, this.state.config), {
|
|
423
421
|
visible: this.state.visible,
|
|
424
422
|
duration: t != null ? t : 0,
|
|
425
423
|
panoIndex: this.panoIndex,
|