@labelbee/lb-components 1.19.1-alpha.1 → 1.20.0-alpha.10
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/dist/assets/annotation/toolHotKeyIcon/icon_eraser.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_line_static.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_scribble.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_strokeEnlarge.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_strokeReduction.svg.js +1 -0
- package/dist/assets/annotation/video/icon_timePoint.svg.js +1 -0
- package/dist/assets/annotation/video/icon_videoCut.svg.js +1 -0
- package/dist/assets/annotation/video/icon_videoCutting.svg.js +1 -0
- package/dist/assets/attributeIcon/eraser.svg.js +1 -1
- package/dist/assets/attributeIcon/eraser_a.svg.js +1 -1
- package/dist/assets/attributeIcon/icon_eyeLock_a.svg.js +1 -0
- package/dist/assets/attributeIcon/icon_eyeLock_h.svg.js +1 -0
- package/dist/assets/attributeIcon/pen.svg.js +1 -1
- package/dist/assets/attributeIcon/pen_a.svg.js +1 -1
- package/dist/assets/icons/32b52174.svg +5 -0
- package/dist/assets/icons/ad8081bf.svg +13 -0
- package/dist/components/LLMToolView/sidebar/components/answerList/index.js +1 -1
- package/dist/components/LLMToolView/sidebar/components/textEditor/index.js +2 -1
- package/dist/components/LLMToolView/sidebar/components/textEditor/index.module.scss.js +1 -0
- package/dist/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -1
- package/dist/components/LLMToolView/sidebar/components/textInputBox/index.module.scss.js +1 -0
- package/dist/components/LLMToolView/sidebar/index.js +1 -1
- package/dist/components/attributeList/index.js +1 -1
- package/dist/components/audioAnnotate/audioSide/clipSidebar/index.js +1 -1
- package/dist/components/audioAnnotate/audioSide/labelFilterInput/index.js +1 -1
- package/dist/components/audioAnnotate/audioSide/labelSidebar/index.js +1 -1
- package/dist/components/audioAnnotate/index.js +1 -1
- package/dist/components/audioAnnotate/textInput/index.js +1 -1
- package/dist/components/audioPlayer/combineTip/index.js +1 -1
- package/dist/components/audioPlayer/index.js +1 -1
- package/dist/components/audioPlayer/labelDisplayToggle/index.js +1 -1
- package/dist/components/audioPlayer/segmentTip/index.js +1 -1
- package/dist/components/audioPlayer/zoomSlider/index.js +1 -1
- package/dist/components/latexEditor/constant/config.js +1 -0
- package/dist/components/latexEditor/index.js +1 -0
- package/dist/components/latexEditor/index.module.scss.js +1 -0
- package/dist/components/pointCloudView/PointCloudInfos.js +1 -1
- package/dist/components/pointCloudView/hooks/usePointCloudViews.js +1 -1
- package/dist/components/videoAnnotate/index.js +1 -1
- package/dist/components/videoAnnotate/videoClipTool/VideoClipToolContext.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/components/ToolTipForClip.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/components/annotatedList/index.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/components/annotatedList/index.module.scss.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/components/resizableSnippet/index.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/components/resizableSnippet/index.module.scss.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/components/timeSliceRange/index.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/components/timeSliceRange/index.module.scss.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/components/videoClipToolHotkey/index.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/components/videoClipToolHotkey/index.module.scss.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/components/videoTimeSlicesOverVideo/index.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/components/videoTimeSlicesOverVideo/index.module.scss.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/components/videoTrack/index.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/components/videoTrack/index.module.scss.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/constant.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/index.js +1 -0
- package/dist/components/videoAnnotate/videoClipTool/index.module.scss.js +1 -0
- package/dist/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.js +1 -0
- package/dist/components/videoAnnotate/videoTextTool/index.js +1 -0
- package/dist/components/videoPlayer/VideoTagLayer.js +1 -1
- package/dist/components/videoPlayer/VideoTextLayer.js +2 -0
- package/dist/components/videoPlayer/components/SpeedController/index.js +1 -1
- package/dist/components/videoPlayer/components/controller/index.js +1 -1
- package/dist/components/videoPlayer/index.js +1 -1
- package/dist/components/videoPlayer/utils.js +1 -1
- package/dist/index.css +385 -3
- package/dist/index.js +1 -1
- package/dist/store/annotation/reducer.js +1 -1
- package/dist/types/App.d.ts +2 -2
- package/dist/types/components/LLMToolView/sidebar/components/textEditor/index.d.ts +1 -0
- package/dist/types/components/LLMToolView/types.d.ts +1 -0
- package/dist/types/components/audioAnnotate/audioSide/labelSidebar/index.d.ts +4 -21
- package/dist/types/components/audioAnnotate/index.d.ts +1 -1
- package/dist/types/components/latexEditor/constant/config.d.ts +18 -0
- package/dist/types/components/latexEditor/index.d.ts +12 -0
- package/dist/types/components/pointCloudView/PointCloud2DView.d.ts +1 -1
- package/dist/types/components/pointCloudView/PointCloud3DView.d.ts +1 -1
- package/dist/types/components/pointCloudView/PointCloudBackView.d.ts +1 -1
- package/dist/types/components/pointCloudView/PointCloudListener.d.ts +1 -1
- package/dist/types/components/pointCloudView/PointCloudSegment.d.ts +1 -1
- package/dist/types/components/pointCloudView/PointCloudSegment2DView.d.ts +1 -1
- package/dist/types/components/pointCloudView/PointCloudSegmentListener.d.ts +1 -1
- package/dist/types/components/pointCloudView/PointCloudSideView.d.ts +1 -1
- package/dist/types/components/pointCloudView/PointCloudTopView.d.ts +3 -3
- package/dist/types/components/pointCloudView/index.d.ts +3 -3
- package/dist/types/components/videoAnnotate/index.d.ts +18 -7
- package/dist/types/components/videoAnnotate/videoClipTool/VideoClipToolContext.d.ts +27 -0
- package/dist/types/components/videoAnnotate/videoClipTool/components/ToolTipForClip.d.ts +8 -0
- package/dist/types/components/videoAnnotate/videoClipTool/components/annotatedList/index.d.ts +7 -0
- package/dist/types/components/videoAnnotate/videoClipTool/components/resizableSnippet/index.d.ts +14 -0
- package/dist/types/components/videoAnnotate/videoClipTool/components/timeSliceRange/index.d.ts +18 -0
- package/dist/types/components/videoAnnotate/videoClipTool/components/videoClipToolHotkey/index.d.ts +6 -0
- package/dist/types/components/videoAnnotate/videoClipTool/components/videoTimeSlicesOverVideo/index.d.ts +3 -0
- package/dist/types/components/videoAnnotate/videoClipTool/components/videoTrack/index.d.ts +11 -0
- package/dist/types/components/videoAnnotate/videoClipTool/constant.d.ts +26 -0
- package/dist/types/components/videoAnnotate/videoClipTool/index.d.ts +131 -0
- package/dist/types/components/{videoPlayer → videoAnnotate/videoTagTool}/TagToolInstanceAdaptor.d.ts +6 -10
- package/dist/types/components/videoAnnotate/videoTextTool/index.d.ts +56 -0
- package/dist/types/components/videoPlayer/VideoTagLayer.d.ts +1 -0
- package/dist/types/components/videoPlayer/VideoTextLayer.d.ts +2 -0
- package/dist/types/components/videoPlayer/components/controller/index.d.ts +4 -2
- package/dist/types/components/videoPlayer/index.d.ts +11 -0
- package/dist/types/components/videoPlayer/utils.d.ts +6 -0
- package/dist/types/hooks/annotation.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/views/MainView/sidebar/TextToolSidebar/index.d.ts +2 -1
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.d.ts +25 -0
- package/dist/utils/audio.js +1 -1
- package/dist/views/MainView/LLMLayout/index.js +1 -1
- package/dist/views/MainView/index.js +1 -1
- package/dist/views/MainView/sidebar/ScribbleSidebar/index.js +1 -1
- package/dist/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
- package/dist/views/MainView/sidebar/index.js +1 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/audioText/index.js +1 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +1 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_eraser.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_line_static.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_scribble.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_strokeEnlarge.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_strokeReduction.svg.js +1 -0
- package/es/assets/annotation/video/icon_timePoint.svg.js +1 -0
- package/es/assets/annotation/video/icon_videoCut.svg.js +1 -0
- package/es/assets/annotation/video/icon_videoCutting.svg.js +1 -0
- package/es/assets/attributeIcon/eraser.svg.js +1 -1
- package/es/assets/attributeIcon/eraser_a.svg.js +1 -1
- package/es/assets/attributeIcon/icon_eyeLock_a.svg.js +1 -0
- package/es/assets/attributeIcon/icon_eyeLock_h.svg.js +1 -0
- package/es/assets/attributeIcon/pen.svg.js +1 -1
- package/es/assets/attributeIcon/pen_a.svg.js +1 -1
- package/es/components/LLMToolView/sidebar/components/answerList/index.js +1 -1
- package/es/components/LLMToolView/sidebar/components/textEditor/index.js +2 -1
- package/es/components/LLMToolView/sidebar/components/textEditor/index.module.scss.js +1 -0
- package/es/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -1
- package/es/components/LLMToolView/sidebar/components/textInputBox/index.module.scss.js +1 -0
- package/es/components/LLMToolView/sidebar/index.js +1 -1
- package/es/components/attributeList/index.js +1 -1
- package/es/components/audioAnnotate/audioSide/clipSidebar/index.js +1 -1
- package/es/components/audioAnnotate/audioSide/labelFilterInput/index.js +1 -1
- package/es/components/audioAnnotate/audioSide/labelSidebar/index.js +1 -1
- package/es/components/audioAnnotate/index.js +1 -1
- package/es/components/audioAnnotate/textInput/index.js +1 -1
- package/es/components/audioPlayer/combineTip/index.js +1 -1
- package/es/components/audioPlayer/index.js +1 -1
- package/es/components/audioPlayer/labelDisplayToggle/index.js +1 -1
- package/es/components/audioPlayer/segmentTip/index.js +1 -1
- package/es/components/audioPlayer/zoomSlider/index.js +1 -1
- package/es/components/latexEditor/constant/config.js +1 -0
- package/es/components/latexEditor/index.js +1 -0
- package/es/components/latexEditor/index.module.scss.js +1 -0
- package/es/components/pointCloudView/PointCloudInfos.js +1 -1
- package/es/components/pointCloudView/hooks/usePointCloudViews.js +1 -1
- package/es/components/videoAnnotate/index.js +1 -1
- package/es/components/videoAnnotate/videoClipTool/VideoClipToolContext.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/components/ToolTipForClip.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/components/annotatedList/index.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/components/annotatedList/index.module.scss.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/components/resizableSnippet/index.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/components/resizableSnippet/index.module.scss.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/components/timeSliceRange/index.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/components/timeSliceRange/index.module.scss.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/components/videoClipToolHotkey/index.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/components/videoClipToolHotkey/index.module.scss.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/components/videoTimeSlicesOverVideo/index.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/components/videoTimeSlicesOverVideo/index.module.scss.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/components/videoTrack/index.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/components/videoTrack/index.module.scss.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/constant.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/index.js +1 -0
- package/es/components/videoAnnotate/videoClipTool/index.module.scss.js +1 -0
- package/es/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.js +1 -0
- package/es/components/videoAnnotate/videoTextTool/index.js +1 -0
- package/es/components/videoPlayer/VideoTagLayer.js +1 -1
- package/es/components/videoPlayer/VideoTextLayer.js +2 -0
- package/es/components/videoPlayer/components/SpeedController/index.js +1 -1
- package/es/components/videoPlayer/components/controller/index.js +1 -1
- package/es/components/videoPlayer/index.js +1 -1
- package/es/components/videoPlayer/utils.js +1 -1
- package/es/index.css +385 -3
- package/es/index.js +1 -1
- package/es/store/annotation/reducer.js +1 -1
- package/es/utils/audio.js +1 -1
- package/es/views/MainView/index.js +1 -1
- package/es/views/MainView/sidebar/ScribbleSidebar/index.js +1 -1
- package/es/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
- package/es/views/MainView/sidebar/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/audioText/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +1 -1
- package/package.json +6 -4
- package/dist/components/videoPlayer/TagToolInstanceAdaptor.js +0 -1
- package/es/components/videoPlayer/TagToolInstanceAdaptor.js +0 -1
- /package/dist/components/{videoPlayer → videoAnnotate/videoTagTool}/TagToolInstanceAdaptorI18nProvider.js +0 -0
- /package/dist/types/components/{videoPlayer → videoAnnotate/videoTagTool}/TagToolInstanceAdaptorI18nProvider.d.ts +0 -0
- /package/es/components/{videoPlayer → videoAnnotate/videoTagTool}/TagToolInstanceAdaptorI18nProvider.js +0 -0
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { IA2MapStateProps } from '@/store/annotation/map';
|
|
3
3
|
declare const _default: import("react-redux").ConnectedComponent<React.FC<IA2MapStateProps>, import("react-redux").Omit<IA2MapStateProps & {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
|
-
}, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "
|
|
5
|
+
}, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "stepInfo" | "currentData" | "configString">>;
|
|
6
6
|
export default _default;
|
|
@@ -3,5 +3,5 @@ import { IA2MapStateProps } from '@/store/annotation/map';
|
|
|
3
3
|
interface IProps {
|
|
4
4
|
checkMode?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: import("react-redux").ConnectedComponent<({ currentData, config, checkMode }: IA2MapStateProps & IProps) => React.JSX.Element, import("react-redux").Omit<IA2MapStateProps & IProps, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "
|
|
6
|
+
declare const _default: import("react-redux").ConnectedComponent<({ currentData, config, checkMode }: IA2MapStateProps & IProps) => React.JSX.Element, import("react-redux").Omit<IA2MapStateProps & IProps, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "stepInfo" | "currentData" | "configString">>;
|
|
7
7
|
export default _default;
|
|
@@ -7,5 +7,5 @@ interface IProps extends IA2MapStateProps {
|
|
|
7
7
|
}
|
|
8
8
|
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
9
9
|
children?: React.ReactNode;
|
|
10
|
-
}, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "
|
|
10
|
+
}, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "stepInfo" | "currentData" | "configString">>;
|
|
11
11
|
export default _default;
|
|
@@ -5,5 +5,5 @@ interface IProps extends IA2MapStateProps {
|
|
|
5
5
|
}
|
|
6
6
|
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
|
-
}, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "
|
|
8
|
+
}, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "stepInfo" | "currentData" | "configString">>;
|
|
9
9
|
export default _default;
|
|
@@ -3,5 +3,5 @@ import React from 'react';
|
|
|
3
3
|
interface IProps extends IA2MapStateProps {
|
|
4
4
|
checkMode?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: import("react-redux").ConnectedComponent<({ currentData, highlightAttribute }: IProps) => React.JSX.Element | null, import("react-redux").Omit<IProps, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "
|
|
6
|
+
declare const _default: import("react-redux").ConnectedComponent<({ currentData, highlightAttribute }: IProps) => React.JSX.Element | null, import("react-redux").Omit<IProps, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "stepInfo" | "currentData" | "configString">>;
|
|
7
7
|
export default _default;
|
|
@@ -7,5 +7,5 @@ interface IProps extends IA2MapStateProps {
|
|
|
7
7
|
}
|
|
8
8
|
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
9
9
|
children?: React.ReactNode;
|
|
10
|
-
}, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "
|
|
10
|
+
}, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "stepInfo" | "currentData" | "configString">>;
|
|
11
11
|
export default _default;
|
|
@@ -5,5 +5,5 @@ interface IProps {
|
|
|
5
5
|
}
|
|
6
6
|
declare const _default: import("react-redux").ConnectedComponent<React.FC<IA2MapStateProps & IProps>, import("react-redux").Omit<IA2MapStateProps & IProps & {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
|
-
}, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "
|
|
8
|
+
}, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "stepInfo" | "currentData" | "configString">>;
|
|
9
9
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IA2MapStateProps } from '@/store/annotation/map';
|
|
3
|
-
import {
|
|
3
|
+
import { DrawLayerSlot } from '@/types/main';
|
|
4
4
|
interface IProps extends IA2MapStateProps {
|
|
5
|
-
drawLayerSlot?:
|
|
5
|
+
drawLayerSlot?: DrawLayerSlot;
|
|
6
6
|
checkMode?: boolean;
|
|
7
7
|
intelligentFit?: boolean;
|
|
8
8
|
setIsEnlargeTopView: (value: boolean) => void;
|
|
@@ -11,5 +11,5 @@ interface IProps extends IA2MapStateProps {
|
|
|
11
11
|
}
|
|
12
12
|
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
13
13
|
children?: React.ReactNode;
|
|
14
|
-
}, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "
|
|
14
|
+
}, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "stepInfo" | "currentData" | "configString">>;
|
|
15
15
|
export default _default;
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* @date 2022-06-21
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import {
|
|
8
|
+
import { DrawLayerSlot } from '@/types/main';
|
|
9
9
|
import { IA2MapStateProps } from '@/store/annotation/map';
|
|
10
10
|
interface IProps extends IA2MapStateProps {
|
|
11
|
-
drawLayerSlot?:
|
|
11
|
+
drawLayerSlot?: DrawLayerSlot;
|
|
12
12
|
checkMode?: boolean;
|
|
13
13
|
intelligentFit?: boolean;
|
|
14
14
|
}
|
|
15
15
|
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
16
16
|
children?: React.ReactNode;
|
|
17
|
-
}, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "
|
|
17
|
+
}, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "stepInfo" | "currentData" | "configString">>;
|
|
18
18
|
export default _default;
|
|
@@ -4,12 +4,23 @@
|
|
|
4
4
|
* @date 2022-06-02
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
import { DrawLayerSlot } from '@/types/main';
|
|
8
|
+
import { IStepInfo } from '@/types/step';
|
|
9
|
+
import { IFileItem } from '@/types/data';
|
|
10
|
+
export interface IVideoAnnotateProps {
|
|
11
|
+
path: string;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
videoContext?: any;
|
|
14
|
+
stepInfo: IStepInfo;
|
|
15
|
+
step: number;
|
|
16
|
+
stepList: IStepInfo[];
|
|
17
|
+
config: any;
|
|
18
|
+
imgIndex: number;
|
|
19
|
+
imgList: IFileItem[];
|
|
20
|
+
drawLayerSlot?: DrawLayerSlot;
|
|
21
|
+
footer?: any;
|
|
22
|
+
}
|
|
23
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<IVideoAnnotateProps>, import("react-redux").Omit<IVideoAnnotateProps & {
|
|
13
24
|
children?: React.ReactNode;
|
|
14
|
-
}, "
|
|
25
|
+
}, "stepList" | "step" | "imgIndex" | "imgList" | "config" | "loading" | "path" | "stepInfo">>;
|
|
15
26
|
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author whq <752342314@qq.com>
|
|
3
|
+
* @file Store for VideoClipTool
|
|
4
|
+
* @date 2023-12-12
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { EClipStatus } from './constant';
|
|
8
|
+
import { IInputList, IVideoTimeSlice } from '@labelbee/lb-utils';
|
|
9
|
+
interface IVideoClipToolContext {
|
|
10
|
+
result: IVideoTimeSlice[];
|
|
11
|
+
selectedID: string;
|
|
12
|
+
attributeList: IInputList[];
|
|
13
|
+
videoPlayer?: any;
|
|
14
|
+
clipStatus: EClipStatus;
|
|
15
|
+
selectedAttribute?: string;
|
|
16
|
+
contextToCancel?: (e: any) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const VideoClipToolContext: React.Context<IVideoClipToolContext>;
|
|
19
|
+
export declare const VideoClipToolContextProvider: React.Provider<IVideoClipToolContext>;
|
|
20
|
+
interface IVideoClipAnnotatedListContext {
|
|
21
|
+
onSelectedTimeSlice: (timeSlice: IVideoTimeSlice) => void;
|
|
22
|
+
removeTimeSlice: (timeSlice: IVideoTimeSlice) => void;
|
|
23
|
+
updateSelectedSliceTimeProperty: (val: number, key: 'start' | 'end') => void;
|
|
24
|
+
}
|
|
25
|
+
export declare const VideoClipAnnotatedListContext: React.Context<IVideoClipAnnotatedListContext>;
|
|
26
|
+
export declare const VideoClipAnnotatedListContextProvider: React.Provider<IVideoClipAnnotatedListContext>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IVideoTimeSlice, IInputList } from '@labelbee/lb-utils';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const ToolTipForClip: (props: {
|
|
4
|
+
slot: React.ReactElement | undefined;
|
|
5
|
+
item: IVideoTimeSlice;
|
|
6
|
+
attributeList: IInputList[];
|
|
7
|
+
}) => React.JSX.Element | null;
|
|
8
|
+
export default ToolTipForClip;
|
package/dist/types/components/videoAnnotate/videoClipTool/components/resizableSnippet/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
track: any;
|
|
4
|
+
currentTime: number;
|
|
5
|
+
attributeList: any[];
|
|
6
|
+
readonly: boolean;
|
|
7
|
+
onClipping: boolean;
|
|
8
|
+
onTrackResizeStart: () => void;
|
|
9
|
+
onResize: (direction: any, changedPercentage: number) => void;
|
|
10
|
+
style: React.CSSProperties;
|
|
11
|
+
isSelected?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const ResizableSnippet: (props: IProps) => React.JSX.Element;
|
|
14
|
+
export default ResizableSnippet;
|
package/dist/types/components/videoAnnotate/videoClipTool/components/timeSliceRange/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file 视频截取工具,片段截取时间范围
|
|
3
|
+
* @author lijingchi <lijingchi1@sensetime.com>
|
|
4
|
+
* @createdate 2022-11-07
|
|
5
|
+
*/
|
|
6
|
+
import { IVideoTimeSlice } from '@labelbee/lb-utils';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* 选中的片段进行时间更新的输入模块
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
declare const TimeSliceRange: ({ selectedTimeSlice, videoPlayer, updateTimeForSelected, disabled, }: {
|
|
13
|
+
selectedTimeSlice?: IVideoTimeSlice | undefined;
|
|
14
|
+
videoPlayer?: any;
|
|
15
|
+
updateTimeForSelected: (val: number, key: 'start' | 'end') => void;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
}) => React.JSX.Element | null;
|
|
18
|
+
export default TimeSliceRange;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
currentTime: number;
|
|
4
|
+
onTrackResize: any;
|
|
5
|
+
readonly: boolean;
|
|
6
|
+
onTrackResizeStart: () => void;
|
|
7
|
+
}
|
|
8
|
+
/** 视频片段的显示内容 */
|
|
9
|
+
export declare const getDisplayContent: (i: any, attributeList: any) => string;
|
|
10
|
+
declare const VideoTrack: (props: IProps) => React.JSX.Element;
|
|
11
|
+
export default VideoTrack;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum EPageChanges {
|
|
2
|
+
/** 往前翻页 */
|
|
3
|
+
AHEAD = 1,
|
|
4
|
+
/** 往后翻页 */
|
|
5
|
+
BACK = -1
|
|
6
|
+
}
|
|
7
|
+
export declare enum EDirection {
|
|
8
|
+
Left = "left",
|
|
9
|
+
Right = "right"
|
|
10
|
+
}
|
|
11
|
+
export declare enum EClipStatus {
|
|
12
|
+
Clipping = 0,
|
|
13
|
+
Stop = 1
|
|
14
|
+
}
|
|
15
|
+
export declare enum ETimeSliceType {
|
|
16
|
+
/** 片段 */
|
|
17
|
+
Period = 0,
|
|
18
|
+
/** 时间点 */
|
|
19
|
+
Time = 1
|
|
20
|
+
}
|
|
21
|
+
export declare const TIME_SLICE_TYPE: {
|
|
22
|
+
[key: number]: string;
|
|
23
|
+
};
|
|
24
|
+
/** 最小允许片段时间 */
|
|
25
|
+
export declare const SLICE_MIN_TIME = 0.05;
|
|
26
|
+
export declare const PER_SLICE_CHANGE = 0.05;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import _ from 'lodash';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IVideoTimeSlice } from '@labelbee/lb-utils';
|
|
4
|
+
import { EClipStatus, EDirection } from './constant';
|
|
5
|
+
import { IVideoAnnotateProps } from '@/components/videoAnnotate';
|
|
6
|
+
interface IVideoClipProps extends IVideoAnnotateProps {
|
|
7
|
+
pageForward: () => void;
|
|
8
|
+
pageJump: (page: string) => void;
|
|
9
|
+
pageBackward: () => void;
|
|
10
|
+
onMounted: (instance: any) => void;
|
|
11
|
+
onUnmounted: () => void;
|
|
12
|
+
}
|
|
13
|
+
interface IState {
|
|
14
|
+
result: IVideoTimeSlice[];
|
|
15
|
+
selectedAttribute: string;
|
|
16
|
+
textValue: string;
|
|
17
|
+
clipStatus: EClipStatus;
|
|
18
|
+
selectedID: string;
|
|
19
|
+
loading: boolean;
|
|
20
|
+
videoError: boolean;
|
|
21
|
+
remainingTime: number;
|
|
22
|
+
currentTime: number;
|
|
23
|
+
configLoading: boolean;
|
|
24
|
+
valid: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare class VideoClipTool extends React.Component<IVideoClipProps, IState> {
|
|
27
|
+
get videoUrl(): string;
|
|
28
|
+
get isClipping(): boolean;
|
|
29
|
+
/** 结果JSON */
|
|
30
|
+
get resultJSON(): string | undefined;
|
|
31
|
+
get disabled(): boolean;
|
|
32
|
+
get loading(): boolean;
|
|
33
|
+
get defaultTextAttribute(): string;
|
|
34
|
+
get defaultAttribute(): string;
|
|
35
|
+
get selectedSliceIndex(): number;
|
|
36
|
+
get exportContext(): {
|
|
37
|
+
selectedID: string;
|
|
38
|
+
result: IVideoTimeSlice[];
|
|
39
|
+
clipStatus: EClipStatus;
|
|
40
|
+
videoPlayer: any;
|
|
41
|
+
attributeList: any;
|
|
42
|
+
onSelectedTimeSlice: (i: IVideoTimeSlice) => void;
|
|
43
|
+
removeTimeSlice: (item: IVideoTimeSlice) => void;
|
|
44
|
+
updateSelectedSliceTimeProperty: (val: number, key: "end" | "start") => void;
|
|
45
|
+
};
|
|
46
|
+
fns: Map<string, any[]>;
|
|
47
|
+
videoPlayer?: any;
|
|
48
|
+
videoNode?: HTMLVideoElement;
|
|
49
|
+
videoRef?: HTMLVideoElement;
|
|
50
|
+
throttledUpdateTime: _.DebouncedFunc<(newValue: number) => void>;
|
|
51
|
+
constructor(props: IVideoClipProps);
|
|
52
|
+
get valid(): boolean;
|
|
53
|
+
/** 步骤信息 */
|
|
54
|
+
stepInfo: () => import("../../../types/step").IStepInfo;
|
|
55
|
+
componentDidMount(): void;
|
|
56
|
+
componentWillUnmount(): void;
|
|
57
|
+
shouldComponentUpdate(newProps: any, newState: IState): boolean;
|
|
58
|
+
emitEvent: (event: string) => void;
|
|
59
|
+
singleOn(event: string, func: () => void): void;
|
|
60
|
+
on(event: string, func: () => void): void;
|
|
61
|
+
unbindAll(eventName: string): void;
|
|
62
|
+
setValid: (valid: boolean) => void;
|
|
63
|
+
updateSidebar: () => void;
|
|
64
|
+
exportData: () => (IVideoTimeSlice[] | {
|
|
65
|
+
valid: boolean;
|
|
66
|
+
duration: number;
|
|
67
|
+
})[];
|
|
68
|
+
/**
|
|
69
|
+
* 微调选中截取片段的开始时间(start)
|
|
70
|
+
* @param changeTime
|
|
71
|
+
*/
|
|
72
|
+
updateSelectedSliceTimeStartByPer: (changeTime: number) => void;
|
|
73
|
+
/**
|
|
74
|
+
* 微调选中截取片段的最后时间(end)
|
|
75
|
+
* @param changeTime
|
|
76
|
+
*/
|
|
77
|
+
updateSelectedSliceTimeEndByPer: (changeTime: number) => void;
|
|
78
|
+
updateSelectedSliceTimeProperty: (val: number, key: 'start' | 'end') => void;
|
|
79
|
+
keyDownEvents: (e: KeyboardEvent) => void;
|
|
80
|
+
videoLoaded: (totalTime?: number) => void;
|
|
81
|
+
setVideoError: (videoError: boolean, errorType: any, curTime: number) => void;
|
|
82
|
+
clearResult: () => void;
|
|
83
|
+
/** 取消截取 */
|
|
84
|
+
cancelClipped: () => void;
|
|
85
|
+
/**
|
|
86
|
+
* 切换截取状态,如为开启则添加end为null的数据,否则将对应截取片段的时间补全
|
|
87
|
+
* @param curTime
|
|
88
|
+
* @returns
|
|
89
|
+
*/
|
|
90
|
+
toggleClipStatus: (curTime?: number) => void;
|
|
91
|
+
/** 添加时间点 */
|
|
92
|
+
addTime: () => void;
|
|
93
|
+
/**
|
|
94
|
+
* 视频右键操作
|
|
95
|
+
* @param e
|
|
96
|
+
*/
|
|
97
|
+
contextToCancel: (e: MouseEvent) => void;
|
|
98
|
+
/**
|
|
99
|
+
* 重新调整片段长度
|
|
100
|
+
* @param id
|
|
101
|
+
* @param direction
|
|
102
|
+
* @param changedPercent
|
|
103
|
+
*/
|
|
104
|
+
onTrackResize: (id: string, direction: EDirection, changedPercent: number) => void;
|
|
105
|
+
/**
|
|
106
|
+
* 渲染页面标注视频组件
|
|
107
|
+
* @returns
|
|
108
|
+
*/
|
|
109
|
+
renderMediaContent: () => React.JSX.Element;
|
|
110
|
+
/**
|
|
111
|
+
* 选中片段
|
|
112
|
+
* @param i
|
|
113
|
+
* @returns
|
|
114
|
+
*/
|
|
115
|
+
onSelectedTimeSlice: (i: IVideoTimeSlice) => void;
|
|
116
|
+
/** 根据数据删除片段 */
|
|
117
|
+
removeTimeSlice: (item: IVideoTimeSlice) => void;
|
|
118
|
+
setResult: (loading?: boolean, props?: any) => void;
|
|
119
|
+
/**
|
|
120
|
+
* 当前选中的属性改变
|
|
121
|
+
* @param attribute
|
|
122
|
+
*/
|
|
123
|
+
setDefaultAttribute: (attribute: string) => void;
|
|
124
|
+
/**
|
|
125
|
+
* 设置当前选中片段的文本
|
|
126
|
+
* @param textValue
|
|
127
|
+
*/
|
|
128
|
+
setTextAttribute: (textValue: string) => void;
|
|
129
|
+
render(): React.JSX.Element;
|
|
130
|
+
}
|
|
131
|
+
export default VideoClipTool;
|
package/dist/types/components/{videoPlayer → videoAnnotate/videoTagTool}/TagToolInstanceAdaptor.d.ts
RENAMED
|
@@ -5,20 +5,15 @@
|
|
|
5
5
|
* @date 2022-05-31
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { IStepInfo } from '@/types/step';
|
|
9
8
|
import _ from 'lodash';
|
|
10
|
-
import type { ObjectString } from '
|
|
11
|
-
import {
|
|
12
|
-
export interface IVideoTagInstanceAdaptorProps {
|
|
13
|
-
imgIndex: number;
|
|
14
|
-
imgList: IFileItem[];
|
|
9
|
+
import type { ObjectString } from '../../videoPlayer/types';
|
|
10
|
+
import { IVideoAnnotateProps } from '@/components/videoAnnotate';
|
|
11
|
+
export interface IVideoTagInstanceAdaptorProps extends IVideoAnnotateProps {
|
|
15
12
|
pageForward: () => void;
|
|
16
13
|
pageJump: (page: string) => void;
|
|
17
14
|
pageBackward: () => void;
|
|
18
|
-
onMounted: (instance:
|
|
15
|
+
onMounted: (instance: any) => void;
|
|
19
16
|
onUnmounted: () => void;
|
|
20
|
-
step: number;
|
|
21
|
-
stepList: IStepInfo[];
|
|
22
17
|
}
|
|
23
18
|
interface IVideoTagInstanceAdaptorState {
|
|
24
19
|
tagResult: any[];
|
|
@@ -29,7 +24,7 @@ export declare class TagToolInstanceAdaptor extends React.Component<IVideoTagIns
|
|
|
29
24
|
fns: {
|
|
30
25
|
[key: string]: () => void;
|
|
31
26
|
};
|
|
32
|
-
|
|
27
|
+
videoPlayer?: HTMLVideoElement;
|
|
33
28
|
labelSelectedList: number[];
|
|
34
29
|
constructor(props: IVideoTagInstanceAdaptorProps);
|
|
35
30
|
get config(): any;
|
|
@@ -50,6 +45,7 @@ export declare class TagToolInstanceAdaptor extends React.Component<IVideoTagIns
|
|
|
50
45
|
})[];
|
|
51
46
|
singleOn(event: string, func: () => void): void;
|
|
52
47
|
on(event: string, func: () => void): void;
|
|
48
|
+
unbindAll(eventName: string): void;
|
|
53
49
|
getTagResultByCode(num1: number, num2?: number): {
|
|
54
50
|
value: {
|
|
55
51
|
key: any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IVideoAnnotateProps } from '@/components/videoAnnotate';
|
|
3
|
+
export interface IVideoTextInstanceAdaptorProps extends IVideoAnnotateProps {
|
|
4
|
+
pageForward: () => void;
|
|
5
|
+
pageJump: (page: string) => void;
|
|
6
|
+
pageBackward: () => void;
|
|
7
|
+
onMounted: (instance: any) => void;
|
|
8
|
+
onUnmounted: () => void;
|
|
9
|
+
}
|
|
10
|
+
interface IVideoTextInstanceAdaptorState {
|
|
11
|
+
result: any;
|
|
12
|
+
valid: boolean;
|
|
13
|
+
showText: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare class VideoTextTool extends React.Component<IVideoTextInstanceAdaptorProps, IVideoTextInstanceAdaptorState> {
|
|
16
|
+
fns: {
|
|
17
|
+
[key: string]: () => void;
|
|
18
|
+
};
|
|
19
|
+
videoPlayer?: HTMLVideoElement;
|
|
20
|
+
constructor(props: IVideoTextInstanceAdaptorProps);
|
|
21
|
+
get config(): any;
|
|
22
|
+
/** Just implementation, no actual logic */
|
|
23
|
+
get history(): {
|
|
24
|
+
initRecord: () => void;
|
|
25
|
+
pushHistory: () => void;
|
|
26
|
+
};
|
|
27
|
+
get valid(): boolean;
|
|
28
|
+
get textList(): any[];
|
|
29
|
+
getColor(config?: any, attribute?: string): any;
|
|
30
|
+
clearResult: (sendMsg?: boolean) => void;
|
|
31
|
+
exportData: () => (any[] | {
|
|
32
|
+
valid: boolean;
|
|
33
|
+
duration: number;
|
|
34
|
+
frames: number | undefined;
|
|
35
|
+
videoWidth: number;
|
|
36
|
+
videoHeight: number;
|
|
37
|
+
})[];
|
|
38
|
+
toggleShowText: (v: boolean) => void;
|
|
39
|
+
singleOn(event: string, func: () => void): void;
|
|
40
|
+
on(event: string, func: () => void): void;
|
|
41
|
+
unbindAll(eventName: string): void;
|
|
42
|
+
emitEvent: (event: string) => void;
|
|
43
|
+
updateSidebar: () => void;
|
|
44
|
+
updateTextValue: (key: string, text: string, result?: {
|
|
45
|
+
[key: string]: string;
|
|
46
|
+
} | undefined) => void;
|
|
47
|
+
setResult: (result: any) => void;
|
|
48
|
+
setValid: (valid: boolean) => void;
|
|
49
|
+
componentDidMount(): void;
|
|
50
|
+
componentWillUnmount(): void;
|
|
51
|
+
setResultFromImgList: (props: IVideoTextInstanceAdaptorProps) => void;
|
|
52
|
+
/** Observer imgIndex and set result */
|
|
53
|
+
shouldComponentUpdate(props: IVideoTextInstanceAdaptorProps): boolean;
|
|
54
|
+
render(): React.JSX.Element;
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
/**
|
|
3
2
|
* Format video time to display
|
|
4
3
|
* Such as 61.9 => 01:01:9
|
|
@@ -10,5 +9,8 @@ export declare enum EPlayerType {
|
|
|
10
9
|
Video = 0,
|
|
11
10
|
Audio = 1
|
|
12
11
|
}
|
|
13
|
-
|
|
12
|
+
interface IProps {
|
|
13
|
+
footer?: any;
|
|
14
|
+
}
|
|
15
|
+
declare const VideoController: (props: IProps) => any;
|
|
14
16
|
export default VideoController;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { IFileItem } from '@/types/data';
|
|
8
|
+
export declare const PLAYER_CONTROL_BAR_HEIGHT = 60;
|
|
8
9
|
export declare const VideoPlayerCtx: React.Context<{
|
|
9
10
|
videoRef?: React.RefObject<HTMLVideoElement> | null | undefined;
|
|
10
11
|
isPlay: boolean;
|
|
@@ -20,6 +21,8 @@ export declare const VideoPlayerCtx: React.Context<{
|
|
|
20
21
|
pageBackward: () => void;
|
|
21
22
|
pageJump: (page: string) => void;
|
|
22
23
|
pageForward: () => void;
|
|
24
|
+
addTime?: (() => void) | undefined;
|
|
25
|
+
toggleClipStatus?: (() => void) | undefined;
|
|
23
26
|
}>;
|
|
24
27
|
interface IVideoPlayerProps {
|
|
25
28
|
imgList: IFileItem[];
|
|
@@ -29,6 +32,13 @@ interface IVideoPlayerProps {
|
|
|
29
32
|
pageForward: () => void;
|
|
30
33
|
valid: boolean;
|
|
31
34
|
setVideoRef?: (video: HTMLVideoElement) => void;
|
|
35
|
+
showVideoTrack?: boolean;
|
|
36
|
+
onTrackResize?: any;
|
|
37
|
+
footer?: any;
|
|
38
|
+
dataLoaded?: (totalTime: number) => void;
|
|
39
|
+
addTime?: () => void;
|
|
40
|
+
toggleClipStatus?: () => void;
|
|
41
|
+
drawLayerSlot?: any;
|
|
32
42
|
}
|
|
33
43
|
interface IVideoPlayerState {
|
|
34
44
|
playbackRate: number;
|
|
@@ -59,6 +69,7 @@ export declare class VideoPlayer extends React.Component<IVideoPlayerProps, IVid
|
|
|
59
69
|
keydown: (event: KeyboardEvent) => void;
|
|
60
70
|
onPlay: () => void;
|
|
61
71
|
onPause: () => void;
|
|
72
|
+
onTimeUpdate: () => void;
|
|
62
73
|
onVideoStopped: () => void;
|
|
63
74
|
onVideoStart: () => void;
|
|
64
75
|
resetVideoData: () => void;
|
|
@@ -34,3 +34,9 @@ export declare const getKeyCodeNumber: (keyCode: number) => number;
|
|
|
34
34
|
* @returns {Number}
|
|
35
35
|
*/
|
|
36
36
|
export declare const decimalReserved: (num: number, places?: number) => number;
|
|
37
|
+
/**
|
|
38
|
+
* Compute the hash code of given string
|
|
39
|
+
* @param str
|
|
40
|
+
* @returns {Number}
|
|
41
|
+
*/
|
|
42
|
+
export declare const hashCode: (str: string | undefined) => number | undefined;
|
|
@@ -4,9 +4,9 @@ export interface ICustomToolInstance {
|
|
|
4
4
|
valid: boolean;
|
|
5
5
|
exportData: () => [any, {}];
|
|
6
6
|
exportCustomData: () => {};
|
|
7
|
-
singleOn: () => void;
|
|
7
|
+
singleOn: (eventName: string, callback: (...args: any[]) => void) => void;
|
|
8
8
|
clearResult: () => void;
|
|
9
|
-
on: () => void;
|
|
9
|
+
on: (eventName: string, callback: (...args: any[]) => void) => void;
|
|
10
10
|
unbind: () => void;
|
|
11
11
|
setResult: (result: any) => void;
|
|
12
12
|
setValid: (valid: boolean) => void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import PointCloudAnnotationView from '@/components/AnnotationView/pointCloudAnno
|
|
|
4
4
|
import QuestionView from '@/components/LLMToolView/questionView';
|
|
5
5
|
import { i18n } from '@labelbee/lb-utils';
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { VideoTagTool } from '@/components/
|
|
7
|
+
import { VideoTagTool } from '@/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptorI18nProvider';
|
|
8
8
|
import './index.scss';
|
|
9
9
|
import PredictTracking from '@/components/predictTracking';
|
|
10
10
|
import LLMToolView from '@/components/LLMToolView';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IStepInfo } from '@/types/step';
|
|
3
3
|
import TextToolOperation from '@labelbee/lb-annotation/dist/types/core/toolOperation/TextToolOperation';
|
|
4
|
+
import { VideoTextTool } from '@/components/videoAnnotate/videoTextTool';
|
|
4
5
|
interface ITextareaWithFooterProps {
|
|
5
6
|
textareaProps?: any;
|
|
6
7
|
footer?: any;
|
|
@@ -8,7 +9,7 @@ interface ITextareaWithFooterProps {
|
|
|
8
9
|
export declare const TextareaWithFooter: (props: ITextareaWithFooterProps) => React.JSX.Element;
|
|
9
10
|
interface IProps {
|
|
10
11
|
dispatch: Function;
|
|
11
|
-
toolInstance: TextToolOperation;
|
|
12
|
+
toolInstance: TextToolOperation | VideoTextTool;
|
|
12
13
|
imgIndex: number;
|
|
13
14
|
triggerEventAfterIndexChanged: boolean;
|
|
14
15
|
step: number;
|
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
export declare const scribbleImg: {
|
|
2
|
+
name: string;
|
|
3
|
+
icon: any;
|
|
4
|
+
shortCut: string[];
|
|
5
|
+
};
|
|
6
|
+
export declare const eraseImg: {
|
|
7
|
+
name: string;
|
|
8
|
+
icon: any;
|
|
9
|
+
shortCut: string[];
|
|
10
|
+
};
|
|
11
|
+
export declare const scribbleLine: {
|
|
12
|
+
name: string;
|
|
13
|
+
icon: any;
|
|
14
|
+
shortCut: any[];
|
|
15
|
+
};
|
|
16
|
+
export declare const strokeEnlarge: {
|
|
17
|
+
name: string;
|
|
18
|
+
icon: any;
|
|
19
|
+
shortCut: string[];
|
|
20
|
+
};
|
|
21
|
+
export declare const strokeReduction: {
|
|
22
|
+
name: string;
|
|
23
|
+
icon: any;
|
|
24
|
+
shortCut: string[];
|
|
25
|
+
};
|
|
1
26
|
declare const scribbleShortCutTable: {
|
|
2
27
|
name: string;
|
|
3
28
|
icon: any;
|