@labelbee/lb-components 1.23.0-alpha.8 → 1.23.0-alpha.81

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.
Files changed (239) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/_virtual/2DViewWorker.js +1 -0
  3. package/dist/_virtual/highlightSegmentWorker.js +1 -1
  4. package/dist/assets/annotation/icon_link.svg.js +1 -0
  5. package/dist/assets/annotation/icon_unlink.svg.js +1 -0
  6. package/dist/assets/annotation/pointCloudTool/Image2DBoxScale.svg.js +1 -0
  7. package/dist/assets/annotation/pointCloudTool/leftArrow.svg.js +1 -1
  8. package/dist/assets/annotation/pointCloudTool/rightArrow.svg.js +1 -1
  9. package/dist/assets/annotation/pointCloudTool/rotate90_black.svg.js +1 -0
  10. package/dist/assets/icons/ad33251.svg +26 -0
  11. package/dist/components/AnnotationView/index.js +1 -1
  12. package/dist/components/DynamicResizer/DynamicResizer.js +1 -0
  13. package/dist/components/DynamicResizer/assets/bottomToZero.svg.js +1 -0
  14. package/dist/components/DynamicResizer/assets/divider.svg.js +1 -0
  15. package/dist/components/DynamicResizer/assets/topToZero.svg.js +1 -0
  16. package/dist/components/DynamicResizer/hooks/useDrag.js +1 -0
  17. package/dist/components/DynamicResizer/hooks/useUpdateHeight.js +1 -0
  18. package/dist/components/DynamicResizer/index.js +1 -0
  19. package/dist/components/LLMToolView/index.js +1 -1
  20. package/dist/components/LLMToolView/questionView/components/header/index.js +1 -1
  21. package/dist/components/LLMToolView/sidebar/components/textEditor/index.js +2 -2
  22. package/dist/components/LLMToolView/sidebar/components/textEditor/index.module.scss.js +1 -1
  23. package/dist/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
  24. package/dist/components/LLMToolView/sidebar/index.js +1 -1
  25. package/dist/components/LLMToolView/utils/data.js +1 -1
  26. package/dist/components/NLPToolView/index.js +1 -1
  27. package/dist/components/audioAnnotate/audioContext/index.js +1 -1
  28. package/dist/components/audioAnnotate/audioSide/clipSidebar/index.js +1 -1
  29. package/dist/components/audioAnnotate/index.js +1 -1
  30. package/dist/components/audioAnnotate/textInput/index.js +1 -1
  31. package/dist/components/audioAnnotate/textInput/index.module.scss.js +1 -1
  32. package/dist/components/audioAnnotate/utils/dataTransform.js +1 -0
  33. package/dist/components/audioPlayer/clipRegion/index.js +1 -1
  34. package/dist/components/audioPlayer/index.js +1 -1
  35. package/dist/components/audioPlayer/useAudioCombine/index.js +3 -2
  36. package/dist/components/audioPlayer/useAudioSegment/index.js +1 -1
  37. package/dist/components/longText/index.js +1 -1
  38. package/dist/components/pointCloud2DRectOperationView/index.js +1 -1
  39. package/dist/components/pointCloud2DRectOperationView/useUpdateRectList.js +1 -0
  40. package/dist/components/pointCloud2DRectOperationView/util.js +1 -0
  41. package/dist/components/pointCloudView/PointCloud2DSingleView.js +1 -1
  42. package/dist/components/pointCloudView/PointCloud2DView.js +1 -1
  43. package/dist/components/pointCloudView/PointCloud3DView.js +1 -1
  44. package/dist/components/pointCloudView/PointCloudBackView.js +1 -1
  45. package/dist/components/pointCloudView/PointCloudContext.js +1 -1
  46. package/dist/components/pointCloudView/PointCloudInfos.js +1 -1
  47. package/dist/components/pointCloudView/PointCloudLayout.js +1 -1
  48. package/dist/components/pointCloudView/PointCloudListener.js +1 -1
  49. package/dist/components/pointCloudView/PointCloudSegment2DView.js +1 -1
  50. package/dist/components/pointCloudView/PointCloudSideView.js +1 -1
  51. package/dist/components/pointCloudView/PointCloudTopView.js +1 -1
  52. package/dist/components/pointCloudView/components/HighlightVisible/index.js +1 -1
  53. package/dist/components/pointCloudView/hooks/useBoxes.js +1 -1
  54. package/dist/components/pointCloudView/hooks/useDataLinkSwitch.js +1 -0
  55. package/dist/components/pointCloudView/hooks/useHighlight.js +1 -1
  56. package/dist/components/pointCloudView/hooks/useHistory.js +1 -1
  57. package/dist/components/pointCloudView/hooks/usePointCloudViews.js +1 -1
  58. package/dist/components/pointCloudView/hooks/usePolygon.js +1 -1
  59. package/dist/components/pointCloudView/hooks/useRotate.js +1 -1
  60. package/dist/components/pointCloudView/hooks/useRotateEdge.js +1 -0
  61. package/dist/components/pointCloudView/hooks/useSingleBox.js +1 -1
  62. package/dist/components/pointCloudView/hooks/useStatus.js +1 -1
  63. package/dist/components/pointCloudView/hooks/useTimeoutFunc.js +1 -0
  64. package/dist/components/pointCloudView/hooks/useWindowKeydownListener.js +1 -0
  65. package/dist/components/pointCloudView/index.js +1 -1
  66. package/dist/components/pointCloudView/utils/event-polyfill.js +1 -0
  67. package/dist/components/pointCloudView/utils/map.js +1 -0
  68. package/dist/components/subAttributeList/index.js +1 -0
  69. package/dist/components/videoAnnotate/videoClipTool/index.js +1 -1
  70. package/dist/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.js +1 -1
  71. package/dist/hooks/useToolStyle.js +1 -0
  72. package/dist/index.css +138 -17
  73. package/dist/index.js +1 -1
  74. package/dist/store/Actions.js +1 -1
  75. package/dist/store/annotatedBox/index.js +1 -1
  76. package/dist/store/annotation/actionCreators.js +1 -1
  77. package/dist/store/annotation/reducer.js +1 -1
  78. package/dist/types/App.d.ts +5 -1
  79. package/dist/types/components/AnnotationView/index.d.ts +1 -0
  80. package/dist/types/components/DynamicResizer/DynamicResizer.d.ts +5 -0
  81. package/dist/types/components/DynamicResizer/hooks/useDrag.d.ts +12 -0
  82. package/dist/types/components/DynamicResizer/hooks/useUpdateHeight.d.ts +23 -0
  83. package/dist/types/components/DynamicResizer/index.d.ts +2 -0
  84. package/dist/types/components/DynamicResizer/types/interface.d.ts +17 -0
  85. package/dist/types/components/LLMToolView/utils/data.d.ts +1 -1
  86. package/dist/types/components/audioAnnotate/audioContext/index.d.ts +10 -2
  87. package/dist/types/components/audioAnnotate/textInput/index.d.ts +1 -0
  88. package/dist/types/components/audioAnnotate/utils/dataTransform.d.ts +9 -0
  89. package/dist/types/components/audioPlayer/index.d.ts +28 -21
  90. package/dist/types/components/longText/index.d.ts +1 -0
  91. package/dist/types/components/pointCloud2DRectOperationView/index.d.ts +1 -0
  92. package/dist/types/components/pointCloud2DRectOperationView/useUpdateRectList.d.ts +2 -0
  93. package/dist/types/components/pointCloud2DRectOperationView/util.d.ts +8 -0
  94. package/dist/types/components/pointCloudView/2DViewWorker.d.ts +1 -0
  95. package/dist/types/components/pointCloudView/PointCloud2DView.d.ts +2 -1
  96. package/dist/types/components/pointCloudView/PointCloudContext.d.ts +28 -4
  97. package/dist/types/components/pointCloudView/PointCloudLayout.d.ts +1 -0
  98. package/dist/types/components/pointCloudView/components/HighlightVisible/index.d.ts +2 -1
  99. package/dist/types/components/pointCloudView/hooks/useDataLinkSwitch.d.ts +19 -0
  100. package/dist/types/components/pointCloudView/hooks/useHighlight.d.ts +1 -1
  101. package/dist/types/components/pointCloudView/hooks/usePointCloudViews.d.ts +8 -0
  102. package/dist/types/components/pointCloudView/hooks/useRotateEdge.d.ts +9 -0
  103. package/dist/types/components/pointCloudView/hooks/useSingleBox.d.ts +3 -2
  104. package/dist/types/components/pointCloudView/hooks/useTimeoutFunc.d.ts +6 -0
  105. package/dist/types/components/pointCloudView/hooks/useWindowKeydownListener.d.ts +16 -0
  106. package/dist/types/components/pointCloudView/utils/event-polyfill.d.ts +8 -0
  107. package/dist/types/components/pointCloudView/utils/map.d.ts +11 -0
  108. package/dist/types/components/subAttributeList/index.d.ts +10 -0
  109. package/dist/types/components/videoAnnotate/index.d.ts +2 -1
  110. package/dist/types/components/videoAnnotate/videoClipTool/index.d.ts +2 -1
  111. package/dist/types/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.d.ts +1 -1
  112. package/dist/types/hooks/useToolStyle.d.ts +30 -0
  113. package/dist/types/index.d.ts +7 -2
  114. package/dist/types/store/Actions.d.ts +1 -0
  115. package/dist/types/store/annotatedBox/index.d.ts +2 -0
  116. package/dist/types/store/annotation/actionCreators.d.ts +3 -2
  117. package/dist/types/store/annotation/reducer.d.ts +1 -0
  118. package/dist/types/store/annotation/types.d.ts +9 -2
  119. package/dist/types/utils/AnnotationDataUtils.d.ts +58 -1
  120. package/dist/types/utils/ToolPointCloudBoxRenderHelper.d.ts +23 -0
  121. package/dist/types/utils/index.d.ts +31 -1
  122. package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.d.ts +3 -0
  123. package/dist/types/views/MainView/sidebar/TextToolSidebar/index.d.ts +1 -1
  124. package/dist/types/views/MainView/toolFooter/BatchSwitchConnectIn2DView/BatchSwitchConnectIn2DView.d.ts +9 -0
  125. package/dist/types/views/MainView/toolFooter/BatchSwitchConnectIn2DView/Icons.d.ts +3 -0
  126. package/dist/types/views/MainView/toolFooter/BatchSwitchConnectIn2DView/index.d.ts +1 -0
  127. package/dist/types/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.d.ts +10 -2
  128. package/dist/types/views/MainView/toolFooter/index.d.ts +1 -1
  129. package/dist/types/views/MainView/toolHeader/StepSwitch/index.d.ts +1 -1
  130. package/dist/types/views/MainView/toolHeader/index.d.ts +1 -1
  131. package/dist/utils/AnnotationDataUtils.js +1 -1
  132. package/dist/utils/ToolPointCloudBoxRenderHelper.js +1 -0
  133. package/dist/utils/index.js +1 -1
  134. package/dist/views/MainView/index.js +1 -1
  135. package/dist/views/MainView/sidebar/NLPSidebar/NLPAnnotatedList.js +1 -1
  136. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.js +1 -0
  137. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.module.scss.js +1 -0
  138. package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
  139. package/dist/views/MainView/sidebar/TagSidebar/index.js +1 -1
  140. package/dist/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
  141. package/dist/views/MainView/toolFooter/BatchSwitchConnectIn2DView/BatchSwitchConnectIn2DView.js +1 -0
  142. package/dist/views/MainView/toolFooter/BatchSwitchConnectIn2DView/Icons.js +1 -0
  143. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -1
  144. package/dist/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js +1 -1
  145. package/dist/views/MainView/toolFooter/index.js +1 -1
  146. package/es/App.js +1 -1
  147. package/es/_virtual/2DViewWorker.js +1 -0
  148. package/es/_virtual/highlightSegmentWorker.js +1 -1
  149. package/es/assets/annotation/icon_link.svg.js +1 -0
  150. package/es/assets/annotation/icon_unlink.svg.js +1 -0
  151. package/es/assets/annotation/pointCloudTool/Image2DBoxScale.svg.js +1 -0
  152. package/es/assets/annotation/pointCloudTool/leftArrow.svg.js +1 -1
  153. package/es/assets/annotation/pointCloudTool/rightArrow.svg.js +1 -1
  154. package/es/assets/annotation/pointCloudTool/rotate90_black.svg.js +1 -0
  155. package/es/components/AnnotationView/index.js +1 -1
  156. package/es/components/DynamicResizer/DynamicResizer.js +1 -0
  157. package/es/components/DynamicResizer/assets/bottomToZero.svg.js +1 -0
  158. package/es/components/DynamicResizer/assets/divider.svg.js +1 -0
  159. package/es/components/DynamicResizer/assets/topToZero.svg.js +1 -0
  160. package/es/components/DynamicResizer/hooks/useDrag.js +1 -0
  161. package/es/components/DynamicResizer/hooks/useUpdateHeight.js +1 -0
  162. package/es/components/DynamicResizer/index.js +1 -0
  163. package/es/components/LLMToolView/index.js +1 -1
  164. package/es/components/LLMToolView/questionView/components/header/index.js +1 -1
  165. package/es/components/LLMToolView/sidebar/components/textEditor/index.js +2 -2
  166. package/es/components/LLMToolView/sidebar/components/textEditor/index.module.scss.js +1 -1
  167. package/es/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
  168. package/es/components/LLMToolView/sidebar/index.js +1 -1
  169. package/es/components/LLMToolView/utils/data.js +1 -1
  170. package/es/components/NLPToolView/index.js +1 -1
  171. package/es/components/audioAnnotate/audioContext/index.js +1 -1
  172. package/es/components/audioAnnotate/audioSide/clipSidebar/index.js +1 -1
  173. package/es/components/audioAnnotate/index.js +1 -1
  174. package/es/components/audioAnnotate/textInput/index.js +1 -1
  175. package/es/components/audioAnnotate/textInput/index.module.scss.js +1 -1
  176. package/es/components/audioAnnotate/utils/dataTransform.js +1 -0
  177. package/es/components/audioPlayer/clipRegion/index.js +1 -1
  178. package/es/components/audioPlayer/index.js +1 -1
  179. package/es/components/audioPlayer/useAudioCombine/index.js +3 -2
  180. package/es/components/audioPlayer/useAudioSegment/index.js +1 -1
  181. package/es/components/longText/index.js +1 -1
  182. package/es/components/pointCloud2DRectOperationView/index.js +1 -1
  183. package/es/components/pointCloud2DRectOperationView/useUpdateRectList.js +1 -0
  184. package/es/components/pointCloud2DRectOperationView/util.js +1 -0
  185. package/es/components/pointCloudView/PointCloud2DSingleView.js +1 -1
  186. package/es/components/pointCloudView/PointCloud2DView.js +1 -1
  187. package/es/components/pointCloudView/PointCloud3DView.js +1 -1
  188. package/es/components/pointCloudView/PointCloudBackView.js +1 -1
  189. package/es/components/pointCloudView/PointCloudContext.js +1 -1
  190. package/es/components/pointCloudView/PointCloudInfos.js +1 -1
  191. package/es/components/pointCloudView/PointCloudLayout.js +1 -1
  192. package/es/components/pointCloudView/PointCloudListener.js +1 -1
  193. package/es/components/pointCloudView/PointCloudSegment2DView.js +1 -1
  194. package/es/components/pointCloudView/PointCloudSideView.js +1 -1
  195. package/es/components/pointCloudView/PointCloudTopView.js +1 -1
  196. package/es/components/pointCloudView/components/HighlightVisible/index.js +1 -1
  197. package/es/components/pointCloudView/hooks/useBoxes.js +1 -1
  198. package/es/components/pointCloudView/hooks/useDataLinkSwitch.js +1 -0
  199. package/es/components/pointCloudView/hooks/useHighlight.js +1 -1
  200. package/es/components/pointCloudView/hooks/useHistory.js +1 -1
  201. package/es/components/pointCloudView/hooks/usePointCloudViews.js +1 -1
  202. package/es/components/pointCloudView/hooks/usePolygon.js +1 -1
  203. package/es/components/pointCloudView/hooks/useRotate.js +1 -1
  204. package/es/components/pointCloudView/hooks/useRotateEdge.js +1 -0
  205. package/es/components/pointCloudView/hooks/useSingleBox.js +1 -1
  206. package/es/components/pointCloudView/hooks/useStatus.js +1 -1
  207. package/es/components/pointCloudView/hooks/useTimeoutFunc.js +1 -0
  208. package/es/components/pointCloudView/hooks/useWindowKeydownListener.js +1 -0
  209. package/es/components/pointCloudView/index.js +1 -1
  210. package/es/components/pointCloudView/utils/event-polyfill.js +1 -0
  211. package/es/components/pointCloudView/utils/map.js +1 -0
  212. package/es/components/subAttributeList/index.js +1 -0
  213. package/es/components/videoAnnotate/videoClipTool/index.js +1 -1
  214. package/es/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.js +1 -1
  215. package/es/hooks/useToolStyle.js +1 -0
  216. package/es/index.css +138 -17
  217. package/es/index.js +1 -1
  218. package/es/store/Actions.js +1 -1
  219. package/es/store/annotatedBox/index.js +1 -1
  220. package/es/store/annotation/actionCreators.js +1 -1
  221. package/es/store/annotation/reducer.js +1 -1
  222. package/es/utils/AnnotationDataUtils.js +1 -1
  223. package/es/utils/ToolPointCloudBoxRenderHelper.js +1 -0
  224. package/es/utils/index.js +1 -1
  225. package/es/views/MainView/index.js +1 -1
  226. package/es/views/MainView/sidebar/NLPSidebar/NLPAnnotatedList.js +1 -1
  227. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.js +1 -0
  228. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.module.scss.js +1 -0
  229. package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
  230. package/es/views/MainView/sidebar/TagSidebar/index.js +1 -1
  231. package/es/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
  232. package/es/views/MainView/toolFooter/BatchSwitchConnectIn2DView/BatchSwitchConnectIn2DView.js +1 -0
  233. package/es/views/MainView/toolFooter/BatchSwitchConnectIn2DView/Icons.js +1 -0
  234. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -1
  235. package/es/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js +1 -1
  236. package/package.json +5 -3
  237. package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +0 -1
  238. package/dist/assets/icons/9d70807.svg +0 -5
  239. package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +0 -1
