@realsee/dnalogel 3.34.2 → 3.34.3
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 +4 -0
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +5 -0
- package/dist/PanoTagPlugin/controller/index.d.ts +7 -2
- package/dist/index.cjs.js +22 -22
- package/dist/index.js +863 -850
- package/dist/index.umd.js +14 -14
- 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/ModelMakerPluginInstance.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 +30 -30
- 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.blink.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.reblink.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 +3 -3
- 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 +3 -3
- package/docs/interfaces/TagConfig.html +3 -3
- 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.BlinkAnimeOptions.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/interfaces/Util.ReBlinkAnimeOptions.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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/ModelMakerPlugin/Controller.js +12 -12
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +5 -0
- package/libs/PanoTagPlugin/controller/TagComputer.js +206 -184
- package/libs/PanoTagPlugin/controller/index.d.ts +7 -2
- package/libs/PanoTagPlugin/controller/index.js +115 -115
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,31 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var D = (
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
var L = Object.defineProperty, O = Object.defineProperties;
|
|
2
|
+
var z = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
|
+
var U = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var D = (d, e, i) => e in d ? L(d, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : d[e] = i, h = (d, e) => {
|
|
6
|
+
for (var i in e || (e = {}))
|
|
7
|
+
U.call(e, i) && D(d, i, e[i]);
|
|
8
|
+
if (C)
|
|
9
|
+
for (var i of C(e))
|
|
10
|
+
F.call(e, i) && D(d, i, e[i]);
|
|
11
|
+
return d;
|
|
12
|
+
}, R = (d, e) => O(d, z(e));
|
|
13
|
+
var S = (d, e) => {
|
|
14
|
+
var i = {};
|
|
15
|
+
for (var s in d)
|
|
16
|
+
U.call(d, s) && e.indexOf(s) < 0 && (i[s] = d[s]);
|
|
17
|
+
if (d != null && C)
|
|
18
|
+
for (var s of C(d))
|
|
19
|
+
e.indexOf(s) < 0 && F.call(d, s) && (i[s] = d[s]);
|
|
20
|
+
return i;
|
|
21
|
+
};
|
|
22
|
+
import * as w from "three";
|
|
23
|
+
import { is3DTag as Z, isMediaModelTag as j } from "../utils/tag/tagCheck.js";
|
|
24
|
+
import { getTagCenterPosition as k, getTagPosition as q } from "../utils/tagPosition.js";
|
|
25
|
+
import { checkRange as P } from "../utils/checkRange.js";
|
|
26
|
+
import { isPanoramaLike as x, isModelLike as H } from "../../shared-utils/five/mode.js";
|
|
18
27
|
import "hammerjs";
|
|
19
28
|
import "@realsee/five";
|
|
20
29
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
21
30
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
31
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
32
|
import "animejs";
|
|
24
|
-
import { toArray as
|
|
25
|
-
import { notNil as
|
|
26
|
-
import { TagUtil as
|
|
27
|
-
import { getFloorIndex as
|
|
28
|
-
import { safeObj as
|
|
33
|
+
import { toArray as V } from "../../shared-utils/util.js";
|
|
34
|
+
import { notNil as N } from "../../shared-utils/isNil.js";
|
|
35
|
+
import { TagUtil as W } from "./TagUtil.js";
|
|
36
|
+
import { getFloorIndex as X } from "../../shared-utils/five/getFloorIndex.js";
|
|
37
|
+
import { safeObj as A } from "../../shared-utils/safeObj.js";
|
|
29
38
|
import "../../shared-utils/three/centerPoint.js";
|
|
30
39
|
import "../../shared-utils/positionToVector3.js";
|
|
31
40
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -70,139 +79,148 @@ import "../../shared-utils/url/getUrl.js";
|
|
|
70
79
|
import "../../shared-utils/five/transformPosition.js";
|
|
71
80
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
72
81
|
import "../../shared-utils/Utils/BaseUtil.js";
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
class
|
|
82
|
+
const T = new w.Raycaster();
|
|
83
|
+
T.params.Points.threshold = 0.1;
|
|
84
|
+
class ni extends W {
|
|
76
85
|
constructor(e) {
|
|
77
86
|
super(e);
|
|
78
87
|
}
|
|
79
88
|
/**
|
|
80
89
|
* @description 获取是否可见
|
|
81
90
|
*/
|
|
82
|
-
getVisible(e,
|
|
83
|
-
const
|
|
84
|
-
if ((
|
|
85
|
-
return
|
|
91
|
+
getVisible(e, i) {
|
|
92
|
+
const s = h(h({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = s, n = x(r) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
93
|
+
if ((n == null ? void 0 : n.visible) !== void 0)
|
|
94
|
+
return n.visible;
|
|
86
95
|
{
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
};
|
|
111
|
-
} else if (i.visibleFiveMode === void 0 && ((c = this.five.getCurrentState()) == null ? void 0 : c.mode) !== ((u = (v = e.fiveState) == null ? void 0 : v.mode) != null ? u : "Panorama"))
|
|
96
|
+
const c = this.computeTagVisible(e, s);
|
|
97
|
+
return n && c.do_not_cache !== !0 && (n.visible = c.value, n.__debug_visible_reason__ = c), c.value;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
computeTagVisible(e, i) {
|
|
101
|
+
const s = h(h({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = s, n = [];
|
|
102
|
+
return (() => {
|
|
103
|
+
var a, f, u, p, v, I, y;
|
|
104
|
+
const o = (a = this.getTagConfig(e).visibleConfig) != null ? a : {};
|
|
105
|
+
if (typeof o == "function")
|
|
106
|
+
return {
|
|
107
|
+
value: o(this.five, { tag: e, distance: this.getDistance(e, s) }),
|
|
108
|
+
checkedList: n,
|
|
109
|
+
reason: "config function result"
|
|
110
|
+
};
|
|
111
|
+
if (o.keep === "hidden")
|
|
112
|
+
return { value: !1, checkedList: n, reason: "config.keep is hidden" };
|
|
113
|
+
if (o.keep === "visible")
|
|
114
|
+
return { value: !0, checkedList: n, reason: "config.keep is visible" };
|
|
115
|
+
if (o.visibleFiveMode !== void 0) {
|
|
116
|
+
const l = typeof o.visibleFiveMode == "function" ? o.visibleFiveMode(e) : o.visibleFiveMode;
|
|
117
|
+
let m = !1;
|
|
118
|
+
if (Array.isArray(l) ? m = l.includes(r) : l === "ModelLike" ? m = H(r) : l === "PanoramaLike" ? m = !x(r) : l === "all" ? m = !0 : typeof l == "string" && (m = l === r), m === !1)
|
|
112
119
|
return {
|
|
113
120
|
value: !1,
|
|
114
|
-
checkedList:
|
|
115
|
-
reason: "current mode is not
|
|
116
|
-
|
|
117
|
-
mode:
|
|
121
|
+
checkedList: n,
|
|
122
|
+
reason: "current mode is not included in visibleFiveMode",
|
|
123
|
+
visibleFiveMode: o.visibleFiveMode,
|
|
124
|
+
mode: r
|
|
118
125
|
};
|
|
119
|
-
|
|
120
|
-
return { value: !1, checkedList: s, reason: "followModelVisibility check failed" };
|
|
121
|
-
if (P(o) && i.visiblePanoIndex !== void 0 && i.visiblePanoIndex !== "all" && t !== void 0) {
|
|
122
|
-
if (s.push("visiblePanoIndex"), Array.isArray(i.visiblePanoIndex) && !i.visiblePanoIndex.includes(t))
|
|
123
|
-
return {
|
|
124
|
-
value: !1,
|
|
125
|
-
checkedList: s,
|
|
126
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${i.visiblePanoIndex}`
|
|
127
|
-
};
|
|
128
|
-
if (i.visiblePanoIndex === "current" && t !== ((x = e.fiveState) == null ? void 0 : x.panoIndex))
|
|
129
|
-
return {
|
|
130
|
-
value: !1,
|
|
131
|
-
checkedList: s,
|
|
132
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(h = e.fiveState) == null ? void 0 : h.panoIndex}`
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
if (i.visibleDistance !== void 0 && (s.push("visibleDistance"), i.visibleDistance !== "unLimited")) {
|
|
136
|
-
const l = this.getDistance(e, r);
|
|
137
|
-
if (y(l, i.visibleDistance) === !1)
|
|
138
|
-
return {
|
|
139
|
-
value: !1,
|
|
140
|
-
checkedList: s,
|
|
141
|
-
panoIndex: t,
|
|
142
|
-
visibleDistance: i.visibleDistance,
|
|
143
|
-
reason: `distance is not in visibleDistance. distance: ${l}, visibleDistance: ${i.visibleDistance.min} - ${i.visibleDistance.max}`
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
if (P(o) && i.angleRange && z(e)) {
|
|
147
|
-
s.push("angleRange");
|
|
148
|
-
const l = this.getAngle(e, t);
|
|
149
|
-
if (y(l, i.angleRange) === !1)
|
|
150
|
-
return { value: !1, checkedList: s, reason: `angle is not in angleRange. angle: ${l}, angleRange: ${i.angleRange}` };
|
|
151
|
-
}
|
|
152
|
-
if (i.intersectRaycaster !== !1 && (typeof i.intersectRaycaster != "object" || i.intersectRaycaster.enabled !== !1)) {
|
|
153
|
-
if (s.push("intersectRaycaster"), t === void 0)
|
|
154
|
-
return {
|
|
155
|
-
value: !1,
|
|
156
|
-
checkedList: s,
|
|
157
|
-
reason: `intersectRaycaster check failed: panoIndex is ${t}`
|
|
158
|
-
};
|
|
159
|
-
const l = this.getTagEnableByIntersect(e, t);
|
|
160
|
-
if (l.value === !1)
|
|
161
|
-
return Object.assign(l, { checkedList: s });
|
|
162
|
-
}
|
|
126
|
+
} else if (o.visibleFiveMode === void 0 && ((f = this.five.getCurrentState()) == null ? void 0 : f.mode) !== ((p = (u = e.fiveState) == null ? void 0 : u.mode) != null ? p : "Panorama"))
|
|
163
127
|
return {
|
|
164
|
-
value: !
|
|
165
|
-
checkedList:
|
|
166
|
-
reason: "
|
|
128
|
+
value: !1,
|
|
129
|
+
checkedList: n,
|
|
130
|
+
reason: "current mode is not equal to tag.fiveState.mode",
|
|
131
|
+
tagFiveMode: (v = e.fiveState) == null ? void 0 : v.mode,
|
|
132
|
+
mode: r
|
|
167
133
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
134
|
+
if (o.followModelVisibility === !0 && (r === "Floorplan" || r === "Mapview")) {
|
|
135
|
+
const b = this.getVisibleByFloorIndex(e), { value: l } = b, m = S(b, ["value"]);
|
|
136
|
+
if (l === !1)
|
|
137
|
+
return h({ value: !1, checkedList: n, reason: "followModelVisibility check failed" }, m);
|
|
138
|
+
}
|
|
139
|
+
if (x(r) && o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && t !== void 0) {
|
|
140
|
+
if (n.push("visiblePanoIndex"), Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(t))
|
|
141
|
+
return {
|
|
142
|
+
value: !1,
|
|
143
|
+
checkedList: n,
|
|
144
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${o.visiblePanoIndex}`
|
|
145
|
+
};
|
|
146
|
+
if (o.visiblePanoIndex === "current" && t !== ((I = e.fiveState) == null ? void 0 : I.panoIndex))
|
|
147
|
+
return {
|
|
148
|
+
value: !1,
|
|
149
|
+
checkedList: n,
|
|
150
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(y = e.fiveState) == null ? void 0 : y.panoIndex}`
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
if (o.visibleDistance !== void 0 && (n.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
|
|
154
|
+
const l = this.getDistance(e, s);
|
|
155
|
+
if (P(l, o.visibleDistance) === !1)
|
|
156
|
+
return {
|
|
157
|
+
value: !1,
|
|
158
|
+
checkedList: n,
|
|
159
|
+
panoIndex: t,
|
|
160
|
+
visibleDistance: o.visibleDistance,
|
|
161
|
+
reason: `distance is not in visibleDistance. distance: ${l}, visibleDistance: ${o.visibleDistance.min} - ${o.visibleDistance.max}`
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
if (x(r) && o.angleRange && Z(e)) {
|
|
165
|
+
n.push("angleRange");
|
|
166
|
+
const l = this.getAngle(e, t);
|
|
167
|
+
if (P(l, o.angleRange) === !1)
|
|
168
|
+
return { value: !1, checkedList: n, reason: `angle is not in angleRange. angle: ${l}, angleRange: ${o.angleRange}` };
|
|
169
|
+
}
|
|
170
|
+
if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
|
|
171
|
+
if (n.push("intersectRaycaster"), t === void 0)
|
|
172
|
+
return {
|
|
173
|
+
value: !1,
|
|
174
|
+
checkedList: n,
|
|
175
|
+
reason: `intersectRaycaster check failed: panoIndex is ${t}`
|
|
176
|
+
};
|
|
177
|
+
const l = this.getTagEnableByIntersect(e, t);
|
|
178
|
+
if (l.value === !1)
|
|
179
|
+
return Object.assign(l, { checkedList: n });
|
|
180
|
+
}
|
|
181
|
+
return {
|
|
182
|
+
value: !0,
|
|
183
|
+
checkedList: n,
|
|
184
|
+
reason: "all check passed"
|
|
185
|
+
};
|
|
186
|
+
})();
|
|
171
187
|
}
|
|
172
188
|
/**
|
|
173
189
|
* @description 获取是否展开
|
|
174
190
|
*/
|
|
175
|
-
|
|
191
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
192
|
+
getUnfoldedByPanoIndex(e, i) {
|
|
176
193
|
if (!this.getCurrentVisibleState(e))
|
|
177
194
|
return;
|
|
178
|
-
const t = this.getPanoIndexCache({ panoIndex:
|
|
195
|
+
const t = this.getPanoIndexCache({ panoIndex: i, id: e.id });
|
|
179
196
|
if (t.unfolded !== void 0)
|
|
180
197
|
return t.unfolded;
|
|
181
198
|
{
|
|
182
|
-
const
|
|
183
|
-
if (!
|
|
199
|
+
const r = this.getTagConfig(e).unfoldedConfig;
|
|
200
|
+
if (!r)
|
|
184
201
|
return;
|
|
185
|
-
const
|
|
186
|
-
if (typeof
|
|
187
|
-
return
|
|
188
|
-
if (
|
|
202
|
+
const n = (() => {
|
|
203
|
+
if (typeof r == "function")
|
|
204
|
+
return r(this.five, { tag: e, distance: this.getDistance(e, { panoIndex: i }) });
|
|
205
|
+
if (r.keep === "folded")
|
|
189
206
|
return !1;
|
|
190
|
-
if (
|
|
207
|
+
if (r.keep === "unfolded")
|
|
191
208
|
return !0;
|
|
192
|
-
if (
|
|
209
|
+
if (r.unfoldDistance && P(this.getDistance(e, { panoIndex: i }), r.unfoldDistance) === !1)
|
|
193
210
|
return !1;
|
|
194
211
|
})();
|
|
195
|
-
t.unfolded =
|
|
196
|
-
const
|
|
197
|
-
return
|
|
212
|
+
t.unfolded = n;
|
|
213
|
+
const c = this.getUnfoldedByCamera(e);
|
|
214
|
+
return c !== void 0 ? c : t.unfolded;
|
|
198
215
|
}
|
|
199
216
|
}
|
|
200
217
|
/**
|
|
201
218
|
* @description 获取是否展开
|
|
202
219
|
*/
|
|
220
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
203
221
|
getUnfoldedByCamera(e) {
|
|
204
222
|
return this.getCurrentVisibleState(e) ? (() => {
|
|
205
|
-
var
|
|
223
|
+
var r;
|
|
206
224
|
const t = this.getTagConfig(e).unfoldedConfig;
|
|
207
225
|
if (t) {
|
|
208
226
|
if (typeof t == "function")
|
|
@@ -214,25 +232,25 @@ class ti extends N {
|
|
|
214
232
|
if (t.autoUnfold === void 0 || t.autoUnfold === !1 || t.autoUnfold.enable === !1 || !t.autoUnfold.strategy)
|
|
215
233
|
return;
|
|
216
234
|
if (t.autoUnfold.strategy === "ScreenPostion") {
|
|
217
|
-
const
|
|
218
|
-
if (
|
|
235
|
+
const n = this.getTagProject(e);
|
|
236
|
+
if (n && P(n.x, t.autoUnfold.autoUnfoldProjectX) === !1)
|
|
219
237
|
return !1;
|
|
220
238
|
}
|
|
221
239
|
if (t.autoUnfold.strategy === "MinimumDistance") {
|
|
222
|
-
const
|
|
223
|
-
const
|
|
224
|
-
if (!
|
|
240
|
+
const g = this.filterPointTag.filter((a) => this.getCurrentVisibleState(a)).filter((a) => {
|
|
241
|
+
const f = this.getTagProject(a);
|
|
242
|
+
if (!f)
|
|
225
243
|
return !1;
|
|
226
|
-
const { x:
|
|
227
|
-
return !(Math.abs(
|
|
228
|
-
}).map((
|
|
229
|
-
var
|
|
230
|
-
return !(typeof
|
|
231
|
-
}).map((
|
|
232
|
-
const
|
|
233
|
-
return !(
|
|
234
|
-
}).sort((
|
|
235
|
-
if (
|
|
244
|
+
const { x: u, y: p, z: v } = f;
|
|
245
|
+
return !(Math.abs(v) > 1 || Math.abs(u) > 1 || Math.abs(p) > 1);
|
|
246
|
+
}).map((a) => ({ tag: a, id: a.id, tagConfig: this.getTagConfig(a).unfoldedConfig })).filter(({ tag: a, tagConfig: f }) => {
|
|
247
|
+
var u, p;
|
|
248
|
+
return !(typeof f == "function" || f.keep || f.autoUnfold === !1 || ((u = f.autoUnfold) == null ? void 0 : u.enable) === !1 || ((p = f.autoUnfold) == null ? void 0 : p.strategy) !== "MinimumDistance");
|
|
249
|
+
}).map((a) => R(h({}, a), { distance: this.getDistance(a.tag) })).filter(({ distance: a, tagConfig: f }) => {
|
|
250
|
+
const u = f.autoUnfold.distance;
|
|
251
|
+
return !(u && P(a, u) === !1);
|
|
252
|
+
}).sort((a, f) => a.distance - f.distance).findIndex((a) => a.id === e.id);
|
|
253
|
+
if (g === -1 || g <= ((r = t.autoUnfold.maxNumber) != null ? r : 1) - 1 === !1)
|
|
236
254
|
return !1;
|
|
237
255
|
}
|
|
238
256
|
return t.autoUnfold.strategy !== "FoldWhenMove";
|
|
@@ -240,26 +258,26 @@ class ti extends N {
|
|
|
240
258
|
})() : void 0;
|
|
241
259
|
}
|
|
242
260
|
setTagZIndex(e) {
|
|
243
|
-
return e.forEach((
|
|
244
|
-
|
|
261
|
+
return e.forEach((i) => {
|
|
262
|
+
i.zIndex = this.calculateTagZIndex(i);
|
|
245
263
|
});
|
|
246
264
|
}
|
|
247
265
|
calculateTagZIndex(e) {
|
|
248
|
-
const
|
|
249
|
-
return Math.round((1e4 - (
|
|
266
|
+
const i = this.getDistance(e);
|
|
267
|
+
return Math.round((1e4 - (i != null ? i : 0)) * 100);
|
|
250
268
|
}
|
|
251
269
|
setVisible(e) {
|
|
252
|
-
(e ?
|
|
253
|
-
const t = this.getVisible(
|
|
254
|
-
|
|
270
|
+
(e ? V(e) : this.tags).forEach((s) => {
|
|
271
|
+
const t = this.getVisible(s);
|
|
272
|
+
s.state && (s.state.visible = t);
|
|
255
273
|
});
|
|
256
274
|
}
|
|
257
275
|
setUnfoldedByPanoIndex() {
|
|
258
276
|
this.tags.forEach((e) => {
|
|
259
|
-
const
|
|
260
|
-
if (e.state && (
|
|
261
|
-
const
|
|
262
|
-
typeof
|
|
277
|
+
const i = this.getUnfoldedByPanoIndex(e);
|
|
278
|
+
if (e.state && (i !== void 0 && (e.state.unfolded = i), i && !e.state.visible)) {
|
|
279
|
+
const s = this.getTagConfig(e);
|
|
280
|
+
typeof s.unfoldedConfig == "object" && s.unfoldedConfig.autoFoldWhenHide !== !1 && (e.state.unfolded = !1);
|
|
263
281
|
}
|
|
264
282
|
});
|
|
265
283
|
}
|
|
@@ -267,63 +285,67 @@ class ti extends N {
|
|
|
267
285
|
* @description 一个点的标签
|
|
268
286
|
*/
|
|
269
287
|
getTagProject(e) {
|
|
270
|
-
const
|
|
271
|
-
if (!
|
|
288
|
+
const i = k(e);
|
|
289
|
+
if (!i)
|
|
272
290
|
return;
|
|
273
|
-
const { x:
|
|
274
|
-
if (!(
|
|
275
|
-
return { x:
|
|
291
|
+
const { x: s, y: t, z: r } = i.project(this.five.camera);
|
|
292
|
+
if (!(r > 1))
|
|
293
|
+
return { x: s, y: t, z: r };
|
|
276
294
|
}
|
|
277
295
|
/** 通过射线检测标签可用性 */
|
|
278
|
-
getTagEnableByIntersect(e,
|
|
279
|
-
var
|
|
280
|
-
const
|
|
281
|
-
if (
|
|
296
|
+
getTagEnableByIntersect(e, i) {
|
|
297
|
+
var o, a, f, u, p;
|
|
298
|
+
const s = A(A((o = this.getTagConfig(e).visibleConfig) != null ? o : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = x(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
|
|
299
|
+
if (r === void 0)
|
|
282
300
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
283
|
-
const
|
|
301
|
+
const n = V(
|
|
284
302
|
(() => {
|
|
285
303
|
var b;
|
|
286
|
-
const
|
|
287
|
-
return
|
|
304
|
+
const v = (b = s.checkPoints) != null ? b : "center";
|
|
305
|
+
return v === "center" ? k(e) : v === "corner" ? q(e) : Array.isArray(v) ? v : [];
|
|
288
306
|
})()
|
|
289
307
|
);
|
|
290
|
-
let
|
|
291
|
-
for (const
|
|
292
|
-
const b = new
|
|
293
|
-
|
|
294
|
-
const
|
|
295
|
-
if (!
|
|
308
|
+
let c = 0, g = 0;
|
|
309
|
+
for (const v of n) {
|
|
310
|
+
const b = new w.Vector3().subVectors(v, r).normalize();
|
|
311
|
+
T.set(r, b);
|
|
312
|
+
const I = r.distanceTo(v), [y] = this.five.model.intersectRaycaster(T), l = (() => {
|
|
313
|
+
if (!j(e))
|
|
296
314
|
return;
|
|
297
|
-
const
|
|
298
|
-
var
|
|
299
|
-
return (
|
|
300
|
-
}).filter(
|
|
301
|
-
return
|
|
302
|
-
})(),
|
|
303
|
-
Math.min((
|
|
304
|
-
const
|
|
305
|
-
if (
|
|
315
|
+
const $ = this.tags.filter(j).map((_) => {
|
|
316
|
+
var M;
|
|
317
|
+
return (M = _.model) == null ? void 0 : M.object;
|
|
318
|
+
}).filter(N), [E] = T.intersectObjects($, !0);
|
|
319
|
+
return E;
|
|
320
|
+
})(), m = (a = s.distanceAccuracy) != null ? a : 0.01;
|
|
321
|
+
Math.min((f = y == null ? void 0 : y.distance) != null ? f : 1 / 0, (u = l == null ? void 0 : l.distance) != null ? u : 1 / 0) + m >= I ? c++ : g++;
|
|
322
|
+
const B = (p = s.needPassed) != null ? p : 1;
|
|
323
|
+
if (c >= B)
|
|
306
324
|
return { value: !0 };
|
|
307
325
|
}
|
|
308
|
-
return
|
|
326
|
+
return g === 0 ? { value: !0 } : {
|
|
309
327
|
value: !1,
|
|
310
328
|
reason: {
|
|
311
329
|
type: "intersectRaycaster check failed",
|
|
312
|
-
passedCount:
|
|
313
|
-
needPassed:
|
|
330
|
+
passedCount: c,
|
|
331
|
+
needPassed: s.needPassed
|
|
314
332
|
}
|
|
315
333
|
};
|
|
316
334
|
}
|
|
317
335
|
/** 检测是否匹配当前楼层 */
|
|
318
336
|
getVisibleByFloorIndex(e) {
|
|
319
|
-
var
|
|
320
|
-
let
|
|
321
|
-
const
|
|
322
|
-
|
|
337
|
+
var r, n, c, g, o, a, f;
|
|
338
|
+
let i = 0;
|
|
339
|
+
const s = (r = e.fiveState) == null ? void 0 : r.panoIndex;
|
|
340
|
+
s !== void 0 ? i = (n = this.workUtil.getObserver(s)) == null ? void 0 : n.floorIndex : i = X(this.workUtil.work, (f = (a = (g = (c = e.model) == null ? void 0 : c.object) == null ? void 0 : g.position) != null ? a : (o = e.mediaPlane) == null ? void 0 : o.position) != null ? f : k(e));
|
|
323
341
|
const t = this.five.model.shownFloor;
|
|
324
|
-
return
|
|
342
|
+
return {
|
|
343
|
+
value: t === null || t === i,
|
|
344
|
+
currentFiveFloorIndex: t,
|
|
345
|
+
tagFloorIndex: i
|
|
346
|
+
};
|
|
325
347
|
}
|
|
326
348
|
}
|
|
327
349
|
export {
|
|
328
|
-
|
|
350
|
+
ni as TagComputer
|
|
329
351
|
};
|
|
@@ -113,10 +113,15 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
113
113
|
changeTagModel: (tag: TagInstance<'Model', 'Model'> | TagInstance<'MediaModel', 'Model'>, data: PartialObjectDeep<Tag<'MediaModel'>['data']>) => Promise<void>;
|
|
114
114
|
whyHide: (tagId: TagId) => {
|
|
115
115
|
reason: string;
|
|
116
|
-
|
|
116
|
+
info?: undefined;
|
|
117
117
|
} | {
|
|
118
118
|
reason: any;
|
|
119
|
-
|
|
119
|
+
info: {
|
|
120
|
+
tagInstance: TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", import("..").StickType>;
|
|
121
|
+
value: boolean;
|
|
122
|
+
reason?: any;
|
|
123
|
+
do_not_cache?: boolean;
|
|
124
|
+
};
|
|
120
125
|
};
|
|
121
126
|
/**
|
|
122
127
|
* @description 设置 visible 和 unfolded
|