@realsee/dnalogel 3.66.0-alpha.8 → 3.66.0-alpha.9
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/PanoTagPlugin/controller/Tag/BaseTag.d.ts +3 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +5 -0
- package/dist/index.cjs.js +26 -26
- package/dist/index.js +904 -871
- package/dist/index.umd.js +34 -34
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- package/docs/classes/PaintBrush.html +2 -2
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
- package/docs/classes/PanoTagPluginController.html +2 -2
- package/docs/classes/Sculpt.html +2 -2
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +2 -2
- package/docs/classes/Util.FivePuppet.html +2 -2
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LegacyPointHelper.html +2 -2
- package/docs/classes/Util.LightTag.html +2 -2
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointDomHelper.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +2 -2
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.LineMesh.html +2 -2
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +2 -2
- package/docs/enums/Rotation.html +2 -2
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/MeasurePlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -1
- package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -1
- package/docs/functions/Util.initialCSS3DRender.html +1 -1
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +4 -3
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagState.html +4 -0
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.LegacyMouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/SculptType.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +3 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MeasurePluginConfig.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +2 -2
- package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -1
- package/docs/types/ModelMakerPluginType.ServerItem.html +2 -2
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/SculptType.Theme.html +2 -2
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPlacement.html +2 -2
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoIntersection.html +1 -1
- package/docs/types/Util.AdherePoint.html +2 -2
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +251 -230
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +3 -0
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +244 -232
- package/libs/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +5 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -2,39 +2,39 @@ var G = Object.defineProperty, K = Object.defineProperties;
|
|
|
2
2
|
var Q = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var C = Object.getOwnPropertySymbols;
|
|
4
4
|
var D = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var k = Math.pow, M = (c,
|
|
6
|
-
for (var
|
|
7
|
-
D.call(
|
|
5
|
+
var k = Math.pow, M = (c, e, i) => e in c ? G(c, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : c[e] = i, m = (c, e) => {
|
|
6
|
+
for (var i in e || (e = {}))
|
|
7
|
+
D.call(e, i) && M(c, i, e[i]);
|
|
8
8
|
if (C)
|
|
9
|
-
for (var
|
|
10
|
-
j.call(
|
|
9
|
+
for (var i of C(e))
|
|
10
|
+
j.call(e, i) && M(c, i, e[i]);
|
|
11
11
|
return c;
|
|
12
|
-
}, w = (c,
|
|
13
|
-
var A = (c,
|
|
14
|
-
var
|
|
12
|
+
}, w = (c, e) => K(c, Q(e));
|
|
13
|
+
var A = (c, e) => {
|
|
14
|
+
var i = {};
|
|
15
15
|
for (var t in c)
|
|
16
|
-
D.call(c, t) &&
|
|
16
|
+
D.call(c, t) && e.indexOf(t) < 0 && (i[t] = c[t]);
|
|
17
17
|
if (c != null && C)
|
|
18
18
|
for (var t of C(c))
|
|
19
|
-
|
|
20
|
-
return
|
|
19
|
+
e.indexOf(t) < 0 && j.call(c, t) && (i[t] = c[t]);
|
|
20
|
+
return i;
|
|
21
21
|
};
|
|
22
|
-
var f = (c,
|
|
23
|
-
var P = (c,
|
|
24
|
-
var
|
|
22
|
+
var f = (c, e, i) => (M(c, typeof e != "symbol" ? e + "" : e, i), i);
|
|
23
|
+
var P = (c, e, i) => new Promise((t, r) => {
|
|
24
|
+
var s = (n) => {
|
|
25
25
|
try {
|
|
26
|
-
o(
|
|
26
|
+
o(i.next(n));
|
|
27
27
|
} catch (d) {
|
|
28
28
|
r(d);
|
|
29
29
|
}
|
|
30
|
-
}, l = (
|
|
30
|
+
}, l = (n) => {
|
|
31
31
|
try {
|
|
32
|
-
o(
|
|
32
|
+
o(i.throw(n));
|
|
33
33
|
} catch (d) {
|
|
34
34
|
r(d);
|
|
35
35
|
}
|
|
36
|
-
}, o = (
|
|
37
|
-
o((
|
|
36
|
+
}, o = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, l);
|
|
37
|
+
o((i = i.apply(c, e)).next());
|
|
38
38
|
});
|
|
39
39
|
import { Subscribe as Y } from "../../../shared-utils/Subscribe.js";
|
|
40
40
|
import { calculateTagConfig as U } from "../../utils/tag/calculateTagConfig.js";
|
|
@@ -53,7 +53,7 @@ import "@realsee/five/line";
|
|
|
53
53
|
import { isNil as R, notNil as L } from "../../../shared-utils/isNil.js";
|
|
54
54
|
import "../../../shared-utils/three/core/Five_LineMaterial2.js";
|
|
55
55
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
56
|
-
import { blink as
|
|
56
|
+
import { blink as se, reblink as ne } from "../../../shared-utils/three/blink.js";
|
|
57
57
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
58
58
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
59
59
|
import { vectorToCoordinates as oe } from "../../../shared-utils/vectorToCoordinate.js";
|
|
@@ -64,12 +64,12 @@ import "../../../shared-utils/five/FivePuppet.js";
|
|
|
64
64
|
import { objectAssignDeepExports as y } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
65
65
|
import { getTagPosition as $, getTagCenterPosition as z } from "../../utils/tagPosition.js";
|
|
66
66
|
import { checkRange as I } from "../../utils/checkRange.js";
|
|
67
|
-
import { isMediaPlaneTag as ae, isMediaModelTag as
|
|
67
|
+
import { isMediaPlaneTag as ae, isMediaModelTag as V } from "../../utils/tag/tagCheck.js";
|
|
68
68
|
import { getUrlExt as N } from "../../../shared-utils/url/getUrl.js";
|
|
69
69
|
import { getFloorIndex as fe } from "../../../shared-utils/five/getFloorIndex.js";
|
|
70
70
|
import { safeObj as J } from "../../../shared-utils/safeObj.js";
|
|
71
71
|
import { Cache as de } from "../../utils/Cache.js";
|
|
72
|
-
import { _raycaster as
|
|
72
|
+
import { _raycaster as S } from "../../../shared-utils/three/temp.js";
|
|
73
73
|
import { withResolvers as ce } from "../../../shared-utils/promise/withResolvers.js";
|
|
74
74
|
import "../../../shared-utils/typescript/entries.js";
|
|
75
75
|
import "../../utils/tag/adaptConfig.js";
|
|
@@ -121,7 +121,7 @@ import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
|
121
121
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
122
122
|
import "../../../shared-utils/formatRad.js";
|
|
123
123
|
class Ji {
|
|
124
|
-
constructor(
|
|
124
|
+
constructor(e, i) {
|
|
125
125
|
f(this, "plugin");
|
|
126
126
|
f(this, "id");
|
|
127
127
|
f(this, "contentType");
|
|
@@ -152,45 +152,45 @@ class Ji {
|
|
|
152
152
|
f(this, "entryFromModel");
|
|
153
153
|
f(this, "_updating", !1);
|
|
154
154
|
f(this, "ready", () => {
|
|
155
|
-
const { promise:
|
|
155
|
+
const { promise: e, resolve: i } = ce();
|
|
156
156
|
if (!this._updating)
|
|
157
|
-
|
|
157
|
+
i();
|
|
158
158
|
else {
|
|
159
159
|
const t = setInterval(() => {
|
|
160
|
-
this._updating || (clearInterval(t),
|
|
160
|
+
this._updating || (clearInterval(t), i());
|
|
161
161
|
}, 17);
|
|
162
162
|
setTimeout(() => {
|
|
163
|
-
clearInterval(t),
|
|
163
|
+
clearInterval(t), i();
|
|
164
164
|
}, 300);
|
|
165
165
|
}
|
|
166
|
-
return
|
|
166
|
+
return e;
|
|
167
167
|
});
|
|
168
|
-
var
|
|
169
|
-
this.plugin =
|
|
170
|
-
const t = ee(
|
|
171
|
-
|
|
172
|
-
const r = JSON.parse(JSON.stringify(
|
|
173
|
-
|
|
174
|
-
const l = U(
|
|
175
|
-
|
|
168
|
+
var n, d, h, u;
|
|
169
|
+
this.plugin = e;
|
|
170
|
+
const t = ee(i);
|
|
171
|
+
i.stickType = t;
|
|
172
|
+
const r = JSON.parse(JSON.stringify(i.data)), s = (n = i.initialConfig) != null ? n : i.config ? JSON.parse(JSON.stringify(i.config)) : {};
|
|
173
|
+
i.initialConfig = s;
|
|
174
|
+
const l = U(i, e.config), o = this.getConfig(i);
|
|
175
|
+
i.config = o, this.id = (d = i.id) != null ? d : le(), this.enabled = (h = i.enabled) != null ? h : !0, this.contentType = i.contentType, this.data = (u = o.initialData) != null && u.important ? y(i.data, r, o.initialData) : y(i.data, o.initialData, r), this.state = m({
|
|
176
176
|
visible: void 0,
|
|
177
177
|
unfolded: !this.can("fold")
|
|
178
|
-
}, o.initialState), this.originPosition =
|
|
179
|
-
const a =
|
|
178
|
+
}, o.initialState), this.originPosition = i.position, i.originPosition = this.originPosition, this.position = (() => {
|
|
179
|
+
const a = i.originPosition;
|
|
180
180
|
if (!a)
|
|
181
181
|
return;
|
|
182
|
-
const g =
|
|
182
|
+
const g = e.workUtil.transform;
|
|
183
183
|
return Array.isArray(a) && a.length === 4 ? a.map(O).map((p) => E(p, g).toArray()) : E(O(a), g).toArray();
|
|
184
|
-
})(), this.matrix =
|
|
185
|
-
const a = new B.Matrix4().fromArray(
|
|
186
|
-
return a.premultiply(
|
|
187
|
-
})() :
|
|
188
|
-
this[a] === void 0 &&
|
|
184
|
+
})(), this.matrix = i.matrix ? (() => {
|
|
185
|
+
const a = new B.Matrix4().fromArray(i.matrix);
|
|
186
|
+
return a.premultiply(e.workUtil.transform), a.elements;
|
|
187
|
+
})() : i.matrix, this.initialConfig = s, this.computedConfig = l, this.stickType = t, this.config = i.config, this.fiveState = i.fiveState, this.normal = i.normal, this.cache = new de(), this.hooks = new Y(), Object.keys(i).forEach((a) => {
|
|
188
|
+
this[a] === void 0 && i[a] !== void 0 && (this[a] = i[a]);
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
get visible() {
|
|
192
|
-
var
|
|
193
|
-
return ((
|
|
192
|
+
var e;
|
|
193
|
+
return ((e = this.temporaryState) == null ? void 0 : e.visible) !== !1 && this.state.visible !== !1 && this.enabled !== !1;
|
|
194
194
|
}
|
|
195
195
|
get five() {
|
|
196
196
|
return this.plugin.five;
|
|
@@ -202,13 +202,13 @@ class Ji {
|
|
|
202
202
|
return this.plugin.workUtil;
|
|
203
203
|
}
|
|
204
204
|
get centerPosition() {
|
|
205
|
-
const
|
|
206
|
-
return ie(...Array.isArray(
|
|
205
|
+
const e = $(this);
|
|
206
|
+
return ie(...Array.isArray(e) ? e : [e]);
|
|
207
207
|
}
|
|
208
208
|
get currentConfig() {
|
|
209
|
-
var r,
|
|
210
|
-
const
|
|
211
|
-
return (
|
|
209
|
+
var r, s;
|
|
210
|
+
const e = U(this, this.plugin.config, { useCache: !0 }), i = this.five.getCurrentState().mode, t = (r = e.configWithFiveMode) == null ? void 0 : r[i];
|
|
211
|
+
return (s = t != null ? t : e) != null ? s : {};
|
|
212
212
|
}
|
|
213
213
|
get currentVisible() {
|
|
214
214
|
return !(!this.plugin.state.enabled || !this.plugin.state.visible || !this.enabled || !this.state.visible);
|
|
@@ -225,36 +225,36 @@ class Ji {
|
|
|
225
225
|
/**
|
|
226
226
|
* @description 找到标签
|
|
227
227
|
*/
|
|
228
|
-
find(
|
|
228
|
+
find(e) {
|
|
229
229
|
return P(this, null, function* () {
|
|
230
230
|
var r;
|
|
231
|
-
const
|
|
231
|
+
const i = this.fiveState;
|
|
232
232
|
if (!this.fiveState)
|
|
233
233
|
return this;
|
|
234
|
-
const t = (r =
|
|
234
|
+
const t = (r = e == null ? void 0 : e.targetMode) != null ? r : this.five.state.mode;
|
|
235
235
|
if (t === "Panorama") {
|
|
236
|
-
const
|
|
237
|
-
if (R(
|
|
236
|
+
const s = i == null ? void 0 : i.panoIndex;
|
|
237
|
+
if (R(s))
|
|
238
238
|
return this;
|
|
239
|
-
const l = this.workUtil.getObserverPosition(
|
|
239
|
+
const l = this.workUtil.getObserverPosition(s), o = this.centerPosition.clone().sub(l).normalize();
|
|
240
240
|
this.five.setState(m({
|
|
241
241
|
mode: "Panorama",
|
|
242
242
|
workCode: this.workUtil.workCode,
|
|
243
|
-
panoIndex:
|
|
243
|
+
panoIndex: s
|
|
244
244
|
}, oe(o))), yield this.five.ready();
|
|
245
245
|
} else
|
|
246
|
-
t === "Mapview" && (yield re(this.five, this.centerPosition,
|
|
246
|
+
t === "Mapview" && (yield re(this.five, this.centerPosition, e == null ? void 0 : e.pointConfig));
|
|
247
247
|
return this;
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
250
|
/**
|
|
251
251
|
* @description 闪烁
|
|
252
252
|
*/
|
|
253
|
-
blink(
|
|
253
|
+
blink(e) {
|
|
254
254
|
return P(this, null, function* () {
|
|
255
|
-
var o,
|
|
255
|
+
var o, n, d, h;
|
|
256
256
|
yield this.ready();
|
|
257
|
-
const
|
|
257
|
+
const i = (o = this.enabled) != null ? o : !0, t = (n = this.state) == null ? void 0 : n.visible, r = i && t;
|
|
258
258
|
r === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((u) => P(this, null, function* () {
|
|
259
259
|
if (this.dom || this.contentDom) {
|
|
260
260
|
u();
|
|
@@ -272,29 +272,31 @@ class Ji {
|
|
|
272
272
|
this.mediaPlane && (u(), clearInterval(a));
|
|
273
273
|
}, 16.7);
|
|
274
274
|
}))), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
|
|
275
|
-
const
|
|
275
|
+
const s = (() => {
|
|
276
276
|
var a, g, p;
|
|
277
277
|
const u = [];
|
|
278
278
|
return u.push(this.dom), u.push((g = (a = this.tag3DContentSvelte) == null ? void 0 : a.css3DInstance) == null ? void 0 : g.container), u.push((p = this.model) == null ? void 0 : p.object), u.push(this.mediaPlane), u.filter(Boolean);
|
|
279
279
|
})();
|
|
280
|
-
if (!
|
|
280
|
+
if (!s.length) {
|
|
281
281
|
console.warn("tagDom is empty");
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
|
-
yield (r ?
|
|
284
|
+
yield (r ? se : ne)(s, m({
|
|
285
285
|
begin: () => {
|
|
286
286
|
r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
287
287
|
},
|
|
288
288
|
updateRender: () => {
|
|
289
289
|
this.five.needsRender = !0;
|
|
290
290
|
}
|
|
291
|
-
},
|
|
291
|
+
}, e)).finished, i === !1 && (this.enabled = !1, this.updateVisible()), t === !1 && this.updateVisible(), r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
/**
|
|
295
295
|
* @description 展开
|
|
296
296
|
*/
|
|
297
297
|
unfold() {
|
|
298
|
+
var e;
|
|
299
|
+
this.can("unfold") && (this.state.unfolded = !0, (e = this.config.popoverConfig) != null && e.enabled && (this.state.popoverVisible = !0), this.hooks.emit("unfolded"));
|
|
298
300
|
}
|
|
299
301
|
/**
|
|
300
302
|
* @description 展开自己,收起其他标签
|
|
@@ -305,6 +307,8 @@ class Ji {
|
|
|
305
307
|
* @description 收起
|
|
306
308
|
*/
|
|
307
309
|
fold() {
|
|
310
|
+
var e;
|
|
311
|
+
this.can("fold") && (this.state.unfolded = !1, (e = this.config.popoverConfig) != null && e.enabled && (this.state.popoverVisible = !1), this.hooks.emit("folded"));
|
|
308
312
|
}
|
|
309
313
|
/**
|
|
310
314
|
* @description 启用
|
|
@@ -321,43 +325,43 @@ class Ji {
|
|
|
321
325
|
/**
|
|
322
326
|
* @deprecated use `setData` instead
|
|
323
327
|
*/
|
|
324
|
-
changeData(
|
|
325
|
-
return this.setData(
|
|
328
|
+
changeData(e, i = !0) {
|
|
329
|
+
return this.setData(e, i);
|
|
326
330
|
}
|
|
327
331
|
/**
|
|
328
332
|
* @deprecated use `setPosition` instead
|
|
329
333
|
*/
|
|
330
|
-
changePosition(
|
|
331
|
-
return this.setPosition(
|
|
334
|
+
changePosition(e) {
|
|
335
|
+
return this.setPosition(e);
|
|
332
336
|
}
|
|
333
337
|
/**
|
|
334
338
|
* @description 修改标签数据
|
|
335
339
|
* @param deepMerge 是否深度合并 data,默认为 true
|
|
336
340
|
*/
|
|
337
|
-
setData(
|
|
338
|
-
|
|
341
|
+
setData(e, i = !0) {
|
|
342
|
+
i ? this.data = y(this.data, e) : this.data = m(m({}, this.data), e), this.hooks.emit("dataChanged", this.data);
|
|
339
343
|
}
|
|
340
344
|
/**
|
|
341
345
|
* @description 修改标签位置
|
|
342
346
|
*/
|
|
343
|
-
setPosition(
|
|
347
|
+
setPosition(e) {
|
|
344
348
|
throw new Error("Method not implemented.");
|
|
345
349
|
}
|
|
346
350
|
/**
|
|
347
351
|
* @description 设置标签实例的属性
|
|
348
352
|
* @param deepMerge 是否深度合并 data,默认为 true
|
|
349
353
|
*/
|
|
350
|
-
set(
|
|
351
|
-
this.plugin.tagsLengthWillUpdate = !0,
|
|
354
|
+
set(e, i = !0) {
|
|
355
|
+
this.plugin.tagsLengthWillUpdate = !0, i ? y(this, e) : Object.assign(this, e), this.cache.clear();
|
|
352
356
|
}
|
|
353
357
|
updateConfig() {
|
|
354
358
|
var t;
|
|
355
|
-
const
|
|
356
|
-
this.computedConfig =
|
|
357
|
-
const
|
|
358
|
-
if (this.config =
|
|
359
|
+
const e = this.getConfig(void 0, { useCache: !1 });
|
|
360
|
+
this.computedConfig = e;
|
|
361
|
+
const i = this.getConfig();
|
|
362
|
+
if (this.config = i, this.config.initialData) {
|
|
359
363
|
const r = JSON.parse(JSON.stringify(this.data));
|
|
360
|
-
this.data = (t =
|
|
364
|
+
this.data = (t = i.initialData) != null && t.important ? y(this.data, r, i.initialData) : y(this.data, i.initialData, r);
|
|
361
365
|
}
|
|
362
366
|
this.cache.clear();
|
|
363
367
|
}
|
|
@@ -365,78 +369,78 @@ class Ji {
|
|
|
365
369
|
this.enabled ? (this.state.visible = this.getVisible(), this.applyVisible()) : this.applyVisible(), this._updating = !1;
|
|
366
370
|
}
|
|
367
371
|
updateZIndex() {
|
|
368
|
-
const
|
|
369
|
-
this.zIndex = Math.round((1e4 - (
|
|
372
|
+
const e = this.getSquaredDistance();
|
|
373
|
+
this.zIndex = Math.round((1e4 - (e != null ? e : 0)) * 100);
|
|
370
374
|
}
|
|
371
|
-
getConfig(
|
|
372
|
-
var l, o,
|
|
373
|
-
const t = U(
|
|
374
|
-
return (
|
|
375
|
+
getConfig(e, i) {
|
|
376
|
+
var l, o, n;
|
|
377
|
+
const t = U(e != null ? e : this, this.plugin.config, { useCache: i == null ? void 0 : i.useCache }), r = (l = i == null ? void 0 : i.fiveMode) != null ? l : this.five.getCurrentState().mode, s = (o = t.configWithFiveMode) == null ? void 0 : o[r];
|
|
378
|
+
return (n = s != null ? s : t) != null ? n : {};
|
|
375
379
|
}
|
|
376
|
-
getDistance(
|
|
377
|
-
const t = m(m({}, this.five.getCurrentState()),
|
|
380
|
+
getDistance(e, i = 3) {
|
|
381
|
+
const t = m(m({}, this.five.getCurrentState()), e), { panoIndex: r, mode: s } = t, l = s === "Panorama" ? this.workUtil.getObserverPosition(r) : this.five.camera.position, o = this.centerPosition;
|
|
378
382
|
return !l || !o ? -1 : l.distanceTo(o);
|
|
379
383
|
}
|
|
380
384
|
/**
|
|
381
385
|
* @description 用于排序的距离,性能更好
|
|
382
386
|
*/
|
|
383
387
|
getSquaredDistance() {
|
|
384
|
-
const
|
|
385
|
-
let
|
|
386
|
-
return Array.isArray(this.position[0]) ?
|
|
388
|
+
const e = this.five.camera.position;
|
|
389
|
+
let i;
|
|
390
|
+
return Array.isArray(this.position[0]) ? i = this.position[0] : i = this.position, k(i[0] - e.x, 2) + k(i[1] - e.y, 2) + k(i[2] - e.z, 2);
|
|
387
391
|
}
|
|
388
|
-
getVisible(
|
|
392
|
+
getVisible(e) {
|
|
389
393
|
if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
|
|
390
394
|
return !1;
|
|
391
|
-
const
|
|
392
|
-
let t = this.cache.getVisible(this,
|
|
393
|
-
return R(t) && (t = this.computeVisible(
|
|
395
|
+
const i = m(m({}, this.five.getCurrentState()), e);
|
|
396
|
+
let t = this.cache.getVisible(this, i);
|
|
397
|
+
return R(t) && (t = this.computeVisible(i).value, this.cache.setVisible(this, i, t)), t;
|
|
394
398
|
}
|
|
395
|
-
getUnfoldedByPanoIndex(
|
|
399
|
+
getUnfoldedByPanoIndex(e) {
|
|
396
400
|
if (!this.currentVisible)
|
|
397
401
|
return;
|
|
398
|
-
const t = this.computeUnfoldedByPanoIndex(
|
|
402
|
+
const t = this.computeUnfoldedByPanoIndex(e);
|
|
399
403
|
return t && this.getUnfoldedByCamera();
|
|
400
404
|
}
|
|
401
405
|
getUnfoldedByCamera() {
|
|
402
406
|
var r;
|
|
403
|
-
const
|
|
404
|
-
if ((r =
|
|
405
|
-
const
|
|
406
|
-
if (!
|
|
407
|
+
const e = this.getConfig();
|
|
408
|
+
if ((r = e.popoverConfig) != null && r.enabled) {
|
|
409
|
+
const s = ["Link", "VRLink", "PanoLink", "Panorama"], l = e.unfoldedConfig;
|
|
410
|
+
if (!s.includes(this.contentType) && !(typeof l == "object" && l.keep === "unfolded"))
|
|
407
411
|
return !1;
|
|
408
412
|
}
|
|
409
413
|
return this.currentVisible ? this.computeUnfoldedByCamera() : void 0;
|
|
410
414
|
}
|
|
411
|
-
can(
|
|
412
|
-
const
|
|
413
|
-
if (!
|
|
415
|
+
can(e) {
|
|
416
|
+
const i = this.currentConfig;
|
|
417
|
+
if (!i || typeof i != "object")
|
|
414
418
|
return !0;
|
|
415
|
-
if (
|
|
416
|
-
if (!
|
|
419
|
+
if (e === "show" || e === "hide") {
|
|
420
|
+
if (!i.visibleConfig || typeof i.visibleConfig != "object")
|
|
417
421
|
return !0;
|
|
418
|
-
if (
|
|
422
|
+
if (e === "show" && i.visibleConfig.keep === "hidden" || e === "hide" && i.visibleConfig.keep === "visible")
|
|
419
423
|
return !1;
|
|
420
424
|
}
|
|
421
|
-
if (
|
|
422
|
-
if (!
|
|
425
|
+
if (e === "fold" || e === "unfold") {
|
|
426
|
+
if (!i.unfoldedConfig || typeof i.unfoldedConfig != "object")
|
|
423
427
|
return !0;
|
|
424
|
-
if (
|
|
428
|
+
if (e === "fold" && i.unfoldedConfig.keep === "unfolded" || e === "unfold" && i.unfoldedConfig.keep === "folded")
|
|
425
429
|
return !1;
|
|
426
430
|
}
|
|
427
431
|
return !0;
|
|
428
432
|
}
|
|
429
|
-
onClick(
|
|
433
|
+
onClick(e) {
|
|
430
434
|
}
|
|
431
435
|
computeRenderType() {
|
|
432
|
-
const
|
|
436
|
+
const e = (() => {
|
|
433
437
|
if (this.stickType === "3DPoint")
|
|
434
438
|
return "Dom";
|
|
435
|
-
const
|
|
436
|
-
if (!
|
|
439
|
+
const i = this.getConfig();
|
|
440
|
+
if (!i || typeof i != "object" || !i.renderType)
|
|
437
441
|
return;
|
|
438
442
|
const t = this.data.mediaData;
|
|
439
|
-
if (!(!t || t.length === 0) &&
|
|
443
|
+
if (!(!t || t.length === 0) && i.renderType === "Mesh") {
|
|
440
444
|
if (ae(this)) {
|
|
441
445
|
if (t.length === 1) {
|
|
442
446
|
if (t[0].type === "Video")
|
|
@@ -444,79 +448,79 @@ class Ji {
|
|
|
444
448
|
if (t[0].type === "Image")
|
|
445
449
|
return N(t[0].url) === "gif" ? "Dom" : "Mesh";
|
|
446
450
|
}
|
|
447
|
-
} else if (
|
|
451
|
+
} else if (V(this))
|
|
448
452
|
return t.length === 1 && t[0].type === "Image" ? N(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
|
|
449
453
|
}
|
|
450
454
|
})();
|
|
451
|
-
return
|
|
455
|
+
return e != null ? e : "Dom";
|
|
452
456
|
}
|
|
453
|
-
computeVisible(
|
|
454
|
-
const
|
|
457
|
+
computeVisible(e) {
|
|
458
|
+
const i = m(m({}, this.five.getCurrentState()), e), { panoIndex: t, mode: r } = i, s = [];
|
|
455
459
|
return (() => {
|
|
456
460
|
var d, u, a, g;
|
|
457
|
-
const
|
|
458
|
-
if (typeof
|
|
461
|
+
const n = (d = this.getConfig().visibleConfig) != null ? d : {};
|
|
462
|
+
if (typeof n == "function")
|
|
459
463
|
return {
|
|
460
|
-
value:
|
|
461
|
-
checkedList:
|
|
464
|
+
value: n(this.five, { tag: this, distance: this.getDistance(i, void 0) }),
|
|
465
|
+
checkedList: s,
|
|
462
466
|
reason: "config function result"
|
|
463
467
|
};
|
|
464
468
|
{
|
|
465
|
-
if (
|
|
466
|
-
return { value: !1, checkedList:
|
|
467
|
-
if (
|
|
468
|
-
return { value: !0, checkedList:
|
|
469
|
-
const p = this.computeVisibleByFiveMode(
|
|
469
|
+
if (n.keep === "hidden")
|
|
470
|
+
return { value: !1, checkedList: s, reason: "config.keep is hidden" };
|
|
471
|
+
if (n.keep === "visible")
|
|
472
|
+
return { value: !0, checkedList: s, reason: "config.keep is visible" };
|
|
473
|
+
const p = this.computeVisibleByFiveMode(n, r);
|
|
470
474
|
if ((p == null ? void 0 : p.value) === !1)
|
|
471
475
|
return p;
|
|
472
|
-
if (
|
|
476
|
+
if (n.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (r === "Floorplan" || r === "Mapview")) {
|
|
473
477
|
const h = this.computeVisibleByFloorIndex(), { value: v } = h, b = A(h, ["value"]);
|
|
474
478
|
if (v === !1)
|
|
475
|
-
return m({ value: !1, checkedList:
|
|
479
|
+
return m({ value: !1, checkedList: s, reason: "followModelVisibility check failed" }, b);
|
|
476
480
|
}
|
|
477
|
-
if (T(r) &&
|
|
478
|
-
if (
|
|
481
|
+
if (T(r) && n.visiblePanoIndex !== void 0 && n.visiblePanoIndex !== "all" && t !== void 0) {
|
|
482
|
+
if (s.push("visiblePanoIndex"), Array.isArray(n.visiblePanoIndex) && !n.visiblePanoIndex.includes(t))
|
|
479
483
|
return {
|
|
480
484
|
value: !1,
|
|
481
|
-
checkedList:
|
|
482
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${
|
|
485
|
+
checkedList: s,
|
|
486
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${n.visiblePanoIndex}`
|
|
483
487
|
};
|
|
484
|
-
if (
|
|
488
|
+
if (n.visiblePanoIndex === "current" && t !== ((u = this.fiveState) == null ? void 0 : u.panoIndex))
|
|
485
489
|
return {
|
|
486
490
|
value: !1,
|
|
487
|
-
checkedList:
|
|
491
|
+
checkedList: s,
|
|
488
492
|
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(a = this.fiveState) == null ? void 0 : a.panoIndex}`
|
|
489
493
|
};
|
|
490
494
|
}
|
|
491
|
-
if (
|
|
492
|
-
const v = this.getDistance(
|
|
493
|
-
if (I(v,
|
|
495
|
+
if (n.visibleDistance !== void 0 && (s.push("visibleDistance"), n.visibleDistance !== "unLimited")) {
|
|
496
|
+
const v = this.getDistance(i, 1);
|
|
497
|
+
if (I(v, n.visibleDistance) === !1)
|
|
494
498
|
return {
|
|
495
499
|
value: !1,
|
|
496
|
-
checkedList:
|
|
500
|
+
checkedList: s,
|
|
497
501
|
panoIndex: t,
|
|
498
|
-
visibleDistance:
|
|
499
|
-
reason: `distance is not in visibleDistance. distance: ${v}, visibleDistance: ${
|
|
502
|
+
visibleDistance: n.visibleDistance,
|
|
503
|
+
reason: `distance is not in visibleDistance. distance: ${v}, visibleDistance: ${n.visibleDistance.min} - ${n.visibleDistance.max}`
|
|
500
504
|
};
|
|
501
505
|
}
|
|
502
|
-
if (
|
|
503
|
-
if (
|
|
506
|
+
if (n.intersectRaycaster !== !1 && (typeof n.intersectRaycaster != "object" || n.intersectRaycaster.enabled !== !1)) {
|
|
507
|
+
if (s.push("intersectRaycaster"), t === void 0)
|
|
504
508
|
return {
|
|
505
509
|
value: !1,
|
|
506
|
-
checkedList:
|
|
510
|
+
checkedList: s,
|
|
507
511
|
reason: `intersectRaycaster check failed: panoIndex is ${t}`
|
|
508
512
|
};
|
|
509
513
|
if (t === ((g = this.fiveState) == null ? void 0 : g.panoIndex))
|
|
510
|
-
|
|
514
|
+
s.push("intersectCheckSkiped");
|
|
511
515
|
else {
|
|
512
516
|
const v = this.computeVisibleByIntersect(t);
|
|
513
517
|
if (v.value === !1)
|
|
514
|
-
return Object.assign(v, { checkedList:
|
|
518
|
+
return Object.assign(v, { checkedList: s });
|
|
515
519
|
}
|
|
516
520
|
}
|
|
517
521
|
return {
|
|
518
522
|
value: !0,
|
|
519
|
-
checkedList:
|
|
523
|
+
checkedList: s,
|
|
520
524
|
reason: "all check passed"
|
|
521
525
|
};
|
|
522
526
|
}
|
|
@@ -525,69 +529,69 @@ class Ji {
|
|
|
525
529
|
/**
|
|
526
530
|
* @description 计算标签可见性
|
|
527
531
|
*/
|
|
528
|
-
computeVisibleByFiveMode(
|
|
532
|
+
computeVisibleByFiveMode(e, i) {
|
|
529
533
|
const t = () => {
|
|
530
534
|
var l, o;
|
|
531
|
-
let
|
|
532
|
-
if (
|
|
533
|
-
return
|
|
534
|
-
if (
|
|
535
|
-
return x(
|
|
536
|
-
if (
|
|
537
|
-
return !T(
|
|
538
|
-
if (
|
|
535
|
+
let s = typeof e.visibleFiveMode == "function" ? e.visibleFiveMode(this) : e.visibleFiveMode;
|
|
536
|
+
if (s || (s = (o = (l = this.fiveState) == null ? void 0 : l.mode) != null ? o : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(s))
|
|
537
|
+
return s.includes(i);
|
|
538
|
+
if (s === "ModelLike")
|
|
539
|
+
return x(i);
|
|
540
|
+
if (s === "PanoramaLike")
|
|
541
|
+
return !T(i);
|
|
542
|
+
if (s === "all")
|
|
539
543
|
return !0;
|
|
540
|
-
if (typeof
|
|
541
|
-
return
|
|
544
|
+
if (typeof s == "string")
|
|
545
|
+
return s === i;
|
|
542
546
|
};
|
|
543
547
|
if ((() => {
|
|
544
548
|
var l;
|
|
545
|
-
const
|
|
546
|
-
if (L((l = this.fiveState) == null ? void 0 : l.panoIndex) &&
|
|
547
|
-
if (x(
|
|
549
|
+
const s = t();
|
|
550
|
+
if (L((l = this.fiveState) == null ? void 0 : l.panoIndex) && e.entryFromModel) {
|
|
551
|
+
if (x(i) && s ? this.entryFromModel = !1 : this.entryFromModel = !0, x(i))
|
|
548
552
|
return !0;
|
|
549
553
|
} else
|
|
550
554
|
this.entryFromModel = !1;
|
|
551
|
-
return
|
|
555
|
+
return s;
|
|
552
556
|
})() === !1)
|
|
553
557
|
return {
|
|
554
558
|
value: !1,
|
|
555
559
|
reason: "current mode is not included in visibleFiveMode",
|
|
556
|
-
visibleFiveMode:
|
|
557
|
-
mode:
|
|
560
|
+
visibleFiveMode: e.visibleFiveMode,
|
|
561
|
+
mode: i
|
|
558
562
|
};
|
|
559
563
|
}
|
|
560
564
|
/** 通过射线检测标签可用性 */
|
|
561
|
-
computeVisibleByIntersect(
|
|
562
|
-
var
|
|
563
|
-
const
|
|
565
|
+
computeVisibleByIntersect(e) {
|
|
566
|
+
var n, d, h, u;
|
|
567
|
+
const i = J(J((n = this.getConfig().visibleConfig) != null ? n : {}).intersectRaycaster), t = e != null ? e : this.five.getCurrentState().panoIndex, r = T(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
|
|
564
568
|
if (r === void 0)
|
|
565
569
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
566
|
-
const
|
|
570
|
+
const s = te(
|
|
567
571
|
(() => {
|
|
568
572
|
var g;
|
|
569
|
-
const a = (g =
|
|
573
|
+
const a = (g = i.checkPoints) != null ? g : "center";
|
|
570
574
|
return a === "center" ? z(this) : a === "corner" ? $(this) : Array.isArray(a) ? a : [];
|
|
571
575
|
})()
|
|
572
576
|
);
|
|
573
577
|
let l = 0, o = 0;
|
|
574
|
-
for (const a of
|
|
578
|
+
for (const a of s) {
|
|
575
579
|
const g = new B.Vector3().subVectors(a, r).normalize();
|
|
576
580
|
let p;
|
|
577
|
-
|
|
578
|
-
const [v] = this.fiveUtil.model.intersectRaycaster(
|
|
581
|
+
S.set(r, g);
|
|
582
|
+
const [v] = this.fiveUtil.model.intersectRaycaster(S);
|
|
579
583
|
p = v == null ? void 0 : v.distance;
|
|
580
584
|
const b = (() => {
|
|
581
|
-
if (!
|
|
585
|
+
if (!V(this))
|
|
582
586
|
return;
|
|
583
|
-
const H = this.plugin.tags.filter(
|
|
587
|
+
const H = this.plugin.tags.filter(V).map((Z) => {
|
|
584
588
|
var F;
|
|
585
589
|
return (F = Z.model) == null ? void 0 : F.object;
|
|
586
|
-
}).filter(L), [X] =
|
|
590
|
+
}).filter(L), [X] = S.intersectObjects(H, !0);
|
|
587
591
|
return X;
|
|
588
|
-
})(), _ = r.distanceTo(a), W = (d =
|
|
592
|
+
})(), _ = r.distanceTo(a), W = (d = i.distanceAccuracy) != null ? d : 0.01;
|
|
589
593
|
p = Math.min(p != null ? p : 1 / 0, (h = b == null ? void 0 : b.distance) != null ? h : 1 / 0), p + W >= _ ? l++ : o++;
|
|
590
|
-
const q = (u =
|
|
594
|
+
const q = (u = i.needPassed) != null ? u : 1;
|
|
591
595
|
if (l >= q)
|
|
592
596
|
return { value: !0 };
|
|
593
597
|
}
|
|
@@ -596,127 +600,135 @@ class Ji {
|
|
|
596
600
|
reason: {
|
|
597
601
|
type: "intersectRaycaster check failed",
|
|
598
602
|
passedCount: l,
|
|
599
|
-
needPassed:
|
|
603
|
+
needPassed: i.needPassed,
|
|
600
604
|
model: this.fiveUtil.model.name
|
|
601
605
|
}
|
|
602
606
|
};
|
|
603
607
|
}
|
|
604
608
|
computeVisibleByFloorIndex() {
|
|
605
|
-
var r,
|
|
606
|
-
let
|
|
607
|
-
const
|
|
608
|
-
|
|
609
|
+
var r, s, l, o, n, d, h;
|
|
610
|
+
let e = 0;
|
|
611
|
+
const i = (r = this.fiveState) == null ? void 0 : r.panoIndex;
|
|
612
|
+
i !== void 0 ? e = (s = this.workUtil.getObserver(i)) == null ? void 0 : s.floorIndex : e = fe(
|
|
609
613
|
this.workUtil.work,
|
|
610
|
-
(h = (d = (o = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : o.position) != null ? d : (
|
|
614
|
+
(h = (d = (o = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : o.position) != null ? d : (n = this.mediaPlane) == null ? void 0 : n.position) != null ? h : z(this)
|
|
611
615
|
);
|
|
612
616
|
const t = this.fiveUtil.model.shownFloor;
|
|
613
617
|
return {
|
|
614
|
-
value: t === null || t ===
|
|
618
|
+
value: t === null || t === e,
|
|
615
619
|
currentFiveFloorIndex: t,
|
|
616
|
-
tagFloorIndex:
|
|
620
|
+
tagFloorIndex: e
|
|
617
621
|
};
|
|
618
622
|
}
|
|
619
623
|
/**
|
|
620
624
|
* @description 获取是否展开
|
|
621
625
|
*/
|
|
622
|
-
computeUnfoldedByPanoIndex(
|
|
623
|
-
const
|
|
624
|
-
if (
|
|
625
|
-
if (typeof
|
|
626
|
-
return
|
|
627
|
-
if (
|
|
626
|
+
computeUnfoldedByPanoIndex(e) {
|
|
627
|
+
const i = this.getConfig().unfoldedConfig;
|
|
628
|
+
if (i) {
|
|
629
|
+
if (typeof i == "function")
|
|
630
|
+
return i(this.five, { tag: this, distance: this.getDistance({ panoIndex: e }) });
|
|
631
|
+
if (i.keep === "folded")
|
|
628
632
|
return !1;
|
|
629
|
-
if (
|
|
633
|
+
if (i.keep === "unfolded")
|
|
630
634
|
return !0;
|
|
631
|
-
if (
|
|
635
|
+
if (i.unfoldDistance && I(this.getDistance({ panoIndex: e }), i.unfoldDistance) === !1)
|
|
632
636
|
return !1;
|
|
633
637
|
}
|
|
634
638
|
}
|
|
635
639
|
computeUnfoldedByCamera() {
|
|
636
|
-
var
|
|
640
|
+
var i;
|
|
637
641
|
if (this.entryFromModel && x(this.five.state.mode))
|
|
638
642
|
return !1;
|
|
639
|
-
const
|
|
640
|
-
if (
|
|
641
|
-
if (typeof
|
|
642
|
-
return
|
|
643
|
-
if (
|
|
643
|
+
const e = this.getConfig().unfoldedConfig;
|
|
644
|
+
if (e) {
|
|
645
|
+
if (typeof e == "function")
|
|
646
|
+
return e(this.five, { tag: this, distance: this.getDistance() });
|
|
647
|
+
if (e.keep === "folded")
|
|
644
648
|
return !1;
|
|
645
|
-
if (
|
|
649
|
+
if (e.keep === "unfolded")
|
|
646
650
|
return !0;
|
|
647
|
-
if (
|
|
651
|
+
if (e.autoUnfold === void 0 || e.autoUnfold === !1 || e.autoUnfold.enable === !1 || !e.autoUnfold.strategy)
|
|
648
652
|
return;
|
|
649
|
-
if (
|
|
653
|
+
if (e.autoUnfold.strategy === "ScreenPostion") {
|
|
650
654
|
const t = this.computeTagProject();
|
|
651
|
-
if (t && I(t.x,
|
|
655
|
+
if (t && I(t.x, e.autoUnfold.autoUnfoldProjectX) === !1)
|
|
652
656
|
return !1;
|
|
653
657
|
}
|
|
654
|
-
if (
|
|
655
|
-
const
|
|
656
|
-
const
|
|
657
|
-
if (!
|
|
658
|
+
if (e.autoUnfold.strategy === "MinimumDistance") {
|
|
659
|
+
const s = this.plugin.filterPointTag.filter((o) => o.currentVisible).filter((o) => {
|
|
660
|
+
const n = this.computeTagProject();
|
|
661
|
+
if (!n)
|
|
658
662
|
return !1;
|
|
659
|
-
const { x: d, y: h, z: u } =
|
|
663
|
+
const { x: d, y: h, z: u } = n;
|
|
660
664
|
return !(Math.abs(u) > 1 || Math.abs(d) > 1 || Math.abs(h) > 1);
|
|
661
665
|
}).map((o) => ({ tag: o, id: o.id, tagConfig: o.getConfig().unfoldedConfig })).filter(({ tagConfig: o }) => {
|
|
662
|
-
var
|
|
663
|
-
return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((
|
|
664
|
-
}).map((o) => w(m({}, o), { distance: o.tag.getDistance() })).filter(({ distance: o, tagConfig:
|
|
665
|
-
const d =
|
|
666
|
+
var n, d;
|
|
667
|
+
return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((n = o.autoUnfold) == null ? void 0 : n.enable) === !1 || ((d = o.autoUnfold) == null ? void 0 : d.strategy) !== "MinimumDistance");
|
|
668
|
+
}).map((o) => w(m({}, o), { distance: o.tag.getDistance() })).filter(({ distance: o, tagConfig: n }) => {
|
|
669
|
+
const d = n.autoUnfold.distance;
|
|
666
670
|
return !(d && I(o, d) === !1);
|
|
667
|
-
}).sort((o,
|
|
668
|
-
if (
|
|
671
|
+
}).sort((o, n) => o.distance - n.distance).findIndex((o) => o.id === this.id);
|
|
672
|
+
if (s === -1 || s <= ((i = e.autoUnfold.maxNumber) != null ? i : 1) - 1 === !1)
|
|
669
673
|
return !1;
|
|
670
674
|
}
|
|
671
|
-
return
|
|
675
|
+
return e.autoUnfold.strategy !== "FoldWhenMove";
|
|
672
676
|
}
|
|
673
677
|
}
|
|
674
678
|
computeTagProject() {
|
|
675
|
-
const
|
|
676
|
-
if (!
|
|
679
|
+
const e = this.centerPosition;
|
|
680
|
+
if (!e)
|
|
677
681
|
return;
|
|
678
|
-
const { x:
|
|
682
|
+
const { x: i, y: t, z: r } = e.project(this.five.camera);
|
|
679
683
|
if (!(r > 1))
|
|
680
|
-
return { x:
|
|
684
|
+
return { x: i, y: t, z: r };
|
|
681
685
|
}
|
|
682
|
-
addObjectClickHandler(
|
|
683
|
-
if (!
|
|
686
|
+
addObjectClickHandler(e, i, t) {
|
|
687
|
+
if (!i || !this.plugin.domEvents)
|
|
684
688
|
return () => {
|
|
685
689
|
};
|
|
686
|
-
const r = () => !(!
|
|
690
|
+
const r = () => !(!e.currentVisible || e.loading), s = (l) => {
|
|
687
691
|
if (!r())
|
|
688
692
|
return !1;
|
|
689
693
|
t(l.origDomEvent);
|
|
690
694
|
};
|
|
691
|
-
return this.plugin.domEvents.addEventListener(
|
|
695
|
+
return this.plugin.domEvents.addEventListener(i, "click", s), () => {
|
|
692
696
|
var l;
|
|
693
|
-
(l = this.plugin.domEvents) == null || l.removeEventListener(
|
|
697
|
+
(l = this.plugin.domEvents) == null || l.removeEventListener(i, "click", s);
|
|
694
698
|
};
|
|
695
699
|
}
|
|
696
700
|
whyHide() {
|
|
697
|
-
var
|
|
701
|
+
var i;
|
|
698
702
|
if (!this.plugin.state.enabled)
|
|
699
703
|
return { reason: `plugin.state.enabled is ${this.plugin.state.enabled}` };
|
|
700
704
|
if (!this.plugin.state.visible)
|
|
701
705
|
return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
|
|
702
706
|
if (!this.enabled)
|
|
703
707
|
return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
|
|
704
|
-
const
|
|
708
|
+
const e = w(m({}, this.computeVisible()), {
|
|
705
709
|
tagInstance: this
|
|
706
710
|
});
|
|
707
|
-
return
|
|
711
|
+
return e.value !== this.state.visible ? { reason: "插件故障,请联系维护人员, err: 0", info: e } : this.state.visible ? { reason: "应该是能看见才对", info: e } : e.value === !0 ? { reason: "插件故障,请联系维护人员, err: 1", info: e } : { reason: (i = e.reason.type) != null ? i : e.reason, info: e };
|
|
708
712
|
}
|
|
709
713
|
/**
|
|
710
714
|
* @description 销毁并移除
|
|
711
715
|
*/
|
|
712
716
|
destroy() {
|
|
713
|
-
var
|
|
714
|
-
const
|
|
715
|
-
if (
|
|
717
|
+
var i, t;
|
|
718
|
+
const e = this.plugin.tags.findIndex((r) => r.id === this.id);
|
|
719
|
+
if (e === -1) {
|
|
716
720
|
console.warn(`Destroy failed: tag ${this.id} not found`);
|
|
717
721
|
return;
|
|
718
722
|
}
|
|
719
|
-
this.disable(), (t = (
|
|
723
|
+
this.disable(), (t = (i = this.tag3DContentSvelte) == null ? void 0 : i.dispose) == null || t.call(i), this.hooks.off(), this.cache.clear(), this.plugin.tags.splice(e, 1), this.plugin.tagsLengthWillUpdate = !0, this.plugin.hooks.emit("tagsLengthChange");
|
|
724
|
+
}
|
|
725
|
+
showPopover() {
|
|
726
|
+
var e;
|
|
727
|
+
(e = this.config.popoverConfig) != null && e.enabled && (this.state.popoverVisible = !0, this.hooks.emit("showPopover"));
|
|
728
|
+
}
|
|
729
|
+
hidePopover() {
|
|
730
|
+
var e;
|
|
731
|
+
(e = this.config.popoverConfig) != null && e.enabled && (this.state.popoverVisible = !1, this.hooks.emit("hidePopover"));
|
|
720
732
|
}
|
|
721
733
|
}
|
|
722
734
|
export {
|