@@ -45,6 +45,7 @@ interface IProps {
45
45
  /** 更新截取片段数据 */
46
46
  updateRegion?: (region: IAudioTimeSlice) => void;
47
47
  isEdit?: boolean;
48
+ clipTextList: ITextConfigItem[];
48
49
  }
49
50
  export declare const SingleTextInput: (props: any) => React.JSX.Element;
50
51
  /** 文本工具的文本框和对照按钮 */
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @file Process audio tool data
3
+ * @author lixinghua <lixinghua_vendor@sensetime.com>
4
+ * @date 2024.05.14
5
+ */
6
+ import { IAudioTimeSlice, ITextConfigItem } from '@labelbee/lb-utils';
7
+ export default class DataTransform {
8
+ static getClipTextByConfig: (region: IAudioTimeSlice, clipTextList: ITextConfigItem[], isDefault?: boolean) => IAudioTimeSlice;
9
+ }
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
- import { IAudioTimeSlice } from '@labelbee/lb-utils';
2
+ import { IAudioTimeSlice, ITextConfigItem } from '@labelbee/lb-utils';
3
3
  import { ISelectedRegion } from '@/components/audioAnnotate/audioContext';
4
4
  import { IInputList, RenderFooter } from '@/types/main';
5
5
  export interface ISetSelectedRegionParams extends ISelectedRegion {
6
6
  /** 是否立即播放截取片段 */
7
7
  playImmediately?: boolean;
8
+ isLoopStatus?: boolean;
8
9
  }
