@labelbee/lb-components 1.16.0-alpha.1 → 1.16.0-alpha.2
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/audio/clip.svg.js +1 -0
- package/dist/assets/annotation/audio/clipA.svg.js +1 -0
- package/dist/assets/annotation/audio/clipASmall.svg.js +1 -0
- package/dist/assets/annotation/audio/clipSmall.svg.js +1 -0
- package/dist/assets/annotation/audio/delete.svg.js +1 -0
- package/dist/assets/annotation/audio/loop.svg.js +1 -0
- package/dist/assets/annotation/audio/loopA.svg.js +1 -0
- package/dist/assets/annotation/audio/progressDot.svg.js +1 -0
- package/dist/assets/annotation/audio/progressDotA.svg.js +1 -0
- package/dist/assets/annotation/audio/tag.svg.js +1 -0
- package/dist/assets/annotation/audio/tagA.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/deleteRemark.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_down.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_eyeLock_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonCut_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_up.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/nextRemark.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/preRemark.svg.js +1 -0
- package/dist/assets/annotation/video/icon_clip.svg.js +1 -0
- package/dist/components/audioAnnotate/audioContext/index.js +1 -0
- package/dist/components/audioAnnotate/audioContext/index.module.scss.js +1 -0
- package/dist/components/audioAnnotate/audioSide/LabelDetailPopover/index.js +1 -0
- package/dist/components/audioAnnotate/audioSide/LabelDetailPopover/index.module.scss.js +1 -0
- package/dist/components/audioAnnotate/audioSide/clipSidebar/index.js +1 -0
- package/dist/components/audioAnnotate/audioSide/clipSidebar/index.module.scss.js +1 -0
- package/dist/components/audioAnnotate/audioSide/labelFilterInput/index.js +1 -0
- package/dist/components/audioAnnotate/audioSide/labelFilterInput/index.module.scss.js +1 -0
- package/dist/components/audioAnnotate/audioSide/labelSidebar/index.js +1 -0
- package/dist/components/audioAnnotate/audioSide/labelSidebar/index.module.scss.js +1 -0
- package/dist/components/audioAnnotate/index.js +1 -0
- package/dist/components/audioAnnotate/index.module.scss.js +1 -0
- package/dist/components/audioAnnotate/tagResultShow/index.js +1 -0
- package/dist/components/audioAnnotate/tagResultShow/index.module.scss.js +1 -0
- package/dist/components/audioAnnotate/textInput/index.js +1 -0
- package/dist/components/audioAnnotate/textInput/index.module.scss.js +1 -0
- package/dist/components/audioAnnotate/utils/getWebPcm2Wac.js +1 -0
- package/dist/components/audioPlayer/clipRegion/index.js +1 -0
- package/dist/components/audioPlayer/clipRegion/index.module.scss.js +1 -0
- package/dist/components/audioPlayer/clipTip/index.js +1 -0
- package/dist/components/audioPlayer/combineTip/index.js +1 -0
- package/dist/components/audioPlayer/index.js +1 -0
- package/dist/components/audioPlayer/index.module.scss.js +1 -0
- package/dist/components/audioPlayer/labelDisplayToggle/index.js +1 -0
- package/dist/components/audioPlayer/labelDisplayToggle/index.module.scss.js +1 -0
- package/dist/components/audioPlayer/progressDot/index.js +1 -0
- package/dist/components/audioPlayer/progressDot/index.module.scss.js +1 -0
- package/dist/components/audioPlayer/segmentTip/index.js +1 -0
- package/dist/components/audioPlayer/useAudioCombine/index.js +2 -0
- package/dist/components/audioPlayer/useAudioScroll/index.js +1 -0
- package/dist/components/audioPlayer/useAudioSegment/index.js +1 -0
- package/dist/components/audioPlayer/useSwitchHotkey/index.js +1 -0
- package/dist/components/audioPlayer/zoomSlider/index.js +1 -0
- package/dist/components/audioPlayer/zoomSlider/index.module.scss.js +1 -0
- package/dist/components/imageError/index.js +1 -0
- package/dist/components/invalidPage/index.js +1 -0
- package/dist/components/videoPlayer/components/SpeedController/index.js +1 -0
- package/dist/components/videoPlayer/components/SpeedController/index.module.scss.js +1 -0
- package/dist/components/videoPlayer/components/controller/index.js +1 -1
- package/dist/components/videoPlayer/index.js +1 -1
- package/dist/index.css +721 -0
- package/dist/store/annotation/reducer.js +1 -1
- package/dist/types/App.d.ts +1 -0
- package/dist/types/components/attributeList/index.d.ts +1 -0
- package/dist/types/components/audioAnnotate/audioContext/index.d.ts +40 -0
- package/dist/types/components/audioAnnotate/audioSide/LabelDetailPopover/index.d.ts +9 -0
- package/dist/types/components/audioAnnotate/audioSide/clipSidebar/index.d.ts +11 -0
- package/dist/types/components/audioAnnotate/audioSide/labelFilterInput/index.d.ts +7 -0
- package/dist/types/components/audioAnnotate/audioSide/labelSidebar/index.d.ts +49 -0
- package/dist/types/components/audioAnnotate/index.d.ts +12 -0
- package/dist/types/components/audioAnnotate/tagResultShow/index.d.ts +3 -0
- package/dist/types/components/audioAnnotate/textInput/index.d.ts +52 -0
- package/dist/types/components/audioAnnotate/utils/getWebPcm2Wac.d.ts +1 -0
- package/dist/types/components/audioPlayer/clipRegion/index.d.ts +22 -0
- package/dist/types/components/audioPlayer/clipTip/index.d.ts +15 -0
- package/dist/types/components/audioPlayer/combineTip/index.d.ts +12 -0
- package/dist/types/components/audioPlayer/index.d.ts +43 -0
- package/dist/types/components/audioPlayer/labelDisplayToggle/index.d.ts +6 -0
- package/dist/types/components/audioPlayer/progressDot/index.d.ts +6 -0
- package/dist/types/components/audioPlayer/segmentTip/index.d.ts +12 -0
- package/dist/types/components/audioPlayer/useAudioCombine/index.d.ts +30 -0
- package/dist/types/components/audioPlayer/useAudioScroll/index.d.ts +17 -0
- package/dist/types/components/audioPlayer/useAudioSegment/index.d.ts +31 -0
- package/dist/types/components/audioPlayer/useSwitchHotkey/index.d.ts +12 -0
- package/dist/types/components/audioPlayer/zoomSlider/index.d.ts +13 -0
- package/dist/types/components/imageError/index.d.ts +14 -0
- package/dist/types/components/invalidPage/index.d.ts +9 -0
- package/dist/types/components/videoPlayer/components/SpeedController/index.d.ts +16 -0
- package/dist/types/components/videoPlayer/components/controller/index.d.ts +11 -0
- package/dist/types/utils/StepUtils.d.ts +7 -0
- package/dist/types/utils/ToolUtils.d.ts +1 -0
- package/dist/types/utils/audio.d.ts +132 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/audioText/index.d.ts +18 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.d.ts +39 -0
- package/dist/utils/StepUtils.js +1 -1
- package/dist/utils/ToolUtils.js +1 -1
- package/dist/utils/audio.js +1 -0
- package/dist/views/MainView/index.js +1 -1
- package/dist/views/MainView/sidebar/ToolStyle/index.js +1 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/audioText/index.js +1 -0
- 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/line/index.js +1 -1
- package/dist/views/MainView/toolHeader/headerOption/index.js +1 -1
- package/es/assets/annotation/audio/clip.svg.js +1 -0
- package/es/assets/annotation/audio/clipA.svg.js +1 -0
- package/es/assets/annotation/audio/clipASmall.svg.js +1 -0
- package/es/assets/annotation/audio/clipSmall.svg.js +1 -0
- package/es/assets/annotation/audio/delete.svg.js +1 -0
- package/es/assets/annotation/audio/loop.svg.js +1 -0
- package/es/assets/annotation/audio/loopA.svg.js +1 -0
- package/es/assets/annotation/audio/progressDot.svg.js +1 -0
- package/es/assets/annotation/audio/progressDotA.svg.js +1 -0
- package/es/assets/annotation/audio/tag.svg.js +1 -0
- package/es/assets/annotation/audio/tagA.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/deleteRemark.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_down.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_eyeLock_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonCut_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_up.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/nextRemark.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/preRemark.svg.js +1 -0
- package/es/assets/annotation/video/icon_clip.svg.js +1 -0
- package/es/components/audioAnnotate/audioContext/index.js +1 -0
- package/es/components/audioAnnotate/audioContext/index.module.scss.js +1 -0
- package/es/components/audioAnnotate/audioSide/LabelDetailPopover/index.js +1 -0
- package/es/components/audioAnnotate/audioSide/LabelDetailPopover/index.module.scss.js +1 -0
- package/es/components/audioAnnotate/audioSide/clipSidebar/index.js +1 -0
- package/es/components/audioAnnotate/audioSide/clipSidebar/index.module.scss.js +1 -0
- package/es/components/audioAnnotate/audioSide/labelFilterInput/index.js +1 -0
- package/es/components/audioAnnotate/audioSide/labelFilterInput/index.module.scss.js +1 -0
- package/es/components/audioAnnotate/audioSide/labelSidebar/index.js +1 -0
- package/es/components/audioAnnotate/audioSide/labelSidebar/index.module.scss.js +1 -0
- package/es/components/audioAnnotate/index.js +1 -0
- package/es/components/audioAnnotate/index.module.scss.js +1 -0
- package/es/components/audioAnnotate/tagResultShow/index.js +1 -0
- package/es/components/audioAnnotate/tagResultShow/index.module.scss.js +1 -0
- package/es/components/audioAnnotate/textInput/index.js +1 -0
- package/es/components/audioAnnotate/textInput/index.module.scss.js +1 -0
- package/es/components/audioAnnotate/utils/getWebPcm2Wac.js +1 -0
- package/es/components/audioPlayer/clipRegion/index.js +1 -0
- package/es/components/audioPlayer/clipRegion/index.module.scss.js +1 -0
- package/es/components/audioPlayer/clipTip/index.js +1 -0
- package/es/components/audioPlayer/combineTip/index.js +1 -0
- package/es/components/audioPlayer/index.js +1 -0
- package/es/components/audioPlayer/index.module.scss.js +1 -0
- package/es/components/audioPlayer/labelDisplayToggle/index.js +1 -0
- package/es/components/audioPlayer/labelDisplayToggle/index.module.scss.js +1 -0
- package/es/components/audioPlayer/progressDot/index.js +1 -0
- package/es/components/audioPlayer/progressDot/index.module.scss.js +1 -0
- package/es/components/audioPlayer/segmentTip/index.js +1 -0
- package/es/components/audioPlayer/useAudioCombine/index.js +2 -0
- package/es/components/audioPlayer/useAudioScroll/index.js +1 -0
- package/es/components/audioPlayer/useAudioSegment/index.js +1 -0
- package/es/components/audioPlayer/useSwitchHotkey/index.js +1 -0
- package/es/components/audioPlayer/zoomSlider/index.js +1 -0
- package/es/components/audioPlayer/zoomSlider/index.module.scss.js +1 -0
- package/es/components/imageError/index.js +1 -0
- package/es/components/invalidPage/index.js +1 -0
- package/es/components/videoPlayer/components/SpeedController/index.js +1 -0
- package/es/components/videoPlayer/components/SpeedController/index.module.scss.js +1 -0
- package/es/components/videoPlayer/components/controller/index.js +1 -1
- package/es/index.css +721 -0
- package/es/store/annotation/reducer.js +1 -1
- package/es/utils/StepUtils.js +1 -1
- package/es/utils/ToolUtils.js +1 -1
- package/es/utils/audio.js +1 -0
- package/es/views/MainView/index.js +1 -1
- package/es/views/MainView/sidebar/ToolStyle/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/audioText/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +1 -1
- package/es/views/MainView/toolHeader/headerOption/index.js +1 -1
- package/package.json +9 -5
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file 音频中用到的工具方法
|
|
3
|
+
*/
|
|
4
|
+
import { IInputList } from '@/types/main';
|
|
5
|
+
import { ITextConfigItem } from '@labelbee/lb-utils';
|
|
6
|
+
export declare const ATTRIBUTE_COLORS: string[];
|
|
7
|
+
export declare const REGEXP_NUMBER = "^[0-9]+$";
|
|
8
|
+
export declare const REGEXP_ENGLISH = "^[A-Za-z]+$";
|
|
9
|
+
/**
|
|
10
|
+
* 默认的文本配置列表
|
|
11
|
+
*/
|
|
12
|
+
export declare const DEFAULT_TEXT_CONFIG_ITEM: ITextConfigItem;
|
|
13
|
+
/**
|
|
14
|
+
* 获取属性icon
|
|
15
|
+
* @param attribute
|
|
16
|
+
* @param attributeList
|
|
17
|
+
*/
|
|
18
|
+
export declare const getAttributeIcon: (attribute: string, attributeList: IInputList[], valid?: boolean) => HTMLImageElement;
|
|
19
|
+
/**
|
|
20
|
+
* 获取正则校验的string
|
|
21
|
+
* @param textCheckType
|
|
22
|
+
* @param customFormat
|
|
23
|
+
*/
|
|
24
|
+
export declare const checkString: (textCheckType: number, customFormat: string) => string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @param value 检测的值
|
|
28
|
+
* @param checkString RegExp string
|
|
29
|
+
*/
|
|
30
|
+
export declare const checkTextAttibute: (value: string | undefined, checkString: string) => boolean;
|
|
31
|
+
/**
|
|
32
|
+
* 获取属性标注显示的数据
|
|
33
|
+
* @param attribute
|
|
34
|
+
* @param attributeList
|
|
35
|
+
* @returns {string} 标注属性
|
|
36
|
+
*/
|
|
37
|
+
export declare const getAttributeShowText: (attribute: string | undefined, attributeList: IInputList[]) => string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* 获取属性标注的索引
|
|
40
|
+
* @param attribute
|
|
41
|
+
* @param attributeList
|
|
42
|
+
* @returns {number} 属性索引
|
|
43
|
+
*/
|
|
44
|
+
export declare const getAttributeIndex: (attribute: string | undefined, attributeList: IInputList[]) => number;
|
|
45
|
+
/**
|
|
46
|
+
* 获取属性标注的索引
|
|
47
|
+
* @param attribute
|
|
48
|
+
* @param attributeList
|
|
49
|
+
* @returns {string} 颜色hex值
|
|
50
|
+
*/
|
|
51
|
+
export declare const getAttributeColor: (attribute: string | undefined, attributeList: IInputList[]) => string;
|
|
52
|
+
/**
|
|
53
|
+
* v2.36新增当属性为背景色(紫色、棕色、蓝色),字体颜色为白色
|
|
54
|
+
* @param attribute
|
|
55
|
+
* @param attributeList
|
|
56
|
+
* @returns {string} 字体颜色
|
|
57
|
+
*/
|
|
58
|
+
export declare const getAttributeFontColor: (attribute: string | undefined, attributeList: IInputList[]) => "#fff" | "#333";
|
|
59
|
+
/**
|
|
60
|
+
* 文本标注:自动获取下一个序号(取当前数据的最大值 + 1)
|
|
61
|
+
* @param toolResultList 工具的结果集
|
|
62
|
+
* @param textCheckType
|
|
63
|
+
*/
|
|
64
|
+
export declare const getTextAttribute: (toolResultList: {
|
|
65
|
+
[a: string]: any;
|
|
66
|
+
textAttribute: string;
|
|
67
|
+
}[], textCheckType: number) => string;
|
|
68
|
+
/**
|
|
69
|
+
* 更改数据的textAttribute
|
|
70
|
+
* @param value
|
|
71
|
+
* @param selectedID 工具中选中数据的ID
|
|
72
|
+
* @param toolList 工具的结果集
|
|
73
|
+
*/
|
|
74
|
+
export declare const textChange: (value: string | undefined, selectedID: string, toolList: any[]) => any[];
|
|
75
|
+
/**
|
|
76
|
+
* 获取错误提示的文案
|
|
77
|
+
* @param textCheckType
|
|
78
|
+
*/
|
|
79
|
+
export declare const getErrorNotice: (textCheckType: number) => "" | "请按仅数字的格式输入" | "请按仅英文的格式输入" | "请按要求的格式输入";
|
|
80
|
+
/**
|
|
81
|
+
* 验证文本是否通过
|
|
82
|
+
* @param textCheckType
|
|
83
|
+
* @param customFormat
|
|
84
|
+
* @param text
|
|
85
|
+
* @returns 文本是否校验通过
|
|
86
|
+
*/
|
|
87
|
+
export declare const textAttributeValidate: (textCheckType: number, customFormat: string, text: string) => boolean | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* 改变文本标注后 修改全部的LOG
|
|
90
|
+
* @param toolLog LOG数据
|
|
91
|
+
* @param toolList 工具的数据集
|
|
92
|
+
*/
|
|
93
|
+
export declare const changeTextAttributeInLog: (toolLog: any[][], toolList: any[]) => any[][];
|
|
94
|
+
/**
|
|
95
|
+
* 修改rgba的透明度
|
|
96
|
+
* @param color
|
|
97
|
+
* @param opacity
|
|
98
|
+
*/
|
|
99
|
+
export declare const updateColorOpacity: (color: string, opacity: number) => string;
|
|
100
|
+
/**
|
|
101
|
+
* 精确减法
|
|
102
|
+
* @param a
|
|
103
|
+
* @param b
|
|
104
|
+
* @returns
|
|
105
|
+
*/
|
|
106
|
+
export declare const precisionMinus: (a: number, b: number) => number;
|
|
107
|
+
/**
|
|
108
|
+
* 精确加法
|
|
109
|
+
* @param a
|
|
110
|
+
* @param b
|
|
111
|
+
* @returns
|
|
112
|
+
*/
|
|
113
|
+
export declare const precisionAdd: (a: number, b: number) => number;
|
|
114
|
+
export declare const isDoubleClick: (e: MouseEvent) => boolean;
|
|
115
|
+
export declare const formatTime: (time: number) => string;
|
|
116
|
+
export declare const timeFormat: (time: number, format?: string) => string;
|
|
117
|
+
/**
|
|
118
|
+
* 根据按下鼠标位置的时间节点、获取相同属性可调整的时间范围
|
|
119
|
+
* @example
|
|
120
|
+
* getCanMoveRange([165, 245.714], 332.8571428571429) => {min: 245.714, max: null}
|
|
121
|
+
* getCanMoveRange([165, 245.714, 275], 90) => {min: null, max: 165}
|
|
122
|
+
* getCanMoveRange([90, 165, 245.714, 332.857, 497.5], 263.2142857142857) => {min: 245.714, max: 332.857}
|
|
123
|
+
*
|
|
124
|
+
* @param {number} times 相同属性的时间节点
|
|
125
|
+
* @param {number} eventDownTime 按下鼠标位置的时间节点
|
|
126
|
+
*/
|
|
127
|
+
export declare const getCanMoveRange: (times: number[], eventDownTime: number) => {
|
|
128
|
+
min: null;
|
|
129
|
+
max: number | null;
|
|
130
|
+
};
|
|
131
|
+
export declare const dispatchResizeEvent: () => void;
|
|
132
|
+
export declare function isImageValue(result: string): any;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const combineAudio: {
|
|
2
|
+
name: string;
|
|
3
|
+
icon: any;
|
|
4
|
+
noticeInfo: string;
|
|
5
|
+
shortCut: string[];
|
|
6
|
+
};
|
|
7
|
+
export declare const splitAudio: {
|
|
8
|
+
name: string;
|
|
9
|
+
icon: any;
|
|
10
|
+
noticeInfo: string;
|
|
11
|
+
shortCut: string[];
|
|
12
|
+
};
|
|
13
|
+
declare const audioTextToolShortCurTable: {
|
|
14
|
+
name: string;
|
|
15
|
+
icon: any;
|
|
16
|
+
shortCut: any[];
|
|
17
|
+
}[];
|
|
18
|
+
export default audioTextToolShortCurTable;
|
|
@@ -130,3 +130,42 @@ export declare const rewind: {
|
|
|
130
130
|
shortCut: string[];
|
|
131
131
|
shortCutUseHtml: boolean;
|
|
132
132
|
};
|
|
133
|
+
export declare const toggleTagMode: {
|
|
134
|
+
name: string;
|
|
135
|
+
icon: any;
|
|
136
|
+
shortCut: string[];
|
|
137
|
+
};
|
|
138
|
+
export declare const tag: {
|
|
139
|
+
name: string;
|
|
140
|
+
icon: any;
|
|
141
|
+
shortCut: any[];
|
|
142
|
+
noticeInfo: string;
|
|
143
|
+
};
|
|
144
|
+
export declare const period: {
|
|
145
|
+
name: string;
|
|
146
|
+
icon: any;
|
|
147
|
+
noticeInfo: string;
|
|
148
|
+
shortCut: string[];
|
|
149
|
+
};
|
|
150
|
+
export declare const clipSelected: {
|
|
151
|
+
name: string;
|
|
152
|
+
icon: any;
|
|
153
|
+
shortCut: any[];
|
|
154
|
+
noticeInfo: string;
|
|
155
|
+
};
|
|
156
|
+
export declare const deleteRemark: {
|
|
157
|
+
name: string;
|
|
158
|
+
icon: any;
|
|
159
|
+
shortCut: string[];
|
|
160
|
+
noticeInfo: string;
|
|
161
|
+
};
|
|
162
|
+
export declare const nextRemark: {
|
|
163
|
+
name: string;
|
|
164
|
+
icon: any;
|
|
165
|
+
shortCut: string[];
|
|
166
|
+
};
|
|
167
|
+
export declare const preRemark: {
|
|
168
|
+
name: string;
|
|
169
|
+
icon: any;
|
|
170
|
+
shortCut: string[];
|
|
171
|
+
};
|
package/dist/utils/StepUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var index=require("../constant/index.js"),ToolUtils=require("./ToolUtils.js");class StepUtils{static getCurrentStepInfo(o,e){const t=this.getStepInfo(o,e);return[index.EStepType.QUALITY_INSPECTION,index.EStepType.MANUAL_CORRECTION].includes(t==null?void 0:t.type)?this.getStepInfo(t.dataSourceStep,e):t}static getStepInfo(o,e){return e==null?void 0:e.filter(t=>t.step===o)[0]}static currentToolIsVideo(o,e){const t=StepUtils.getCurrentStepInfo(o,e);return ToolUtils.isVideoTool(t==null?void 0:t.tool)}static currentToolIsPointCloud(o,e){const t=StepUtils.getCurrentStepInfo(o,e);return ToolUtils.isPointCloudTool(t==null?void 0:t.tool)}}module.exports=StepUtils;
|
|
1
|
+
"use strict";var index=require("../constant/index.js"),ToolUtils=require("./ToolUtils.js");class StepUtils{static getCurrentStepInfo(o,e){const t=this.getStepInfo(o,e);return[index.EStepType.QUALITY_INSPECTION,index.EStepType.MANUAL_CORRECTION].includes(t==null?void 0:t.type)?this.getStepInfo(t.dataSourceStep,e):t}static getStepInfo(o,e){return e==null?void 0:e.filter(t=>t.step===o)[0]}static currentToolIsVideo(o,e){const t=StepUtils.getCurrentStepInfo(o,e);return ToolUtils.isVideoTool(t==null?void 0:t.tool)}static currentToolIsAudio(o,e){const t=StepUtils.getCurrentStepInfo(o,e);return ToolUtils.isAudioTool(t==null?void 0:t.tool)}static currentToolIsPointCloud(o,e){const t=StepUtils.getCurrentStepInfo(o,e);return ToolUtils.isPointCloudTool(t==null?void 0:t.tool)}}module.exports=StepUtils;
|
package/dist/utils/ToolUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var lbAnnotation=require("@labelbee/lb-annotation");const{EVideoToolName,EPointCloudName,EToolName}=lbAnnotation.cTool;class ToolUtils{static isVideoTool(t){return t?Object.values(EVideoToolName).includes(t):!1}static isPointCloudTool(t){return t?Object.values(EPointCloudName).includes(t):!1}static getPointCloudToolList(){return[EToolName.Point,EToolName.Line,EToolName.PointCloudPolygon]}static getPointToLineDistance(t,o,a){const
|
|
1
|
+
"use strict";var lbAnnotation=require("@labelbee/lb-annotation");const{EVideoToolName,EPointCloudName,EToolName,EAudioToolName}=lbAnnotation.cTool;class ToolUtils{static isVideoTool(t){return t?Object.values(EVideoToolName).includes(t):!1}static isAudioTool(t){return t?Object.values(EAudioToolName).includes(t):!1}static isPointCloudTool(t){return t?Object.values(EPointCloudName).includes(t):!1}static getPointCloudToolList(){return[EToolName.Point,EToolName.Line,EToolName.PointCloudPolygon]}static getPointToLineDistance(t,o,a){const i=Math.abs(Math.sqrt(Math.pow(t.x-o.x,2)+Math.pow(t.y-o.y,2))),l=Math.abs(Math.sqrt(Math.pow(t.x-a.x,2)+Math.pow(t.y-a.y,2))),e=Math.abs(Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2))),s=(i+l+e)/2,n=Math.abs(Math.sqrt(s*(s-i)*(s-l)*(s-e)));return 2*n/e}}module.exports=ToolUtils;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("antd");var lbAnnotation=require("@labelbee/lb-annotation");require("lodash");var Decimal=require("decimal.js"),moment=require("moment");function _interopDefaultLegacy(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Decimal__default=_interopDefaultLegacy(Decimal),moment__default=_interopDefaultLegacy(moment);const{COLORS_ARRAY,ICON_ARRAY,INVALID_ICON,NULL_COLOR,NULL_ICON,WHITE_FONT_COLOR_ARRAY}=lbAnnotation.cStyle,DEFAULT_TEXT_CONFIG_ITEM={label:"\u6587\u672C",key:"text",required:!1,default:"",maxLength:1e3},getAttributeShowText=(t,e)=>{var r,n;try{const o=getAttributeIndex(t,e);return(n=(r=e[o])==null?void 0:r.key)!=null?n:t}catch(o){return t}},getAttributeIndex=(t,e)=>{try{return e.findIndex(n=>n.value===t)}catch(r){return-1}},getAttributeColor=(t,e)=>{try{const r=getAttributeIndex(t,e);return r===-1?NULL_COLOR:COLORS_ARRAY[r%COLORS_ARRAY.length]}catch(r){return NULL_COLOR}},getAttributeFontColor=(t,e)=>{try{const r=getAttributeColor(t,e);return WHITE_FONT_COLOR_ARRAY.includes(r)?"#fff":"#333"}catch(r){return"#333"}},updateColorOpacity=(t,e)=>{var r;try{const n=((r=t.match(/\((.*)\)/))==null?void 0:r[1].split(","))||[];return n.splice(3,1,e.toString()),`rgba(${n.join(",")})`}catch(n){return t}},precisionMinus=(t,e)=>new Decimal__default.default(Number(t)||0).minus(Number(e)||0).toNumber(),precisionAdd=(t,e)=>new Decimal__default.default(t).add(e).toNumber(),generateIsDoubleClick=t=>{let e=null;return n=>e?n.target===(e==null?void 0:e.target):(e=n,setTimeout(()=>{e=null},t),!1)},isDoubleClick=generateIsDoubleClick(300),formatTime=t=>{const e=Math.floor(t*1e3),r=moment__default.default.duration(e);return`${Math.floor(r.asMinutes())}:${moment__default.default.utc(e).format("ss")}`},timeFormat=(t,e="ss.S")=>{const r=Math.floor(t*1e3),n=moment__default.default.duration(r);return`${fillZero(Math.floor(n.asMinutes()))}:${moment__default.default.utc(r).format(e)}`},fillZero=t=>t<10?`0${t}`:t,getCanMoveRange=(t,e)=>{let r=null,n=null;const o=t.length;if(o===0)return{min:r,max:n};let u=0;return e<t[u]?n=t[u]:(t.forEach((i,s)=>{e>i&&(r=i,u=s)}),r&&u<o-1&&(n=t[u+1])),{min:r,max:n}},dispatchResizeEvent=()=>{const t=document.createEvent("Event");t.initEvent("resize",!0,!0),window.dispatchEvent(t)};exports.DEFAULT_TEXT_CONFIG_ITEM=DEFAULT_TEXT_CONFIG_ITEM,exports.dispatchResizeEvent=dispatchResizeEvent,exports.formatTime=formatTime,exports.getAttributeColor=getAttributeColor,exports.getAttributeFontColor=getAttributeFontColor,exports.getAttributeIndex=getAttributeIndex,exports.getAttributeShowText=getAttributeShowText,exports.getCanMoveRange=getCanMoveRange,exports.isDoubleClick=isDoubleClick,exports.precisionAdd=precisionAdd,exports.precisionMinus=precisionMinus,exports.timeFormat=timeFormat,exports.updateColorOpacity=updateColorOpacity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var index$
|
|
1
|
+
"use strict";var index$6=require("../../components/customResizeHook/index.js"),index$4=require("../../constant/index.js"),antd=require("antd"),es=require("antd/es"),React=require("react"),index$a=require("./annotationOperation/index.js"),index$9=require("./annotationTips/index.js"),index$3=require("./sidebar/index.js"),index$b=require("./toolFooter/index.js"),index$8=require("./toolHeader/index.js"),reducer=require("../../store/annotation/reducer.js"),index$5=require("../../components/videoAnnotate/index.js"),reactRedux=require("react-redux"),ToolUtils=require("../../utils/ToolUtils.js"),index$c=require("../../components/pointCloudView/index.js"),dom=require("../../utils/dom.js"),index$7=require("../../utils/index.js"),index$2=require("../../components/predictTracking/previewResult/index.js"),ctx=require("../../store/ctx.js"),ToolType=require("../../data/enums/ToolType.js"),index=require("./LLMLayout/index.js"),index$1=require("../../components/audioAnnotate/index.js"),icons=require("@ant-design/icons"),reactI18next=require("react-i18next"),lbAnnotation=require("@labelbee/lb-annotation");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,a)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,__spreadValues=(e,t)=>{for(var a in t||(t={}))__hasOwnProp.call(t,a)&&__defNormalProp(e,a,t[a]);if(__getOwnPropSymbols)for(var a of __getOwnPropSymbols(t))__propIsEnum.call(t,a)&&__defNormalProp(e,a,t[a]);return e};const{Sider,Content}=es.Layout,layoutCls=`${index$4.prefix}-layout`,ImageAnnotate=e=>{var t;return React__default.default.createElement(React__default.default.Fragment,null,e.showTips===!0&&React__default.default.createElement(index$9,{path:e.path,tips:e.tips}),React__default.default.createElement(index$a,__spreadValues({},e)),React__default.default.createElement(index$b.default,{style:(t=e.style)==null?void 0:t.footer,mode:e.mode,footer:e==null?void 0:e.footer}))},PointCloudAnnotate=e=>{var t;return React__default.default.createElement(React__default.default.Fragment,null,React__default.default.createElement(index$c,{drawLayerSlot:e.drawLayerSlot,checkMode:e.checkMode,intelligentFit:e.intelligentFit}),React__default.default.createElement(index$b.default,{style:(t=e.style)==null?void 0:t.footer,mode:e.mode,footer:e==null?void 0:e.footer}))},AnnotatedArea=e=>{var t;const{stepList:a,step:l}=e,r=(t=reducer.getStepConfig(a,l))==null?void 0:t.tool,o=ToolUtils.isVideoTool(r),n=ToolUtils.isPointCloudTool(r);return o?React__default.default.createElement(index$5,__spreadValues({},e)):n?React__default.default.createElement(PointCloudAnnotate,__spreadValues({},e)):React__default.default.createElement(ImageAnnotate,__spreadValues({},e))},ViewportProviderLayout=e=>{var t,a,l;const{t:r}=reactI18next.useTranslation(),{stepList:o,step:n}=e,i=(t=reducer.getStepConfig(o,n))==null?void 0:t.tool,d=![ToolType.EToolName.LLM,lbAnnotation.EAudioToolName.AudioTextTool].includes(i),u=![ToolType.EToolName.LLM].includes(i),c=![ToolType.EToolName.LLM,lbAnnotation.EAudioToolName.AudioTextTool].includes(i);return React__default.default.createElement(index$6.ViewportProvider,null,React__default.default.createElement(antd.Spin,{spinning:e.loading,indicator:React__default.default.createElement(icons.LoadingOutlined,null),tip:React__default.default.createElement("span",{style:{marginTop:200}},r("LoadingTips")),delay:500},React__default.default.createElement(es.Layout,{className:index$7.classnames([layoutCls,e.className]),style:(a=e.style)==null?void 0:a.layout},React__default.default.createElement("header",{className:`${layoutCls}__header`,style:(l=e.style)==null?void 0:l.header},React__default.default.createElement(index$8,{header:e==null?void 0:e.header,headerName:e.headerName,goBack:e.goBack,exportData:e.exportData,hasLangNode:d,hasHeaderOption:u,hasPredictTrackingIcon:c})),e.children)))},MainView=e=>{var t,a,l,r,o,n,i;const[d,u]=React.useState(void 0),c=(a=(t=e.style)==null?void 0:t.sider)==null?void 0:a.width,{stepList:m,step:f}=e,s=(l=reducer.getStepConfig(m,f))==null?void 0:l.tool,v=ToolType.EToolName.LLM===s,x=ToolUtils.isAudioTool(s);return v?React__default.default.createElement(ViewportProviderLayout,__spreadValues({},e),React__default.default.createElement(index,__spreadValues({},e))):x?React__default.default.createElement(ViewportProviderLayout,__spreadValues({},e),React__default.default.createElement(index$1,__spreadValues({},e))):React__default.default.createElement(ViewportProviderLayout,__spreadValues({},e),React__default.default.createElement(es.Layout,{className:dom.getClassName("layout","container")},e==null?void 0:e.leftSider,React__default.default.createElement(Content,{className:`${layoutCls}__content`},React__default.default.createElement(AnnotatedArea,__spreadValues({},e)),React__default.default.createElement(index$2,null)),React__default.default.createElement(Sider,{className:`${layoutCls}__side`,width:(r=d!=null?d:c)!=null?r:240,style:(o=e.style)==null?void 0:o.sider},React__default.default.createElement(index$3.default,{sider:e==null?void 0:e.sider,enableColorPicker:e==null?void 0:e.enableColorPicker,setSiderWidth:u,propsSiderWidth:(i=(n=e.style)==null?void 0:n.sider)==null?void 0:i.width}))))},mapStateToProps=({annotation:e})=>{var t,a,l;const{imgList:r,loading:o}=e,n=(t=r[e.imgIndex])!=null?t:{};return{path:(l=(a=n==null?void 0:n.path)!=null?a:n==null?void 0:n.url)!=null?l:"",loading:o}};var MainView$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(MainView);module.exports=MainView$1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var es=require("antd/es"),React=require("react"),icon_border=require("../../../../assets/toolStyle/icon_border.svg.js"),icon_borderColor=require("../../../../assets/toolStyle/icon_borderColor.svg.js"),icon_opacityStroke=require("../../../../assets/toolStyle/icon_opacityStroke.svg.js"),icon_opacityFill=require("../../../../assets/toolStyle/icon_opacityFill.svg.js"),reactRedux=require("react-redux"),actionCreators=require("../../../../store/toolStyle/actionCreators.js"),index=require("../../../../index.js"),ctx=require("../../../../store/ctx.js"),reactI18next=require("react-i18next");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const getMarks=(e,a)=>{const
|
|
1
|
+
"use strict";var es=require("antd/es"),React=require("react"),icon_border=require("../../../../assets/toolStyle/icon_border.svg.js"),icon_borderColor=require("../../../../assets/toolStyle/icon_borderColor.svg.js"),icon_opacityStroke=require("../../../../assets/toolStyle/icon_opacityStroke.svg.js"),icon_opacityFill=require("../../../../assets/toolStyle/icon_opacityFill.svg.js"),reactRedux=require("react-redux"),actionCreators=require("../../../../store/toolStyle/actionCreators.js"),index=require("../../../../index.js"),ctx=require("../../../../store/ctx.js"),reactI18next=require("react-i18next");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const getMarks=(e,a)=>{const l=[{step:1,value:"1"},{step:2,value:"2"},{step:3,value:"3"},{step:4,value:"4"},{step:5,value:"5"}],c=[{step:1,value:"Blue"},{step:3,value:"Cyan"},{step:5,value:"Green"},{step:7,value:"Yellow"},{step:9,value:"Pink"}],n=[{step:1,value:"0.2"},{step:3,value:"0.4"},{step:5,value:"0.6"},{step:7,value:"0.8"},{step:9,value:"1.0"}],i=[{step:1,value:"0"},{step:3,value:"0.2"},{step:5,value:"0.4"},{step:7,value:"0.6"},{step:9,value:"0.8"}];let r=[];const s={};switch(e){case"width":r=l;break;case"color":r=c;break;case"borderOpacity":r=n;break;case"fillOpacity":r=i;break}return r.forEach(({step:o,value:u})=>{s[o]={style:{color:"#999999",fontSize:"12px"},label:React__default.default.createElement("span",null,a(u))}}),s},getTitle=e=>{switch(e){case"width":return"BorderThickness";case"color":return"Color";case"borderOpacity":return"BorderOpacity";case"fillOpacity":return"FillOpacity";default:return""}},getImage=e=>{switch(e){case"width":return icon_border;case"color":return icon_borderColor;case"borderOpacity":return icon_opacityStroke;case"fillOpacity":return icon_opacityFill}},getDefaultValue=e=>{switch(e){case"width":return 2;case"color":return 1;case"borderOpacity":return 9;case"fillOpacity":return 9}},getStyleType=e=>["width"].includes(e),ToolStyle=e=>{const{toolStyle:a}=e,{width:l,color:c,borderOpacity:n,fillOpacity:i}=a,r={width:l,color:c,borderOpacity:n,fillOpacity:i},{t:s}=reactI18next.useTranslation(),o=e.config,u=p=>{index.store.dispatch(actionCreators.UpdateToolStyleConfig(p))};return React__default.default.createElement("div",{className:"toolStyle"},Object.entries(r).map(p=>{var d;const t=p[0];return(o==null?void 0:o.attributeConfigurable)===!0&&t==="color"?null:React__default.default.createElement("div",{id:`style-${t}`,className:"styleSlider",key:t},React__default.default.createElement("span",{className:"title"},React__default.default.createElement("img",{src:getImage(t),className:"icon"}),s(getTitle(t))),React__default.default.createElement("span",{className:"slider"},React__default.default.createElement(es.Slider,{tipFormatter:null,max:getStyleType(t)?5:10,min:getStyleType(t)?1:0,step:getStyleType(t)?1:null,value:(d=a[t])!=null?d:getDefaultValue(t),marks:getMarks(t,s),onChange:v=>u({[t]:v})})))}))},mapStateToProps=({toolStyle:e,annotation:a})=>{var l;return{toolStyle:e,config:(l=a.toolInstance)==null?void 0:l.config}};var ToolStyle$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(ToolStyle);module.exports=ToolStyle$1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _=require("lodash"),index=require("../common/index.js"),index$1=require("../line/index.js"),icon_polygonMerge_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js"),icon_polygonCut_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_polygonCut_kj.svg.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ___default=_interopDefaultLegacy(_);const audioForward=___default.default.cloneDeep(index.forward),audioBackward=___default.default.cloneDeep(index.backward),audioBackTrack=___default.default.cloneDeep(index.rewind),audioForwardTrack=___default.default.cloneDeep(index.forwardForward),audioPlaybackRate=___default.default.cloneDeep(index.speed),audioTag=___default.default.cloneDeep(index.tag),audioToggleTagMode=___default.default.cloneDeep(index.toggleTagMode),audioToggleClipMode=___default.default.cloneDeep(index.period),audioClipped=___default.default.cloneDeep(index.tag),audioClipSelected=___default.default.cloneDeep(index.clipSelected),audioPrev=___default.default.cloneDeep(index$1.preLine),audioNext=___default.default.cloneDeep(index$1.nextLine),combineAudio={name:"\u5408\u5E76\u533A\u95F4",icon:icon_polygonMerge_kj,noticeInfo:"",shortCut:["Alt","Z"]},splitAudio={name:"\u5206\u5272\u533A\u95F4",icon:icon_polygonCut_kj,noticeInfo:"",shortCut:["Alt","X"]},audioTextToolShortCurTable=[index.saveResult,audioToggleTagMode,audioToggleClipMode,audioClipped,audioClipSelected,audioTag,index.attributeLock,index.attributeClickLock,index.playPause,audioPlaybackRate,audioForwardTrack,audioBackTrack,index.setValid,index.fullScreen,audioBackward,audioForward,index.deleteRemark,index.preRemark,index.nextRemark,audioPrev,audioNext,combineAudio,splitAudio];exports.combineAudio=combineAudio,exports.default=audioTextToolShortCurTable,exports.splitAudio=splitAudio;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var icon_cencel_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js"),icon_reform_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js"),icon_loupe_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js"),icon_mouse_middle_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js"),icon_fullView_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js"),icon_reload_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js"),setValid$1=require("../../../../../../assets/annotation/toolHotKeyIcon/setValid.svg.js"),icon_last_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js"),icon_next_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js"),icon_move_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js"),icon_mouse_right_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js"),icon_mouse_left_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js"),icon_tab_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js"),icon_alttab_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js"),icon_save_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js"),icon_lineSpecial_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js"),icon_noDisplay=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js"),icon_playPause=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_playPause.svg.js"),icon_forward_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js"),icon_back_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js"),icon_speed_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js");const revoke={name:"Undo",icon:icon_cencel_kj,shortCut:["Ctrl","Z"]},restore={name:"Redo",icon:icon_reform_kj,shortCut:["Ctrl","Shift","Z"]},scale={name:"Scale",icon:icon_loupe_kj,shortCut:[icon_mouse_middle_kj]},fullScreen={name:"Fullscreen",icon:icon_fullView_kj,shortCut:["F11"]},rotate={name:"Rotate",icon:icon_reload_kj,shortCut:["R"],noticeInfo:"ToOriginalStep"},setValid={name:"ToggleEffectiveness",icon:setValid$1,shortCut:["Y"]},backward={name:"PreviousImage",icon:icon_last_kj,shortCut:["A"]},forward={name:"NextImage",icon:icon_next_kj,shortCut:["D"]},dargWithRightClick={name:"Drag",icon:icon_move_kj,shortCut:[icon_mouse_right_kj],noticeInfo:"Press"},dargWithLeftClick={name:"Drag",icon:icon_move_kj,shortCut:["Space",icon_mouse_left_kj]},tabChangeSelected={name:"ToggleSelected",icon:icon_tab_kj,shortCut:["Tab"]},tabReverseChangeSelected={name:"ToggleSelectedReverse",icon:icon_alttab_kj,shortCut:["Shift","Tab"]},hidden={name:"HideGraphics",icon:icon_noDisplay,noticeInfo:"",shortCut:["Z"]},changeSpecialLine={name:"ToggleLineParticularity",icon:icon_lineSpecial_kj,noticeInfo:"ToSide",shortCut:["Shift",icon_mouse_left_kj]},saveResult={name:"Save",icon:icon_save_kj,shortCut:["Ctrl","S"]},speed={name:"Speed",icon:icon_speed_kj,shortCut:["↑","↓"],shortCutUseHtml:!0},playPause={name:"PlayPause",icon:icon_playPause,shortCut:["Space"]},forwardForward={name:"FastForward",icon:icon_forward_kj,shortCut:["→"],shortCutUseHtml:!0},rewind={name:"Rewind",icon:icon_back_kj,shortCut:["←"],shortCutUseHtml:!0};exports.backward=backward,exports.changeSpecialLine=changeSpecialLine,exports.dargWithLeftClick=dargWithLeftClick,exports.dargWithRightClick=dargWithRightClick,exports.forward=forward,exports.forwardForward=forwardForward,exports.fullScreen=fullScreen,exports.hidden=hidden,exports.playPause=playPause,exports.restore=restore,exports.revoke=revoke,exports.rewind=rewind,exports.rotate=rotate,exports.saveResult=saveResult,exports.scale=scale,exports.setValid=setValid,exports.speed=speed,exports.tabChangeSelected=tabChangeSelected,exports.tabReverseChangeSelected=tabReverseChangeSelected;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var icon_cencel_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js"),icon_reform_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js"),icon_loupe_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js"),icon_mouse_middle_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js"),icon_fullView_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js"),icon_reload_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js"),setValid$1=require("../../../../../../assets/annotation/toolHotKeyIcon/setValid.svg.js"),icon_last_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js"),icon_next_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js"),icon_move_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js"),icon_mouse_right_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js"),icon_mouse_left_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js"),icon_tab_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js"),icon_alttab_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js"),icon_save_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js"),icon_lineSpecial_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js"),icon_noDisplay=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js"),icon_eyeLock_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_eyeLock_kj.svg.js"),icon_playPause=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_playPause.svg.js"),icon_forward_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js"),icon_back_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js"),icon_speed_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js"),tag$1=require("../../../../../../assets/annotation/audio/tag.svg.js"),icon_tag_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js"),icon_clip=require("../../../../../../assets/annotation/video/icon_clip.svg.js"),icon_frameActive_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js"),deleteRemark$1=require("../../../../../../assets/annotation/toolHotKeyIcon/deleteRemark.svg.js"),preRemark$1=require("../../../../../../assets/annotation/toolHotKeyIcon/preRemark.svg.js"),nextRemark$1=require("../../../../../../assets/annotation/toolHotKeyIcon/nextRemark.svg.js");const revoke={name:"Undo",icon:icon_cencel_kj,shortCut:["Ctrl","Z"]},restore={name:"Redo",icon:icon_reform_kj,shortCut:["Ctrl","Shift","Z"]},scale={name:"Scale",icon:icon_loupe_kj,shortCut:[icon_mouse_middle_kj]},fullScreen={name:"Fullscreen",icon:icon_fullView_kj,shortCut:["F11"]},rotate={name:"Rotate",icon:icon_reload_kj,shortCut:["R"],noticeInfo:"ToOriginalStep"},setValid={name:"ToggleEffectiveness",icon:setValid$1,shortCut:["Y"]},backward={name:"PreviousImage",icon:icon_last_kj,shortCut:["A"]},forward={name:"NextImage",icon:icon_next_kj,shortCut:["D"]},dargWithRightClick={name:"Drag",icon:icon_move_kj,shortCut:[icon_mouse_right_kj],noticeInfo:"Press"},dargWithLeftClick={name:"Drag",icon:icon_move_kj,shortCut:["Space",icon_mouse_left_kj]},attributeLock={name:"SpecifiedAttributesOnly",icon:icon_eyeLock_kj,shortCut:["Shift","Number"]},attributeClickLock={name:"SpecifiedAttributesOnly",icon:icon_eyeLock_kj,shortCut:["Shift",icon_mouse_left_kj]},tabChangeSelected={name:"ToggleSelected",icon:icon_tab_kj,shortCut:["Tab"]},tabReverseChangeSelected={name:"ToggleSelectedReverse",icon:icon_alttab_kj,shortCut:["Shift","Tab"]},hidden={name:"HideGraphics",icon:icon_noDisplay,noticeInfo:"",shortCut:["Z"]},changeSpecialLine={name:"ToggleLineParticularity",icon:icon_lineSpecial_kj,noticeInfo:"ToSide",shortCut:["Shift",icon_mouse_left_kj]},saveResult={name:"Save",icon:icon_save_kj,shortCut:["Ctrl","S"]},speed={name:"Speed",icon:icon_speed_kj,shortCut:["↑","↓"],shortCutUseHtml:!0},playPause={name:"PlayPause",icon:icon_playPause,shortCut:["Space"]},forwardForward={name:"FastForward",icon:icon_forward_kj,shortCut:["→"],shortCutUseHtml:!0},rewind={name:"Rewind",icon:icon_back_kj,shortCut:["←"],shortCutUseHtml:!0},toggleTagMode={name:"\u5207\u6362\u6807\u7B7E\u6A21\u5F0F",icon:tag$1,shortCut:["L"]},tag={name:"\u6253\u6807\u7B7E",icon:icon_tag_kj,shortCut:[icon_mouse_left_kj],noticeInfo:"\u5DE6\u51FB"},period={name:"\u622A\u53D6\u7247\u6BB5",icon:icon_clip,noticeInfo:"\u4E24\u6B21",shortCut:["X"]},clipSelected={name:"\u622A\u53D6\u9009\u4E2D",icon:icon_frameActive_kj,shortCut:[icon_mouse_right_kj],noticeInfo:"\u53F3\u51FB"},deleteRemark={name:"\u5220\u9664\u6279\u6CE8",icon:deleteRemark$1,shortCut:["Delete"],noticeInfo:"\u9009\u4E2D\u65F6"},nextRemark={name:"\u4E0B\u4E00\u6761\u6279\u6CE8",icon:nextRemark$1,shortCut:["Tab"]},preRemark={name:"\u4E0A\u4E00\u6761\u6279\u6CE8",icon:preRemark$1,shortCut:["Shift","Tab"]};exports.attributeClickLock=attributeClickLock,exports.attributeLock=attributeLock,exports.backward=backward,exports.changeSpecialLine=changeSpecialLine,exports.clipSelected=clipSelected,exports.dargWithLeftClick=dargWithLeftClick,exports.dargWithRightClick=dargWithRightClick,exports.deleteRemark=deleteRemark,exports.forward=forward,exports.forwardForward=forwardForward,exports.fullScreen=fullScreen,exports.hidden=hidden,exports.nextRemark=nextRemark,exports.period=period,exports.playPause=playPause,exports.preRemark=preRemark,exports.restore=restore,exports.revoke=revoke,exports.rewind=rewind,exports.rotate=rotate,exports.saveResult=saveResult,exports.scale=scale,exports.setValid=setValid,exports.speed=speed,exports.tabChangeSelected=tabChangeSelected,exports.tabReverseChangeSelected=tabReverseChangeSelected,exports.tag=tag,exports.toggleTagMode=toggleTagMode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),icon_kj1=require("../../../../../assets/annotation/toolHotKeyIcon/icon_kj1.svg.js"),icon_kj_h=require("../../../../../assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js"),ToolType=require("../../../../../data/enums/ToolType.js"),index=require("./rectToolShortCutTable/index.js"),index$2=require("./point/index.js"),index$3=require("./polygon/index.js"),index$4=require("./line/index.js"),index$1=require("./tag/index.js"),index$5=require("./text/index.js"),index$6=require("./videoTag/index.js"),index$7=require("./pointCloud/index.js"),index$8=require("./scribble/index.js"),index$9=require("./cuboid/index.js"),index$a=require("./LLM/index.js"),index$b=require("../../index.js"),reactI18next=require("react-i18next"),lbAnnotation=require("@labelbee/lb-annotation"),PointCloudContext=require("../../../../../components/pointCloudView/PointCloudContext.js"),FooterPopover=require("../../FooterPopover.js"),lbUtils=require("@labelbee/lb-utils");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),icon_kj1=require("../../../../../assets/annotation/toolHotKeyIcon/icon_kj1.svg.js"),icon_kj_h=require("../../../../../assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js"),ToolType=require("../../../../../data/enums/ToolType.js"),index=require("./rectToolShortCutTable/index.js"),index$2=require("./point/index.js"),index$3=require("./polygon/index.js"),index$4=require("./line/index.js"),index$1=require("./tag/index.js"),index$5=require("./text/index.js"),index$6=require("./videoTag/index.js"),index$7=require("./pointCloud/index.js"),index$8=require("./scribble/index.js"),index$9=require("./cuboid/index.js"),index$a=require("./LLM/index.js"),index$b=require("./audioText/index.js"),index$c=require("../../index.js"),reactI18next=require("react-i18next"),lbAnnotation=require("@labelbee/lb-annotation"),PointCloudContext=require("../../../../../components/pointCloudView/PointCloudContext.js"),FooterPopover=require("../../FooterPopover.js"),lbUtils=require("@labelbee/lb-utils");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,a,t)=>a in e?__defProp(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,__spreadValues=(e,a)=>{for(var t in a||(a={}))__hasOwnProp.call(a,t)&&__defNormalProp(e,t,a[t]);if(__getOwnPropSymbols)for(var t of __getOwnPropSymbols(a))__propIsEnum.call(a,t)&&__defNormalProp(e,t,a[t]);return e};const{EVideoToolName,EPointCloudName}=lbAnnotation.cTool,shortCutTable={[ToolType.EToolName.Rect]:index.default,[ToolType.EToolName.Tag]:index$1.default,[ToolType.EToolName.Point]:index$2.default,[ToolType.EToolName.Polygon]:index$3.default,[ToolType.EToolName.Line]:index$4.default,[ToolType.EToolName.Text]:index$5,[EVideoToolName.VideoTagTool]:index$6,[EPointCloudName.PointCloud]:index$7.default,[EPointCloudName.PointCloud+"_POLYGON"]:index$7.pointCloudShortCutTable_POLYGON,[EPointCloudName.PointCloud+"_SEGMENT"]:index$7.pointCloudShortCutTable_SEGMENT,[ToolType.EToolName.ScribbleTool]:index$8,[ToolType.EToolName.Cuboid]:index$9,[ToolType.EToolName.LLM]:index$a.default,[lbAnnotation.EAudioToolName.AudioTextTool]:index$b.default},ToolHotKeyIcon=({icon:e})=>typeof e=="string"?React__default.default.createElement("img",{width:16,height:16,src:e}):e||null,ToolHotKeyCom=({title:e,style:a,shortCutList:t})=>{const{t:i}=reactI18next.useTranslation(),d={width:320,display:"flex",justifyContent:"space-between",margin:16},l={display:"block",padding:"0 3px",minWidth:"20px",marginRight:"3px",border:"1px solid rgba(204,204,204,1)",verticalAlign:"middle",fontSize:"12px",textAlign:"center"},c=(n,s)=>React__default.default.createElement("div",{style:d,key:s},React__default.default.createElement("span",{style:{display:"flex",alignItems:"center"}},React__default.default.createElement(ToolHotKeyIcon,{icon:n.icon}),React__default.default.createElement("span",{style:{marginLeft:n.icon?16:0}},i(n.name))),React__default.default.createElement("span",{style:{display:"flex",alignItems:"center"}},n.noticeInfo&&React__default.default.createElement("span",{style:{marginRight:"5px",color:"#CCCCCC"}},i(n.noticeInfo)),m(n.shortCut,n.shortCutUseHtml,n.linkSymbol))),m=(n,s=!1,x="+")=>{if(!n)return null;const g=n.map((r,o)=>{var p,f;const u={display:"flex",alignItems:"center"};return s?React__default.default.createElement("span",{key:o,style:u},React__default.default.createElement("span",{style:l,dangerouslySetInnerHTML:{__html:r}})):o<n.length-1?typeof r=="number"?React__default.default.createElement("span",{key:o,style:u},React__default.default.createElement("span",{style:l},r),React__default.default.createElement("span",{style:{marginRight:"3px"}},"~")):((p=r==null?void 0:r.startsWith)==null?void 0:p.call(r,"data"))?React__default.default.createElement("span",{key:o,style:u},React__default.default.createElement("span",{className:"shortCutButton",style:{marginRight:"3px"}},React__default.default.createElement("img",{width:16,height:23,src:r})),React__default.default.createElement("span",{style:{marginRight:"3px"}},"+")):React__default.default.createElement("span",{key:o,style:u},React__default.default.createElement("span",{style:l},r),React__default.default.createElement("span",{style:{marginRight:"3px"}},x)):typeof r=="number"?React__default.default.createElement("span",{key:o,style:u},React__default.default.createElement("span",{style:l},r)):((f=r==null?void 0:r.startsWith)==null?void 0:f.call(r,"data"))?React__default.default.createElement("span",{className:"shortCutButton",key:o,style:{marginRight:"3px"}},React__default.default.createElement("img",{width:16,height:23,src:r})):React__default.default.createElement("span",{style:l,key:o},r)});return React__default.default.createElement("div",{style:{display:"flex",justifyContent:"space-around",alignItems:"center"}},g)},y=React__default.default.createElement("div",{className:`${index$c.footerCls}__hotkey-content`},t==null?void 0:t.map((n,s)=>c(n,s))),E=a||{};return React__default.default.createElement(FooterPopover,{hoverIcon:icon_kj_h,icon:icon_kj1,title:i("Hotkeys"),content:y,containerStyle:E})},ToolHotKey=({style:e,title:a,toolName:t})=>{const{pointCloudPattern:i,globalPattern:d}=React.useContext(PointCloudContext.PointCloudContext);if(!t||!shortCutTable[t])return null;let l=t;switch(d){case lbUtils.EPointCloudPattern.Detection:switch(i){case ToolType.EToolName.Polygon:l+="_POLYGON";break;case ToolType.EToolName.Line:l=ToolType.EToolName.Line;break;case ToolType.EToolName.Point:l=ToolType.EToolName.Point;break}break;case lbUtils.EPointCloudPattern.Segmentation:l=EPointCloudName.PointCloud+"_SEGMENT";break}const c={style:e,title:a,shortCutList:shortCutTable[l]};return React__default.default.createElement(ToolHotKeyCom,__spreadValues({},c))};exports.ToolHotKeyCom=ToolHotKeyCom,exports.default=ToolHotKey,exports.shortCutTable=shortCutTable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var icon_line_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js"),icon_mouse_left_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js"),icon_lineNull_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js"),icon_straightLine_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js"),icon_lineActive_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js"),icon_mouse_right_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js"),icon_lineChange_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js"),icon_del_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js"),icon_lineCont_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js"),icon_lineInsert_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js"),icon_lineDel_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js"),icon_unGrip_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js"),index=require("../common/index.js");const line={name:"AnnotateLine",icon:icon_line_kj,shortCut:[icon_mouse_left_kj]},invalidLine={name:"AnnotateInvalidLine",icon:icon_lineNull_kj,shortCut:["Ctrl",icon_mouse_left_kj]},horizontalLine={name:"HorizontalOrVertical",icon:icon_straightLine_kj,shortCut:["Shift",icon_mouse_left_kj]},selectLine={name:"SelectLine",icon:icon_lineActive_kj,shortCut:[icon_mouse_right_kj]},changeLineAttribute={name:"ToggleLineEffectiveness",icon:icon_lineChange_kj,shortCut:["F"]},deleteLine={name:"DeleteLine",icon:icon_del_kj,noticeInfo:"SelectAndDoubleClick",shortCut:[icon_mouse_right_kj]},keepLine={name:"ContinueToLabel",icon:icon_lineCont_kj,noticeInfo:"Select",shortCut:["Space"]},insertPoint={name:"InsertPoint",icon:icon_lineInsert_kj,noticeInfo:"ClickOnLine",shortCut:[icon_mouse_left_kj]},deletePoint={name:"DeletePoint",icon:icon_lineDel_kj,noticeInfo:"DblClickOnPoint",shortCut:[icon_mouse_right_kj]},suspendAbsorption={name:"StopAdsorption",icon:icon_unGrip_kj,noticeInfo:"Press",shortCut:["Alt"]},lineToolShortCutTable=[line,invalidLine,horizontalLine,selectLine,changeLineAttribute,deleteLine,keepLine,index.changeSpecialLine,insertPoint,deletePoint,suspendAbsorption,index.revoke,index.restore,index.rotate,index.scale,index.backward,index.forward,index.setValid,index.dargWithRightClick,index.dargWithLeftClick,index.hidden,index.tabChangeSelected,index.tabReverseChangeSelected];exports.changeLineAttribute=changeLineAttribute,exports.default=lineToolShortCutTable,exports.deleteLine=deleteLine,exports.deletePoint=deletePoint,exports.horizontalLine=horizontalLine,exports.insertPoint=insertPoint,exports.invalidLine=invalidLine,exports.keepLine=keepLine,exports.line=line,exports.selectLine=selectLine,exports.suspendAbsorption=suspendAbsorption;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var icon_line_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js"),icon_mouse_left_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js"),icon_lineNull_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js"),icon_straightLine_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js"),icon_lineActive_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js"),icon_mouse_right_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js"),icon_lineChange_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js"),icon_del_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js"),icon_lineCont_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js"),icon_lineInsert_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js"),icon_lineDel_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js"),icon_unGrip_kj=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js"),icon_up=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_up.svg.js"),icon_down=require("../../../../../../assets/annotation/toolHotKeyIcon/icon_down.svg.js"),index=require("../common/index.js");const line={name:"AnnotateLine",icon:icon_line_kj,shortCut:[icon_mouse_left_kj]},invalidLine={name:"AnnotateInvalidLine",icon:icon_lineNull_kj,shortCut:["Ctrl",icon_mouse_left_kj]},horizontalLine={name:"HorizontalOrVertical",icon:icon_straightLine_kj,shortCut:["Shift",icon_mouse_left_kj]},selectLine={name:"SelectLine",icon:icon_lineActive_kj,shortCut:[icon_mouse_right_kj]},changeLineAttribute={name:"ToggleLineEffectiveness",icon:icon_lineChange_kj,shortCut:["F"]},deleteLine={name:"DeleteLine",icon:icon_del_kj,noticeInfo:"SelectAndDoubleClick",shortCut:[icon_mouse_right_kj]},keepLine={name:"ContinueToLabel",icon:icon_lineCont_kj,noticeInfo:"Select",shortCut:["Space"]},insertPoint={name:"InsertPoint",icon:icon_lineInsert_kj,noticeInfo:"ClickOnLine",shortCut:[icon_mouse_left_kj]},deletePoint={name:"DeletePoint",icon:icon_lineDel_kj,noticeInfo:"DblClickOnPoint",shortCut:[icon_mouse_right_kj]},suspendAbsorption={name:"StopAdsorption",icon:icon_unGrip_kj,noticeInfo:"Press",shortCut:["Alt"]},preLine={name:"PreviousLine",icon:icon_up,shortCut:["W"]},nextLine={name:"NextLine",icon:icon_down,shortCut:["S"]},lineToolShortCutTable=[line,invalidLine,horizontalLine,selectLine,changeLineAttribute,deleteLine,keepLine,index.changeSpecialLine,insertPoint,deletePoint,suspendAbsorption,index.revoke,index.restore,index.rotate,index.scale,index.backward,index.forward,index.setValid,index.dargWithRightClick,index.dargWithLeftClick,index.hidden,index.tabChangeSelected,index.tabReverseChangeSelected];exports.changeLineAttribute=changeLineAttribute,exports.default=lineToolShortCutTable,exports.deleteLine=deleteLine,exports.deletePoint=deletePoint,exports.horizontalLine=horizontalLine,exports.insertPoint=insertPoint,exports.invalidLine=invalidLine,exports.keepLine=keepLine,exports.line=line,exports.nextLine=nextLine,exports.preLine=preLine,exports.selectLine=selectLine,exports.suspendAbsorption=suspendAbsorption;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var React=require("react"),ctx=require("../../../../store/ctx.js"),icon_r=require("../../../../assets/annotation/common/icon_r.svg.js"),icon_next=require("../../../../assets/annotation/common/icon_next.svg.js"),icon_back=require("../../../../assets/annotation/common/icon_back.svg.js"),icon_rA=require("../../../../assets/annotation/common/icon_rA.svg.js"),icon_nextA=require("../../../../assets/annotation/common/icon_nextA.svg.js"),icon_backA=require("../../../../assets/annotation/common/icon_backA.svg.js"),icon_save=require("../../../../assets/annotation/common/icon_save.svg.js"),icon_saveA=require("../../../../assets/annotation/common/icon_saveA.svg.js"),index=require("../../../../constant/index.js"),ToolType=require("../../../../data/enums/ToolType.js"),actionCreators=require("../../../../store/annotation/actionCreators.js"),reactI18next=require("react-i18next"),lbAnnotation=require("@labelbee/lb-annotation"),PointCloudContext=require("../../../../components/pointCloudView/PointCloudContext.js"),lbUtils=require("@labelbee/lb-utils");function _interopDefaultLegacy(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var React__default=_interopDefaultLegacy(React);const{EVideoToolName,EPointCloudName}=lbAnnotation.cTool;var EColor;(function(o){o.Hover="#666fff",o.Normal="#999999"})(EColor||(EColor={}));const HeaderOption=o=>{const[
|
|
1
|
+
"use strict";var React=require("react"),ctx=require("../../../../store/ctx.js"),icon_r=require("../../../../assets/annotation/common/icon_r.svg.js"),icon_next=require("../../../../assets/annotation/common/icon_next.svg.js"),icon_back=require("../../../../assets/annotation/common/icon_back.svg.js"),icon_rA=require("../../../../assets/annotation/common/icon_rA.svg.js"),icon_nextA=require("../../../../assets/annotation/common/icon_nextA.svg.js"),icon_backA=require("../../../../assets/annotation/common/icon_backA.svg.js"),icon_save=require("../../../../assets/annotation/common/icon_save.svg.js"),icon_saveA=require("../../../../assets/annotation/common/icon_saveA.svg.js"),index=require("../../../../constant/index.js"),ToolType=require("../../../../data/enums/ToolType.js"),actionCreators=require("../../../../store/annotation/actionCreators.js"),reactI18next=require("react-i18next"),lbAnnotation=require("@labelbee/lb-annotation"),PointCloudContext=require("../../../../components/pointCloudView/PointCloudContext.js"),lbUtils=require("@labelbee/lb-utils");function _interopDefaultLegacy(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var React__default=_interopDefaultLegacy(React);const{EVideoToolName,EPointCloudName}=lbAnnotation.cTool;var EColor;(function(o){o.Hover="#666fff",o.Normal="#999999"})(EColor||(EColor={}));const HeaderOption=o=>{const[i,l]=React.useState(""),{stepInfo:t}=o,u=ctx.useDispatch(),{annotation:{toolInstance:n,onSave:v}}=ctx.useSelector(e=>({annotation:e.annotation,imgAttribute:e.imgAttribute})),{globalPattern:m}=React.useContext(PointCloudContext.PointCloudContext),{t:d}=reactI18next.useTranslation(),r=[ToolType.EToolName.Tag,EVideoToolName.VideoTagTool].includes(t==null?void 0:t.tool),c=[EVideoToolName.VideoTagTool].includes(t==null?void 0:t.tool),g=[EPointCloudName.PointCloud].includes(t==null?void 0:t.tool),S=[lbAnnotation.EAudioToolName.AudioTextTool].includes(t==null?void 0:t.tool),s=o.isBegin||r,p=()=>{t.dataSourceStep!==0&&t.dataSourceStep!==void 0||n==null||n.updateRotate()},x=React.useCallback(()=>{n==null||n.undo()},[n]),_=React.useCallback(()=>{n==null||n.redo()},[n]);let a=[{toolName:"save",title:"Save",show:!!v,commonSvg:icon_save,selectedSvg:icon_saveA,click:()=>{u(actionCreators.ChangeSave)},style:{fontSize:"12px",color:!s&&i==="save"?EColor.Hover:EColor.Normal}},{toolName:"revocation",title:"Undo",show:!0,commonSvg:icon_back,selectedSvg:icon_backA,click:()=>{r||x()},style:{opacity:s===!0?.4:1,fontSize:"12px",color:!s&&i==="revocation"?EColor.Hover:EColor.Normal}},{toolName:"restore",title:"Redo",show:!0,commonSvg:icon_next,selectedSvg:icon_nextA,click:()=>{r||_()},style:{opacity:s===!0?.4:1,fontSize:"12px",color:!s&&i==="restore"?EColor.Hover:EColor.Normal}},{toolName:"rotate",title:"Rotate",show:!0,selectedSvg:icon_rA,commonSvg:icon_r,click:()=>{c||p()},style:{opacity:c===!0?.4:1,fontSize:"12px",color:!s&&i==="rotate"?EColor.Hover:EColor.Normal}}];if(g)switch(m){case lbUtils.EPointCloudPattern.Segmentation:a=a.slice(0,1);break;case lbUtils.EPointCloudPattern.Detection:a=a.slice(0,3);break}return S&&(a=a.slice(0,1)),React__default.default.createElement("div",{className:`${index.prefix}-header__hotKey`},a.map(e=>e.show&&React__default.default.createElement("div",{key:e.toolName,className:"item",onMouseEnter:()=>l(e.toolName),onMouseLeave:()=>l("")},React__default.default.createElement("a",{className:"item",onClick:e.click},React__default.default.createElement("img",{className:"singleTool",src:i===e.toolName?e.selectedSvg:e.commonSvg,style:e.style}),React__default.default.createElement("div",{style:e.style},d(e.title))))))};module.exports=HeaderOption;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.6072 15.1277C10.6072 13.5502 11.8837 12.2705 13.4572 12.2705C15.0306 12.2705 16.3053 13.5502 16.3071 15.1258C16.3071 16.7033 15.0306 17.983 13.4572 17.983C11.8837 17.983 10.6072 16.7051 10.6072 15.1277ZM12.0684 15.1513C12.0684 15.9609 12.7239 16.6161 13.5296 16.6161C14.3353 16.6161 14.9908 15.9609 14.9908 15.1513C14.9908 14.3435 14.3372 13.6864 13.5296 13.6864C12.722 13.6864 12.0684 14.3435 12.0684 15.1513Z' fill='%23666'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.88892 15.1277C3.88892 13.5502 5.16543 12.2705 6.73889 12.2705C8.31237 12.2705 9.58707 13.5502 9.58888 15.1258C9.58888 16.7033 8.31235 17.983 6.73889 17.983C5.16543 17.983 3.88892 16.7051 3.88892 15.1277ZM5.35013 15.1513C5.35013 15.9609 6.00559 16.6161 6.81133 16.6161C7.61708 16.6161 8.27253 15.9609 8.27253 15.1513C8.27253 14.3435 7.61889 13.6864 6.81133 13.6864C6.00378 13.6864 5.35013 14.3435 5.35013 15.1513Z' fill='%23666'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.2093 5.97008C16.2093 5.97008 17.1835 4.16393 15.6245 2.15993L10.1201 9.29191L4.32235 1.86768C4.32235 1.86768 2.52075 4.11493 4.22639 6.50738C5.93203 8.89984 10.1201 13.7356 10.1201 13.7356L16.2093 5.97008ZM10.8516 11.3902C10.8516 11.795 10.5239 12.1236 10.1201 12.1236C9.71629 12.1236 9.38856 11.795 9.38856 11.3902C9.38856 10.9854 9.7163 10.6569 10.1201 10.6569C10.5239 10.6569 10.8516 10.9854 10.8516 11.3902Z' fill='%23666'/%3e%3c/svg%3e";export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.6072 15.1277C10.6072 13.5502 11.8837 12.2705 13.4572 12.2705C15.0306 12.2705 16.3053 13.5502 16.3071 15.1258C16.3071 16.7033 15.0306 17.983 13.4572 17.983C11.8837 17.983 10.6072 16.7051 10.6072 15.1277ZM12.0684 15.1513C12.0684 15.9609 12.7239 16.6161 13.5296 16.6161C14.3353 16.6161 14.9908 15.9609 14.9908 15.1513C14.9908 14.3435 14.3372 13.6864 13.5296 13.6864C12.722 13.6864 12.0684 14.3435 12.0684 15.1513Z' fill='%23666FFF'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.88892 15.1277C3.88892 13.5502 5.16543 12.2705 6.73889 12.2705C8.31237 12.2705 9.58707 13.5502 9.58888 15.1258C9.58888 16.7033 8.31235 17.983 6.73889 17.983C5.16543 17.983 3.88892 16.7051 3.88892 15.1277ZM5.35013 15.1513C5.35013 15.9609 6.00559 16.6161 6.81133 16.6161C7.61708 16.6161 8.27253 15.9609 8.27253 15.1513C8.27253 14.3435 7.61889 13.6864 6.81133 13.6864C6.00378 13.6864 5.35013 14.3435 5.35013 15.1513Z' fill='%23666FFF'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.2093 5.97008C16.2093 5.97008 17.1835 4.16393 15.6245 2.15993L10.1201 9.29191L4.32235 1.86768C4.32235 1.86768 2.52075 4.11493 4.22639 6.50738C5.93203 8.89984 10.1201 13.7356 10.1201 13.7356L16.2093 5.97008ZM10.8516 11.3902C10.8516 11.795 10.5239 12.1236 10.1201 12.1236C9.71629 12.1236 9.38856 11.795 9.38856 11.3902C9.38856 10.9854 9.7163 10.6569 10.1201 10.6569C10.5239 10.6569 10.8516 10.9854 10.8516 11.3902Z' fill='%23666FFF'/%3e%3c/svg%3e";export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e="data:image/svg+xml,%3csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.36426 9.0766C6.36426 8.13014 7.13017 7.3623 8.07424 7.3623C9.01833 7.3623 9.78315 8.13014 9.78424 9.07551C9.78424 10.022 9.01832 10.7898 8.07424 10.7898C7.13017 10.7898 6.36426 10.023 6.36426 9.0766ZM7.24099 9.09076C7.24099 9.57651 7.63427 9.96968 8.11771 9.96968C8.60116 9.96968 8.99443 9.57651 8.99443 9.09076C8.99443 8.6061 8.60225 8.21183 8.11771 8.21183C7.63318 8.21183 7.24099 8.60609 7.24099 9.09076Z' fill='%23666FFF'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.33337 9.0766C2.33337 8.13014 3.09928 7.3623 4.04336 7.3623C4.98744 7.3623 5.75226 8.13014 5.75335 9.07551C5.75335 10.022 4.98744 10.7898 4.04336 10.7898C3.09928 10.7898 2.33337 10.023 2.33337 9.0766ZM3.2101 9.09076C3.2101 9.57651 3.60338 9.96968 4.08682 9.96968C4.57027 9.96968 4.96354 9.57651 4.96354 9.09076C4.96354 8.6061 4.57136 8.21183 4.08682 8.21183C3.60229 8.21183 3.2101 8.60609 3.2101 9.09076Z' fill='%23666FFF'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.72559 3.58156C9.72559 3.58156 10.3101 2.49787 9.37469 1.29547L6.07205 5.57466L2.59341 1.12012C2.59341 1.12012 1.51245 2.46847 2.53583 3.90394C3.55922 5.33941 6.07205 8.24086 6.07205 8.24086L9.72559 3.58156ZM6.51095 6.83365C6.51095 7.07653 6.31431 7.27366 6.07205 7.27366C5.82977 7.27366 5.63314 7.07652 5.63314 6.83365C5.63314 6.59077 5.82978 6.39364 6.07205 6.39364C6.31432 6.39364 6.51095 6.59077 6.51095 6.83365Z' fill='%23666FFF'/%3e%3c/svg%3e";export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e="data:image/svg+xml,%3csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.36426 9.07659C6.36426 8.13014 7.13017 7.3623 8.07424 7.3623C9.01833 7.3623 9.78315 8.13014 9.78424 9.07551C9.78424 10.022 9.01832 10.7898 8.07424 10.7898C7.13017 10.7898 6.36426 10.023 6.36426 9.07659ZM7.24099 9.09076C7.24099 9.57651 7.63427 9.96968 8.11771 9.96968C8.60116 9.96968 8.99443 9.57651 8.99443 9.09076C8.99443 8.6061 8.60224 8.21183 8.11771 8.21183C7.63318 8.21183 7.24099 8.60609 7.24099 9.09076Z' fill='%23666666'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.33337 9.07659C2.33337 8.13014 3.09928 7.3623 4.04336 7.3623C4.98744 7.3623 5.75226 8.13014 5.75335 9.07551C5.75335 10.022 4.98744 10.7898 4.04336 10.7898C3.09928 10.7898 2.33337 10.023 2.33337 9.07659ZM3.2101 9.09076C3.2101 9.57651 3.60338 9.96968 4.08682 9.96968C4.57027 9.96968 4.96354 9.57651 4.96354 9.09076C4.96354 8.6061 4.57136 8.21183 4.08682 8.21183C3.60229 8.21183 3.2101 8.60609 3.2101 9.09076Z' fill='%23666666'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.72559 3.58156C9.72559 3.58156 10.3101 2.49787 9.37469 1.29547L6.07205 5.57466L2.59341 1.12012C2.59341 1.12012 1.51245 2.46847 2.53583 3.90394C3.55922 5.33941 6.07205 8.24086 6.07205 8.24086L9.72559 3.58156ZM6.51095 6.83365C6.51095 7.07653 6.31431 7.27366 6.07205 7.27366C5.82977 7.27366 5.63314 7.07652 5.63314 6.83365C5.63314 6.59077 5.82978 6.39364 6.07205 6.39364C6.31432 6.39364 6.51095 6.59077 6.51095 6.83365Z' fill='%23666666'/%3e%3c/svg%3e";export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.5 4H11.5V2.75C11.5 2.19844 11.0516 1.75 10.5 1.75H5.5C4.94844 1.75 4.5 2.19844 4.5 2.75V4H2.5C2.22344 4 2 4.22344 2 4.5V5C2 5.06875 2.05625 5.125 2.125 5.125H3.06875L3.45469 13.2969C3.47969 13.8297 3.92031 14.25 4.45312 14.25H11.5469C12.0813 14.25 12.5203 13.8313 12.5453 13.2969L12.9312 5.125H13.875C13.9438 5.125 14 5.06875 14 5V4.5C14 4.22344 13.7766 4 13.5 4ZM10.375 4H5.625V2.875H10.375V4Z' fill='black' fill-opacity='0.25'/%3e%3c/svg%3e";export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var C="data:image/svg+xml,%3csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0.59375 5.46875H1.33906C1.39063 5.46875 1.43281 5.42657 1.43281 5.375V2.38321H7.62734V3.23399C7.62734 3.25625 7.63438 3.27735 7.64844 3.29492C7.65633 3.30505 7.66615 3.31351 7.67733 3.31981C7.68851 3.32612 7.70083 3.33016 7.71358 3.33168C7.72632 3.33321 7.73924 3.33219 7.7516 3.3287C7.76395 3.32521 7.77549 3.3193 7.78555 3.31133L9.46484 1.99297C9.51523 1.93438 9.50703 1.87227 9.46484 1.83828L7.78555 0.521097C7.76826 0.507274 7.74674 0.499825 7.72461 0.500003C7.6707 0.500003 7.62617 0.544534 7.62617 0.598441V1.44922H1.34023C0.877344 1.44922 0.5 1.82657 0.5 2.29063V5.375C0.5 5.42657 0.542187 5.46875 0.59375 5.46875ZM9.40625 4.53125H8.66094C8.60938 4.53125 8.56719 4.57344 8.56719 4.625V7.6168H2.37266V6.76602C2.37266 6.74375 2.36563 6.72266 2.35156 6.70508C2.34367 6.69496 2.33385 6.6865 2.32267 6.68019C2.31149 6.67388 2.29917 6.66985 2.28642 6.66832C2.27368 6.6668 2.26076 6.66781 2.2484 6.67131C2.23605 6.6748 2.22451 6.6807 2.21445 6.68867L0.535156 8.00703C0.484766 8.06563 0.492969 8.12774 0.535156 8.16172L2.21445 9.47891C2.23203 9.49297 2.25312 9.5 2.27539 9.5C2.3293 9.5 2.37383 9.45547 2.37383 9.40156V8.55078H8.66211C9.125 8.55078 9.50234 8.17344 9.50234 7.70938V4.625C9.5 4.57344 9.45781 4.53125 9.40625 4.53125Z' fill='%23333333'/%3e%3c/svg%3e";export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var C="data:image/svg+xml,%3csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1.59375 6.46875H2.33906C2.39063 6.46875 2.43281 6.42657 2.43281 6.375V3.38321H8.62734V4.23399C8.62734 4.25625 8.63438 4.27735 8.64844 4.29492C8.65633 4.30505 8.66615 4.31351 8.67733 4.31981C8.68851 4.32612 8.70083 4.33016 8.71358 4.33168C8.72632 4.33321 8.73924 4.33219 8.7516 4.3287C8.76395 4.32521 8.77549 4.3193 8.78555 4.31133L10.4648 2.99297C10.5152 2.93438 10.507 2.87227 10.4648 2.83828L8.78555 1.5211C8.76826 1.50727 8.74674 1.49982 8.72461 1.5C8.6707 1.5 8.62617 1.54453 8.62617 1.59844V2.44922H2.34023C1.87734 2.44922 1.5 2.82657 1.5 3.29063V6.375C1.5 6.42657 1.54219 6.46875 1.59375 6.46875ZM10.4062 5.53125H9.66094C9.60938 5.53125 9.56719 5.57344 9.56719 5.625V8.6168H3.37266V7.76602C3.37266 7.74375 3.36563 7.72266 3.35156 7.70508C3.34367 7.69496 3.33385 7.6865 3.32267 7.68019C3.31149 7.67388 3.29917 7.66985 3.28642 7.66832C3.27368 7.6668 3.26076 7.66781 3.2484 7.67131C3.23605 7.6748 3.22451 7.6807 3.21445 7.68867L1.53516 9.00703C1.48477 9.06563 1.49297 9.12774 1.53516 9.16172L3.21445 10.4789C3.23203 10.493 3.25312 10.5 3.27539 10.5C3.3293 10.5 3.37383 10.4555 3.37383 10.4016V9.55078H9.66211C10.125 9.55078 10.5023 9.17344 10.5023 8.70938V5.625C10.5 5.57344 10.4578 5.53125 10.4062 5.53125Z' fill='%23666FFF'/%3e%3c/svg%3e";export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e="data:image/svg+xml,%3csvg width='28' height='30' viewBox='0 0 28 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg filter='url(%23filter0_d_151377_8960)'%3e%3cpath d='M6 11C6 6.58172 9.58172 3 14 3V3C18.4183 3 22 6.58172 22 11V21H6V11Z' fill='%23a5a5a5' /%3e%3cpath d='M21 11V20H7V11C7 7.13401 10.134 4 14 4C17.866 4 21 7.13401 21 11Z' stroke='white' stroke-width='2'/%3e%3c/g%3e%3cdefs%3e%3cfilter id='filter0_d_151377_8960' x='0' y='0' width='28' height='30' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3e%3cfeFlood flood-opacity='0' result='BackgroundImageFix'/%3e%3cfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3e%3cfeOffset dy='3'/%3e%3cfeGaussianBlur stdDeviation='3'/%3e%3cfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.239 0'/%3e%3cfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_151377_8960'/%3e%3cfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_151377_8960' result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e";export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e="data:image/svg+xml,%3csvg width='28' height='30' viewBox='0 0 28 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg filter='url(%23filter0_d_151377_646)'%3e%3cpath d='M6 11C6 6.58172 9.58172 3 14 3C18.4183 3 22 6.58172 22 11V21H6V11Z' fill='white'/%3e%3cpath d='M7 11C7 7.13401 10.134 4 14 4C17.866 4 21 7.13401 21 11V20H7V11Z' stroke='white' stroke-width='2'/%3e%3c/g%3e%3cdefs%3e%3cfilter id='filter0_d_151377_646' x='0' y='0' width='28' height='30' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3e%3cfeFlood flood-opacity='0' result='BackgroundImageFix'/%3e%3cfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3e%3cfeOffset dy='3'/%3e%3cfeGaussianBlur stdDeviation='3'/%3e%3cfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.239 0'/%3e%3cfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_151377_646'/%3e%3cfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_151377_646' result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e";export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17.7777 5.27783H2.22217V3.05561H17.7777V5.27783Z' fill='%23666'/%3e%3cpath d='M17.7777 9.1665H4.44434V6.94428H17.7777V9.1665Z' fill='%23666'/%3e%3cpath d='M17.7778 13.0557H11.1111V10.8334H17.7778V13.0557Z' fill='%23666'/%3e%3cpath d='M17.7777 16.9443H4.44434V14.7221H17.7777V16.9443Z' fill='%23666'/%3e%3c/svg%3e";export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17.7777 5.27783H2.22217V3.05561H17.7777V5.27783Z' fill='%23666FFF'/%3e%3cpath d='M17.7777 9.1665H4.44434V6.94428H17.7777V9.1665Z' fill='%23666FFF'/%3e%3cpath d='M17.7778 13.0557H11.1111V10.8334H17.7778V13.0557Z' fill='%23666FFF'/%3e%3cpath d='M17.7777 16.9443H4.44434V14.7221H17.7777V16.9443Z' fill='%23666FFF'/%3e%3c/svg%3e";export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e="data:image/svg+xml,%3csvg width='12' height='15' viewBox='0 0 12 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.0445 1.57693H8.45422C8.45422 1.08927 8.0748 0.5 7.60632 0.5H4.63974C4.17132 0.5 3.7919 1.08926 3.7919 1.57693H1.2017C0.63004 1.57693 0 1.66233 0 2.23509V3.12119H11.9478V2.23509C11.9478 1.66234 11.6171 1.57693 11.0445 1.57693H11.0445ZM1.05663 4.15747V12.5958C1.05663 13.4538 1.89787 14.5 2.75585 14.5H9.49034C10.3493 14.5 10.9115 13.4538 10.9115 12.5958V4.15747H1.05663ZM3.88637 12.7723H2.84962V5.30531H3.88637V12.7723ZM6.4833 12.7723H5.44655V5.30531H6.4833V12.7723ZM9.08023 12.7723H8.04348V5.30531H9.08023V12.7723Z' fill='%23666666'/%3e%3c/svg%3e";export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b opacity: 0%3b %7d .cls-2 %7b fill: %23666%3b %7d %3c/style%3e %3c/defs%3e %3cg id='icon_last_kj' transform='translate(0 -0.071)'%3e %3crect id='%e7%9f%a9%e5%bd%a2' class='cls-1' width='16' height='16' transform='translate(0 0.071)'/%3e %3cpath id='%e8%b7%af%e5%be%84' class='cls-2' d='M.163%2c6.632%2c7.735.1a.428.428%2c0%2c0%2c1%2c.7.368V13.53a.428.428%2c0%2c0%2c1-.7.368L.163%2c7.368A.5.5%2c0%2c0%2c1%2c.163%2c6.632Z' transform='translate(1 12.502) rotate(-90)'/%3e %3c/g%3e%3c/svg%3e";export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='16' height='16' viewBox='0 0 16 16'%3e%3cdefs%3e%3cclipPath id='a'%3e%3cpath d='M0%2c0H16V-16H0Z' fill='none'/%3e%3c/clipPath%3e%3cclipPath id='b'%3e%3cpath d='M6.786-12A8.1%2c8.1%2c0%2c0%2c1%2c9-11.709a2.652%2c2.652%2c0%2c0%2c0-.13.824v1.034H7.952a.7.7%2c0%2c0%2c0-.294.067%2c3.038%2c3.038%2c0%2c0%2c0-.934-.145A2.6%2c2.6%2c0%2c0%2c0%2c3.984-7.5%2c2.6%2c2.6%2c0%2c0%2c0%2c6.723-5.071q.126%2c0%2c.249-.01V-3.2A.867.867%2c0%2c0%2c0%2c6.994-3L6.786-3A7.168%2c7.168%2c0%2c0%2c1%2c.09-7.144a.748.748%2c0%2c0%2c1%2c0-.711A7.165%2c7.165%2c0%2c0%2c1%2c6.786-12ZM6.723-9.046a1.971%2c1.971%2c0%2c0%2c1%2c.313.025%2c1.124%2c1.124%2c0%2c0%2c0-.064.359V-5.97a1.978%2c1.978%2c0%2c0%2c1-.25.016A1.654%2c1.654%2c0%2c0%2c1%2c4.98-7.5%2c1.654%2c1.654%2c0%2c0%2c1%2c6.723-9.046Z' fill='none'/%3e%3c/clipPath%3e%3cclipPath id='c'%3e%3cpath d='M15.214-9.35h-.731v-1.141A2.5%2c2.5%2c0%2c0%2c0%2c12-13a2.5%2c2.5%2c0%2c0%2c0-2.48%2c2.509V-9.35H8.786a.789.789%2c0%2c0%2c0-.786.8V-3.8a.789.789%2c0%2c0%2c0%2c.786.8h6.428A.789.789%2c0%2c0%2c0%2c16-3.8V-8.549A.794.794%2c0%2c0%2c0%2c15.214-9.35Zm-3.2-2.741c.983%2c0%2c1.416.611%2c1.416%2c1.695v1.032H10.578V-10.4C10.578-11.479%2c11.027-12.1%2c12.01-12.091Zm.57%2c5.74v1.182a.3.3%2c0%2c0%2c1-.144.246.574.574%2c0%2c0%2c1-.339.1c-.262%2c0-.482-.16-.482-.351V-6.351A.647.647%2c0%2c0%2c1%2c11.2-6.9c0-.357.4-.646.889-.646s.889.289.889.646A.613.613%2c0%2c0%2c1%2c12.58-6.351Z' fill='none'/%3e%3c/clipPath%3e%3c/defs%3e%3cg transform='translate(0 16)'%3e%3cg clip-path='url(%23a)'%3e%3cpath d='M-5-21H21V5H-5Z' fill='rgba(0%2c0%2c0%2c0)'/%3e%3c/g%3e%3cg clip-path='url(%23b)'%3e%3cpath d='M-5-17H14V2H-5Z' fill='%23666'/%3e%3c/g%3e%3cg clip-path='url(%23c)'%3e%3cpath d='M3-18H21V2H3Z' fill='%23666'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect opacity='0.01' width='16' height='16' fill='black'/%3e%3crect x='13.5' y='9.49963' width='7' height='7' transform='rotate(180 13.5 9.49963)' fill='%23CCCCCC' stroke='%23666666'/%3e%3crect x='9.5' y='13.4996' width='7' height='7' transform='rotate(180 9.5 13.4996)' fill='%23CCCCCC' stroke='%23666666'/%3e%3c/svg%3e";export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b opacity: 0%3b %7d .cls-2 %7b fill: %23666%3b %7d %3c/style%3e %3c/defs%3e %3cg id='icon_next_kj' transform='translate(0 -0.054)'%3e %3crect id='%e7%9f%a9%e5%bd%a2' class='cls-1' width='16' height='16' transform='translate(0 0.054)'/%3e %3cpath id='%e8%b7%af%e5%be%84' class='cls-2' d='M8.268%2c6.632.7.1A.428.428%2c0%2c0%2c0%2c0%2c.47V13.53a.428.428%2c0%2c0%2c0%2c.7.368l7.572-6.53A.5.5%2c0%2c0%2c0%2c8.268%2c6.632Z' transform='translate(1 12.485) rotate(-90)'/%3e %3c/g%3e%3c/svg%3e";export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var C="data:image/svg+xml,%3csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6.63183 8.76803L0.0998325 1.20003C0.0455103 1.13484 0.0117931 1.05497 0.002964 0.970576C-0.00586511 0.886179 0.0105934 0.801062 0.0502481 0.726039C0.0899029 0.651017 0.150965 0.589475 0.225674 0.549233C0.300383 0.508992 0.385368 0.491867 0.469832 0.500033L13.5298 0.500034C13.6143 0.491867 13.6993 0.508992 13.774 0.549234C13.8487 0.589476 13.9098 0.651017 13.9494 0.72604C13.9891 0.801062 14.0055 0.886179 13.9967 0.970577C13.9879 1.05497 13.9542 1.13484 13.8998 1.20003L7.36983 8.77203C7.32271 8.82302 7.26548 8.86363 7.2018 8.89128C7.13812 8.91893 7.06938 8.93301 6.99995 8.93264C6.93053 8.93226 6.86194 8.91743 6.79856 8.88909C6.73518 8.86075 6.6784 8.81952 6.63183 8.76803Z' fill='%23666666'/%3e%3c/svg%3e";export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var C="data:image/svg+xml,%3csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.368 0.662974L13.9 8.23497C13.9542 8.30004 13.9878 8.3797 13.9967 8.46388C14.0055 8.54807 13.9893 8.63299 13.9499 8.70792C13.9105 8.78284 13.8497 8.84441 13.7754 8.88482C13.701 8.92524 13.6163 8.94269 13.532 8.93497L0.470002 8.93497C0.385705 8.94269 0.301012 8.92524 0.226634 8.88482C0.152256 8.84441 0.0915314 8.78284 0.0521418 8.70792C0.0127522 8.63299 -0.00353562 8.54807 0.00533927 8.46388C0.0142142 8.3797 0.0478531 8.30004 0.102002 8.23497L6.632 0.662974C6.67883 0.612061 6.73572 0.571419 6.79906 0.543619C6.8624 0.515819 6.93083 0.501465 7 0.501465C7.06918 0.501465 7.1376 0.515819 7.20094 0.543619C7.26429 0.571419 7.32117 0.612061 7.368 0.662974Z' fill='%23666666'/%3e%3c/svg%3e";export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='16' height='16' viewBox='0 0 16 16'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: none%3b %7d .cls-2 %7b clip-path: url(%23clip-path)%3b %7d .cls-3 %7b fill: rgba(0%2c0%2c0%2c0)%3b %7d .cls-4 %7b clip-path: url(%23clip-path-2)%3b %7d .cls-5 %7b fill: %23666%3b %7d %3c/style%3e %3cclipPath id='clip-path'%3e %3cpath id='%e8%b7%af%e5%be%84_683' data-name='%e8%b7%af%e5%be%84 683' class='cls-1' d='M0%2c0H16V-16H0Z' transform='translate(0 16)'/%3e %3c/clipPath%3e %3cclipPath id='clip-path-2'%3e %3cpath id='%e8%b7%af%e5%be%84_685' data-name='%e8%b7%af%e5%be%84 685' class='cls-1' d='M5.035-6.521A2.264%2c2.264%2c0%2c0%2c0%2c2.774-4.254%2c2.263%2c2.263%2c0%2c0%2c0%2c5.035-1.989%2c2.264%2c2.264%2c0%2c0%2c0%2c7.3-4.255%2c2.263%2c2.263%2c0%2c0%2c0%2c5.035-6.521Zm.039%2c3.36A1.172%2c1.172%2c0%2c0%2c1%2c3.905-4.332%2c1.171%2c1.171%2c0%2c0%2c1%2c5.074-5.5a1.17%2c1.17%2c0%2c0%2c1%2c1.169%2c1.17A1.172%2c1.172%2c0%2c0%2c1%2c5.074-3.16Zm5.281-3.517a2.283%2c2.283%2c0%2c0%2c0-2.28%2c2.286%2c2.282%2c2.282%2c0%2c0%2c0%2c2.28%2c2.284%2c2.283%2c2.283%2c0%2c0%2c0%2c2.28-2.286%2c2.284%2c2.284%2c0%2c0%2c0-2.28-2.284ZM10.414-3.2A1.171%2c1.171%2c0%2c0%2c1%2c9.245-4.373a1.171%2c1.171%2c0%2c0%2c1%2c1.169-1.172%2c1.171%2c1.171%2c0%2c0%2c1%2c1.169%2c1.172A1.171%2c1.171%2c0%2c0%2c1%2c10.414-3.2Zm1.676-11.565a2.871%2c2.871%2c0%2c0%2c1%2c.468%2c3.048L7.686-5.506s-3.35-3.869-4.715-5.783A3.142%2c3.142%2c0%2c0%2c1%2c3.048-15L7.686-9.061ZM7.686-6.8a.586.586%2c0%2c0%2c0%2c.585-.587.586.586%2c0%2c0%2c0-.585-.587.586.586%2c0%2c0%2c0-.585.587A.586.586%2c0%2c0%2c0%2c7.686-6.8Z' transform='translate(-2.384 15)'/%3e %3c/clipPath%3e %3c/defs%3e %3cg id='%e7%bb%84_1289' data-name='%e7%bb%84 1289' transform='translate(0 16)'%3e %3cg id='%e7%bb%84_1219' data-name='%e7%bb%84 1219' class='cls-2' transform='translate(0 -16)'%3e %3cpath id='%e8%b7%af%e5%be%84_682' data-name='%e8%b7%af%e5%be%84 682' class='cls-3' d='M-5-21H21V5H-5Z' transform='translate(0 16)'/%3e %3c/g%3e %3cg id='%e7%bb%84_1220' data-name='%e7%bb%84 1220' class='cls-4' transform='translate(2.794 -14.506)'%3e %3cpath id='%e8%b7%af%e5%be%84_684' data-name='%e8%b7%af%e5%be%84 684' class='cls-5' d='M-2.616-20H17.068V2.305H-2.616Z' transform='translate(-2.019 15.353)'/%3e %3c/g%3e %3c/g%3e%3c/svg%3e";export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{RightOutlined as f}from"@ant-design/icons";import t,{useMemo as p,useContext as b,useState as u,useEffect as A}from"react";import{Input as g}from"antd";import{useSetState as x}from"ahooks";import a from"./index.module.scss.js";var s;(function(o){o.before="\u524D\u6587",o.after="\u540E\u6587"})(s||(s={}));const v=o=>{const{audioContext:e}=o;if(!e||!e.visible)return null;const{content:i,type:n}=e;return t.createElement(E,{title:s==null?void 0:s[n],content:i})},E=o=>{const[e,i]=u(!0),[n,m]=u(""),{title:C,content:l}=o,r=()=>{i(!e)};return A(()=>{m(l),i(!0)},[l]),t.createElement("div",{className:a.audioContextContainer},t.createElement("div",{className:a.title},t.createElement(f,{style:{marginRight:8},rotate:e?90:0,onClick:r}),t.createElement("span",{onClick:r},C)),e&&t.createElement("div",{className:a.content},t.createElement(g.TextArea,{bordered:!1,value:n,disabled:!0,style:{padding:0},autoSize:!0})))},c={selectedAttribute:"",selectedRegion:{},attributeLockList:[],clipConfigurable:!1,clipAttributeConfigurable:!1,clipAttributeList:[],clipTextConfigurable:!1,combined:!1,segment:!1},d=t.createContext({audioClipState:c,setAudioClipState:()=>{}}),S=()=>b(d),y=({children:o})=>{const[e,i]=x(c),n=p(()=>({audioClipState:e,setAudioClipState:i}),[e,i]);return t.createElement(d.Provider,{value:n},o)};export{y as AudioClipProvider,s as EContextType,v as default,S as useAudioClipStore};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={audioContextContainer:"index-module_audioContextContainer__LLfkP",title:"index-module_title__PKY4u",content:"index-module_content__ExA0s"};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Popover as _,Spin as F}from"antd";import t,{useState as y,useEffect as O}from"react";import n from"./index.module.scss.js";var P=Object.defineProperty,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,E=(a,r,e)=>r in a?P(a,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[r]=e,v=(a,r)=>{for(var e in r||(r={}))u.call(r,e)&&E(a,e,r[e]);if(c)for(var e of c(r))d.call(r,e)&&E(a,e,r[e]);return a},C=(a,r)=>{var e={};for(var l in a)u.call(a,l)&&r.indexOf(l)<0&&(e[l]=a[l]);if(a!=null&&c)for(var l of c(a))r.indexOf(l)<0&&d.call(a,l)&&(e[l]=a[l]);return e};const w=a=>{var r=a,{src:e}=r,l=C(r,["src"]);const[m,i]=y(null);return O(()=>{if(e){const s=new Image;s.src=e,s.onload=()=>{i(s)}}},[e]),t.createElement(F,{spinning:!m},m?t.createElement("img",v({src:e},l)):t.createElement("div",v({style:{height:230}},l)))},B=({children:a,labelDetail:r,visible:e,style:l})=>{if(!e)return t.createElement("div",null,a);let m=null;if(!r)m=t.createElement("div",{className:n.errorMsg},"\u91CA\u4E49\u8BCD\u5178\u91CC\u6CA1\u6709\u6B64\u7F16\u53F7\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u3002");else{const{nameZH:i,nameEN:s,descriptionEN:p,descriptionZH:f,imgList:N,no:g}=r;m=t.createElement("div",{className:n.content},t.createElement("div",{className:n.nameList},t.createElement("div",{className:n.nameZH},i),t.createElement("div",{className:n.nameEN},s),t.createElement("div",{className:n.number},g)),t.createElement("div",{className:n.item},t.createElement("div",{className:n.title},t.createElement("span",{className:n.dot}),"\u4E2D\u82F1\u63CF\u8FF0"),t.createElement("div",{className:n.contentZH},f),t.createElement("div",{className:n.contentEN},p)),t.createElement("div",{className:n.item},t.createElement("div",{className:n.title},t.createElement("span",{className:n.dot}),"\u56FE\u7247\u793A\u4F8B"),N.map(o=>t.createElement(w,{key:o.key,className:n.img,src:o.url}))))}return t.createElement(_,{destroyTooltipOnHide:!0,placement:"leftTop",content:m,trigger:"hover"},t.createElement("div",{style:l},a))};export{B as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={errorMsg:"index-module_errorMsg__eOX7D",content:"index-module_content__34AQ8",nameList:"index-module_nameList__gQCkl",nameZH:"index-module_nameZH__jhSpF",nameEN:"index-module_nameEN__usQhu",number:"index-module_number__kiWaa",item:"index-module_item__Q1q3p",title:"index-module_title__XNUcS",dot:"index-module_dot__N3Tuy",contentEN:"index-module_contentEN__bc62b",img:"index-module_img__RVaOw",video:"index-module_video__KTYwQ"};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"react";import w from"../../../attributeList/index.js";import{EventBus as v}from"@labelbee/lb-annotation";import L from"../../../../assets/annotation/audio/clipSmall.svg.js";import F from"../../../../assets/annotation/audio/clipASmall.svg.js";import R from"../../../../assets/annotation/audio/delete.svg.js";import $ from"../../../../assets/annotation/audio/loopA.svg.js";import{getAttributeShowText as k,timeFormat as f}from"../../../../utils/audio.js";import D from"../../../longText/index.js";import{classnames as I}from"../../../../utils/index.js";import i from"./index.module.scss.js";var T=Object.defineProperty,B=Object.defineProperties,V=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,E=(s,e,r)=>e in s?T(s,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[e]=r,_=(s,e)=>{for(var r in e||(e={}))q.call(e,r)&&E(s,r,e[r]);if(b)for(var r of b(e))z.call(e,r)&&E(s,r,e[r]);return s},S=(s,e)=>B(s,V(e));const G=s=>{const{regions:e=[],updateRegion:r,useAudioClipStore:y}=s,{audioClipState:C,setAudioClipState:u}=y(),{selectedAttribute:j,selectedRegion:d,clipTextConfigurable:p,clipAttributeList:n,clipAttributeConfigurable:m}=C,{id:l}=d,x=a=>{if(e.length&&l){const o=e.find(c=>c.id===l);r(S(_({},o),{attribute:a}))}u({selectedAttribute:a})},g=[{label:"\u65E0\u5C5E\u6027",value:"",key:"\u65E0\u5C5E\u6027"},...n.map(a=>S(_({},a),{label:a.key}))];return t.createElement("div",{className:i.clipSidebar},t.createElement("div",{className:i.clipResults},t.createElement("div",{className:i.title},"\u5DF2\u622A\u53D6\u97F3\u9891"),e.length>0?t.createElement("div",{className:i.regions},e.map(a=>{const{id:o,attribute:c,text:A,start:N,end:O}=a,P=o===l&&d.loop,h=`${m?k(c,g):""}${m&&p?"\uFF0C":""}${p?`\u6587\u672C\uFF1A${A}`:""}`;return t.createElement("div",{className:I({[i.region]:!0,[i.selected]:o===l}),key:o,onClick:()=>{v.emit("setSelectedRegion",{id:o,playImmediately:!0})}},t.createElement("div",{className:i.label},P&&t.createElement("img",{src:$}),t.createElement("div",{className:i.text},t.createElement(D,{text:h}))),t.createElement("div",{className:i.time},t.createElement("img",{src:l===o?F:L}),f(N,"ss.SSS")," -",f(O,"ss.SSS")),t.createElement("div",{className:i.delete,onClick:()=>{v.emit("removeRegionById",o)}},t.createElement("img",{src:R})))})):t.createElement("div",{className:i.empty},"\u6682\u65E0\u622A\u53D6\u5185\u5BB9")),m&&(n==null?void 0:n.length)>0&&t.createElement("div",{className:i.attributeList},t.createElement(w,{list:g,attributeChanged:x,selectedAttribute:j,attributeLockChange:a=>{u({attributeLockList:a})}})))};export{G as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={clipSidebar:"index-module_clipSidebar__z2E8x",clipResults:"index-module_clipResults__-jFGw",title:"index-module_title__WRH7u",regions:"index-module_regions__vS3xd",region:"index-module_region__jsJCs",selected:"index-module_selected__xvEm9",label:"index-module_label__W3qPv",text:"index-module_text__HxLHk",time:"index-module_time__pDAmm",delete:"index-module_delete__LQA-h",attributeList:"index-module_attributeList__2wnCE",empty:"index-module_empty__-uyuD"};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import a from"./index.module.scss.js";import e from"react";import{Input as r}from"antd";import{SearchOutlined as i}from"@ant-design/icons";const s=t=>{t.stopPropagation(),t.nativeEvent.stopPropagation(),t.nativeEvent.stopImmediatePropagation()},l=({value:t,onChange:o})=>e.createElement(r,{className:a.filterInput,prefix:e.createElement(i,{style:{marginRight:5,color:"#999"}}),onKeyDown:n=>{s(n)},allowClear:!0,placeholder:"\u641C\u7D22\u6807\u7B7E",value:t,onChange:o});export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={filterInput:"index-module_filterInput__4V--L"};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import F from"../../../attributeList/index.js";import _ from"../../../checkboxList/index.js";import{CaretRightOutlined as j}from"@ant-design/icons";import{Collapse as x,Tooltip as B,Badge as N}from"antd";import{cloneDeep as A}from"lodash";import t,{Component as R}from"react";import u from"./index.module.scss.js";import k from"../LabelDetailPopover/index.js";import V from"../labelFilterInput/index.js";import{TagUtils as T}from"@labelbee/lb-annotation";import M from"../../../../assets/annotation/common/icon_clearSmall.svg.js";import O from"../../../../assets/annotation/common/icon_clearSmall_a.svg.js";const $=(i,l)=>K(i,l,"#666FFF"),K=(i,l,s)=>{if(!i||!l)return i;const a=i.indexOf(l);return a===-1?i:t.createElement(t.Fragment,null,i.slice(0,a),t.createElement("span",{style:{color:s}},l),i.slice(a+l.length))},{Panel:U}=x;class H extends R{constructor(l){super(l);this.sideBar=t.createRef(),this.updateScrollTop=s=>{var a;this.sideBar.current&&((a=this.sideBar.current.children[s])==null||a.scrollIntoView({block:"center"}))},this.setExpendKeyList=(s,a,h,m)=>{const o=A(s);o[a]===""||m===!0?o[a]=h:o[a]="",this.setState({expandKeyList:o})},this.setInputValue=s=>{this.setState({inputValue:s.target.value})},this.state={hoverDeleteIndex:-1,expandKeyList:l.labelInfoSet.map(s=>s.value),inputValue:""}}shouldComponentUpdate(l,s){var a;const{labelSelectedList:h,labelInfoSet:m}=l;if((this.props.labelInfoSet.length!==l.labelInfoSet.length||this.state.inputValue!==s.inputValue)&&this.setState({expandKeyList:l.labelInfoSet.map(o=>o.value)}),h[0]!==this.props.labelSelectedList[0]&&l.labelSelectedList.length===1){const o=h[0],d=(a=m.filter((c,E)=>E===o)[0])==null?void 0:a.value;return this.setExpendKeyList(this.state.expandKeyList,o,d,!0),!0}return l.labelSelectedList.length===1&&this.updateScrollTop(h[0]),(this.props.imgIndex!==l.imgIndex||this.props.graphIndex!==l.graphIndex)&&this.updateScrollTop(0),!0}render(){const{labelInfoSet:l,labelSelectedList:s,tagResult:a,clearResult:h,entityMap:m}=this.props,{hoverDeleteIndex:o,expandKeyList:d,inputValue:c}=this.state,E=l;let f=!1;l.forEach(r=>{const{subSelected:p=[]}=r;r.hasShow=!1,p.forEach(e=>{const{key:n}=e;if(!c){e.showLabel=e.key,e.show=!0;return}n.indexOf(c)>-1?(e.showLabel=$(n,c),e.show=!0,r.hasShow=!0):(e.showLabel=e.key,e.show=!1)}),r.hasShow&&(f=!0)});const w=r=>s.length>0&&s[0]===r?t.createElement("span",{className:u.keyDownIconActive},r+1):t.createElement("span",{className:u.keyDownIcon},r+1),D=({isActive:r})=>t.createElement(j,{rotate:r?90:0}),L=(r,p=-1)=>{if(!!r)return r.map((e,n)=>{var y,S,I;if(e.subSelected){if(c&&!e.hasShow)return null;const b=T.judgeResultIsInInputList(e.value,a==null?void 0:a[e.value],E);return t.createElement(x,{bordered:!1,expandIcon:D,key:`collapse_${n}_${p+1}`,onChange:()=>this.setExpendKeyList(d,n,e.value),activeKey:[d[n]]},t.createElement(U,{header:t.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},t.createElement("span",null,e.key,t.createElement(B,{placement:"bottom",title:"\u6E05\u7A7A\u6B64\u9009\u9879"},t.createElement("img",{style:{marginLeft:5,cursor:"pointer"},onClick:g=>{g.stopPropagation(),h(e.value)},src:o===n||b?O:M,onMouseEnter:()=>{this.setState({hoverDeleteIndex:n})},onMouseLeave:()=>{this.setState({hoverDeleteIndex:-1})}})),b&&d[n]===""&&t.createElement(N,{color:"#87d068"})),!c&&this.props.labelInfoSet.length>1&&w(n)),key:e.value},t.createElement("div",{className:u.level,style:{backgroundColor:s.length>0&&s[0]===n?"rgba(158, 158, 158, 0.18)":""}},L(e.subSelected,n))))}else{const b=this.props.labelInfoSet[p]?this.props.labelInfoSet[p].value:0,g=((S=(y=a==null?void 0:a[b])==null?void 0:y.split(";"))==null?void 0:S.indexOf(e.value))>-1?e.value:"",C=m==null?void 0:m.get(e.value);if(((I=this.props.labelInfoSet[p])==null?void 0:I.isMulti)===!0){let v=n+1;return typeof v=="number"&&v<=9&&v>=0||(v="-"),(e==null?void 0:e.show)&&t.createElement("div",{className:u.singleBar},t.createElement(k,{labelDetail:C,visible:this.props.dynamicTag},t.createElement(_,{attributeChanged:()=>this.props.setLabel(p,n),selectedAttribute:[g],list:[{value:e.value,label:e.key,showLabel:e.showLabel}],num:v})))}else return(e==null?void 0:e.show)&&t.createElement("div",{className:u.singleBar},t.createElement(k,{labelDetail:C,visible:this.props.dynamicTag},t.createElement(F,{attributeChanged:()=>this.props.setLabel(p,n),selectedAttribute:g,list:[{value:e.value,label:e.key}],num:n+1})))}})};return l.length===0?t.createElement("div",{style:{padding:20,textAlign:"center"}},"\u6682\u65E0\u4FE1\u606F\u914D\u7F6E"):t.createElement("div",{className:u.filterContainer},t.createElement("div",{className:u.filterInputContainer},t.createElement(V,{value:c,onChange:this.setInputValue})),t.createElement("div",{className:u.filterContent},t.createElement("div",{className:u.main,ref:this.sideBar},L(l),!!c&&!f&&t.createElement("div",{style:{textAlign:"center",color:"#999"}},"\u6682\u65E0\u6570\u636E"))))}}export{H as default,K as highlightKeyword};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={optionMenu:"index-module_optionMenu__-aO65",main:"index-module_main__f6-QY",keyDownIcon:"index-module_keyDownIcon__08vzX",keyDownIconActive:"index-module_keyDownIconActive__XIffN",level:"index-module_level__G-0-x",radioOption:"index-module_radioOption__-WpIp",labelMouseClick:"index-module_labelMouseClick__cDRh4",singleBar:"index-module_singleBar__2J-ms",filterContainer:"index-module_filterContainer__LiNrv",filterInputContainer:"index-module_filterInputContainer__SgsUw",filterContent:"index-module_filterContent__C70F2"};export{e as default};
|