@realsee/dnalogel 3.72.0-alpha.1 → 3.72.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/dist/ModelMakerPlugin/Controller.d.ts +106 -2
- package/dist/ModelMakerPlugin/index.d.ts +2 -0
- package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +3 -0
- package/dist/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +8 -1
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +8 -0
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +19 -1
- package/dist/Sculpt/Meshes/Prism.d.ts +8 -1
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +7 -2
- package/dist/Sculpt/Objects/Polygon/index.d.ts +11 -0
- package/dist/Sculpt/Objects/Prism/index.d.ts +9 -2
- package/dist/Sculpt/index.d.ts +8 -3
- package/dist/index.cjs.js +128 -125
- package/dist/index.js +19123 -18491
- package/dist/index.umd.js +120 -117
- package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +2 -1
- package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
- package/dist/shared-utils/Utils/WorkUtil.d.ts +1 -1
- package/dist/shared-utils/five/lookObject.d.ts +4 -0
- package/dist/shared-utils/three/core/PrismAnimationGeometry.d.ts +25 -0
- package/dist/shared-utils/three/getIntersect.d.ts +2 -1
- 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 +57 -18
- 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 +18 -18
- package/docs/classes/Sculpt.html +18 -18
- 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 +8 -7
- 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 +8 -7
- 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 +5 -3
- 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 +6 -0
- 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 +4 -3
- 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/CruisePlugin/Move.js +121 -30
- package/libs/CruisePlugin/Work.js +265 -174
- package/libs/CruisePlugin/index.js +98 -7
- package/libs/GuideLinePlugin/Controller.js +127 -36
- package/libs/GuideLinePlugin/GuideLineItem.js +94 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +94 -3
- package/libs/GuideLinePlugin/index.js +98 -7
- package/libs/MeasurePlugin/Controller.js +3 -3
- package/libs/ModelMakerPlugin/Controller.d.ts +106 -2
- package/libs/ModelMakerPlugin/Controller.js +331 -125
- package/libs/ModelMakerPlugin/index.d.ts +2 -0
- package/libs/ModelMakerPlugin/index.js +3 -2
- package/libs/ModelViewPlugin/Plugin.js +75 -71
- package/libs/Object3DHelperPlugin/Controller.js +3 -2
- package/libs/Object3DHelperPlugin/index.js +6 -5
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +3 -0
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +397 -363
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +8 -1
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +253 -102
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +1 -1
- package/libs/PanoTagPlugin/controller/index.js +143 -46
- package/libs/PanoTagPlugin/index.js +103 -12
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +8 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +19 -1
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +131 -77
- package/libs/Sculpt/Editors/RectangleMeshEditor.js +64 -38
- package/libs/Sculpt/Meshes/Prism.d.ts +8 -1
- package/libs/Sculpt/Meshes/Prism.js +177 -178
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +7 -2
- package/libs/Sculpt/Objects/Polygon/Editor.js +26 -10
- package/libs/Sculpt/Objects/Polygon/index.d.ts +11 -0
- package/libs/Sculpt/Objects/Polygon/index.js +177 -142
- package/libs/Sculpt/Objects/Prism/index.d.ts +9 -2
- package/libs/Sculpt/Objects/Prism/index.js +49 -49
- package/libs/Sculpt/index.d.ts +8 -3
- package/libs/Sculpt/index.js +74 -62
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +16 -16
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +16 -16
- package/libs/index.js +207 -206
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +2 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +86 -60
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +40 -26
- package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +12 -11
- package/libs/shared-utils/Utils/WorkUtil.d.ts +1 -1
- package/libs/shared-utils/five/index.js +1 -1
- package/libs/shared-utils/five/lookObject.d.ts +4 -0
- package/libs/shared-utils/five/lookObject.js +63 -54
- package/libs/shared-utils/five/lookPoint.js +11 -11
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.js +1 -1
- package/libs/shared-utils/three/core/PrismAnimationGeometry.d.ts +25 -0
- package/libs/shared-utils/three/core/PrismAnimationGeometry.js +146 -0
- package/libs/shared-utils/three/getIntersect.d.ts +2 -1
- package/package.json +2 -2
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
for (var t in
|
|
16
|
-
|
|
17
|
-
if (
|
|
18
|
-
for (var t of
|
|
19
|
-
|
|
20
|
-
return
|
|
1
|
+
var K = Object.defineProperty, Q = Object.defineProperties;
|
|
2
|
+
var Y = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var x = Object.getOwnPropertySymbols;
|
|
4
|
+
var A = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var I = Math.pow, w = (g, e, i) => e in g ? K(g, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : g[e] = i, b = (g, e) => {
|
|
6
|
+
for (var i in e || (e = {}))
|
|
7
|
+
A.call(e, i) && w(g, i, e[i]);
|
|
8
|
+
if (x)
|
|
9
|
+
for (var i of x(e))
|
|
10
|
+
E.call(e, i) && w(g, i, e[i]);
|
|
11
|
+
return g;
|
|
12
|
+
}, U = (g, e) => Q(g, Y(e));
|
|
13
|
+
var O = (g, e) => {
|
|
14
|
+
var i = {};
|
|
15
|
+
for (var t in g)
|
|
16
|
+
A.call(g, t) && e.indexOf(t) < 0 && (i[t] = g[t]);
|
|
17
|
+
if (g != null && x)
|
|
18
|
+
for (var t of x(g))
|
|
19
|
+
e.indexOf(t) < 0 && E.call(g, t) && (i[t] = g[t]);
|
|
20
|
+
return i;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
22
|
+
var l = (g, e, i) => (w(g, typeof e != "symbol" ? e + "" : e, i), i);
|
|
23
|
+
var T = (g, e, i) => new Promise((t, o) => {
|
|
24
|
+
var s = (n) => {
|
|
25
25
|
try {
|
|
26
|
-
|
|
27
|
-
} catch (
|
|
28
|
-
|
|
26
|
+
a(i.next(n));
|
|
27
|
+
} catch (f) {
|
|
28
|
+
o(f);
|
|
29
29
|
}
|
|
30
|
-
},
|
|
30
|
+
}, r = (n) => {
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
} catch (
|
|
34
|
-
|
|
32
|
+
a(i.throw(n));
|
|
33
|
+
} catch (f) {
|
|
34
|
+
o(f);
|
|
35
35
|
}
|
|
36
|
-
},
|
|
37
|
-
|
|
36
|
+
}, a = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, r);
|
|
37
|
+
a((i = i.apply(g, e)).next());
|
|
38
38
|
});
|
|
39
|
-
import { Subscribe as
|
|
40
|
-
import { calculateTagConfig as
|
|
41
|
-
import { getTagStickType as
|
|
39
|
+
import { Subscribe as ee } from "../../../shared-utils/Subscribe.js";
|
|
40
|
+
import { calculateTagConfig as S } from "../../utils/tag/calculateTagConfig.js";
|
|
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 V, isModelLike as M } from "../../../shared-utils/five/mode.js";
|
|
44
|
+
import * as y from "three";
|
|
45
45
|
import "../../../vendor/hammerjs/hammer.js";
|
|
46
46
|
import "../../../shared-utils/three/PointSelector/index.js";
|
|
47
|
-
import { centerPoint as
|
|
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
|
|
51
|
-
import { toArray as
|
|
50
|
+
import { anyPositionToVector3 as R } from "../../../shared-utils/positionToVector3.js";
|
|
51
|
+
import { toArray as ne } from "../../../shared-utils/util.js";
|
|
52
52
|
import "@realsee/five/line";
|
|
53
|
-
import { isNil as
|
|
53
|
+
import { isNil as _, 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 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
|
-
import { vectorToCoordinates as
|
|
60
|
-
import { transformPosition as
|
|
61
|
-
import { lookPoint as
|
|
59
|
+
import { vectorToCoordinates as re } from "../../../shared-utils/vectorToCoordinate.js";
|
|
60
|
+
import { transformPosition as $ } from "../../../shared-utils/five/transformPosition.js";
|
|
61
|
+
import { lookPoint as ae } from "../../../shared-utils/five/lookPoint.js";
|
|
62
62
|
import { uuid as le } 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
|
|
68
|
-
import { getUrlExt as
|
|
64
|
+
import { objectAssignDeepExports as P } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
65
|
+
import { getTagPosition as N, getTagCenterPosition as z } from "../../utils/tagPosition.js";
|
|
66
|
+
import { checkRange as k } from "../../utils/checkRange.js";
|
|
67
|
+
import { isMediaPlaneTag as W, isMediaModelTag as B } from "../../utils/tag/tagCheck.js";
|
|
68
|
+
import { getUrlExt as J } from "../../../shared-utils/url/getUrl.js";
|
|
69
69
|
import { getFloorIndex as fe } from "../../../shared-utils/five/getFloorIndex.js";
|
|
70
|
-
import { safeObj as
|
|
71
|
-
import { Cache as
|
|
72
|
-
import { _raycaster as
|
|
73
|
-
import { withResolvers as
|
|
70
|
+
import { safeObj as H } from "../../../shared-utils/safeObj.js";
|
|
71
|
+
import { Cache as ce } from "../../utils/Cache.js";
|
|
72
|
+
import { _raycaster as D } from "../../../shared-utils/three/temp.js";
|
|
73
|
+
import { withResolvers as de } 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,88 +121,90 @@ 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
|
|
125
|
-
constructor(
|
|
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
|
-
|
|
124
|
+
class Wi {
|
|
125
|
+
constructor(e, i) {
|
|
126
|
+
l(this, "plugin");
|
|
127
|
+
l(this, "id");
|
|
128
|
+
l(this, "contentType");
|
|
129
|
+
l(this, "stickType");
|
|
130
|
+
l(this, "enabled");
|
|
131
|
+
l(this, "config");
|
|
132
|
+
l(this, "data");
|
|
133
|
+
l(this, "state");
|
|
134
|
+
l(this, "temporaryState", { visible: !0 });
|
|
135
|
+
l(this, "originPosition");
|
|
136
|
+
l(this, "position");
|
|
137
|
+
l(this, "fiveState");
|
|
138
|
+
l(this, "model");
|
|
139
|
+
l(this, "matrix");
|
|
140
|
+
l(this, "screenPosition");
|
|
141
|
+
l(this, "normal");
|
|
142
|
+
l(this, "mediaPlane");
|
|
143
|
+
l(this, "hooks");
|
|
144
|
+
l(this, "zIndex");
|
|
145
|
+
l(this, "manuallyOperated", !1);
|
|
146
|
+
l(this, "play");
|
|
147
|
+
l(this, "pause");
|
|
148
|
+
l(this, "tag3DContentSvelte");
|
|
149
|
+
l(this, "rectanglePlane");
|
|
150
|
+
l(this, "dom");
|
|
151
|
+
l(this, "contentDom");
|
|
152
|
+
l(this, "initialConfig");
|
|
153
|
+
l(this, "computedConfig");
|
|
152
154
|
/**
|
|
153
155
|
* 存储当前的闪烁动画实例
|
|
154
156
|
* @private
|
|
155
157
|
*/
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
l(this, "_currentBlinkInstance");
|
|
159
|
+
l(this, "cache");
|
|
160
|
+
l(this, "entryFromModel");
|
|
161
|
+
l(this, "_updating", !1);
|
|
160
162
|
/**
|
|
161
163
|
* 是否启用 hover 行为,默认 为config.popoverConfig.enabled
|
|
162
164
|
*/
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
const { promise:
|
|
165
|
+
l(this, "hoverEnabled");
|
|
166
|
+
l(this, "ready", () => {
|
|
167
|
+
const { promise: e, resolve: i } = de();
|
|
166
168
|
if (!this._updating)
|
|
167
|
-
|
|
169
|
+
i();
|
|
168
170
|
else {
|
|
169
171
|
const t = setInterval(() => {
|
|
170
|
-
this._updating || (clearInterval(t),
|
|
172
|
+
this._updating || (clearInterval(t), i());
|
|
171
173
|
}, 17);
|
|
172
174
|
setTimeout(() => {
|
|
173
|
-
clearInterval(t),
|
|
175
|
+
clearInterval(t), i();
|
|
174
176
|
}, 300);
|
|
175
177
|
}
|
|
176
|
-
return
|
|
178
|
+
return e;
|
|
177
179
|
});
|
|
178
|
-
var
|
|
179
|
-
this.plugin =
|
|
180
|
-
const t =
|
|
181
|
-
|
|
182
|
-
const
|
|
183
|
-
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
let
|
|
187
|
-
typeof
|
|
180
|
+
var f, m, p, c, u, h;
|
|
181
|
+
this.plugin = e;
|
|
182
|
+
const t = ie(i);
|
|
183
|
+
i.stickType = t;
|
|
184
|
+
const o = JSON.parse(JSON.stringify(i.data)), s = (f = i.initialConfig) != null ? f : i.config ? JSON.parse(JSON.stringify(i.config)) : {};
|
|
185
|
+
i.initialConfig = s;
|
|
186
|
+
const r = S(i, e.config), a = this.getConfig(i);
|
|
187
|
+
i.config = a, this.id = (m = i.id) != null ? m : le(), this.enabled = (p = i.enabled) != null ? p : !0, this.contentType = i.contentType, this.hoverEnabled = (u = (c = a.popoverConfig) == null ? void 0 : c.enabled) != null ? u : !0, this.data = (h = a.initialData) != null && h.important ? P(i.data, o, a.initialData) : P(i.data, a.initialData, o);
|
|
188
|
+
let n;
|
|
189
|
+
typeof a.unfoldedConfig == "object" ? a.unfoldedConfig.keep === "unfolded" ? n = !0 : a.unfoldedConfig.keep === "folded" ? n = !1 : n = !this.can("fold") : n = !this.can("fold"), this.state = b({
|
|
188
190
|
visible: void 0,
|
|
189
|
-
unfolded:
|
|
190
|
-
},
|
|
191
|
-
const
|
|
192
|
-
if (!
|
|
191
|
+
unfolded: n
|
|
192
|
+
}, a.initialState), this.isPopoverConfigEnabled() && (this.state.unfolded = !1), this.originPosition = i.position, i.originPosition = this.originPosition, this.position = (() => {
|
|
193
|
+
const d = i.originPosition;
|
|
194
|
+
if (!d)
|
|
193
195
|
return;
|
|
194
|
-
const
|
|
195
|
-
return Array.isArray(
|
|
196
|
-
})(), this.matrix =
|
|
197
|
-
const
|
|
198
|
-
return
|
|
199
|
-
})() :
|
|
200
|
-
this[
|
|
196
|
+
const v = e.workUtil.transform;
|
|
197
|
+
return Array.isArray(d) && d.length === 4 ? d.map(R).map((C) => $(C, v).toArray()) : $(R(d), v).toArray();
|
|
198
|
+
})(), this.matrix = i.matrix ? (() => {
|
|
199
|
+
const d = new y.Matrix4().fromArray(i.matrix);
|
|
200
|
+
return d.premultiply(e.workUtil.transform), d.elements;
|
|
201
|
+
})() : i.matrix, this.initialConfig = s, this.computedConfig = r, this.stickType = t, this.config = i.config, this.fiveState = i.fiveState, this.normal = i.normal, this.cache = new ce(), this.hooks = new ee(), Object.keys(i).forEach((d) => {
|
|
202
|
+
this[d] === void 0 && i[d] !== void 0 && (this[d] = i[d]);
|
|
201
203
|
});
|
|
202
204
|
}
|
|
203
205
|
get visible() {
|
|
204
|
-
var
|
|
205
|
-
return ((
|
|
206
|
+
var e;
|
|
207
|
+
return ((e = this.temporaryState) == null ? void 0 : e.visible) !== !1 && this.state.visible !== !1 && this.enabled !== !1;
|
|
206
208
|
}
|
|
207
209
|
get five() {
|
|
208
210
|
return this.plugin.five;
|
|
@@ -214,13 +216,13 @@ class Ji {
|
|
|
214
216
|
return this.plugin.workUtil;
|
|
215
217
|
}
|
|
216
218
|
get centerPosition() {
|
|
217
|
-
const
|
|
218
|
-
return
|
|
219
|
+
const e = N(this);
|
|
220
|
+
return te(...Array.isArray(e) ? e : [e]);
|
|
219
221
|
}
|
|
220
222
|
get currentConfig() {
|
|
221
|
-
var
|
|
222
|
-
const
|
|
223
|
-
return (
|
|
223
|
+
var o, s;
|
|
224
|
+
const e = S(this, this.plugin.config, { useCache: !0 }), i = this.five.getCurrentState().mode, t = (o = e.configWithFiveMode) == null ? void 0 : o[i];
|
|
225
|
+
return (s = t != null ? t : e) != null ? s : {};
|
|
224
226
|
}
|
|
225
227
|
get currentVisible() {
|
|
226
228
|
return !(!this.plugin.state.enabled || !this.plugin.state.visible || !this.enabled || !this.state.visible);
|
|
@@ -237,79 +239,79 @@ class Ji {
|
|
|
237
239
|
/**
|
|
238
240
|
* @description 找到标签
|
|
239
241
|
*/
|
|
240
|
-
find(
|
|
241
|
-
return
|
|
242
|
-
var
|
|
243
|
-
const
|
|
242
|
+
find(e) {
|
|
243
|
+
return T(this, null, function* () {
|
|
244
|
+
var o;
|
|
245
|
+
const i = this.fiveState;
|
|
244
246
|
if (!this.fiveState)
|
|
245
247
|
return this;
|
|
246
|
-
const t = (
|
|
248
|
+
const t = (o = e == null ? void 0 : e.targetMode) != null ? o : this.five.state.mode;
|
|
247
249
|
if (t === "Panorama") {
|
|
248
|
-
const
|
|
249
|
-
if (
|
|
250
|
+
const s = i == null ? void 0 : i.panoIndex;
|
|
251
|
+
if (_(s))
|
|
250
252
|
return this;
|
|
251
|
-
const
|
|
252
|
-
this.five.setState(
|
|
253
|
+
const r = this.workUtil.getObserverPosition(s), a = this.centerPosition.clone().sub(r).normalize();
|
|
254
|
+
this.five.setState(b({
|
|
253
255
|
mode: "Panorama",
|
|
254
256
|
workCode: this.workUtil.workCode,
|
|
255
|
-
panoIndex:
|
|
256
|
-
},
|
|
257
|
+
panoIndex: s
|
|
258
|
+
}, re(a))), yield this.five.ready();
|
|
257
259
|
} else
|
|
258
|
-
t === "Mapview" && (yield
|
|
260
|
+
t === "Mapview" && (yield ae(this.five, this.centerPosition, e == null ? void 0 : e.pointConfig));
|
|
259
261
|
return this;
|
|
260
262
|
});
|
|
261
263
|
}
|
|
262
264
|
/**
|
|
263
265
|
* @description 闪烁
|
|
264
266
|
*/
|
|
265
|
-
blink(
|
|
266
|
-
return
|
|
267
|
-
var
|
|
268
|
-
yield this.ready(), this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((
|
|
269
|
-
const
|
|
270
|
-
|
|
267
|
+
blink(e) {
|
|
268
|
+
return T(this, null, function* () {
|
|
269
|
+
var a, n, f, m, p, c;
|
|
270
|
+
yield this.ready(), this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((n = (a = this._currentBlinkInstance).preComplete) == null || n.call(a), this._currentBlinkInstance = void 0);
|
|
271
|
+
const i = (f = this.enabled) != null ? f : !0, t = (m = this.state) == null ? void 0 : m.visible, o = i && t;
|
|
272
|
+
o === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((u) => {
|
|
271
273
|
if (this.dom || this.contentDom) {
|
|
272
|
-
|
|
274
|
+
u();
|
|
273
275
|
return;
|
|
274
276
|
}
|
|
275
277
|
const h = setInterval(() => {
|
|
276
|
-
(this.dom || this.contentDom) && (
|
|
278
|
+
(this.dom || this.contentDom) && (u(), clearInterval(h));
|
|
277
279
|
}, 16.7);
|
|
278
|
-
}) : this.stickType === "Model" && !((
|
|
280
|
+
}) : this.stickType === "Model" && !((p = this.model) != null && p.object) ? yield (c = this.model) == null ? void 0 : c.promise : this.stickType === "Plane" && (yield new Promise((u) => {
|
|
279
281
|
if (this.mediaPlane) {
|
|
280
|
-
|
|
282
|
+
u();
|
|
281
283
|
return;
|
|
282
284
|
}
|
|
283
285
|
const h = setInterval(() => {
|
|
284
|
-
this.mediaPlane && (
|
|
286
|
+
this.mediaPlane && (u(), clearInterval(h));
|
|
285
287
|
}, 16.7);
|
|
286
288
|
})), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
|
|
287
|
-
const
|
|
288
|
-
var h,
|
|
289
|
-
const
|
|
290
|
-
return
|
|
289
|
+
const s = (() => {
|
|
290
|
+
var h, d, v;
|
|
291
|
+
const u = [];
|
|
292
|
+
return u.push(this.dom), u.push((d = (h = this.tag3DContentSvelte) == null ? void 0 : h.css3DInstance) == null ? void 0 : d.container), u.push((v = this.model) == null ? void 0 : v.object), u.push(this.mediaPlane), u.filter(Boolean);
|
|
291
293
|
})();
|
|
292
|
-
if (!
|
|
294
|
+
if (!s.length) {
|
|
293
295
|
console.warn("tagDom is empty");
|
|
294
296
|
return;
|
|
295
297
|
}
|
|
296
|
-
const
|
|
297
|
-
this._currentBlinkInstance =
|
|
298
|
+
const r = o ? se : oe;
|
|
299
|
+
this._currentBlinkInstance = r(s, b({
|
|
298
300
|
begin: () => {
|
|
299
|
-
|
|
301
|
+
o === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
300
302
|
},
|
|
301
303
|
updateRender: () => {
|
|
302
304
|
this.five.needsRender = !0;
|
|
303
305
|
}
|
|
304
|
-
},
|
|
306
|
+
}, e));
|
|
305
307
|
try {
|
|
306
308
|
yield this._currentBlinkInstance.finished;
|
|
307
|
-
} catch (
|
|
308
|
-
console.debug("Blink animation interrupted:",
|
|
309
|
+
} catch (u) {
|
|
310
|
+
console.debug("Blink animation interrupted:", u);
|
|
309
311
|
} finally {
|
|
310
312
|
this._currentBlinkInstance = void 0;
|
|
311
313
|
}
|
|
312
|
-
|
|
314
|
+
i === !1 && (this.enabled = !1, this.updateVisible()), t === !1 && this.updateVisible(), o === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
313
315
|
});
|
|
314
316
|
}
|
|
315
317
|
/**
|
|
@@ -337,48 +339,49 @@ class Ji {
|
|
|
337
339
|
* @description 禁用
|
|
338
340
|
*/
|
|
339
341
|
disable() {
|
|
340
|
-
|
|
342
|
+
var e;
|
|
343
|
+
this.enabled = !1, this.hooks.emit("disable"), (e = this.rectanglePlane) == null || e.delete(), this.applyVisible();
|
|
341
344
|
}
|
|
342
345
|
/**
|
|
343
346
|
* @deprecated use `setData` instead
|
|
344
347
|
*/
|
|
345
|
-
changeData(
|
|
346
|
-
return this.setData(
|
|
348
|
+
changeData(e, i = !0) {
|
|
349
|
+
return this.setData(e, i);
|
|
347
350
|
}
|
|
348
351
|
/**
|
|
349
352
|
* @deprecated use `setPosition` instead
|
|
350
353
|
*/
|
|
351
|
-
changePosition(
|
|
352
|
-
return this.setPosition(
|
|
354
|
+
changePosition(e) {
|
|
355
|
+
return this.setPosition(e);
|
|
353
356
|
}
|
|
354
357
|
/**
|
|
355
358
|
* @description 修改标签数据
|
|
356
359
|
* @param deepMerge 是否深度合并 data,默认为 true
|
|
357
360
|
*/
|
|
358
|
-
setData(
|
|
359
|
-
|
|
361
|
+
setData(e, i = !0) {
|
|
362
|
+
i ? this.data = P(this.data, e) : this.data = b(b({}, this.data), e), this.hooks.emit("dataChanged", this.data);
|
|
360
363
|
}
|
|
361
364
|
/**
|
|
362
365
|
* @description 修改标签位置
|
|
363
366
|
*/
|
|
364
|
-
setPosition(
|
|
367
|
+
setPosition(e) {
|
|
365
368
|
throw new Error("Method not implemented.");
|
|
366
369
|
}
|
|
367
370
|
/**
|
|
368
371
|
* @description 设置标签实例的属性
|
|
369
372
|
* @param deepMerge 是否深度合并 data,默认为 true
|
|
370
373
|
*/
|
|
371
|
-
set(
|
|
372
|
-
this.plugin.tagsLengthWillUpdate = !0,
|
|
374
|
+
set(e, i = !0) {
|
|
375
|
+
this.plugin.tagsLengthWillUpdate = !0, i ? P(this, e) : Object.assign(this, e), this.cache.clear();
|
|
373
376
|
}
|
|
374
377
|
updateConfig() {
|
|
375
378
|
var t;
|
|
376
|
-
const
|
|
377
|
-
this.computedConfig =
|
|
378
|
-
const
|
|
379
|
-
if (this.config =
|
|
380
|
-
const
|
|
381
|
-
this.data = (t =
|
|
379
|
+
const e = this.getConfig(void 0, { useCache: !1 });
|
|
380
|
+
this.computedConfig = e;
|
|
381
|
+
const i = this.getConfig();
|
|
382
|
+
if (this.config = i, this.config.initialData) {
|
|
383
|
+
const o = JSON.parse(JSON.stringify(this.data));
|
|
384
|
+
this.data = (t = i.initialData) != null && t.important ? P(this.data, o, i.initialData) : P(this.data, i.initialData, o);
|
|
382
385
|
}
|
|
383
386
|
this.cache.clear();
|
|
384
387
|
}
|
|
@@ -386,154 +389,156 @@ class Ji {
|
|
|
386
389
|
this.enabled ? (this.state.visible = this.getVisible(), this.applyVisible()) : this.applyVisible(), this._updating = !1;
|
|
387
390
|
}
|
|
388
391
|
updateZIndex() {
|
|
389
|
-
const
|
|
390
|
-
this.zIndex = Math.round((1e4 - (
|
|
392
|
+
const e = this.getSquaredDistance();
|
|
393
|
+
this.zIndex = Math.round((1e4 - (e != null ? e : 0)) * 100);
|
|
391
394
|
}
|
|
392
|
-
getConfig(
|
|
393
|
-
var
|
|
394
|
-
const t =
|
|
395
|
-
return (
|
|
395
|
+
getConfig(e, i) {
|
|
396
|
+
var r, a, n;
|
|
397
|
+
const t = S(e != null ? e : this, this.plugin.config, { useCache: i == null ? void 0 : i.useCache }), o = (r = i == null ? void 0 : i.fiveMode) != null ? r : this.five.getCurrentState().mode, s = (a = t.configWithFiveMode) == null ? void 0 : a[o];
|
|
398
|
+
return (n = s != null ? s : t) != null ? n : {};
|
|
396
399
|
}
|
|
397
|
-
getDistance(
|
|
398
|
-
const t =
|
|
399
|
-
return !
|
|
400
|
+
getDistance(e, i = 3) {
|
|
401
|
+
const t = b(b({}, this.five.getCurrentState()), e), { panoIndex: o, mode: s } = t, r = s === "Panorama" ? this.workUtil.getObserverPosition(o) : this.five.camera.position, a = this.centerPosition;
|
|
402
|
+
return !r || !a ? -1 : r.distanceTo(a);
|
|
400
403
|
}
|
|
401
404
|
/**
|
|
402
405
|
* @description 用于排序的距离,性能更好
|
|
403
406
|
*/
|
|
404
407
|
getSquaredDistance() {
|
|
405
|
-
const
|
|
406
|
-
let
|
|
407
|
-
return Array.isArray(this.position[0]) ?
|
|
408
|
+
const e = this.five.camera.position;
|
|
409
|
+
let i;
|
|
410
|
+
return Array.isArray(this.position[0]) ? i = this.position[0] : i = this.position, I(i[0] - e.x, 2) + I(i[1] - e.y, 2) + I(i[2] - e.z, 2);
|
|
408
411
|
}
|
|
409
|
-
getVisible(
|
|
412
|
+
getVisible(e) {
|
|
410
413
|
if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
|
|
411
414
|
return !1;
|
|
412
|
-
const
|
|
413
|
-
let t = this.cache.getVisible(this,
|
|
414
|
-
return
|
|
415
|
+
const i = b(b({}, this.five.getCurrentState()), e);
|
|
416
|
+
let t = this.cache.getVisible(this, i);
|
|
417
|
+
return _(t) && (t = this.computeVisible(i).value, this.cache.setVisible(this, i, t)), t;
|
|
415
418
|
}
|
|
416
|
-
getUnfoldedByPanoIndex(
|
|
419
|
+
getUnfoldedByPanoIndex(e) {
|
|
417
420
|
if (!this.currentVisible)
|
|
418
421
|
return;
|
|
419
|
-
const t = this.computeUnfoldedByPanoIndex(
|
|
422
|
+
const t = this.computeUnfoldedByPanoIndex(e);
|
|
420
423
|
return t && this.getUnfoldedByCamera();
|
|
421
424
|
}
|
|
422
425
|
getUnfoldedByCamera() {
|
|
423
426
|
return this.currentVisible ? this.computeUnfoldedByCamera() : void 0;
|
|
424
427
|
}
|
|
425
|
-
can(
|
|
426
|
-
var t,
|
|
427
|
-
if ((
|
|
428
|
+
can(e) {
|
|
429
|
+
var t, o;
|
|
430
|
+
if ((e === "fold" || e === "unfold") && ((o = (t = this.currentConfig) == null ? void 0 : t.popoverConfig) == null ? void 0 : o.enabled) === !0)
|
|
428
431
|
return !1;
|
|
429
|
-
const
|
|
430
|
-
if (!
|
|
432
|
+
const i = this.currentConfig;
|
|
433
|
+
if (!i || typeof i != "object")
|
|
431
434
|
return !0;
|
|
432
|
-
if (
|
|
433
|
-
if (!
|
|
435
|
+
if (e === "show" || e === "hide") {
|
|
436
|
+
if (!i.visibleConfig || typeof i.visibleConfig != "object")
|
|
434
437
|
return !0;
|
|
435
|
-
if (
|
|
438
|
+
if (e === "show" && i.visibleConfig.keep === "hidden" || e === "hide" && i.visibleConfig.keep === "visible")
|
|
436
439
|
return !1;
|
|
437
440
|
}
|
|
438
|
-
if (
|
|
439
|
-
if (!
|
|
441
|
+
if (e === "fold" || e === "unfold") {
|
|
442
|
+
if (!i.unfoldedConfig || typeof i.unfoldedConfig != "object")
|
|
440
443
|
return !0;
|
|
441
|
-
if (
|
|
444
|
+
if (e === "fold" && i.unfoldedConfig.keep === "unfolded" || e === "unfold" && i.unfoldedConfig.keep === "folded")
|
|
442
445
|
return !1;
|
|
443
446
|
}
|
|
444
447
|
return !0;
|
|
445
448
|
}
|
|
446
|
-
onClick(
|
|
449
|
+
onClick(e) {
|
|
447
450
|
}
|
|
448
451
|
computeRenderType() {
|
|
449
|
-
const
|
|
452
|
+
const e = (() => {
|
|
450
453
|
if (this.stickType === "3DPoint")
|
|
451
454
|
return "Dom";
|
|
452
|
-
const
|
|
453
|
-
if (!
|
|
455
|
+
const i = this.getConfig();
|
|
456
|
+
if (!i || typeof i != "object" || !i.renderType)
|
|
454
457
|
return;
|
|
455
458
|
const t = this.data.mediaData;
|
|
456
|
-
if (
|
|
457
|
-
|
|
459
|
+
if ((!t || t.length === 0) && W(this))
|
|
460
|
+
return i.renderType;
|
|
461
|
+
if (i.renderType === "Mesh") {
|
|
462
|
+
if (W(this)) {
|
|
458
463
|
if (t.length === 1) {
|
|
459
464
|
if (t[0].type === "Video")
|
|
460
465
|
return navigator.userAgent.toLowerCase().indexOf("firefox") > -1 && navigator.userAgent.toLowerCase().indexOf("mobile") > -1 ? "Dom" : "Mesh";
|
|
461
466
|
if (t[0].type === "Image")
|
|
462
|
-
return
|
|
467
|
+
return J(t[0].url) === "gif" ? "Dom" : "Mesh";
|
|
463
468
|
}
|
|
464
|
-
} else if (
|
|
465
|
-
return t.length === 1 && t[0].type === "Image" ?
|
|
469
|
+
} else if (B(this))
|
|
470
|
+
return t.length === 1 && t[0].type === "Image" ? J(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
|
|
466
471
|
}
|
|
467
472
|
})();
|
|
468
|
-
return
|
|
473
|
+
return e != null ? e : "Dom";
|
|
469
474
|
}
|
|
470
|
-
computeVisible(
|
|
471
|
-
const
|
|
475
|
+
computeVisible(e) {
|
|
476
|
+
const i = b(b({}, this.five.getCurrentState()), e), { panoIndex: t, mode: o } = i, s = [];
|
|
472
477
|
return (() => {
|
|
473
|
-
var
|
|
474
|
-
const
|
|
475
|
-
if (typeof
|
|
478
|
+
var f, p, c, u;
|
|
479
|
+
const n = (f = this.getConfig().visibleConfig) != null ? f : {};
|
|
480
|
+
if (typeof n == "function")
|
|
476
481
|
return {
|
|
477
|
-
value:
|
|
478
|
-
checkedList:
|
|
482
|
+
value: n(this.five, { tag: this, distance: this.getDistance(i, void 0) }),
|
|
483
|
+
checkedList: s,
|
|
479
484
|
reason: "config function result"
|
|
480
485
|
};
|
|
481
486
|
{
|
|
482
|
-
if (
|
|
483
|
-
return { value: !1, checkedList:
|
|
484
|
-
if (
|
|
485
|
-
return { value: !0, checkedList:
|
|
486
|
-
const h = this.computeVisibleByFiveMode(
|
|
487
|
+
if (n.keep === "hidden")
|
|
488
|
+
return { value: !1, checkedList: s, reason: "config.keep is hidden" };
|
|
489
|
+
if (n.keep === "visible")
|
|
490
|
+
return { value: !0, checkedList: s, reason: "config.keep is visible" };
|
|
491
|
+
const h = this.computeVisibleByFiveMode(n, o);
|
|
487
492
|
if ((h == null ? void 0 : h.value) === !1)
|
|
488
493
|
return h;
|
|
489
|
-
if (
|
|
490
|
-
const
|
|
491
|
-
if (
|
|
492
|
-
return
|
|
494
|
+
if (n.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (o === "Floorplan" || o === "Mapview")) {
|
|
495
|
+
const m = this.computeVisibleByFloorIndex(), { value: d } = m, v = O(m, ["value"]);
|
|
496
|
+
if (d === !1)
|
|
497
|
+
return b({ value: !1, checkedList: s, reason: "followModelVisibility check failed" }, v);
|
|
493
498
|
}
|
|
494
|
-
if (
|
|
495
|
-
if (
|
|
499
|
+
if (V(o) && n.visiblePanoIndex !== void 0 && n.visiblePanoIndex !== "all" && t !== void 0) {
|
|
500
|
+
if (s.push("visiblePanoIndex"), Array.isArray(n.visiblePanoIndex) && !n.visiblePanoIndex.includes(t))
|
|
496
501
|
return {
|
|
497
502
|
value: !1,
|
|
498
|
-
checkedList:
|
|
499
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${
|
|
503
|
+
checkedList: s,
|
|
504
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${n.visiblePanoIndex}`
|
|
500
505
|
};
|
|
501
|
-
if (
|
|
506
|
+
if (n.visiblePanoIndex === "current" && t !== ((p = this.fiveState) == null ? void 0 : p.panoIndex))
|
|
502
507
|
return {
|
|
503
508
|
value: !1,
|
|
504
|
-
checkedList:
|
|
505
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(
|
|
509
|
+
checkedList: s,
|
|
510
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(c = this.fiveState) == null ? void 0 : c.panoIndex}`
|
|
506
511
|
};
|
|
507
512
|
}
|
|
508
|
-
if (
|
|
509
|
-
const
|
|
510
|
-
if (
|
|
513
|
+
if (n.visibleDistance !== void 0 && (s.push("visibleDistance"), n.visibleDistance !== "unLimited")) {
|
|
514
|
+
const d = this.getDistance(i, 1);
|
|
515
|
+
if (k(d, n.visibleDistance) === !1)
|
|
511
516
|
return {
|
|
512
517
|
value: !1,
|
|
513
|
-
checkedList:
|
|
518
|
+
checkedList: s,
|
|
514
519
|
panoIndex: t,
|
|
515
|
-
visibleDistance:
|
|
516
|
-
reason: `distance is not in visibleDistance. distance: ${
|
|
520
|
+
visibleDistance: n.visibleDistance,
|
|
521
|
+
reason: `distance is not in visibleDistance. distance: ${d}, visibleDistance: ${n.visibleDistance.min} - ${n.visibleDistance.max}`
|
|
517
522
|
};
|
|
518
523
|
}
|
|
519
|
-
if (
|
|
520
|
-
if (
|
|
524
|
+
if (n.intersectRaycaster !== !1 && (typeof n.intersectRaycaster != "object" || n.intersectRaycaster.enabled !== !1)) {
|
|
525
|
+
if (s.push("intersectRaycaster"), t === void 0)
|
|
521
526
|
return {
|
|
522
527
|
value: !1,
|
|
523
|
-
checkedList:
|
|
528
|
+
checkedList: s,
|
|
524
529
|
reason: `intersectRaycaster check failed: panoIndex is ${t}`
|
|
525
530
|
};
|
|
526
|
-
if (t === ((
|
|
527
|
-
|
|
531
|
+
if (t === ((u = this.fiveState) == null ? void 0 : u.panoIndex))
|
|
532
|
+
s.push("intersectCheckSkiped");
|
|
528
533
|
else {
|
|
529
|
-
const
|
|
530
|
-
if (
|
|
531
|
-
return Object.assign(
|
|
534
|
+
const d = this.computeVisibleByIntersect(t);
|
|
535
|
+
if (d.value === !1)
|
|
536
|
+
return Object.assign(d, { checkedList: s });
|
|
532
537
|
}
|
|
533
538
|
}
|
|
534
539
|
return {
|
|
535
540
|
value: !0,
|
|
536
|
-
checkedList:
|
|
541
|
+
checkedList: s,
|
|
537
542
|
reason: "all check passed"
|
|
538
543
|
};
|
|
539
544
|
}
|
|
@@ -542,214 +547,243 @@ class Ji {
|
|
|
542
547
|
/**
|
|
543
548
|
* @description 计算标签可见性
|
|
544
549
|
*/
|
|
545
|
-
computeVisibleByFiveMode(
|
|
550
|
+
computeVisibleByFiveMode(e, i) {
|
|
546
551
|
const t = () => {
|
|
547
|
-
var
|
|
548
|
-
let
|
|
549
|
-
if (
|
|
550
|
-
return
|
|
551
|
-
if (
|
|
552
|
-
return
|
|
553
|
-
if (
|
|
554
|
-
return !
|
|
555
|
-
if (
|
|
552
|
+
var r, a;
|
|
553
|
+
let s = typeof e.visibleFiveMode == "function" ? e.visibleFiveMode(this) : e.visibleFiveMode;
|
|
554
|
+
if (s || (s = (a = (r = this.fiveState) == null ? void 0 : r.mode) != null ? a : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(s))
|
|
555
|
+
return s.includes(i);
|
|
556
|
+
if (s === "ModelLike")
|
|
557
|
+
return M(i);
|
|
558
|
+
if (s === "PanoramaLike")
|
|
559
|
+
return !V(i);
|
|
560
|
+
if (s === "all")
|
|
556
561
|
return !0;
|
|
557
|
-
if (typeof
|
|
558
|
-
return
|
|
562
|
+
if (typeof s == "string")
|
|
563
|
+
return s === i;
|
|
559
564
|
};
|
|
560
565
|
if ((() => {
|
|
561
|
-
var
|
|
562
|
-
const
|
|
563
|
-
if (
|
|
564
|
-
if (
|
|
566
|
+
var r;
|
|
567
|
+
const s = t();
|
|
568
|
+
if (L((r = this.fiveState) == null ? void 0 : r.panoIndex) && e.entryFromModel) {
|
|
569
|
+
if (M(i) && s ? this.entryFromModel = !1 : this.entryFromModel = !0, M(i))
|
|
565
570
|
return !0;
|
|
566
571
|
} else
|
|
567
572
|
this.entryFromModel = !1;
|
|
568
|
-
return
|
|
573
|
+
return s;
|
|
569
574
|
})() === !1)
|
|
570
575
|
return {
|
|
571
576
|
value: !1,
|
|
572
577
|
reason: "current mode is not included in visibleFiveMode",
|
|
573
|
-
visibleFiveMode:
|
|
574
|
-
mode:
|
|
578
|
+
visibleFiveMode: e.visibleFiveMode,
|
|
579
|
+
mode: i
|
|
575
580
|
};
|
|
576
581
|
}
|
|
577
582
|
/** 通过射线检测标签可用性 */
|
|
578
|
-
computeVisibleByIntersect(
|
|
579
|
-
var
|
|
580
|
-
const
|
|
581
|
-
if (
|
|
583
|
+
computeVisibleByIntersect(e) {
|
|
584
|
+
var n, f, m, p;
|
|
585
|
+
const i = H(H((n = this.getConfig().visibleConfig) != null ? n : {}).intersectRaycaster), t = e != null ? e : this.five.getCurrentState().panoIndex, o = V(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
|
|
586
|
+
if (o === void 0)
|
|
582
587
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
583
|
-
const
|
|
588
|
+
const s = ne(
|
|
584
589
|
(() => {
|
|
585
|
-
var
|
|
586
|
-
const
|
|
587
|
-
return
|
|
590
|
+
var u;
|
|
591
|
+
const c = (u = i.checkPoints) != null ? u : "center";
|
|
592
|
+
return c === "center" ? z(this) : c === "corner" ? N(this) : Array.isArray(c) ? c : [];
|
|
588
593
|
})()
|
|
589
594
|
);
|
|
590
|
-
let
|
|
591
|
-
for (const
|
|
592
|
-
const
|
|
595
|
+
let r = 0, a = 0;
|
|
596
|
+
for (const c of s) {
|
|
597
|
+
const u = new y.Vector3().subVectors(c, o).normalize();
|
|
593
598
|
let h;
|
|
594
|
-
|
|
595
|
-
const [
|
|
596
|
-
h =
|
|
597
|
-
const
|
|
598
|
-
if (!
|
|
599
|
+
D.set(o, u);
|
|
600
|
+
const [d] = this.fiveUtil.model.intersectRaycaster(D);
|
|
601
|
+
h = d == null ? void 0 : d.distance;
|
|
602
|
+
const v = (() => {
|
|
603
|
+
if (!B(this))
|
|
599
604
|
return;
|
|
600
|
-
const
|
|
601
|
-
var
|
|
602
|
-
return (
|
|
603
|
-
}).filter(
|
|
604
|
-
return
|
|
605
|
-
})(),
|
|
606
|
-
h = Math.min(h != null ? h : 1 / 0, (
|
|
607
|
-
const
|
|
608
|
-
if (
|
|
605
|
+
const X = this.plugin.tags.filter(B).map((G) => {
|
|
606
|
+
var j;
|
|
607
|
+
return (j = G.model) == null ? void 0 : j.object;
|
|
608
|
+
}).filter(L), [Z] = D.intersectObjects(X, !0);
|
|
609
|
+
return Z;
|
|
610
|
+
})(), C = o.distanceTo(c), F = (f = i.distanceAccuracy) != null ? f : 0.01;
|
|
611
|
+
h = Math.min(h != null ? h : 1 / 0, (m = v == null ? void 0 : v.distance) != null ? m : 1 / 0), h + F >= C ? r++ : a++;
|
|
612
|
+
const q = (p = i.needPassed) != null ? p : 1;
|
|
613
|
+
if (r >= q)
|
|
609
614
|
return { value: !0 };
|
|
610
615
|
}
|
|
611
|
-
return
|
|
616
|
+
return a === 0 ? { value: !0 } : {
|
|
612
617
|
value: !1,
|
|
613
618
|
reason: {
|
|
614
619
|
type: "intersectRaycaster check failed",
|
|
615
|
-
passedCount:
|
|
616
|
-
needPassed:
|
|
620
|
+
passedCount: r,
|
|
621
|
+
needPassed: i.needPassed,
|
|
617
622
|
model: this.fiveUtil.model.name
|
|
618
623
|
}
|
|
619
624
|
};
|
|
620
625
|
}
|
|
621
626
|
computeVisibleByFloorIndex() {
|
|
622
|
-
var
|
|
623
|
-
let
|
|
624
|
-
const
|
|
625
|
-
|
|
627
|
+
var o, s, r, a, n, f, m;
|
|
628
|
+
let e = 0;
|
|
629
|
+
const i = (o = this.fiveState) == null ? void 0 : o.panoIndex;
|
|
630
|
+
i !== void 0 ? e = (s = this.workUtil.getObserver(i)) == null ? void 0 : s.floorIndex : e = fe(
|
|
626
631
|
this.workUtil.work,
|
|
627
|
-
(
|
|
632
|
+
(m = (f = (a = (r = this.model) == null ? void 0 : r.object) == null ? void 0 : a.position) != null ? f : (n = this.mediaPlane) == null ? void 0 : n.position) != null ? m : z(this)
|
|
628
633
|
);
|
|
629
634
|
const t = this.fiveUtil.model.shownFloor;
|
|
630
635
|
return {
|
|
631
|
-
value: t === null || t ===
|
|
636
|
+
value: t === null || t === e,
|
|
632
637
|
currentFiveFloorIndex: t,
|
|
633
|
-
tagFloorIndex:
|
|
638
|
+
tagFloorIndex: e
|
|
634
639
|
};
|
|
635
640
|
}
|
|
636
641
|
/**
|
|
637
642
|
* @description 获取是否展开
|
|
638
643
|
*/
|
|
639
|
-
computeUnfoldedByPanoIndex(
|
|
640
|
-
const
|
|
641
|
-
if (
|
|
642
|
-
if (typeof
|
|
643
|
-
return
|
|
644
|
-
if (
|
|
644
|
+
computeUnfoldedByPanoIndex(e) {
|
|
645
|
+
const i = this.getConfig().unfoldedConfig;
|
|
646
|
+
if (i) {
|
|
647
|
+
if (typeof i == "function")
|
|
648
|
+
return i(this.five, { tag: this, distance: this.getDistance({ panoIndex: e }) });
|
|
649
|
+
if (i.keep === "folded")
|
|
645
650
|
return !1;
|
|
646
|
-
if (
|
|
651
|
+
if (i.keep === "unfolded")
|
|
647
652
|
return !0;
|
|
648
|
-
if (
|
|
653
|
+
if (i.unfoldDistance && k(this.getDistance({ panoIndex: e }), i.unfoldDistance) === !1)
|
|
649
654
|
return !1;
|
|
650
655
|
}
|
|
651
656
|
}
|
|
657
|
+
// 该方法有很大优化空间,这个检测显示方法不应该挂在tagBase下,做了多次不必要计算(MinimumDistance,ScreenCenter)。
|
|
652
658
|
computeUnfoldedByCamera() {
|
|
653
|
-
var
|
|
654
|
-
if (this.entryFromModel &&
|
|
659
|
+
var i, t;
|
|
660
|
+
if (this.entryFromModel && M(this.five.state.mode))
|
|
655
661
|
return !1;
|
|
656
|
-
const
|
|
657
|
-
if (
|
|
658
|
-
if (typeof
|
|
659
|
-
return
|
|
660
|
-
if (
|
|
662
|
+
const e = this.getConfig().unfoldedConfig;
|
|
663
|
+
if (e) {
|
|
664
|
+
if (typeof e == "function")
|
|
665
|
+
return e(this.five, { tag: this, distance: this.getDistance() });
|
|
666
|
+
if (e.keep === "folded")
|
|
661
667
|
return !1;
|
|
662
|
-
if (
|
|
668
|
+
if (e.keep === "unfolded")
|
|
663
669
|
return !0;
|
|
664
|
-
if (
|
|
670
|
+
if (typeof e != "object" || e.autoUnfold === void 0 || e.autoUnfold === !1 || e.autoUnfold.enable === !1 || !e.autoUnfold.strategy)
|
|
665
671
|
return;
|
|
666
|
-
if (
|
|
667
|
-
const
|
|
668
|
-
if (
|
|
672
|
+
if (e.autoUnfold.strategy === "ScreenPostion") {
|
|
673
|
+
const o = this.computeTagProject();
|
|
674
|
+
if (o && k(o.x, e.autoUnfold.autoUnfoldProjectX) === !1)
|
|
669
675
|
return !1;
|
|
670
676
|
}
|
|
671
|
-
if (
|
|
672
|
-
const
|
|
673
|
-
const
|
|
674
|
-
if (!
|
|
677
|
+
if (e.autoUnfold.strategy === "MinimumDistance") {
|
|
678
|
+
const r = this.plugin.filterPointTag.filter((n) => n.currentVisible).filter((n) => {
|
|
679
|
+
const f = this.computeTagProject();
|
|
680
|
+
if (!f)
|
|
675
681
|
return !1;
|
|
676
|
-
const { x:
|
|
677
|
-
return !(Math.abs(
|
|
678
|
-
}).map((
|
|
679
|
-
var
|
|
680
|
-
return !(typeof
|
|
681
|
-
}).map((
|
|
682
|
-
const
|
|
683
|
-
return !(
|
|
684
|
-
}).sort((
|
|
685
|
-
if (
|
|
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)
|
|
686
692
|
return !1;
|
|
687
693
|
}
|
|
688
|
-
|
|
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)))
|
|
707
|
+
return !1;
|
|
708
|
+
const h = c.autoUnfold.distance;
|
|
709
|
+
if (h) {
|
|
710
|
+
const C = p.getDistance();
|
|
711
|
+
if (k(C, h) === !1)
|
|
712
|
+
return !1;
|
|
713
|
+
}
|
|
714
|
+
return !0;
|
|
715
|
+
}).sort((p, c) => {
|
|
716
|
+
const u = new y.Vector3().fromArray(p.position), h = new y.Vector3().fromArray(c.position);
|
|
717
|
+
return a.angleTo(u.sub(this.five.camera.position)) - a.angleTo(h.sub(this.five.camera.position));
|
|
718
|
+
}).findIndex((p) => p.id === this.id);
|
|
719
|
+
if (f === -1 || f <= ((t = e.autoUnfold.maxNumber) != null ? t : 1) - 1 === !1)
|
|
720
|
+
return !1;
|
|
721
|
+
}
|
|
722
|
+
return !0;
|
|
689
723
|
}
|
|
690
724
|
}
|
|
691
725
|
computeTagProject() {
|
|
692
|
-
const
|
|
693
|
-
if (!
|
|
726
|
+
const e = this.centerPosition;
|
|
727
|
+
if (!e)
|
|
694
728
|
return;
|
|
695
|
-
const { x:
|
|
696
|
-
if (!(
|
|
697
|
-
return { x:
|
|
729
|
+
const { x: i, y: t, z: o } = e.project(this.five.camera);
|
|
730
|
+
if (!(o > 1))
|
|
731
|
+
return { x: i, y: t, z: o };
|
|
698
732
|
}
|
|
699
|
-
addObjectClickHandler(
|
|
700
|
-
if (!
|
|
733
|
+
addObjectClickHandler(e, i, t) {
|
|
734
|
+
if (!i || !this.plugin.domEvents)
|
|
701
735
|
return () => {
|
|
702
736
|
};
|
|
703
|
-
const
|
|
704
|
-
if (!
|
|
737
|
+
const o = () => !(!e.currentVisible || e.loading), s = (r) => {
|
|
738
|
+
if (!o())
|
|
705
739
|
return !1;
|
|
706
|
-
t(
|
|
740
|
+
t(r.origDomEvent);
|
|
707
741
|
};
|
|
708
|
-
return this.plugin.domEvents.addEventListener(
|
|
709
|
-
var
|
|
710
|
-
(
|
|
742
|
+
return this.plugin.domEvents.addEventListener(i, "click", s), () => {
|
|
743
|
+
var r;
|
|
744
|
+
(r = this.plugin.domEvents) == null || r.removeEventListener(i, "click", s);
|
|
711
745
|
};
|
|
712
746
|
}
|
|
713
747
|
whyHide() {
|
|
714
|
-
var
|
|
748
|
+
var i;
|
|
715
749
|
if (!this.plugin.state.enabled)
|
|
716
750
|
return { reason: `plugin.state.enabled is ${this.plugin.state.enabled}` };
|
|
717
751
|
if (!this.plugin.state.visible)
|
|
718
752
|
return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
|
|
719
753
|
if (!this.enabled)
|
|
720
754
|
return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
|
|
721
|
-
const
|
|
755
|
+
const e = U(b({}, this.computeVisible()), {
|
|
722
756
|
tagInstance: this
|
|
723
757
|
});
|
|
724
|
-
return
|
|
758
|
+
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 };
|
|
725
759
|
}
|
|
726
760
|
/**
|
|
727
761
|
* @description 销毁并移除
|
|
728
762
|
*/
|
|
729
763
|
destroy() {
|
|
730
|
-
var
|
|
731
|
-
const
|
|
732
|
-
if (
|
|
764
|
+
var i, t, o, s;
|
|
765
|
+
const e = this.plugin.tags.findIndex((r) => r.id === this.id);
|
|
766
|
+
if (e === -1) {
|
|
733
767
|
console.warn(`Destroy failed: tag ${this.id} not found`);
|
|
734
768
|
return;
|
|
735
769
|
}
|
|
736
|
-
this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((t = (
|
|
770
|
+
this._currentBlinkInstance && !this._currentBlinkInstance.completed && ((t = (i = this._currentBlinkInstance).preComplete) == null || t.call(i), this._currentBlinkInstance = void 0), this.disable(), (s = (o = this.tag3DContentSvelte) == null ? void 0 : o.dispose) == null || s.call(o), this.hooks.off(), this.cache.clear(), this.plugin.tags.splice(e, 1), this.plugin.tagsLengthWillUpdate = !0, this.plugin.hooks.emit("tagsLengthChange");
|
|
737
771
|
}
|
|
738
772
|
/**
|
|
739
773
|
* @description 判断 popover 是否在配置上启用(永久配置)
|
|
740
774
|
*/
|
|
741
775
|
isPopoverConfigEnabled() {
|
|
742
|
-
var
|
|
743
|
-
return ((
|
|
776
|
+
var e, i;
|
|
777
|
+
return ((i = (e = this.currentConfig) == null ? void 0 : e.popoverConfig) == null ? void 0 : i.enabled) === !0;
|
|
744
778
|
}
|
|
745
779
|
/**
|
|
746
780
|
* @description 判断当前标签是否允许临时 hover 弹出 popover(临时控制)
|
|
747
781
|
*/
|
|
748
782
|
isHoverEnabled() {
|
|
749
|
-
var
|
|
750
|
-
return !(((
|
|
783
|
+
var e;
|
|
784
|
+
return !(((e = this.plugin) == null ? void 0 : e.globalHoverEnabled) === !1 || this.hoverEnabled === !1);
|
|
751
785
|
}
|
|
752
786
|
}
|
|
753
787
|
export {
|
|
754
|
-
|
|
788
|
+
Wi as BaseTag
|
|
755
789
|
};
|