@realsee/dnalogel 3.36.3 → 3.36.4
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/CSS3DRenderPlugin/Controller.d.ts +1 -3
- package/dist/CruisePlugin/BaseController.d.ts +0 -3
- package/dist/GuideLinePlugin/Controller.d.ts +0 -4
- package/dist/ModelMakerPlugin/Controller.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +0 -4
- package/dist/base/BasePlugin.d.ts +6 -0
- package/dist/index.cjs.js +30 -30
- package/dist/index.js +929 -937
- package/dist/index.umd.js +29 -29
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +50 -12
- 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 +54 -11
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/MoveController.html +37 -21
- package/docs/classes/Object3DHelperController.html +58 -15
- 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 +31 -23
- 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 +37 -21
- 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 +5 -5
- 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 +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +3 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +5 -5
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +5 -5
- 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 +4 -4
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +5 -5
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +5 -5
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +5 -5
- package/docs/interfaces/EventMap.html +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +4 -4
- 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 +5 -5
- 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 +5 -5
- 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 +6 -6
- 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/AreaMakerPlugin/Controller.js +5 -2
- package/libs/AreaMakerPlugin/index.js +5 -2
- package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -3
- package/libs/CruisePlugin/BaseController.d.ts +0 -3
- package/libs/CruisePlugin/BaseController.js +23 -30
- package/libs/CruisePlugin/Move.js +3 -3
- package/libs/CruisePlugin/Work.js +3 -3
- package/libs/CruisePlugin/index.js +3 -3
- package/libs/CurrentPanoImagePlugin/Controller.js +13 -10
- package/libs/CurrentPanoImagePlugin/index.js +6 -3
- package/libs/GuideLinePlugin/Controller.d.ts +0 -4
- package/libs/GuideLinePlugin/Controller.js +34 -41
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -3
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -3
- package/libs/GuideLinePlugin/index.js +3 -3
- package/libs/ModelMakerPlugin/Controller.d.ts +1 -0
- package/libs/ModelMakerPlugin/Controller.js +24 -18
- package/libs/ModelMakerPlugin/index.js +5 -2
- package/libs/Object3DHelperPlugin/Controller.js +13 -10
- package/libs/Object3DHelperPlugin/index.js +8 -5
- package/libs/PanoCompassPlugin/Controller.js +5 -2
- package/libs/PanoCompassPlugin/index.js +6 -3
- package/libs/PanoDoorLabelPlugin/BaseController.js +13 -10
- package/libs/PanoDoorLabelPlugin/Controller.js +5 -2
- package/libs/PanoDoorLabelPlugin/index.js +6 -3
- package/libs/PanoTagPlugin/controller/TagCache.js +19 -16
- package/libs/PanoTagPlugin/controller/TagComputer.js +3 -3
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -3
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +0 -4
- package/libs/PanoTagPlugin/controller/TagUtil.js +59 -66
- package/libs/PanoTagPlugin/controller/index.js +3 -3
- package/libs/PanoTagPlugin/index.js +3 -3
- package/libs/PanoVideoPlugin/Controller.js +44 -41
- package/libs/PanoVideoPlugin/index.js +8 -5
- package/libs/PipelinePlugin/Controller.js +33 -30
- package/libs/PipelinePlugin/index.js +6 -3
- package/libs/base/BasePlugin.d.ts +6 -0
- package/libs/base/BasePlugin.js +24 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +5 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +5 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +6 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -3
- package/libs/index.js +3 -3
- package/libs/shared-utils/Utils/WorkUtil.js +14 -14
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -2,25 +2,25 @@ var q = Object.defineProperty, K = Object.defineProperties;
|
|
|
2
2
|
var Q = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var L = Object.getOwnPropertySymbols;
|
|
4
4
|
var Y = Object.prototype.hasOwnProperty, ee = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var k = (l, s, e) => s in l ? q(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
|
-
Y.call(s, e) &&
|
|
7
|
+
Y.call(s, e) && k(l, e, s[e]);
|
|
8
8
|
if (L)
|
|
9
9
|
for (var e of L(s))
|
|
10
|
-
ee.call(s, e) &&
|
|
10
|
+
ee.call(s, e) && k(l, e, s[e]);
|
|
11
11
|
return l;
|
|
12
|
-
},
|
|
13
|
-
var f = (l, s, e) => (
|
|
12
|
+
}, V = (l, s) => K(l, Q(s));
|
|
13
|
+
var f = (l, s, e) => (k(l, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
14
|
import { defaultGlobalConfig as ie } from "../typings/tag/TagConfig.js";
|
|
15
15
|
import { objectAssignDeepExports as y } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
|
-
import * as
|
|
16
|
+
import * as U from "three";
|
|
17
17
|
import { DefaultConfig as te } from "../tag.config.js";
|
|
18
18
|
import { anyPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
|
|
19
|
-
import { planeNormal as
|
|
19
|
+
import { planeNormal as E } from "../utils/planeNormal.js";
|
|
20
20
|
import { getTagCenterPosition as B } 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 { CSS3DRenderPlugin as fe } from "../../CSS3DRenderPlugin/index.js";
|
|
26
26
|
import { Five as ae } from "@realsee/five";
|
|
@@ -28,14 +28,13 @@ import { isMediaPlaneTag as ce, isMediaModelTag as N, isPlaneTag as le, isPoint3
|
|
|
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 z from "../utils/tag/adaptConfig.js";
|
|
31
|
-
import { isPanoramaLike as
|
|
31
|
+
import { isPanoramaLike as S, isModelLike as $ } 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 H } from "../../shared-utils/typescript/entries.js";
|
|
36
36
|
import { getUrlExt as J } from "../../shared-utils/url/getUrl.js";
|
|
37
37
|
import { transformPosition as G } from "../../shared-utils/five/transformPosition.js";
|
|
38
|
-
import { WorkUtil as he } from "../../shared-utils/Utils/WorkUtil.js";
|
|
39
38
|
import "../../shared-utils/three/centerPoint.js";
|
|
40
39
|
import "../../base/BasePlugin.js";
|
|
41
40
|
import "../../shared-utils/Subscribe.js";
|
|
@@ -53,6 +52,8 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
53
52
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
54
53
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
55
54
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
55
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
56
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
56
57
|
import "../../vendor/svelte/internal/index.js";
|
|
57
58
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
58
59
|
import "../../shared-utils/five/fiveModelLoad.js";
|
|
@@ -65,16 +66,14 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
65
66
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
66
67
|
import "../../shared-utils/three/getNormal.js";
|
|
67
68
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
68
|
-
|
|
69
|
-
class gi extends re {
|
|
69
|
+
class hi extends ne {
|
|
70
70
|
constructor(e) {
|
|
71
71
|
super(e);
|
|
72
72
|
f(this, "tags", []);
|
|
73
73
|
f(this, "config", te);
|
|
74
|
-
f(this, "workUtil", new he(this.five));
|
|
75
74
|
/** 插件参数 */
|
|
76
75
|
f(this, "params");
|
|
77
|
-
f(this, "mediaStore",
|
|
76
|
+
f(this, "mediaStore", re({
|
|
78
77
|
currentMediaElement: null
|
|
79
78
|
}));
|
|
80
79
|
f(this, "store", {
|
|
@@ -123,12 +122,6 @@ class gi extends re {
|
|
|
123
122
|
return o === "BehindDom" || o === "Dom";
|
|
124
123
|
}));
|
|
125
124
|
}
|
|
126
|
-
set workCode(e) {
|
|
127
|
-
this.workUtil.workCode = e;
|
|
128
|
-
}
|
|
129
|
-
get workCode() {
|
|
130
|
-
return this.workUtil.workCode;
|
|
131
|
-
}
|
|
132
125
|
/** css3DRenderPlugin */
|
|
133
126
|
get css3DRenderPlugin() {
|
|
134
127
|
var e, i, o;
|
|
@@ -174,9 +167,9 @@ class gi extends re {
|
|
|
174
167
|
* @description 获取标签配置
|
|
175
168
|
*/
|
|
176
169
|
getTagConfig(e, i) {
|
|
177
|
-
var
|
|
178
|
-
const o = this.calculateTagConfig(e, { useCache: i == null ? void 0 : i.useCache }), t = (
|
|
179
|
-
return (d =
|
|
170
|
+
var r, a, d;
|
|
171
|
+
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];
|
|
172
|
+
return (d = n != null ? n : o) != null ? d : {};
|
|
180
173
|
}
|
|
181
174
|
/**
|
|
182
175
|
* @description 获取标签当前状态
|
|
@@ -191,8 +184,8 @@ class gi extends re {
|
|
|
191
184
|
e.computedConfig = i;
|
|
192
185
|
const o = this.getTagConfig(e);
|
|
193
186
|
if (e.config = o, e.config.initialData) {
|
|
194
|
-
const
|
|
195
|
-
e.data = (t = o.initialData) != null && t.important ? y(e.data,
|
|
187
|
+
const n = JSON.parse(JSON.stringify(e.data));
|
|
188
|
+
e.data = (t = o.initialData) != null && t.important ? y(e.data, n, o.initialData) : y(e.data, o.initialData, n);
|
|
196
189
|
}
|
|
197
190
|
});
|
|
198
191
|
}
|
|
@@ -247,16 +240,16 @@ class gi extends re {
|
|
|
247
240
|
if (t.angle !== void 0)
|
|
248
241
|
return t.angle;
|
|
249
242
|
{
|
|
250
|
-
const
|
|
251
|
-
if (
|
|
252
|
-
throw new Error(`getAngle(): observerPosition is ${
|
|
253
|
-
const
|
|
254
|
-
if (!
|
|
243
|
+
const n = this.workUtil.getObserverPosition(o);
|
|
244
|
+
if (n === void 0)
|
|
245
|
+
throw new Error(`getAngle(): observerPosition is ${n}`);
|
|
246
|
+
const r = (() => e.stickType === "3DPoint" ? P(e.normal) : E(e.position))();
|
|
247
|
+
if (!r)
|
|
255
248
|
return;
|
|
256
249
|
const a = B(e);
|
|
257
250
|
if (!a)
|
|
258
251
|
return;
|
|
259
|
-
const d = new
|
|
252
|
+
const d = new U.Vector3().copy(n).sub(a), g = r.angleTo(d) * 180 / Math.PI;
|
|
260
253
|
return t.angle = g, t.angle;
|
|
261
254
|
}
|
|
262
255
|
}
|
|
@@ -264,20 +257,20 @@ class gi extends re {
|
|
|
264
257
|
* @description 获取距离
|
|
265
258
|
*/
|
|
266
259
|
getDistance(e, i) {
|
|
267
|
-
const o = D(D({}, this.five.getCurrentState()), i), { panoIndex: t, mode:
|
|
268
|
-
if ((
|
|
269
|
-
return
|
|
260
|
+
const o = D(D({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = o, r = S(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
261
|
+
if ((r == null ? void 0 : r.distance) !== void 0)
|
|
262
|
+
return r.distance;
|
|
270
263
|
const a = B(e);
|
|
271
264
|
if (!a)
|
|
272
265
|
return -1;
|
|
273
|
-
if (
|
|
266
|
+
if (S(n)) {
|
|
274
267
|
const d = this.workUtil.getObserverPosition(t);
|
|
275
268
|
if (d === void 0)
|
|
276
269
|
return -1;
|
|
277
270
|
const g = d.distanceTo(a);
|
|
278
|
-
return
|
|
271
|
+
return r && (r.distance = g), g;
|
|
279
272
|
}
|
|
280
|
-
if ($(
|
|
273
|
+
if ($(n))
|
|
281
274
|
return this.five.camera.position.distanceTo(a);
|
|
282
275
|
}
|
|
283
276
|
getPositions(e) {
|
|
@@ -292,23 +285,23 @@ class gi extends re {
|
|
|
292
285
|
if (!i || !this.domEvents)
|
|
293
286
|
return () => {
|
|
294
287
|
};
|
|
295
|
-
const t = () => !(!this.getCurrentVisibleState(e) || e.loading),
|
|
288
|
+
const t = () => !(!this.getCurrentVisibleState(e) || e.loading), n = (r) => {
|
|
296
289
|
if (!t())
|
|
297
290
|
return !1;
|
|
298
|
-
o(
|
|
291
|
+
o(r.origDomEvent);
|
|
299
292
|
};
|
|
300
|
-
return this.domEvents.addEventListener(i, "click",
|
|
301
|
-
var
|
|
302
|
-
(
|
|
293
|
+
return this.domEvents.addEventListener(i, "click", n), () => {
|
|
294
|
+
var r;
|
|
295
|
+
(r = this.domEvents) == null || r.removeEventListener(i, "click", n);
|
|
303
296
|
};
|
|
304
297
|
}
|
|
305
298
|
getTagNormal(e) {
|
|
306
299
|
if (e.normal)
|
|
307
300
|
return P(e.normal);
|
|
308
301
|
if (e.stickType === "Plane")
|
|
309
|
-
return
|
|
302
|
+
return E(e.position);
|
|
310
303
|
if (e.stickType === "Model")
|
|
311
|
-
return
|
|
304
|
+
return E(this.getPositions(e));
|
|
312
305
|
}
|
|
313
306
|
getTransformedPostion(e) {
|
|
314
307
|
if (!e)
|
|
@@ -317,7 +310,7 @@ class gi extends re {
|
|
|
317
310
|
return Array.isArray(e) && e.length === 4 ? e.map(P).map((o) => G(o, i)) : G(P(e), i);
|
|
318
311
|
}
|
|
319
312
|
getTransformedMatrix(e) {
|
|
320
|
-
const i = new
|
|
313
|
+
const i = new U.Matrix4().fromArray(e);
|
|
321
314
|
return i.premultiply(this.workUtil.transform), i.elements;
|
|
322
315
|
}
|
|
323
316
|
/**
|
|
@@ -331,8 +324,8 @@ class gi extends re {
|
|
|
331
324
|
* @description 获取merge后的配置
|
|
332
325
|
*/
|
|
333
326
|
calculateTagConfig(e, i) {
|
|
334
|
-
var
|
|
335
|
-
const o = (
|
|
327
|
+
var w, A, x, O, I;
|
|
328
|
+
const o = (w = i == null ? void 0 : i.useCache) != null ? w : !0;
|
|
336
329
|
if (!e)
|
|
337
330
|
return (A = this.config.globalConfig) != null ? A : {};
|
|
338
331
|
if (o) {
|
|
@@ -341,41 +334,41 @@ class gi extends re {
|
|
|
341
334
|
if ((O = e == null ? void 0 : e.config) != null && O._isMerged)
|
|
342
335
|
return e.config;
|
|
343
336
|
}
|
|
344
|
-
const t = {},
|
|
337
|
+
const t = {}, n = {}, r = {};
|
|
345
338
|
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([u, m]) => {
|
|
346
|
-
var
|
|
347
|
-
const c = u,
|
|
339
|
+
var W, R;
|
|
340
|
+
const c = u, _ = c.split("-"), j = u.startsWith("["), T = j ? _[0].slice(1, -1) : void 0, h = j ? _.slice(1) : _, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (W = n[T]) != null ? W : n[T] = {} : (R = r[T]) != null ? R : r[T] = {} : t;
|
|
348
341
|
if (!v[c]) {
|
|
349
|
-
if (
|
|
350
|
-
const [
|
|
351
|
-
(e.contentType ===
|
|
342
|
+
if (h.length === 0 && (v[c] = m), h.length === 1) {
|
|
343
|
+
const [p] = h;
|
|
344
|
+
(e.contentType === p || p === "Any") && (v[c] = m);
|
|
352
345
|
}
|
|
353
|
-
if (
|
|
354
|
-
const [
|
|
355
|
-
|
|
346
|
+
if (h.length === 2) {
|
|
347
|
+
const [p = "Any", M = "Any"] = h;
|
|
348
|
+
p === "Mixin" && e.contentType === M && (v[c] = m), (e.stickType === p || p === "Any") && (e.contentType === M || M === "Any") && (v[c] = m);
|
|
356
349
|
}
|
|
357
|
-
if (
|
|
358
|
-
const [
|
|
350
|
+
if (h.length === 3) {
|
|
351
|
+
const [p = "Any", M, Z] = h;
|
|
359
352
|
if (M === "Audio" && e.contentType === "Audio") {
|
|
360
353
|
const F = e;
|
|
361
|
-
(F.stickType ===
|
|
354
|
+
(F.stickType === p || p === "Any") && F.data.appearance === Z && (v[c] = m);
|
|
362
355
|
}
|
|
363
356
|
}
|
|
364
357
|
}
|
|
365
358
|
});
|
|
366
359
|
const a = (I = e.initialConfig) != null ? I : {}, d = y({}, ie, this.config.globalConfig, ...Object.values(t)), g = y({}, d, a), C = {}, X = Object.values(ae.Mode);
|
|
367
|
-
H(
|
|
360
|
+
H(n).forEach(([u, m]) => {
|
|
368
361
|
X.forEach((c) => {
|
|
369
|
-
(u === "PanoramaLike" &&
|
|
362
|
+
(u === "PanoramaLike" && S(c) || u === "ModelLike" && $(c)) && (C[c] = y({}, d, ...Object.values(m), a, { _isMerged: !0 }));
|
|
370
363
|
});
|
|
371
|
-
}), H(
|
|
364
|
+
}), H(r).forEach(([u, m]) => {
|
|
372
365
|
const c = C[u];
|
|
373
366
|
C[u] = y({}, d, c, ...Object.values(m), a, { _isMerged: !0 });
|
|
374
367
|
});
|
|
375
|
-
const
|
|
376
|
-
return z(
|
|
368
|
+
const b = V(D({}, g), { configWithFiveMode: C });
|
|
369
|
+
return z(b), Object.values(C).forEach((u) => z(u)), b._isMerged = !0, b;
|
|
377
370
|
}
|
|
378
371
|
}
|
|
379
372
|
export {
|
|
380
|
-
|
|
373
|
+
hi as TagUtil
|
|
381
374
|
};
|
|
@@ -67,6 +67,9 @@ import "./TagCache.js";
|
|
|
67
67
|
import "../../base/BasePlugin.js";
|
|
68
68
|
import "../../shared-utils/Subscribe.js";
|
|
69
69
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
70
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
71
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
72
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
70
73
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
71
74
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
72
75
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -96,9 +99,6 @@ import "../../shared-utils/five/calculateThreeMouse.js";
|
|
|
96
99
|
import "../utils/tag/adaptConfig.js";
|
|
97
100
|
import "../../shared-utils/typescript/entries.js";
|
|
98
101
|
import "../../shared-utils/url/getUrl.js";
|
|
99
|
-
import "../../shared-utils/five/transformPosition.js";
|
|
100
|
-
import "../../shared-utils/Utils/WorkUtil.js";
|
|
101
|
-
import "../../shared-utils/Utils/BaseUtil.js";
|
|
102
102
|
import "../../shared-utils/five/getFloorIndex.js";
|
|
103
103
|
import "../Components/TagContainer.js";
|
|
104
104
|
import "../Components/TagItem.js";
|
|
@@ -44,6 +44,9 @@ import "./utils/normalPositionToPositions.js";
|
|
|
44
44
|
import "./controller/TagCache.js";
|
|
45
45
|
import "../base/BasePlugin.js";
|
|
46
46
|
import "../shared-utils/url/absoluteUrl.js";
|
|
47
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
48
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
49
|
+
import "../shared-utils/five/transformPosition.js";
|
|
47
50
|
import "../vendor/svelte/store/index.js";
|
|
48
51
|
import "../vendor/svelte/internal/index.js";
|
|
49
52
|
import "../shared-utils/device.js";
|
|
@@ -64,9 +67,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
64
67
|
import "./utils/tag/adaptConfig.js";
|
|
65
68
|
import "../shared-utils/typescript/entries.js";
|
|
66
69
|
import "../shared-utils/url/getUrl.js";
|
|
67
|
-
import "../shared-utils/five/transformPosition.js";
|
|
68
|
-
import "../shared-utils/Utils/WorkUtil.js";
|
|
69
|
-
import "../shared-utils/Utils/BaseUtil.js";
|
|
70
70
|
import "../shared-utils/five/getFloorIndex.js";
|
|
71
71
|
import "../shared-utils/safeObj.js";
|
|
72
72
|
import "./Components/TagContainer.js";
|
|
@@ -2,15 +2,15 @@ var f = Object.defineProperty, m = Object.defineProperties;
|
|
|
2
2
|
var b = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var p = Object.getOwnPropertySymbols;
|
|
4
4
|
var M = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var l = (o, t,
|
|
6
|
-
for (var
|
|
7
|
-
M.call(t,
|
|
5
|
+
var l = (o, t, r) => t in o ? f(o, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[t] = r, a = (o, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
M.call(t, r) && l(o, r, t[r]);
|
|
8
8
|
if (p)
|
|
9
|
-
for (var
|
|
10
|
-
W.call(t,
|
|
9
|
+
for (var r of p(t))
|
|
10
|
+
W.call(t, r) && l(o, r, t[r]);
|
|
11
11
|
return o;
|
|
12
12
|
}, d = (o, t) => m(o, b(t));
|
|
13
|
-
var s = (o, t,
|
|
13
|
+
var s = (o, t, r) => (l(o, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
import { VideoMeshController as c } from "./VideoMeshController.js";
|
|
15
15
|
import { Controller as _ } from "../base/BasePlugin.js";
|
|
16
16
|
import "./utils/shader.js";
|
|
@@ -38,9 +38,12 @@ import "animejs";
|
|
|
38
38
|
import "../shared-utils/animationFrame/index.js";
|
|
39
39
|
import "./utils/index.js";
|
|
40
40
|
import "../shared-utils/url/absoluteUrl.js";
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
42
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
43
|
+
import "../shared-utils/five/transformPosition.js";
|
|
44
|
+
class Y extends _ {
|
|
45
|
+
constructor(r) {
|
|
46
|
+
super(r);
|
|
44
47
|
s(this, "controllerMap", /* @__PURE__ */ new Map());
|
|
45
48
|
s(this, "data");
|
|
46
49
|
s(this, "enabled", !0);
|
|
@@ -57,11 +60,11 @@ class T extends _ {
|
|
|
57
60
|
return this._disposed;
|
|
58
61
|
}
|
|
59
62
|
/** 加载点位视频数据,加载数据并不代表会加载点位视频。 */
|
|
60
|
-
load(
|
|
63
|
+
load(r, e) {
|
|
61
64
|
var i;
|
|
62
65
|
if (this.disposed)
|
|
63
66
|
return this.logWarning("插件已被销毁");
|
|
64
|
-
typeof ((i =
|
|
67
|
+
typeof ((i = e == null ? void 0 : e.initialState) == null ? void 0 : i.enabled) != "undefined" && e.initialState.enabled !== this.enabled && (e.initialState.enabled ? this.enable() : this.disable()), r.list.forEach((n) => {
|
|
65
68
|
const u = n.pano_index, g = n.render_id;
|
|
66
69
|
n.video_list.forEach((h) => {
|
|
67
70
|
this.controllerMap.set(
|
|
@@ -74,41 +77,41 @@ class T extends _ {
|
|
|
74
77
|
}))
|
|
75
78
|
);
|
|
76
79
|
});
|
|
77
|
-
}), this.data =
|
|
80
|
+
}), this.data = r, this.hooks.emit("dataLoaded", r);
|
|
78
81
|
}
|
|
79
82
|
/** 开启插件功能。 */
|
|
80
|
-
enable(
|
|
83
|
+
enable(r) {
|
|
81
84
|
var i;
|
|
82
85
|
if (this.disposed)
|
|
83
86
|
return this.logWarning("插件已被销毁");
|
|
84
87
|
if (this.enabled)
|
|
85
88
|
return;
|
|
86
89
|
this.enabled = !0, Array.from(this.controllerMap.values()).forEach((n) => n.enable());
|
|
87
|
-
const
|
|
88
|
-
this.hooks.emit("enable", { userAction:
|
|
90
|
+
const e = (i = r == null ? void 0 : r.userAction) != null ? i : !0;
|
|
91
|
+
this.hooks.emit("enable", { userAction: e });
|
|
89
92
|
}
|
|
90
93
|
/** 禁用插件功能。 */
|
|
91
|
-
disable(
|
|
94
|
+
disable(r) {
|
|
92
95
|
var i;
|
|
93
96
|
if (this.disposed)
|
|
94
97
|
return this.logWarning("插件已被销毁");
|
|
95
98
|
if (!this.enabled)
|
|
96
99
|
return;
|
|
97
100
|
this.enabled = !1, Array.from(this.controllerMap.values()).forEach((n) => n.disable());
|
|
98
|
-
const
|
|
99
|
-
this.hooks.emit("disable", { userAction:
|
|
101
|
+
const e = (i = r == null ? void 0 : r.userAction) != null ? i : !0;
|
|
102
|
+
this.hooks.emit("disable", { userAction: e });
|
|
100
103
|
}
|
|
101
104
|
/** 看向某个视频。
|
|
102
105
|
* - 会自动切换到全景模式。
|
|
103
106
|
* - 如果遇到不能自动播放的问题,需要放到用户交互事件中调用。
|
|
104
107
|
*/
|
|
105
|
-
lookAtVideoItemByRenderID(
|
|
108
|
+
lookAtVideoItemByRenderID(r) {
|
|
106
109
|
if (this.disposed)
|
|
107
110
|
return this.logWarning("插件已被销毁");
|
|
108
|
-
const
|
|
109
|
-
if (!
|
|
110
|
-
return this.logWarning(`ID 为 ${
|
|
111
|
-
|
|
111
|
+
const e = this.controllerMap.get(r);
|
|
112
|
+
if (!e)
|
|
113
|
+
return this.logWarning(`ID 为 ${r} 的点位视频不存在`);
|
|
114
|
+
e.lookAtVideo();
|
|
112
115
|
}
|
|
113
116
|
/**
|
|
114
117
|
* 取消静音。
|
|
@@ -126,26 +129,26 @@ class T extends _ {
|
|
|
126
129
|
* }}
|
|
127
130
|
* ```
|
|
128
131
|
*/
|
|
129
|
-
unmuteByRenderID(
|
|
132
|
+
unmuteByRenderID(r) {
|
|
130
133
|
if (this.disposed)
|
|
131
134
|
return this.logWarning("插件已被销毁");
|
|
132
|
-
const
|
|
133
|
-
if (!
|
|
134
|
-
return this.logWarning(`ID 为 ${
|
|
135
|
-
|
|
135
|
+
const e = this.controllerMap.get(r);
|
|
136
|
+
if (!e)
|
|
137
|
+
return this.logWarning(`ID 为 ${r} 的点位视频不存在`);
|
|
138
|
+
e.unmute();
|
|
136
139
|
}
|
|
137
140
|
/** 为一个点位添加视频(可以是多条)。 */
|
|
138
|
-
add(
|
|
141
|
+
add(r, e) {
|
|
139
142
|
if (this.disposed)
|
|
140
143
|
return this.logWarning("插件已被销毁");
|
|
141
|
-
|
|
144
|
+
e.forEach((i) => {
|
|
142
145
|
if (this.controllerMap.get(i.render_id))
|
|
143
146
|
return this.logWarning(`ID 为 ${i.render_id} 的点位视频已存在`);
|
|
144
147
|
const n = i.render_id;
|
|
145
148
|
this.controllerMap.set(
|
|
146
149
|
i.render_id,
|
|
147
150
|
new c(this.five, d(a({}, i), {
|
|
148
|
-
panoIndex:
|
|
151
|
+
panoIndex: r,
|
|
149
152
|
renderID: n,
|
|
150
153
|
hooks: this.hooks,
|
|
151
154
|
initialState: { enabled: this.enabled }
|
|
@@ -154,32 +157,32 @@ class T extends _ {
|
|
|
154
157
|
});
|
|
155
158
|
}
|
|
156
159
|
/** 根据 VideoItem render_id 删除某个视频。 */
|
|
157
|
-
removeByRenderID(
|
|
160
|
+
removeByRenderID(r) {
|
|
158
161
|
if (this.disposed)
|
|
159
162
|
return this.logWarning("插件已被销毁");
|
|
160
|
-
const
|
|
161
|
-
if (!
|
|
162
|
-
return this.logWarning(`ID 为 ${
|
|
163
|
-
|
|
163
|
+
const e = this.controllerMap.get(r);
|
|
164
|
+
if (!e)
|
|
165
|
+
return this.logWarning(`ID 为 ${r} 的点位视频不存在`);
|
|
166
|
+
e.dispose(), this.controllerMap.delete(r);
|
|
164
167
|
}
|
|
165
168
|
/** 清空现有数据 */
|
|
166
169
|
clear() {
|
|
167
170
|
if (this.disposed)
|
|
168
171
|
return this.logWarning("插件已被销毁");
|
|
169
|
-
Array.from(this.controllerMap.values()).forEach((
|
|
172
|
+
Array.from(this.controllerMap.values()).forEach((r) => r.dispose()), this.controllerMap.clear();
|
|
170
173
|
}
|
|
171
174
|
/** 销毁插件 */
|
|
172
175
|
dispose() {
|
|
173
176
|
if (this.disposed)
|
|
174
177
|
return this.logWarning("插件已被销毁");
|
|
175
|
-
this._disposed = !0, Array.from(this.controllerMap.values()).forEach((
|
|
178
|
+
this._disposed = !0, Array.from(this.controllerMap.values()).forEach((r) => r.dispose()), this.controllerMap.clear();
|
|
176
179
|
}
|
|
177
180
|
/** 控制台打印警告 */
|
|
178
181
|
// TODO: 全局函数 curry 化
|
|
179
|
-
logWarning(
|
|
180
|
-
console.warn("⛔ ==> [PanoVideoPluginController]:",
|
|
182
|
+
logWarning(r) {
|
|
183
|
+
console.warn("⛔ ==> [PanoVideoPluginController]:", r);
|
|
181
184
|
}
|
|
182
185
|
}
|
|
183
186
|
export {
|
|
184
|
-
|
|
187
|
+
Y as PanoVideoPluginController
|
|
185
188
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PanoVideoPluginController as r } from "./Controller.js";
|
|
2
|
-
import { typings as
|
|
2
|
+
import { typings as H } from "./typings/index.js";
|
|
3
3
|
import "./VideoMeshController.js";
|
|
4
4
|
import "./utils/shader.js";
|
|
5
5
|
import "hammerjs";
|
|
@@ -27,9 +27,12 @@ import "../shared-utils/animationFrame/index.js";
|
|
|
27
27
|
import "./utils/index.js";
|
|
28
28
|
import "../base/BasePlugin.js";
|
|
29
29
|
import "../shared-utils/url/absoluteUrl.js";
|
|
30
|
-
|
|
30
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
31
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
32
|
+
import "../shared-utils/five/transformPosition.js";
|
|
33
|
+
const E = (o) => new r(o);
|
|
31
34
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
E as PanoVideoPlugin,
|
|
36
|
+
H as PanoVideoPluginType,
|
|
37
|
+
E as default
|
|
35
38
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var j = Object.defineProperty;
|
|
2
2
|
var v = Object.getOwnPropertySymbols;
|
|
3
3
|
var P = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var A = (
|
|
4
|
+
var A = (c, n, e) => n in c ? j(c, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[n] = e, m = (c, n) => {
|
|
5
5
|
for (var e in n || (n = {}))
|
|
6
|
-
P.call(n, e) && A(
|
|
6
|
+
P.call(n, e) && A(c, e, n[e]);
|
|
7
7
|
if (v)
|
|
8
8
|
for (var e of v(n))
|
|
9
|
-
_.call(n, e) && A(
|
|
10
|
-
return
|
|
9
|
+
_.call(n, e) && A(c, e, n[e]);
|
|
10
|
+
return c;
|
|
11
11
|
};
|
|
12
|
-
var u = (
|
|
13
|
-
var d = (
|
|
12
|
+
var u = (c, n, e) => (A(c, typeof n != "symbol" ? n + "" : n, e), e);
|
|
13
|
+
var d = (c, n, e) => new Promise((t, i) => {
|
|
14
14
|
var s = (a) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
i(
|
|
16
|
+
o(e.next(a));
|
|
17
|
+
} catch (p) {
|
|
18
|
+
i(p);
|
|
19
19
|
}
|
|
20
20
|
}, r = (a) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
i(
|
|
22
|
+
o(e.throw(a));
|
|
23
|
+
} catch (p) {
|
|
24
|
+
i(p);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, o = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(s, r);
|
|
27
|
+
o((e = e.apply(c, n)).next());
|
|
28
28
|
});
|
|
29
29
|
import * as F from "three";
|
|
30
30
|
import { Controller as S } from "../base/BasePluginWithData.js";
|
|
@@ -55,6 +55,9 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
|
55
55
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
56
56
|
import "animejs";
|
|
57
57
|
import "../shared-utils/url/absoluteUrl.js";
|
|
58
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
59
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
60
|
+
import "../shared-utils/five/transformPosition.js";
|
|
58
61
|
import "../shared-utils/isTruelyObject.js";
|
|
59
62
|
import "../shared-utils/animationFrame/index.js";
|
|
60
63
|
import "./utils/Objects/Pipe.js";
|
|
@@ -63,7 +66,7 @@ import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
|
63
66
|
import "../shared-utils/three/Extras/Core/Interpolations.js";
|
|
64
67
|
import "../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
65
68
|
const g = { flowSpeed: 0.6, rotateSpeed: 0 };
|
|
66
|
-
class
|
|
69
|
+
class we extends S {
|
|
67
70
|
constructor(e) {
|
|
68
71
|
super(e);
|
|
69
72
|
// ==================== public properties ====================
|
|
@@ -92,12 +95,12 @@ class le extends S {
|
|
|
92
95
|
const [t] = e, i = t.intersectObjects(this.pipeObjects, !1);
|
|
93
96
|
if (i.length === 0 || !this.data)
|
|
94
97
|
return;
|
|
95
|
-
const
|
|
96
|
-
if (!(!a || !
|
|
98
|
+
const o = i[0].object.customID, a = this.data.pipes.find(({ id: h }) => h === o), p = this.data.pipelines.find((h) => a && h.pipes.includes(a));
|
|
99
|
+
if (!(!a || !p))
|
|
97
100
|
return this.hooks.emit("tap", {
|
|
98
101
|
intersectObjects: i,
|
|
99
102
|
pipe: a,
|
|
100
|
-
pipeline:
|
|
103
|
+
pipeline: p,
|
|
101
104
|
wantsFiveTapGestureParams: e
|
|
102
105
|
}), !1;
|
|
103
106
|
});
|
|
@@ -123,16 +126,16 @@ class le extends S {
|
|
|
123
126
|
return d(this, null, function* () {
|
|
124
127
|
const r = this.data;
|
|
125
128
|
this.data = yield this.formatData(e, s), this.removeAllPipes(), this.hooks.emit("dataChange", this.data, r), this.pipeObjects = yield Promise.all(
|
|
126
|
-
this.data.pipes.filter((
|
|
127
|
-
const l = yield this.loadPipeTexture(a), f = { id:
|
|
129
|
+
this.data.pipes.filter((o) => !!(o != null && o.texture)).map((b) => d(this, [b], function* ({ id: o, texture: a, path: p, radius: h }) {
|
|
130
|
+
const l = yield this.loadPipeTexture(a), f = { id: o, path: p, textureURL: a, texture: l, geometryConfig: { radius: h } };
|
|
128
131
|
return new D(f);
|
|
129
132
|
}))
|
|
130
|
-
), this.data.pipelines.forEach((
|
|
131
|
-
|
|
132
|
-
const
|
|
133
|
-
return
|
|
133
|
+
), this.data.pipelines.forEach((o) => {
|
|
134
|
+
o.pipes.reduce((a, p) => {
|
|
135
|
+
const h = this.findPipeObjectWithID(p.id);
|
|
136
|
+
return h == null || h.setInitialDisplacement(a), a + ((h == null ? void 0 : h.pathLength) || 0);
|
|
134
137
|
}, 0);
|
|
135
|
-
}), this.hooks.emit("dataLoaded", this.data), this.state.visible === !1 && this.pipeObjects.forEach((
|
|
138
|
+
}), this.hooks.emit("dataLoaded", this.data), this.state.visible === !1 && this.pipeObjects.forEach((o) => o.setOpacity(0)), this.state.enabled && (this.group.add(...this.pipeObjects), this.five.needsRender = !0), t && this.setState(t, { userAction: i });
|
|
136
139
|
});
|
|
137
140
|
}
|
|
138
141
|
/** 更改插件 State
|
|
@@ -226,14 +229,14 @@ class le extends S {
|
|
|
226
229
|
* */
|
|
227
230
|
switchPipelines(e) {
|
|
228
231
|
return d(this, null, function* () {
|
|
229
|
-
var
|
|
232
|
+
var p, h, b, l, f, w;
|
|
230
233
|
if (!this.data)
|
|
231
234
|
return;
|
|
232
|
-
const t = (
|
|
235
|
+
const t = (p = e == null ? void 0 : e.target) != null ? p : null, i = (h = e == null ? void 0 : e.userAction) != null ? h : !0;
|
|
233
236
|
this.updateState({ target: t }, i);
|
|
234
|
-
const s = { duration: 500 }, r = (l = (b = e == null ? void 0 : e.hideAnime) != null ? b : e == null ? void 0 : e.anime) != null ? l : s,
|
|
237
|
+
const s = { duration: 500 }, r = (l = (b = e == null ? void 0 : e.hideAnime) != null ? b : e == null ? void 0 : e.anime) != null ? l : s, o = (w = (f = e == null ? void 0 : e.showAnime) != null ? f : e == null ? void 0 : e.anime) != null ? w : s, a = {
|
|
235
238
|
target: t,
|
|
236
|
-
showAnime:
|
|
239
|
+
showAnime: o,
|
|
237
240
|
hideAnime: r
|
|
238
241
|
};
|
|
239
242
|
this._switchPipelines(a);
|
|
@@ -343,5 +346,5 @@ class le extends S {
|
|
|
343
346
|
}
|
|
344
347
|
}
|
|
345
348
|
export {
|
|
346
|
-
|
|
349
|
+
we as Controller
|
|
347
350
|
};
|