@realsee/dnalogel 3.71.5-alpha.0 → 3.71.5
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 +0 -1
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -8
- package/dist/index.cjs.js +41 -41
- package/dist/index.js +1797 -1827
- package/dist/index.umd.js +46 -46
- 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/FloorplanGuidePlugin.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/SculptPluginForFive.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.blinkWithPreset.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.cleanup.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.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.replaceStaticPrefix.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/BoxAnimationConfig.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/SculptConfig.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconAnimationConfig.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagState.html +2 -2
- 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.ObjectInitialState.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 +2 -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/FloorplanGuidePluginParameterType.html +1 -1
- package/docs/types/FloorplanGuidePluginReturnType.html +1 -1
- 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/MeasureEndReason.html +1 -1
- package/docs/types/MeasurePluginConfig.html +2 -2
- 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/Util.SupportedTarget.html +2 -2
- package/docs/types/Util.Target.html +2 -2
- package/docs/types/Util.ThreeObject.html +2 -2
- 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.ANIME_PRESETS.html +2 -2
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +2 -2
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -2
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -2
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -2
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -2
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -2
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -2
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -2
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -2
- 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/controller/Tag/BaseTag.d.ts +0 -1
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +262 -292
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +1 -1
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -8
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
var K = Object.defineProperty, Q = Object.defineProperties;
|
|
2
2
|
var Y = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
|
+
var D = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var k = Math.pow, M = (u, e, i) => e in u ? K(u, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : u[e] = i, g = (u, e) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var i of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
7
|
+
D.call(e, i) && M(u, i, e[i]);
|
|
8
|
+
if (C)
|
|
9
|
+
for (var i of C(e))
|
|
10
|
+
j.call(e, i) && M(u, i, e[i]);
|
|
11
|
+
return u;
|
|
12
|
+
}, w = (u, e) => Q(u, Y(e));
|
|
13
|
+
var A = (u, e) => {
|
|
14
14
|
var i = {};
|
|
15
|
-
for (var t in
|
|
16
|
-
|
|
17
|
-
if (
|
|
18
|
-
for (var t of
|
|
19
|
-
e.indexOf(t) < 0 &&
|
|
15
|
+
for (var t in u)
|
|
16
|
+
D.call(u, t) && e.indexOf(t) < 0 && (i[t] = u[t]);
|
|
17
|
+
if (u != null && C)
|
|
18
|
+
for (var t of C(u))
|
|
19
|
+
e.indexOf(t) < 0 && j.call(u, t) && (i[t] = u[t]);
|
|
20
20
|
return i;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
22
|
+
var a = (u, e, i) => (M(u, typeof e != "symbol" ? e + "" : e, i), i);
|
|
23
|
+
var U = (u, e, i) => new Promise((t, r) => {
|
|
24
|
+
var n = (s) => {
|
|
25
25
|
try {
|
|
26
|
-
|
|
27
|
-
} catch (
|
|
28
|
-
|
|
26
|
+
o(i.next(s));
|
|
27
|
+
} catch (d) {
|
|
28
|
+
r(d);
|
|
29
29
|
}
|
|
30
|
-
},
|
|
30
|
+
}, l = (s) => {
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
} catch (
|
|
34
|
-
|
|
32
|
+
o(i.throw(s));
|
|
33
|
+
} catch (d) {
|
|
34
|
+
r(d);
|
|
35
35
|
}
|
|
36
|
-
},
|
|
37
|
-
|
|
36
|
+
}, o = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(n, l);
|
|
37
|
+
o((i = i.apply(u, e)).next());
|
|
38
38
|
});
|
|
39
39
|
import { Subscribe as ee } from "../../../shared-utils/Subscribe.js";
|
|
40
|
-
import { calculateTagConfig as
|
|
40
|
+
import { calculateTagConfig as T } from "../../utils/tag/calculateTagConfig.js";
|
|
41
41
|
import { getTagStickType as ie } from "../../utils/tag/format.js";
|
|
42
42
|
import "../../../shared-utils/tag.js";
|
|
43
|
-
import { isPanoramaLike as
|
|
44
|
-
import * as
|
|
43
|
+
import { isPanoramaLike as S, isModelLike as P } from "../../../shared-utils/five/mode.js";
|
|
44
|
+
import * as E from "three";
|
|
45
45
|
import "../../../vendor/hammerjs/hammer.js";
|
|
46
46
|
import "../../../shared-utils/three/PointSelector/index.js";
|
|
47
47
|
import { centerPoint as te } from "../../../shared-utils/three/centerPoint.js";
|
|
48
48
|
import "../../../shared-utils/three/CSS3DRenderer/index.js";
|
|
49
49
|
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
50
|
-
import { anyPositionToVector3 as
|
|
50
|
+
import { anyPositionToVector3 as O } from "../../../shared-utils/positionToVector3.js";
|
|
51
51
|
import { toArray as ne } from "../../../shared-utils/util.js";
|
|
52
52
|
import "@realsee/five/line";
|
|
53
|
-
import { isNil as
|
|
53
|
+
import { isNil as R, notNil as _ } 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
56
|
import { blink as se, reblink as oe } 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 re } from "../../../shared-utils/vectorToCoordinate.js";
|
|
60
|
-
import { transformPosition as
|
|
61
|
-
import { lookPoint as
|
|
62
|
-
import { uuid as
|
|
60
|
+
import { transformPosition as L } from "../../../shared-utils/five/transformPosition.js";
|
|
61
|
+
import { lookPoint as le } from "../../../shared-utils/five/lookPoint.js";
|
|
62
|
+
import { uuid as ae } from "../../../shared-utils/uuid.js";
|
|
63
63
|
import "../../../shared-utils/five/FivePuppet.js";
|
|
64
|
-
import { objectAssignDeepExports as
|
|
65
|
-
import { getTagPosition as
|
|
66
|
-
import { checkRange as
|
|
67
|
-
import { isMediaPlaneTag as
|
|
64
|
+
import { objectAssignDeepExports as y } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
65
|
+
import { getTagPosition as $, getTagCenterPosition as z } from "../../utils/tagPosition.js";
|
|
66
|
+
import { checkRange as I } from "../../utils/checkRange.js";
|
|
67
|
+
import { isMediaPlaneTag as N, isMediaModelTag as V } from "../../utils/tag/tagCheck.js";
|
|
68
68
|
import { getUrlExt as J } from "../../../shared-utils/url/getUrl.js";
|
|
69
69
|
import { getFloorIndex as fe } from "../../../shared-utils/five/getFloorIndex.js";
|
|
70
70
|
import { safeObj as H } from "../../../shared-utils/safeObj.js";
|
|
71
|
-
import { Cache as
|
|
72
|
-
import { _raycaster as
|
|
73
|
-
import { withResolvers as
|
|
71
|
+
import { Cache as de } from "../../utils/Cache.js";
|
|
72
|
+
import { _raycaster as B } from "../../../shared-utils/three/temp.js";
|
|
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";
|
|
76
76
|
import "../../typings/tag/TagConfig.js";
|
|
@@ -121,50 +121,49 @@ import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
121
121
|
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
122
122
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
123
123
|
import "../../../shared-utils/formatRad.js";
|
|
124
|
-
class
|
|
124
|
+
class Ji {
|
|
125
125
|
constructor(e, i) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
l(this, "computedConfig");
|
|
126
|
+
a(this, "plugin");
|
|
127
|
+
a(this, "id");
|
|
128
|
+
a(this, "contentType");
|
|
129
|
+
a(this, "stickType");
|
|
130
|
+
a(this, "enabled");
|
|
131
|
+
a(this, "config");
|
|
132
|
+
a(this, "data");
|
|
133
|
+
a(this, "state");
|
|
134
|
+
a(this, "temporaryState", { visible: !0 });
|
|
135
|
+
a(this, "originPosition");
|
|
136
|
+
a(this, "position");
|
|
137
|
+
a(this, "fiveState");
|
|
138
|
+
a(this, "model");
|
|
139
|
+
a(this, "matrix");
|
|
140
|
+
a(this, "screenPosition");
|
|
141
|
+
a(this, "normal");
|
|
142
|
+
a(this, "mediaPlane");
|
|
143
|
+
a(this, "hooks");
|
|
144
|
+
a(this, "zIndex");
|
|
145
|
+
a(this, "play");
|
|
146
|
+
a(this, "pause");
|
|
147
|
+
a(this, "tag3DContentSvelte");
|
|
148
|
+
a(this, "rectanglePlane");
|
|
149
|
+
a(this, "dom");
|
|
150
|
+
a(this, "contentDom");
|
|
151
|
+
a(this, "initialConfig");
|
|
152
|
+
a(this, "computedConfig");
|
|
154
153
|
/**
|
|
155
154
|
* 存储当前的闪烁动画实例
|
|
156
155
|
* @private
|
|
157
156
|
*/
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
157
|
+
a(this, "_currentBlinkInstance");
|
|
158
|
+
a(this, "cache");
|
|
159
|
+
a(this, "entryFromModel");
|
|
160
|
+
a(this, "_updating", !1);
|
|
162
161
|
/**
|
|
163
162
|
* 是否启用 hover 行为,默认 为config.popoverConfig.enabled
|
|
164
163
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
const { promise: e, resolve: i } =
|
|
164
|
+
a(this, "hoverEnabled");
|
|
165
|
+
a(this, "ready", () => {
|
|
166
|
+
const { promise: e, resolve: i } = ce();
|
|
168
167
|
if (!this._updating)
|
|
169
168
|
i();
|
|
170
169
|
else {
|
|
@@ -177,29 +176,29 @@ class Wi {
|
|
|
177
176
|
}
|
|
178
177
|
return e;
|
|
179
178
|
});
|
|
180
|
-
var
|
|
179
|
+
var d, p, v, m, c, h;
|
|
181
180
|
this.plugin = e;
|
|
182
181
|
const t = ie(i);
|
|
183
182
|
i.stickType = t;
|
|
184
|
-
const
|
|
185
|
-
i.initialConfig =
|
|
186
|
-
const
|
|
187
|
-
i.config =
|
|
188
|
-
let
|
|
189
|
-
typeof
|
|
183
|
+
const r = JSON.parse(JSON.stringify(i.data)), n = (d = i.initialConfig) != null ? d : i.config ? JSON.parse(JSON.stringify(i.config)) : {};
|
|
184
|
+
i.initialConfig = n;
|
|
185
|
+
const l = T(i, e.config), o = this.getConfig(i);
|
|
186
|
+
i.config = o, this.id = (p = i.id) != null ? p : ae(), this.enabled = (v = i.enabled) != null ? v : !0, this.contentType = i.contentType, this.hoverEnabled = (c = (m = o.popoverConfig) == null ? void 0 : m.enabled) != null ? c : !0, this.data = (h = o.initialData) != null && h.important ? y(i.data, r, o.initialData) : y(i.data, o.initialData, r);
|
|
187
|
+
let s;
|
|
188
|
+
typeof o.unfoldedConfig == "object" ? o.unfoldedConfig.keep === "unfolded" ? s = !0 : o.unfoldedConfig.keep === "folded" ? s = !1 : s = !this.can("fold") : s = !this.can("fold"), this.state = g({
|
|
190
189
|
visible: void 0,
|
|
191
|
-
unfolded:
|
|
192
|
-
},
|
|
193
|
-
const
|
|
194
|
-
if (!
|
|
190
|
+
unfolded: s
|
|
191
|
+
}, o.initialState), this.isPopoverConfigEnabled() && (this.state.unfolded = !1), this.originPosition = i.position, i.originPosition = this.originPosition, this.position = (() => {
|
|
192
|
+
const f = i.originPosition;
|
|
193
|
+
if (!f)
|
|
195
194
|
return;
|
|
196
|
-
const
|
|
197
|
-
return Array.isArray(
|
|
195
|
+
const b = e.workUtil.transform;
|
|
196
|
+
return Array.isArray(f) && f.length === 4 ? f.map(O).map((x) => L(x, b).toArray()) : L(O(f), b).toArray();
|
|
198
197
|
})(), this.matrix = i.matrix ? (() => {
|
|
199
|
-
const
|
|
200
|
-
return
|
|
201
|
-
})() : i.matrix, this.initialConfig =
|
|
202
|
-
this[
|
|
198
|
+
const f = new E.Matrix4().fromArray(i.matrix);
|
|
199
|
+
return f.premultiply(e.workUtil.transform), f.elements;
|
|
200
|
+
})() : i.matrix, this.initialConfig = n, 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 ee(), Object.keys(i).forEach((f) => {
|
|
201
|
+
this[f] === void 0 && i[f] !== void 0 && (this[f] = i[f]);
|
|
203
202
|
});
|
|
204
203
|
}
|
|
205
204
|
get visible() {
|
|
@@ -216,13 +215,13 @@ class Wi {
|
|
|
216
215
|
return this.plugin.workUtil;
|
|
217
216
|
}
|
|
218
217
|
get centerPosition() {
|
|
219
|
-
const e =
|
|
218
|
+
const e = $(this);
|
|
220
219
|
return te(...Array.isArray(e) ? e : [e]);
|
|
221
220
|
}
|
|
222
221
|
get currentConfig() {
|
|
223
|
-
var
|
|
224
|
-
const e =
|
|
225
|
-
return (
|
|
222
|
+
var r, n;
|
|
223
|
+
const e = T(this, this.plugin.config, { useCache: !0 }), i = this.five.getCurrentState().mode, t = (r = e.configWithFiveMode) == null ? void 0 : r[i];
|
|
224
|
+
return (n = t != null ? t : e) != null ? n : {};
|
|
226
225
|
}
|
|
227
226
|
get currentVisible() {
|
|
228
227
|
return !(!this.plugin.state.enabled || !this.plugin.state.visible || !this.enabled || !this.state.visible);
|
|
@@ -240,24 +239,24 @@ class Wi {
|
|
|
240
239
|
* @description 找到标签
|
|
241
240
|
*/
|
|
242
241
|
find(e) {
|
|
243
|
-
return
|
|
244
|
-
var
|
|
242
|
+
return U(this, null, function* () {
|
|
243
|
+
var r;
|
|
245
244
|
const i = this.fiveState;
|
|
246
245
|
if (!this.fiveState)
|
|
247
246
|
return this;
|
|
248
|
-
const t = (
|
|
247
|
+
const t = (r = e == null ? void 0 : e.targetMode) != null ? r : this.five.state.mode;
|
|
249
248
|
if (t === "Panorama") {
|
|
250
|
-
const
|
|
251
|
-
if (
|
|
249
|
+
const n = i == null ? void 0 : i.panoIndex;
|
|
250
|
+
if (R(n))
|
|
252
251
|
return this;
|
|
253
|
-
const
|
|
254
|
-
this.five.setState(
|
|
252
|
+
const l = this.workUtil.getObserverPosition(n), o = this.centerPosition.clone().sub(l).normalize();
|
|
253
|
+
this.five.setState(g({
|
|
255
254
|
mode: "Panorama",
|
|
256
255
|
workCode: this.workUtil.workCode,
|
|
257
|
-
panoIndex:
|
|
258
|
-
}, re(
|
|
256
|
+
panoIndex: n
|
|
257
|
+
}, re(o))), yield this.five.ready();
|
|
259
258
|
} else
|
|
260
|
-
t === "Mapview" && (yield
|
|
259
|
+
t === "Mapview" && (yield le(this.five, this.centerPosition, e == null ? void 0 : e.pointConfig));
|
|
261
260
|
return this;
|
|
262
261
|
});
|
|
263
262
|
}
|
|
@@ -265,40 +264,40 @@ class Wi {
|
|
|
265
264
|
* @description 闪烁
|
|
266
265
|
*/
|
|
267
266
|
blink(e) {
|
|
268
|
-
return
|
|
269
|
-
var
|
|
270
|
-
yield this.ready(), this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((
|
|
271
|
-
const i = (
|
|
272
|
-
|
|
267
|
+
return U(this, null, function* () {
|
|
268
|
+
var o, s, d, p, v, m;
|
|
269
|
+
yield this.ready(), this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((s = (o = this._currentBlinkInstance).preComplete) == null || s.call(o), this._currentBlinkInstance = void 0);
|
|
270
|
+
const i = (d = this.enabled) != null ? d : !0, t = (p = this.state) == null ? void 0 : p.visible, r = i && t;
|
|
271
|
+
r === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((c) => {
|
|
273
272
|
if (this.dom || this.contentDom) {
|
|
274
|
-
|
|
273
|
+
c();
|
|
275
274
|
return;
|
|
276
275
|
}
|
|
277
276
|
const h = setInterval(() => {
|
|
278
|
-
(this.dom || this.contentDom) && (
|
|
277
|
+
(this.dom || this.contentDom) && (c(), clearInterval(h));
|
|
279
278
|
}, 16.7);
|
|
280
|
-
}) : this.stickType === "Model" && !((
|
|
279
|
+
}) : this.stickType === "Model" && !((v = this.model) != null && v.object) ? yield (m = this.model) == null ? void 0 : m.promise : this.stickType === "Plane" && (yield new Promise((c) => {
|
|
281
280
|
if (this.mediaPlane) {
|
|
282
|
-
|
|
281
|
+
c();
|
|
283
282
|
return;
|
|
284
283
|
}
|
|
285
284
|
const h = setInterval(() => {
|
|
286
|
-
this.mediaPlane && (
|
|
285
|
+
this.mediaPlane && (c(), clearInterval(h));
|
|
287
286
|
}, 16.7);
|
|
288
287
|
})), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
|
|
289
|
-
const
|
|
290
|
-
var h,
|
|
291
|
-
const
|
|
292
|
-
return
|
|
288
|
+
const n = (() => {
|
|
289
|
+
var h, f, b;
|
|
290
|
+
const c = [];
|
|
291
|
+
return c.push(this.dom), c.push((f = (h = this.tag3DContentSvelte) == null ? void 0 : h.css3DInstance) == null ? void 0 : f.container), c.push((b = this.model) == null ? void 0 : b.object), c.push(this.mediaPlane), c.filter(Boolean);
|
|
293
292
|
})();
|
|
294
|
-
if (!
|
|
293
|
+
if (!n.length) {
|
|
295
294
|
console.warn("tagDom is empty");
|
|
296
295
|
return;
|
|
297
296
|
}
|
|
298
|
-
const
|
|
299
|
-
this._currentBlinkInstance =
|
|
297
|
+
const l = r ? se : oe;
|
|
298
|
+
this._currentBlinkInstance = l(n, g({
|
|
300
299
|
begin: () => {
|
|
301
|
-
|
|
300
|
+
r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
302
301
|
},
|
|
303
302
|
updateRender: () => {
|
|
304
303
|
this.five.needsRender = !0;
|
|
@@ -306,12 +305,12 @@ class Wi {
|
|
|
306
305
|
}, e));
|
|
307
306
|
try {
|
|
308
307
|
yield this._currentBlinkInstance.finished;
|
|
309
|
-
} catch (
|
|
310
|
-
console.debug("Blink animation interrupted:",
|
|
308
|
+
} catch (c) {
|
|
309
|
+
console.debug("Blink animation interrupted:", c);
|
|
311
310
|
} finally {
|
|
312
311
|
this._currentBlinkInstance = void 0;
|
|
313
312
|
}
|
|
314
|
-
i === !1 && (this.enabled = !1, this.updateVisible()), t === !1 && this.updateVisible(),
|
|
313
|
+
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 = ""));
|
|
315
314
|
});
|
|
316
315
|
}
|
|
317
316
|
/**
|
|
@@ -359,7 +358,7 @@ class Wi {
|
|
|
359
358
|
* @param deepMerge 是否深度合并 data,默认为 true
|
|
360
359
|
*/
|
|
361
360
|
setData(e, i = !0) {
|
|
362
|
-
i ? this.data =
|
|
361
|
+
i ? this.data = y(this.data, e) : this.data = g(g({}, this.data), e), this.hooks.emit("dataChanged", this.data);
|
|
363
362
|
}
|
|
364
363
|
/**
|
|
365
364
|
* @description 修改标签位置
|
|
@@ -372,7 +371,7 @@ class Wi {
|
|
|
372
371
|
* @param deepMerge 是否深度合并 data,默认为 true
|
|
373
372
|
*/
|
|
374
373
|
set(e, i = !0) {
|
|
375
|
-
this.plugin.tagsLengthWillUpdate = !0, i ?
|
|
374
|
+
this.plugin.tagsLengthWillUpdate = !0, i ? y(this, e) : Object.assign(this, e), this.cache.clear();
|
|
376
375
|
}
|
|
377
376
|
updateConfig() {
|
|
378
377
|
var t;
|
|
@@ -380,8 +379,8 @@ class Wi {
|
|
|
380
379
|
this.computedConfig = e;
|
|
381
380
|
const i = this.getConfig();
|
|
382
381
|
if (this.config = i, this.config.initialData) {
|
|
383
|
-
const
|
|
384
|
-
this.data = (t = i.initialData) != null && t.important ?
|
|
382
|
+
const r = JSON.parse(JSON.stringify(this.data));
|
|
383
|
+
this.data = (t = i.initialData) != null && t.important ? y(this.data, r, i.initialData) : y(this.data, i.initialData, r);
|
|
385
384
|
}
|
|
386
385
|
this.cache.clear();
|
|
387
386
|
}
|
|
@@ -393,13 +392,13 @@ class Wi {
|
|
|
393
392
|
this.zIndex = Math.round((1e4 - (e != null ? e : 0)) * 100);
|
|
394
393
|
}
|
|
395
394
|
getConfig(e, i) {
|
|
396
|
-
var
|
|
397
|
-
const t =
|
|
398
|
-
return (
|
|
395
|
+
var l, o, s;
|
|
396
|
+
const t = T(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, n = (o = t.configWithFiveMode) == null ? void 0 : o[r];
|
|
397
|
+
return (s = n != null ? n : t) != null ? s : {};
|
|
399
398
|
}
|
|
400
399
|
getDistance(e, i = 3) {
|
|
401
|
-
const t =
|
|
402
|
-
return !
|
|
400
|
+
const t = g(g({}, this.five.getCurrentState()), e), { panoIndex: r, mode: n } = t, l = n === "Panorama" ? this.workUtil.getObserverPosition(r) : this.five.camera.position, o = this.centerPosition;
|
|
401
|
+
return !l || !o ? -1 : l.distanceTo(o);
|
|
403
402
|
}
|
|
404
403
|
/**
|
|
405
404
|
* @description 用于排序的距离,性能更好
|
|
@@ -407,14 +406,14 @@ class Wi {
|
|
|
407
406
|
getSquaredDistance() {
|
|
408
407
|
const e = this.five.camera.position;
|
|
409
408
|
let i;
|
|
410
|
-
return Array.isArray(this.position[0]) ? i = this.position[0] : i = this.position,
|
|
409
|
+
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);
|
|
411
410
|
}
|
|
412
411
|
getVisible(e) {
|
|
413
412
|
if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
|
|
414
413
|
return !1;
|
|
415
|
-
const i =
|
|
414
|
+
const i = g(g({}, this.five.getCurrentState()), e);
|
|
416
415
|
let t = this.cache.getVisible(this, i);
|
|
417
|
-
return
|
|
416
|
+
return R(t) && (t = this.computeVisible(i).value, this.cache.setVisible(this, i, t)), t;
|
|
418
417
|
}
|
|
419
418
|
getUnfoldedByPanoIndex(e) {
|
|
420
419
|
if (!this.currentVisible)
|
|
@@ -426,8 +425,8 @@ class Wi {
|
|
|
426
425
|
return this.currentVisible ? this.computeUnfoldedByCamera() : void 0;
|
|
427
426
|
}
|
|
428
427
|
can(e) {
|
|
429
|
-
var t,
|
|
430
|
-
if ((e === "fold" || e === "unfold") && ((
|
|
428
|
+
var t, r;
|
|
429
|
+
if ((e === "fold" || e === "unfold") && ((r = (t = this.currentConfig) == null ? void 0 : t.popoverConfig) == null ? void 0 : r.enabled) === !0)
|
|
431
430
|
return !1;
|
|
432
431
|
const i = this.currentConfig;
|
|
433
432
|
if (!i || typeof i != "object")
|
|
@@ -456,89 +455,89 @@ class Wi {
|
|
|
456
455
|
if (!i || typeof i != "object" || !i.renderType)
|
|
457
456
|
return;
|
|
458
457
|
const t = this.data.mediaData;
|
|
459
|
-
if ((!t || t.length === 0) &&
|
|
458
|
+
if ((!t || t.length === 0) && N(this))
|
|
460
459
|
return i.renderType;
|
|
461
460
|
if (i.renderType === "Mesh") {
|
|
462
|
-
if (
|
|
461
|
+
if (N(this)) {
|
|
463
462
|
if (t.length === 1) {
|
|
464
463
|
if (t[0].type === "Video")
|
|
465
464
|
return navigator.userAgent.toLowerCase().indexOf("firefox") > -1 && navigator.userAgent.toLowerCase().indexOf("mobile") > -1 ? "Dom" : "Mesh";
|
|
466
465
|
if (t[0].type === "Image")
|
|
467
466
|
return J(t[0].url) === "gif" ? "Dom" : "Mesh";
|
|
468
467
|
}
|
|
469
|
-
} else if (
|
|
468
|
+
} else if (V(this))
|
|
470
469
|
return t.length === 1 && t[0].type === "Image" ? J(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
|
|
471
470
|
}
|
|
472
471
|
})();
|
|
473
472
|
return e != null ? e : "Dom";
|
|
474
473
|
}
|
|
475
474
|
computeVisible(e) {
|
|
476
|
-
const i =
|
|
475
|
+
const i = g(g({}, this.five.getCurrentState()), e), { panoIndex: t, mode: r } = i, n = [];
|
|
477
476
|
return (() => {
|
|
478
|
-
var
|
|
479
|
-
const
|
|
480
|
-
if (typeof
|
|
477
|
+
var d, v, m, c;
|
|
478
|
+
const s = (d = this.getConfig().visibleConfig) != null ? d : {};
|
|
479
|
+
if (typeof s == "function")
|
|
481
480
|
return {
|
|
482
|
-
value:
|
|
483
|
-
checkedList:
|
|
481
|
+
value: s(this.five, { tag: this, distance: this.getDistance(i, void 0) }),
|
|
482
|
+
checkedList: n,
|
|
484
483
|
reason: "config function result"
|
|
485
484
|
};
|
|
486
485
|
{
|
|
487
|
-
if (
|
|
488
|
-
return { value: !1, checkedList:
|
|
489
|
-
if (
|
|
490
|
-
return { value: !0, checkedList:
|
|
491
|
-
const h = this.computeVisibleByFiveMode(
|
|
486
|
+
if (s.keep === "hidden")
|
|
487
|
+
return { value: !1, checkedList: n, reason: "config.keep is hidden" };
|
|
488
|
+
if (s.keep === "visible")
|
|
489
|
+
return { value: !0, checkedList: n, reason: "config.keep is visible" };
|
|
490
|
+
const h = this.computeVisibleByFiveMode(s, r);
|
|
492
491
|
if ((h == null ? void 0 : h.value) === !1)
|
|
493
492
|
return h;
|
|
494
|
-
if (
|
|
495
|
-
const
|
|
496
|
-
if (
|
|
497
|
-
return
|
|
493
|
+
if (s.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (r === "Floorplan" || r === "Mapview")) {
|
|
494
|
+
const p = this.computeVisibleByFloorIndex(), { value: f } = p, b = A(p, ["value"]);
|
|
495
|
+
if (f === !1)
|
|
496
|
+
return g({ value: !1, checkedList: n, reason: "followModelVisibility check failed" }, b);
|
|
498
497
|
}
|
|
499
|
-
if (
|
|
500
|
-
if (
|
|
498
|
+
if (S(r) && s.visiblePanoIndex !== void 0 && s.visiblePanoIndex !== "all" && t !== void 0) {
|
|
499
|
+
if (n.push("visiblePanoIndex"), Array.isArray(s.visiblePanoIndex) && !s.visiblePanoIndex.includes(t))
|
|
501
500
|
return {
|
|
502
501
|
value: !1,
|
|
503
|
-
checkedList:
|
|
504
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${
|
|
502
|
+
checkedList: n,
|
|
503
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${s.visiblePanoIndex}`
|
|
505
504
|
};
|
|
506
|
-
if (
|
|
505
|
+
if (s.visiblePanoIndex === "current" && t !== ((v = this.fiveState) == null ? void 0 : v.panoIndex))
|
|
507
506
|
return {
|
|
508
507
|
value: !1,
|
|
509
|
-
checkedList:
|
|
510
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(
|
|
508
|
+
checkedList: n,
|
|
509
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(m = this.fiveState) == null ? void 0 : m.panoIndex}`
|
|
511
510
|
};
|
|
512
511
|
}
|
|
513
|
-
if (
|
|
514
|
-
const
|
|
515
|
-
if (
|
|
512
|
+
if (s.visibleDistance !== void 0 && (n.push("visibleDistance"), s.visibleDistance !== "unLimited")) {
|
|
513
|
+
const f = this.getDistance(i, 1);
|
|
514
|
+
if (I(f, s.visibleDistance) === !1)
|
|
516
515
|
return {
|
|
517
516
|
value: !1,
|
|
518
|
-
checkedList:
|
|
517
|
+
checkedList: n,
|
|
519
518
|
panoIndex: t,
|
|
520
|
-
visibleDistance:
|
|
521
|
-
reason: `distance is not in visibleDistance. distance: ${
|
|
519
|
+
visibleDistance: s.visibleDistance,
|
|
520
|
+
reason: `distance is not in visibleDistance. distance: ${f}, visibleDistance: ${s.visibleDistance.min} - ${s.visibleDistance.max}`
|
|
522
521
|
};
|
|
523
522
|
}
|
|
524
|
-
if (
|
|
525
|
-
if (
|
|
523
|
+
if (s.intersectRaycaster !== !1 && (typeof s.intersectRaycaster != "object" || s.intersectRaycaster.enabled !== !1)) {
|
|
524
|
+
if (n.push("intersectRaycaster"), t === void 0)
|
|
526
525
|
return {
|
|
527
526
|
value: !1,
|
|
528
|
-
checkedList:
|
|
527
|
+
checkedList: n,
|
|
529
528
|
reason: `intersectRaycaster check failed: panoIndex is ${t}`
|
|
530
529
|
};
|
|
531
|
-
if (t === ((
|
|
532
|
-
|
|
530
|
+
if (t === ((c = this.fiveState) == null ? void 0 : c.panoIndex))
|
|
531
|
+
n.push("intersectCheckSkiped");
|
|
533
532
|
else {
|
|
534
|
-
const
|
|
535
|
-
if (
|
|
536
|
-
return Object.assign(
|
|
533
|
+
const f = this.computeVisibleByIntersect(t);
|
|
534
|
+
if (f.value === !1)
|
|
535
|
+
return Object.assign(f, { checkedList: n });
|
|
537
536
|
}
|
|
538
537
|
}
|
|
539
538
|
return {
|
|
540
539
|
value: !0,
|
|
541
|
-
checkedList:
|
|
540
|
+
checkedList: n,
|
|
542
541
|
reason: "all check passed"
|
|
543
542
|
};
|
|
544
543
|
}
|
|
@@ -549,28 +548,28 @@ class Wi {
|
|
|
549
548
|
*/
|
|
550
549
|
computeVisibleByFiveMode(e, i) {
|
|
551
550
|
const t = () => {
|
|
552
|
-
var
|
|
553
|
-
let
|
|
554
|
-
if (
|
|
555
|
-
return
|
|
556
|
-
if (
|
|
557
|
-
return
|
|
558
|
-
if (
|
|
559
|
-
return !
|
|
560
|
-
if (
|
|
551
|
+
var l, o;
|
|
552
|
+
let n = typeof e.visibleFiveMode == "function" ? e.visibleFiveMode(this) : e.visibleFiveMode;
|
|
553
|
+
if (n || (n = (o = (l = this.fiveState) == null ? void 0 : l.mode) != null ? o : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(n))
|
|
554
|
+
return n.includes(i);
|
|
555
|
+
if (n === "ModelLike")
|
|
556
|
+
return P(i);
|
|
557
|
+
if (n === "PanoramaLike")
|
|
558
|
+
return !S(i);
|
|
559
|
+
if (n === "all")
|
|
561
560
|
return !0;
|
|
562
|
-
if (typeof
|
|
563
|
-
return
|
|
561
|
+
if (typeof n == "string")
|
|
562
|
+
return n === i;
|
|
564
563
|
};
|
|
565
564
|
if ((() => {
|
|
566
|
-
var
|
|
567
|
-
const
|
|
568
|
-
if (
|
|
569
|
-
if (
|
|
565
|
+
var l;
|
|
566
|
+
const n = t();
|
|
567
|
+
if (_((l = this.fiveState) == null ? void 0 : l.panoIndex) && e.entryFromModel) {
|
|
568
|
+
if (P(i) && n ? this.entryFromModel = !1 : this.entryFromModel = !0, P(i))
|
|
570
569
|
return !0;
|
|
571
570
|
} else
|
|
572
571
|
this.entryFromModel = !1;
|
|
573
|
-
return
|
|
572
|
+
return n;
|
|
574
573
|
})() === !1)
|
|
575
574
|
return {
|
|
576
575
|
value: !1,
|
|
@@ -581,55 +580,55 @@ class Wi {
|
|
|
581
580
|
}
|
|
582
581
|
/** 通过射线检测标签可用性 */
|
|
583
582
|
computeVisibleByIntersect(e) {
|
|
584
|
-
var
|
|
585
|
-
const i = H(H((
|
|
586
|
-
if (
|
|
583
|
+
var s, d, p, v;
|
|
584
|
+
const i = H(H((s = this.getConfig().visibleConfig) != null ? s : {}).intersectRaycaster), t = e != null ? e : this.five.getCurrentState().panoIndex, r = S(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
|
|
585
|
+
if (r === void 0)
|
|
587
586
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
588
|
-
const
|
|
587
|
+
const n = ne(
|
|
589
588
|
(() => {
|
|
590
|
-
var
|
|
591
|
-
const
|
|
592
|
-
return
|
|
589
|
+
var c;
|
|
590
|
+
const m = (c = i.checkPoints) != null ? c : "center";
|
|
591
|
+
return m === "center" ? z(this) : m === "corner" ? $(this) : Array.isArray(m) ? m : [];
|
|
593
592
|
})()
|
|
594
593
|
);
|
|
595
|
-
let
|
|
596
|
-
for (const
|
|
597
|
-
const
|
|
594
|
+
let l = 0, o = 0;
|
|
595
|
+
for (const m of n) {
|
|
596
|
+
const c = new E.Vector3().subVectors(m, r).normalize();
|
|
598
597
|
let h;
|
|
599
|
-
|
|
600
|
-
const [
|
|
601
|
-
h =
|
|
602
|
-
const
|
|
603
|
-
if (!
|
|
598
|
+
B.set(r, c);
|
|
599
|
+
const [f] = this.fiveUtil.model.intersectRaycaster(B);
|
|
600
|
+
h = f == null ? void 0 : f.distance;
|
|
601
|
+
const b = (() => {
|
|
602
|
+
if (!V(this))
|
|
604
603
|
return;
|
|
605
|
-
const X = this.plugin.tags.filter(
|
|
606
|
-
var
|
|
607
|
-
return (
|
|
608
|
-
}).filter(
|
|
604
|
+
const X = this.plugin.tags.filter(V).map((G) => {
|
|
605
|
+
var F;
|
|
606
|
+
return (F = G.model) == null ? void 0 : F.object;
|
|
607
|
+
}).filter(_), [Z] = B.intersectObjects(X, !0);
|
|
609
608
|
return Z;
|
|
610
|
-
})(),
|
|
611
|
-
h = Math.min(h != null ? h : 1 / 0, (
|
|
612
|
-
const q = (
|
|
613
|
-
if (
|
|
609
|
+
})(), x = r.distanceTo(m), W = (d = i.distanceAccuracy) != null ? d : 0.01;
|
|
610
|
+
h = Math.min(h != null ? h : 1 / 0, (p = b == null ? void 0 : b.distance) != null ? p : 1 / 0), h + W >= x ? l++ : o++;
|
|
611
|
+
const q = (v = i.needPassed) != null ? v : 1;
|
|
612
|
+
if (l >= q)
|
|
614
613
|
return { value: !0 };
|
|
615
614
|
}
|
|
616
|
-
return
|
|
615
|
+
return o === 0 ? { value: !0 } : {
|
|
617
616
|
value: !1,
|
|
618
617
|
reason: {
|
|
619
618
|
type: "intersectRaycaster check failed",
|
|
620
|
-
passedCount:
|
|
619
|
+
passedCount: l,
|
|
621
620
|
needPassed: i.needPassed,
|
|
622
621
|
model: this.fiveUtil.model.name
|
|
623
622
|
}
|
|
624
623
|
};
|
|
625
624
|
}
|
|
626
625
|
computeVisibleByFloorIndex() {
|
|
627
|
-
var
|
|
626
|
+
var r, n, l, o, s, d, p;
|
|
628
627
|
let e = 0;
|
|
629
|
-
const i = (
|
|
630
|
-
i !== void 0 ? e = (
|
|
628
|
+
const i = (r = this.fiveState) == null ? void 0 : r.panoIndex;
|
|
629
|
+
i !== void 0 ? e = (n = this.workUtil.getObserver(i)) == null ? void 0 : n.floorIndex : e = fe(
|
|
631
630
|
this.workUtil.work,
|
|
632
|
-
(
|
|
631
|
+
(p = (d = (o = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : o.position) != null ? d : (s = this.mediaPlane) == null ? void 0 : s.position) != null ? p : z(this)
|
|
633
632
|
);
|
|
634
633
|
const t = this.fiveUtil.model.shownFloor;
|
|
635
634
|
return {
|
|
@@ -650,14 +649,13 @@ class Wi {
|
|
|
650
649
|
return !1;
|
|
651
650
|
if (i.keep === "unfolded")
|
|
652
651
|
return !0;
|
|
653
|
-
if (i.unfoldDistance &&
|
|
652
|
+
if (i.unfoldDistance && I(this.getDistance({ panoIndex: e }), i.unfoldDistance) === !1)
|
|
654
653
|
return !1;
|
|
655
654
|
}
|
|
656
655
|
}
|
|
657
|
-
// 该方法有很大优化空间,这个检测显示方法不应该挂在tagBase下,做了多次不必要计算(MinimumDistance,ScreenCenter)。
|
|
658
656
|
computeUnfoldedByCamera() {
|
|
659
|
-
var i
|
|
660
|
-
if (this.entryFromModel &&
|
|
657
|
+
var i;
|
|
658
|
+
if (this.entryFromModel && P(this.five.state.mode))
|
|
661
659
|
return !1;
|
|
662
660
|
const e = this.getConfig().unfoldedConfig;
|
|
663
661
|
if (e) {
|
|
@@ -667,81 +665,53 @@ class Wi {
|
|
|
667
665
|
return !1;
|
|
668
666
|
if (e.keep === "unfolded")
|
|
669
667
|
return !0;
|
|
670
|
-
if (
|
|
668
|
+
if (e.autoUnfold === void 0 || e.autoUnfold === !1 || e.autoUnfold.enable === !1 || !e.autoUnfold.strategy)
|
|
671
669
|
return;
|
|
672
670
|
if (e.autoUnfold.strategy === "ScreenPostion") {
|
|
673
|
-
const
|
|
674
|
-
if (
|
|
671
|
+
const t = this.computeTagProject();
|
|
672
|
+
if (t && I(t.x, e.autoUnfold.autoUnfoldProjectX) === !1)
|
|
675
673
|
return !1;
|
|
676
674
|
}
|
|
677
675
|
if (e.autoUnfold.strategy === "MinimumDistance") {
|
|
678
|
-
const
|
|
679
|
-
const
|
|
680
|
-
if (!
|
|
681
|
-
return !1;
|
|
682
|
-
const { x: m, y: p, z: c } = f;
|
|
683
|
-
return !(Math.abs(c) > 1 || Math.abs(m) > 1 || Math.abs(p) > 1);
|
|
684
|
-
}).map((n) => ({ tag: n, id: n.id, tagConfig: n.getConfig().unfoldedConfig })).filter(({ tagConfig: n }) => {
|
|
685
|
-
var f, m;
|
|
686
|
-
return !(typeof n == "function" || n.keep || n.autoUnfold === !1 || ((f = n.autoUnfold) == null ? void 0 : f.enable) === !1 || ((m = n.autoUnfold) == null ? void 0 : m.strategy) !== "MinimumDistance");
|
|
687
|
-
}).map((n) => U(b({}, n), { distance: n.tag.getDistance() })).filter(({ distance: n, tagConfig: f }) => {
|
|
688
|
-
const m = f.autoUnfold.distance;
|
|
689
|
-
return !(m && k(n, m) === !1);
|
|
690
|
-
}).sort((n, f) => n.distance - f.distance).findIndex((n) => n.id === this.id);
|
|
691
|
-
if (r === -1 || r <= ((i = e.autoUnfold.maxNumber) != null ? i : 1) - 1 === !1)
|
|
692
|
-
return !1;
|
|
693
|
-
}
|
|
694
|
-
if (e.autoUnfold.strategy === "FoldWhenMove")
|
|
695
|
-
return !1;
|
|
696
|
-
if (e.autoUnfold.strategy === "ScreenCenter") {
|
|
697
|
-
const o = this.plugin.filterPointTag, s = new y.Matrix4();
|
|
698
|
-
s.multiplyMatrices(this.five.camera.projectionMatrix, this.five.camera.matrixWorldInverse);
|
|
699
|
-
const r = new y.Frustum();
|
|
700
|
-
r.setFromProjectionMatrix(s);
|
|
701
|
-
const a = this.five.camera.getWorldDirection(new y.Vector3()), f = o.filter((p) => {
|
|
702
|
-
var d, v;
|
|
703
|
-
if (!p.currentVisible)
|
|
704
|
-
return !1;
|
|
705
|
-
const c = p.getConfig().unfoldedConfig;
|
|
706
|
-
if (p.manuallyOperated || typeof c != "object" || (c == null ? void 0 : c.autoUnfold) === !1 || ((d = c == null ? void 0 : c.autoUnfold) == null ? void 0 : d.strategy) !== "ScreenCenter" || c.keep || ((v = c.autoUnfold) == null ? void 0 : v.enable) === !1 || !r.containsPoint(new y.Vector3().fromArray(p.position)))
|
|
676
|
+
const n = this.plugin.filterPointTag.filter((o) => o.currentVisible).filter((o) => {
|
|
677
|
+
const s = this.computeTagProject();
|
|
678
|
+
if (!s)
|
|
707
679
|
return !1;
|
|
708
|
-
const
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}).findIndex((p) => p.id === this.id);
|
|
719
|
-
if (f === -1 || f <= ((t = e.autoUnfold.maxNumber) != null ? t : 1) - 1 === !1)
|
|
680
|
+
const { x: d, y: p, z: v } = s;
|
|
681
|
+
return !(Math.abs(v) > 1 || Math.abs(d) > 1 || Math.abs(p) > 1);
|
|
682
|
+
}).map((o) => ({ tag: o, id: o.id, tagConfig: o.getConfig().unfoldedConfig })).filter(({ tagConfig: o }) => {
|
|
683
|
+
var s, d;
|
|
684
|
+
return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((s = o.autoUnfold) == null ? void 0 : s.enable) === !1 || ((d = o.autoUnfold) == null ? void 0 : d.strategy) !== "MinimumDistance");
|
|
685
|
+
}).map((o) => w(g({}, o), { distance: o.tag.getDistance() })).filter(({ distance: o, tagConfig: s }) => {
|
|
686
|
+
const d = s.autoUnfold.distance;
|
|
687
|
+
return !(d && I(o, d) === !1);
|
|
688
|
+
}).sort((o, s) => o.distance - s.distance).findIndex((o) => o.id === this.id);
|
|
689
|
+
if (n === -1 || n <= ((i = e.autoUnfold.maxNumber) != null ? i : 1) - 1 === !1)
|
|
720
690
|
return !1;
|
|
721
691
|
}
|
|
722
|
-
return
|
|
692
|
+
return e.autoUnfold.strategy !== "FoldWhenMove";
|
|
723
693
|
}
|
|
724
694
|
}
|
|
725
695
|
computeTagProject() {
|
|
726
696
|
const e = this.centerPosition;
|
|
727
697
|
if (!e)
|
|
728
698
|
return;
|
|
729
|
-
const { x: i, y: t, z:
|
|
730
|
-
if (!(
|
|
731
|
-
return { x: i, y: t, z:
|
|
699
|
+
const { x: i, y: t, z: r } = e.project(this.five.camera);
|
|
700
|
+
if (!(r > 1))
|
|
701
|
+
return { x: i, y: t, z: r };
|
|
732
702
|
}
|
|
733
703
|
addObjectClickHandler(e, i, t) {
|
|
734
704
|
if (!i || !this.plugin.domEvents)
|
|
735
705
|
return () => {
|
|
736
706
|
};
|
|
737
|
-
const
|
|
738
|
-
if (!
|
|
707
|
+
const r = () => !(!e.currentVisible || e.loading), n = (l) => {
|
|
708
|
+
if (!r())
|
|
739
709
|
return !1;
|
|
740
|
-
t(
|
|
710
|
+
t(l.origDomEvent);
|
|
741
711
|
};
|
|
742
|
-
return this.plugin.domEvents.addEventListener(i, "click",
|
|
743
|
-
var
|
|
744
|
-
(
|
|
712
|
+
return this.plugin.domEvents.addEventListener(i, "click", n), () => {
|
|
713
|
+
var l;
|
|
714
|
+
(l = this.plugin.domEvents) == null || l.removeEventListener(i, "click", n);
|
|
745
715
|
};
|
|
746
716
|
}
|
|
747
717
|
whyHide() {
|
|
@@ -752,7 +722,7 @@ class Wi {
|
|
|
752
722
|
return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
|
|
753
723
|
if (!this.enabled)
|
|
754
724
|
return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
|
|
755
|
-
const e =
|
|
725
|
+
const e = w(g({}, this.computeVisible()), {
|
|
756
726
|
tagInstance: this
|
|
757
727
|
});
|
|
758
728
|
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 };
|
|
@@ -761,13 +731,13 @@ class Wi {
|
|
|
761
731
|
* @description 销毁并移除
|
|
762
732
|
*/
|
|
763
733
|
destroy() {
|
|
764
|
-
var i, t,
|
|
765
|
-
const e = this.plugin.tags.findIndex((
|
|
734
|
+
var i, t, r, n;
|
|
735
|
+
const e = this.plugin.tags.findIndex((l) => l.id === this.id);
|
|
766
736
|
if (e === -1) {
|
|
767
737
|
console.warn(`Destroy failed: tag ${this.id} not found`);
|
|
768
738
|
return;
|
|
769
739
|
}
|
|
770
|
-
this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((t = (i = this._currentBlinkInstance).preComplete) == null || t.call(i), this._currentBlinkInstance = void 0), this.disable(), (
|
|
740
|
+
this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((t = (i = this._currentBlinkInstance).preComplete) == null || t.call(i), this._currentBlinkInstance = void 0), this.disable(), (n = (r = this.tag3DContentSvelte) == null ? void 0 : r.dispose) == null || n.call(r), this.hooks.off(), this.cache.clear(), this.plugin.tags.splice(e, 1), this.plugin.tagsLengthWillUpdate = !0, this.plugin.hooks.emit("tagsLengthChange");
|
|
771
741
|
}
|
|
772
742
|
/**
|
|
773
743
|
* @description 判断 popover 是否在配置上启用(永久配置)
|
|
@@ -785,5 +755,5 @@ class Wi {
|
|
|
785
755
|
}
|
|
786
756
|
}
|
|
787
757
|
export {
|
|
788
|
-
|
|
758
|
+
Ji as BaseTag
|
|
789
759
|
};
|