@realsee/dnalogel 3.20.0-dev.2 → 3.20.1
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/components/index.js +104 -95
- package/dist/PanoVideoPlugin/Controller.d.ts +17 -0
- package/dist/PanoVideoPlugin/VideoMeshController.d.ts +6 -0
- package/dist/index.cjs.js +39 -39
- package/dist/index.js +3952 -3885
- package/dist/index.umd.js +37 -37
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
- package/docs/classes/Magnifier.html +3 -3
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/MoveController.html +3 -3
- package/docs/classes/Object3DHelperController.html +3 -3
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoMeasurePluginLine.html +3 -3
- package/docs/classes/PanoMeasurePluginModel.html +3 -3
- package/docs/classes/PanoMeasurePluginPoint.html +3 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
- package/docs/classes/PanoTagPluginController.html +3 -3
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.LineSegments.html +3 -3
- package/docs/classes/Util.Magnifier.html +3 -3
- package/docs/classes/Util.Object3D.html +3 -3
- package/docs/classes/Util.PointDomHelper.html +3 -3
- package/docs/classes/Util.PointHelper.html +3 -3
- package/docs/classes/Util.PointSelectorHelper.html +3 -3
- package/docs/classes/Util.Rectangle.html +3 -3
- package/docs/classes/WalkController.html +3 -3
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +3 -3
- package/docs/enums/DIRECTION.html +3 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/PaintBrushTypeEnum.html +3 -3
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +3 -3
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/CurrentPanoImagePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +3 -3
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/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/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.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.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +3 -3
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +3 -3
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +3 -3
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.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/PanoVideoPluginType.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- 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/AudioTagTypeConfigKey.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/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/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/StickType.html +3 -3
- package/docs/types/Tag.html +3 -3
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagConfigByKey.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagContentTypeMapping.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +3 -3
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +3 -3
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/defaultGlobalConfig.html +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +232 -208
- package/libs/PanoTagPlugin/controller/TagRender.js +78 -79
- package/libs/PanoVideoPlugin/Controller.d.ts +17 -0
- package/libs/PanoVideoPlugin/Controller.js +63 -39
- package/libs/PanoVideoPlugin/VideoMeshController.d.ts +6 -0
- package/libs/PanoVideoPlugin/VideoMeshController.js +8 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +111 -108
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/@tweenjs/tween/dist/tween.esm.js.js +88 -79
- package/package.json +2 -2
package/components/index.js
CHANGED
|
@@ -3,11 +3,11 @@ var Z = (t, i, e) => i in t ? z(t, i, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var C = (t, i, e) => (Z(t, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
4
|
function m() {
|
|
5
5
|
}
|
|
6
|
-
const
|
|
6
|
+
const B = () => Promise.resolve(), k = {
|
|
7
7
|
__queue: Promise.resolve()
|
|
8
8
|
};
|
|
9
|
-
function G(t =
|
|
10
|
-
k.__queue = k.__queue.then(t).catch(
|
|
9
|
+
function G(t = B) {
|
|
10
|
+
k.__queue = k.__queue.then(t).catch(B);
|
|
11
11
|
}
|
|
12
12
|
function T(t, i, e) {
|
|
13
13
|
const n = t.x, s = t.y, r = Math.floor(n / i * 1e4) / 1e4, a = Math.floor(s / e * 1e4) / 1e4;
|
|
@@ -37,7 +37,7 @@ const W = window, R = window.requestAnimationFrame || W.webkitRequestAnimationFr
|
|
|
37
37
|
function P(t, i = 0) {
|
|
38
38
|
i <= 0 ? R(t) : R(() => P(t, i - 1));
|
|
39
39
|
}
|
|
40
|
-
var
|
|
40
|
+
var b = Object.freeze({
|
|
41
41
|
Linear: Object.freeze({
|
|
42
42
|
None: function(t) {
|
|
43
43
|
return t;
|
|
@@ -156,13 +156,13 @@ var w = Object.freeze({
|
|
|
156
156
|
}),
|
|
157
157
|
Bounce: Object.freeze({
|
|
158
158
|
In: function(t) {
|
|
159
|
-
return 1 -
|
|
159
|
+
return 1 - b.Bounce.Out(1 - t);
|
|
160
160
|
},
|
|
161
161
|
Out: function(t) {
|
|
162
162
|
return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + 0.75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + 0.9375 : 7.5625 * (t -= 2.625 / 2.75) * t + 0.984375;
|
|
163
163
|
},
|
|
164
164
|
InOut: function(t) {
|
|
165
|
-
return t < 0.5 ?
|
|
165
|
+
return t < 0.5 ? b.Bounce.In(t * 2) * 0.5 : b.Bounce.Out(t * 2 - 1) * 0.5 + 0.5;
|
|
166
166
|
}
|
|
167
167
|
}),
|
|
168
168
|
generatePow: function(t) {
|
|
@@ -213,18 +213,18 @@ var w = Object.freeze({
|
|
|
213
213
|
return !0;
|
|
214
214
|
}, t;
|
|
215
215
|
}()
|
|
216
|
-
),
|
|
216
|
+
), w = {
|
|
217
217
|
Linear: function(t, i) {
|
|
218
|
-
var e = t.length - 1, n = e * i, s = Math.floor(n), r =
|
|
218
|
+
var e = t.length - 1, n = e * i, s = Math.floor(n), r = w.Utils.Linear;
|
|
219
219
|
return i < 0 ? r(t[0], t[1], n) : i > 1 ? r(t[e], t[e - 1], e - n) : r(t[s], t[s + 1 > e ? e : s + 1], n - s);
|
|
220
220
|
},
|
|
221
221
|
Bezier: function(t, i) {
|
|
222
|
-
for (var e = 0, n = t.length - 1, s = Math.pow, r =
|
|
222
|
+
for (var e = 0, n = t.length - 1, s = Math.pow, r = w.Utils.Bernstein, a = 0; a <= n; a++)
|
|
223
223
|
e += s(1 - i, n - a) * s(i, a) * t[a] * r(n, a);
|
|
224
224
|
return e;
|
|
225
225
|
},
|
|
226
226
|
CatmullRom: function(t, i) {
|
|
227
|
-
var e = t.length - 1, n = e * i, s = Math.floor(n), r =
|
|
227
|
+
var e = t.length - 1, n = e * i, s = Math.floor(n), r = w.Utils.CatmullRom;
|
|
228
228
|
return t[0] === t[e] ? (i < 0 && (s = Math.floor(n = e * (1 + i))), r(t[(s - 1 + e) % e], t[s], t[(s + 1) % e], t[(s + 2) % e], n - s)) : i < 0 ? t[0] - (r(t[0], t[0], t[1], t[1], -n) - t[0]) : i > 1 ? t[e] - (r(t[e], t[e], t[e - 1], t[e - 1], n - e) - t[e]) : r(t[s ? s - 1 : 0], t[s], t[e < s + 1 ? e : s + 1], t[e < s + 2 ? e : s + 2], n - s);
|
|
229
229
|
},
|
|
230
230
|
Utils: {
|
|
@@ -232,7 +232,7 @@ var w = Object.freeze({
|
|
|
232
232
|
return (i - t) * e + t;
|
|
233
233
|
},
|
|
234
234
|
Bernstein: function(t, i) {
|
|
235
|
-
var e =
|
|
235
|
+
var e = w.Utils.Factorial;
|
|
236
236
|
return e(t) / e(i) / e(t - i);
|
|
237
237
|
},
|
|
238
238
|
Factorial: function() {
|
|
@@ -260,11 +260,11 @@ var w = Object.freeze({
|
|
|
260
260
|
return t._nextId++;
|
|
261
261
|
}, t._nextId = 0, t;
|
|
262
262
|
}()
|
|
263
|
-
),
|
|
263
|
+
), E = new Y(), Q = (
|
|
264
264
|
/** @class */
|
|
265
265
|
function() {
|
|
266
266
|
function t(i, e) {
|
|
267
|
-
e === void 0 && (e =
|
|
267
|
+
e === void 0 && (e = E), this._object = i, this._group = e, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = b.Linear.None, this._interpolationFunction = w.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = H.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
|
|
268
268
|
}
|
|
269
269
|
return t.prototype.getId = function() {
|
|
270
270
|
return this._id;
|
|
@@ -272,12 +272,14 @@ var w = Object.freeze({
|
|
|
272
272
|
return this._isPlaying;
|
|
273
273
|
}, t.prototype.isPaused = function() {
|
|
274
274
|
return this._isPaused;
|
|
275
|
+
}, t.prototype.getDuration = function() {
|
|
276
|
+
return this._duration;
|
|
275
277
|
}, t.prototype.to = function(i, e) {
|
|
276
278
|
if (e === void 0 && (e = 1e3), this._isPlaying)
|
|
277
279
|
throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");
|
|
278
|
-
return this._valuesEnd = i, this._propertiesAreSetUp = !1, this._duration = e, this;
|
|
280
|
+
return this._valuesEnd = i, this._propertiesAreSetUp = !1, this._duration = e < 0 ? 0 : e, this;
|
|
279
281
|
}, t.prototype.duration = function(i) {
|
|
280
|
-
return i === void 0 && (i = 1e3), this._duration = i, this;
|
|
282
|
+
return i === void 0 && (i = 1e3), this._duration = i < 0 ? 0 : i, this;
|
|
281
283
|
}, t.prototype.dynamic = function(i) {
|
|
282
284
|
return i === void 0 && (i = !1), this._isDynamic = i, this;
|
|
283
285
|
}, t.prototype.start = function(i, e) {
|
|
@@ -302,34 +304,34 @@ var w = Object.freeze({
|
|
|
302
304
|
return this.start(i, !0);
|
|
303
305
|
}, t.prototype._setupProperties = function(i, e, n, s, r) {
|
|
304
306
|
for (var a in n) {
|
|
305
|
-
var o = i[a], c = Array.isArray(o),
|
|
306
|
-
if (!(
|
|
307
|
+
var o = i[a], c = Array.isArray(o), d = c ? "array" : typeof o, I = !c && Array.isArray(n[a]);
|
|
308
|
+
if (!(d === "undefined" || d === "function")) {
|
|
307
309
|
if (I) {
|
|
308
310
|
var u = n[a];
|
|
309
311
|
if (u.length === 0)
|
|
310
312
|
continue;
|
|
311
|
-
for (var l = [o], h = 0,
|
|
312
|
-
var
|
|
313
|
-
if (isNaN(
|
|
313
|
+
for (var l = [o], h = 0, g = u.length; h < g; h += 1) {
|
|
314
|
+
var f = this._handleRelativeValue(o, u[h]);
|
|
315
|
+
if (isNaN(f)) {
|
|
314
316
|
I = !1, console.warn("Found invalid interpolation list. Skipping.");
|
|
315
317
|
break;
|
|
316
318
|
}
|
|
317
|
-
l.push(
|
|
319
|
+
l.push(f);
|
|
318
320
|
}
|
|
319
321
|
I && (n[a] = l);
|
|
320
322
|
}
|
|
321
|
-
if ((
|
|
323
|
+
if ((d === "object" || c) && o && !I) {
|
|
322
324
|
e[a] = c ? [] : {};
|
|
323
325
|
var p = o;
|
|
324
|
-
for (var
|
|
325
|
-
e[a][
|
|
326
|
+
for (var A in p)
|
|
327
|
+
e[a][A] = p[A];
|
|
326
328
|
s[a] = c ? [] : {};
|
|
327
329
|
var u = n[a];
|
|
328
330
|
if (!this._isDynamic) {
|
|
329
|
-
var
|
|
330
|
-
for (var
|
|
331
|
-
|
|
332
|
-
n[a] = u =
|
|
331
|
+
var v = {};
|
|
332
|
+
for (var A in u)
|
|
333
|
+
v[A] = u[A];
|
|
334
|
+
n[a] = u = v;
|
|
333
335
|
}
|
|
334
336
|
this._setupProperties(p, e[a], u, s[a], r);
|
|
335
337
|
} else
|
|
@@ -349,7 +351,7 @@ var w = Object.freeze({
|
|
|
349
351
|
this._chainedTweens[i].stop();
|
|
350
352
|
return this;
|
|
351
353
|
}, t.prototype.group = function(i) {
|
|
352
|
-
return i === void 0 && (i =
|
|
354
|
+
return i === void 0 && (i = E), this._group = i, this;
|
|
353
355
|
}, t.prototype.delay = function(i) {
|
|
354
356
|
return i === void 0 && (i = 0), this._delayTime = i, this;
|
|
355
357
|
}, t.prototype.repeat = function(i) {
|
|
@@ -359,9 +361,9 @@ var w = Object.freeze({
|
|
|
359
361
|
}, t.prototype.yoyo = function(i) {
|
|
360
362
|
return i === void 0 && (i = !1), this._yoyo = i, this;
|
|
361
363
|
}, t.prototype.easing = function(i) {
|
|
362
|
-
return i === void 0 && (i =
|
|
364
|
+
return i === void 0 && (i = b.Linear.None), this._easingFunction = i, this;
|
|
363
365
|
}, t.prototype.interpolation = function(i) {
|
|
364
|
-
return i === void 0 && (i =
|
|
366
|
+
return i === void 0 && (i = w.Linear), this._interpolationFunction = i, this;
|
|
365
367
|
}, t.prototype.chain = function() {
|
|
366
368
|
for (var i = [], e = 0; e < arguments.length; e++)
|
|
367
369
|
i[e] = arguments[e];
|
|
@@ -379,37 +381,44 @@ var w = Object.freeze({
|
|
|
379
381
|
}, t.prototype.onStop = function(i) {
|
|
380
382
|
return this._onStopCallback = i, this;
|
|
381
383
|
}, t.prototype.update = function(i, e) {
|
|
384
|
+
var n = this, s;
|
|
382
385
|
if (i === void 0 && (i = N()), e === void 0 && (e = !0), this._isPaused)
|
|
383
386
|
return !0;
|
|
384
|
-
var
|
|
387
|
+
var r, a = this._startTime + this._duration;
|
|
385
388
|
if (!this._goToEnd && !this._isPlaying) {
|
|
386
|
-
if (i >
|
|
389
|
+
if (i > a)
|
|
387
390
|
return !1;
|
|
388
391
|
e && this.start(i, !0);
|
|
389
392
|
}
|
|
390
393
|
if (this._goToEnd = !1, i < this._startTime)
|
|
391
394
|
return !0;
|
|
392
|
-
this._onStartCallbackFired === !1 && (this._onStartCallback && this._onStartCallback(this._object), this._onStartCallbackFired = !0), this._onEveryStartCallbackFired === !1 && (this._onEveryStartCallback && this._onEveryStartCallback(this._object), this._onEveryStartCallbackFired = !0)
|
|
393
|
-
var
|
|
394
|
-
|
|
395
|
+
this._onStartCallbackFired === !1 && (this._onStartCallback && this._onStartCallback(this._object), this._onStartCallbackFired = !0), this._onEveryStartCallbackFired === !1 && (this._onEveryStartCallback && this._onEveryStartCallback(this._object), this._onEveryStartCallbackFired = !0);
|
|
396
|
+
var o = i - this._startTime, c = this._duration + ((s = this._repeatDelayTime) !== null && s !== void 0 ? s : this._delayTime), d = this._duration + this._repeat * c, I = function() {
|
|
397
|
+
if (n._duration === 0 || o > d)
|
|
398
|
+
return 1;
|
|
399
|
+
var p = Math.trunc(o / c), A = o - p * c, v = Math.min(A / n._duration, 1);
|
|
400
|
+
return v === 0 && o === n._duration ? 1 : v;
|
|
401
|
+
}, u = I(), l = this._easingFunction(u);
|
|
402
|
+
if (this._updateProperties(this._object, this._valuesStart, this._valuesEnd, l), this._onUpdateCallback && this._onUpdateCallback(this._object, u), this._duration === 0 || o >= this._duration)
|
|
395
403
|
if (this._repeat > 0) {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
404
|
+
var h = Math.min(Math.trunc((o - this._duration) / c) + 1, this._repeat);
|
|
405
|
+
isFinite(this._repeat) && (this._repeat -= h);
|
|
406
|
+
for (r in this._valuesStartRepeat)
|
|
407
|
+
!this._yoyo && typeof this._valuesEnd[r] == "string" && (this._valuesStartRepeat[r] = // eslint-disable-next-line
|
|
399
408
|
// @ts-ignore FIXME?
|
|
400
|
-
this._valuesStartRepeat[
|
|
401
|
-
return this._yoyo && (this._reversed = !this._reversed), this.
|
|
409
|
+
this._valuesStartRepeat[r] + parseFloat(this._valuesEnd[r])), this._yoyo && this._swapEndStartRepeatValues(r), this._valuesStart[r] = this._valuesStartRepeat[r];
|
|
410
|
+
return this._yoyo && (this._reversed = !this._reversed), this._startTime += c * h, this._onRepeatCallback && this._onRepeatCallback(this._object), this._onEveryStartCallbackFired = !1, !0;
|
|
402
411
|
} else {
|
|
403
412
|
this._onCompleteCallback && this._onCompleteCallback(this._object);
|
|
404
|
-
for (var
|
|
405
|
-
this._chainedTweens[
|
|
413
|
+
for (var g = 0, f = this._chainedTweens.length; g < f; g++)
|
|
414
|
+
this._chainedTweens[g].start(this._startTime + this._duration, !1);
|
|
406
415
|
return this._isPlaying = !1, !1;
|
|
407
416
|
}
|
|
408
417
|
return !0;
|
|
409
418
|
}, t.prototype._updateProperties = function(i, e, n, s) {
|
|
410
419
|
for (var r in n)
|
|
411
420
|
if (e[r] !== void 0) {
|
|
412
|
-
var a = e[r] || 0, o = n[r], c = Array.isArray(i[r]),
|
|
421
|
+
var a = e[r] || 0, o = n[r], c = Array.isArray(i[r]), d = Array.isArray(o), I = !c && d;
|
|
413
422
|
I ? i[r] = this._interpolationFunction(o, s) : typeof o == "object" && o ? this._updateProperties(i[r], a, o, s) : (o = this._handleRelativeValue(a, o), typeof o == "number" && (i[r] = a + (o - a) * s));
|
|
414
423
|
}
|
|
415
424
|
}, t.prototype._handleRelativeValue = function(i, e) {
|
|
@@ -419,20 +428,20 @@ var w = Object.freeze({
|
|
|
419
428
|
typeof n == "string" ? this._valuesStartRepeat[i] = this._valuesStartRepeat[i] + parseFloat(n) : this._valuesStartRepeat[i] = this._valuesEnd[i], this._valuesEnd[i] = e;
|
|
420
429
|
}, t;
|
|
421
430
|
}()
|
|
422
|
-
),
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
function F(t, i, e, n =
|
|
431
|
+
), _ = E;
|
|
432
|
+
_.getAll.bind(_);
|
|
433
|
+
_.removeAll.bind(_);
|
|
434
|
+
_.add.bind(_);
|
|
435
|
+
_.remove.bind(_);
|
|
436
|
+
_.update.bind(_);
|
|
437
|
+
function F(t, i, e, n = b.Linear.None) {
|
|
429
438
|
const s = new Q(t).to(i, e).easing(n).start();
|
|
430
439
|
function r(a) {
|
|
431
440
|
s.update(a) && requestAnimationFrame(r);
|
|
432
441
|
}
|
|
433
442
|
return requestAnimationFrame(r), s;
|
|
434
443
|
}
|
|
435
|
-
var
|
|
444
|
+
var y = /* @__PURE__ */ ((t) => (t.Drawline = "Drawline", t.Undo = "Undo", t.Exit = "Exit", t))(y || {});
|
|
436
445
|
const x = Symbol("$$PAINT_BRUSH_EVENT$$");
|
|
437
446
|
function S(t) {
|
|
438
447
|
return t[x] || (t[x] = {}), t[x];
|
|
@@ -508,17 +517,17 @@ class K {
|
|
|
508
517
|
let n = !1;
|
|
509
518
|
const r = S(this)[i] || [];
|
|
510
519
|
for (let a of r.slice()) {
|
|
511
|
-
const [o, c = !1] = a,
|
|
512
|
-
c && this.off(i, o),
|
|
520
|
+
const [o, c = !1] = a, d = o(...e);
|
|
521
|
+
c && this.off(i, o), d === !1 && (n = !0);
|
|
513
522
|
}
|
|
514
523
|
return n;
|
|
515
524
|
}
|
|
516
525
|
}
|
|
517
|
-
function
|
|
526
|
+
function M() {
|
|
518
527
|
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
519
528
|
}
|
|
520
529
|
function X() {
|
|
521
|
-
return (
|
|
530
|
+
return (M() + M() + "-" + M() + "-4" + M().substr(0, 3) + "-" + M() + "-" + M() + M() + M()).toLowerCase();
|
|
522
531
|
}
|
|
523
532
|
const V = `
|
|
524
533
|
<style type="text/css">
|
|
@@ -687,17 +696,17 @@ class q extends K {
|
|
|
687
696
|
return;
|
|
688
697
|
const c = this.data[this.uuid].pop();
|
|
689
698
|
c && this.emitStateChange({
|
|
690
|
-
type:
|
|
699
|
+
type: y.Undo,
|
|
691
700
|
color: this.color,
|
|
692
701
|
ready: this.ready,
|
|
693
702
|
state: c,
|
|
694
703
|
uuid: this.uuid
|
|
695
704
|
});
|
|
696
|
-
const
|
|
705
|
+
const d = (l = this.canvas[this.uuid]) == null ? void 0 : l.getContext("2d");
|
|
697
706
|
if (!this.canvas[this.uuid])
|
|
698
707
|
return;
|
|
699
708
|
const { width: I, height: u } = this.canvas[this.uuid];
|
|
700
|
-
|
|
709
|
+
d && d.clearRect(0, 0, I, u), this.data[this.uuid].forEach((h) => this.handleDrawLine(this.uuid, h, { withUndo: !0 }));
|
|
701
710
|
});
|
|
702
711
|
const r = document.createElement("a");
|
|
703
712
|
return r.className = "_paintBrush-ctrlitem _paintBrush-ctrlitem--close", r.addEventListener("click", (o) => {
|
|
@@ -705,8 +714,8 @@ class q extends K {
|
|
|
705
714
|
}), [s, r].forEach((o) => {
|
|
706
715
|
const c = document.createElement("i");
|
|
707
716
|
c.className = "brush-icon";
|
|
708
|
-
const
|
|
709
|
-
|
|
717
|
+
const d = document.createElement("span");
|
|
718
|
+
d.className = "brush-txt", d.innerText = o.className.endsWith("undo") ? this.configs.onUndoText : this.configs.onExitText, o.appendChild(c), o.appendChild(d);
|
|
710
719
|
}), n.appendChild(s), n.appendChild(r), e.appendChild(n), this.container.appendChild(e), e;
|
|
711
720
|
}
|
|
712
721
|
openBrush() {
|
|
@@ -722,7 +731,7 @@ class q extends K {
|
|
|
722
731
|
const n = this.canvas[e].getContext("2d");
|
|
723
732
|
n && n.clearRect(0, 0, this.canvas[e].width, this.canvas[e].height);
|
|
724
733
|
}), this.ready = !1, this.emit("readyChange", !1), this.emitStateChange({
|
|
725
|
-
type:
|
|
734
|
+
type: y.Exit,
|
|
726
735
|
color: this.color,
|
|
727
736
|
ready: !1,
|
|
728
737
|
uuid: this.uuid
|
|
@@ -744,13 +753,13 @@ class q extends K {
|
|
|
744
753
|
return;
|
|
745
754
|
const s = this.color || "#6D92FF";
|
|
746
755
|
n.strokeStyle = s;
|
|
747
|
-
let r = null, a = [], o, c = [],
|
|
756
|
+
let r = null, a = [], o, c = [], d = 0;
|
|
748
757
|
const I = (u, l, h) => {
|
|
749
|
-
const
|
|
750
|
-
n.strokeStyle =
|
|
758
|
+
const g = this.color || "#ff0000";
|
|
759
|
+
n.strokeStyle = g, n.beginPath(), n.moveTo(u.x, u.y), n.quadraticCurveTo(l.x, l.y, h.x, h.y), n.stroke();
|
|
751
760
|
};
|
|
752
761
|
e.onmousedown = (u) => {
|
|
753
|
-
u.preventDefault(),
|
|
762
|
+
u.preventDefault(), d = Date.now();
|
|
754
763
|
const l = u.clientX, h = u.clientY;
|
|
755
764
|
a = [], a.push({ x: l, y: h }), r = { x: l, y: h }, o = T({ x: l, y: h }, this.clientWidth, this.clientHeight), c = [];
|
|
756
765
|
}, e.onmousemove = (u) => {
|
|
@@ -759,13 +768,13 @@ class q extends K {
|
|
|
759
768
|
const l = Number(u.clientX), h = Number(u.clientY);
|
|
760
769
|
if (Math.abs(l - r.x) < 5 && Math.abs(h - r.y) < 5 || (a.push({ x: l, y: h }), c.push(T({ x: l, y: h }, this.clientWidth, this.clientHeight)), a.length < 3))
|
|
761
770
|
return;
|
|
762
|
-
const { control:
|
|
763
|
-
!
|
|
771
|
+
const { control: g, end: f } = j(a);
|
|
772
|
+
!g || !f || (I(r, g, f), r = f);
|
|
764
773
|
}, e.onmouseup = (u) => {
|
|
765
774
|
if (u.preventDefault(), r = null, a.length < 3)
|
|
766
775
|
return;
|
|
767
776
|
this.data[this.uuid] || (this.data[this.uuid] = []);
|
|
768
|
-
const l = Date.now() -
|
|
777
|
+
const l = Date.now() - d, h = {
|
|
769
778
|
move: Object.assign({}, o),
|
|
770
779
|
uuid: this.uuid,
|
|
771
780
|
line: [...c],
|
|
@@ -775,7 +784,7 @@ class q extends K {
|
|
|
775
784
|
};
|
|
776
785
|
this.data[this.uuid].push(h), P(() => {
|
|
777
786
|
this.emitStateChange({
|
|
778
|
-
type:
|
|
787
|
+
type: y.Drawline,
|
|
779
788
|
color: this.color,
|
|
780
789
|
ready: this.ready,
|
|
781
790
|
state: h,
|
|
@@ -783,7 +792,7 @@ class q extends K {
|
|
|
783
792
|
});
|
|
784
793
|
});
|
|
785
794
|
}, e.ontouchstart = (u) => {
|
|
786
|
-
u.preventDefault(),
|
|
795
|
+
u.preventDefault(), d = Date.now();
|
|
787
796
|
const l = u.touches[0].clientX, h = u.touches[0].clientY;
|
|
788
797
|
a = [], a.push({ x: l, y: h }), r = { x: l, y: h }, o = T({ x: l, y: h }, this.clientWidth, this.clientHeight), c = [];
|
|
789
798
|
}, e.ontouchmove = (u) => {
|
|
@@ -792,13 +801,13 @@ class q extends K {
|
|
|
792
801
|
const l = Number(u.touches[0].clientX), h = Number(u.touches[0].clientY);
|
|
793
802
|
if (Math.abs(l - r.x) < 5 && Math.abs(h - r.y) < 5 || (a.push({ x: l, y: h }), c.push(T({ x: l, y: h }, this.clientWidth, this.clientHeight)), a.length < 3))
|
|
794
803
|
return;
|
|
795
|
-
const { control:
|
|
796
|
-
!
|
|
804
|
+
const { control: g, end: f } = j(a);
|
|
805
|
+
!g || !f || (I(r, g, f), r = f);
|
|
797
806
|
}, e.ontouchend = e.ontouchcancel = (u) => {
|
|
798
807
|
if (u.preventDefault(), r = null, a.length < 3)
|
|
799
808
|
return;
|
|
800
809
|
this.data[this.uuid] || (this.data[this.uuid] = []);
|
|
801
|
-
const l = Date.now() -
|
|
810
|
+
const l = Date.now() - d, h = {
|
|
802
811
|
move: Object.assign({}, o),
|
|
803
812
|
line: [...c],
|
|
804
813
|
uuid: this.uuid,
|
|
@@ -808,7 +817,7 @@ class q extends K {
|
|
|
808
817
|
};
|
|
809
818
|
this.data[this.uuid].push(h), P(() => {
|
|
810
819
|
this.emitStateChange({
|
|
811
|
-
type:
|
|
820
|
+
type: y.Drawline,
|
|
812
821
|
color: this.color,
|
|
813
822
|
ready: this.ready,
|
|
814
823
|
state: h,
|
|
@@ -818,7 +827,7 @@ class q extends K {
|
|
|
818
827
|
};
|
|
819
828
|
}
|
|
820
829
|
emitStateChange(e, n = !0) {
|
|
821
|
-
if (e.type !==
|
|
830
|
+
if (e.type !== y.Drawline) {
|
|
822
831
|
this.emit("stateChange", e, n);
|
|
823
832
|
return;
|
|
824
833
|
}
|
|
@@ -859,13 +868,13 @@ class q extends K {
|
|
|
859
868
|
}
|
|
860
869
|
if (this.ready)
|
|
861
870
|
switch (s) {
|
|
862
|
-
case
|
|
871
|
+
case y.Drawline:
|
|
863
872
|
const { state: a, timestamp: o, end: c } = e;
|
|
864
873
|
if (!o || !a)
|
|
865
874
|
return;
|
|
866
875
|
this.tempLine[o] = [].concat(this.tempLine[o] || [], a.line), c && (Object.assign(a, { line: this.tempLine[o] }), this.handleDrawLine(r, a, {}, () => delete this.tempLine[o]));
|
|
867
876
|
break;
|
|
868
|
-
case
|
|
877
|
+
case y.Undo:
|
|
869
878
|
this.handleUndo(r);
|
|
870
879
|
break;
|
|
871
880
|
}
|
|
@@ -877,18 +886,18 @@ class q extends K {
|
|
|
877
886
|
const o = this.canvas[e].getContext("2d");
|
|
878
887
|
if (!o)
|
|
879
888
|
return;
|
|
880
|
-
const { line: c = [], color:
|
|
889
|
+
const { line: c = [], color: d = "black", duration: I = 0, uuid: u } = n, l = L(n.move || {}, this.clientWidth, this.clientHeight);
|
|
881
890
|
let h = [l];
|
|
882
|
-
if (o.strokeStyle =
|
|
883
|
-
let
|
|
884
|
-
const
|
|
885
|
-
|
|
886
|
-
var
|
|
887
|
-
if (
|
|
888
|
-
return o.clearRect(0, 0,
|
|
889
|
-
const
|
|
890
|
-
if (!
|
|
891
|
-
if (
|
|
891
|
+
if (o.strokeStyle = d, o.beginPath(), o.moveTo(l.x, l.y), I && !s) {
|
|
892
|
+
let g = [];
|
|
893
|
+
const f = this;
|
|
894
|
+
f.tween = F({ step: 0 }, { step: c.length - 1 }, I).onUpdate(({ step: p }) => {
|
|
895
|
+
var v;
|
|
896
|
+
if (f.tweening = !0, !f.ready)
|
|
897
|
+
return o.clearRect(0, 0, f.canvas[u].width, f.canvas[u].height), (v = f.tween) == null ? void 0 : v.stop();
|
|
898
|
+
const A = Math.floor(p);
|
|
899
|
+
if (!g.find((D) => D === A)) {
|
|
900
|
+
if (g.push(A), h.push(L(c[A], f.clientWidth, f.clientHeight)), h.length < 3)
|
|
892
901
|
return;
|
|
893
902
|
const { control: D, end: O } = j(h);
|
|
894
903
|
if (!D || !O)
|
|
@@ -896,14 +905,14 @@ class q extends K {
|
|
|
896
905
|
o.quadraticCurveTo(D.x, D.y, O.x, O.y), o.stroke();
|
|
897
906
|
}
|
|
898
907
|
}).onComplete((p) => {
|
|
899
|
-
|
|
908
|
+
f.tween = void 0, f.tweening = !1, g = [], h = [], r && r(), a();
|
|
900
909
|
});
|
|
901
910
|
} else {
|
|
902
|
-
for (let
|
|
903
|
-
if (h.push(L(c[
|
|
911
|
+
for (let g = 0; g < c.length; g++) {
|
|
912
|
+
if (h.push(L(c[g], this.clientWidth, this.clientHeight)), h.length < 3)
|
|
904
913
|
continue;
|
|
905
|
-
const { control:
|
|
906
|
-
!
|
|
914
|
+
const { control: f, end: p } = j(h);
|
|
915
|
+
!f || !p || o.quadraticCurveTo(f.x, f.y, p.x, p.y);
|
|
907
916
|
}
|
|
908
917
|
o.stroke(), h = [], r && r(), a();
|
|
909
918
|
}
|
|
@@ -981,5 +990,5 @@ class tt {
|
|
|
981
990
|
}
|
|
982
991
|
export {
|
|
983
992
|
tt as PaintBrush,
|
|
984
|
-
|
|
993
|
+
y as PaintBrushTypeEnum
|
|
985
994
|
};
|
|
@@ -23,6 +23,23 @@ export declare class PanoVideoPluginController extends BasePlugin.Controller<Plu
|
|
|
23
23
|
* - 如果遇到不能自动播放的问题,需要放到用户交互事件中调用。
|
|
24
24
|
*/
|
|
25
25
|
lookAtVideoItemByRenderID(id: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* 取消静音。
|
|
28
|
+
*
|
|
29
|
+
* 大部分浏览器需要用户交互后才能开启视频声音。
|
|
30
|
+
*
|
|
31
|
+
* 如果需要取消静音,建议在用户交互事件中调用本方法。
|
|
32
|
+
*
|
|
33
|
+
* 例如:
|
|
34
|
+
*
|
|
35
|
+
* ```jsx
|
|
36
|
+
* onClick={() => {
|
|
37
|
+
* panoVideoPluginController.lookAtVideoItemByRenderID('xxx')
|
|
38
|
+
* panoVideoPluginController.unmuteByRenderID('xxx')
|
|
39
|
+
* }}
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
unmuteByRenderID(id: string): void;
|
|
26
43
|
/** 为一个点位添加视频(可以是多条)。 */
|
|
27
44
|
add(panoIndex: number, videoItems: VideoItem[]): void;
|
|
28
45
|
/** 根据 VideoItem render_id 删除某个视频。 */
|
|
@@ -46,6 +46,12 @@ export declare class VideoMeshController {
|
|
|
46
46
|
private renderFiveDisposer?;
|
|
47
47
|
/** 初始化视频、模型以及相关事件监听。 */
|
|
48
48
|
constructor(five: Five, params: VideoMeshParams);
|
|
49
|
+
/**
|
|
50
|
+
* 取消静音
|
|
51
|
+
*
|
|
52
|
+
* @warning 需要注意:由于大部分浏览器的限制,视频的声音必须在用户有交互事件后才能开启,否则会被浏览器禁用视频播放。
|
|
53
|
+
*/
|
|
54
|
+
unmute: () => void;
|
|
49
55
|
/** 彻底销毁,不响应之后的任何事件 */
|
|
50
56
|
dispose(): void;
|
|
51
57
|
enable(): void;
|