@realsee/dnalogel 2.27.0-dev.0 → 2.27.0-dev.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/dist/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +1 -5
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +0 -2
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +13 -5
- package/dist/PanoTagPlugin/utils/index.d.ts +1 -1
- package/dist/index.cjs.js +10 -10
- package/dist/index.js +136 -140
- package/dist/index.umd.js +10 -10
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/CruisePluginController.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
- package/docs/classes/Magnifier.html +3 -3
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/Object3DHelperController.html +3 -3
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoMeasurePluginLine.html +3 -3
- package/docs/classes/PanoMeasurePluginModel.html +3 -3
- package/docs/classes/PanoMeasurePluginPoint.html +3 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
- package/docs/classes/PanoTagPluginController.html +25 -25
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.Magnifier.html +3 -3
- package/docs/classes/Util.PointDomHelper.html +3 -3
- package/docs/classes/Util.PointHelper.html +3 -3
- package/docs/classes/Util.PointSelectorHelper.html +3 -3
- package/docs/classes/Util.Rectangle.html +3 -3
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +3 -3
- package/docs/enums/DIRECTION.html +3 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/PaintBrushTypeEnum.html +3 -3
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +3 -3
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/PipelinePlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +3 -3
- package/docs/functions/Util.getCoordsFromElement.html +3 -3
- package/docs/functions/Util.getFrameTime.html +3 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
- package/docs/functions/Util.isAbsoluteURL.html +3 -3
- package/docs/functions/Util.isModelLike.html +3 -3
- package/docs/functions/Util.isNil.html +3 -3
- package/docs/functions/Util.isPanoramaLike.html +3 -3
- package/docs/functions/Util.nextFrame.html +3 -3
- package/docs/functions/Util.notNil.html +3 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +3 -3
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
- package/docs/interfaces/EventMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +4 -4
- package/docs/interfaces/TagCacheInterface.html +11 -18
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/GuideLineItem.html +3 -3
- package/docs/modules/GuideLineModeItem.html +3 -3
- package/docs/modules/GuideLinePluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.html +3 -3
- package/docs/types/AudioTagTypeConfigKey.html +3 -3
- package/docs/types/CSS3DRenderExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
- package/docs/types/ClassFunctionParameters.html +3 -3
- package/docs/types/Color.html +3 -3
- package/docs/types/ContentTypeConfigKey.html +3 -3
- package/docs/types/ContentTypeConfigKeySplit.html +3 -3
- package/docs/types/ContentTypeMap.html +3 -3
- package/docs/types/Create3DDomContainerReturnType.html +3 -3
- package/docs/types/Create3DElementReturnType.html +3 -3
- package/docs/types/CruisePluginExportType.html +3 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
- package/docs/types/DeprecatedTagProperty.html +3 -3
- package/docs/types/Direction-1.html +3 -3
- package/docs/types/Direction4.html +3 -3
- package/docs/types/ElementRenderer.html +3 -3
- package/docs/types/FloorplanRuleLabels.html +3 -3
- package/docs/types/FloorplanServerRuleLabels.html +3 -3
- package/docs/types/GuideLinePluginExportType.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
- package/docs/types/GuideLinePluginType.PathItem.html +3 -3
- package/docs/types/GuideLinePluginType.PluginData.html +3 -3
- package/docs/types/HelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/MediaData.html +3 -3
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
- package/docs/types/MoveArgs.html +3 -3
- package/docs/types/MoveOpts.html +3 -3
- package/docs/types/Object3DHelperEventMap.html +3 -3
- package/docs/types/ObjectFit.html +3 -3
- package/docs/types/PaintBrushEventMap.html +3 -3
- package/docs/types/PanoCompassPluginData.html +3 -3
- package/docs/types/PanoCompassPluginExportType.html +3 -3
- package/docs/types/PanoCompassPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
- package/docs/types/PanoIndex.html +3 -3
- package/docs/types/PanoMeasurePluginEvent.html +3 -3
- package/docs/types/PanoMeasureReturnType.html +3 -3
- package/docs/types/PanoSpatialTagPluginId.html +3 -3
- package/docs/types/PanoTagPluginExportInterface.html +3 -3
- package/docs/types/PanoTagPluginParamsInterface.html +3 -3
- package/docs/types/PanoVideoPluginParameterType.html +3 -3
- package/docs/types/PanoVideoPluginReturnType.html +3 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
- package/docs/types/PipelinePluginParameterType.html +3 -3
- package/docs/types/PipelinePluginReturnType.html +3 -3
- package/docs/types/PlaneTag.html +3 -3
- package/docs/types/Point2DTag.html +3 -3
- package/docs/types/Point3DTag.html +3 -3
- package/docs/types/PointTag.html +3 -3
- package/docs/types/PointTagInstance.html +4 -4
- package/docs/types/Position.html +3 -3
- package/docs/types/RotateArgs.html +3 -3
- package/docs/types/RotateOpts.html +3 -3
- package/docs/types/RuleLabelsKey.html +3 -3
- package/docs/types/RuleLabelsValue.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +3 -3
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagConfigByKey.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +3 -3
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/defaultGlobalConfig.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/CSS3DRenderPlugin/Controller.js +1 -1
- package/libs/CSS3DRenderPlugin/index.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +5 -5
- package/libs/CruisePlugin/Controller.js +1 -1
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
- package/libs/ModelTVVideoPlugin/index.js +1 -1
- package/libs/Object3DHelperPlugin/Controller.js +1 -1
- package/libs/Object3DHelperPlugin/index.js +1 -1
- package/libs/PanoCompassPlugin/Controller.js +1 -1
- package/libs/PanoCompassPlugin/index.js +1 -1
- package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
- package/libs/PanoDoorLabelPlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/Components/Controller0.js +1 -1
- package/libs/PanoMeasurePlugin/Components/Controller1.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
- package/libs/PanoMeasurePlugin/Model/area.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -1
- package/libs/PanoMeasurePlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +1 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
- package/libs/PanoSpatialTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
- package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
- package/libs/PanoTagPlugin/controller/TagCache.js +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +26 -26
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +1 -5
- package/libs/PanoTagPlugin/controller/TagUtil.js +50 -53
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/index.js +37 -37
- package/libs/PanoTagPlugin/typings/controller.d.ts +0 -2
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +13 -5
- package/libs/PanoTagPlugin/utils/index.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/index.js +31 -34
- package/libs/PanoVideoPlugin/Controller.js +1 -1
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +1 -1
- package/libs/PipelinePlugin/Controller.js +1 -1
- package/libs/PipelinePlugin/index.js +1 -1
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +1 -1
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +1 -1
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
- package/libs/index.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -28,13 +28,13 @@ import "./utils/geometryUtil.js";
|
|
|
28
28
|
import "hammerjs";
|
|
29
29
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
30
30
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
31
|
+
import "../shared-utils/positionToVector3.js";
|
|
31
32
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
32
33
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
33
34
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
34
35
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
35
36
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
36
37
|
import "../shared-utils/Subscribe.js";
|
|
37
|
-
import "../shared-utils/positionToVector3.js";
|
|
38
38
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
39
39
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
40
40
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
@@ -22,13 +22,13 @@ import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
22
22
|
import { isNil as P } from "../../../shared-utils/isNil.js";
|
|
23
23
|
import "../isNDCPointInScreen.js";
|
|
24
24
|
import "../../../shared-utils/three/centerPoint.js";
|
|
25
|
+
import "../../../shared-utils/positionToVector3.js";
|
|
25
26
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
26
27
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
27
28
|
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
28
29
|
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
29
30
|
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
30
31
|
import "../../../shared-utils/Subscribe.js";
|
|
31
|
-
import "../../../shared-utils/positionToVector3.js";
|
|
32
32
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
33
33
|
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
34
34
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
@@ -7,13 +7,13 @@ import { pluginStyle as Eo } from "./style.js";
|
|
|
7
7
|
import { render as jo } from "../shared-utils/tinyEJSrender.js";
|
|
8
8
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
9
9
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
10
|
+
import "../shared-utils/positionToVector3.js";
|
|
10
11
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
11
12
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
12
13
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
13
14
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
14
15
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
15
16
|
import "../shared-utils/Subscribe.js";
|
|
16
|
-
import "../shared-utils/positionToVector3.js";
|
|
17
17
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
18
18
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
19
19
|
import "../shared-utils/three/centerPoint.js";
|
|
@@ -4,13 +4,13 @@ import "@realsee/five";
|
|
|
4
4
|
import "../CSS3DRenderPlugin/index.js";
|
|
5
5
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
6
6
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
7
|
+
import "../shared-utils/positionToVector3.js";
|
|
7
8
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
8
9
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
9
10
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
10
11
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
11
12
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
12
13
|
import "../shared-utils/Subscribe.js";
|
|
13
|
-
import "../shared-utils/positionToVector3.js";
|
|
14
14
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
15
15
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
16
16
|
import "../shared-utils/three/centerPoint.js";
|
|
@@ -19,13 +19,13 @@ import "../../../vendor/svelte/src/runtime/internal/loop.js";
|
|
|
19
19
|
import "../../../vendor/svelte/src/runtime/internal/style_manager.js";
|
|
20
20
|
import "../../../vendor/svelte/src/runtime/internal/lifecycle.js";
|
|
21
21
|
import "../../../vendor/svelte/src/shared/version.js";
|
|
22
|
+
import "../../../shared-utils/positionToVector3.js";
|
|
22
23
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
23
24
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
24
25
|
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
25
26
|
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
26
27
|
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
27
28
|
import "../../../shared-utils/Subscribe.js";
|
|
28
|
-
import "../../../shared-utils/positionToVector3.js";
|
|
29
29
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
30
30
|
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
31
31
|
import "../../../shared-utils/three/centerPoint.js";
|
|
@@ -79,13 +79,13 @@ import "hammerjs";
|
|
|
79
79
|
import "@realsee/five";
|
|
80
80
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
81
81
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
82
|
+
import "../../../shared-utils/positionToVector3.js";
|
|
82
83
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
83
84
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
84
85
|
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
85
86
|
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
86
87
|
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
87
88
|
import "../../../shared-utils/Subscribe.js";
|
|
88
|
-
import "../../../shared-utils/positionToVector3.js";
|
|
89
89
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
90
90
|
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
91
91
|
import "../../../shared-utils/three/centerPoint.js";
|
|
@@ -74,13 +74,13 @@ import "hammerjs";
|
|
|
74
74
|
import "@realsee/five";
|
|
75
75
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
76
76
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
77
|
+
import "../../shared-utils/positionToVector3.js";
|
|
77
78
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
78
79
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
79
80
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
80
81
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
81
82
|
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
82
83
|
import "../../shared-utils/Subscribe.js";
|
|
83
|
-
import "../../shared-utils/positionToVector3.js";
|
|
84
84
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
85
85
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
86
86
|
import "../../shared-utils/three/centerPoint.js";
|
|
@@ -76,13 +76,13 @@ import "hammerjs";
|
|
|
76
76
|
import "@realsee/five";
|
|
77
77
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
78
78
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
79
|
+
import "../../shared-utils/positionToVector3.js";
|
|
79
80
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
80
81
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
81
82
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
82
83
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
83
84
|
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
84
85
|
import "../../shared-utils/Subscribe.js";
|
|
85
|
-
import "../../shared-utils/positionToVector3.js";
|
|
86
86
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
87
87
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
88
88
|
import "../../shared-utils/three/centerPoint.js";
|
|
@@ -8,12 +8,12 @@ import "three";
|
|
|
8
8
|
import "@realsee/five";
|
|
9
9
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
10
10
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
11
|
+
import "../../shared-utils/positionToVector3.js";
|
|
11
12
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
12
13
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
13
14
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
14
15
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
15
16
|
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
16
|
-
import "../../shared-utils/positionToVector3.js";
|
|
17
17
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
18
18
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
19
19
|
import "../../shared-utils/three/centerPoint.js";
|
|
@@ -74,9 +74,9 @@ class Ne extends q {
|
|
|
74
74
|
{
|
|
75
75
|
const s = (() => {
|
|
76
76
|
var f, d, m;
|
|
77
|
-
const o = (f = e.config.visibleConfig) != null ? f : {},
|
|
77
|
+
const o = (f = e.config.visibleConfig) != null ? f : {}, l = this.getDistance(e);
|
|
78
78
|
if (typeof o == "function")
|
|
79
|
-
return { value: o(this.five, { tag: e, distance:
|
|
79
|
+
return { value: o(this.five, { tag: e, distance: l }), reason: "config function result" };
|
|
80
80
|
if (o.keep === "hidden")
|
|
81
81
|
return { value: !1, reason: "config.keep is hidden" };
|
|
82
82
|
if (o.keep === "visible")
|
|
@@ -93,10 +93,10 @@ class Ne extends q {
|
|
|
93
93
|
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${n}, tag.panoIndex: ${(m = e.fiveState) == null ? void 0 : m.panoIndex}`
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
if (o.visibleDistance !== void 0 && o.visibleDistance !== "unLimited" && p(
|
|
96
|
+
if (o.visibleDistance !== void 0 && o.visibleDistance !== "unLimited" && p(l, o.visibleDistance) === !1)
|
|
97
97
|
return {
|
|
98
98
|
value: !1,
|
|
99
|
-
reason: `distance is not in visibleDistance. distance: ${
|
|
99
|
+
reason: `distance is not in visibleDistance. distance: ${l}, visibleDistance: ${o.visibleDistance}`
|
|
100
100
|
};
|
|
101
101
|
if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
|
|
102
102
|
if (n === void 0)
|
|
@@ -113,7 +113,7 @@ class Ne extends q {
|
|
|
113
113
|
if (p(r, o.angleRange) === !1)
|
|
114
114
|
return { value: !1, reason: `angle is not in angleRange. angle: ${r}, angleRange: ${o.angleRange}` };
|
|
115
115
|
}
|
|
116
|
-
return
|
|
116
|
+
return {
|
|
117
117
|
value: !0,
|
|
118
118
|
reason: "all check passed"
|
|
119
119
|
};
|
|
@@ -133,8 +133,8 @@ class Ne extends q {
|
|
|
133
133
|
return t === "Panorama";
|
|
134
134
|
}
|
|
135
135
|
getVisible(e, i) {
|
|
136
|
-
var
|
|
137
|
-
const t = (
|
|
136
|
+
var l, f;
|
|
137
|
+
const t = (l = i == null ? void 0 : i.panoIndex) != null ? l : this.five.getCurrentState().panoIndex, n = (f = i == null ? void 0 : i.mode) != null ? f : this.five.getCurrentState().mode, s = this.getVisibleByFiveMode(e), o = n === "Panorama" ? this.getVisibleByPanoIndex(e, t) : !0;
|
|
138
138
|
return s && o;
|
|
139
139
|
}
|
|
140
140
|
/** 获取当前点位上模型中的多媒体是否应该展示 */
|
|
@@ -172,8 +172,8 @@ class Ne extends q {
|
|
|
172
172
|
return !1;
|
|
173
173
|
})();
|
|
174
174
|
n.unfolded = o;
|
|
175
|
-
const
|
|
176
|
-
return
|
|
175
|
+
const l = this.getUnfoldedByCamera(e);
|
|
176
|
+
return l !== void 0 ? l : n.unfolded;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
/**
|
|
@@ -193,24 +193,24 @@ class Ne extends q {
|
|
|
193
193
|
if (s.autoUnfold === void 0 || s.autoUnfold === !1 || s.autoUnfold.enable === !1 || !s.autoUnfold.strategy)
|
|
194
194
|
return;
|
|
195
195
|
if (s.autoUnfold.strategy === "ScreenPostion") {
|
|
196
|
-
const
|
|
197
|
-
if (
|
|
196
|
+
const l = this.getTagProject(e);
|
|
197
|
+
if (l && p(l.x, s.autoUnfold.autoUnfoldProjectX) === !1)
|
|
198
198
|
return !1;
|
|
199
199
|
}
|
|
200
200
|
if (s.autoUnfold.strategy === "MinimumDistance") {
|
|
201
201
|
const d = this.filterPointTag.filter((r) => this.getVisible(r)).filter((r) => {
|
|
202
|
-
const
|
|
203
|
-
if (!
|
|
202
|
+
const a = this.getTagProject(r);
|
|
203
|
+
if (!a)
|
|
204
204
|
return !1;
|
|
205
|
-
const { x: u, y: v, z: b } =
|
|
205
|
+
const { x: u, y: v, z: b } = a;
|
|
206
206
|
return !(Math.abs(b) > 1 || Math.abs(u) > 1 || Math.abs(v) > 1);
|
|
207
|
-
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig:
|
|
207
|
+
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: a }) => {
|
|
208
208
|
var u, v;
|
|
209
|
-
return !(typeof
|
|
210
|
-
}).map((r) => U(M({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig:
|
|
209
|
+
return !(typeof a != "object" || a.keep || a.autoUnfold === !1 || ((u = a.autoUnfold) == null ? void 0 : u.enable) === !1 || ((v = a.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance");
|
|
210
|
+
}).map((r) => U(M({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: a }) => {
|
|
211
211
|
var u, v;
|
|
212
|
-
return !(r === void 0 || typeof
|
|
213
|
-
}).sort((r,
|
|
212
|
+
return !(r === void 0 || typeof a != "object" || a.autoUnfold === !1 || ((u = a.autoUnfold) == null ? void 0 : u.enable) === !1 || ((v = a.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance" || a.autoUnfold.distance && p(r, a.autoUnfold.distance) === !1);
|
|
213
|
+
}).sort((r, a) => r.distance - a.distance).findIndex((r) => r.id === e.id);
|
|
214
214
|
if (d === -1 || d <= ((o = s.autoUnfold.maxNumber) != null ? o : 1) - 1 === !1)
|
|
215
215
|
return !1;
|
|
216
216
|
}
|
|
@@ -299,7 +299,7 @@ class Ne extends q {
|
|
|
299
299
|
}
|
|
300
300
|
/** 通过射线检测标签可用性 */
|
|
301
301
|
getTagEnableByIntersect(e, i) {
|
|
302
|
-
var d, m, r,
|
|
302
|
+
var d, m, r, a, u, v;
|
|
303
303
|
const t = k(k((d = this.getTagConfig(e).visibleConfig) != null ? d : {}).intersectRaycaster), n = i != null ? i : this.five.getCurrentState().panoIndex, s = (m = this.five.work.observers[n]) == null ? void 0 : m.position;
|
|
304
304
|
if (s === void 0)
|
|
305
305
|
return { value: !1, reason: { type: "observerPosition is undefined", fivePanoIndex: n } };
|
|
@@ -310,7 +310,7 @@ class Ne extends q {
|
|
|
310
310
|
return b === "center" ? x(e) : b === "corner" ? N(e) : Array.isArray(b) ? b : [];
|
|
311
311
|
})()
|
|
312
312
|
);
|
|
313
|
-
let
|
|
313
|
+
let l = 0, f = 0;
|
|
314
314
|
for (const b of o) {
|
|
315
315
|
const h = new B.Vector3().subVectors(b, s).normalize();
|
|
316
316
|
I.set(s, h);
|
|
@@ -323,28 +323,28 @@ class Ne extends q {
|
|
|
323
323
|
}).filter(O), [E] = I.intersectObjects(S, !0);
|
|
324
324
|
return E;
|
|
325
325
|
})(), j = (r = t.distanceAccuracy) != null ? r : 0.01;
|
|
326
|
-
Math.min((
|
|
326
|
+
Math.min((a = g == null ? void 0 : g.distance) != null ? a : 1 / 0, (u = y == null ? void 0 : y.distance) != null ? u : 1 / 0) + j >= D ? l++ : f++;
|
|
327
327
|
const R = (v = t.needPassed) != null ? v : 1;
|
|
328
|
-
if (
|
|
328
|
+
if (l >= R)
|
|
329
329
|
return { value: !0 };
|
|
330
330
|
}
|
|
331
331
|
return f === 0 ? { value: !0 } : {
|
|
332
332
|
value: !1,
|
|
333
333
|
reason: {
|
|
334
334
|
type: "intersectRaycaster check failed",
|
|
335
|
-
passedCount:
|
|
335
|
+
passedCount: l,
|
|
336
336
|
needPassed: t.needPassed
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
/** 检测是否匹配当前楼层 */
|
|
341
341
|
getVisibleByFloorIndex(e) {
|
|
342
|
-
var s, o,
|
|
342
|
+
var s, o, l, f, d, m, r;
|
|
343
343
|
let i = 0;
|
|
344
344
|
const t = (s = e.fiveState) == null ? void 0 : s.panoIndex;
|
|
345
345
|
t !== void 0 ? i = (o = this.five.work.observers[t]) == null ? void 0 : o.floorIndex : i = L(
|
|
346
346
|
this.five.work.observers,
|
|
347
|
-
(r = (m = (f = (
|
|
347
|
+
(r = (m = (f = (l = e.model) == null ? void 0 : l.object) == null ? void 0 : f.position) != null ? m : (d = e.mediaPlane) == null ? void 0 : d.position) != null ? r : x(e)
|
|
348
348
|
);
|
|
349
349
|
const n = this.five.model.shownFloor;
|
|
350
350
|
return n === null || n === i;
|
|
@@ -39,9 +39,7 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
39
39
|
*/
|
|
40
40
|
getCurrentVisibleState(tag: TagInstance): boolean;
|
|
41
41
|
protected loadVideoFirstFrame(): void;
|
|
42
|
-
protected updateTagConfig(
|
|
43
|
-
force?: boolean;
|
|
44
|
-
}): void;
|
|
42
|
+
protected updateTagConfig(): void;
|
|
45
43
|
protected can<T extends Tag>(action: 'show' | 'hide' | 'fold' | 'unfold', paramsTag: T): boolean;
|
|
46
44
|
protected getRenderType(tag: TagInstance): 'Dom' | 'Mesh' | 'BehindDom';
|
|
47
45
|
/**
|
|
@@ -58,10 +56,8 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
58
56
|
protected getTagNormal(tag: TagInstance): THREE.Vector3 | undefined;
|
|
59
57
|
protected get filterPointTag(): PointTagInstance[];
|
|
60
58
|
protected get filter2DPointTag(): TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "2DPoint">[];
|
|
61
|
-
protected get filter3DPointTag(): TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">[];
|
|
62
59
|
protected get filterImagePlane(): TagInstance<"MediaPlane", "Plane">[];
|
|
63
60
|
protected get filterMediaModel(): TagInstance<"MediaModel", "Model">[];
|
|
64
|
-
protected get filterModelTag(): TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model">[];
|
|
65
61
|
protected get filterCSS3DTag(): (TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Plane"> | TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model"> | TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">)[];
|
|
66
62
|
/**
|
|
67
63
|
* @description 检查是否已经销毁
|
|
@@ -2,19 +2,19 @@ var P = Object.defineProperty;
|
|
|
2
2
|
var w = (h, c, e) => c in h ? P(h, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[c] = e;
|
|
3
3
|
var u = (h, c, e) => (w(h, typeof c != "symbol" ? c + "" : c, e), e);
|
|
4
4
|
import { defaultGlobalConfig as M } from "../typings/tag/TagConfig.js";
|
|
5
|
-
import { objectAssignDeepExports as
|
|
5
|
+
import { objectAssignDeepExports as p } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
6
6
|
import * as b from "three";
|
|
7
7
|
import { DefaultConfig as E } from "../tag.config.js";
|
|
8
|
-
import { anyPositionToVector3 as k, arrayPositionToVector3 as
|
|
9
|
-
import { planeNormal as
|
|
8
|
+
import { anyPositionToVector3 as k, arrayPositionToVector3 as g } from "../../shared-utils/positionToVector3.js";
|
|
9
|
+
import { planeNormal as v } from "../utils/planeNormal.js";
|
|
10
10
|
import { getTagCenterPosition as D } from "../utils/tagPosition.js";
|
|
11
11
|
import { normalPositionToPositions as I } from "../utils/normalPositionToPositions.js";
|
|
12
|
-
import { TagCache as
|
|
13
|
-
import { writable as
|
|
12
|
+
import { TagCache as S } from "./TagCache.js";
|
|
13
|
+
import { writable as A } from "../../vendor/svelte/src/runtime/store/index.js";
|
|
14
14
|
import { isIOSWX as V } from "../../shared-utils/device.js";
|
|
15
|
-
import { isMediaPlaneTag as F, isMediaModelTag as
|
|
16
|
-
import { VideoPlane as
|
|
17
|
-
import { FiveDomEvents as
|
|
15
|
+
import { isMediaPlaneTag as F, isMediaModelTag as T, isPlaneTag as L, isPoint3DTag as O } from "../utils/tag/tagCheck.js";
|
|
16
|
+
import { VideoPlane as W } from "../utils/model/mediaPlane.js";
|
|
17
|
+
import { FiveDomEvents as R } from "../../shared-utils/five/FiveDomEvents.js";
|
|
18
18
|
import "../../shared-utils/three/centerPoint.js";
|
|
19
19
|
import "../../base/BasePlugin.js";
|
|
20
20
|
import "../../shared-utils/Subscribe.js";
|
|
@@ -42,12 +42,12 @@ import "../Assets/Icon.js";
|
|
|
42
42
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
43
43
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
44
44
|
import "../../shared-utils/threex/domevents/index.js";
|
|
45
|
-
class Me extends
|
|
45
|
+
class Me extends S {
|
|
46
46
|
constructor(e) {
|
|
47
47
|
super(e);
|
|
48
48
|
u(this, "tags", []);
|
|
49
49
|
u(this, "config", E);
|
|
50
|
-
u(this, "mediaStore",
|
|
50
|
+
u(this, "mediaStore", A({
|
|
51
51
|
currentMediaElement: null
|
|
52
52
|
}));
|
|
53
53
|
/** css3DRenderPlugin */
|
|
@@ -58,7 +58,7 @@ class Me extends A {
|
|
|
58
58
|
resizeObserverDisposerAdding: !1,
|
|
59
59
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
60
60
|
});
|
|
61
|
-
u(this, "domEvents", new
|
|
61
|
+
u(this, "domEvents", new R(this.five));
|
|
62
62
|
u(this, "mouseInfo");
|
|
63
63
|
u(this, "preventWhenMouseDown", () => {
|
|
64
64
|
var e;
|
|
@@ -68,7 +68,7 @@ class Me extends A {
|
|
|
68
68
|
this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: t }) => {
|
|
69
69
|
this.tags.forEach((o) => {
|
|
70
70
|
var i;
|
|
71
|
-
if (o.mediaPlane instanceof
|
|
71
|
+
if (o.mediaPlane instanceof W && t !== o.mediaPlane.videoInstance) {
|
|
72
72
|
if (!((i = o.mediaPlane.videoInstance) != null && i.src) || t === o.mediaPlane.videoInstance)
|
|
73
73
|
return;
|
|
74
74
|
o.mediaPlane.pause();
|
|
@@ -97,14 +97,14 @@ class Me extends A {
|
|
|
97
97
|
* @description: 获取merge后的配置
|
|
98
98
|
*/
|
|
99
99
|
getTagConfig(e, t = { useCache: !0 }) {
|
|
100
|
-
var
|
|
100
|
+
var a, d, r;
|
|
101
101
|
if (!e)
|
|
102
|
-
return (
|
|
103
|
-
if (t.useCache && ((
|
|
102
|
+
return (a = this.config.globalConfig) != null ? a : {};
|
|
103
|
+
if (t.useCache && ((d = e.config) != null && d.isMerged))
|
|
104
104
|
return e.config;
|
|
105
105
|
const o = {};
|
|
106
|
-
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((
|
|
107
|
-
const n =
|
|
106
|
+
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((l) => {
|
|
107
|
+
const n = l;
|
|
108
108
|
if (o[n])
|
|
109
109
|
return;
|
|
110
110
|
const s = n.split("-");
|
|
@@ -119,19 +119,19 @@ class Me extends A {
|
|
|
119
119
|
if (s.length === 3) {
|
|
120
120
|
const [f = "Any", m, C] = s;
|
|
121
121
|
if (m === "Audio" && e.contentType === "Audio") {
|
|
122
|
-
const
|
|
123
|
-
(
|
|
122
|
+
const y = e;
|
|
123
|
+
(y.stickType === f || f === "Any") && y.data.appearance === C && (o[n] = this.config.contentTypeConfig[n]);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
|
-
const i =
|
|
127
|
+
const i = p(
|
|
128
128
|
{},
|
|
129
129
|
M,
|
|
130
130
|
this.config.globalConfig,
|
|
131
131
|
...Object.values(o),
|
|
132
132
|
e.config
|
|
133
133
|
);
|
|
134
|
-
return typeof i.
|
|
134
|
+
return typeof i.visibleConfig == "object" && i.visibleConfig.keep && (i.visibleConfig = { keep: i.visibleConfig.keep, visibleFiveMode: (r = i.visibleConfig) == null ? void 0 : r.visibleFiveMode }), typeof i.unfoldedConfig == "object" && (i.unfoldedConfig.disableFold && (i.unfoldedConfig = { keep: "unfolded" }), i.unfoldedConfig.disableUnfold && (i.unfoldedConfig = { keep: "folded" }), i.unfoldedConfig.keep && (i.unfoldedConfig = { keep: i.unfoldedConfig.keep })), i.isMerged = !0, i;
|
|
135
135
|
}
|
|
136
136
|
/**
|
|
137
137
|
* @description 获取标签当前状态
|
|
@@ -142,10 +142,13 @@ class Me extends A {
|
|
|
142
142
|
loadVideoFirstFrame() {
|
|
143
143
|
V && this.hooks.emit("loadVideoFirstFrame");
|
|
144
144
|
}
|
|
145
|
-
updateTagConfig(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
t
|
|
145
|
+
updateTagConfig() {
|
|
146
|
+
this.clearCache(), this.tags.forEach((e) => {
|
|
147
|
+
var i;
|
|
148
|
+
const t = this.getTagConfig(e, { useCache: !1 });
|
|
149
|
+
e.config = t;
|
|
150
|
+
const o = JSON.parse(JSON.stringify(e.data));
|
|
151
|
+
e.data = (i = t.initialData) != null && i.important ? p(e.data, o, t.initialData) : p(e.data, t.initialData, o);
|
|
149
152
|
});
|
|
150
153
|
}
|
|
151
154
|
can(e, t) {
|
|
@@ -178,7 +181,7 @@ class Me extends A {
|
|
|
178
181
|
if (F(e)) {
|
|
179
182
|
if (i.length === 1 && (i[0].type === "Image" || i[0].type === "Video"))
|
|
180
183
|
return "Mesh";
|
|
181
|
-
} else if (
|
|
184
|
+
} else if (T(e))
|
|
182
185
|
return i.length === 1 && i[0].type === "Image" ? "Mesh" : "BehindDom";
|
|
183
186
|
}
|
|
184
187
|
})();
|
|
@@ -188,7 +191,7 @@ class Me extends A {
|
|
|
188
191
|
* @description: 获取角度
|
|
189
192
|
*/
|
|
190
193
|
getAngle(e, t) {
|
|
191
|
-
var
|
|
194
|
+
var a, d;
|
|
192
195
|
const o = t != null ? t : this.five.getCurrentState().panoIndex;
|
|
193
196
|
if (o === void 0)
|
|
194
197
|
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
@@ -196,16 +199,16 @@ class Me extends A {
|
|
|
196
199
|
if (i.angle !== void 0)
|
|
197
200
|
return i.angle;
|
|
198
201
|
{
|
|
199
|
-
const r = (
|
|
202
|
+
const r = (d = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : d.position;
|
|
200
203
|
if (r === void 0)
|
|
201
204
|
throw new Error(`getAngleRange(): observerPosition is ${r}`);
|
|
202
|
-
const
|
|
203
|
-
if (!
|
|
205
|
+
const l = (() => e.stickType === "3DPoint" ? k(e.normal) : v(e.position))();
|
|
206
|
+
if (!l)
|
|
204
207
|
return;
|
|
205
208
|
const n = D(e);
|
|
206
209
|
if (!n)
|
|
207
210
|
return;
|
|
208
|
-
const s = new b.Vector3().copy(r).sub(n), f =
|
|
211
|
+
const s = new b.Vector3().copy(r).sub(n), f = l.angleTo(s) * 180 / Math.PI;
|
|
209
212
|
return i.angle = f, i.angle;
|
|
210
213
|
}
|
|
211
214
|
}
|
|
@@ -213,7 +216,7 @@ class Me extends A {
|
|
|
213
216
|
* @description: 获取距离
|
|
214
217
|
*/
|
|
215
218
|
getDistance(e, t) {
|
|
216
|
-
var
|
|
219
|
+
var a, d;
|
|
217
220
|
const o = t != null ? t : this.five.getCurrentState().panoIndex;
|
|
218
221
|
if (o === void 0)
|
|
219
222
|
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
@@ -221,29 +224,29 @@ class Me extends A {
|
|
|
221
224
|
if (i.distance !== void 0)
|
|
222
225
|
return i.distance;
|
|
223
226
|
{
|
|
224
|
-
const r = (
|
|
227
|
+
const r = (d = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : d.position;
|
|
225
228
|
if (r === void 0)
|
|
226
229
|
throw new Error(`getDistance(): observerPosition is ${r}`);
|
|
227
|
-
const
|
|
228
|
-
if (!
|
|
230
|
+
const l = D(e);
|
|
231
|
+
if (!l)
|
|
229
232
|
return -1;
|
|
230
|
-
const n = r.distanceTo(
|
|
233
|
+
const n = r.distanceTo(l);
|
|
231
234
|
return i.distance = n, n;
|
|
232
235
|
}
|
|
233
236
|
}
|
|
234
237
|
getPositions(e) {
|
|
235
238
|
if (L(e))
|
|
236
239
|
return e.position;
|
|
237
|
-
if (
|
|
240
|
+
if (T(e))
|
|
238
241
|
return e.data.mediaPosition;
|
|
239
|
-
if (
|
|
240
|
-
return I(this.five.camera.position,
|
|
242
|
+
if (O(e))
|
|
243
|
+
return I(this.five.camera.position, g(e.position), g(e.normal));
|
|
241
244
|
}
|
|
242
245
|
addObjectClickHandler(e, t, o) {
|
|
243
246
|
if (!t || !this.domEvents)
|
|
244
247
|
return () => {
|
|
245
248
|
};
|
|
246
|
-
const i = () => !(!this.getCurrentVisibleState(e) ||
|
|
249
|
+
const i = () => !(!this.getCurrentVisibleState(e) || T(e) && !e.mediaVisible), a = (n) => {
|
|
247
250
|
if (!i()) {
|
|
248
251
|
this.mouseInfo = void 0;
|
|
249
252
|
return;
|
|
@@ -255,7 +258,7 @@ class Me extends A {
|
|
|
255
258
|
isDown: !0,
|
|
256
259
|
mouseDownTimestamp: Date.now()
|
|
257
260
|
};
|
|
258
|
-
},
|
|
261
|
+
}, d = (n) => {
|
|
259
262
|
if (!i()) {
|
|
260
263
|
this.mouseInfo = void 0;
|
|
261
264
|
return;
|
|
@@ -276,7 +279,7 @@ class Me extends A {
|
|
|
276
279
|
isDown: !0,
|
|
277
280
|
mouseDownTimestamp: Date.now()
|
|
278
281
|
};
|
|
279
|
-
},
|
|
282
|
+
}, l = (n) => {
|
|
280
283
|
if (!i()) {
|
|
281
284
|
this.mouseInfo = void 0;
|
|
282
285
|
return;
|
|
@@ -286,18 +289,18 @@ class Me extends A {
|
|
|
286
289
|
const s = n.origDomEvent;
|
|
287
290
|
this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(s.changedTouches[s.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(s.changedTouches[s.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && o(s), this.mouseInfo = void 0;
|
|
288
291
|
};
|
|
289
|
-
return this.domEvents.addEventListener(t, "mousedown",
|
|
292
|
+
return this.domEvents.addEventListener(t, "mousedown", a, !1), this.domEvents.addEventListener(t, "mouseup", d, !1), this.domEvents.addEventListener(t, "touchstart", r, !1), this.domEvents.addEventListener(t, "touchend", l, !1), () => {
|
|
290
293
|
var n, s, f, m;
|
|
291
|
-
this.mouseInfo = void 0, (n = this.domEvents) == null || n.removeEventListener(t, "mousedown",
|
|
294
|
+
this.mouseInfo = void 0, (n = this.domEvents) == null || n.removeEventListener(t, "mousedown", a), (s = this.domEvents) == null || s.removeEventListener(t, "mouseup", d), (f = this.domEvents) == null || f.removeEventListener(t, "touchstart", r), (m = this.domEvents) == null || m.removeEventListener(t, "touchend", l);
|
|
292
295
|
};
|
|
293
296
|
}
|
|
294
297
|
getTagNormal(e) {
|
|
295
298
|
if (e.normal)
|
|
296
|
-
return
|
|
299
|
+
return g(e.normal);
|
|
297
300
|
if (e.stickType === "Plane")
|
|
298
|
-
return
|
|
301
|
+
return v(e.position);
|
|
299
302
|
if (e.stickType === "Model")
|
|
300
|
-
return
|
|
303
|
+
return v(this.getPositions(e));
|
|
301
304
|
}
|
|
302
305
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
303
306
|
get filterPointTag() {
|
|
@@ -306,9 +309,6 @@ class Me extends A {
|
|
|
306
309
|
get filter2DPointTag() {
|
|
307
310
|
return this.tags.filter((e) => e.stickType === "2DPoint").filter((e) => e.position);
|
|
308
311
|
}
|
|
309
|
-
get filter3DPointTag() {
|
|
310
|
-
return this.tags.filter((e) => e.stickType === "3DPoint").filter((e) => e.position);
|
|
311
|
-
}
|
|
312
312
|
get filterImagePlane() {
|
|
313
313
|
return this.tags.filter(
|
|
314
314
|
(e) => e.contentType === "MediaPlane" && e.stickType === "Plane" && this.getRenderType(e) === "Mesh"
|
|
@@ -317,9 +317,6 @@ class Me extends A {
|
|
|
317
317
|
get filterMediaModel() {
|
|
318
318
|
return this.tags.filter((e) => e.stickType === "Model" && e.contentType === "MediaModel");
|
|
319
319
|
}
|
|
320
|
-
get filterModelTag() {
|
|
321
|
-
return this.tags.filter((e) => e.stickType === "Model");
|
|
322
|
-
}
|
|
323
320
|
get filterCSS3DTag() {
|
|
324
321
|
return this.tags.filter(
|
|
325
322
|
(t) => t.stickType === "3DPoint" || t.stickType === "Plane" || t.stickType === "Model" && t.contentType === "MediaModel"
|
|
@@ -38,7 +38,7 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
38
38
|
/**
|
|
39
39
|
* @description: 改变类型配置
|
|
40
40
|
*/
|
|
41
|
-
changeContentTypeConfig<T extends ContentTypeConfigKey>(key:
|
|
41
|
+
changeContentTypeConfig<T extends ContentTypeConfigKey>(key: T, contentTypeConfig: TagConfigByKey<T>, merge?: boolean): void;
|
|
42
42
|
show(params?: {
|
|
43
43
|
userAction?: boolean;
|
|
44
44
|
withAnimation?: boolean;
|