@realsee/dnalogel 3.35.2 → 3.36.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/CHANGELOG.md +3 -0
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +6 -5
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +11 -6
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/debounce.d.ts +1 -0
- package/dist/index.cjs.js +54 -54
- package/dist/index.js +3364 -3342
- package/dist/index.umd.js +44 -44
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
- package/docs/classes/ModelMakerPluginInstance.html +3 -3
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/MoveController.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 +48 -40
- package/docs/classes/Sculpt.html +3 -3
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.LineSegments.html +3 -3
- package/docs/classes/Util.Magnifier.html +3 -3
- package/docs/classes/Util.Object3D.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/classes/WalkController.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/AreaMakerPlugin.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/CurrentPanoImagePlugin.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/ModelMakerPlugin.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/MovePlugin.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/SculptPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +3 -3
- package/docs/functions/Util.blink.html +3 -3
- package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
- package/docs/functions/Util.equal.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.reblink.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 +3 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.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.GuildLineConfig.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/CurrentPanoImagePluginType.Config.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- 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.GuideLineMeshStyle.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/ModelMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.State.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 +3 -3
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +3 -3
- 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 +3 -3
- package/docs/interfaces/Util.BlinkAnimeOptions.html +3 -3
- 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/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/CurrentPanoImagePluginType.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/ModelMakerPluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/SculptData.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/AddObject3DHelperConfig.html +3 -3
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
- package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
- package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.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/CurrentPanoImagePluginExportType.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/InternalHelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +3 -3
- 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 +3 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelId.html +3 -3
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -3
- package/docs/types/ModelMakerPluginType.ItemType.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 +3 -3
- package/docs/types/Position.html +3 -3
- package/docs/types/PositionFrom.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/ScaleCallback.html +3 -3
- package/docs/types/ScalePosition.html +3 -3
- package/docs/types/SculptData.BoxData.html +3 -3
- package/docs/types/SculptData.CircleData.html +3 -3
- package/docs/types/SculptData.CylinderData.html +3 -3
- package/docs/types/SculptData.PointData.html +3 -3
- package/docs/types/SculptData.PolygonData.html +3 -3
- package/docs/types/SculptData.PolylineData.html +3 -3
- package/docs/types/SculptData.PrismData.html +3 -3
- package/docs/types/SculptData.RectangleData.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/TagContentTypeMapping.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +3 -3
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- 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 +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/PanoTagPlugin/controller/TagComputer.js +2 -0
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +6 -5
- package/libs/PanoTagPlugin/controller/TagRender.js +162 -158
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +11 -6
- package/libs/PanoTagPlugin/controller/TagUtil.js +111 -107
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/index.js +54 -49
- package/libs/PanoTagPlugin/utils/debounce.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/debounce.js +13 -4
- package/libs/PanoTagPlugin/utils/index.js +7 -6
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var Z = Object.defineProperty, q = Object.defineProperties;
|
|
2
2
|
var K = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var L = Object.getOwnPropertySymbols;
|
|
4
4
|
var Q = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var _ = (l, s, e) => s in l ? Z(l, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[s] = e, D = (l, s) => {
|
|
6
6
|
for (var e in s || (s = {}))
|
|
7
|
-
Q.call(s, e) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
Y.call(s, e) &&
|
|
7
|
+
Q.call(s, e) && _(l, e, s[e]);
|
|
8
|
+
if (L)
|
|
9
|
+
for (var e of L(s))
|
|
10
|
+
Y.call(s, e) && _(l, e, s[e]);
|
|
11
11
|
return l;
|
|
12
12
|
}, U = (l, s) => q(l, K(s));
|
|
13
|
-
var
|
|
13
|
+
var f = (l, s, e) => (_(l, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
14
|
import { defaultGlobalConfig as ee } from "../typings/tag/TagConfig.js";
|
|
15
|
-
import { objectAssignDeepExports as
|
|
15
|
+
import { objectAssignDeepExports as P } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
16
|
import * as ie from "three";
|
|
17
17
|
import { DefaultConfig as te } from "../tag.config.js";
|
|
18
|
-
import { anyPositionToVector3 as
|
|
19
|
-
import { planeNormal as
|
|
18
|
+
import { anyPositionToVector3 as y } from "../../shared-utils/positionToVector3.js";
|
|
19
|
+
import { planeNormal as E } from "../utils/planeNormal.js";
|
|
20
20
|
import { getTagCenterPosition as V } from "../utils/tagPosition.js";
|
|
21
21
|
import { normalPositionToPositions as oe } from "../utils/normalPositionToPositions.js";
|
|
22
22
|
import { TagCache as ne } from "./TagCache.js";
|
|
@@ -24,18 +24,18 @@ import { writable as re } from "../../vendor/svelte/store/index.js";
|
|
|
24
24
|
import { isIOSWX as se } from "../../shared-utils/device.js";
|
|
25
25
|
import { CSS3DRenderPlugin as fe } from "../../CSS3DRenderPlugin/index.js";
|
|
26
26
|
import { Five as ae } from "@realsee/five";
|
|
27
|
-
import { isMediaPlaneTag as
|
|
27
|
+
import { isMediaPlaneTag as ce, isMediaModelTag as B, isPlaneTag as le, isPoint3DTag as de } from "../utils/tag/tagCheck.js";
|
|
28
28
|
import { VideoPlane as ue } from "../utils/model/mediaPlane.js";
|
|
29
29
|
import { FiveDomEvents as me } from "../../shared-utils/five/FiveDomEvents.js";
|
|
30
30
|
import N from "../utils/tag/adaptConfig.js";
|
|
31
|
-
import { isPanoramaLike as
|
|
31
|
+
import { isPanoramaLike as w, isModelLike as z } from "../../shared-utils/five/mode.js";
|
|
32
32
|
import "hammerjs";
|
|
33
33
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
34
34
|
import "animejs";
|
|
35
35
|
import { entries as $ } from "../../shared-utils/typescript/entries.js";
|
|
36
36
|
import { getUrlExt as H } from "../../shared-utils/url/getUrl.js";
|
|
37
37
|
import { transformPosition as J } from "../../shared-utils/five/transformPosition.js";
|
|
38
|
-
import { WorkUtil as
|
|
38
|
+
import { WorkUtil as he } from "../../shared-utils/Utils/WorkUtil.js";
|
|
39
39
|
import "../../shared-utils/three/centerPoint.js";
|
|
40
40
|
import "../../base/BasePlugin.js";
|
|
41
41
|
import "../../shared-utils/Subscribe.js";
|
|
@@ -66,37 +66,32 @@ import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
|
66
66
|
import "../../shared-utils/three/getNormal.js";
|
|
67
67
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
68
68
|
import "../../shared-utils/Utils/BaseUtil.js";
|
|
69
|
-
class
|
|
69
|
+
class gi extends ne {
|
|
70
70
|
constructor(e) {
|
|
71
71
|
super(e);
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
d(this, "workUtil", new pe(this.five));
|
|
72
|
+
f(this, "tags", []);
|
|
73
|
+
f(this, "config", te);
|
|
74
|
+
f(this, "workUtil", new he(this.five));
|
|
76
75
|
/** 插件参数 */
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
f(this, "params");
|
|
77
|
+
f(this, "mediaStore", re({
|
|
79
78
|
currentMediaElement: null
|
|
80
79
|
}));
|
|
81
|
-
|
|
80
|
+
f(this, "store", {
|
|
82
81
|
disposers: [],
|
|
83
82
|
disposed: !1,
|
|
84
83
|
resizeObserverDisposerAdding: !1,
|
|
85
84
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
86
85
|
});
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
// )[]
|
|
97
|
-
d(this, "_container", null);
|
|
98
|
-
d(this, "_css3DRenderPlugin");
|
|
99
|
-
d(this, "loadVideoFirstFrame", () => {
|
|
86
|
+
f(this, "domEvents", new me(this.five));
|
|
87
|
+
f(this, "_cache_pointTag");
|
|
88
|
+
f(this, "_cache_2DPointTag");
|
|
89
|
+
f(this, "_cache_imagePlane");
|
|
90
|
+
f(this, "_cache_mediaModel");
|
|
91
|
+
f(this, "_cache_css3DTag");
|
|
92
|
+
f(this, "_container", null);
|
|
93
|
+
f(this, "_css3DRenderPlugin");
|
|
94
|
+
f(this, "loadVideoFirstFrame", () => {
|
|
100
95
|
se && this.hooks.emit("loadVideoFirstFrame");
|
|
101
96
|
});
|
|
102
97
|
this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
@@ -117,6 +112,17 @@ class hi extends ne {
|
|
|
117
112
|
set container(e) {
|
|
118
113
|
this._container = e;
|
|
119
114
|
}
|
|
115
|
+
// eslint-disable-next-line accessor-pairs
|
|
116
|
+
set tagsLengthWillUpdate(e) {
|
|
117
|
+
e && (this._cache_pointTag = this.tags.filter((i) => i.stickType === "2DPoint" || i.stickType === "3DPoint").filter((i) => i.position), this._cache_2DPointTag = this.tags.filter((i) => i.stickType === "2DPoint").filter((i) => i.position), this._cache_imagePlane = this.tags.filter(
|
|
118
|
+
(i) => i.contentType === "MediaPlane" && i.stickType === "Plane" && this.getRenderType(i) === "Mesh"
|
|
119
|
+
), this._cache_mediaModel = this.tags.filter((i) => i.stickType === "Model" && i.contentType === "MediaModel"), this._cache_css3DTag = this.tags.filter(
|
|
120
|
+
(i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model" && i.contentType === "MediaModel"
|
|
121
|
+
).filter((i) => {
|
|
122
|
+
const o = this.getRenderType(i);
|
|
123
|
+
return o === "BehindDom" || o === "Dom";
|
|
124
|
+
}));
|
|
125
|
+
}
|
|
120
126
|
set workCode(e) {
|
|
121
127
|
this.workUtil.workCode = e;
|
|
122
128
|
}
|
|
@@ -132,6 +138,26 @@ class hi extends ne {
|
|
|
132
138
|
}
|
|
133
139
|
return this._css3DRenderPlugin;
|
|
134
140
|
}
|
|
141
|
+
get filterPointTag() {
|
|
142
|
+
var e;
|
|
143
|
+
return (e = this._cache_pointTag) != null ? e : [];
|
|
144
|
+
}
|
|
145
|
+
get filter2DPointTag() {
|
|
146
|
+
var e;
|
|
147
|
+
return (e = this._cache_2DPointTag) != null ? e : [];
|
|
148
|
+
}
|
|
149
|
+
get filterImagePlane() {
|
|
150
|
+
var e;
|
|
151
|
+
return (e = this._cache_imagePlane) != null ? e : [];
|
|
152
|
+
}
|
|
153
|
+
get filterMediaModel() {
|
|
154
|
+
var e;
|
|
155
|
+
return (e = this._cache_mediaModel) != null ? e : [];
|
|
156
|
+
}
|
|
157
|
+
get filterCSS3DTag() {
|
|
158
|
+
var e;
|
|
159
|
+
return (e = this._cache_css3DTag) != null ? e : [];
|
|
160
|
+
}
|
|
135
161
|
getTagById(e) {
|
|
136
162
|
const i = this.tags.find((o) => o.id === e);
|
|
137
163
|
if (!i) {
|
|
@@ -148,9 +174,9 @@ class hi extends ne {
|
|
|
148
174
|
* @description 获取标签配置
|
|
149
175
|
*/
|
|
150
176
|
getTagConfig(e, i) {
|
|
151
|
-
var r,
|
|
152
|
-
const o = this.calculateTagConfig(e, { useCache: i == null ? void 0 : i.useCache }), t = (r = i == null ? void 0 : i.fiveMode) != null ? r : this.five.getCurrentState().mode, n = (
|
|
153
|
-
return (
|
|
177
|
+
var r, a, d;
|
|
178
|
+
const o = this.calculateTagConfig(e, { useCache: i == null ? void 0 : i.useCache }), t = (r = i == null ? void 0 : i.fiveMode) != null ? r : this.five.getCurrentState().mode, n = (a = o.configWithFiveMode) == null ? void 0 : a[t];
|
|
179
|
+
return (d = n != null ? n : o) != null ? d : {};
|
|
154
180
|
}
|
|
155
181
|
/**
|
|
156
182
|
* @description 获取标签当前状态
|
|
@@ -166,7 +192,7 @@ class hi extends ne {
|
|
|
166
192
|
const o = this.getTagConfig(e);
|
|
167
193
|
if (e.config = o, e.config.initialData) {
|
|
168
194
|
const n = JSON.parse(JSON.stringify(e.data));
|
|
169
|
-
e.data = (t = o.initialData) != null && t.important ?
|
|
195
|
+
e.data = (t = o.initialData) != null && t.important ? P(e.data, n, o.initialData) : P(e.data, o.initialData, n);
|
|
170
196
|
}
|
|
171
197
|
});
|
|
172
198
|
}
|
|
@@ -197,7 +223,7 @@ class hi extends ne {
|
|
|
197
223
|
return;
|
|
198
224
|
const t = e.data.mediaData;
|
|
199
225
|
if (!(!t || t.length === 0) && o.renderType === "Mesh") {
|
|
200
|
-
if (
|
|
226
|
+
if (ce(e)) {
|
|
201
227
|
if (t.length === 1) {
|
|
202
228
|
if (t[0].type === "Video")
|
|
203
229
|
return navigator.userAgent.toLowerCase().indexOf("firefox") > -1 && navigator.userAgent.toLowerCase().indexOf("mobile") > -1 ? "Dom" : "Mesh";
|
|
@@ -224,43 +250,43 @@ class hi extends ne {
|
|
|
224
250
|
const n = this.workUtil.getObserverPosition(o);
|
|
225
251
|
if (n === void 0)
|
|
226
252
|
throw new Error(`getAngle(): observerPosition is ${n}`);
|
|
227
|
-
const r = (() => e.stickType === "3DPoint" ?
|
|
253
|
+
const r = (() => e.stickType === "3DPoint" ? y(e.normal) : E(e.position))();
|
|
228
254
|
if (!r)
|
|
229
255
|
return;
|
|
230
|
-
const
|
|
231
|
-
if (!
|
|
256
|
+
const a = V(e);
|
|
257
|
+
if (!a)
|
|
232
258
|
return;
|
|
233
|
-
const
|
|
234
|
-
return t.angle =
|
|
259
|
+
const d = new ie.Vector3().copy(n).sub(a), g = r.angleTo(d) * 180 / Math.PI;
|
|
260
|
+
return t.angle = g, t.angle;
|
|
235
261
|
}
|
|
236
262
|
}
|
|
237
263
|
/**
|
|
238
264
|
* @description 获取距离
|
|
239
265
|
*/
|
|
240
266
|
getDistance(e, i) {
|
|
241
|
-
const o =
|
|
267
|
+
const o = D(D({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = o, r = w(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
242
268
|
if ((r == null ? void 0 : r.distance) !== void 0)
|
|
243
269
|
return r.distance;
|
|
244
|
-
const
|
|
245
|
-
if (!
|
|
270
|
+
const a = V(e);
|
|
271
|
+
if (!a)
|
|
246
272
|
return -1;
|
|
247
|
-
if (
|
|
248
|
-
const
|
|
249
|
-
if (
|
|
273
|
+
if (w(n)) {
|
|
274
|
+
const d = this.workUtil.getObserverPosition(t);
|
|
275
|
+
if (d === void 0)
|
|
250
276
|
return -1;
|
|
251
|
-
const
|
|
252
|
-
return r && (r.distance =
|
|
277
|
+
const g = d.distanceTo(a);
|
|
278
|
+
return r && (r.distance = g), g;
|
|
253
279
|
}
|
|
254
280
|
if (z(n))
|
|
255
|
-
return this.five.camera.position.distanceTo(
|
|
281
|
+
return this.five.camera.position.distanceTo(a);
|
|
256
282
|
}
|
|
257
283
|
getPositions(e) {
|
|
258
|
-
if (
|
|
284
|
+
if (le(e))
|
|
259
285
|
return e.position;
|
|
260
286
|
if (B(e))
|
|
261
287
|
return e.data.mediaPosition;
|
|
262
288
|
if (de(e))
|
|
263
|
-
return oe(this.five.camera.position,
|
|
289
|
+
return oe(this.five.camera.position, y(e.position), y(e.normal));
|
|
264
290
|
}
|
|
265
291
|
addObjectClickHandler(e, i, o) {
|
|
266
292
|
if (!i || !this.domEvents)
|
|
@@ -278,39 +304,17 @@ class hi extends ne {
|
|
|
278
304
|
}
|
|
279
305
|
getTagNormal(e) {
|
|
280
306
|
if (e.normal)
|
|
281
|
-
return
|
|
307
|
+
return y(e.normal);
|
|
282
308
|
if (e.stickType === "Plane")
|
|
283
|
-
return
|
|
309
|
+
return E(e.position);
|
|
284
310
|
if (e.stickType === "Model")
|
|
285
|
-
return
|
|
286
|
-
}
|
|
287
|
-
get filterPointTag() {
|
|
288
|
-
return this.tags.filter((i) => i.stickType === "2DPoint" || i.stickType === "3DPoint").filter((i) => i.position);
|
|
289
|
-
}
|
|
290
|
-
get filter2DPointTag() {
|
|
291
|
-
return this.tags.filter((i) => i.stickType === "2DPoint").filter((i) => i.position);
|
|
292
|
-
}
|
|
293
|
-
get filterImagePlane() {
|
|
294
|
-
return this.tags.filter(
|
|
295
|
-
(i) => i.contentType === "MediaPlane" && i.stickType === "Plane" && this.getRenderType(i) === "Mesh"
|
|
296
|
-
);
|
|
297
|
-
}
|
|
298
|
-
get filterMediaModel() {
|
|
299
|
-
return this.tags.filter((i) => i.stickType === "Model" && i.contentType === "MediaModel");
|
|
300
|
-
}
|
|
301
|
-
get filterCSS3DTag() {
|
|
302
|
-
return this.tags.filter(
|
|
303
|
-
(i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model" && i.contentType === "MediaModel"
|
|
304
|
-
).filter((i) => {
|
|
305
|
-
const o = this.getRenderType(i);
|
|
306
|
-
return o === "BehindDom" || o === "Dom";
|
|
307
|
-
});
|
|
311
|
+
return E(this.getPositions(e));
|
|
308
312
|
}
|
|
309
313
|
getTransformedPostion(e) {
|
|
310
314
|
if (!e)
|
|
311
315
|
return;
|
|
312
316
|
const i = this.workUtil.transform;
|
|
313
|
-
return Array.isArray(e) && e.length === 4 ? e.map(
|
|
317
|
+
return Array.isArray(e) && e.length === 4 ? e.map(y).map((o) => J(o, i)) : J(y(e), i);
|
|
314
318
|
}
|
|
315
319
|
/**
|
|
316
320
|
* @description 检查是否已经销毁
|
|
@@ -323,51 +327,51 @@ class hi extends ne {
|
|
|
323
327
|
* @description 获取merge后的配置
|
|
324
328
|
*/
|
|
325
329
|
calculateTagConfig(e, i) {
|
|
326
|
-
var A, O, I, W
|
|
327
|
-
const o = (
|
|
330
|
+
var S, A, O, I, W;
|
|
331
|
+
const o = (S = i == null ? void 0 : i.useCache) != null ? S : !0;
|
|
328
332
|
if (!e)
|
|
329
|
-
return (
|
|
333
|
+
return (A = this.config.globalConfig) != null ? A : {};
|
|
330
334
|
if (o) {
|
|
331
|
-
if ((
|
|
335
|
+
if ((O = e == null ? void 0 : e.computedConfig) != null && O._isMerged)
|
|
332
336
|
return e.computedConfig;
|
|
333
|
-
if ((
|
|
337
|
+
if ((I = e == null ? void 0 : e.config) != null && I._isMerged)
|
|
334
338
|
return e.config;
|
|
335
339
|
}
|
|
336
340
|
const t = {}, n = {}, r = {};
|
|
337
341
|
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([u, m]) => {
|
|
338
|
-
var
|
|
339
|
-
const
|
|
340
|
-
if (!v[
|
|
341
|
-
if (
|
|
342
|
-
const [
|
|
343
|
-
(e.contentType ===
|
|
342
|
+
var x, R;
|
|
343
|
+
const c = u, k = c.split("-"), j = u.startsWith("["), T = j ? k[0].slice(1, -1) : void 0, p = j ? k.slice(1) : k, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (x = n[T]) != null ? x : n[T] = {} : (R = r[T]) != null ? R : r[T] = {} : t;
|
|
344
|
+
if (!v[c]) {
|
|
345
|
+
if (p.length === 0 && (v[c] = m), p.length === 1) {
|
|
346
|
+
const [h] = p;
|
|
347
|
+
(e.contentType === h || h === "Any") && (v[c] = m);
|
|
344
348
|
}
|
|
345
|
-
if (
|
|
346
|
-
const [
|
|
347
|
-
|
|
349
|
+
if (p.length === 2) {
|
|
350
|
+
const [h = "Any", M = "Any"] = p;
|
|
351
|
+
h === "Mixin" && e.contentType === M && (v[c] = m), (e.stickType === h || h === "Any") && (e.contentType === M || M === "Any") && (v[c] = m);
|
|
348
352
|
}
|
|
349
|
-
if (
|
|
350
|
-
const [
|
|
353
|
+
if (p.length === 3) {
|
|
354
|
+
const [h = "Any", M, X] = p;
|
|
351
355
|
if (M === "Audio" && e.contentType === "Audio") {
|
|
352
|
-
const
|
|
353
|
-
(
|
|
356
|
+
const F = e;
|
|
357
|
+
(F.stickType === h || h === "Any") && F.data.appearance === X && (v[c] = m);
|
|
354
358
|
}
|
|
355
359
|
}
|
|
356
360
|
}
|
|
357
361
|
});
|
|
358
|
-
const
|
|
362
|
+
const a = (W = e.initialConfig) != null ? W : {}, d = P({}, ee, this.config.globalConfig, ...Object.values(t)), g = P({}, d, a), C = {}, G = Object.values(ae.Mode);
|
|
359
363
|
$(n).forEach(([u, m]) => {
|
|
360
|
-
G.forEach((
|
|
361
|
-
(u === "PanoramaLike" &&
|
|
364
|
+
G.forEach((c) => {
|
|
365
|
+
(u === "PanoramaLike" && w(c) || u === "ModelLike" && z(c)) && (C[c] = P({}, d, ...Object.values(m), a, { _isMerged: !0 }));
|
|
362
366
|
});
|
|
363
367
|
}), $(r).forEach(([u, m]) => {
|
|
364
|
-
const
|
|
365
|
-
|
|
368
|
+
const c = C[u];
|
|
369
|
+
C[u] = P({}, d, c, ...Object.values(m), a, { _isMerged: !0 });
|
|
366
370
|
});
|
|
367
|
-
const
|
|
368
|
-
return N(
|
|
371
|
+
const b = U(D({}, g), { configWithFiveMode: C });
|
|
372
|
+
return N(b), Object.values(C).forEach((u) => N(u)), b._isMerged = !0, b;
|
|
369
373
|
}
|
|
370
374
|
}
|
|
371
375
|
export {
|
|
372
|
-
|
|
376
|
+
gi as TagUtil
|
|
373
377
|
};
|
|
@@ -138,6 +138,7 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
138
138
|
private addResizeListener;
|
|
139
139
|
private addResizeObserver;
|
|
140
140
|
private updateVisible;
|
|
141
|
+
private handleFiveModeChange;
|
|
141
142
|
private handleFiveWantsMoveToPano;
|
|
142
143
|
/**
|
|
143
144
|
* @description 走点/切换模型后显示
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var k = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
+
var F = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var R = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var D = (d, a, e) => a in d ? k(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
|
|
7
|
+
R.call(a, e) && D(d, e, a[e]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var e of P(a))
|
|
10
|
-
|
|
10
|
+
M.call(a, e) && D(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
|
-
}, C = (d, a) => E(d,
|
|
13
|
-
var f = (d, a, e) => (
|
|
12
|
+
}, C = (d, a) => E(d, F(a));
|
|
13
|
+
var f = (d, a, e) => (D(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
var g = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (n) => {
|
|
16
16
|
try {
|
|
17
17
|
r(e.next(n));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (h) {
|
|
19
|
+
i(h);
|
|
20
20
|
}
|
|
21
21
|
}, o = (n) => {
|
|
22
22
|
try {
|
|
23
23
|
r(e.throw(n));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (h) {
|
|
25
|
+
i(h);
|
|
26
26
|
}
|
|
27
27
|
}, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
|
|
28
28
|
r((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
31
|
-
import { Subscribe as
|
|
30
|
+
import * as A from "three";
|
|
31
|
+
import { Subscribe as O } from "@realsee/five";
|
|
32
32
|
import { objectAssignDeepExports as u } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
|
-
import { addDebugPoints as
|
|
33
|
+
import { addDebugPoints as _ } from "../utils/addDebugPoints.js";
|
|
34
34
|
import { arrayPositionToVector3 as w } from "../../shared-utils/positionToVector3.js";
|
|
35
35
|
import { isMediaModelTag as L, isModelTag as G } from "../utils/tag/tagCheck.js";
|
|
36
36
|
import { debounce as N } from "../utils/debounce.js";
|
|
37
37
|
import { throttle as S } from "../utils/throttle.js";
|
|
38
|
-
import z, { getTagStickType as
|
|
39
|
-
import { generateBlankAudio as
|
|
38
|
+
import z, { getTagStickType as W } from "../utils/tag/format.js";
|
|
39
|
+
import { generateBlankAudio as $, AudioNamespace as x } from "../../shared-utils/audio.js";
|
|
40
40
|
import { resizeObserver as U } from "../../shared-utils/dom/resizeObserver.js";
|
|
41
41
|
import { TagRender as j } from "./TagRender.js";
|
|
42
42
|
import { uuid as J } from "../../shared-utils/uuid.js";
|
|
@@ -184,7 +184,7 @@ class Ni extends j {
|
|
|
184
184
|
f(this, "debugUtil", new K(this));
|
|
185
185
|
/** 更改 tag 模型 */
|
|
186
186
|
f(this, "changeTagModel", (e, t) => g(this, null, function* () {
|
|
187
|
-
e.data = u({}, e.data, t), yield this.loadModel(e), this.
|
|
187
|
+
e.data = u({}, e.data, t), yield this.loadModel(e), this.updateTag(e);
|
|
188
188
|
}));
|
|
189
189
|
f(this, "whyHide", (e) => {
|
|
190
190
|
var s;
|
|
@@ -200,7 +200,7 @@ class Ni extends j {
|
|
|
200
200
|
const i = C(c({}, this.computeTagVisible(t)), {
|
|
201
201
|
tagInstance: t
|
|
202
202
|
});
|
|
203
|
-
return t.state.visible ? { reason: "应该是能看见才对", info: i } : t.stickType === "Model" || t.stickType === "Plane" ? { reason: "maybe blocked by the five model" } : i.value === !0 ? { reason: "插件bug,请联系维护人员", info: i } : { reason: (s = i.reason.type) != null ? s : i.reason, info: i };
|
|
203
|
+
return t.state.visible ? { reason: "应该是能看见才对", info: i } : t.stickType === "Model" || t.stickType === "Plane" ? { reason: "maybe blocked by the five model", info: i } : i.value === !0 ? { reason: "插件bug,请联系维护人员", info: i } : { reason: (s = i.reason.type) != null ? s : i.reason, info: i };
|
|
204
204
|
});
|
|
205
205
|
f(this, "updateVisible", () => {
|
|
206
206
|
const e = this.five.getCurrentState().mode;
|
|
@@ -208,6 +208,11 @@ class Ni extends j {
|
|
|
208
208
|
L(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
|
|
209
209
|
}), this.setVisible(), this.updateRenderAllTags();
|
|
210
210
|
});
|
|
211
|
+
f(this, "handleFiveModeChange", () => {
|
|
212
|
+
this.tags.length < 200 ? this.updateVisible() : this.five.ready().then(() => {
|
|
213
|
+
this.updateVisible();
|
|
214
|
+
});
|
|
215
|
+
});
|
|
211
216
|
f(this, "handleFiveWantsMoveToPano", (e) => {
|
|
212
217
|
this.tags.forEach((t) => {
|
|
213
218
|
this.getVisible(t, { panoIndex: e }) && (t.state.visible = !0);
|
|
@@ -240,25 +245,25 @@ class Ni extends j {
|
|
|
240
245
|
}), this.updateRenderAllTags());
|
|
241
246
|
});
|
|
242
247
|
f(this, "handleFiveCameraUpdate", () => {
|
|
243
|
-
this.
|
|
248
|
+
this.setPointTagPosition(), this.updateDomView();
|
|
244
249
|
});
|
|
245
250
|
f(this, "handleFivePanoArrived", () => g(this, null, function* () {
|
|
246
|
-
this.setVisible(), this.
|
|
251
|
+
this.setVisible(), this.setPointTagPosition(), this.updateDomView(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
247
252
|
e.temporaryState = C(c({}, e.temporaryState), { visible: !0 });
|
|
248
253
|
}), this.tags.filter(G).filter((e) => {
|
|
249
254
|
var t;
|
|
250
255
|
return (t = this.getTagConfig(e).modelConfig) == null ? void 0 : t.autoLookAtEnabled;
|
|
251
256
|
}).forEach((e) => {
|
|
252
|
-
var
|
|
253
|
-
const t = new
|
|
257
|
+
var h;
|
|
258
|
+
const t = new A.Mesh(new A.BoxGeometry(), new A.MeshBasicMaterial()), i = (h = e.model) == null ? void 0 : h.object;
|
|
254
259
|
if (!i)
|
|
255
260
|
return;
|
|
256
261
|
t.position.copy(i.position), t.quaternion.copy(i.quaternion);
|
|
257
262
|
const s = this.five.camera.position;
|
|
258
263
|
t.lookAt(s.clone().setY(t.position.y));
|
|
259
264
|
const o = i.quaternion.clone(), r = t.quaternion.clone(), n = Z();
|
|
260
|
-
n.onUpdate(({ progress:
|
|
261
|
-
i.quaternion.copy(o.clone().slerp(r,
|
|
265
|
+
n.onUpdate(({ progress: l }) => {
|
|
266
|
+
i.quaternion.copy(o.clone().slerp(r, l));
|
|
262
267
|
}), n.play();
|
|
263
268
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
264
269
|
}));
|
|
@@ -269,7 +274,7 @@ class Ni extends j {
|
|
|
269
274
|
f(this, "onFiveEveryReady", () => {
|
|
270
275
|
this.setUnfoldedByCamera(), q(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 }), this.updateRenderVideoPlane(), this.updateRenderImagePlane(), this.updateTagModelVisible();
|
|
271
276
|
});
|
|
272
|
-
this.params = u({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config,
|
|
277
|
+
this.params = u({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config, $(1, { namespace: x.PlayAudio });
|
|
273
278
|
try {
|
|
274
279
|
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
|
|
275
280
|
get: function() {
|
|
@@ -298,7 +303,7 @@ class Ni extends j {
|
|
|
298
303
|
const i = yield this.addTag(e.tagList, t);
|
|
299
304
|
if (this.store.visibleWithAnimation = void 0, this.debug)
|
|
300
305
|
try {
|
|
301
|
-
|
|
306
|
+
_(this.five, this.tags);
|
|
302
307
|
} catch (r) {
|
|
303
308
|
console.error(r);
|
|
304
309
|
}
|
|
@@ -312,28 +317,28 @@ class Ni extends j {
|
|
|
312
317
|
return g(this, null, function* () {
|
|
313
318
|
const s = (Array.isArray(e) ? e : [e]).filter((o) => o.position).map((o) => {
|
|
314
319
|
var b, v, T, y;
|
|
315
|
-
o.stickType =
|
|
320
|
+
o.stickType = W(o);
|
|
316
321
|
const r = JSON.parse(JSON.stringify(o.data)), n = (b = o.initialConfig) != null ? b : o.config ? JSON.parse(JSON.stringify(o.config)) : {};
|
|
317
322
|
o.initialConfig = n;
|
|
318
|
-
const
|
|
319
|
-
o.config =
|
|
323
|
+
const h = this.calculateTagConfig(o), l = this.getTagConfig(o);
|
|
324
|
+
o.config = l;
|
|
320
325
|
const p = C(c({}, o), {
|
|
321
326
|
enabled: (v = o.enabled) != null ? v : !0,
|
|
322
327
|
id: (T = o.id) != null ? T : J(),
|
|
323
|
-
data: (y =
|
|
328
|
+
data: (y = l.initialData) != null && y.important ? u(o.data, r, l.initialData) : u(o.data, l.initialData, r),
|
|
324
329
|
state: c({
|
|
325
330
|
visible: void 0,
|
|
326
331
|
unfolded: !this.can("fold", o)
|
|
327
|
-
},
|
|
328
|
-
hooks: new
|
|
332
|
+
}, l.initialState),
|
|
333
|
+
hooks: new O(),
|
|
329
334
|
originPosition: o.position,
|
|
330
335
|
position: (() => {
|
|
331
336
|
const m = this.getTransformedPostion(o.position);
|
|
332
|
-
return Array.isArray(m) ? m.map((
|
|
337
|
+
return Array.isArray(m) ? m.map((V) => V.toArray()) : m.toArray();
|
|
333
338
|
})(),
|
|
334
339
|
initialConfig: n,
|
|
335
|
-
computedConfig:
|
|
336
|
-
config:
|
|
340
|
+
computedConfig: h,
|
|
341
|
+
config: l,
|
|
337
342
|
unfold: () => this.changeUnfoldedById(p.id, !0),
|
|
338
343
|
fold: () => this.changeUnfoldedById(p.id, !1),
|
|
339
344
|
enable: () => this.changeEnabledById(p.id, !0),
|
|
@@ -347,7 +352,7 @@ class Ni extends j {
|
|
|
347
352
|
});
|
|
348
353
|
return s.forEach(z), this.tags.push(...s), this.tagsLengthWillUpdate = !0, H(this.five).then(() => g(this, null, function* () {
|
|
349
354
|
var o, r, n;
|
|
350
|
-
this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(s), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }), this.
|
|
355
|
+
this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(s), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }), this.updateRenderAllTags();
|
|
351
356
|
}));
|
|
352
357
|
});
|
|
353
358
|
}
|
|
@@ -408,9 +413,9 @@ class Ni extends j {
|
|
|
408
413
|
*/
|
|
409
414
|
dispose() {
|
|
410
415
|
var e, t, i, s, o, r;
|
|
411
|
-
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((n) => {
|
|
412
|
-
var
|
|
413
|
-
return (
|
|
416
|
+
this.tagsLengthWillUpdate = !0, this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((n) => {
|
|
417
|
+
var h;
|
|
418
|
+
return (h = n.tag3DContentSvelte) == null ? void 0 : h.svelteApp.$destroy();
|
|
414
419
|
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (r = (o = this.store).resizeObserverDisposer) == null || r.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.imagePlaneGroup.remove(...this.imagePlaneGroup.children), this.clearCache(), this.five.needsRender = !0, this.store.disposed = !0, this.hooks.emit("dispose");
|
|
415
420
|
}
|
|
416
421
|
/**
|
|
@@ -420,11 +425,11 @@ class Ni extends j {
|
|
|
420
425
|
*/
|
|
421
426
|
blinkTagById(e, t) {
|
|
422
427
|
return g(this, null, function* () {
|
|
423
|
-
var
|
|
428
|
+
var l, p;
|
|
424
429
|
const i = this.getTagById(e);
|
|
425
430
|
if (!i)
|
|
426
431
|
return;
|
|
427
|
-
const s = (
|
|
432
|
+
const s = (l = i.enabled) != null ? l : !0, o = (p = i.state) == null ? void 0 : p.visible, r = s && o;
|
|
428
433
|
r === !1 && (i.state.visible = !0, i.enabled = !0, this.setPointTagPosition(), this.updateDomView(), this.updateRender3DDomTag(), yield X(0), i.dom && (i.dom.style.visibility = "hidden"), i.contentDom && (i.contentDom.style.visibility = "hidden"));
|
|
429
434
|
const n = (() => {
|
|
430
435
|
var v, T, y;
|
|
@@ -469,7 +474,7 @@ class Ni extends j {
|
|
|
469
474
|
changeEnabledById(e, t) {
|
|
470
475
|
var s;
|
|
471
476
|
const i = this.getTagById(e);
|
|
472
|
-
i && (i.enabled = t, (s = i.hooks) == null || s.emit(t ? "enable" : "disable"), this.
|
|
477
|
+
i && (i.enabled = t, (s = i.hooks) == null || s.emit(t ? "enable" : "disable"), this.updateTag(i));
|
|
473
478
|
}
|
|
474
479
|
/**
|
|
475
480
|
* @description 修改3D标签normal
|
|
@@ -489,7 +494,7 @@ class Ni extends j {
|
|
|
489
494
|
return;
|
|
490
495
|
i.originPosition = t, i.position = t, this.clearCacheById(e);
|
|
491
496
|
const s = this.getVisible(i);
|
|
492
|
-
i.state && (i.state.visible = s),
|
|
497
|
+
i.state && (i.state.visible = s), this.updateTag(i);
|
|
493
498
|
}
|
|
494
499
|
/**
|
|
495
500
|
* @description 改变data
|
|
@@ -497,7 +502,7 @@ class Ni extends j {
|
|
|
497
502
|
changeDataById(e, t, i = !0) {
|
|
498
503
|
const s = this.getTagById(e);
|
|
499
504
|
let o = !1;
|
|
500
|
-
s && (s.data && (o = !0), i ? s.data = u(s.data, t) : s.data = c(c({}, s.data), t), this.clearUnusedPanelTag(), this.
|
|
505
|
+
s && (s.data && (o = !0), i ? s.data = u(s.data, t) : s.data = c(c({}, s.data), t), this.clearUnusedPanelTag(), this.updateTag(s), o && s.hooks.emit("dataChanged", s.data));
|
|
501
506
|
}
|
|
502
507
|
/**
|
|
503
508
|
* @description 改变tag的stickType
|
|
@@ -564,8 +569,8 @@ class Ni extends j {
|
|
|
564
569
|
this.onFiveEveryReady(), i = !1;
|
|
565
570
|
}));
|
|
566
571
|
}, 150);
|
|
567
|
-
return e.on("cameraUpdate", s), this.updateVisible(), this.handleFivePanoArrived(), e.on("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.on("models.refined", this.onFiveEveryReady), e.on("modeChange", this.
|
|
568
|
-
e.off("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.off("models.refined", this.onFiveEveryReady), e.off("modeChange", this.
|
|
572
|
+
return e.on("cameraUpdate", s), this.updateVisible(), this.handleFivePanoArrived(), e.on("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.on("models.refined", this.onFiveEveryReady), e.on("modeChange", this.handleFiveModeChange), e.on("initAnimationEnded", this.updateVisible), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", this.handleFiveCameraUpdate), e.on("panoArrived", this.handleFivePanoArrived), e.on("panoArrived", this.loadVideoFirstFrame), t.on("click", this.clickhandler), () => {
|
|
573
|
+
e.off("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.off("models.refined", this.onFiveEveryReady), e.off("modeChange", this.handleFiveModeChange), e.off("initAnimationEnded", this.updateVisible), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", this.handleFiveCameraUpdate), e.off("cameraUpdate", s), e.off("panoArrived", this.handleFivePanoArrived), e.off("panoArrived", this.loadVideoFirstFrame), t.off("click", this.clickhandler), this.store.eventListenerDisposer = void 0;
|
|
569
574
|
};
|
|
570
575
|
}
|
|
571
576
|
addResizeListener() {
|
|
@@ -613,8 +618,8 @@ class Ni extends j {
|
|
|
613
618
|
});
|
|
614
619
|
}
|
|
615
620
|
changeTagMode(e, t) {
|
|
616
|
-
var i, s, o, r, n,
|
|
617
|
-
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : r.mode) !== t && ((n = e.config) != null && n.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (
|
|
621
|
+
var i, s, o, r, n, h;
|
|
622
|
+
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : r.mode) !== t && ((n = e.config) != null && n.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((l) => l == null ? void 0 : l()), e.tag3DContentSvelte = void 0);
|
|
618
623
|
}
|
|
619
624
|
}
|
|
620
625
|
export {
|
|
@@ -5,3 +5,4 @@
|
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
7
|
export declare const debounce: <F extends (...args: any) => any>(callback: F, waitFor?: number) => (...args: Parameters<F>) => ReturnType<F>;
|
|
8
|
+
export declare const debounceByKey: <F extends (...args: any) => any>(key: string, callback: F, waitFor?: number) => (...args: Parameters<F>) => ReturnType<F>;
|