@realsee/dnalogel 3.31.1 → 3.32.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 +4 -0
- package/dist/PanoTagPlugin/controller/TagCache.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +4 -1
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
- package/dist/index.cjs.js +47 -47
- package/dist/index.js +2091 -2085
- package/dist/index.umd.js +36 -36
- 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 +66 -48
- 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/CSS3DRenderPlugin/Controller.js +9 -9
- package/libs/CSS3DRenderPlugin/index.js +1 -1
- package/libs/CruisePlugin/Move.js +3 -4
- package/libs/CruisePlugin/Work.js +3 -4
- package/libs/CruisePlugin/index.js +7 -8
- package/libs/GuideLinePlugin/Controller.js +5 -6
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -4
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -4
- package/libs/GuideLinePlugin/index.js +7 -8
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
- package/libs/ModelTVVideoPlugin/index.js +1 -1
- package/libs/Object3DHelperPlugin/Controller.js +9 -9
- package/libs/Object3DHelperPlugin/index.js +1 -1
- package/libs/PanoCompassPlugin/Controller.js +1 -1
- package/libs/PanoCompassPlugin/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/index.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -1
- package/libs/PanoMeasurePlugin/index.js +1 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
- package/libs/PanoSpatialTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/controller/TagCache.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagCache.js +5 -5
- package/libs/PanoTagPlugin/controller/TagRender.js +25 -22
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +77 -69
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/index.js +41 -36
- package/libs/PanoTagPlugin/index.js +12 -13
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +126 -127
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
- package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +0 -2
|
@@ -58,8 +58,8 @@ import "../../shared-utils/three/PointDomHelper.js";
|
|
|
58
58
|
import "../Modules/rangePiece/html.js";
|
|
59
59
|
import "../../CSS3DRenderPlugin/index.js";
|
|
60
60
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
61
|
-
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
62
61
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
62
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
63
63
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
64
64
|
import "../../shared-utils/animationFrame/index.js";
|
|
65
65
|
import "../../shared-utils/isTouchDevice.js";
|
|
@@ -62,8 +62,8 @@ import "../../shared-utils/three/PointDomHelper.js";
|
|
|
62
62
|
import "../Modules/rangePiece/html.js";
|
|
63
63
|
import "../../CSS3DRenderPlugin/index.js";
|
|
64
64
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
65
|
-
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
66
65
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
66
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
67
67
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
68
68
|
import "../../shared-utils/animationFrame/index.js";
|
|
69
69
|
import "../../shared-utils/isTouchDevice.js";
|
|
@@ -58,8 +58,8 @@ import "../../shared-utils/three/PointDomHelper.js";
|
|
|
58
58
|
import "../Modules/rangePiece/html.js";
|
|
59
59
|
import "../../CSS3DRenderPlugin/index.js";
|
|
60
60
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
61
|
-
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
62
61
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
62
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
63
63
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
64
64
|
import "../../shared-utils/animationFrame/index.js";
|
|
65
65
|
import "../../shared-utils/isTouchDevice.js";
|
|
@@ -64,8 +64,8 @@ import "../../shared-utils/three/PointDomHelper.js";
|
|
|
64
64
|
import "../Modules/rangePiece/html.js";
|
|
65
65
|
import "../../CSS3DRenderPlugin/index.js";
|
|
66
66
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
67
|
-
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
68
67
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
68
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
69
69
|
import "../../shared-utils/positionToVector3.js";
|
|
70
70
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
71
71
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -68,8 +68,8 @@ import "../../../shared-utils/three/PointDomHelper.js";
|
|
|
68
68
|
import "../rangePiece/html.js";
|
|
69
69
|
import "../../../CSS3DRenderPlugin/index.js";
|
|
70
70
|
import "../../../CSS3DRenderPlugin/Controller.js";
|
|
71
|
-
import "../../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
72
71
|
import "../../../shared-utils/url/absoluteUrl.js";
|
|
72
|
+
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
73
73
|
import "../../../shared-utils/animationFrame/BetterTween.js";
|
|
74
74
|
import "../../../shared-utils/animationFrame/index.js";
|
|
75
75
|
import "../../../shared-utils/isTouchDevice.js";
|
|
@@ -56,8 +56,8 @@ import "../shared-utils/three/PointDomHelper.js";
|
|
|
56
56
|
import "./Modules/rangePiece/html.js";
|
|
57
57
|
import "../CSS3DRenderPlugin/index.js";
|
|
58
58
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
59
|
-
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
60
59
|
import "../shared-utils/url/absoluteUrl.js";
|
|
60
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
61
61
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
62
62
|
import "../shared-utils/animationFrame/index.js";
|
|
63
63
|
import "../shared-utils/isTouchDevice.js";
|
|
@@ -21,12 +21,12 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
21
21
|
import "../shared-utils/three/getObjectVisible.js";
|
|
22
22
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
23
23
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
24
|
-
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
25
24
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
26
25
|
import "hammerjs";
|
|
27
26
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
28
27
|
import "animejs";
|
|
29
28
|
import "../shared-utils/url/absoluteUrl.js";
|
|
29
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
30
30
|
import "../vendor/svelte/internal/index.js";
|
|
31
31
|
import "./store.js";
|
|
32
32
|
import "../vendor/svelte/store/index.js";
|
|
@@ -18,12 +18,12 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
18
18
|
import "../shared-utils/three/getObjectVisible.js";
|
|
19
19
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
20
20
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
21
|
-
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
22
21
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
22
|
import "hammerjs";
|
|
24
23
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
25
24
|
import "animejs";
|
|
26
25
|
import "../shared-utils/url/absoluteUrl.js";
|
|
26
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
27
27
|
import "./Components/origins.js";
|
|
28
28
|
import "../vendor/svelte/internal/index.js";
|
|
29
29
|
import "./store.js";
|
|
@@ -5,6 +5,7 @@ import * as BasePlugin from '../../base/BasePlugin';
|
|
|
5
5
|
export declare abstract class TagCache extends BasePlugin.Controller<State, EventMap> {
|
|
6
6
|
private tagCacheByPanoIndex;
|
|
7
7
|
protected constructor(five: Five);
|
|
8
|
+
clearCacheById(id: TagId): void;
|
|
8
9
|
/**
|
|
9
10
|
* @description 获取缓存
|
|
10
11
|
*/
|
|
@@ -20,7 +21,6 @@ export declare abstract class TagCache extends BasePlugin.Controller<State, Even
|
|
|
20
21
|
id: TagId;
|
|
21
22
|
key: keyof TagCacheInterface;
|
|
22
23
|
}): ValueOf<TagCacheInterface> | undefined;
|
|
23
|
-
clearCacheById(id: TagId): void;
|
|
24
24
|
/**
|
|
25
25
|
* @description 清除所有缓存
|
|
26
26
|
*/
|
|
@@ -29,6 +29,11 @@ class F extends g {
|
|
|
29
29
|
super(e);
|
|
30
30
|
s(this, "tagCacheByPanoIndex", {});
|
|
31
31
|
}
|
|
32
|
+
clearCacheById(e) {
|
|
33
|
+
Object.values(this.tagCacheByPanoIndex).forEach((n) => {
|
|
34
|
+
n.delete(e);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
32
37
|
getPanoIndexCache(e) {
|
|
33
38
|
var p;
|
|
34
39
|
const { five: n } = this, { panoIndex: a, id: i, key: h } = e != null ? e : {}, c = a != null ? a : n.getCurrentState().panoIndex;
|
|
@@ -44,11 +49,6 @@ class F extends g {
|
|
|
44
49
|
}
|
|
45
50
|
return (p = o.get(i)) == null ? void 0 : p[h];
|
|
46
51
|
}
|
|
47
|
-
clearCacheById(e) {
|
|
48
|
-
Object.values(this.tagCacheByPanoIndex).forEach((n) => {
|
|
49
|
-
n.delete(e);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
52
|
/**
|
|
53
53
|
* @description 清除所有缓存
|
|
54
54
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var A = Object.defineProperty;
|
|
2
2
|
var R = Object.getOwnPropertySymbols;
|
|
3
|
-
var k = Object.prototype.hasOwnProperty,
|
|
3
|
+
var k = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
4
4
|
var C = (d, m, t) => m in d ? A(d, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[m] = t, j = (d, m) => {
|
|
5
5
|
for (var t in m || (m = {}))
|
|
6
6
|
k.call(m, t) && C(d, t, m[t]);
|
|
7
7
|
if (R)
|
|
8
8
|
for (var t of R(m))
|
|
9
|
-
|
|
9
|
+
I.call(m, t) && C(d, t, m[t]);
|
|
10
10
|
return d;
|
|
11
11
|
};
|
|
12
12
|
var u = (d, m, t) => (C(d, typeof m != "symbol" ? m + "" : m, t), t);
|
|
@@ -26,9 +26,9 @@ var S = (d, m, t) => new Promise((e, o) => {
|
|
|
26
26
|
}, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(i, r);
|
|
27
27
|
a((t = t.apply(d, m)).next());
|
|
28
28
|
});
|
|
29
|
-
import { TagComputer as
|
|
30
|
-
import { Group as y, Quaternion as
|
|
31
|
-
import
|
|
29
|
+
import { TagComputer as V } from "./TagComputer.js";
|
|
30
|
+
import { Group as y, Quaternion as O, Vector3 as b, Matrix4 as v } from "three";
|
|
31
|
+
import E from "../Components/TagContainer.js";
|
|
32
32
|
import x from "../Components/Tag/index.js";
|
|
33
33
|
import { CSS3DRenderPlugin as G } from "../../CSS3DRenderPlugin/index.js";
|
|
34
34
|
import { loadGLTF as F } from "../../shared-utils/three/GLTFLoader.js";
|
|
@@ -159,10 +159,10 @@ import "../Components/Tag/LinkTag.js";
|
|
|
159
159
|
import "../Components/Tag/PanoramaTag.js";
|
|
160
160
|
import "../Components/Tag/CustomTag.js";
|
|
161
161
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
162
|
-
import "../../
|
|
162
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
163
163
|
import "@realsee/five/gltf-loader";
|
|
164
|
-
const
|
|
165
|
-
class Ti extends
|
|
164
|
+
const $ = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map();
|
|
165
|
+
class Ti extends V {
|
|
166
166
|
constructor(t) {
|
|
167
167
|
super(t);
|
|
168
168
|
u(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
@@ -233,10 +233,11 @@ class Ti extends I {
|
|
|
233
233
|
this.contentTypeMap.set(t, e);
|
|
234
234
|
}
|
|
235
235
|
clearTags() {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
236
|
+
var t;
|
|
237
|
+
this.tags.length && (this.tags.forEach((e) => {
|
|
238
|
+
var o, i;
|
|
239
|
+
(i = (o = e.mediaPlane) == null ? void 0 : o.parent) == null || i.remove(e.mediaPlane);
|
|
240
|
+
}), this.tags = [], (t = this.TagContainerSvelte) == null || t.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer(), this.updateRenderAllTags()), this.enabledModelTagSet.clear(), this.clearCache();
|
|
240
241
|
}
|
|
241
242
|
/**
|
|
242
243
|
* @description 更新所有标签
|
|
@@ -263,8 +264,8 @@ class Ti extends I {
|
|
|
263
264
|
playButton: e.data.playIcon,
|
|
264
265
|
paused: !((l = e.data.autoplayConfig) != null && l.autoplayVideo),
|
|
265
266
|
objectFit: e.data.objectFit,
|
|
266
|
-
videoTextureMap:
|
|
267
|
-
ImageTextureMap:
|
|
267
|
+
videoTextureMap: $,
|
|
268
|
+
ImageTextureMap: q,
|
|
268
269
|
domEvents: this.domEvents
|
|
269
270
|
});
|
|
270
271
|
h.onVideoReady = (c) => {
|
|
@@ -306,7 +307,7 @@ class Ti extends I {
|
|
|
306
307
|
if (e.tag3DContentSvelte) {
|
|
307
308
|
const { svelteApp: a, css3DInstance: s, initialNormal: n, currentNormal: l } = e.tag3DContentSvelte;
|
|
308
309
|
if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(l)) {
|
|
309
|
-
const p = new
|
|
310
|
+
const p = new O().setFromUnitVectors(n, l);
|
|
310
311
|
s.css3DObject.setRotationFromQuaternion(p);
|
|
311
312
|
}
|
|
312
313
|
return;
|
|
@@ -476,16 +477,18 @@ class Ti extends I {
|
|
|
476
477
|
}
|
|
477
478
|
}
|
|
478
479
|
updateDomView(t = {}) {
|
|
479
|
-
var o
|
|
480
|
-
const e = this.filterPointTag.filter((
|
|
480
|
+
var o;
|
|
481
|
+
const e = this.filterPointTag.filter((i) => i.state.visible);
|
|
481
482
|
if (this.TagContainerSvelte)
|
|
482
483
|
this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
|
|
483
484
|
else {
|
|
484
|
-
|
|
485
|
-
|
|
485
|
+
if (!e.length)
|
|
486
|
+
return;
|
|
487
|
+
const i = this.container;
|
|
488
|
+
if (!i)
|
|
486
489
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
487
|
-
this.TagContainerSvelte = new
|
|
488
|
-
target:
|
|
490
|
+
this.TagContainerSvelte = new E({
|
|
491
|
+
target: i,
|
|
489
492
|
props: {
|
|
490
493
|
hooks: this.hooks,
|
|
491
494
|
tags: e,
|
|
@@ -494,7 +497,7 @@ class Ti extends I {
|
|
|
494
497
|
mediaStore: this.mediaStore,
|
|
495
498
|
rendererMap: this.rendererMap,
|
|
496
499
|
contentTypeMap: this.contentTypeMap,
|
|
497
|
-
withAnimation: (
|
|
500
|
+
withAnimation: (o = t == null ? void 0 : t.withAnimation) != null ? o : this.store.visibleWithAnimation
|
|
498
501
|
}
|
|
499
502
|
});
|
|
500
503
|
}
|
|
@@ -10,11 +10,13 @@ import { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
|
|
|
10
10
|
import { WorkUtil } from '../../shared-utils/Utils/WorkUtil';
|
|
11
11
|
export declare abstract class TagUtil extends TagCache {
|
|
12
12
|
tags: TagInstance[];
|
|
13
|
+
get container(): Element;
|
|
14
|
+
set container(container: Element);
|
|
13
15
|
config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
|
|
14
16
|
tagsLengthWillUpdate: boolean;
|
|
17
|
+
workUtil: WorkUtil;
|
|
15
18
|
set workCode(workCode: string);
|
|
16
19
|
get workCode(): string;
|
|
17
|
-
workUtil: WorkUtil;
|
|
18
20
|
protected mediaStore: MediaStore;
|
|
19
21
|
/** css3DRenderPlugin */
|
|
20
22
|
protected css3DRenderPlugin?: CSS3DRenderPluginExportType;
|
|
@@ -29,6 +31,7 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
29
31
|
disposed: boolean;
|
|
30
32
|
};
|
|
31
33
|
protected domEvents: FiveDomEvents;
|
|
34
|
+
private _container;
|
|
32
35
|
protected constructor(five: Five);
|
|
33
36
|
getTagById<C extends TagContentType = TagContentType, S extends StickType = StickType>(id: TagId): TagInstance<C, S> | undefined;
|
|
34
37
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
@@ -2,28 +2,28 @@ var q = Object.defineProperty, K = Object.defineProperties;
|
|
|
2
2
|
var Q = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var V = Object.getOwnPropertySymbols;
|
|
4
4
|
var Y = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var w = (
|
|
5
|
+
var w = (c, s, e) => s in c ? q(c, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[s] = e, b = (c, s) => {
|
|
6
6
|
for (var e in s || (s = {}))
|
|
7
|
-
Y.call(s, e) && w(
|
|
7
|
+
Y.call(s, e) && w(c, e, s[e]);
|
|
8
8
|
if (V)
|
|
9
9
|
for (var e of V(s))
|
|
10
|
-
Z.call(s, e) && w(
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
10
|
+
Z.call(s, e) && w(c, e, s[e]);
|
|
11
|
+
return c;
|
|
12
|
+
}, _ = (c, s) => K(c, Q(s));
|
|
13
|
+
var d = (c, s, e) => (w(c, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
14
|
import { defaultGlobalConfig as ee } from "../typings/tag/TagConfig.js";
|
|
15
15
|
import { objectAssignDeepExports as y } 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
18
|
import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
|
|
19
19
|
import { planeNormal as E } from "../utils/planeNormal.js";
|
|
20
|
-
import { getTagCenterPosition as
|
|
20
|
+
import { getTagCenterPosition as R } from "../utils/tagPosition.js";
|
|
21
21
|
import { normalPositionToPositions as oe } from "../utils/normalPositionToPositions.js";
|
|
22
|
-
import { TagCache as
|
|
23
|
-
import { writable as
|
|
22
|
+
import { TagCache as ne } from "./TagCache.js";
|
|
23
|
+
import { writable as re } from "../../vendor/svelte/store/index.js";
|
|
24
24
|
import { isIOSWX as se } from "../../shared-utils/device.js";
|
|
25
25
|
import { Five as fe } from "@realsee/five";
|
|
26
|
-
import { isMediaPlaneTag as ae, isMediaModelTag as B, isPlaneTag as
|
|
26
|
+
import { isMediaPlaneTag as ae, isMediaModelTag as B, isPlaneTag as ce, isPoint3DTag as le } from "../utils/tag/tagCheck.js";
|
|
27
27
|
import { VideoPlane as de } from "../utils/model/mediaPlane.js";
|
|
28
28
|
import { FiveDomEvents as ue } from "../../shared-utils/five/FiveDomEvents.js";
|
|
29
29
|
import N from "../utils/tag/adaptConfig.js";
|
|
@@ -63,35 +63,36 @@ import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
|
63
63
|
import "../../shared-utils/three/getNormal.js";
|
|
64
64
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
65
65
|
import "../../shared-utils/Utils/BaseUtil.js";
|
|
66
|
-
class ui extends
|
|
67
|
-
// private _cache_pointTag?: PointTagInstance[]
|
|
68
|
-
// private _cache_2DPointTag?: TagInstance<TagContentType, '2DPoint'>[]
|
|
69
|
-
// private _cache_imagePlane?: TagInstance<'MediaPlane', 'Plane'>[]
|
|
70
|
-
// private _cache_mediaModel?: TagInstance<'MediaModel', 'Model'>[]
|
|
71
|
-
// private _cache_css3DTag?: (
|
|
72
|
-
// | TagInstance<TagContentType, 'Plane'>
|
|
73
|
-
// | TagInstance<TagContentType, 'Model'>
|
|
74
|
-
// | TagInstance<TagContentType, '3DPoint'>
|
|
75
|
-
// )[]
|
|
66
|
+
class ui extends ne {
|
|
76
67
|
constructor(e) {
|
|
77
68
|
super(e);
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
69
|
+
d(this, "tags", []);
|
|
70
|
+
d(this, "config", te);
|
|
71
|
+
d(this, "tagsLengthWillUpdate", !0);
|
|
72
|
+
d(this, "workUtil", new me(this.five));
|
|
73
|
+
d(this, "mediaStore", re({
|
|
83
74
|
currentMediaElement: null
|
|
84
75
|
}));
|
|
85
76
|
/** css3DRenderPlugin */
|
|
86
|
-
|
|
87
|
-
|
|
77
|
+
d(this, "css3DRenderPlugin");
|
|
78
|
+
d(this, "store", {
|
|
88
79
|
disposers: [],
|
|
89
80
|
disposed: !1,
|
|
90
81
|
resizeObserverDisposerAdding: !1,
|
|
91
82
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
92
83
|
});
|
|
93
|
-
|
|
94
|
-
|
|
84
|
+
d(this, "domEvents", new ue(this.five));
|
|
85
|
+
// private _cache_pointTag?: PointTagInstance[]
|
|
86
|
+
// private _cache_2DPointTag?: TagInstance<TagContentType, '2DPoint'>[]
|
|
87
|
+
// private _cache_imagePlane?: TagInstance<'MediaPlane', 'Plane'>[]
|
|
88
|
+
// private _cache_mediaModel?: TagInstance<'MediaModel', 'Model'>[]
|
|
89
|
+
// private _cache_css3DTag?: (
|
|
90
|
+
// | TagInstance<TagContentType, 'Plane'>
|
|
91
|
+
// | TagInstance<TagContentType, 'Model'>
|
|
92
|
+
// | TagInstance<TagContentType, '3DPoint'>
|
|
93
|
+
// )[]
|
|
94
|
+
d(this, "_container", null);
|
|
95
|
+
d(this, "loadVideoFirstFrame", () => {
|
|
95
96
|
se && this.hooks.emit("loadVideoFirstFrame");
|
|
96
97
|
});
|
|
97
98
|
this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
@@ -105,6 +106,13 @@ class ui extends re {
|
|
|
105
106
|
});
|
|
106
107
|
});
|
|
107
108
|
}
|
|
109
|
+
get container() {
|
|
110
|
+
var e;
|
|
111
|
+
return this._container || ((e = this.five.getElement()) == null ? void 0 : e.parentElement);
|
|
112
|
+
}
|
|
113
|
+
set container(e) {
|
|
114
|
+
this._container = e;
|
|
115
|
+
}
|
|
108
116
|
set workCode(e) {
|
|
109
117
|
this.workUtil.workCode = e;
|
|
110
118
|
}
|
|
@@ -127,9 +135,9 @@ class ui extends re {
|
|
|
127
135
|
* @description 获取标签配置
|
|
128
136
|
*/
|
|
129
137
|
getTagConfig(e, i) {
|
|
130
|
-
var
|
|
131
|
-
const o = this.calculateTagConfig(e, { useCache: i == null ? void 0 : i.useCache }), t = (
|
|
132
|
-
return (
|
|
138
|
+
var r, f, l;
|
|
139
|
+
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 = (f = o.configWithFiveMode) == null ? void 0 : f[t];
|
|
140
|
+
return (l = n != null ? n : o) != null ? l : {};
|
|
133
141
|
}
|
|
134
142
|
/**
|
|
135
143
|
* @description 获取标签当前状态
|
|
@@ -144,8 +152,8 @@ class ui extends re {
|
|
|
144
152
|
e.computedConfig = i;
|
|
145
153
|
const o = this.getTagConfig(e);
|
|
146
154
|
if (e.config = o, e.config.initialData) {
|
|
147
|
-
const
|
|
148
|
-
e.data = (t = o.initialData) != null && t.important ? y(e.data,
|
|
155
|
+
const n = JSON.parse(JSON.stringify(e.data));
|
|
156
|
+
e.data = (t = o.initialData) != null && t.important ? y(e.data, n, o.initialData) : y(e.data, o.initialData, n);
|
|
149
157
|
}
|
|
150
158
|
});
|
|
151
159
|
}
|
|
@@ -200,16 +208,16 @@ class ui extends re {
|
|
|
200
208
|
if (t.angle !== void 0)
|
|
201
209
|
return t.angle;
|
|
202
210
|
{
|
|
203
|
-
const
|
|
204
|
-
if (
|
|
205
|
-
throw new Error(`getAngle(): observerPosition is ${
|
|
206
|
-
const
|
|
207
|
-
if (!
|
|
211
|
+
const n = this.workUtil.getObserverPosition(o);
|
|
212
|
+
if (n === void 0)
|
|
213
|
+
throw new Error(`getAngle(): observerPosition is ${n}`);
|
|
214
|
+
const r = (() => e.stickType === "3DPoint" ? C(e.normal) : E(e.position))();
|
|
215
|
+
if (!r)
|
|
208
216
|
return;
|
|
209
|
-
const f =
|
|
217
|
+
const f = R(e);
|
|
210
218
|
if (!f)
|
|
211
219
|
return;
|
|
212
|
-
const
|
|
220
|
+
const l = new ie.Vector3().copy(n).sub(f), h = r.angleTo(l) * 180 / Math.PI;
|
|
213
221
|
return t.angle = h, t.angle;
|
|
214
222
|
}
|
|
215
223
|
}
|
|
@@ -217,42 +225,42 @@ class ui extends re {
|
|
|
217
225
|
* @description 获取距离
|
|
218
226
|
*/
|
|
219
227
|
getDistance(e, i) {
|
|
220
|
-
const o = b(b({}, this.five.getCurrentState()), i), { panoIndex: t, mode:
|
|
221
|
-
if ((
|
|
222
|
-
return
|
|
223
|
-
const f =
|
|
228
|
+
const o = b(b({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = o, r = A(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
229
|
+
if ((r == null ? void 0 : r.distance) !== void 0)
|
|
230
|
+
return r.distance;
|
|
231
|
+
const f = R(e);
|
|
224
232
|
if (!f)
|
|
225
233
|
return -1;
|
|
226
|
-
if (A(
|
|
227
|
-
const
|
|
228
|
-
if (
|
|
234
|
+
if (A(n)) {
|
|
235
|
+
const l = this.workUtil.getObserverPosition(t);
|
|
236
|
+
if (l === void 0)
|
|
229
237
|
return -1;
|
|
230
|
-
const h =
|
|
231
|
-
return
|
|
238
|
+
const h = l.distanceTo(f);
|
|
239
|
+
return r && (r.distance = h), h;
|
|
232
240
|
}
|
|
233
|
-
if ($(
|
|
241
|
+
if ($(n))
|
|
234
242
|
return this.five.camera.position.distanceTo(f);
|
|
235
243
|
}
|
|
236
244
|
getPositions(e) {
|
|
237
|
-
if (
|
|
245
|
+
if (ce(e))
|
|
238
246
|
return e.position;
|
|
239
247
|
if (B(e))
|
|
240
248
|
return e.data.mediaPosition;
|
|
241
|
-
if (
|
|
249
|
+
if (le(e))
|
|
242
250
|
return oe(this.five.camera.position, C(e.position), C(e.normal));
|
|
243
251
|
}
|
|
244
252
|
addObjectClickHandler(e, i, o) {
|
|
245
253
|
if (!i || !this.domEvents)
|
|
246
254
|
return () => {
|
|
247
255
|
};
|
|
248
|
-
const t = () => !(!this.getCurrentVisibleState(e) || e.loading),
|
|
256
|
+
const t = () => !(!this.getCurrentVisibleState(e) || e.loading), n = (r) => {
|
|
249
257
|
if (!t())
|
|
250
258
|
return !1;
|
|
251
|
-
o(
|
|
259
|
+
o(r.origDomEvent);
|
|
252
260
|
};
|
|
253
|
-
return this.domEvents.addEventListener(i, "click",
|
|
254
|
-
var
|
|
255
|
-
(
|
|
261
|
+
return this.domEvents.addEventListener(i, "click", n), () => {
|
|
262
|
+
var r;
|
|
263
|
+
(r = this.domEvents) == null || r.removeEventListener(i, "click", n);
|
|
256
264
|
};
|
|
257
265
|
}
|
|
258
266
|
getTagNormal(e) {
|
|
@@ -312,10 +320,10 @@ class ui extends re {
|
|
|
312
320
|
if ((I = e == null ? void 0 : e.config) != null && I._isMerged)
|
|
313
321
|
return e.config;
|
|
314
322
|
}
|
|
315
|
-
const t = {},
|
|
316
|
-
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([
|
|
323
|
+
const t = {}, n = {}, r = {};
|
|
324
|
+
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([u, m]) => {
|
|
317
325
|
var F, L;
|
|
318
|
-
const a =
|
|
326
|
+
const a = u, D = a.split("-"), x = u.startsWith("["), T = x ? D[0].slice(1, -1) : void 0, g = x ? D.slice(1) : D, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (F = n[T]) != null ? F : n[T] = {} : (L = r[T]) != null ? L : r[T] = {} : t;
|
|
319
327
|
if (!v[a]) {
|
|
320
328
|
if (g.length === 0 && (v[a] = m), g.length === 1) {
|
|
321
329
|
const [p] = g;
|
|
@@ -334,17 +342,17 @@ class ui extends re {
|
|
|
334
342
|
}
|
|
335
343
|
}
|
|
336
344
|
});
|
|
337
|
-
const f = (W = e.initialConfig) != null ? W : {},
|
|
338
|
-
z(
|
|
345
|
+
const f = (W = e.initialConfig) != null ? W : {}, l = y({}, ee, this.config.globalConfig, ...Object.values(t)), h = y({}, l, f), P = {}, G = Object.values(fe.Mode);
|
|
346
|
+
z(n).forEach(([u, m]) => {
|
|
339
347
|
G.forEach((a) => {
|
|
340
|
-
(
|
|
348
|
+
(u === "PanoramaLike" && A(a) || u === "ModelLike" && $(a)) && (P[a] = y({}, l, ...Object.values(m), f, { _isMerged: !0 }));
|
|
341
349
|
});
|
|
342
|
-
}), z(
|
|
343
|
-
const a = P[
|
|
344
|
-
P[
|
|
350
|
+
}), z(r).forEach(([u, m]) => {
|
|
351
|
+
const a = P[u];
|
|
352
|
+
P[u] = y({}, l, a, ...Object.values(m), f, { _isMerged: !0 });
|
|
345
353
|
});
|
|
346
|
-
const k =
|
|
347
|
-
return N(k), Object.values(P).forEach((
|
|
354
|
+
const k = _(b({}, h), { configWithFiveMode: P });
|
|
355
|
+
return N(k), Object.values(P).forEach((u) => N(u)), k._isMerged = !0, k;
|
|
348
356
|
}
|
|
349
357
|
}
|
|
350
358
|
export {
|