@realsee/dnalogel 3.36.2 → 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 +6 -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 +1 -4
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +0 -10
- package/dist/base/BasePlugin.d.ts +6 -0
- package/dist/index.cjs.js +30 -30
- package/dist/index.js +934 -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 +53 -45
- 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 +8 -26
- 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 +4 -4
- 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 +1 -4
- package/libs/PanoTagPlugin/controller/TagUtil.js +65 -68
- package/libs/PanoTagPlugin/controller/index.js +26 -25
- package/libs/PanoTagPlugin/index.js +3 -3
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +0 -10
- 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
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var q = Object.defineProperty, K = Object.defineProperties;
|
|
2
|
+
var Q = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var L = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Y = Object.prototype.hasOwnProperty, ee = Object.prototype.propertyIsEnumerable;
|
|
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
|
-
|
|
7
|
+
Y.call(s, e) && k(l, e, s[e]);
|
|
8
8
|
if (L)
|
|
9
9
|
for (var e of L(s))
|
|
10
|
-
|
|
10
|
+
ee.call(s, e) && k(l, e, s[e]);
|
|
11
11
|
return l;
|
|
12
|
-
},
|
|
13
|
-
var f = (l, s, e) => (
|
|
14
|
-
import { defaultGlobalConfig as
|
|
15
|
-
import { objectAssignDeepExports as
|
|
16
|
-
import * as
|
|
12
|
+
}, V = (l, s) => K(l, Q(s));
|
|
13
|
+
var f = (l, s, e) => (k(l, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
|
+
import { defaultGlobalConfig as ie } from "../typings/tag/TagConfig.js";
|
|
15
|
+
import { objectAssignDeepExports as y } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
|
+
import * as U from "three";
|
|
17
17
|
import { DefaultConfig as te } from "../tag.config.js";
|
|
18
|
-
import { anyPositionToVector3 as
|
|
18
|
+
import { anyPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
|
|
19
19
|
import { planeNormal as E } from "../utils/planeNormal.js";
|
|
20
|
-
import { getTagCenterPosition as
|
|
20
|
+
import { getTagCenterPosition as B } from "../utils/tagPosition.js";
|
|
21
21
|
import { normalPositionToPositions as oe } from "../utils/normalPositionToPositions.js";
|
|
22
22
|
import { TagCache as ne } from "./TagCache.js";
|
|
23
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";
|
|
27
|
-
import { isMediaPlaneTag as ce, isMediaModelTag as
|
|
27
|
+
import { isMediaPlaneTag as ce, isMediaModelTag as N, isPlaneTag as le, isPoint3DTag as de } from "../utils/tag/tagCheck.js";
|
|
28
28
|
import { VideoPlane as ue } from "../utils/model/mediaPlane.js";
|
|
29
29
|
import { FiveDomEvents as me } from "../../shared-utils/five/FiveDomEvents.js";
|
|
30
|
-
import
|
|
31
|
-
import { isPanoramaLike as
|
|
30
|
+
import z from "../utils/tag/adaptConfig.js";
|
|
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
|
-
import { entries as
|
|
36
|
-
import { getUrlExt as
|
|
37
|
-
import { transformPosition as
|
|
38
|
-
import { WorkUtil as he } from "../../shared-utils/Utils/WorkUtil.js";
|
|
35
|
+
import { entries as H } from "../../shared-utils/typescript/entries.js";
|
|
36
|
+
import { getUrlExt as J } from "../../shared-utils/url/getUrl.js";
|
|
37
|
+
import { transformPosition as G } from "../../shared-utils/five/transformPosition.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,13 +66,11 @@ 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 ne {
|
|
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
76
|
f(this, "mediaStore", re({
|
|
@@ -123,12 +122,6 @@ class gi extends ne {
|
|
|
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;
|
|
@@ -192,7 +185,7 @@ class gi extends ne {
|
|
|
192
185
|
const o = this.getTagConfig(e);
|
|
193
186
|
if (e.config = o, e.config.initialData) {
|
|
194
187
|
const n = JSON.parse(JSON.stringify(e.data));
|
|
195
|
-
e.data = (t = o.initialData) != null && t.important ?
|
|
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
|
}
|
|
@@ -228,10 +221,10 @@ class gi extends ne {
|
|
|
228
221
|
if (t[0].type === "Video")
|
|
229
222
|
return navigator.userAgent.toLowerCase().indexOf("firefox") > -1 && navigator.userAgent.toLowerCase().indexOf("mobile") > -1 ? "Dom" : "Mesh";
|
|
230
223
|
if (t[0].type === "Image")
|
|
231
|
-
return
|
|
224
|
+
return J(t[0].url) === "gif" ? "Dom" : "Mesh";
|
|
232
225
|
}
|
|
233
|
-
} else if (
|
|
234
|
-
return t.length === 1 && t[0].type === "Image" ?
|
|
226
|
+
} else if (N(e))
|
|
227
|
+
return t.length === 1 && t[0].type === "Image" ? J(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
|
|
235
228
|
}
|
|
236
229
|
})();
|
|
237
230
|
return i != null ? i : "Dom";
|
|
@@ -250,13 +243,13 @@ class gi extends ne {
|
|
|
250
243
|
const n = this.workUtil.getObserverPosition(o);
|
|
251
244
|
if (n === void 0)
|
|
252
245
|
throw new Error(`getAngle(): observerPosition is ${n}`);
|
|
253
|
-
const r = (() => e.stickType === "3DPoint" ?
|
|
246
|
+
const r = (() => e.stickType === "3DPoint" ? P(e.normal) : E(e.position))();
|
|
254
247
|
if (!r)
|
|
255
248
|
return;
|
|
256
|
-
const a =
|
|
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,29 +257,29 @@ class gi extends ne {
|
|
|
264
257
|
* @description 获取距离
|
|
265
258
|
*/
|
|
266
259
|
getDistance(e, i) {
|
|
267
|
-
const o = D(D({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = o, r =
|
|
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;
|
|
268
261
|
if ((r == null ? void 0 : r.distance) !== void 0)
|
|
269
262
|
return r.distance;
|
|
270
|
-
const a =
|
|
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
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) {
|
|
284
277
|
if (le(e))
|
|
285
278
|
return e.position;
|
|
286
|
-
if (
|
|
279
|
+
if (N(e))
|
|
287
280
|
return e.data.mediaPosition;
|
|
288
281
|
if (de(e))
|
|
289
|
-
return oe(this.five.camera.position,
|
|
282
|
+
return oe(this.five.camera.position, P(e.position), P(e.normal));
|
|
290
283
|
}
|
|
291
284
|
addObjectClickHandler(e, i, o) {
|
|
292
285
|
if (!i || !this.domEvents)
|
|
@@ -304,7 +297,7 @@ class gi extends ne {
|
|
|
304
297
|
}
|
|
305
298
|
getTagNormal(e) {
|
|
306
299
|
if (e.normal)
|
|
307
|
-
return
|
|
300
|
+
return P(e.normal);
|
|
308
301
|
if (e.stickType === "Plane")
|
|
309
302
|
return E(e.position);
|
|
310
303
|
if (e.stickType === "Model")
|
|
@@ -314,7 +307,11 @@ class gi extends ne {
|
|
|
314
307
|
if (!e)
|
|
315
308
|
return;
|
|
316
309
|
const i = this.workUtil.transform;
|
|
317
|
-
return Array.isArray(e) && e.length === 4 ? e.map(
|
|
310
|
+
return Array.isArray(e) && e.length === 4 ? e.map(P).map((o) => G(o, i)) : G(P(e), i);
|
|
311
|
+
}
|
|
312
|
+
getTransformedMatrix(e) {
|
|
313
|
+
const i = new U.Matrix4().fromArray(e);
|
|
314
|
+
return i.premultiply(this.workUtil.transform), i.elements;
|
|
318
315
|
}
|
|
319
316
|
/**
|
|
320
317
|
* @description 检查是否已经销毁
|
|
@@ -327,51 +324,51 @@ class gi extends ne {
|
|
|
327
324
|
* @description 获取merge后的配置
|
|
328
325
|
*/
|
|
329
326
|
calculateTagConfig(e, i) {
|
|
330
|
-
var
|
|
331
|
-
const o = (
|
|
327
|
+
var w, A, x, O, I;
|
|
328
|
+
const o = (w = i == null ? void 0 : i.useCache) != null ? w : !0;
|
|
332
329
|
if (!e)
|
|
333
330
|
return (A = this.config.globalConfig) != null ? A : {};
|
|
334
331
|
if (o) {
|
|
335
|
-
if ((
|
|
332
|
+
if ((x = e == null ? void 0 : e.computedConfig) != null && x._isMerged)
|
|
336
333
|
return e.computedConfig;
|
|
337
|
-
if ((
|
|
334
|
+
if ((O = e == null ? void 0 : e.config) != null && O._isMerged)
|
|
338
335
|
return e.config;
|
|
339
336
|
}
|
|
340
337
|
const t = {}, n = {}, r = {};
|
|
341
338
|
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([u, m]) => {
|
|
342
|
-
var
|
|
343
|
-
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;
|
|
344
341
|
if (!v[c]) {
|
|
345
|
-
if (
|
|
346
|
-
const [
|
|
347
|
-
(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);
|
|
348
345
|
}
|
|
349
|
-
if (
|
|
350
|
-
const [
|
|
351
|
-
|
|
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);
|
|
352
349
|
}
|
|
353
|
-
if (
|
|
354
|
-
const [
|
|
350
|
+
if (h.length === 3) {
|
|
351
|
+
const [p = "Any", M, Z] = h;
|
|
355
352
|
if (M === "Audio" && e.contentType === "Audio") {
|
|
356
353
|
const F = e;
|
|
357
|
-
(F.stickType ===
|
|
354
|
+
(F.stickType === p || p === "Any") && F.data.appearance === Z && (v[c] = m);
|
|
358
355
|
}
|
|
359
356
|
}
|
|
360
357
|
}
|
|
361
358
|
});
|
|
362
|
-
const a = (
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
(u === "PanoramaLike" &&
|
|
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);
|
|
360
|
+
H(n).forEach(([u, m]) => {
|
|
361
|
+
X.forEach((c) => {
|
|
362
|
+
(u === "PanoramaLike" && S(c) || u === "ModelLike" && $(c)) && (C[c] = y({}, d, ...Object.values(m), a, { _isMerged: !0 }));
|
|
366
363
|
});
|
|
367
|
-
}),
|
|
364
|
+
}), H(r).forEach(([u, m]) => {
|
|
368
365
|
const c = C[u];
|
|
369
|
-
C[u] =
|
|
366
|
+
C[u] = y({}, d, c, ...Object.values(m), a, { _isMerged: !0 });
|
|
370
367
|
});
|
|
371
|
-
const b =
|
|
372
|
-
return
|
|
368
|
+
const b = V(D({}, g), { configWithFiveMode: C });
|
|
369
|
+
return z(b), Object.values(C).forEach((u) => z(u)), b._isMerged = !0, b;
|
|
373
370
|
}
|
|
374
371
|
}
|
|
375
372
|
export {
|
|
376
|
-
|
|
373
|
+
hi as TagUtil
|
|
377
374
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var k = Object.defineProperty, E = Object.defineProperties;
|
|
2
2
|
var F = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var M = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var D = (d, a, e) => a in d ? k(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
|
|
7
|
+
M.call(a, e) && D(d, e, a[e]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var e of P(a))
|
|
10
|
-
|
|
10
|
+
R.call(a, e) && D(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
12
|
}, C = (d, a) => E(d, F(a));
|
|
13
13
|
var f = (d, a, e) => (D(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
@@ -29,14 +29,14 @@ var g = (d, a, e) => new Promise((t, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
import * as A from "three";
|
|
31
31
|
import { Subscribe as O } from "@realsee/five";
|
|
32
|
-
import { objectAssignDeepExports as
|
|
32
|
+
import { objectAssignDeepExports as m } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
33
|
import { addDebugPoints as _ } from "../utils/addDebugPoints.js";
|
|
34
34
|
import { arrayPositionToVector3 as w } from "../../shared-utils/positionToVector3.js";
|
|
35
35
|
import { isMediaModelTag as L, isModelTag as G } from "../utils/tag/tagCheck.js";
|
|
36
36
|
import { debounce as N } from "../utils/debounce.js";
|
|
37
37
|
import { throttle as S } from "../utils/throttle.js";
|
|
38
|
-
import
|
|
39
|
-
import { generateBlankAudio as
|
|
38
|
+
import x, { getTagStickType as z } from "../utils/tag/format.js";
|
|
39
|
+
import { generateBlankAudio as W, AudioNamespace as $ } from "../../shared-utils/audio.js";
|
|
40
40
|
import { resizeObserver as U } from "../../shared-utils/dom/resizeObserver.js";
|
|
41
41
|
import { TagRender as j } from "./TagRender.js";
|
|
42
42
|
import { uuid as J } from "../../shared-utils/uuid.js";
|
|
@@ -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";
|
|
@@ -184,7 +184,7 @@ class Ni extends j {
|
|
|
184
184
|
f(this, "debugUtil", new K(this));
|
|
185
185
|
/** 更改 tag 模型 */
|
|
186
186
|
f(this, "changeTagModel", (e, t) => g(this, null, function* () {
|
|
187
|
-
e.data =
|
|
187
|
+
e.data = m({}, e.data, t), yield this.loadModel(e), this.updateTag(e);
|
|
188
188
|
}));
|
|
189
189
|
f(this, "whyHide", (e) => {
|
|
190
190
|
var s;
|
|
@@ -274,7 +274,7 @@ class Ni extends j {
|
|
|
274
274
|
f(this, "onFiveEveryReady", () => {
|
|
275
275
|
this.setUnfoldedByCamera(), q(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 }), this.updateRenderVideoPlane(), this.updateRenderImagePlane(), this.updateTagModelVisible();
|
|
276
276
|
});
|
|
277
|
-
this.params =
|
|
277
|
+
this.params = m({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config, W(1, { namespace: $.PlayAudio });
|
|
278
278
|
try {
|
|
279
279
|
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
|
|
280
280
|
get: function() {
|
|
@@ -296,7 +296,7 @@ class Ni extends j {
|
|
|
296
296
|
load(e, t) {
|
|
297
297
|
return g(this, null, function* () {
|
|
298
298
|
var s, o;
|
|
299
|
-
this.clearTags(), console.debug(V, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config =
|
|
299
|
+
this.clearTags(), console.debug(V, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = m({}, this.config, {
|
|
300
300
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
301
301
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
302
302
|
}), this.store.visibleWithAnimation = !0;
|
|
@@ -317,7 +317,7 @@ class Ni extends j {
|
|
|
317
317
|
return g(this, null, function* () {
|
|
318
318
|
const s = (Array.isArray(e) ? e : [e]).filter((o) => o.position).map((o) => {
|
|
319
319
|
var b, v, T, y;
|
|
320
|
-
o.stickType =
|
|
320
|
+
o.stickType = z(o);
|
|
321
321
|
const r = JSON.parse(JSON.stringify(o.data)), n = (b = o.initialConfig) != null ? b : o.config ? JSON.parse(JSON.stringify(o.config)) : {};
|
|
322
322
|
o.initialConfig = n;
|
|
323
323
|
const h = this.calculateTagConfig(o), l = this.getTagConfig(o);
|
|
@@ -325,7 +325,7 @@ class Ni extends j {
|
|
|
325
325
|
const p = C(c({}, o), {
|
|
326
326
|
enabled: (v = o.enabled) != null ? v : !0,
|
|
327
327
|
id: (T = o.id) != null ? T : J(),
|
|
328
|
-
data: (y = l.initialData) != null && y.important ?
|
|
328
|
+
data: (y = l.initialData) != null && y.important ? m(o.data, r, l.initialData) : m(o.data, l.initialData, r),
|
|
329
329
|
state: c({
|
|
330
330
|
visible: void 0,
|
|
331
331
|
unfolded: !this.can("fold", o)
|
|
@@ -333,9 +333,10 @@ class Ni extends j {
|
|
|
333
333
|
hooks: new O(),
|
|
334
334
|
originPosition: o.position,
|
|
335
335
|
position: (() => {
|
|
336
|
-
const
|
|
337
|
-
return Array.isArray(
|
|
336
|
+
const u = this.getTransformedPostion(o.position);
|
|
337
|
+
return Array.isArray(u) ? u.map((B) => B.toArray()) : u.toArray();
|
|
338
338
|
})(),
|
|
339
|
+
matrix: o.matrix ? this.getTransformedMatrix(o.matrix) : o.matrix,
|
|
339
340
|
initialConfig: n,
|
|
340
341
|
computedConfig: h,
|
|
341
342
|
config: l,
|
|
@@ -344,13 +345,13 @@ class Ni extends j {
|
|
|
344
345
|
enable: () => this.changeEnabledById(p.id, !0),
|
|
345
346
|
disable: () => this.changeEnabledById(p.id, !1),
|
|
346
347
|
destroy: () => this.destroyTagById(p.id),
|
|
347
|
-
changeData: (
|
|
348
|
-
changePosition: (
|
|
349
|
-
blink: (
|
|
348
|
+
changeData: (u) => this.changeDataById(p.id, u),
|
|
349
|
+
changePosition: (u) => this.changePositionById(p.id, u),
|
|
350
|
+
blink: (u) => this.blinkTagById(p.id, u)
|
|
350
351
|
});
|
|
351
352
|
return p;
|
|
352
353
|
});
|
|
353
|
-
return s.forEach(
|
|
354
|
+
return s.forEach(x), this.tags.push(...s), this.tagsLengthWillUpdate = !0, H(this.five).then(() => g(this, null, function* () {
|
|
354
355
|
var o, r, n;
|
|
355
356
|
this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(s), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }), this.updateRenderAllTags();
|
|
356
357
|
}));
|
|
@@ -360,19 +361,19 @@ class Ni extends j {
|
|
|
360
361
|
* @description 改变配置
|
|
361
362
|
*/
|
|
362
363
|
changeConfig(e, t = !0) {
|
|
363
|
-
t ? this.config =
|
|
364
|
+
t ? this.config = m({}, this.config, e) : this.config = e, this.updateTagConfig(), this.setVisible(), this.updateRenderAllTags();
|
|
364
365
|
}
|
|
365
366
|
/**
|
|
366
367
|
* @description 改变全局配置
|
|
367
368
|
*/
|
|
368
369
|
changeGlobalConfig(e, t = !0) {
|
|
369
|
-
t ? this.config.globalConfig =
|
|
370
|
+
t ? this.config.globalConfig = m({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig(), this.setVisible(), this.updateRenderAllTags();
|
|
370
371
|
}
|
|
371
372
|
/**
|
|
372
373
|
* @description 改变类型配置
|
|
373
374
|
*/
|
|
374
375
|
changeContentTypeConfig(e, t, i = !0) {
|
|
375
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
376
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = m({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig(), this.setVisible(), this.updateRenderAllTags();
|
|
376
377
|
}
|
|
377
378
|
show(e) {
|
|
378
379
|
return g(this, null, function* () {
|
|
@@ -502,7 +503,7 @@ class Ni extends j {
|
|
|
502
503
|
changeDataById(e, t, i = !0) {
|
|
503
504
|
const s = this.getTagById(e);
|
|
504
505
|
let o = !1;
|
|
505
|
-
s && (s.data && (o = !0), i ? s.data =
|
|
506
|
+
s && (s.data && (o = !0), i ? s.data = m(s.data, t) : s.data = c(c({}, s.data), t), this.clearUnusedPanelTag(), this.updateTag(s), o && s.hooks.emit("dataChanged", s.data));
|
|
506
507
|
}
|
|
507
508
|
/**
|
|
508
509
|
* @description 改变tag的stickType
|
|
@@ -516,7 +517,7 @@ class Ni extends j {
|
|
|
516
517
|
changeTagById(e, t, i = !0) {
|
|
517
518
|
const s = this.getTagById(e);
|
|
518
519
|
let o = !1;
|
|
519
|
-
t && (this.tagsLengthWillUpdate = !0, t.data && (o = !0), i ?
|
|
520
|
+
t && (this.tagsLengthWillUpdate = !0, t.data && (o = !0), i ? m(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = w(t.normal)), this.clearCacheById(e), this.setVisible(), this.updateRenderAllTags(), this.clearUnusedPanelTag(), o && s.hooks.emit("dataChanged", s.data));
|
|
520
521
|
}
|
|
521
522
|
/**
|
|
522
523
|
* @description 销毁tag
|
|
@@ -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";
|
|
@@ -140,21 +140,11 @@ export interface ContentTypeMapInterface {
|
|
|
140
140
|
modelUrl: string;
|
|
141
141
|
mediaData: MediaData[];
|
|
142
142
|
mediaPosition: [Position, Position, Position, Position];
|
|
143
|
-
matrix?: number[];
|
|
144
143
|
/** 多媒体在容器中的适配规则 {@link https://developer.mozilla.org/zh-CN/docs/Web/CSS/object-fit} */
|
|
145
144
|
objectFit?: ObjectFit;
|
|
146
|
-
action?: {
|
|
147
|
-
url: string;
|
|
148
|
-
type: 'iframe' | 'window';
|
|
149
|
-
};
|
|
150
145
|
};
|
|
151
146
|
Model: {
|
|
152
147
|
modelUrl: string;
|
|
153
|
-
matrix?: number[];
|
|
154
|
-
action?: {
|
|
155
|
-
url?: string;
|
|
156
|
-
type: 'iframe' | 'window' | 'custom';
|
|
157
|
-
};
|
|
158
148
|
};
|
|
159
149
|
Custom: Object;
|
|
160
150
|
Unknown: Object;
|