9
10
  interface IAudioPlayerContext {
10
11
  count?: number;
@@ -12,32 +13,38 @@ interface IAudioPlayerContext {
12
13
  toolName: string;
13
14
  imgIndex: number;
14
15
  }
15
- export declare const AudioPlayerContext: React.Context<IAudioPlayerContext>;
16
- export declare const AudioPlayer: ({ fileData, onLoaded, context, invalid, height, hideError, onError, updateRegion, removeRegion, regions, activeToolPanel, clipConfigurable, clipTextConfigurable, clipAttributeList, clipAttributeConfigurable, isCheck, hoverRegionId, footer, drawLayerSlot, }: {
16
+ interface IProps {
17
17
  fileData: any;
18
- height?: number | undefined;
18
+ height?: number;
19
19
  invalid: boolean;
20
20
  onLoaded?: any;
21
- onError?: (() => void) | undefined;
22
- context?: IAudioPlayerContext | undefined;
23
- hideError?: boolean | undefined;
24
- /** 截取片段数据:regions变化不会触发更新 */
25
- regions?: IAudioTimeSlice[] | undefined;
26
- /** 更新截取片段,如果传入的id不存在,会新建一个数据 */
27
- updateRegion?: ((region: IAudioTimeSlice) => void) | undefined;
28
- /** 根据id删除截取数据 */
29
- removeRegion?: ((id: string) => void) | undefined;
30
- /** 当前使用的工具panel,用于判断是否展示批注层 */
31
- activeToolPanel?: string | undefined;
21
+ onError?: () => void;
22
+ context?: IAudioPlayerContext;
23
+ hideError?: boolean;
24
+ /** Intercepting fragment data: area changes do not trigger updates */
25
+ regions?: IAudioTimeSlice[];
26
+ /** Update the intercepted fragment. If the passed id does not exist, a new data will be created. */
27
+ updateRegion?: (region: IAudioTimeSlice) => void;
28
+ /** Delete intercepted data based on ID */
29
+ removeRegion?: (id: string) => void;
30
+ /** The currently used tool panel is used to determine whether to display the annotation layer */
31
+ activeToolPanel?: string;
32
32
  clipConfigurable: boolean;
33
33
  clipTextConfigurable: boolean;
34
34
  clipAttributeConfigurable: boolean;
35
+ secondaryAttributeConfigurable: boolean;
36
+ subAttributeList: IInputList[];
35
37
  clipAttributeList: IInputList[];
36
- /** 是否是查看模式:查看模式需要禁用截取的新建、调整功能 */
37
- isCheck?: boolean | undefined;
38
- /** 查看模式用到的hoverId */
39
- hoverRegionId?: string | undefined;
40
- footer?: RenderFooter | undefined;
38
+ /** Whether it is in view mode: In view mode, the new and adjustment functions of interception need to be disabled */
39
+ isCheck?: boolean;
40
+ /** View the hoverId used in the pattern */
41
+ hoverRegionId?: string;
42
+ footer?: RenderFooter;
41
43
  drawLayerSlot?: any;
42
- }) => React.JSX.Element;
44
+ clipTextList: ITextConfigItem[];
45
+ lang?: string;
46
+ }
47
+ export declare const AudioPlayerContext: React.Context<IAudioPlayerContext>;
48
+ export declare const AudioPlayer: ({ fileData, onLoaded, context, invalid, height, hideError, onError, updateRegion, removeRegion, regions, activeToolPanel, clipConfigurable, clipTextConfigurable, clipAttributeList, clipAttributeConfigurable, secondaryAttributeConfigurable, subAttributeList, isCheck, hoverRegionId, footer, drawLayerSlot, clipTextList, lang, }: IProps) => React.JSX.Element;
49
+ export declare const WrapAudioPlayer: (props: IProps) => React.JSX.Element;
43
50
  export {};
@@ -13,6 +13,7 @@ interface IProps {
13
13
  style?: CSSProperties;
14
14
  isToolTips?: boolean;
15
15
  wordCount?: number;
16
+ overflowMaxLines?: number;
16
17
  }
17
18
  declare const LongText: (props: IProps) => React.JSX.Element;
18
19
  export default LongText;
@@ -10,6 +10,7 @@ interface IPointCloud2DRectOperationViewProps {
10
10
  config: any;
11
11
  checkMode?: boolean;
12
12
  afterImgOnLoad: TAfterImgOnLoad;
13
+ shouldExcludePointCloudBoxListUpdate?: boolean;
13
14
  }
14
15
  declare const _default: import("react-redux").ConnectedComponent<(props: IPointCloud2DRectOperationViewProps) => React.JSX.Element, import("react-redux").Omit<IPointCloud2DRectOperationViewProps, "config">>;
15
16
  export default _default;
@@ -0,0 +1,2 @@
1
+ /// <reference types="lodash" />
2
+ export declare const useUpdateRectList: (fn: () => void) => import("lodash").DebouncedFunc<() => void>;
@@ -0,0 +1,8 @@
1
+ import { IPointCloudBoxRect, IPointCloud2DRectOperationViewRect } from '@labelbee/lb-utils';
2
+ /**
3
+ * 2D视图仅显示选中框体
4
+ *
5
+ * @description 参考 https://y631vj6044.feishu.cn/docx/VZLBdgvU8oJUfSxkOy3cswkKn3f
6
+ * ```选择俯视图对应框体,在选中状态下,2D视图仅展示该框体,其它框体隐藏,非选中状态下还是保持和现有一致都展示```
7
+ */
8
+ export declare const selectSpecifiedRectsFromTopViewSelectedIds: (selectedIdsByBoxList: string[], rectListByBoxList: IPointCloud2DRectOperationViewRect[], rectListInImage: IPointCloudBoxRect[]) => (IPointCloudBoxRect | IPointCloud2DRectOperationViewRect)[];
@@ -14,6 +14,7 @@ export interface IAnnotationDataTemporarily {
14
14
  export interface IAnnotationData2dView {
15
15
  annotations: IAnnotationDataTemporarily[];
16
16
  url: string;
17
+ fallbackUrl?: string;
17
18
  calName?: string;
18
19
  calib?: ICalib;
19
20
  path: string;
@@ -24,5 +25,5 @@ interface IProps extends IA2MapStateProps {
24
25
  checkMode?: boolean;
25
26
  measureVisible?: boolean;
26
27
  }
27
- declare const _default: import("react-redux").ConnectedComponent<({ currentData, config, thumbnailWidth, isEnlargeTopView, highlightAttribute, loadPCDFileLoading, checkMode, measureVisible }: IProps) => React.JSX.Element | null, import("react-redux").Omit<IProps, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "stepInfo" | "currentData" | "configString">>;
28
+ declare const _default: import("react-redux").ConnectedComponent<({ currentData, config, thumbnailWidth, isEnlargeTopView, highlightAttribute, loadPCDFileLoading, checkMode, measureVisible, }: IProps) => React.JSX.Element | null, import("react-redux").Omit<IProps, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "stepInfo" | "currentData" | "configString">>;
28
29
  export default _default;
@@ -1,6 +1,9 @@
1
- import { IPointCloudBox, IPointCloudBoxList, IPolygonData, IPointCloudSphereList, IPointCloudSphere, ILine, EPointCloudPattern, IPointCloudSegmentation, ICalib, ISize } from '@labelbee/lb-utils';
2
- import React from 'react';
1
+ import { IPointCloudBox, IPointCloudBoxList, IPolygonData, IPointCloudSphereList, IPointCloudSphere, ILine, EPointCloudPattern, IPointCloudSegmentation, ICalib, ISize, IPointCloudBoxRect, IPointCloud2DRectOperationViewRect } from '@labelbee/lb-utils';
2
+ import React, { PropsWithChildren } from 'react';
3
+ import { EPointCloudBoxRenderTrigger } from '@/utils/ToolPointCloudBoxRenderHelper';
3
4
  import { PointCloud, PointCloudAnnotation, ActionsHistory, EToolName } from '@labelbee/lb-annotation';
5
+ import type { MapIndirectWeakSet } from './utils/map';
6
+ import { WindowKeydownListenerHooker } from './hooks/useWindowKeydownListener';
4
7
  interface IPointCloudContextInstances {
5
8
  topViewInstance?: PointCloudAnnotation;
6
9
  sideViewInstance?: PointCloudAnnotation;
@@ -22,10 +25,14 @@ interface IPointCloudSegment {
22
25
  type AttrPanelLayout = '' | 'left' | 'right';
23
26
  interface IHighlight2DData {
24
27
  url: string;
28
+ fallbackUrl: string;
25
29
  calib?: ICalib;
26
30
  }
31
+ type PickRectObjct = Pick<IPointCloud2DRectOperationViewRect, 'id' | 'attribute' | 'width' | 'height' | 'x' | 'y' | 'imageName'>;
32
+ type UpdateRectListByReducer = (reducer: (prevRectList: IPointCloudBoxRect[], pickRectObject: (item: IPointCloud2DRectOperationViewRect) => PickRectObjct) => IPointCloudBoxRect[]) => void;
27
33
  export interface IPointCloudContext extends IPointCloudContextInstances, IPointCloudStatus, IPointCloudSegment {
28
34
  pointCloudBoxList: IPointCloudBoxList;
35
+ rectList: IPointCloudBoxRect[];
29
36
  pointCloudSphereList: IPointCloudSphereList;
30
37
  displayPointCloudList: IPointCloudBoxList;
31
38
  displaySphereList: IPointCloudSphereList;
@@ -47,6 +54,10 @@ export interface IPointCloudContext extends IPointCloudContextInstances, IPointC
47
54
  addPointCloudSphere: (sphereParams: IPointCloudSphere) => IPointCloudSphere[];
48
55
  polygonList: IPolygonData[];
49
56
  setPolygonList: (polygonList: IPolygonData[]) => void;
57
+ setRectList: (rectList: IPointCloudBoxRect[]) => void;
58
+ addRectIn2DView: (rect: IPointCloud2DRectOperationViewRect) => void;
59
+ removeRectIn2DView: (rects: IPointCloud2DRectOperationViewRect[]) => void;
60
+ updateRectIn2DView: (rect: IPointCloud2DRectOperationViewRect, mergeSelf?: boolean) => void;
50
61
  lineList: ILine[];
51
62
  setLineList: (lineList: ILine[]) => void;
52
63
  zoom: number;
@@ -60,7 +71,7 @@ export interface IPointCloudContext extends IPointCloudContextInstances, IPointC
60
71
  reRender: (_displayPointCloudList: IPointCloudBoxList, _polygonList: IPolygonData[], _displaySphereList: IPointCloudSphereList, _lineList: ILine[], _segmentation: IPointCloudSegmentation[]) => void;
61
72
  attrPanelLayout: AttrPanelLayout;
62
73
  setAttrPanelLayout: (layout: AttrPanelLayout) => void;
63
- syncAllViewPointCloudColor: (newPointCloudList?: IPointCloudBox[], newHighlight2DDataList?: IHighlight2DData[]) => Promise<any>;
74
+ syncAllViewPointCloudColor: (syncByTrigger: EPointCloudBoxRenderTrigger, newPointCloudList?: IPointCloudBox[], newHighlight2DDataList?: IHighlight2DData[]) => Promise<any>;
64
75
  defaultAttribute: string;
65
76
  setDefaultAttribute: (defaultAttribute: string) => void;
66
77
  pointCloudPattern: EToolName.Rect | EToolName.Polygon | EToolName.Point | EToolName.Line;
@@ -71,6 +82,8 @@ export interface IPointCloudContext extends IPointCloudContextInstances, IPointC
71
82
  clearAllDetectionInstance: () => void;
72
83
  highlight2DDataList: IHighlight2DData[];
73
84
  setHighlight2DDataList: (urlList: IHighlight2DData[]) => void;
85
+ highlight2DLoading: boolean;
86
+ setHighlight2DLoading: (loading: boolean) => void;
74
87
  imageSizes: {
75
88
  [key: string]: ISize;
76
89
  };
@@ -78,7 +91,18 @@ export interface IPointCloudContext extends IPointCloudContextInstances, IPointC
78
91
  imgNode: HTMLImageElement;
79
92
  path: string;
80
93
  }) => void;
94
+ addRectFromPointCloudBoxByImageName: (imageName: string) => boolean;
95
+ removeRectBySpecifyId: (imageName: string, ids: string[], idField?: keyof IPointCloudBoxRect) => boolean;
96
+ removeRectByPointCloudBoxId: (imageName: string) => boolean;
97
+ rectRotateSensitivity: number;
98
+ setRectRotateSensitivity: (sensitivity: number) => void;
99
+ /** imageName -> pointCloudBox.id -> [pointCloudBox, ...] */
100
+ imageNamePointCloudBoxMap: MapIndirectWeakSet<IPointCloudBox>;
101
+ /** imageName -> pointCloudBox.id -> [rect, ...] */
102
+ linkageImageNameRectMap: MapIndirectWeakSet<IPointCloudBoxRect>;
103
+ updateRectListByReducer: UpdateRectListByReducer;
104
+ windowKeydownListenerHook: WindowKeydownListenerHooker;
81
105
  }
82
106
  export declare const PointCloudContext: React.Context<IPointCloudContext>;
83
- export declare const PointCloudProvider: React.FC<{}>;
107
+ export declare const PointCloudProvider: React.FC<PropsWithChildren<{}>>;
84
108
  export {};
@@ -4,5 +4,6 @@ export declare const PointCloudContainer: React.FC<{
4
4
  toolbar?: React.ReactElement | null;
5
5
  className?: string;
6
6
  style?: React.CSSProperties;
7
+ titleNonInteractive?: boolean;
7
8
  titleOnSurface?: boolean;
8
9
  }>;
@@ -2,10 +2,11 @@
2
2
  * Render Component for highlight.
3
3
  */
4
4
  import React from 'react';
5
- declare const HighlightVisible: ({ visible, style, onClick, loading, }: {
5
+ declare const HighlightVisible: ({ visible, style, onClick, loading, disabled, }: {
6
6
  visible: boolean;
7
7
  loading: boolean;
8
8
  style?: React.CSSProperties | undefined;
9
9
  onClick: () => void;
10
+ disabled?: boolean | undefined;
10
11
  }) => React.JSX.Element;
11
12
  export default HighlightVisible;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export interface UseDataLinkSwitchOptions {
3
+ /** DOM显示层级 */
4
+ zIndex: number;
5
+ /** 是否2d框 */
6
+ is2DView: boolean;
7
+ /**
8
+ * 用来判断图片项,
9
+ * 具体参考:packages/lb-components/src/components/pointCloud2DRectOperationView/index.tsx, getRectListByBoxList函数
10
+ *
11
+ * 基于上参考,此值需确保唯一性!
12
+ */
13
+ imageName: string;
14
+ }
15
+ declare const useDataLinkSwitch: (opts: UseDataLinkSwitchOptions) => {
16
+ rendered: React.JSX.Element | null;
17
+ isLinking: boolean;
18
+ };
19
+ export default useDataLinkSwitch;
@@ -6,7 +6,7 @@
6
6
  import { IAnnotationStateProps } from '../../../store/annotation/map';
7
7
  import { ICalib } from '@labelbee/lb-utils';
8
8
  declare const useHighlight: ({ currentData }: Partial<IAnnotationStateProps>) => {
9
- toggle2dVisible: (url: string, calib?: ICalib) => Promise<void>;
9
+ toggle2dVisible: (url: string, fallbackUrl: string, calib?: ICalib) => Promise<void>;
10
10
  isHighlightVisible: (url: string) => boolean;
11
11
  };
12
12
  export { useHighlight };
@@ -69,6 +69,7 @@ export declare const usePointCloudViews: () => {
69
69
  updateViewsByDefaultSize?: undefined;
70
70
  generateRects?: undefined;
71
71
  update2DViewRect?: undefined;
72
+ remove2DViewRect?: undefined;
72
73
  } | {
73
74
  topViewAddSphere: ({ newPoint, size, zoom, trackConfigurable, }: {
74
75
  newPoint: IPointUnit;
@@ -105,4 +106,11 @@ export declare const usePointCloudViews: () => {
105
106
  boxID: string;
106
107
  imageName: string;
107
108
  }) => IPointCloudBox[] | undefined;
109
+ remove2DViewRect: (params: {
110
+ boxID: string;
111
+ imageName: string;
112
+ }) => IPointCloudBox[] | undefined;
113
+ };
114
+ export declare const useSyncRectPositionDimensionToPointCloudList: () => {
115
+ syncToPointCloudBoxList: () => IPointCloudBox[] | null;
108
116
  };
@@ -0,0 +1,9 @@
1
+ /// <reference types="lodash" />
2
+ import { IAnnotationStateProps } from '@/store/annotation/map';
3
+ /**
4
+ * PointCloud Rotate Hook
5
+ * @returns
6
+ */
7
+ export declare const useRotateEdge: ({ currentData }: IAnnotationStateProps) => {
8
+ updateRotateEdge: import("lodash").DebouncedFunc<(angle: number) => void>;
9
+ };
@@ -1,4 +1,5 @@
1
1
  import { IPointCloudBox, PartialIPointCloudBoxList } from '@labelbee/lb-utils';
2
+ import { IFileItem } from '@/types/data';
2
3
  interface IUseSingleBoxParams {
3
4
  generateRects?: (box: IPointCloudBox) => void;
4
5
  }
@@ -13,10 +14,10 @@ export declare const useSingleBox: (props?: IUseSingleBoxParams) => {
13
14
  changeValidByID: (id: string) => import("@labelbee/lb-utils").IPointCloudBoxList | undefined;
14
15
  selectNextBox: (manual?: boolean) => void;
15
16
  selectPrevBox: (manual?: boolean) => void;
16
- deletePointCloudBox: (id: string) => void;
17
+ deletePointCloudBox: (id: string, shouldUpdateMatchingRectList?: boolean) => void;
17
18
  selectedBoxes: IPointCloudBox[];
18
19
  updateSelectedBoxes: (updateList: PartialIPointCloudBoxList) => import("@labelbee/lb-utils").IPointCloudBoxList | undefined;
19
20
  getPointCloudByID: (id: string) => IPointCloudBox | undefined;
20
- deleteSelectedPointCloudBoxAndPolygon: () => void;
21
+ deleteSelectedPointCloudBoxAndPolygon: (currentData: IFileItem) => void;
21
22
  };
22
23
  export {};
@@ -0,0 +1,6 @@
1
+ export declare const isNumber: (value: unknown) => value is number;
2
+ declare const useTimeoutFunc: <T extends (...args: any[]) => void>(fn: T, delay?: number) => {
3
+ fn: T;
4
+ clear: () => void;
5
+ };
6
+ export default useTimeoutFunc;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Proivde the `useWindowKeydownListener` hook (more power except `https://github.com/alibaba/hooks/blob/master/packages/hooks/src/useEventListener/index.ts`)
3
+ * which will have `preappend` or `append` event in your order.
4
+ */
5
+ import '../utils/event-polyfill';
6
+ type KeydownListener = (e: KeyboardEvent) => void;
7
+ type Caller = (fn: KeydownListener) => () => void;
8
+ export interface WindowKeydownListenerHooker {
9
+ appendEventListener: Caller;
10
+ preappendEventListener: Caller;
11
+ /** Alias for `appendEventListener`, user-friendly name */
12
+ addEventListener: Caller;
13
+ }
14
+ export declare const getEmptyUseWindowKeydownListener: () => WindowKeydownListenerHooker;
15
+ declare const useWindowKeydownListener: () => WindowKeydownListenerHooker;
16
+ export default useWindowKeydownListener;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Extend `isImmediatePropagationStopped` in Event
3
+ */
4
+ interface Event {
5
+ /** Detect it has been call `stopImmediatePropagation` or not? */
6
+ isImmediatePropagationStopped: () => boolean;
7
+ }
8
+ declare const stopImmediatePropagationOriginal: () => void;
@@ -0,0 +1,11 @@
1
+ export type MapIndirectWeakSet<T extends object> = Map<string, Map<string, WeakSet<T>>>;
2
+ /**
3
+ * Update MapIndirectWeakSet
4
+ *
5
+ * @param map The map will be changed
6
+ * @param key0 The top key
7
+ * @param key1 The inner key
8
+ * @param value The target to be set
9
+ * @returns return map
10
+ */
11
+ export declare const addMapIndirectWeakSetItem: <T extends object>(map: MapIndirectWeakSet<T>, key0: string, key1: string, value: T) => MapIndirectWeakSet<T>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { IInputList } from '@labelbee/lb-utils';
3
+ interface IProps {
4
+ subAttributeList: IInputList[];
5
+ setSubAttribute: (value: string, subAttribute: string) => void;
6
+ getValue: (subAttribute: IInputList) => undefined | string;
7
+ lang?: string;
8
+ }
9
+ declare const WrapSubAttributeList: (props: IProps) => React.JSX.Element;
10
+ export default WrapSubAttributeList;
@@ -20,8 +20,9 @@ export interface IVideoAnnotateProps {
20
20
  drawLayerSlot?: DrawLayerSlot;
21
21
  footer?: any;
22
22
  skipBeforePageTurning?: (pageTurning: Function) => void;
23
+ annotationBefore?: (setAnnotationData: Function) => void;
23
24
  }
24
25
  declare const _default: import("react-redux").ConnectedComponent<React.FC<IVideoAnnotateProps>, import("react-redux").Omit<IVideoAnnotateProps & {
25
26
  children?: React.ReactNode;
26
- }, "stepList" | "step" | "imgIndex" | "imgList" | "config" | "skipBeforePageTurning" | "loading" | "path" | "stepInfo">>;
27
+ }, "step" | "stepList" | "imgIndex" | "imgList" | "config" | "skipBeforePageTurning" | "loading" | "path" | "stepInfo">>;
27
28
  export default _default;
@@ -49,7 +49,7 @@ declare class VideoClipTool extends React.Component<IVideoClipProps, IState> {
49
49
  videoPlayer?: any;
50
50
  videoNode?: HTMLVideoElement;
51
51
  videoRef?: HTMLVideoElement;
52
- throttledUpdateTime: _.DebouncedFunc<(newValue: number) => void>;
52
+ throttledUpdateTime: _.DebouncedFuncLeading<(newValue: number) => void>;
53
53
  constructor(props: IVideoClipProps);
54
54
  get valid(): boolean;
55
55
  get config(): any;
@@ -91,6 +91,7 @@ declare class VideoClipTool extends React.Component<IVideoClipProps, IState> {
91
91
  * @returns
92
92
  */
93
93
  toggleClipStatus: (curTime?: number) => void;
94
+ setClipResult: (curTime?: number) => void;
94
95
  /** 添加时间点 */
95
96
  addTime: () => void;
96
97
  /** 更新当前时间 */
@@ -65,7 +65,7 @@ export declare class TagToolInstanceAdaptor extends React.Component<IVideoTagIns
65
65
  value: string;
66
66
  };
67
67
  isMulti: boolean;
68
- }, existValue?: ObjectString) => _.Dictionary<string | undefined>;
68
+ }, existData?: ObjectString) => _.Dictionary<string | undefined>;
69
69
  setResult: (tagResult: any[]) => void;
70
70
  setLabel: (num1: number, num2: number) => void;
71
71
  /**
@@ -0,0 +1,30 @@
1
+ /**
2
+ * The file is about `ToolStyle` context.
3
+ *
4
+ * What will provide:
5
+ * 1. give the explicit `toolStyle` config
6
+ * 2. give hook for reading context
7
+ *
8
+ * Who will use/consume:
9
+ * 1. `BasicToolOperation` class & its derived class
10
+ * 2. `DrawUtils`
11
+ *
12
+ */
13
+ import React, { FC, PropsWithChildren } from 'react';
14
+ import type { ToolStyle } from '../types/toolStyle';
15
+ declare const validFields: readonly ["hiddenText"];
16
+ type ValidField = typeof validFields[number];
17
+ type OptionalToolStyle = Pick<ToolStyle, ValidField>;
18
+ export declare const ToolStyleContext: React.Context<{
19
+ value: OptionalToolStyle;
20
+ updateValue: (value: Partial<OptionalToolStyle>) => void;
21
+ }>;
22
+ export declare const useToolStyleContext: () => {
23
+ value: OptionalToolStyle;
24
+ updateValue: (value: Partial<OptionalToolStyle>) => void;
25
+ };
26
+ interface ToolStyleProviderProps {
27
+ value?: OptionalToolStyle;
28
+ }
29
+ export declare const ToolStyleProvider: FC<PropsWithChildren<ToolStyleProviderProps>>;
30
+ export {};
@@ -9,15 +9,20 @@ import { VideoTagTool } from '@/components/videoAnnotate/videoTagTool/TagToolIns
9
9
  import './index.scss';
10
10
  import PredictTracking from '@/components/predictTracking';
11
11
  import LLMToolView from '@/components/LLMToolView';
12
- import SwitchCuboidBoxIn2DView from '@/views/MainView/toolFooter/SwitchCuboidBoxIn2DView';
12
+ import SwitchCuboidBoxIn2DView, { SwitchCuboidBoxIn2DViewStateMode } from '@/views/MainView/toolFooter/SwitchCuboidBoxIn2DView';
13
+ import BatchSwitchConnectIn2DView from '@/views/MainView/toolFooter/BatchSwitchConnectIn2DView';
13
14
  import MeasureCanvas from './components/measureCanvas';
14
15
  import AnnotatedBox from './views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox';
16
+ import RectRotateSensitivitySlider from './views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider';
15
17
  import { FindTrackIDIndexInCheckMode as FindTrackIDIndex } from './views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex';
18
+ import { WrapAudioPlayer as AudioPlayer } from './components/audioPlayer';
19
+ import { generatePointCloudBoxRects } from './utils';
20
+ import SubAttributeList from './components/subAttributeList';
16
21
  export declare const store: import("redux").Store<{}, import("redux").Action<any>> & {
17
22
  dispatch: unknown;
18
23
  };
19
24
  declare const _default: React.ForwardRefExoticComponent<AppProps & React.RefAttributes<unknown>>;
20
25
  export default _default;
21
- export { AnnotationView, PointCloudAnnotationView, QuestionView, TextContent, LLMToolView, i18n, VideoTagTool, PredictTracking, SwitchCuboidBoxIn2DView, MeasureCanvas, AnnotatedBox, FindTrackIDIndex, };
26
+ export { AnnotationView, PointCloudAnnotationView, QuestionView, TextContent, LLMToolView, i18n, VideoTagTool, PredictTracking, SwitchCuboidBoxIn2DView, SwitchCuboidBoxIn2DViewStateMode, BatchSwitchConnectIn2DView, MeasureCanvas, AnnotatedBox, RectRotateSensitivitySlider, FindTrackIDIndex, AudioPlayer, generatePointCloudBoxRects, SubAttributeList, };
22
27
  export * from './constant';
23
28
  export * from './typeTem';
@@ -40,6 +40,7 @@ export declare const ANNOTATION_ACTIONS: {
40
40
  SET_PREDICT_RESULT: string;
41
41
  SET_HIGHLIGHT_ATTRIBUTE: string;
42
42
  UPDATE_PRE_DATA_PROCESS: string;
43
+ UPDATE_IMG_INDEX_BY_EXTERNAL: string;
43
44
  };
44
45
  export declare const IMAGE_ATTRIBUTE_ACTIONS: {
45
46
  UPDATE_IMG_ATTRIBUTE: string;
@@ -8,6 +8,8 @@ interface Store {
8
8
  setHighlightIDs: (highlightIDs: number[]) => void;
9
9
  selectedIDs: string[];
10
10
  setSelectedIDs: (selectedIDs: string[]) => void;
11
+ rectRotateSensitivity: number;
12
+ setRectRotateSensitivity: (sensitivity: number) => void;
11
13
  setPtCtx: (ptCtx: IPointCloudContext) => void;
12
14
  }
13
15
  declare const useAnnotatedBoxStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Store>>;
@@ -1,5 +1,5 @@
1
1
  import { IStepInfo } from '@/types/step';
2
- import { GetFileData, LoadFileList, IFileItem, OnPageChange, OnSave, OnStepChange, OnSubmit } from '@/types/data';
2
+ import { GetFileData, LoadFileList, IFileItem, OnPageChange, OnSave, OnStepChange, OnSubmit, GetImgIndexByExternal } from '@/types/data';
3
3
  import { AnnotationActionTypes, ToolInstance } from './types';
4
4
  import { ESubmitType } from '@/constant';
5
5
  import { EPageTurningOperation } from '@/data/enums/AnnotationSize';
@@ -28,6 +28,7 @@ export declare function UpdateSkipBeforePageTurning(skipBeforePageTurning: (page
28
28
  export declare function UpdateBeforeRotate(beforeRotate: () => {}): AnnotationActionTypes;
29
29
  export declare function UpdatePreDataProcess(preDataProcess: () => {}): AnnotationActionTypes;
30
30
  export declare function CopyBackWordResult(): AnnotationActionTypes;
31
+ export declare function UpdateImgIndexByExternal(getImgIndexByExternal: GetImgIndexByExternal): AnnotationActionTypes;
31
32
  export declare function BatchUpdateTrackID({ id, newID, rangeIndex, imgList, }: {
32
33
  id: number;
33
34
  newID: number;
@@ -43,7 +44,7 @@ export declare const UpdateHighlightAttribute: (attribute: string) => Annotation
43
44
  * 初始化任务数据
44
45
  * @param param0
45
46
  */
46
- export declare function InitTaskData({ onSubmit, onSave, onPageChange, onStepChange, getFileData, pageSize, loadFileList, step, stepList, skipBeforePageTurning, beforeRotate, checkMode, highlightAttribute, preDataProcess, }: any): any;
47
+ export declare function InitTaskData({ onSubmit, onSave, onPageChange, onStepChange, getFileData, pageSize, loadFileList, step, stepList, skipBeforePageTurning, beforeRotate, checkMode, highlightAttribute, preDataProcess, getImgIndexByExternal, }: any): any;
47
48
  /**
48
49
  * 初始化任务数据
49
50
  * @param param0
@@ -54,4 +54,5 @@ export declare const annotationReducer: (state: {
54
54
  predictionResultVisible: boolean;
55
55
  highlightAttribute: string;
56
56
  preDataProcess?: ((params: import("../../App").IPreDataProcessParams) => IPointCloudBox[]) | undefined;
57
+ getImgIndexByExternal?: import("@/types/data").GetImgIndexByExternal | undefined;
57
58
  } | undefined, action: AnnotationActionTypes) => AnnotationState;
@@ -1,7 +1,7 @@
1
1
  import { AnnotationEngine, RectOperation, TagOperation, TextToolOperation, PointOperation, PolygonOperation, LineToolOperation } from '@labelbee/lb-annotation';
2
2
  import { ANNOTATION_ACTIONS } from '@/store/Actions';
3
3
  import { IStepInfo } from '@/types/step';
4
- import { OnSubmit, IFileItem, GetFileData, OnSave, OnPageChange, OnStepChange, LoadFileList } from '@/types/data';
4
+ import { OnSubmit, IFileItem, GetFileData, OnSave, OnPageChange, OnStepChange, LoadFileList, GetImgIndexByExternal } from '@/types/data';
5
5
  import { ESubmitType } from '@/constant';
6
6
  import { IPointCloudBox } from '@labelbee/lb-utils';
7
7
  import { IPreDataProcessParams } from '@/App';
@@ -47,6 +47,7 @@ export interface AnnotationState {
47
47
  predictionResultVisible: boolean;
48
48
  highlightAttribute: string;
49
49
  preDataProcess?: (params: IPreDataProcessParams) => IPointCloudBox[];
50
+ getImgIndexByExternal?: GetImgIndexByExternal;
50
51
  }
51
52
  interface UpdateToolInstance {
52
53
  type: typeof ANNOTATION_ACTIONS.UPDATE_TOOL_INSTANCE;
@@ -135,6 +136,12 @@ interface UpdateGetFileList {
135
136
  getFileData: LoadFileList;
136
137
  };
137
138
  }
139
+ interface UpdataImgIndexByExternal {
140
+ type: typeof ANNOTATION_ACTIONS.UPDATE_IMG_INDEX_BY_EXTERNAL;
141
+ payload: {
142
+ getImgIndexByExternal: GetImgIndexByExternal;
143
+ };
144
+ }
138
145
  interface CopyBackWordResult extends CommonActions {
139
146
  type: typeof ANNOTATION_ACTIONS.COPY_BACKWARD_RESULT;
140
147
  }
@@ -158,5 +165,5 @@ interface BatchUpdateResultByTrackID {
158
165
  range: [number, number];
159
166
  };
160
167
  }
161
- export type AnnotationActionTypes = UpdateToolInstance | UpdateImgList | UpdateAnnotationConfig | SubmitFileData | LoadFileData | SetTaskConfig | InitTool | UpdateOnSubmit | UpdateOnPageChange | UpdateOnStepChange | UpdateGetFileData | UpdatePageSize | UpdateGetFileList | CopyBackWordResult | UpdateOnSave | BatchUpdateTrackID | BatchUpdateResultByTrackID | InitAnnotationState;
168
+ export type AnnotationActionTypes = UpdateToolInstance | UpdateImgList | UpdateAnnotationConfig | SubmitFileData | LoadFileData | SetTaskConfig | InitTool | UpdateOnSubmit | UpdateOnPageChange | UpdateOnStepChange | UpdateGetFileData | UpdatePageSize | UpdateGetFileList | CopyBackWordResult | UpdateOnSave | BatchUpdateTrackID | BatchUpdateResultByTrackID | UpdataImgIndexByExternal | InitAnnotationState;
162
169
  export {};