@realsee/dnalogel 2.26.2 → 2.27.0-dev.0
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/positionToVector3.d.ts +1 -13
- package/dist/PanoTagPlugin/controller/TagCache.d.ts +6 -3
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +21 -15
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +7 -2
- package/dist/PanoTagPlugin/controller/index.d.ts +3 -3
- package/dist/PanoTagPlugin/typings/controller.d.ts +3 -1
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +26 -4
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
- package/dist/index.cjs.js +44 -45
- package/dist/index.js +2880 -2846
- package/dist/index.umd.js +36 -37
- package/dist/shared-utils/five/FiveDomEvents.d.ts +6 -0
- package/dist/shared-utils/positionToVector3.d.ts +16 -0
- package/dist/shared-utils/safeObj.d.ts +1 -1
- package/dist/shared-utils/util.d.ts +1 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +5 -3
- package/docs/classes/CruisePluginController.html +5 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +5 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +5 -3
- package/docs/classes/Magnifier.html +5 -3
- package/docs/classes/ModelRoomLabelController.html +5 -3
- package/docs/classes/Object3DHelperController.html +5 -3
- package/docs/classes/PaintBrush.html +5 -3
- package/docs/classes/PanoMeasurePluginLine.html +5 -3
- package/docs/classes/PanoMeasurePluginModel.html +5 -3
- package/docs/classes/PanoMeasurePluginPoint.html +5 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +5 -3
- package/docs/classes/PanoTagPluginController.html +57 -48
- package/docs/classes/Util.BetterTween.html +5 -3
- package/docs/classes/Util.Interval.html +5 -3
- package/docs/classes/Util.Magnifier.html +5 -3
- package/docs/classes/Util.PointDomHelper.html +5 -3
- package/docs/classes/Util.PointHelper.html +5 -3
- package/docs/classes/Util.PointSelectorHelper.html +5 -3
- package/docs/classes/Util.Rectangle.html +5 -3
- package/docs/enums/CameraMovementEffect.html +5 -3
- package/docs/enums/ContentType.html +5 -3
- package/docs/enums/DIRECTION.html +5 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -3
- package/docs/enums/DimensionType.html +5 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +5 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -3
- package/docs/enums/PaintBrushTypeEnum.html +5 -3
- package/docs/enums/PointType.html +5 -3
- package/docs/enums/Rotation.html +5 -3
- package/docs/functions/CSS3DRenderPlugin.html +5 -3
- package/docs/functions/CameraMovementPlugin.html +5 -3
- package/docs/functions/CruisePlugin.html +5 -3
- package/docs/functions/GuideLinePlugin.html +5 -3
- package/docs/functions/ItemLabelPlugin.html +5 -3
- package/docs/functions/MapviewFloorplanPlugin.html +5 -3
- package/docs/functions/ModelChassisCompassPlugin.html +5 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -3
- package/docs/functions/ModelFloorplanPlugin.html +5 -3
- package/docs/functions/ModelItemLabelPlugin.html +5 -3
- package/docs/functions/ModelRoomLabelPlugin.html +5 -3
- package/docs/functions/ModelTVVideoPlugin.html +5 -3
- package/docs/functions/ModelViewPlugin.html +5 -3
- package/docs/functions/Object3DHelperPlugin.html +5 -3
- package/docs/functions/PanoCompassPlugin.html +5 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -3
- package/docs/functions/PanoDoorLabelPlugin.html +5 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -3
- package/docs/functions/PanoMeasurePlugin.html +5 -3
- package/docs/functions/PanoRulerPlugin.html +5 -3
- package/docs/functions/PanoRulerProPlugin.html +5 -3
- package/docs/functions/PanoSpatialTagPlugin.html +5 -3
- package/docs/functions/PanoTagPlugin.html +5 -3
- package/docs/functions/PanoVideoPlugin.html +5 -3
- package/docs/functions/PipelinePlugin.html +5 -3
- package/docs/functions/TopviewFloorplanPlugin.html +5 -3
- package/docs/functions/Util.absoluteUrl.html +5 -3
- package/docs/functions/Util.getCoordsFromClient.html +5 -3
- package/docs/functions/Util.getCoordsFromElement.html +5 -3
- package/docs/functions/Util.getFrameTime.html +5 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -3
- package/docs/functions/Util.isAbsoluteURL.html +5 -3
- package/docs/functions/Util.isModelLike.html +5 -3
- package/docs/functions/Util.isNil.html +5 -3
- package/docs/functions/Util.isPanoramaLike.html +5 -3
- package/docs/functions/Util.nextFrame.html +5 -3
- package/docs/functions/Util.notNil.html +5 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -3
- package/docs/functions/Util.tweenProgress.html +5 -3
- package/docs/functions/Util.uuid.html +5 -3
- package/docs/functions/pluginFlag.html +6 -4
- package/docs/index.html +6 -4
- package/docs/interfaces/AddTagConfig.html +7 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +5 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +5 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +5 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +5 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +5 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +5 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +5 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +5 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +5 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +5 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +5 -3
- package/docs/interfaces/EventMap.html +14 -12
- package/docs/interfaces/FloorplanBounding.html +5 -3
- package/docs/interfaces/FloorplanData.html +5 -3
- package/docs/interfaces/FloorplanEntrance.html +5 -3
- package/docs/interfaces/FloorplanExtraObject.html +5 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +5 -3
- package/docs/interfaces/FloorplanFloorData.html +5 -3
- package/docs/interfaces/FloorplanImagePosition.html +5 -3
- package/docs/interfaces/FloorplanObserver.html +5 -3
- package/docs/interfaces/FloorplanOutlineItem.html +5 -3
- package/docs/interfaces/FloorplanPosition.html +5 -3
- package/docs/interfaces/FloorplanRoomItem.html +5 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +5 -3
- package/docs/interfaces/FloorplanServerBounding.html +5 -3
- package/docs/interfaces/FloorplanServerComputedData.html +5 -3
- package/docs/interfaces/FloorplanServerData.html +5 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +5 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +5 -3
- package/docs/interfaces/FloorplanServerEntrance.html +5 -3
- package/docs/interfaces/FloorplanServerFloorData.html +5 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +5 -3
- package/docs/interfaces/FloorplanServerObserver.html +5 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +5 -3
- package/docs/interfaces/FloorplanServerPosition.html +5 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +5 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +5 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +5 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +5 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +5 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +5 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +5 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +5 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +5 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +5 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +5 -3
- package/docs/interfaces/HelperOffset.html +5 -3
- package/docs/interfaces/ImagePlaneGroup.html +5 -3
- package/docs/interfaces/ItemLabelPluginData.html +5 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +5 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +5 -3
- package/docs/interfaces/MinMax.html +5 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +5 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +5 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +5 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +5 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +5 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +5 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +5 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +5 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +5 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -3
- package/docs/interfaces/ModelViewPluginExportType.html +5 -3
- package/docs/interfaces/Object3DHelperState.html +5 -3
- package/docs/interfaces/ObjectHelperControllers.html +5 -3
- package/docs/interfaces/PaintBrushAction.html +5 -3
- package/docs/interfaces/PaintBrushConfigs.html +5 -3
- package/docs/interfaces/PaintBrushState.html +5 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +5 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -3
- package/docs/interfaces/PanoMeasureParameterType.html +5 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +5 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +5 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +5 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +5 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +5 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +5 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +5 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +5 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +5 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +5 -3
- package/docs/interfaces/PanoRulerProPluginState.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +5 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +5 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +5 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +5 -3
- package/docs/interfaces/Point.html +5 -3
- package/docs/interfaces/Room.html +5 -3
- package/docs/interfaces/RoomInfo.html +5 -3
- package/docs/interfaces/RoomLabel.html +5 -3
- package/docs/interfaces/RoomRules.html +5 -3
- package/docs/interfaces/Rooms.html +5 -3
- package/docs/interfaces/Scissor.html +5 -3
- package/docs/interfaces/State.html +6 -4
- package/docs/interfaces/TagCacheInterface.html +22 -13
- package/docs/interfaces/TagConfig.html +27 -15
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -3
- package/docs/interfaces/TagIconUrl.html +5 -3
- package/docs/interfaces/TagObjectGroup.html +5 -3
- package/docs/interfaces/TagStyle.html +5 -3
- package/docs/interfaces/Tags.html +16 -14
- package/docs/interfaces/TemporaryState.html +7 -5
- package/docs/interfaces/Util.MagnifierParameter.html +5 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +5 -3
- package/docs/interfaces/Util.PointIntersection.html +5 -3
- package/docs/modules/CruisePluginTypes.html +5 -3
- package/docs/modules/GuideLineItem.html +5 -3
- package/docs/modules/GuideLineModeItem.html +5 -3
- package/docs/modules/GuideLinePluginType.html +5 -3
- package/docs/modules/PanoVideoPluginType.html +5 -3
- package/docs/modules/Util.html +5 -3
- package/docs/modules.html +8 -4
- package/docs/types/ArrayPosition.html +5 -3
- package/docs/types/AudioAppearance.html +5 -3
- package/docs/types/AudioTagTypeConfigKey.html +5 -3
- package/docs/types/CSS3DRenderExportType.html +5 -3
- package/docs/types/CSS3DRenderPluginExportType.html +5 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -3
- package/docs/types/ClassFunctionParameters.html +5 -3
- package/docs/types/Color.html +5 -3
- package/docs/types/ContentTypeConfigKey.html +5 -3
- package/docs/types/ContentTypeConfigKeySplit.html +6 -4
- package/docs/types/ContentTypeMap.html +5 -3
- package/docs/types/Create3DDomContainerReturnType.html +5 -3
- package/docs/types/Create3DElementReturnType.html +5 -3
- package/docs/types/CruisePluginExportType.html +5 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +5 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +5 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +5 -3
- package/docs/types/DeprecatedTagProperty.html +5 -3
- package/docs/types/Direction-1.html +5 -3
- package/docs/types/Direction4.html +5 -3
- package/docs/types/ElementRenderer.html +5 -3
- package/docs/types/FloorplanRuleLabels.html +5 -3
- package/docs/types/FloorplanServerRuleLabels.html +5 -3
- package/docs/types/GuideLinePluginExportType.html +5 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -3
- package/docs/types/GuideLinePluginType.PathItem.html +5 -3
- package/docs/types/GuideLinePluginType.PluginData.html +5 -3
- package/docs/types/HelperEventMap.html +5 -3
- package/docs/types/LoadTagConfig.html +6 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -3
- package/docs/types/MediaData.html +5 -3
- package/docs/types/MediaStore.html +6 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -3
- package/docs/types/MoveArgs.html +5 -3
- package/docs/types/MoveOpts.html +5 -3
- package/docs/types/Object3DHelperEventMap.html +5 -3
- package/docs/types/ObjectFit.html +5 -3
- package/docs/types/PaintBrushEventMap.html +5 -3
- package/docs/types/PanoCompassPluginData.html +5 -3
- package/docs/types/PanoCompassPluginExportType.html +5 -3
- package/docs/types/PanoCompassPluginParameterType.html +5 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -3
- package/docs/types/PanoIndex.html +5 -3
- package/docs/types/PanoMeasurePluginEvent.html +5 -3
- package/docs/types/PanoMeasureReturnType.html +5 -3
- package/docs/types/PanoSpatialTagPluginId.html +5 -3
- package/docs/types/PanoTagPluginExportInterface.html +5 -3
- package/docs/types/PanoTagPluginParamsInterface.html +5 -3
- package/docs/types/PanoVideoPluginParameterType.html +5 -3
- package/docs/types/PanoVideoPluginReturnType.html +5 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -3
- package/docs/types/PipelinePluginParameterType.html +5 -3
- package/docs/types/PipelinePluginReturnType.html +5 -3
- package/docs/types/PlaneTag.html +6 -4
- package/docs/types/Point2DTag.html +6 -4
- package/docs/types/Point3DTag.html +6 -4
- package/docs/types/PointTag.html +6 -4
- package/docs/types/PointTagInstance.html +6 -4
- package/docs/types/Position.html +5 -3
- package/docs/types/RotateArgs.html +5 -3
- package/docs/types/RotateOpts.html +5 -3
- package/docs/types/RuleLabelsKey.html +5 -3
- package/docs/types/RuleLabelsValue.html +5 -3
- package/docs/types/StickType.html +5 -3
- package/docs/types/Tag.html +6 -4
- package/docs/types/Tag2D.html +5 -3
- package/docs/types/Tag3D.html +5 -3
- package/docs/types/TagConfigByKey.html +365 -0
- package/docs/types/TagContentType.html +5 -3
- package/docs/types/TagDimensionType.html +5 -3
- package/docs/types/TagElement.html +5 -3
- package/docs/types/TagEvents.html +6 -4
- package/docs/types/TagGLTFObject.html +5 -3
- package/docs/types/TagHooks.html +6 -4
- package/docs/types/TagId.html +5 -3
- package/docs/types/TagInstance.html +5 -3
- package/docs/types/TagPointType.html +5 -3
- package/docs/types/TagRendererMap.html +5 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -3
- package/docs/types/WorkCode.html +5 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -3
- package/docs/variables/PLUGIN.html +5 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -3
- package/docs/variables/ROOM_TYPE_MAP.html +5 -3
- package/docs/variables/defaultGlobalConfig.html +360 -0
- package/docs/variables/itemLabelPluginServerParams.html +5 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -3
- package/libs/CSS3DRenderPlugin/Controller.js +1 -1
- package/libs/CSS3DRenderPlugin/index.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/index.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +1 -13
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +4 -4
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +1 -1
- package/libs/CruisePlugin/Controller.js +6 -3
- package/libs/CruisePlugin/index.js +9 -6
- package/libs/GuideLinePlugin/Controller.js +8 -5
- package/libs/GuideLinePlugin/GuideLineItem.js +6 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +6 -3
- package/libs/GuideLinePlugin/index.js +11 -8
- 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.d.ts +6 -3
- package/libs/PanoTagPlugin/controller/TagCache.js +17 -21
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +21 -15
- package/libs/PanoTagPlugin/controller/TagComputer.js +187 -188
- package/libs/PanoTagPlugin/controller/TagRender.js +69 -66
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +7 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +160 -141
- package/libs/PanoTagPlugin/controller/index.d.ts +3 -3
- package/libs/PanoTagPlugin/controller/index.js +57 -53
- package/libs/PanoTagPlugin/index.js +14 -10
- package/libs/PanoTagPlugin/typings/controller.d.ts +3 -1
- package/libs/PanoTagPlugin/typings/index.js +6 -4
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +2 -2
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +26 -4
- package/libs/PanoTagPlugin/typings/tag/TagConfig.js +13 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -1
- package/libs/PanoTagPlugin/utils/index.js +15 -15
- package/libs/PanoTagPlugin/utils/planeNormal.js +1 -1
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -3
- package/libs/PanoTagPlugin/utils/tagPosition.js +17 -18
- 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 +111 -108
- package/libs/shared-utils/five/FiveDomEvents.d.ts +6 -0
- package/libs/shared-utils/five/FiveDomEvents.js +53 -48
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/positionToVector3.d.ts +16 -0
- package/libs/shared-utils/positionToVector3.js +12 -0
- package/libs/shared-utils/safeObj.d.ts +1 -1
- package/libs/shared-utils/util.d.ts +1 -0
- package/libs/shared-utils/util.js +6 -0
- package/package.json +1 -1
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
1
|
+
var P = Object.defineProperty;
|
|
2
|
+
var w = (h, c, e) => c in h ? P(h, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[c] = e;
|
|
3
|
+
var u = (h, c, e) => (w(h, typeof c != "symbol" ? c + "" : c, e), e);
|
|
4
|
+
import { defaultGlobalConfig as M } from "../typings/tag/TagConfig.js";
|
|
5
|
+
import { objectAssignDeepExports as y } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
6
|
+
import * as b from "three";
|
|
7
|
+
import { DefaultConfig as E } from "../tag.config.js";
|
|
8
|
+
import { anyPositionToVector3 as k, arrayPositionToVector3 as p } from "../../shared-utils/positionToVector3.js";
|
|
9
|
+
import { planeNormal as g } from "../utils/planeNormal.js";
|
|
10
|
+
import { getTagCenterPosition as D } from "../utils/tagPosition.js";
|
|
11
|
+
import { normalPositionToPositions as I } from "../utils/normalPositionToPositions.js";
|
|
12
|
+
import { TagCache as A } from "./TagCache.js";
|
|
13
|
+
import { writable as S } from "../../vendor/svelte/src/runtime/store/index.js";
|
|
14
|
+
import { isIOSWX as V } from "../../shared-utils/device.js";
|
|
15
|
+
import { isMediaPlaneTag as F, isMediaModelTag as v, isPlaneTag as L, isPoint3DTag as W } from "../utils/tag/tagCheck.js";
|
|
16
|
+
import { VideoPlane as R } from "../utils/model/mediaPlane.js";
|
|
17
|
+
import { FiveDomEvents as H } from "../../shared-utils/five/FiveDomEvents.js";
|
|
17
18
|
import "../../shared-utils/three/centerPoint.js";
|
|
18
19
|
import "../../base/BasePlugin.js";
|
|
19
20
|
import "../../shared-utils/Subscribe.js";
|
|
@@ -41,36 +42,36 @@ import "../Assets/Icon.js";
|
|
|
41
42
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
42
43
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
43
44
|
import "../../shared-utils/threex/domevents/index.js";
|
|
44
|
-
class
|
|
45
|
+
class Me extends A {
|
|
45
46
|
constructor(e) {
|
|
46
47
|
super(e);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
u(this, "tags", []);
|
|
49
|
+
u(this, "config", E);
|
|
50
|
+
u(this, "mediaStore", S({
|
|
50
51
|
currentMediaElement: null
|
|
51
52
|
}));
|
|
52
53
|
/** css3DRenderPlugin */
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
u(this, "css3DRenderPlugin");
|
|
55
|
+
u(this, "store", {
|
|
55
56
|
disposers: [],
|
|
56
57
|
disposed: !1,
|
|
57
58
|
resizeObserverDisposerAdding: !1,
|
|
58
59
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
59
60
|
});
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
u(this, "domEvents", new H(this.five));
|
|
62
|
+
u(this, "mouseInfo");
|
|
63
|
+
u(this, "preventWhenMouseDown", () => {
|
|
63
64
|
var e;
|
|
64
65
|
if ((e = this.mouseInfo) != null && e.isDown)
|
|
65
|
-
return !1;
|
|
66
|
+
return console.debug("preventWhenMouseDown 2"), !1;
|
|
66
67
|
});
|
|
67
|
-
this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement:
|
|
68
|
-
this.tags.forEach((
|
|
69
|
-
var
|
|
70
|
-
if (
|
|
71
|
-
if (!((
|
|
68
|
+
this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: t }) => {
|
|
69
|
+
this.tags.forEach((o) => {
|
|
70
|
+
var i;
|
|
71
|
+
if (o.mediaPlane instanceof R && t !== o.mediaPlane.videoInstance) {
|
|
72
|
+
if (!((i = o.mediaPlane.videoInstance) != null && i.src) || t === o.mediaPlane.videoInstance)
|
|
72
73
|
return;
|
|
73
|
-
|
|
74
|
+
o.mediaPlane.pause();
|
|
74
75
|
}
|
|
75
76
|
});
|
|
76
77
|
}), this.store.disposers.push(() => {
|
|
@@ -81,12 +82,12 @@ class Pe extends b {
|
|
|
81
82
|
return this.five.currentMode === "Panorama";
|
|
82
83
|
}
|
|
83
84
|
getTagById(e) {
|
|
84
|
-
const
|
|
85
|
-
if (!
|
|
86
|
-
console.warn(`
|
|
85
|
+
const t = this.tags.find((o) => o.id === e);
|
|
86
|
+
if (!t) {
|
|
87
|
+
console.warn(`getTagById Error: can't find tag id: ${e}`);
|
|
87
88
|
return;
|
|
88
89
|
}
|
|
89
|
-
return
|
|
90
|
+
return t;
|
|
90
91
|
}
|
|
91
92
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
92
93
|
pauseCurrentMedia() {
|
|
@@ -94,191 +95,209 @@ class Pe extends b {
|
|
|
94
95
|
}
|
|
95
96
|
/**
|
|
96
97
|
* @description: 获取merge后的配置
|
|
97
|
-
* TODO: 缓存
|
|
98
98
|
*/
|
|
99
|
-
getTagConfig(e) {
|
|
100
|
-
var
|
|
99
|
+
getTagConfig(e, t = { useCache: !0 }) {
|
|
100
|
+
var l, a, r;
|
|
101
101
|
if (!e)
|
|
102
|
-
return (
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
102
|
+
return (l = this.config.globalConfig) != null ? l : {};
|
|
103
|
+
if (t.useCache && ((a = e.config) != null && a.isMerged))
|
|
104
|
+
return e.config;
|
|
105
|
+
const o = {};
|
|
106
|
+
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((d) => {
|
|
107
|
+
const n = d;
|
|
108
|
+
if (o[n])
|
|
107
109
|
return;
|
|
108
|
-
const
|
|
109
|
-
if (
|
|
110
|
-
const [
|
|
111
|
-
e.contentType ===
|
|
110
|
+
const s = n.split("-");
|
|
111
|
+
if (s.length === 1) {
|
|
112
|
+
const [f] = s;
|
|
113
|
+
e.contentType === f && (o[n] = this.config.contentTypeConfig[n]);
|
|
112
114
|
}
|
|
113
|
-
if (
|
|
114
|
-
const [
|
|
115
|
-
|
|
115
|
+
if (s.length === 2) {
|
|
116
|
+
const [f = "Any", m = "Any"] = s;
|
|
117
|
+
f === "Mixin" && e.contentType === m && (o[n] = this.config.contentTypeConfig[n]), (e.stickType === f || f === "Any") && (e.contentType === m || m === "Any") && (o[n] = this.config.contentTypeConfig[n]);
|
|
116
118
|
}
|
|
117
|
-
if (
|
|
118
|
-
const [
|
|
119
|
-
if (
|
|
120
|
-
const
|
|
121
|
-
(
|
|
119
|
+
if (s.length === 3) {
|
|
120
|
+
const [f = "Any", m, C] = s;
|
|
121
|
+
if (m === "Audio" && e.contentType === "Audio") {
|
|
122
|
+
const T = e;
|
|
123
|
+
(T.stickType === f || f === "Any") && T.data.appearance === C && (o[n] = this.config.contentTypeConfig[n]);
|
|
122
124
|
}
|
|
123
125
|
}
|
|
124
126
|
});
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
+
const i = y(
|
|
128
|
+
{},
|
|
129
|
+
M,
|
|
130
|
+
this.config.globalConfig,
|
|
131
|
+
...Object.values(o),
|
|
132
|
+
e.config
|
|
133
|
+
);
|
|
134
|
+
return 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 })), typeof i.visibleConfig == "object" && i.visibleConfig.keep && (i.visibleConfig = { keep: i.visibleConfig.keep, visibleFiveMode: (r = i.visibleConfig) == null ? void 0 : r.visibleFiveMode }), i.isMerged = !0, i;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* @description 获取标签当前状态
|
|
138
|
+
*/
|
|
139
|
+
getCurrentVisibleState(e) {
|
|
140
|
+
return !(!this.state.enabled || !this.state.visible || !e.enabled || !e.state.visible);
|
|
127
141
|
}
|
|
128
142
|
loadVideoFirstFrame() {
|
|
129
|
-
|
|
143
|
+
V && this.hooks.emit("loadVideoFirstFrame");
|
|
130
144
|
}
|
|
131
145
|
updateTagConfig(e) {
|
|
132
|
-
e != null && e.force && this.clearCache(), this.tags.forEach((
|
|
133
|
-
const
|
|
134
|
-
|
|
146
|
+
e != null && e.force && this.clearCache(), this.tags.forEach((t) => {
|
|
147
|
+
const o = this.getTagConfig(t, { useCache: !1 });
|
|
148
|
+
t.config = o, t.data = y({}, o.initialData, t.data);
|
|
135
149
|
});
|
|
136
150
|
}
|
|
137
|
-
can(e,
|
|
138
|
-
const
|
|
139
|
-
if (!
|
|
151
|
+
can(e, t) {
|
|
152
|
+
const o = t, i = this.getTagConfig(o);
|
|
153
|
+
if (!i || typeof i != "object")
|
|
140
154
|
return !0;
|
|
141
155
|
if (e === "show" || e === "hide") {
|
|
142
|
-
if (!
|
|
156
|
+
if (!i.visibleConfig || typeof i.visibleConfig != "object")
|
|
143
157
|
return !0;
|
|
144
|
-
if (e === "show" &&
|
|
158
|
+
if (e === "show" && i.visibleConfig.keep === "hidden" || e === "hide" && (i.visibleConfig.keep === "visible" || i.visibleConfig.alwaysShowWhenMovePano))
|
|
145
159
|
return !1;
|
|
146
160
|
}
|
|
147
161
|
if (e === "fold" || e === "unfold") {
|
|
148
|
-
if (!
|
|
162
|
+
if (!i.unfoldedConfig || typeof i.unfoldedConfig != "object")
|
|
149
163
|
return !0;
|
|
150
|
-
if (e === "fold" &&
|
|
164
|
+
if (e === "fold" && i.unfoldedConfig.keep === "unfolded" || e === "unfold" && i.unfoldedConfig.keep === "folded")
|
|
151
165
|
return !1;
|
|
152
166
|
}
|
|
153
167
|
return !0;
|
|
154
168
|
}
|
|
155
169
|
getRenderType(e) {
|
|
156
|
-
const
|
|
170
|
+
const t = (() => {
|
|
157
171
|
if (e.stickType === "3DPoint")
|
|
158
172
|
return "Dom";
|
|
159
|
-
const
|
|
160
|
-
if (!
|
|
173
|
+
const o = this.getTagConfig(e);
|
|
174
|
+
if (!o || typeof o != "object" || !o.renderType)
|
|
161
175
|
return;
|
|
162
|
-
const
|
|
163
|
-
if (!(!
|
|
164
|
-
if (
|
|
165
|
-
if (
|
|
176
|
+
const i = e.data.mediaData;
|
|
177
|
+
if (!(!i || i.length === 0) && o.renderType === "Mesh") {
|
|
178
|
+
if (F(e)) {
|
|
179
|
+
if (i.length === 1 && (i[0].type === "Image" || i[0].type === "Video"))
|
|
166
180
|
return "Mesh";
|
|
167
|
-
} else if (
|
|
168
|
-
return
|
|
181
|
+
} else if (v(e))
|
|
182
|
+
return i.length === 1 && i[0].type === "Image" ? "Mesh" : "BehindDom";
|
|
169
183
|
}
|
|
170
184
|
})();
|
|
171
|
-
return
|
|
185
|
+
return t != null ? t : "Dom";
|
|
172
186
|
}
|
|
173
187
|
/**
|
|
174
188
|
* @description: 获取角度
|
|
175
189
|
*/
|
|
176
|
-
getAngle(e,
|
|
177
|
-
var
|
|
178
|
-
const
|
|
179
|
-
if (
|
|
180
|
-
throw new Error(`getDistance(): fivePanoIndex is ${
|
|
181
|
-
const
|
|
182
|
-
if (
|
|
183
|
-
return
|
|
190
|
+
getAngle(e, t) {
|
|
191
|
+
var l, a;
|
|
192
|
+
const o = t != null ? t : this.five.getCurrentState().panoIndex;
|
|
193
|
+
if (o === void 0)
|
|
194
|
+
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
195
|
+
const i = this.getCache({ panoIndex: t, id: e.id });
|
|
196
|
+
if (i.angle !== void 0)
|
|
197
|
+
return i.angle;
|
|
184
198
|
{
|
|
185
|
-
const r = (a = (
|
|
199
|
+
const r = (a = (l = this.five.work) == null ? void 0 : l.observers[o]) == null ? void 0 : a.position;
|
|
186
200
|
if (r === void 0)
|
|
187
201
|
throw new Error(`getAngleRange(): observerPosition is ${r}`);
|
|
188
|
-
const
|
|
189
|
-
if (!
|
|
202
|
+
const d = (() => e.stickType === "3DPoint" ? k(e.normal) : g(e.position))();
|
|
203
|
+
if (!d)
|
|
190
204
|
return;
|
|
191
|
-
const
|
|
192
|
-
if (!
|
|
205
|
+
const n = D(e);
|
|
206
|
+
if (!n)
|
|
193
207
|
return;
|
|
194
|
-
const
|
|
195
|
-
return
|
|
208
|
+
const s = new b.Vector3().copy(r).sub(n), f = d.angleTo(s) * 180 / Math.PI;
|
|
209
|
+
return i.angle = f, i.angle;
|
|
196
210
|
}
|
|
197
211
|
}
|
|
198
212
|
/**
|
|
199
213
|
* @description: 获取距离
|
|
200
214
|
*/
|
|
201
|
-
getDistance(e,
|
|
202
|
-
var
|
|
203
|
-
const
|
|
204
|
-
if (
|
|
205
|
-
throw new Error(`getDistance(): fivePanoIndex is ${
|
|
206
|
-
const
|
|
207
|
-
if (
|
|
208
|
-
return
|
|
215
|
+
getDistance(e, t) {
|
|
216
|
+
var l, a;
|
|
217
|
+
const o = t != null ? t : this.five.getCurrentState().panoIndex;
|
|
218
|
+
if (o === void 0)
|
|
219
|
+
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
220
|
+
const i = this.getCache({ panoIndex: t, id: e.id });
|
|
221
|
+
if (i.distance !== void 0)
|
|
222
|
+
return i.distance;
|
|
209
223
|
{
|
|
210
|
-
const r = (a = (
|
|
224
|
+
const r = (a = (l = this.five.work) == null ? void 0 : l.observers[o]) == null ? void 0 : a.position;
|
|
211
225
|
if (r === void 0)
|
|
212
226
|
throw new Error(`getDistance(): observerPosition is ${r}`);
|
|
213
|
-
const
|
|
214
|
-
if (!
|
|
227
|
+
const d = D(e);
|
|
228
|
+
if (!d)
|
|
215
229
|
return -1;
|
|
216
|
-
const
|
|
217
|
-
return
|
|
230
|
+
const n = r.distanceTo(d);
|
|
231
|
+
return i.distance = n, n;
|
|
218
232
|
}
|
|
219
233
|
}
|
|
220
234
|
getPositions(e) {
|
|
221
|
-
if (
|
|
235
|
+
if (L(e))
|
|
222
236
|
return e.position;
|
|
223
|
-
if (
|
|
237
|
+
if (v(e))
|
|
224
238
|
return e.data.mediaPosition;
|
|
225
|
-
if (
|
|
226
|
-
return
|
|
239
|
+
if (W(e))
|
|
240
|
+
return I(this.five.camera.position, p(e.position), p(e.normal));
|
|
227
241
|
}
|
|
228
|
-
addObjectClickHandler(e,
|
|
229
|
-
if (!
|
|
242
|
+
addObjectClickHandler(e, t, o) {
|
|
243
|
+
if (!t || !this.domEvents)
|
|
230
244
|
return () => {
|
|
231
245
|
};
|
|
232
|
-
const
|
|
233
|
-
if (!
|
|
246
|
+
const i = () => !(!this.getCurrentVisibleState(e) || v(e) && !e.mediaVisible), l = (n) => {
|
|
247
|
+
if (!i()) {
|
|
234
248
|
this.mouseInfo = void 0;
|
|
235
249
|
return;
|
|
236
250
|
}
|
|
237
|
-
const
|
|
251
|
+
const s = n.origDomEvent;
|
|
238
252
|
this.mouseInfo = {
|
|
239
|
-
x:
|
|
240
|
-
y:
|
|
253
|
+
x: s.clientX,
|
|
254
|
+
y: s.clientY,
|
|
241
255
|
isDown: !0,
|
|
242
256
|
mouseDownTimestamp: Date.now()
|
|
243
257
|
};
|
|
244
|
-
}, a = (
|
|
245
|
-
if (!
|
|
258
|
+
}, a = (n) => {
|
|
259
|
+
if (!i()) {
|
|
246
260
|
this.mouseInfo = void 0;
|
|
247
261
|
return;
|
|
248
262
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
263
|
+
if (!this.mouseInfo)
|
|
264
|
+
return;
|
|
265
|
+
const s = n.origDomEvent;
|
|
266
|
+
this.mouseInfo.isDown && this.mouseInfo.x === s.clientX && this.mouseInfo.y === s.clientY && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && o(s), this.mouseInfo = void 0;
|
|
267
|
+
}, r = (n) => {
|
|
268
|
+
if (!i()) {
|
|
253
269
|
this.mouseInfo = void 0;
|
|
254
270
|
return;
|
|
255
271
|
}
|
|
256
|
-
const
|
|
272
|
+
const s = n.origDomEvent;
|
|
257
273
|
this.mouseInfo = {
|
|
258
|
-
x: Math.floor(
|
|
259
|
-
y: Math.floor(
|
|
274
|
+
x: Math.floor(s.touches[0].clientX),
|
|
275
|
+
y: Math.floor(s.touches[0].clientY),
|
|
260
276
|
isDown: !0,
|
|
261
277
|
mouseDownTimestamp: Date.now()
|
|
262
278
|
};
|
|
263
|
-
},
|
|
264
|
-
if (!
|
|
279
|
+
}, d = (n) => {
|
|
280
|
+
if (!i()) {
|
|
265
281
|
this.mouseInfo = void 0;
|
|
266
282
|
return;
|
|
267
283
|
}
|
|
268
|
-
|
|
269
|
-
|
|
284
|
+
if (!this.mouseInfo)
|
|
285
|
+
return;
|
|
286
|
+
const s = n.origDomEvent;
|
|
287
|
+
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;
|
|
270
288
|
};
|
|
271
|
-
return this.domEvents.addEventListener(
|
|
272
|
-
|
|
289
|
+
return this.domEvents.addEventListener(t, "mousedown", l, !1), this.domEvents.addEventListener(t, "mouseup", a, !1), this.domEvents.addEventListener(t, "touchstart", r, !1), this.domEvents.addEventListener(t, "touchend", d, !1), () => {
|
|
290
|
+
var n, s, f, m;
|
|
291
|
+
this.mouseInfo = void 0, (n = this.domEvents) == null || n.removeEventListener(t, "mousedown", l), (s = this.domEvents) == null || s.removeEventListener(t, "mouseup", a), (f = this.domEvents) == null || f.removeEventListener(t, "touchstart", r), (m = this.domEvents) == null || m.removeEventListener(t, "touchend", d);
|
|
273
292
|
};
|
|
274
293
|
}
|
|
275
294
|
getTagNormal(e) {
|
|
276
295
|
if (e.normal)
|
|
277
|
-
return
|
|
296
|
+
return p(e.normal);
|
|
278
297
|
if (e.stickType === "Plane")
|
|
279
|
-
return
|
|
298
|
+
return g(e.position);
|
|
280
299
|
if (e.stickType === "Model")
|
|
281
|
-
return
|
|
300
|
+
return g(this.getPositions(e));
|
|
282
301
|
}
|
|
283
302
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
284
303
|
get filterPointTag() {
|
|
@@ -303,10 +322,10 @@ class Pe extends b {
|
|
|
303
322
|
}
|
|
304
323
|
get filterCSS3DTag() {
|
|
305
324
|
return this.tags.filter(
|
|
306
|
-
(
|
|
307
|
-
).filter((
|
|
308
|
-
const
|
|
309
|
-
return
|
|
325
|
+
(t) => t.stickType === "3DPoint" || t.stickType === "Plane" || t.stickType === "Model" && t.contentType === "MediaModel"
|
|
326
|
+
).filter((t) => {
|
|
327
|
+
const o = this.getRenderType(t);
|
|
328
|
+
return o === "BehindDom" || o === "Dom";
|
|
310
329
|
});
|
|
311
330
|
}
|
|
312
331
|
/**
|
|
@@ -318,5 +337,5 @@ class Pe extends b {
|
|
|
318
337
|
}
|
|
319
338
|
}
|
|
320
339
|
export {
|
|
321
|
-
|
|
340
|
+
Me as TagUtil
|
|
322
341
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Tag, TagId, Tags, TagInstance, State, AddTagConfig, LoadTagConfig, ContentTypeConfigKey
|
|
2
|
-
import type {
|
|
1
|
+
import type { Tag, TagId, Tags, TagInstance, State, AddTagConfig, LoadTagConfig, ContentTypeConfigKey } from '../typings';
|
|
2
|
+
import type { TagConfigByKey, TagContentType } from '..';
|
|
3
3
|
import type { ArrayPosition } from '../typings';
|
|
4
4
|
import { type Five } from '@realsee/five';
|
|
5
5
|
import { TagRender } from './TagRender';
|
|
@@ -38,7 +38,7 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
38
38
|
/**
|
|
39
39
|
* @description: 改变类型配置
|
|
40
40
|
*/
|
|
41
|
-
changeContentTypeConfig<T extends ContentTypeConfigKey>(key: ContentTypeConfigKey, contentTypeConfig:
|
|
41
|
+
changeContentTypeConfig<T extends ContentTypeConfigKey>(key: ContentTypeConfigKey, contentTypeConfig: TagConfigByKey<T>, merge?: boolean): void;
|
|
42
42
|
show(params?: {
|
|
43
43
|
userAction?: boolean;
|
|
44
44
|
withAnimation?: boolean;
|