@realsee/dnalogel 3.28.10 → 3.29.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/CHANGELOG.md +6 -0
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/index.d.ts +21 -2
- package/dist/PanoTagPlugin/typings/controller.d.ts +2 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +6 -2
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -0
- package/dist/index.cjs.js +55 -55
- package/dist/index.js +4617 -4497
- package/dist/index.umd.js +55 -55
- package/dist/shared-utils/three/blink.d.ts +17 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
- package/docs/classes/ModelMakerPluginType.ModelMakerController.html +3 -3
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/MoveController.html +3 -3
- package/docs/classes/Object3DHelperController.html +3 -3
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoMeasurePluginLine.html +3 -3
- package/docs/classes/PanoMeasurePluginModel.html +3 -3
- package/docs/classes/PanoMeasurePluginPoint.html +3 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
- package/docs/classes/PanoTagPluginController.html +69 -35
- package/docs/classes/Sculpt.html +3 -3
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.LineSegments.html +3 -3
- package/docs/classes/Util.Magnifier.html +3 -3
- package/docs/classes/Util.Object3D.html +3 -3
- package/docs/classes/Util.PointDomHelper.html +3 -3
- package/docs/classes/Util.PointHelper.html +3 -3
- package/docs/classes/Util.PointSelectorHelper.html +3 -3
- package/docs/classes/Util.Rectangle.html +3 -3
- package/docs/classes/WalkController.html +3 -3
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +3 -3
- package/docs/enums/DIRECTION.html +3 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/PaintBrushTypeEnum.html +3 -3
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +3 -3
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/CurrentPanoImagePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +3 -3
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelMakerPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/MovePlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/PipelinePlugin.html +3 -3
- package/docs/functions/SculptPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +3 -3
- package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
- package/docs/functions/Util.equal.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +3 -3
- package/docs/functions/Util.getCoordsFromElement.html +3 -3
- package/docs/functions/Util.getFrameTime.html +3 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
- package/docs/functions/Util.isAbsoluteURL.html +3 -3
- package/docs/functions/Util.isModelLike.html +3 -3
- package/docs/functions/Util.isNil.html +3 -3
- package/docs/functions/Util.isPanoramaLike.html +3 -3
- package/docs/functions/Util.nextFrame.html +3 -3
- package/docs/functions/Util.notNil.html +3 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +3 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.State.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +3 -3
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +15 -15
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +3 -3
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/CurrentPanoImagePluginType.html +3 -3
- package/docs/modules/GuideLineItem.html +3 -3
- package/docs/modules/GuideLineModeItem.html +3 -3
- package/docs/modules/GuideLinePluginType.html +3 -3
- package/docs/modules/ModelMakerPluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/SculptData.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/AddObject3DHelperConfig.html +3 -3
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
- package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
- package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.html +3 -3
- package/docs/types/CSS3DRenderExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
- package/docs/types/ClassFunctionParameters.html +3 -3
- package/docs/types/Color.html +3 -3
- package/docs/types/ContentTypeConfigKey.html +3 -3
- package/docs/types/ContentTypeConfigKeySplit.html +3 -3
- package/docs/types/ContentTypeMap.html +3 -3
- package/docs/types/Create3DDomContainerReturnType.html +3 -3
- package/docs/types/Create3DElementReturnType.html +3 -3
- package/docs/types/CruisePluginExportType.html +3 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
- package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
- package/docs/types/DeprecatedTagProperty.html +3 -3
- package/docs/types/Direction-1.html +3 -3
- package/docs/types/Direction4.html +3 -3
- package/docs/types/ElementRenderer.html +3 -3
- package/docs/types/FloorplanRuleLabels.html +3 -3
- package/docs/types/FloorplanServerRuleLabels.html +3 -3
- package/docs/types/GuideLinePluginExportType.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
- package/docs/types/GuideLinePluginType.PathItem.html +3 -3
- package/docs/types/GuideLinePluginType.PluginData.html +3 -3
- package/docs/types/HelperEventMap.html +3 -3
- package/docs/types/InternalHelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +3 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/MediaData.html +3 -3
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelId.html +3 -3
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -3
- package/docs/types/ModelMakerPluginType.ItemType.html +3 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
- package/docs/types/MoveArgs.html +3 -3
- package/docs/types/MoveOpts.html +3 -3
- package/docs/types/Object3DHelperEventMap.html +3 -3
- package/docs/types/ObjectFit.html +3 -3
- package/docs/types/PaintBrushEventMap.html +3 -3
- package/docs/types/PanoCompassPluginData.html +3 -3
- package/docs/types/PanoCompassPluginExportType.html +3 -3
- package/docs/types/PanoCompassPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
- package/docs/types/PanoIndex.html +3 -3
- package/docs/types/PanoMeasurePluginEvent.html +3 -3
- package/docs/types/PanoMeasureReturnType.html +3 -3
- package/docs/types/PanoSpatialTagPluginId.html +3 -3
- package/docs/types/PanoTagPluginExportInterface.html +3 -3
- package/docs/types/PanoTagPluginParamsInterface.html +3 -3
- package/docs/types/PanoVideoPluginParameterType.html +3 -3
- package/docs/types/PanoVideoPluginReturnType.html +3 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
- package/docs/types/PipelinePluginParameterType.html +3 -3
- package/docs/types/PipelinePluginReturnType.html +3 -3
- package/docs/types/PlaneTag.html +3 -3
- package/docs/types/Point2DTag.html +3 -3
- package/docs/types/Point3DTag.html +3 -3
- package/docs/types/PointTag.html +3 -3
- package/docs/types/PointTagInstance.html +4 -4
- package/docs/types/Position.html +3 -3
- package/docs/types/PositionFrom.html +3 -3
- package/docs/types/RotateArgs.html +3 -3
- package/docs/types/RotateOpts.html +3 -3
- package/docs/types/RuleLabelsKey.html +3 -3
- package/docs/types/RuleLabelsValue.html +3 -3
- package/docs/types/ScaleCallback.html +3 -3
- package/docs/types/ScalePosition.html +3 -3
- package/docs/types/SculptData.BoxData.html +3 -3
- package/docs/types/SculptData.CircleData.html +3 -3
- package/docs/types/SculptData.CylinderData.html +3 -3
- package/docs/types/SculptData.PointData.html +3 -3
- package/docs/types/SculptData.PolygonData.html +3 -3
- package/docs/types/SculptData.PolylineData.html +3 -3
- package/docs/types/SculptData.PrismData.html +3 -3
- package/docs/types/SculptData.RectangleData.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +3 -3
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagConfigByKey.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagContentTypeMapping.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +21 -5
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +4 -4
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/defaultGlobalConfig.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/CruisePlugin/Move.js +4 -3
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +8 -7
- package/libs/GuideLinePlugin/Controller.js +6 -5
- package/libs/GuideLinePlugin/GuideLineItem.js +4 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/PanoTagPlugin/Components/Tag/index.js +309 -296
- package/libs/PanoTagPlugin/Components/TagItem.js +235 -226
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +112 -112
- package/libs/PanoTagPlugin/controller/index.d.ts +21 -2
- package/libs/PanoTagPlugin/controller/index.js +148 -106
- package/libs/PanoTagPlugin/index.js +13 -11
- package/libs/PanoTagPlugin/typings/controller.d.ts +2 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +6 -2
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/tag/format.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +127 -126
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/blink.d.ts +17 -0
- package/libs/shared-utils/three/blink.js +92 -0
- package/package.json +3 -3
|
@@ -17,7 +17,7 @@ export declare abstract class TagComputer extends TagUtil {
|
|
|
17
17
|
getUnfoldedByCamera(tag: TagInstance): boolean;
|
|
18
18
|
protected setTagZIndex(tags: TagInstance[]): void;
|
|
19
19
|
protected calculateTagZIndex(tag: TagInstance): number;
|
|
20
|
-
protected setVisible(tags?: TagInstance[]): void;
|
|
20
|
+
protected setVisible(tags?: TagInstance | TagInstance[]): void;
|
|
21
21
|
protected setUnfoldedByPanoIndex(): void;
|
|
22
22
|
/**
|
|
23
23
|
* @description 一个点的标签
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var $ = Object.defineProperty,
|
|
2
|
-
var
|
|
1
|
+
var $ = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
+
var _ = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var M = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var D = (m, e,
|
|
6
|
-
for (var
|
|
7
|
-
|
|
4
|
+
var L = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var D = (m, e, n) => e in m ? $(m, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : m[e] = n, I = (m, e) => {
|
|
6
|
+
for (var n in e || (e = {}))
|
|
7
|
+
L.call(e, n) && D(m, n, e[n]);
|
|
8
8
|
if (M)
|
|
9
|
-
for (var
|
|
10
|
-
|
|
9
|
+
for (var n of M(e))
|
|
10
|
+
O.call(e, n) && D(m, n, e[n]);
|
|
11
11
|
return m;
|
|
12
|
-
}, U = (m, e) =>
|
|
13
|
-
import * as
|
|
14
|
-
import { is3DTag as
|
|
15
|
-
import { getTagCenterPosition as k, getTagPosition as
|
|
12
|
+
}, U = (m, e) => E(m, _(e));
|
|
13
|
+
import * as j from "three";
|
|
14
|
+
import { is3DTag as z, isMediaModelTag as R } from "../utils/tag/tagCheck.js";
|
|
15
|
+
import { getTagCenterPosition as k, getTagPosition as Z } from "../utils/tagPosition.js";
|
|
16
16
|
import { checkRange as y } from "../utils/checkRange.js";
|
|
17
|
-
import { isPanoramaLike as P, isModelLike as
|
|
17
|
+
import { isPanoramaLike as P, isModelLike as q } from "../../shared-utils/five/mode.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "@realsee/five";
|
|
20
20
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
-
import { notNil as
|
|
24
|
-
import { TagUtil as
|
|
25
|
-
import { getFloorIndex as
|
|
23
|
+
import { notNil as H } from "../../shared-utils/isNil.js";
|
|
24
|
+
import { TagUtil as N } from "./TagUtil.js";
|
|
25
|
+
import { getFloorIndex as W } from "../../shared-utils/five/getFloorIndex.js";
|
|
26
26
|
import { safeObj as F } from "../../shared-utils/safeObj.js";
|
|
27
|
-
import { toArray as
|
|
27
|
+
import { toArray as S } from "../../shared-utils/util.js";
|
|
28
28
|
import "../../shared-utils/three/centerPoint.js";
|
|
29
29
|
import "../../shared-utils/positionToVector3.js";
|
|
30
30
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -66,26 +66,26 @@ import "../../shared-utils/url/getUrl.js";
|
|
|
66
66
|
import "../../shared-utils/five/transformPosition.js";
|
|
67
67
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
68
68
|
import "../../shared-utils/Utils/BaseUtil.js";
|
|
69
|
-
const C = new
|
|
69
|
+
const C = new j.Raycaster();
|
|
70
70
|
C.params.Points.threshold = 0.1;
|
|
71
|
-
class Qe extends
|
|
71
|
+
class Qe extends N {
|
|
72
72
|
constructor(e) {
|
|
73
73
|
super(e);
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* @description 获取是否可见
|
|
77
77
|
*/
|
|
78
|
-
getVisible(e,
|
|
79
|
-
const
|
|
78
|
+
getVisible(e, n) {
|
|
79
|
+
const r = I(I({}, this.five.getCurrentState()), n), { panoIndex: t, mode: o } = r, f = P(o) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
80
80
|
if ((f == null ? void 0 : f.visible) !== void 0)
|
|
81
81
|
return f.visible;
|
|
82
82
|
{
|
|
83
83
|
const s = [], d = (() => {
|
|
84
|
-
var
|
|
85
|
-
const i = (
|
|
84
|
+
var a, c, v, u, b, x, h;
|
|
85
|
+
const i = (a = this.getTagConfig(e).visibleConfig) != null ? a : {};
|
|
86
86
|
if (typeof i == "function")
|
|
87
87
|
return {
|
|
88
|
-
value: i(this.five, { tag: e, distance: this.getDistance(e,
|
|
88
|
+
value: i(this.five, { tag: e, distance: this.getDistance(e, r) }),
|
|
89
89
|
checkedList: s,
|
|
90
90
|
reason: "config function result"
|
|
91
91
|
};
|
|
@@ -94,9 +94,9 @@ class Qe extends H {
|
|
|
94
94
|
if (i.keep === "visible")
|
|
95
95
|
return { value: !0, checkedList: s, reason: "config.keep is visible" };
|
|
96
96
|
if (i.visibleFiveMode !== void 0) {
|
|
97
|
-
const
|
|
97
|
+
const l = typeof i.visibleFiveMode == "function" ? i.visibleFiveMode(e) : i.visibleFiveMode;
|
|
98
98
|
let p = !1;
|
|
99
|
-
if (Array.isArray(
|
|
99
|
+
if (Array.isArray(l) ? p = l.includes(o) : l === "ModelLike" ? p = q(o) : l === "PanoramaLike" ? p = !P(o) : l === "all" ? p = !0 : typeof l == "string" && (p = l === o), p === !1)
|
|
100
100
|
return {
|
|
101
101
|
value: !1,
|
|
102
102
|
checkedList: s,
|
|
@@ -109,52 +109,52 @@ class Qe extends H {
|
|
|
109
109
|
value: !1,
|
|
110
110
|
checkedList: s,
|
|
111
111
|
reason: "current mode is not equal to tag.fiveState.mode",
|
|
112
|
-
tagFiveMode: (
|
|
112
|
+
tagFiveMode: (b = e.fiveState) == null ? void 0 : b.mode,
|
|
113
113
|
mode: o
|
|
114
114
|
};
|
|
115
115
|
if (i.followModelVisibility === !0 && (o === "Floorplan" || o === "Mapview") && this.getVisibleByFloorIndex(e) === !1)
|
|
116
116
|
return { value: !1, checkedList: s, reason: "followModelVisibility check failed" };
|
|
117
|
-
if (P(o) && i.visiblePanoIndex !== void 0 && i.visiblePanoIndex !== "all" &&
|
|
118
|
-
if (s.push("visiblePanoIndex"), Array.isArray(i.visiblePanoIndex) && !i.visiblePanoIndex.includes(
|
|
117
|
+
if (P(o) && i.visiblePanoIndex !== void 0 && i.visiblePanoIndex !== "all" && t !== void 0) {
|
|
118
|
+
if (s.push("visiblePanoIndex"), Array.isArray(i.visiblePanoIndex) && !i.visiblePanoIndex.includes(t))
|
|
119
119
|
return {
|
|
120
120
|
value: !1,
|
|
121
121
|
checkedList: s,
|
|
122
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${
|
|
122
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${i.visiblePanoIndex}`
|
|
123
123
|
};
|
|
124
|
-
if (i.visiblePanoIndex === "current" &&
|
|
124
|
+
if (i.visiblePanoIndex === "current" && t !== ((x = e.fiveState) == null ? void 0 : x.panoIndex))
|
|
125
125
|
return {
|
|
126
126
|
value: !1,
|
|
127
127
|
checkedList: s,
|
|
128
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${
|
|
128
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(h = e.fiveState) == null ? void 0 : h.panoIndex}`
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
131
|
if (i.visibleDistance !== void 0 && (s.push("visibleDistance"), i.visibleDistance !== "unLimited")) {
|
|
132
|
-
const
|
|
133
|
-
if (y(
|
|
132
|
+
const l = this.getDistance(e, r);
|
|
133
|
+
if (y(l, i.visibleDistance) === !1)
|
|
134
134
|
return {
|
|
135
135
|
value: !1,
|
|
136
136
|
checkedList: s,
|
|
137
|
-
panoIndex:
|
|
137
|
+
panoIndex: t,
|
|
138
138
|
visibleDistance: i.visibleDistance,
|
|
139
|
-
reason: `distance is not in visibleDistance. distance: ${
|
|
139
|
+
reason: `distance is not in visibleDistance. distance: ${l}, visibleDistance: ${i.visibleDistance.min} - ${i.visibleDistance.max}`
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
if (P(o) && i.angleRange &&
|
|
142
|
+
if (P(o) && i.angleRange && z(e)) {
|
|
143
143
|
s.push("angleRange");
|
|
144
|
-
const
|
|
145
|
-
if (y(
|
|
146
|
-
return { value: !1, checkedList: s, reason: `angle is not in angleRange. angle: ${
|
|
144
|
+
const l = this.getAngle(e, t);
|
|
145
|
+
if (y(l, i.angleRange) === !1)
|
|
146
|
+
return { value: !1, checkedList: s, reason: `angle is not in angleRange. angle: ${l}, angleRange: ${i.angleRange}` };
|
|
147
147
|
}
|
|
148
148
|
if (i.intersectRaycaster !== !1 && (typeof i.intersectRaycaster != "object" || i.intersectRaycaster.enabled !== !1)) {
|
|
149
|
-
if (s.push("intersectRaycaster"),
|
|
149
|
+
if (s.push("intersectRaycaster"), t === void 0)
|
|
150
150
|
return {
|
|
151
151
|
value: !1,
|
|
152
152
|
checkedList: s,
|
|
153
|
-
reason: `intersectRaycaster check failed: panoIndex is ${
|
|
153
|
+
reason: `intersectRaycaster check failed: panoIndex is ${t}`
|
|
154
154
|
};
|
|
155
|
-
const
|
|
156
|
-
if (
|
|
157
|
-
return Object.assign(
|
|
155
|
+
const l = this.getTagEnableByIntersect(e, t);
|
|
156
|
+
if (l.value === !1)
|
|
157
|
+
return Object.assign(l, { checkedList: s });
|
|
158
158
|
}
|
|
159
159
|
return {
|
|
160
160
|
value: !0,
|
|
@@ -168,29 +168,29 @@ class Qe extends H {
|
|
|
168
168
|
/**
|
|
169
169
|
* @description 获取是否展开
|
|
170
170
|
*/
|
|
171
|
-
getUnfoldedByPanoIndex(e,
|
|
171
|
+
getUnfoldedByPanoIndex(e, n) {
|
|
172
172
|
if (!this.getCurrentVisibleState(e))
|
|
173
173
|
return;
|
|
174
|
-
const
|
|
175
|
-
if (
|
|
176
|
-
return
|
|
174
|
+
const t = this.getPanoIndexCache({ panoIndex: n, id: e.id });
|
|
175
|
+
if (t.unfolded !== void 0)
|
|
176
|
+
return t.unfolded;
|
|
177
177
|
{
|
|
178
178
|
const o = this.getTagConfig(e).unfoldedConfig;
|
|
179
179
|
if (!o)
|
|
180
180
|
return;
|
|
181
181
|
const f = (() => {
|
|
182
182
|
if (typeof o == "function")
|
|
183
|
-
return o(this.five, { tag: e, distance: this.getDistance(e, { panoIndex:
|
|
183
|
+
return o(this.five, { tag: e, distance: this.getDistance(e, { panoIndex: n }) });
|
|
184
184
|
if (o.keep === "folded")
|
|
185
185
|
return !1;
|
|
186
186
|
if (o.keep === "unfolded")
|
|
187
187
|
return !0;
|
|
188
|
-
if (o.unfoldDistance && y(this.getDistance(e, { panoIndex:
|
|
188
|
+
if (o.unfoldDistance && y(this.getDistance(e, { panoIndex: n }), o.unfoldDistance) === !1)
|
|
189
189
|
return !1;
|
|
190
190
|
})();
|
|
191
|
-
|
|
191
|
+
t.unfolded = f;
|
|
192
192
|
const s = this.getUnfoldedByCamera(e);
|
|
193
|
-
return s !== void 0 ? s :
|
|
193
|
+
return s !== void 0 ? s : t.unfolded;
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
/**
|
|
@@ -199,63 +199,63 @@ class Qe extends H {
|
|
|
199
199
|
getUnfoldedByCamera(e) {
|
|
200
200
|
return this.getCurrentVisibleState(e) ? (() => {
|
|
201
201
|
var o;
|
|
202
|
-
const
|
|
203
|
-
if (
|
|
204
|
-
if (typeof
|
|
205
|
-
return
|
|
206
|
-
if (
|
|
202
|
+
const t = this.getTagConfig(e).unfoldedConfig;
|
|
203
|
+
if (t) {
|
|
204
|
+
if (typeof t == "function")
|
|
205
|
+
return t(this.five, { tag: e, distance: this.getDistance(e) });
|
|
206
|
+
if (t.keep === "folded")
|
|
207
207
|
return !1;
|
|
208
|
-
if (
|
|
208
|
+
if (t.keep === "unfolded")
|
|
209
209
|
return !0;
|
|
210
|
-
if (
|
|
210
|
+
if (t.autoUnfold === void 0 || t.autoUnfold === !1 || t.autoUnfold.enable === !1 || !t.autoUnfold.strategy)
|
|
211
211
|
return;
|
|
212
|
-
if (
|
|
212
|
+
if (t.autoUnfold.strategy === "ScreenPostion") {
|
|
213
213
|
const f = this.getTagProject(e);
|
|
214
|
-
if (f && y(f.x,
|
|
214
|
+
if (f && y(f.x, t.autoUnfold.autoUnfoldProjectX) === !1)
|
|
215
215
|
return !1;
|
|
216
216
|
}
|
|
217
|
-
if (
|
|
217
|
+
if (t.autoUnfold.strategy === "MinimumDistance") {
|
|
218
218
|
const d = this.filterPointTag.filter((i) => this.getCurrentVisibleState(i)).filter((i) => {
|
|
219
|
-
const
|
|
220
|
-
if (!
|
|
219
|
+
const a = this.getTagProject(i);
|
|
220
|
+
if (!a)
|
|
221
221
|
return !1;
|
|
222
|
-
const { x: c, y: v, z: u } =
|
|
222
|
+
const { x: c, y: v, z: u } = a;
|
|
223
223
|
return !(Math.abs(u) > 1 || Math.abs(c) > 1 || Math.abs(v) > 1);
|
|
224
|
-
}).map((i) => ({ tag: i, id: i.id, tagConfig: this.getTagConfig(i).unfoldedConfig })).filter(({ tag: i, tagConfig:
|
|
224
|
+
}).map((i) => ({ tag: i, id: i.id, tagConfig: this.getTagConfig(i).unfoldedConfig })).filter(({ tag: i, tagConfig: a }) => {
|
|
225
225
|
var c, v;
|
|
226
|
-
return !(typeof
|
|
227
|
-
}).map((i) => U(I({}, i), { distance: this.getDistance(i.tag) })).filter(({ distance: i, tagConfig:
|
|
228
|
-
const c =
|
|
226
|
+
return !(typeof a == "function" || a.keep || a.autoUnfold === !1 || ((c = a.autoUnfold) == null ? void 0 : c.enable) === !1 || ((v = a.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance");
|
|
227
|
+
}).map((i) => U(I({}, i), { distance: this.getDistance(i.tag) })).filter(({ distance: i, tagConfig: a }) => {
|
|
228
|
+
const c = a.autoUnfold.distance;
|
|
229
229
|
return !(c && y(i, c) === !1);
|
|
230
|
-
}).sort((i,
|
|
231
|
-
if (d === -1 || d <= ((o =
|
|
230
|
+
}).sort((i, a) => i.distance - a.distance).findIndex((i) => i.id === e.id);
|
|
231
|
+
if (d === -1 || d <= ((o = t.autoUnfold.maxNumber) != null ? o : 1) - 1 === !1)
|
|
232
232
|
return !1;
|
|
233
233
|
}
|
|
234
|
-
return
|
|
234
|
+
return t.autoUnfold.strategy !== "FoldWhenMove";
|
|
235
235
|
}
|
|
236
236
|
})() : void 0;
|
|
237
237
|
}
|
|
238
238
|
setTagZIndex(e) {
|
|
239
|
-
return e.forEach((
|
|
240
|
-
|
|
239
|
+
return e.forEach((n) => {
|
|
240
|
+
n.zIndex = this.calculateTagZIndex(n);
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
calculateTagZIndex(e) {
|
|
244
|
-
const
|
|
245
|
-
return Math.round((1e4 - (
|
|
244
|
+
const n = this.getDistance(e);
|
|
245
|
+
return Math.round((1e4 - (n != null ? n : 0)) * 100);
|
|
246
246
|
}
|
|
247
247
|
setVisible(e) {
|
|
248
|
-
(e
|
|
249
|
-
const
|
|
250
|
-
|
|
248
|
+
(e ? S(e) : this.tags).forEach((r) => {
|
|
249
|
+
const t = this.getVisible(r);
|
|
250
|
+
r.state && (r.state.visible = t);
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
253
|
setUnfoldedByPanoIndex() {
|
|
254
254
|
this.tags.forEach((e) => {
|
|
255
|
-
const
|
|
256
|
-
if (e.state && (
|
|
257
|
-
const
|
|
258
|
-
typeof
|
|
255
|
+
const n = this.getUnfoldedByPanoIndex(e);
|
|
256
|
+
if (e.state && (n !== void 0 && (e.state.unfolded = n), n && !e.state.visible)) {
|
|
257
|
+
const r = this.getTagConfig(e);
|
|
258
|
+
typeof r.unfoldedConfig == "object" && r.unfoldedConfig.autoFoldWhenHide !== !1 && (e.state.unfolded = !1);
|
|
259
259
|
}
|
|
260
260
|
});
|
|
261
261
|
}
|
|
@@ -263,42 +263,42 @@ class Qe extends H {
|
|
|
263
263
|
* @description 一个点的标签
|
|
264
264
|
*/
|
|
265
265
|
getTagProject(e) {
|
|
266
|
-
const
|
|
267
|
-
if (!
|
|
266
|
+
const n = k(e);
|
|
267
|
+
if (!n)
|
|
268
268
|
return;
|
|
269
|
-
const { x:
|
|
269
|
+
const { x: r, y: t, z: o } = n.project(this.five.camera);
|
|
270
270
|
if (!(o > 1))
|
|
271
|
-
return { x:
|
|
271
|
+
return { x: r, y: t, z: o };
|
|
272
272
|
}
|
|
273
273
|
/** 通过射线检测标签可用性 */
|
|
274
|
-
getTagEnableByIntersect(e,
|
|
275
|
-
var
|
|
276
|
-
const
|
|
274
|
+
getTagEnableByIntersect(e, n) {
|
|
275
|
+
var g, i, a, c, v;
|
|
276
|
+
const r = F(F((g = this.getTagConfig(e).visibleConfig) != null ? g : {}).intersectRaycaster), t = n != null ? n : this.five.getCurrentState().panoIndex, o = P(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
|
|
277
277
|
if (o === void 0)
|
|
278
|
-
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex:
|
|
279
|
-
const f =
|
|
278
|
+
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
279
|
+
const f = S(
|
|
280
280
|
(() => {
|
|
281
|
-
var
|
|
282
|
-
const u = (
|
|
283
|
-
return u === "center" ? k(e) : u === "corner" ?
|
|
281
|
+
var b;
|
|
282
|
+
const u = (b = r.checkPoints) != null ? b : "center";
|
|
283
|
+
return u === "center" ? k(e) : u === "corner" ? Z(e) : Array.isArray(u) ? u : [];
|
|
284
284
|
})()
|
|
285
285
|
);
|
|
286
286
|
let s = 0, d = 0;
|
|
287
287
|
for (const u of f) {
|
|
288
|
-
const
|
|
289
|
-
C.set(o,
|
|
290
|
-
const x = o.distanceTo(u), [h] = this.five.model.intersectRaycaster(C),
|
|
288
|
+
const b = new j.Vector3().subVectors(u, o).normalize();
|
|
289
|
+
C.set(o, b);
|
|
290
|
+
const x = o.distanceTo(u), [h] = this.five.model.intersectRaycaster(C), l = (() => {
|
|
291
291
|
if (!R(e))
|
|
292
292
|
return;
|
|
293
|
-
const
|
|
293
|
+
const A = this.tags.filter(R).map((B) => {
|
|
294
294
|
var T;
|
|
295
295
|
return (T = B.model) == null ? void 0 : T.object;
|
|
296
|
-
}).filter(
|
|
296
|
+
}).filter(H), [w] = C.intersectObjects(A, !0);
|
|
297
297
|
return w;
|
|
298
|
-
})(), p = (i =
|
|
299
|
-
Math.min((
|
|
300
|
-
const
|
|
301
|
-
if (s >=
|
|
298
|
+
})(), p = (i = r.distanceAccuracy) != null ? i : 0.01;
|
|
299
|
+
Math.min((a = h == null ? void 0 : h.distance) != null ? a : 1 / 0, (c = l == null ? void 0 : l.distance) != null ? c : 1 / 0) + p >= x ? s++ : d++;
|
|
300
|
+
const V = (v = r.needPassed) != null ? v : 1;
|
|
301
|
+
if (s >= V)
|
|
302
302
|
return { value: !0 };
|
|
303
303
|
}
|
|
304
304
|
return d === 0 ? { value: !0 } : {
|
|
@@ -306,18 +306,18 @@ class Qe extends H {
|
|
|
306
306
|
reason: {
|
|
307
307
|
type: "intersectRaycaster check failed",
|
|
308
308
|
passedCount: s,
|
|
309
|
-
needPassed:
|
|
309
|
+
needPassed: r.needPassed
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
313
|
/** 检测是否匹配当前楼层 */
|
|
314
314
|
getVisibleByFloorIndex(e) {
|
|
315
|
-
var o, f, s, d,
|
|
316
|
-
let
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
const
|
|
320
|
-
return
|
|
315
|
+
var o, f, s, d, g, i, a;
|
|
316
|
+
let n = 0;
|
|
317
|
+
const r = (o = e.fiveState) == null ? void 0 : o.panoIndex;
|
|
318
|
+
r !== void 0 ? n = (f = this.workUtil.getObserver(r)) == null ? void 0 : f.floorIndex : n = W(this.workUtil.work, (a = (i = (d = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : d.position) != null ? i : (g = e.mediaPlane) == null ? void 0 : g.position) != null ? a : k(e));
|
|
319
|
+
const t = this.five.model.shownFloor;
|
|
320
|
+
return t === null || t === n;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
export {
|
|
@@ -4,6 +4,7 @@ import type { ArrayPosition } from '../typings';
|
|
|
4
4
|
import { type Five } from '@realsee/five';
|
|
5
5
|
import { TagRender } from './TagRender';
|
|
6
6
|
import type { PartialObjectDeep } from '../../typings/typings';
|
|
7
|
+
import type anime from 'animejs';
|
|
7
8
|
export declare const pluginFlag: (name: string) => string;
|
|
8
9
|
declare class PanoTagPluginController extends TagRender {
|
|
9
10
|
/** state */
|
|
@@ -62,15 +63,33 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
62
63
|
* @description 销毁
|
|
63
64
|
*/
|
|
64
65
|
dispose(): void;
|
|
66
|
+
/**
|
|
67
|
+
* @description 闪烁标签
|
|
68
|
+
* @param {TagId} id
|
|
69
|
+
* @param {Partial<anime.AnimeParams>} animeConfig
|
|
70
|
+
*/
|
|
71
|
+
blinkTagById(id: TagId, animeConfig?: Partial<anime.AnimeParams>): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* @description 展开/收起指定id的标签
|
|
74
|
+
* @param {TagId} id
|
|
75
|
+
* @param {boolean} unfolded
|
|
76
|
+
*/
|
|
65
77
|
changeUnfoldedById(id: TagId, unfolded: boolean): void;
|
|
78
|
+
/**
|
|
79
|
+
* @description 启用/停用指定id的标签
|
|
80
|
+
* @param {TagId} id
|
|
81
|
+
* @param {boolean} enabled
|
|
82
|
+
*/
|
|
66
83
|
changeEnabledById(id: TagId, enabled: boolean): void;
|
|
67
84
|
/**
|
|
68
85
|
* @description 修改3D标签normal
|
|
86
|
+
* @param {TagId} id
|
|
87
|
+
* @param {ArrayPosition} normal
|
|
69
88
|
*/
|
|
70
89
|
changeTagNormalById(id: TagId, normal: ArrayPosition): void;
|
|
71
90
|
/**
|
|
72
|
-
|
|
73
|
-
|
|
91
|
+
* @description 改变data
|
|
92
|
+
*/
|
|
74
93
|
changePositionById(id: TagId, position: Tag['position']): void;
|
|
75
94
|
/**
|
|
76
95
|
* @description 改变data
|