@labelbee/lb-components 1.10.0-alpha.2 → 1.10.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (926) hide show
  1. package/dist/App.js +146 -1
  2. package/dist/App.js.map +1 -0
  3. package/dist/assets/annotation/common/icon_adapt.svg.js +6 -1
  4. package/dist/assets/annotation/common/icon_adapt.svg.js.map +1 -0
  5. package/dist/assets/annotation/common/icon_adapt_black.svg.js +6 -1
  6. package/dist/assets/annotation/common/icon_adapt_black.svg.js.map +1 -0
  7. package/dist/assets/annotation/common/icon_back.svg.js +6 -1
  8. package/dist/assets/annotation/common/icon_back.svg.js.map +1 -0
  9. package/dist/assets/annotation/common/icon_backA.svg.js +6 -1
  10. package/dist/assets/annotation/common/icon_backA.svg.js.map +1 -0
  11. package/dist/assets/annotation/common/icon_clear.svg.js +6 -1
  12. package/dist/assets/annotation/common/icon_clear.svg.js.map +1 -0
  13. package/dist/assets/annotation/common/icon_clearSmall.svg.js +6 -1
  14. package/dist/assets/annotation/common/icon_clearSmall.svg.js.map +1 -0
  15. package/dist/assets/annotation/common/icon_clearSmall_a.svg.js +6 -1
  16. package/dist/assets/annotation/common/icon_clearSmall_a.svg.js.map +1 -0
  17. package/dist/assets/annotation/common/icon_clear_a.svg.js +6 -1
  18. package/dist/assets/annotation/common/icon_clear_a.svg.js.map +1 -0
  19. package/dist/assets/annotation/common/icon_invalid.svg.js +6 -1
  20. package/dist/assets/annotation/common/icon_invalid.svg.js.map +1 -0
  21. package/dist/assets/annotation/common/icon_invalid_a.svg.js +6 -1
  22. package/dist/assets/annotation/common/icon_invalid_a.svg.js.map +1 -0
  23. package/dist/assets/annotation/common/icon_next.svg.js +6 -1
  24. package/dist/assets/annotation/common/icon_next.svg.js.map +1 -0
  25. package/dist/assets/annotation/common/icon_nextA.svg.js +6 -1
  26. package/dist/assets/annotation/common/icon_nextA.svg.js.map +1 -0
  27. package/dist/assets/annotation/common/icon_r.svg.js +6 -1
  28. package/dist/assets/annotation/common/icon_r.svg.js.map +1 -0
  29. package/dist/assets/annotation/common/icon_rA.svg.js +6 -1
  30. package/dist/assets/annotation/common/icon_rA.svg.js.map +1 -0
  31. package/dist/assets/annotation/common/icon_save.svg.js +6 -1
  32. package/dist/assets/annotation/common/icon_save.svg.js.map +1 -0
  33. package/dist/assets/annotation/common/icon_saveA.svg.js +6 -1
  34. package/dist/assets/annotation/common/icon_saveA.svg.js.map +1 -0
  35. package/dist/assets/annotation/image/brightness.svg.js +6 -1
  36. package/dist/assets/annotation/image/brightness.svg.js.map +1 -0
  37. package/dist/assets/annotation/image/contrast.svg.js +6 -1
  38. package/dist/assets/annotation/image/contrast.svg.js.map +1 -0
  39. package/dist/assets/annotation/image/icon_yuantu.svg.js +6 -1
  40. package/dist/assets/annotation/image/icon_yuantu.svg.js.map +1 -0
  41. package/dist/assets/annotation/image/saturation.svg.js +6 -1
  42. package/dist/assets/annotation/image/saturation.svg.js.map +1 -0
  43. package/dist/assets/annotation/lineTool/icon_line.svg.js +6 -1
  44. package/dist/assets/annotation/lineTool/icon_line.svg.js.map +1 -0
  45. package/dist/assets/annotation/lineTool/icon_line_a.svg.js +6 -1
  46. package/dist/assets/annotation/lineTool/icon_line_a.svg.js.map +1 -0
  47. package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +6 -1
  48. package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js.map +1 -0
  49. package/dist/assets/annotation/pointCloudTool/copy.svg.js +6 -1
  50. package/dist/assets/annotation/pointCloudTool/copy.svg.js.map +1 -0
  51. package/dist/assets/annotation/pointCloudTool/nextBox.svg.js +6 -1
  52. package/dist/assets/annotation/pointCloudTool/nextBox.svg.js.map +1 -0
  53. package/dist/assets/annotation/pointCloudTool/nodata.svg.js +6 -1
  54. package/dist/assets/annotation/pointCloudTool/nodata.svg.js.map +1 -0
  55. package/dist/assets/annotation/pointCloudTool/patse.svg.js +6 -1
  56. package/dist/assets/annotation/pointCloudTool/patse.svg.js.map +1 -0
  57. package/dist/assets/annotation/pointCloudTool/prevBox.svg.js +6 -1
  58. package/dist/assets/annotation/pointCloudTool/prevBox.svg.js.map +1 -0
  59. package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +6 -1
  60. package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js.map +1 -0
  61. package/dist/assets/annotation/pointCloudTool/selectAll.svg.js +6 -1
  62. package/dist/assets/annotation/pointCloudTool/selectAll.svg.js.map +1 -0
  63. package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js +6 -1
  64. package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js.map +1 -0
  65. package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js +6 -1
  66. package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js.map +1 -0
  67. package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +6 -1
  68. package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js.map +1 -0
  69. package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +6 -1
  70. package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js.map +1 -0
  71. package/dist/assets/annotation/pointTool/icon_point.svg.js +6 -1
  72. package/dist/assets/annotation/pointTool/icon_point.svg.js.map +1 -0
  73. package/dist/assets/annotation/pointTool/icon_point_a.svg.js +6 -1
  74. package/dist/assets/annotation/pointTool/icon_point_a.svg.js.map +1 -0
  75. package/dist/assets/annotation/polygonTool/icon_polygon.svg.js +6 -1
  76. package/dist/assets/annotation/polygonTool/icon_polygon.svg.js.map +1 -0
  77. package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js +6 -1
  78. package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js.map +1 -0
  79. package/dist/assets/annotation/rectTool/icon_rect.svg.js +6 -1
  80. package/dist/assets/annotation/rectTool/icon_rect.svg.js.map +1 -0
  81. package/dist/assets/annotation/rectTool/icon_rect_a.svg.js +6 -1
  82. package/dist/assets/annotation/rectTool/icon_rect_a.svg.js.map +1 -0
  83. package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +6 -1
  84. package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js.map +1 -0
  85. package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +6 -1
  86. package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js.map +1 -0
  87. package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +6 -1
  88. package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js.map +1 -0
  89. package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +6 -1
  90. package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js.map +1 -0
  91. package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +6 -1
  92. package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js.map +1 -0
  93. package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +6 -1
  94. package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js.map +1 -0
  95. package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +6 -1
  96. package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js.map +1 -0
  97. package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +6 -1
  98. package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js.map +1 -0
  99. package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +6 -1
  100. package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js.map +1 -0
  101. package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +6 -1
  102. package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js.map +1 -0
  103. package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +6 -1
  104. package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js.map +1 -0
  105. package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +6 -1
  106. package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js.map +1 -0
  107. package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +6 -1
  108. package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js.map +1 -0
  109. package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +6 -1
  110. package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js.map +1 -0
  111. package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +6 -1
  112. package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js.map +1 -0
  113. package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +6 -1
  114. package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js.map +1 -0
  115. package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +6 -1
  116. package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js.map +1 -0
  117. package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +6 -1
  118. package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js.map +1 -0
  119. package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +6 -1
  120. package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js.map +1 -0
  121. package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +6 -1
  122. package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js.map +1 -0
  123. package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +6 -1
  124. package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js.map +1 -0
  125. package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +6 -1
  126. package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js.map +1 -0
  127. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +6 -1
  128. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js.map +1 -0
  129. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +6 -1
  130. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js.map +1 -0
  131. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +6 -1
  132. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js.map +1 -0
  133. package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +6 -1
  134. package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js.map +1 -0
  135. package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +6 -1
  136. package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js.map +1 -0
  137. package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +6 -1
  138. package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js.map +1 -0
  139. package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +6 -1
  140. package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js.map +1 -0
  141. package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +6 -1
  142. package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js.map +1 -0
  143. package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +6 -1
  144. package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js.map +1 -0
  145. package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +6 -1
  146. package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js.map +1 -0
  147. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +6 -1
  148. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js.map +1 -0
  149. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +6 -1
  150. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js.map +1 -0
  151. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +6 -1
  152. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js.map +1 -0
  153. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +6 -1
  154. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js.map +1 -0
  155. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +6 -1
  156. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js.map +1 -0
  157. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +6 -1
  158. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js.map +1 -0
  159. package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +6 -1
  160. package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js.map +1 -0
  161. package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +6 -1
  162. package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js.map +1 -0
  163. package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +6 -1
  164. package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js.map +1 -0
  165. package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +6 -1
  166. package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js.map +1 -0
  167. package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +6 -1
  168. package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js.map +1 -0
  169. package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +6 -1
  170. package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js.map +1 -0
  171. package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +6 -1
  172. package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js.map +1 -0
  173. package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +6 -1
  174. package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js.map +1 -0
  175. package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +6 -1
  176. package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js.map +1 -0
  177. package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js +6 -1
  178. package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js.map +1 -0
  179. package/dist/assets/annotation/video/icon_keyboard_h.svg.js +6 -1
  180. package/dist/assets/annotation/video/icon_keyboard_h.svg.js.map +1 -0
  181. package/dist/assets/attributeIcon/eraser.svg.js +6 -1
  182. package/dist/assets/attributeIcon/eraser.svg.js.map +1 -0
  183. package/dist/assets/attributeIcon/eraser_a.svg.js +6 -1
  184. package/dist/assets/attributeIcon/eraser_a.svg.js.map +1 -0
  185. package/dist/assets/attributeIcon/pen.svg.js +6 -1
  186. package/dist/assets/attributeIcon/pen.svg.js.map +1 -0
  187. package/dist/assets/attributeIcon/pen_a.svg.js +6 -1
  188. package/dist/assets/attributeIcon/pen_a.svg.js.map +1 -0
  189. package/dist/assets/attributeIcon/zoomUp.svg.js +6 -1
  190. package/dist/assets/attributeIcon/zoomUp.svg.js.map +1 -0
  191. package/dist/assets/predictTracking/icon.svg.js +6 -1
  192. package/dist/assets/predictTracking/icon.svg.js.map +1 -0
  193. package/dist/assets/toolStyle/icon_border.svg.js +6 -1
  194. package/dist/assets/toolStyle/icon_border.svg.js.map +1 -0
  195. package/dist/assets/toolStyle/icon_borderColor.svg.js +6 -1
  196. package/dist/assets/toolStyle/icon_borderColor.svg.js.map +1 -0
  197. package/dist/assets/toolStyle/icon_opacityFill.svg.js +6 -1
  198. package/dist/assets/toolStyle/icon_opacityFill.svg.js.map +1 -0
  199. package/dist/assets/toolStyle/icon_opacityStroke.svg.js +6 -1
  200. package/dist/assets/toolStyle/icon_opacityStroke.svg.js.map +1 -0
  201. package/dist/components/AnnotationView/index.js +160 -1
  202. package/dist/components/AnnotationView/index.js.map +1 -0
  203. package/dist/components/AnnotationView/pointCloudAnnotationView.js +85 -1
  204. package/dist/components/AnnotationView/pointCloudAnnotationView.js.map +1 -0
  205. package/dist/components/annotationStepPopover/index.js +39 -1
  206. package/dist/components/annotationStepPopover/index.js.map +1 -0
  207. package/dist/components/attributeList/index.js +66 -1
  208. package/dist/components/attributeList/index.js.map +1 -0
  209. package/dist/components/checkboxList/index.js +39 -1
  210. package/dist/components/checkboxList/index.js.map +1 -0
  211. package/dist/components/colorTag/index.js +38 -1
  212. package/dist/components/colorTag/index.js.map +1 -0
  213. package/dist/components/customAntd/IconWithText/index.js +59 -1
  214. package/dist/components/customAntd/IconWithText/index.js.map +1 -0
  215. package/dist/components/customResizeHook/index.js +95 -1
  216. package/dist/components/customResizeHook/index.js.map +1 -0
  217. package/dist/components/fileException/FileError.js +61 -1
  218. package/dist/components/fileException/FileError.js.map +1 -0
  219. package/dist/components/fileException/FileInvalid.js +31 -1
  220. package/dist/components/fileException/FileInvalid.js.map +1 -0
  221. package/dist/components/fileException/index.js +38 -1
  222. package/dist/components/fileException/index.js.map +1 -0
  223. package/dist/components/pointCloudView/PointCloud2DView.js +153 -1
  224. package/dist/components/pointCloudView/PointCloud2DView.js.map +1 -0
  225. package/dist/components/pointCloudView/PointCloud3DView.js +234 -1
  226. package/dist/components/pointCloudView/PointCloud3DView.js.map +1 -0
  227. package/dist/components/pointCloudView/PointCloudBackView.js +138 -1
  228. package/dist/components/pointCloudView/PointCloudBackView.js.map +1 -0
  229. package/dist/components/pointCloudView/PointCloudContext.js +257 -1
  230. package/dist/components/pointCloudView/PointCloudContext.js.map +1 -0
  231. package/dist/components/pointCloudView/PointCloudInfos.js +146 -1
  232. package/dist/components/pointCloudView/PointCloudInfos.js.map +1 -0
  233. package/dist/components/pointCloudView/PointCloudLayout.js +28 -1
  234. package/dist/components/pointCloudView/PointCloudLayout.js.map +1 -0
  235. package/dist/components/pointCloudView/PointCloudListener.js +347 -1
  236. package/dist/components/pointCloudView/PointCloudListener.js.map +1 -0
  237. package/dist/components/pointCloudView/PointCloudSegment.js +62 -0
  238. package/dist/components/pointCloudView/PointCloudSegment.js.map +1 -0
  239. package/dist/components/pointCloudView/PointCloudSideView.js +135 -1
  240. package/dist/components/pointCloudView/PointCloudSideView.js.map +1 -0
  241. package/dist/components/pointCloudView/PointCloudTopView.js +339 -1
  242. package/dist/components/pointCloudView/PointCloudTopView.js.map +1 -0
  243. package/dist/components/pointCloudView/components/EmptyPage/index.js +24 -1
  244. package/dist/components/pointCloudView/components/EmptyPage/index.js.map +1 -0
  245. package/dist/components/pointCloudView/components/UnifyParamsModal/index.js +240 -1
  246. package/dist/components/pointCloudView/components/UnifyParamsModal/index.js.map +1 -0
  247. package/dist/components/pointCloudView/hooks/useAttribute.js +53 -1
  248. package/dist/components/pointCloudView/hooks/useAttribute.js.map +1 -0
  249. package/dist/components/pointCloudView/hooks/useBoxes.js +81 -1
  250. package/dist/components/pointCloudView/hooks/useBoxes.js.map +1 -0
  251. package/dist/components/pointCloudView/hooks/useConfig.js +33 -1
  252. package/dist/components/pointCloudView/hooks/useConfig.js.map +1 -0
  253. package/dist/components/pointCloudView/hooks/useHistory.js +173 -1
  254. package/dist/components/pointCloudView/hooks/useHistory.js.map +1 -0
  255. package/dist/components/pointCloudView/hooks/useLine.js +74 -1
  256. package/dist/components/pointCloudView/hooks/useLine.js.map +1 -0
  257. package/dist/components/pointCloudView/hooks/usePointCloudViews.js +759 -1
  258. package/dist/components/pointCloudView/hooks/usePointCloudViews.js.map +1 -0
  259. package/dist/components/pointCloudView/hooks/usePolygon.js +74 -1
  260. package/dist/components/pointCloudView/hooks/usePolygon.js.map +1 -0
  261. package/dist/components/pointCloudView/hooks/useRotate.js +47 -1
  262. package/dist/components/pointCloudView/hooks/useRotate.js.map +1 -0
  263. package/dist/components/pointCloudView/hooks/useSingleBox.js +176 -1
  264. package/dist/components/pointCloudView/hooks/useSingleBox.js.map +1 -0
  265. package/dist/components/pointCloudView/hooks/useSphere.js +51 -1
  266. package/dist/components/pointCloudView/hooks/useSphere.js.map +1 -0
  267. package/dist/components/pointCloudView/hooks/useStatus.js +92 -1
  268. package/dist/components/pointCloudView/hooks/useStatus.js.map +1 -0
  269. package/dist/components/pointCloudView/hooks/useZoom.js +42 -1
  270. package/dist/components/pointCloudView/hooks/useZoom.js.map +1 -0
  271. package/dist/components/pointCloudView/index.js +59 -1
  272. package/dist/components/pointCloudView/index.js.map +1 -0
  273. package/dist/components/predictTracking/index.js +8 -1
  274. package/dist/components/predictTracking/index.js.map +1 -0
  275. package/dist/components/predictTracking/predictTrackingIcon/index.js +104 -1
  276. package/dist/components/predictTracking/predictTrackingIcon/index.js.map +1 -0
  277. package/dist/components/predictTracking/previewResult/index.js +196 -1
  278. package/dist/components/predictTracking/previewResult/index.js.map +1 -0
  279. package/dist/components/predictTracking/previewResult/util.js +144 -1
  280. package/dist/components/predictTracking/previewResult/util.js.map +1 -0
  281. package/dist/components/videoAnnotate/index.js +50 -1
  282. package/dist/components/videoAnnotate/index.js.map +1 -0
  283. package/dist/components/videoPlayer/TagToolInstanceAdaptor.js +233 -1
  284. package/dist/components/videoPlayer/TagToolInstanceAdaptor.js.map +1 -0
  285. package/dist/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js +40 -1
  286. package/dist/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js.map +1 -0
  287. package/dist/components/videoPlayer/VideoTagLayer.js +37 -1
  288. package/dist/components/videoPlayer/VideoTagLayer.js.map +1 -0
  289. package/dist/components/videoPlayer/components/controller/index.js +131 -1
  290. package/dist/components/videoPlayer/components/controller/index.js.map +1 -0
  291. package/dist/components/videoPlayer/index.js +267 -1
  292. package/dist/components/videoPlayer/index.js.map +1 -0
  293. package/dist/components/videoPlayer/utils.js +59 -1
  294. package/dist/components/videoPlayer/utils.js.map +1 -0
  295. package/dist/configureStore.js +16 -1
  296. package/dist/configureStore.js.map +1 -0
  297. package/dist/constant/index.js +32 -1
  298. package/dist/constant/index.js.map +1 -0
  299. package/dist/constant/styleString.js +6 -1
  300. package/dist/constant/styleString.js.map +1 -0
  301. package/dist/data/Style.js +113 -1
  302. package/dist/data/Style.js.map +1 -0
  303. package/dist/data/enums/AnnotationSize.js +39 -1
  304. package/dist/data/enums/AnnotationSize.js.map +1 -0
  305. package/dist/data/enums/ToolType.js +44 -1
  306. package/dist/data/enums/ToolType.js.map +1 -0
  307. package/dist/hooks/annotation.js +81 -1
  308. package/dist/hooks/annotation.js.map +1 -0
  309. package/dist/hooks/useRafState.js +21 -1
  310. package/dist/hooks/useRafState.js.map +1 -0
  311. package/dist/hooks/useRefCache.js +14 -1
  312. package/dist/hooks/useRefCache.js.map +1 -0
  313. package/dist/hooks/useSafeSate.js +22 -1
  314. package/dist/hooks/useSafeSate.js.map +1 -0
  315. package/dist/hooks/useSize.js +45 -1
  316. package/dist/hooks/useSize.js.map +1 -0
  317. package/dist/hooks/useUnmountedRef.js +17 -1
  318. package/dist/hooks/useUnmountedRef.js.map +1 -0
  319. package/dist/index.js +90 -1
  320. package/dist/index.js.map +1 -0
  321. package/dist/store/Actions.js +57 -1
  322. package/dist/store/Actions.js.map +1 -0
  323. package/dist/store/annotation/actionCreators.js +488 -1
  324. package/dist/store/annotation/actionCreators.js.map +1 -0
  325. package/dist/store/annotation/map.js +26 -1
  326. package/dist/store/annotation/map.js.map +1 -0
  327. package/dist/store/annotation/reducer.js +669 -1
  328. package/dist/store/annotation/reducer.js.map +1 -0
  329. package/dist/store/annotation/selectors.js +15 -1
  330. package/dist/store/annotation/selectors.js.map +1 -0
  331. package/dist/store/ctx.js +19 -1
  332. package/dist/store/ctx.js.map +1 -0
  333. package/dist/store/imgAttribute/actionCreators.js +27 -1
  334. package/dist/store/imgAttribute/actionCreators.js.map +1 -0
  335. package/dist/store/imgAttribute/reducer.js +44 -1
  336. package/dist/store/imgAttribute/reducer.js.map +1 -0
  337. package/dist/store/index.js +17 -1
  338. package/dist/store/index.js.map +1 -0
  339. package/dist/store/toolStyle/actionCreators.js +22 -1
  340. package/dist/store/toolStyle/actionCreators.js.map +1 -0
  341. package/dist/store/toolStyle/reducer.js +54 -1
  342. package/dist/store/toolStyle/reducer.js.map +1 -0
  343. package/dist/types/components/pointCloudView/PointCloudSegment.d.ts +6 -0
  344. package/dist/types/components/predictTracking/previewResult/util.d.ts +2 -1
  345. package/dist/types/store/annotation/actionCreators.d.ts +1 -1
  346. package/dist/types/views/MainView/toolHeader/SwitchPattern/index.d.ts +5 -0
  347. package/dist/utils/AnnotationDataUtils.js +171 -1
  348. package/dist/utils/AnnotationDataUtils.js.map +1 -0
  349. package/dist/utils/ConfigUtils.js +22 -1
  350. package/dist/utils/ConfigUtils.js.map +1 -0
  351. package/dist/utils/PageOperator.js +99 -1
  352. package/dist/utils/PageOperator.js.map +1 -0
  353. package/dist/utils/StepUtils.js +29 -1
  354. package/dist/utils/StepUtils.js.map +1 -0
  355. package/dist/utils/TextUtils.js +45 -1
  356. package/dist/utils/TextUtils.js.map +1 -0
  357. package/dist/utils/ToolStyleUtils.js +96 -1
  358. package/dist/utils/ToolStyleUtils.js.map +1 -0
  359. package/dist/utils/ToolUtils.js +19 -1
  360. package/dist/utils/ToolUtils.js.map +1 -0
  361. package/dist/utils/data.js +77 -1
  362. package/dist/utils/data.js.map +1 -0
  363. package/dist/utils/dom.js +25 -1
  364. package/dist/utils/dom.js.map +1 -0
  365. package/dist/utils/index.js +39 -1
  366. package/dist/utils/index.js.map +1 -0
  367. package/dist/views/MainView/annotationOperation/index.js +175 -1
  368. package/dist/views/MainView/annotationOperation/index.js.map +1 -0
  369. package/dist/views/MainView/annotationTips/index.js +32 -1
  370. package/dist/views/MainView/annotationTips/index.js.map +1 -0
  371. package/dist/views/MainView/index.js +122 -1
  372. package/dist/views/MainView/index.js.map +1 -0
  373. package/dist/views/MainView/sidebar/AnnotationText/index.js +47 -1
  374. package/dist/views/MainView/sidebar/AnnotationText/index.js.map +1 -0
  375. package/dist/views/MainView/sidebar/ClearIcon/index.js +37 -1
  376. package/dist/views/MainView/sidebar/ClearIcon/index.js.map +1 -0
  377. package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +101 -1
  378. package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js.map +1 -0
  379. package/dist/views/MainView/sidebar/GeneralOperation/index.js +95 -1
  380. package/dist/views/MainView/sidebar/GeneralOperation/index.js.map +1 -0
  381. package/dist/views/MainView/sidebar/GeneralOperation/useOperationList.js +94 -1
  382. package/dist/views/MainView/sidebar/GeneralOperation/useOperationList.js.map +1 -0
  383. package/dist/views/MainView/sidebar/ImgAttributeInfo/index.js +134 -1
  384. package/dist/views/MainView/sidebar/ImgAttributeInfo/index.js.map +1 -0
  385. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +128 -1
  386. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js.map +1 -0
  387. package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +253 -1
  388. package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js.map +1 -0
  389. package/dist/views/MainView/sidebar/ScribbleSidebar/index.js +64 -1
  390. package/dist/views/MainView/sidebar/ScribbleSidebar/index.js.map +1 -0
  391. package/dist/views/MainView/sidebar/SwitchAttributeList/index.js +79 -1
  392. package/dist/views/MainView/sidebar/SwitchAttributeList/index.js.map +1 -0
  393. package/dist/views/MainView/sidebar/TagSidebar/index.js +187 -1
  394. package/dist/views/MainView/sidebar/TagSidebar/index.js.map +1 -0
  395. package/dist/views/MainView/sidebar/TextAreaFormat/index.js +112 -1
  396. package/dist/views/MainView/sidebar/TextAreaFormat/index.js.map +1 -0
  397. package/dist/views/MainView/sidebar/TextToolSidebar/index.js +235 -1
  398. package/dist/views/MainView/sidebar/TextToolSidebar/index.js.map +1 -0
  399. package/dist/views/MainView/sidebar/ToolIcons.js +87 -1
  400. package/dist/views/MainView/sidebar/ToolIcons.js.map +1 -0
  401. package/dist/views/MainView/sidebar/ToolStyle/index.js +162 -1
  402. package/dist/views/MainView/sidebar/ToolStyle/index.js.map +1 -0
  403. package/dist/views/MainView/sidebar/index.js +156 -1
  404. package/dist/views/MainView/sidebar/index.js.map +1 -0
  405. package/dist/views/MainView/toolFooter/AnnotatedAttributes/index.js +211 -1
  406. package/dist/views/MainView/toolFooter/AnnotatedAttributes/index.js.map +1 -0
  407. package/dist/views/MainView/toolFooter/FooterPopover.js +54 -1
  408. package/dist/views/MainView/toolFooter/FooterPopover.js.map +1 -0
  409. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +149 -1
  410. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js.map +1 -0
  411. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js +26 -1
  412. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js.map +1 -0
  413. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +226 -1
  414. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js.map +1 -0
  415. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +111 -1
  416. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js.map +1 -0
  417. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +55 -1
  418. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js.map +1 -0
  419. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +174 -1
  420. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js.map +1 -0
  421. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +117 -1
  422. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js.map +1 -0
  423. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +71 -1
  424. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js.map +1 -0
  425. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +18 -1
  426. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js.map +1 -0
  427. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +25 -1
  428. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js.map +1 -0
  429. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +18 -1
  430. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js.map +1 -0
  431. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js +28 -1
  432. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js.map +1 -0
  433. package/dist/views/MainView/toolFooter/FooterTips/index.js +23 -1
  434. package/dist/views/MainView/toolFooter/FooterTips/index.js.map +1 -0
  435. package/dist/views/MainView/toolFooter/HiddenTips/index.js +45 -1
  436. package/dist/views/MainView/toolFooter/HiddenTips/index.js.map +1 -0
  437. package/dist/views/MainView/toolFooter/PageNumber/index.js +48 -1
  438. package/dist/views/MainView/toolFooter/PageNumber/index.js.map +1 -0
  439. package/dist/views/MainView/toolFooter/Pagination.js +91 -1
  440. package/dist/views/MainView/toolFooter/Pagination.js.map +1 -0
  441. package/dist/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +39 -1
  442. package/dist/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js.map +1 -0
  443. package/dist/views/MainView/toolFooter/ZoomController/index.js +72 -1
  444. package/dist/views/MainView/toolFooter/ZoomController/index.js.map +1 -0
  445. package/dist/views/MainView/toolFooter/index.js +135 -1
  446. package/dist/views/MainView/toolFooter/index.js.map +1 -0
  447. package/dist/views/MainView/toolHeader/ExportData/index.js +44 -1
  448. package/dist/views/MainView/toolHeader/ExportData/index.js.map +1 -0
  449. package/dist/views/MainView/toolHeader/StepSwitch/index.js +47 -1
  450. package/dist/views/MainView/toolHeader/StepSwitch/index.js.map +1 -0
  451. package/dist/views/MainView/toolHeader/SwitchPattern/index.js +59 -0
  452. package/dist/views/MainView/toolHeader/SwitchPattern/index.js.map +1 -0
  453. package/dist/views/MainView/toolHeader/headerOption/index.js +151 -1
  454. package/dist/views/MainView/toolHeader/headerOption/index.js.map +1 -0
  455. package/dist/views/MainView/toolHeader/index.js +180 -1
  456. package/dist/views/MainView/toolHeader/index.js.map +1 -0
  457. package/es/App.js +138 -1
  458. package/es/App.js.map +1 -0
  459. package/es/assets/annotation/common/icon_adapt.svg.js +4 -1
  460. package/es/assets/annotation/common/icon_adapt.svg.js.map +1 -0
  461. package/es/assets/annotation/common/icon_adapt_black.svg.js +4 -1
  462. package/es/assets/annotation/common/icon_adapt_black.svg.js.map +1 -0
  463. package/es/assets/annotation/common/icon_back.svg.js +4 -1
  464. package/es/assets/annotation/common/icon_back.svg.js.map +1 -0
  465. package/es/assets/annotation/common/icon_backA.svg.js +4 -1
  466. package/es/assets/annotation/common/icon_backA.svg.js.map +1 -0
  467. package/es/assets/annotation/common/icon_clear.svg.js +4 -1
  468. package/es/assets/annotation/common/icon_clear.svg.js.map +1 -0
  469. package/es/assets/annotation/common/icon_clearSmall.svg.js +4 -1
  470. package/es/assets/annotation/common/icon_clearSmall.svg.js.map +1 -0
  471. package/es/assets/annotation/common/icon_clearSmall_a.svg.js +4 -1
  472. package/es/assets/annotation/common/icon_clearSmall_a.svg.js.map +1 -0
  473. package/es/assets/annotation/common/icon_clear_a.svg.js +4 -1
  474. package/es/assets/annotation/common/icon_clear_a.svg.js.map +1 -0
  475. package/es/assets/annotation/common/icon_invalid.svg.js +4 -1
  476. package/es/assets/annotation/common/icon_invalid.svg.js.map +1 -0
  477. package/es/assets/annotation/common/icon_invalid_a.svg.js +4 -1
  478. package/es/assets/annotation/common/icon_invalid_a.svg.js.map +1 -0
  479. package/es/assets/annotation/common/icon_next.svg.js +4 -1
  480. package/es/assets/annotation/common/icon_next.svg.js.map +1 -0
  481. package/es/assets/annotation/common/icon_nextA.svg.js +4 -1
  482. package/es/assets/annotation/common/icon_nextA.svg.js.map +1 -0
  483. package/es/assets/annotation/common/icon_r.svg.js +4 -1
  484. package/es/assets/annotation/common/icon_r.svg.js.map +1 -0
  485. package/es/assets/annotation/common/icon_rA.svg.js +4 -1
  486. package/es/assets/annotation/common/icon_rA.svg.js.map +1 -0
  487. package/es/assets/annotation/common/icon_save.svg.js +4 -1
  488. package/es/assets/annotation/common/icon_save.svg.js.map +1 -0
  489. package/es/assets/annotation/common/icon_saveA.svg.js +4 -1
  490. package/es/assets/annotation/common/icon_saveA.svg.js.map +1 -0
  491. package/es/assets/annotation/image/brightness.svg.js +4 -1
  492. package/es/assets/annotation/image/brightness.svg.js.map +1 -0
  493. package/es/assets/annotation/image/contrast.svg.js +4 -1
  494. package/es/assets/annotation/image/contrast.svg.js.map +1 -0
  495. package/es/assets/annotation/image/icon_yuantu.svg.js +4 -1
  496. package/es/assets/annotation/image/icon_yuantu.svg.js.map +1 -0
  497. package/es/assets/annotation/image/saturation.svg.js +4 -1
  498. package/es/assets/annotation/image/saturation.svg.js.map +1 -0
  499. package/es/assets/annotation/lineTool/icon_line.svg.js +4 -1
  500. package/es/assets/annotation/lineTool/icon_line.svg.js.map +1 -0
  501. package/es/assets/annotation/lineTool/icon_line_a.svg.js +4 -1
  502. package/es/assets/annotation/lineTool/icon_line_a.svg.js.map +1 -0
  503. package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +4 -1
  504. package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js.map +1 -0
  505. package/es/assets/annotation/pointCloudTool/copy.svg.js +4 -1
  506. package/es/assets/annotation/pointCloudTool/copy.svg.js.map +1 -0
  507. package/es/assets/annotation/pointCloudTool/nextBox.svg.js +4 -1
  508. package/es/assets/annotation/pointCloudTool/nextBox.svg.js.map +1 -0
  509. package/es/assets/annotation/pointCloudTool/nodata.svg.js +4 -1
  510. package/es/assets/annotation/pointCloudTool/nodata.svg.js.map +1 -0
  511. package/es/assets/annotation/pointCloudTool/patse.svg.js +4 -1
  512. package/es/assets/annotation/pointCloudTool/patse.svg.js.map +1 -0
  513. package/es/assets/annotation/pointCloudTool/prevBox.svg.js +4 -1
  514. package/es/assets/annotation/pointCloudTool/prevBox.svg.js.map +1 -0
  515. package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +4 -1
  516. package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js.map +1 -0
  517. package/es/assets/annotation/pointCloudTool/selectAll.svg.js +4 -1
  518. package/es/assets/annotation/pointCloudTool/selectAll.svg.js.map +1 -0
  519. package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js +4 -1
  520. package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js.map +1 -0
  521. package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js +4 -1
  522. package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js.map +1 -0
  523. package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +4 -1
  524. package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js.map +1 -0
  525. package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +4 -1
  526. package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js.map +1 -0
  527. package/es/assets/annotation/pointTool/icon_point.svg.js +4 -1
  528. package/es/assets/annotation/pointTool/icon_point.svg.js.map +1 -0
  529. package/es/assets/annotation/pointTool/icon_point_a.svg.js +4 -1
  530. package/es/assets/annotation/pointTool/icon_point_a.svg.js.map +1 -0
  531. package/es/assets/annotation/polygonTool/icon_polygon.svg.js +4 -1
  532. package/es/assets/annotation/polygonTool/icon_polygon.svg.js.map +1 -0
  533. package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js +4 -1
  534. package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js.map +1 -0
  535. package/es/assets/annotation/rectTool/icon_rect.svg.js +4 -1
  536. package/es/assets/annotation/rectTool/icon_rect.svg.js.map +1 -0
  537. package/es/assets/annotation/rectTool/icon_rectPattern.svg.js +4 -0
  538. package/es/assets/annotation/rectTool/icon_rectPattern.svg.js.map +1 -0
  539. package/es/assets/annotation/rectTool/icon_rect_a.svg.js +4 -1
  540. package/es/assets/annotation/rectTool/icon_rect_a.svg.js.map +1 -0
  541. package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +4 -1
  542. package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js.map +1 -0
  543. package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +4 -1
  544. package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js.map +1 -0
  545. package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +4 -1
  546. package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js.map +1 -0
  547. package/es/assets/annotation/toolHotKeyIcon/icon_copyBackwardResult.svg.js +4 -0
  548. package/es/assets/annotation/toolHotKeyIcon/icon_copyBackwardResult.svg.js.map +1 -0
  549. package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +4 -1
  550. package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js.map +1 -0
  551. package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +4 -1
  552. package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js.map +1 -0
  553. package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +4 -1
  554. package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js.map +1 -0
  555. package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +4 -1
  556. package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js.map +1 -0
  557. package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +4 -1
  558. package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js.map +1 -0
  559. package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +4 -1
  560. package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js.map +1 -0
  561. package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +4 -1
  562. package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js.map +1 -0
  563. package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +4 -1
  564. package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js.map +1 -0
  565. package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +4 -1
  566. package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js.map +1 -0
  567. package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +4 -1
  568. package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js.map +1 -0
  569. package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +4 -1
  570. package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js.map +1 -0
  571. package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +4 -1
  572. package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js.map +1 -0
  573. package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +4 -1
  574. package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js.map +1 -0
  575. package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +4 -1
  576. package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js.map +1 -0
  577. package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +4 -1
  578. package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js.map +1 -0
  579. package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +4 -1
  580. package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js.map +1 -0
  581. package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +4 -1
  582. package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js.map +1 -0
  583. package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +4 -1
  584. package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js.map +1 -0
  585. package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +4 -1
  586. package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js.map +1 -0
  587. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +4 -1
  588. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js.map +1 -0
  589. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +4 -1
  590. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js.map +1 -0
  591. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +4 -1
  592. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js.map +1 -0
  593. package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +4 -1
  594. package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js.map +1 -0
  595. package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +4 -1
  596. package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js.map +1 -0
  597. package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +4 -1
  598. package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js.map +1 -0
  599. package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +4 -1
  600. package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js.map +1 -0
  601. package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +4 -1
  602. package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js.map +1 -0
  603. package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +4 -1
  604. package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js.map +1 -0
  605. package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +4 -1
  606. package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js.map +1 -0
  607. package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +4 -1
  608. package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js.map +1 -0
  609. package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +4 -1
  610. package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js.map +1 -0
  611. package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +4 -1
  612. package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js.map +1 -0
  613. package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +4 -1
  614. package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js.map +1 -0
  615. package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +4 -1
  616. package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js.map +1 -0
  617. package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +4 -1
  618. package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js.map +1 -0
  619. package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +4 -1
  620. package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js.map +1 -0
  621. package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +4 -1
  622. package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js.map +1 -0
  623. package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +4 -1
  624. package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js.map +1 -0
  625. package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +4 -1
  626. package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js.map +1 -0
  627. package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +4 -1
  628. package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js.map +1 -0
  629. package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +4 -1
  630. package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js.map +1 -0
  631. package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +4 -1
  632. package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js.map +1 -0
  633. package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +4 -1
  634. package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js.map +1 -0
  635. package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +4 -1
  636. package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js.map +1 -0
  637. package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js +4 -1
  638. package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js.map +1 -0
  639. package/es/assets/annotation/video/icon_keyboard_h.svg.js +4 -1
  640. package/es/assets/annotation/video/icon_keyboard_h.svg.js.map +1 -0
  641. package/es/assets/attributeIcon/eraser.svg.js +4 -1
  642. package/es/assets/attributeIcon/eraser.svg.js.map +1 -0
  643. package/es/assets/attributeIcon/eraser_a.svg.js +4 -1
  644. package/es/assets/attributeIcon/eraser_a.svg.js.map +1 -0
  645. package/es/assets/attributeIcon/pen.svg.js +4 -1
  646. package/es/assets/attributeIcon/pen.svg.js.map +1 -0
  647. package/es/assets/attributeIcon/pen_a.svg.js +4 -1
  648. package/es/assets/attributeIcon/pen_a.svg.js.map +1 -0
  649. package/es/assets/attributeIcon/zoomUp.svg.js +4 -1
  650. package/es/assets/attributeIcon/zoomUp.svg.js.map +1 -0
  651. package/es/assets/cssIcon/annotation/icon_clearSmall.svg +10 -0
  652. package/es/assets/cssIcon/annotation/icon_clearSmall_a.svg +10 -0
  653. package/es/assets/cssIcon/slide_btn.svg +23 -0
  654. package/es/assets/predictTracking/icon.svg.js +4 -1
  655. package/es/assets/predictTracking/icon.svg.js.map +1 -0
  656. package/es/assets/toolStyle/icon_border.svg.js +4 -1
  657. package/es/assets/toolStyle/icon_border.svg.js.map +1 -0
  658. package/es/assets/toolStyle/icon_borderColor.svg.js +4 -1
  659. package/es/assets/toolStyle/icon_borderColor.svg.js.map +1 -0
  660. package/es/assets/toolStyle/icon_opacityFill.svg.js +4 -1
  661. package/es/assets/toolStyle/icon_opacityFill.svg.js.map +1 -0
  662. package/es/assets/toolStyle/icon_opacityStroke.svg.js +4 -1
  663. package/es/assets/toolStyle/icon_opacityStroke.svg.js.map +1 -0
  664. package/es/components/AnnotationView/index.js +154 -1
  665. package/es/components/AnnotationView/index.js.map +1 -0
  666. package/es/components/AnnotationView/pointCloudAnnotationView.js +79 -1
  667. package/es/components/AnnotationView/pointCloudAnnotationView.js.map +1 -0
  668. package/es/components/ImageError/index.js +53 -0
  669. package/es/components/ImageError/index.js.map +1 -0
  670. package/es/components/annotationStepPopover/index.js +33 -1
  671. package/es/components/annotationStepPopover/index.js.map +1 -0
  672. package/es/components/attributeList/index.js +57 -1
  673. package/es/components/attributeList/index.js.map +1 -0
  674. package/es/components/checkboxList/index.js +33 -1
  675. package/es/components/checkboxList/index.js.map +1 -0
  676. package/es/components/colorTag/index.js +30 -1
  677. package/es/components/colorTag/index.js.map +1 -0
  678. package/es/components/customAntd/IconWithText/index.js +53 -1
  679. package/es/components/customAntd/IconWithText/index.js.map +1 -0
  680. package/es/components/customResizeHook/index.js +84 -1
  681. package/es/components/customResizeHook/index.js.map +1 -0
  682. package/es/components/fileException/FileError.js +55 -1
  683. package/es/components/fileException/FileError.js.map +1 -0
  684. package/es/components/fileException/FileInvalid.js +25 -1
  685. package/es/components/fileException/FileInvalid.js.map +1 -0
  686. package/es/components/fileException/index.js +32 -1
  687. package/es/components/fileException/index.js.map +1 -0
  688. package/es/components/pointCloudView/PointCloud2DView.js +147 -1
  689. package/es/components/pointCloudView/PointCloud2DView.js.map +1 -0
  690. package/es/components/pointCloudView/PointCloud3DView.js +227 -1
  691. package/es/components/pointCloudView/PointCloud3DView.js.map +1 -0
  692. package/es/components/pointCloudView/PointCloudBackView.js +132 -1
  693. package/es/components/pointCloudView/PointCloudBackView.js.map +1 -0
  694. package/es/components/pointCloudView/PointCloudContext.js +248 -1
  695. package/es/components/pointCloudView/PointCloudContext.js.map +1 -0
  696. package/es/components/pointCloudView/PointCloudInfos.js +136 -1
  697. package/es/components/pointCloudView/PointCloudInfos.js.map +1 -0
  698. package/es/components/pointCloudView/PointCloudLayout.js +19 -1
  699. package/es/components/pointCloudView/PointCloudLayout.js.map +1 -0
  700. package/es/components/pointCloudView/PointCloudListener.js +345 -1
  701. package/es/components/pointCloudView/PointCloudListener.js.map +1 -0
  702. package/es/components/pointCloudView/PointCloudSegment.js +56 -0
  703. package/es/components/pointCloudView/PointCloudSegment.js.map +1 -0
  704. package/es/components/pointCloudView/PointCloudSideView.js +129 -1
  705. package/es/components/pointCloudView/PointCloudSideView.js.map +1 -0
  706. package/es/components/pointCloudView/PointCloudTopView.js +333 -1
  707. package/es/components/pointCloudView/PointCloudTopView.js.map +1 -0
  708. package/es/components/pointCloudView/components/EmptyPage/index.js +18 -1
  709. package/es/components/pointCloudView/components/EmptyPage/index.js.map +1 -0
  710. package/es/components/pointCloudView/components/PointCloudSizeSlider/index.js +23 -0
  711. package/es/components/pointCloudView/components/PointCloudSizeSlider/index.js.map +1 -0
  712. package/es/components/pointCloudView/components/UnifiedParamsModal/index.js +228 -0
  713. package/es/components/pointCloudView/components/UnifiedParamsModal/index.js.map +1 -0
  714. package/es/components/pointCloudView/components/UnifyParamsModal/index.js +234 -1
  715. package/es/components/pointCloudView/components/UnifyParamsModal/index.js.map +1 -0
  716. package/es/components/pointCloudView/data.js +4 -0
  717. package/es/components/pointCloudView/data.js.map +1 -0
  718. package/es/components/pointCloudView/hooks/useAttribute.js +49 -1
  719. package/es/components/pointCloudView/hooks/useAttribute.js.map +1 -0
  720. package/es/components/pointCloudView/hooks/useBoxes.js +73 -1
  721. package/es/components/pointCloudView/hooks/useBoxes.js.map +1 -0
  722. package/es/components/pointCloudView/hooks/useConfig.js +29 -1
  723. package/es/components/pointCloudView/hooks/useConfig.js.map +1 -0
  724. package/es/components/pointCloudView/hooks/useHistory.js +169 -1
  725. package/es/components/pointCloudView/hooks/useHistory.js.map +1 -0
  726. package/es/components/pointCloudView/hooks/useLine.js +70 -1
  727. package/es/components/pointCloudView/hooks/useLine.js.map +1 -0
  728. package/es/components/pointCloudView/hooks/usePointCloudViews.js +747 -1
  729. package/es/components/pointCloudView/hooks/usePointCloudViews.js.map +1 -0
  730. package/es/components/pointCloudView/hooks/usePolygon.js +70 -1
  731. package/es/components/pointCloudView/hooks/usePolygon.js.map +1 -0
  732. package/es/components/pointCloudView/hooks/useRotate.js +43 -1
  733. package/es/components/pointCloudView/hooks/useRotate.js.map +1 -0
  734. package/es/components/pointCloudView/hooks/useSingleBox.js +168 -1
  735. package/es/components/pointCloudView/hooks/useSingleBox.js.map +1 -0
  736. package/es/components/pointCloudView/hooks/useSphere.js +43 -1
  737. package/es/components/pointCloudView/hooks/useSphere.js.map +1 -0
  738. package/es/components/pointCloudView/hooks/useStatus.js +88 -1
  739. package/es/components/pointCloudView/hooks/useStatus.js.map +1 -0
  740. package/es/components/pointCloudView/hooks/useZoom.js +38 -1
  741. package/es/components/pointCloudView/hooks/useZoom.js.map +1 -0
  742. package/es/components/pointCloudView/index.js +53 -1
  743. package/es/components/pointCloudView/index.js.map +1 -0
  744. package/es/components/predictTracking/index.js +3 -1
  745. package/es/components/predictTracking/index.js.map +1 -0
  746. package/es/components/predictTracking/predictTrackingIcon/index.js +98 -1
  747. package/es/components/predictTracking/predictTrackingIcon/index.js.map +1 -0
  748. package/es/components/predictTracking/previewResult/index.js +189 -1
  749. package/es/components/predictTracking/previewResult/index.js.map +1 -0
  750. package/es/components/predictTracking/previewResult/util.js +136 -1
  751. package/es/components/predictTracking/previewResult/util.js.map +1 -0
  752. package/es/components/videoAnnotate/index.js +44 -1
  753. package/es/components/videoAnnotate/index.js.map +1 -0
  754. package/es/components/videoPlayer/TagToolInstanceAdaptor.js +224 -1
  755. package/es/components/videoPlayer/TagToolInstanceAdaptor.js.map +1 -0
  756. package/es/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js +32 -1
  757. package/es/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js.map +1 -0
  758. package/es/components/videoPlayer/VideoTagLayer.js +29 -1
  759. package/es/components/videoPlayer/VideoTagLayer.js.map +1 -0
  760. package/es/components/videoPlayer/components/controller/index.js +125 -1
  761. package/es/components/videoPlayer/components/controller/index.js.map +1 -0
  762. package/es/components/videoPlayer/index.js +257 -1
  763. package/es/components/videoPlayer/index.js.map +1 -0
  764. package/es/components/videoPlayer/utils.js +51 -1
  765. package/es/components/videoPlayer/utils.js.map +1 -0
  766. package/es/configureStore.js +10 -1
  767. package/es/configureStore.js.map +1 -0
  768. package/es/constant/index.js +27 -1
  769. package/es/constant/index.js.map +1 -0
  770. package/es/constant/styleString.js +4 -1
  771. package/es/constant/styleString.js.map +1 -0
  772. package/es/data/Style.js +104 -1
  773. package/es/data/Style.js.map +1 -0
  774. package/es/data/enums/AnnotationSize.js +32 -1
  775. package/es/data/enums/AnnotationSize.js.map +1 -0
  776. package/es/data/enums/ToolType.js +40 -1
  777. package/es/data/enums/ToolType.js.map +1 -0
  778. package/es/hooks/annotation.js +77 -1
  779. package/es/hooks/annotation.js.map +1 -0
  780. package/es/hooks/useConfig.js +18 -0
  781. package/es/hooks/useConfig.js.map +1 -0
  782. package/es/hooks/useRafState.js +19 -1
  783. package/es/hooks/useRafState.js.map +1 -0
  784. package/es/hooks/useRefCache.js +12 -1
  785. package/es/hooks/useRefCache.js.map +1 -0
  786. package/es/hooks/useSafeSate.js +16 -1
  787. package/es/hooks/useSafeSate.js.map +1 -0
  788. package/es/hooks/useSize.js +39 -1
  789. package/es/hooks/useSize.js.map +1 -0
  790. package/es/hooks/useUnmountedRef.js +15 -1
  791. package/es/hooks/useUnmountedRef.js.map +1 -0
  792. package/es/index.js +64 -1
  793. package/es/index.js.map +1 -0
  794. package/es/store/Actions.js +51 -1
  795. package/es/store/Actions.js.map +1 -0
  796. package/es/store/annotation/actionCreators.js +450 -1
  797. package/es/store/annotation/actionCreators.js.map +1 -0
  798. package/es/store/annotation/map.js +22 -1
  799. package/es/store/annotation/map.js.map +1 -0
  800. package/es/store/annotation/reducer.js +657 -1
  801. package/es/store/annotation/reducer.js.map +1 -0
  802. package/es/store/annotation/selectors.js +11 -1
  803. package/es/store/annotation/selectors.js.map +1 -0
  804. package/es/store/ctx.js +9 -1
  805. package/es/store/ctx.js.map +1 -0
  806. package/es/store/imgAttribute/actionCreators.js +21 -1
  807. package/es/store/imgAttribute/actionCreators.js.map +1 -0
  808. package/es/store/imgAttribute/reducer.js +40 -1
  809. package/es/store/imgAttribute/reducer.js.map +1 -0
  810. package/es/store/index.js +13 -1
  811. package/es/store/index.js.map +1 -0
  812. package/es/store/toolStyle/actionCreators.js +17 -1
  813. package/es/store/toolStyle/actionCreators.js.map +1 -0
  814. package/es/store/toolStyle/reducer.js +50 -1
  815. package/es/store/toolStyle/reducer.js.map +1 -0
  816. package/es/utils/AnnotationDataUtils.js +165 -1
  817. package/es/utils/AnnotationDataUtils.js.map +1 -0
  818. package/es/utils/ConfigUtils.js +18 -1
  819. package/es/utils/ConfigUtils.js.map +1 -0
  820. package/es/utils/PageOperator.js +93 -1
  821. package/es/utils/PageOperator.js.map +1 -0
  822. package/es/utils/StepUtils.js +27 -1
  823. package/es/utils/StepUtils.js.map +1 -0
  824. package/es/utils/TextUtils.js +39 -1
  825. package/es/utils/TextUtils.js.map +1 -0
  826. package/es/utils/ToolStyleUtils.js +88 -1
  827. package/es/utils/ToolStyleUtils.js.map +1 -0
  828. package/es/utils/ToolUtils.js +17 -1
  829. package/es/utils/ToolUtils.js.map +1 -0
  830. package/es/utils/data.js +72 -1
  831. package/es/utils/data.js.map +1 -0
  832. package/es/utils/dom.js +20 -1
  833. package/es/utils/dom.js.map +1 -0
  834. package/es/utils/index.js +30 -1
  835. package/es/utils/index.js.map +1 -0
  836. package/es/views/MainView/annotationOperation/index.js +168 -1
  837. package/es/views/MainView/annotationOperation/index.js.map +1 -0
  838. package/es/views/MainView/annotationTips/index.js +26 -1
  839. package/es/views/MainView/annotationTips/index.js.map +1 -0
  840. package/es/views/MainView/index.js +116 -1
  841. package/es/views/MainView/index.js.map +1 -0
  842. package/es/views/MainView/sidebar/AnnotationText/index.js +41 -1
  843. package/es/views/MainView/sidebar/AnnotationText/index.js.map +1 -0
  844. package/es/views/MainView/sidebar/ClearIcon/index.js +31 -1
  845. package/es/views/MainView/sidebar/ClearIcon/index.js.map +1 -0
  846. package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +95 -1
  847. package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js.map +1 -0
  848. package/es/views/MainView/sidebar/GeneralOperation/index.js +86 -1
  849. package/es/views/MainView/sidebar/GeneralOperation/index.js.map +1 -0
  850. package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js +88 -1
  851. package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js.map +1 -0
  852. package/es/views/MainView/sidebar/ImgAttributeInfo/index.js +128 -1
  853. package/es/views/MainView/sidebar/ImgAttributeInfo/index.js.map +1 -0
  854. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +122 -1
  855. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js.map +1 -0
  856. package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +247 -1
  857. package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js.map +1 -0
  858. package/es/views/MainView/sidebar/ScribbleSidebar/index.js +58 -1
  859. package/es/views/MainView/sidebar/ScribbleSidebar/index.js.map +1 -0
  860. package/es/views/MainView/sidebar/SwitchAttributeList/index.js +73 -1
  861. package/es/views/MainView/sidebar/SwitchAttributeList/index.js.map +1 -0
  862. package/es/views/MainView/sidebar/TagSidebar/index.js +178 -1
  863. package/es/views/MainView/sidebar/TagSidebar/index.js.map +1 -0
  864. package/es/views/MainView/sidebar/TextAreaFormat/index.js +106 -1
  865. package/es/views/MainView/sidebar/TextAreaFormat/index.js.map +1 -0
  866. package/es/views/MainView/sidebar/TextToolSidebar/index.js +225 -1
  867. package/es/views/MainView/sidebar/TextToolSidebar/index.js.map +1 -0
  868. package/es/views/MainView/sidebar/ToolIcons.js +78 -1
  869. package/es/views/MainView/sidebar/ToolIcons.js.map +1 -0
  870. package/es/views/MainView/sidebar/ToolStyle/index.js +156 -1
  871. package/es/views/MainView/sidebar/ToolStyle/index.js.map +1 -0
  872. package/es/views/MainView/sidebar/index.js +147 -1
  873. package/es/views/MainView/sidebar/index.js.map +1 -0
  874. package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js +200 -1
  875. package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js.map +1 -0
  876. package/es/views/MainView/toolFooter/FooterPopover.js +48 -1
  877. package/es/views/MainView/toolFooter/FooterPopover.js.map +1 -0
  878. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +127 -1
  879. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js.map +1 -0
  880. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js +24 -1
  881. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js.map +1 -0
  882. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +216 -1
  883. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js.map +1 -0
  884. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +97 -1
  885. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js.map +1 -0
  886. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +47 -1
  887. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js.map +1 -0
  888. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +165 -1
  889. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js.map +1 -0
  890. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +102 -1
  891. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js.map +1 -0
  892. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +61 -1
  893. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js.map +1 -0
  894. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +16 -1
  895. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js.map +1 -0
  896. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +20 -1
  897. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js.map +1 -0
  898. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +16 -1
  899. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js.map +1 -0
  900. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js +22 -1
  901. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js.map +1 -0
  902. package/es/views/MainView/toolFooter/FooterTips/index.js +17 -1
  903. package/es/views/MainView/toolFooter/FooterTips/index.js.map +1 -0
  904. package/es/views/MainView/toolFooter/HiddenTips/index.js +39 -1
  905. package/es/views/MainView/toolFooter/HiddenTips/index.js.map +1 -0
  906. package/es/views/MainView/toolFooter/PageNumber/index.js +42 -1
  907. package/es/views/MainView/toolFooter/PageNumber/index.js.map +1 -0
  908. package/es/views/MainView/toolFooter/Pagination.js +82 -1
  909. package/es/views/MainView/toolFooter/Pagination.js.map +1 -0
  910. package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +33 -1
  911. package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js.map +1 -0
  912. package/es/views/MainView/toolFooter/ZoomController/index.js +63 -1
  913. package/es/views/MainView/toolFooter/ZoomController/index.js.map +1 -0
  914. package/es/views/MainView/toolFooter/index.js +125 -1
  915. package/es/views/MainView/toolFooter/index.js.map +1 -0
  916. package/es/views/MainView/toolHeader/ExportData/index.js +38 -1
  917. package/es/views/MainView/toolHeader/ExportData/index.js.map +1 -0
  918. package/es/views/MainView/toolHeader/StepSwitch/index.js +41 -1
  919. package/es/views/MainView/toolHeader/StepSwitch/index.js.map +1 -0
  920. package/es/views/MainView/toolHeader/SwitchPattern/index.js +53 -0
  921. package/es/views/MainView/toolHeader/SwitchPattern/index.js.map +1 -0
  922. package/es/views/MainView/toolHeader/headerOption/index.js +145 -1
  923. package/es/views/MainView/toolHeader/headerOption/index.js.map +1 -0
  924. package/es/views/MainView/toolHeader/index.js +173 -1
  925. package/es/views/MainView/toolHeader/index.js.map +1 -0
  926. package/package.json +8 -6
@@ -1 +1,93 @@
1
- import{EPageTurningOperation as x}from"../data/enums/AnnotationSize.js";import f from"lodash";import{jsonParser as u}from"./index.js";const r=class{static getPageInfo(e){const{imgIndex:n,imgList:s,basicResultList:t,basicIndex:d,step:a,stepList:c}=e;return{fileIndex:n,basicIndex:d,basicList:t,fileList:s,step:a,stepList:c}}static getNextPageInfo(e,n,s){const t=r.getPageInfo(n),{fileIndex:d}=r.getPageInfo(n),a=r.getNextFileIndex(e,t,s),c=r.getNextBasicIndex(e,t.basicIndex),I=a!==d,l=r.hasNextBasicIndex(e,t),i={fileIndex:a,basicIndex:c,fileIndexChanged:I,basicIndexChanged:l};return l?(i.fileIndexChanged=!1,i.fileIndex=d,i):(i.basicIndex=e===x.Backward?r.getBasicResultIndexForNextFile(t,i.fileIndex):0,i)}};let o=r;o.getNextBasicIndex=(e,n)=>n+(e===x.Forward?1:-1),o.hasNextBasicIndex=(e,n)=>{const{basicList:s}=n;if((s==null?void 0:s.length)>0){const t=r.getNextBasicIndex(e,n.basicIndex);return t>=0&&s.length>t}return!1},o.getBasicResultIndexForNextFile=(e,n)=>{var s;const{stepList:t,step:d,fileList:a}=e,c=t.find(l=>l.step===d),I=c==null?void 0:c.dataSourceStep;if(I){const i=(s=u(a[n].result)[`step_${I}`])==null?void 0:s.result;return!i||!(i==null?void 0:i.length)?0:(i==null?void 0:i.length)-1}return 0},o.getNextFileIndex=(e,n,s)=>{const{fileIndex:t,fileList:d}=n;let a=s!==void 0?s:t;switch(e){case x.Forward:a+=1;break;case x.Backward:a-=1;break;case x.Jump:break}return f.inRange(a,0,d.length)?a:t};export{o as default};
1
+ import { EPageTurningOperation } from '../data/enums/AnnotationSize.js';
2
+ import _ from 'lodash';
3
+ import { jsonParser } from './index.js';
4
+
5
+ const _PageOperator = class {
6
+ static getPageInfo(annotationStore) {
7
+ const {
8
+ imgIndex: fileIndex,
9
+ imgList: fileList,
10
+ basicResultList: basicList,
11
+ basicIndex,
12
+ step,
13
+ stepList
14
+ } = annotationStore;
15
+ return {
16
+ fileIndex,
17
+ basicIndex,
18
+ basicList,
19
+ fileList,
20
+ step,
21
+ stepList
22
+ };
23
+ }
24
+ static getNextPageInfo(pageTurningOperation, annotationStore, nextIndex) {
25
+ const pageInfo = _PageOperator.getPageInfo(annotationStore);
26
+ const {fileIndex: currentFileIndex} = _PageOperator.getPageInfo(annotationStore);
27
+ const nextFileIndex = _PageOperator.getNextFileIndex(pageTurningOperation, pageInfo, nextIndex);
28
+ const nextBasicIndex = _PageOperator.getNextBasicIndex(pageTurningOperation, pageInfo.basicIndex);
29
+ const fileIndexChanged = nextFileIndex !== currentFileIndex;
30
+ const hasNextBasicIndex = _PageOperator.hasNextBasicIndex(pageTurningOperation, pageInfo);
31
+ const pageChangedInfo = {
32
+ fileIndex: nextFileIndex,
33
+ basicIndex: nextBasicIndex,
34
+ fileIndexChanged,
35
+ basicIndexChanged: hasNextBasicIndex
36
+ };
37
+ if (hasNextBasicIndex) {
38
+ pageChangedInfo.fileIndexChanged = false;
39
+ pageChangedInfo.fileIndex = currentFileIndex;
40
+ return pageChangedInfo;
41
+ }
42
+ pageChangedInfo.basicIndex = pageTurningOperation === EPageTurningOperation.Backward ? _PageOperator.getBasicResultIndexForNextFile(pageInfo, pageChangedInfo.fileIndex) : 0;
43
+ return pageChangedInfo;
44
+ }
45
+ };
46
+ let PageOperator = _PageOperator;
47
+ PageOperator.getNextBasicIndex = (pageTurningOperation, basicIndex) => {
48
+ return basicIndex + (pageTurningOperation === EPageTurningOperation.Forward ? 1 : -1);
49
+ };
50
+ PageOperator.hasNextBasicIndex = (pageTurningOperation, pageInfo) => {
51
+ const {basicList} = pageInfo;
52
+ if ((basicList == null ? void 0 : basicList.length) > 0) {
53
+ const nextBasicIndex = _PageOperator.getNextBasicIndex(pageTurningOperation, pageInfo.basicIndex);
54
+ return nextBasicIndex >= 0 && basicList.length > nextBasicIndex;
55
+ }
56
+ return false;
57
+ };
58
+ PageOperator.getBasicResultIndexForNextFile = (pageInfo, fileIndex) => {
59
+ var _a;
60
+ const {stepList, step, fileList} = pageInfo;
61
+ const stepConfig = stepList.find((i) => i.step === step);
62
+ const dataSourceStep = stepConfig == null ? void 0 : stepConfig.dataSourceStep;
63
+ if (dataSourceStep) {
64
+ const fileResult = jsonParser(fileList[fileIndex].result);
65
+ const stepResult = (_a = fileResult[`step_${dataSourceStep}`]) == null ? void 0 : _a.result;
66
+ if (!stepResult || !(stepResult == null ? void 0 : stepResult.length)) {
67
+ return 0;
68
+ }
69
+ return (stepResult == null ? void 0 : stepResult.length) - 1;
70
+ }
71
+ return 0;
72
+ };
73
+ PageOperator.getNextFileIndex = (pageTurningOperation, pageInfo, fileIndex) => {
74
+ const {fileIndex: currentFileIndex, fileList} = pageInfo;
75
+ let newIndex = fileIndex !== void 0 ? fileIndex : currentFileIndex;
76
+ switch (pageTurningOperation) {
77
+ case EPageTurningOperation.Forward:
78
+ newIndex += 1;
79
+ break;
80
+ case EPageTurningOperation.Backward:
81
+ newIndex -= 1;
82
+ break;
83
+ case EPageTurningOperation.Jump:
84
+ break;
85
+ }
86
+ if (_.inRange(newIndex, 0, fileList.length)) {
87
+ return newIndex;
88
+ }
89
+ return currentFileIndex;
90
+ };
91
+
92
+ export { PageOperator as default };
93
+ //# sourceMappingURL=PageOperator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageOperator.js","sources":["../../src/utils/PageOperator.ts"],"sourcesContent":["import { EPageTurningOperation } from '../data/enums/AnnotationSize';\nimport _ from 'lodash';\nimport { jsonParser } from '.';\n\ninterface IPageInfo {\n fileIndex: number;\n basicIndex: number;\n basicList: any[];\n fileList: any[];\n step: number;\n stepList: any[];\n}\n\nclass PageOperator {\n public static getPageInfo(annotationStore: any) {\n const {\n imgIndex: fileIndex,\n imgList: fileList,\n basicResultList: basicList,\n basicIndex,\n step,\n stepList,\n } = annotationStore;\n\n return {\n fileIndex,\n basicIndex,\n basicList,\n fileList,\n step,\n stepList,\n };\n }\n\n /**\n *\n * @param pageTurningOperation\n * @param nextIndex\n */\n public static getNextPageInfo(\n pageTurningOperation: EPageTurningOperation,\n annotationStore: any,\n nextIndex?: number,\n ) {\n const pageInfo: IPageInfo = PageOperator.getPageInfo(annotationStore);\n const { fileIndex: currentFileIndex } = PageOperator.getPageInfo(annotationStore);\n\n const nextFileIndex = PageOperator.getNextFileIndex(pageTurningOperation, pageInfo, nextIndex);\n const nextBasicIndex = PageOperator.getNextBasicIndex(\n pageTurningOperation,\n pageInfo.basicIndex,\n );\n const fileIndexChanged = nextFileIndex !== currentFileIndex;\n\n const hasNextBasicIndex = PageOperator.hasNextBasicIndex(pageTurningOperation, pageInfo);\n\n const pageChangedInfo = {\n fileIndex: nextFileIndex,\n basicIndex: nextBasicIndex,\n fileIndexChanged,\n basicIndexChanged: hasNextBasicIndex,\n };\n\n if (hasNextBasicIndex) {\n pageChangedInfo.fileIndexChanged = false;\n pageChangedInfo.fileIndex = currentFileIndex;\n return pageChangedInfo;\n }\n\n pageChangedInfo.basicIndex =\n pageTurningOperation === EPageTurningOperation.Backward\n ? PageOperator.getBasicResultIndexForNextFile(pageInfo, pageChangedInfo.fileIndex)\n : 0;\n\n return pageChangedInfo;\n }\n\n /**\n * 获取下一个依赖索引\n * @param pageTurningOperation\n */\n public static getNextBasicIndex = (\n pageTurningOperation: EPageTurningOperation,\n basicIndex: number,\n ) => {\n return basicIndex + (pageTurningOperation === EPageTurningOperation.Forward ? 1 : -1);\n };\n\n /**\n * 存在下一个依赖数据\n * @param pageTurningOperation\n */\n public static hasNextBasicIndex = (\n pageTurningOperation: EPageTurningOperation,\n pageInfo: IPageInfo,\n ) => {\n const { basicList } = pageInfo;\n if (basicList?.length > 0) {\n const nextBasicIndex = PageOperator.getNextBasicIndex(\n pageTurningOperation,\n pageInfo.basicIndex,\n );\n\n return nextBasicIndex >= 0 && basicList.length > nextBasicIndex;\n }\n\n return false;\n };\n\n public static getBasicResultIndexForNextFile = (pageInfo: IPageInfo, fileIndex: number) => {\n const { stepList, step, fileList } = pageInfo;\n const stepConfig = stepList.find((i) => i.step === step);\n const dataSourceStep = stepConfig?.dataSourceStep;\n\n if (dataSourceStep) {\n const fileResult = jsonParser(fileList[fileIndex].result);\n const stepResult = fileResult[`step_${dataSourceStep}`]?.result;\n\n if (!stepResult || !stepResult?.length) {\n return 0;\n }\n\n return stepResult?.length - 1;\n }\n\n return 0;\n };\n\n /**\n * 计算下一个文件的索引\n * @param pageTurningOperation\n * @param fileIndex\n */\n public static getNextFileIndex = (\n pageTurningOperation: EPageTurningOperation,\n pageInfo: IPageInfo,\n fileIndex?: number,\n ) => {\n const { fileIndex: currentFileIndex, fileList } = pageInfo;\n\n let newIndex = fileIndex !== undefined ? fileIndex : currentFileIndex;\n switch (pageTurningOperation) {\n case EPageTurningOperation.Forward:\n newIndex += 1;\n break;\n case EPageTurningOperation.Backward:\n newIndex -= 1;\n break;\n case EPageTurningOperation.Jump:\n break;\n }\n\n if (_.inRange(newIndex, 0, fileList.length)) {\n return newIndex;\n }\n\n return currentFileIndex;\n };\n}\n\nexport default PageOperator;\n"],"names":[],"mappings":";;;;AAaA,MAAmB,aAAA,GAAA,MAAA;AAAA,EAAA,OACH,YAAY,eAAsB,EAAA;AAC9C,IAAM,MAAA;AAAA,MACJ,QAAU,EAAA,SAAA;AAAA,MACV,OAAS,EAAA,QAAA;AAAA,MACT,eAAiB,EAAA,SAAA;AAAA,MACjB,UAAA;AAAA,MACA,IAAA;AAAA,MACA,QAAA;AAAA,KACE,GAAA,eAAA,CAAA;AAEJ,IAAO,OAAA;AAAA,MACL,SAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,QAAA;AAAA,MACA,IAAA;AAAA,MACA,QAAA;AAAA,KAAA,CAAA;AAAA,GAAA;AAAA,EASU,OAAA,eAAA,CACZ,oBACA,EAAA,eAAA,EACA,SACA,EAAA;AACA,IAAM,MAAA,QAAA,GAAsB,cAAa,WAAY,CAAA,eAAA,CAAA,CAAA;AACrD,IAAA,MAAM,CAAE,SAAA,EAAW,gBAAqB,CAAA,GAAA,aAAA,CAAa,WAAY,CAAA,eAAA,CAAA,CAAA;AAEjE,IAAA,MAAM,aAAgB,GAAA,aAAA,CAAa,gBAAiB,CAAA,oBAAA,EAAsB,QAAU,EAAA,SAAA,CAAA,CAAA;AACpF,IAAA,MAAM,cAAiB,GAAA,aAAA,CAAa,iBAClC,CAAA,oBAAA,EACA,QAAS,CAAA,UAAA,CAAA,CAAA;AAEX,IAAA,MAAM,mBAAmB,aAAkB,KAAA,g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Y,SAAY,GAAA,gBAAA,CAAA;AACrD,EAAQ,QAAA,oBAAA;AAAA,IAAA,KACD,qBAAsB,CAAA,OAAA;AACzB,MAAY,QAAA,IAAA,CAAA,CAAA;AACZ,MAAA,MAAA;AAAA,IAAA,KACG,qBAAsB,CAAA,QAAA;AACzB,MAAY,QAAA,IAAA,CAAA,CAAA;AACZ,MAAA,MAAA;AAAA,IAAA,KACG,qBAAsB,CAAA,IAAA;AACzB,MAAA,MAAA;AAAA,GAAA;AAGJ,EAAA,IAAI,CAAE,CAAA,OAAA,CAAQ,QAAU,EAAA,CAAA,EAAG,SAAS,MAAS,CAAA,EAAA;AAC3C,IAAO,OAAA,QAAA,CAAA;AAAA,GAAA;AAGT,EAAO,OAAA,gBAAA,CAAA;AAAA,CAAA;;;;"}
@@ -1 +1,27 @@
1
- import{EStepType as r}from"../constant/index.js";import u from"./ToolUtils.js";class n{static getCurrentStepInfo(e,o){const t=this.getStepInfo(e,o);return[r.QUALITY_INSPECTION,r.MANUAL_CORRECTION].includes(t==null?void 0:t.type)?this.getStepInfo(t.dataSourceStep,o):t}static getStepInfo(e,o){return o==null?void 0:o.filter(t=>t.step===e)[0]}static currentToolIsVideo(e,o){const t=n.getCurrentStepInfo(e,o);return u.isVideoTool(t==null?void 0:t.tool)}static currentToolIsPointCloud(e,o){const t=n.getCurrentStepInfo(e,o);return u.isPointCloudTool(t==null?void 0:t.tool)}}export{n as default};
1
+ import { EStepType } from '../constant/index.js';
2
+ import ToolUtils from './ToolUtils.js';
3
+
4
+ class StepUtils {
5
+ static getCurrentStepInfo(currentStep, stepList) {
6
+ const currentStepInfo = this.getStepInfo(currentStep, stepList);
7
+ const useDataSourceStep = [EStepType.QUALITY_INSPECTION, EStepType.MANUAL_CORRECTION].includes(currentStepInfo == null ? void 0 : currentStepInfo.type);
8
+ if (useDataSourceStep) {
9
+ return this.getStepInfo(currentStepInfo.dataSourceStep, stepList);
10
+ }
11
+ return currentStepInfo;
12
+ }
13
+ static getStepInfo(step, stepList) {
14
+ return stepList == null ? void 0 : stepList.filter((info) => info.step === step)[0];
15
+ }
16
+ static currentToolIsVideo(step, stepList) {
17
+ const currentStepInfo = StepUtils.getCurrentStepInfo(step, stepList);
18
+ return ToolUtils.isVideoTool(currentStepInfo == null ? void 0 : currentStepInfo.tool);
19
+ }
20
+ static currentToolIsPointCloud(step, stepList) {
21
+ const currentStepInfo = StepUtils.getCurrentStepInfo(step, stepList);
22
+ return ToolUtils.isPointCloudTool(currentStepInfo == null ? void 0 : currentStepInfo.tool);
23
+ }
24
+ }
25
+
26
+ export { StepUtils as default };
27
+ //# sourceMappingURL=StepUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepUtils.js","sources":["../../src/utils/StepUtils.ts"],"sourcesContent":["import { EStepType } from '@/constant';\nimport { IStepInfo } from '@/types/step';\nimport ToolUtils from './ToolUtils';\n\nexport default class StepUtils {\n /**\n * 获取当前步骤的步骤配置信息,用于当前标注配置的获取\n * @export\n * @param {number} currentStep\n * @param {IStepInfo[]} stepList\n * @returns {*}\n */\n public static getCurrentStepInfo(currentStep: number, stepList: IStepInfo[]) {\n const currentStepInfo = this.getStepInfo(currentStep, stepList);\n\n const useDataSourceStep = [EStepType.QUALITY_INSPECTION, EStepType.MANUAL_CORRECTION].includes(\n currentStepInfo?.type,\n );\n\n /** 人工修正、质检获取 dataSourceStep 作为步骤配置 */\n if (useDataSourceStep) {\n return this.getStepInfo(currentStepInfo.dataSourceStep, stepList);\n }\n\n return currentStepInfo;\n }\n\n /**\n * 找到指定步骤的数据\n * @param step 获取的步骤\n * @param stepList 步骤列表\n * @returns 步骤配置\n */\n public static getStepInfo(step: number, stepList: IStepInfo[]) {\n return stepList?.filter((info) => info.step === step)[0];\n }\n\n /**\n * 根据toolName判断当前步骤是否为视频工具\n * @param step 步骤\n * @param stepList 步骤列表\n * @returns {Number} 是否为视频工具\n */\n public static currentToolIsVideo(step: number, stepList: IStepInfo[]) {\n const currentStepInfo = StepUtils.getCurrentStepInfo(step, stepList);\n return ToolUtils.isVideoTool(currentStepInfo?.tool);\n }\n\n\n /**\n * Check for PointCloud\n * @param step \n * @param stepList \n * @returns \n */\n public static currentToolIsPointCloud(step: number, stepList: IStepInfo[]) {\n const currentStepInfo = StepUtils.getCurrentStepInfo(step, stepList);\n return ToolUtils.isPointCloudTool(currentStepInfo?.tool);\n }\n}\n"],"names":[],"mappings":";;;AAI+B,MAAA,SAAA,CAAA;AAAA,EAQf,OAAA,kBAAA,CAAmB,aAAqB,QAAuB,EAAA;AAC3E,IAAM,MAAA,eAAA,GAAkB,IAAK,CAAA,WAAA,CAAY,WAAa,EAAA,QAAA,CAAA,CAAA;AAEtD,IAAA,MAAM,oBAAoB,CAAC,SAAA,CAAU,oBAAoB,SAAU,CAAA,iBAAA,CAAA,CAAmB,SACpF,eAAiB,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAA,IAAA,CAAA,CAAA;AAInB,IAAA,IAAI,iBAAmB,EAAA;AACrB,MAAO,OAAA,IAAA,CAAK,WAAY,CAAA,eAAA,CAAgB,cAAgB,EAAA,QAAA,CAAA,CAAA;AAAA,KAAA;AAG1D,IAAO,OAAA,eAAA,CAAA;AAAA,GAAA;AAAA,EASK,OAAA,WAAA,CAAY,MAAc,QAAuB,EAAA;AAC7D,IAAA,OAAO,qCAAU,MAAO,CAAA,CAAC,IAAS,KAAA,IAAA,CAAK,SAAS,IAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAS1C,OAAA,kBAAA,CAAmB,MAAc,QAAuB,EAAA;AACpE,IAAM,MAAA,eAAA,GAAkB,SAAU,CAAA,kBAAA,CAAmB,IAAM,EAAA,QAAA,CAAA,CAAA;AAC3D,IAAO,OAAA,SAAA,CAAU,YAAY,eAAiB,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAA,IAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAUlC,OAAA,uBAAA,CAAwB,MAAc,QAAuB,EAAA;AACzE,IAAM,MAAA,eAAA,GAAkB,SAAU,CAAA,kBAAA,CAAmB,IAAM,EAAA,QAAA,CAAA,CAAA;AAC3D,IAAO,OAAA,SAAA,CAAU,iBAAiB,eAAiB,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAA,IAAA,CAAA,CAAA;AAAA,GAAA;AAAA;;;;"}
@@ -1 +1,39 @@
1
- import{ETextType as e}from"../data/enums/ToolType.js";import{i18n as s}from"@labelbee/lb-utils";const a="^[0-9]+$",c="^[A-Za-z]+$";class l{static checkString(r,n){let t="";switch(r){case e.Order:case e.NumberOnly:t=a;break;case e.EnglishOnly:t=c;break;case e.CustomFormat:t=n;break}return t}static getErrorNotice(r){switch(r){case e.Order:case e.NumberOnly:return s.t("TextCheckNumberOnly");case e.EnglishOnly:return s.t("TextCheckEnglishOnly");case e.CustomFormat:return s.t("TextCheckCustomFormat");default:return""}}}export{c as REGEXP_ENGLISH,a as REGEXP_NUMBER,l as TextUtils};
1
+ import { ETextType } from '../data/enums/ToolType.js';
2
+ import { i18n } from '@labelbee/lb-utils';
3
+
4
+ const REGEXP_NUMBER = "^[0-9]+$";
5
+ const REGEXP_ENGLISH = "^[A-Za-z]+$";
6
+ class TextUtils {
7
+ static checkString(textCheckType, customFormat) {
8
+ let regExpString = "";
9
+ switch (textCheckType) {
10
+ case ETextType.Order:
11
+ case ETextType.NumberOnly:
12
+ regExpString = REGEXP_NUMBER;
13
+ break;
14
+ case ETextType.EnglishOnly:
15
+ regExpString = REGEXP_ENGLISH;
16
+ break;
17
+ case ETextType.CustomFormat:
18
+ regExpString = customFormat;
19
+ break;
20
+ }
21
+ return regExpString;
22
+ }
23
+ static getErrorNotice(textCheckType) {
24
+ switch (textCheckType) {
25
+ case ETextType.Order:
26
+ case ETextType.NumberOnly:
27
+ return i18n.t("TextCheckNumberOnly");
28
+ case ETextType.EnglishOnly:
29
+ return i18n.t("TextCheckEnglishOnly");
30
+ case ETextType.CustomFormat:
31
+ return i18n.t("TextCheckCustomFormat");
32
+ default:
33
+ return "";
34
+ }
35
+ }
36
+ }
37
+
38
+ export { REGEXP_ENGLISH, REGEXP_NUMBER, TextUtils };
39
+ //# sourceMappingURL=TextUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextUtils.js","sources":["../../src/utils/TextUtils.ts"],"sourcesContent":["/*\n * @Author: Laoluo luozefeng@sensetime.com\n * @Date: 2022-01-12 13:15:33\n * @LastEditors: Laoluo luozefeng@sensetime.com\n * @LastEditTime: 2022-05-30 15:51:43\n */\nimport { ETextType } from '@/data/enums/ToolType';\nimport { i18n } from '@labelbee/lb-utils';\n\nexport const REGEXP_NUMBER = '^[0-9]+$';\nexport const REGEXP_ENGLISH = '^[A-Za-z]+$';\n\nexport class TextUtils {\n public static checkString(textCheckType: ETextType, customFormat: string) {\n let regExpString = '';\n switch (textCheckType) {\n case ETextType.Order:\n case ETextType.NumberOnly:\n regExpString = REGEXP_NUMBER;\n break;\n case ETextType.EnglishOnly:\n regExpString = REGEXP_ENGLISH;\n break;\n case ETextType.CustomFormat:\n regExpString = customFormat;\n break;\n }\n return regExpString;\n }\n\n public static getErrorNotice(textCheckType: ETextType) {\n switch (textCheckType) {\n case ETextType.Order:\n case ETextType.NumberOnly:\n return i18n.t(\"TextCheckNumberOnly\");\n case ETextType.EnglishOnly:\n return i18n.t(\"TextCheckEnglishOnly\");\n case ETextType.CustomFormat:\n return i18n.t(\"TextCheckCustomFormat\");\n default:\n return '';\n }\n }\n}\n"],"names":[],"mappings":";;;AASO,MAAM,aAAgB,GAAA,WAAA;AACtB,MAAM,cAAiB,GAAA,cAAA;AAEP,MAAA,SAAA,CAAA;AAAA,EACP,OAAA,WAAA,CAAY,eAA0B,YAAsB,EAAA;AACxE,IAAA,IAAI,YAAe,GAAA,EAAA,CAAA;AACnB,IAAQ,QAAA,aAAA;AAAA,MAAA,KACD,SAAU,CAAA,KAAA,CAAA;AAAA,MAAA,KACV,SAAU,CAAA,UAAA;AACb,QAAe,YAAA,GAAA,aAAA,CAAA;AACf,QAAA,MAAA;AAAA,MAAA,KACG,SAAU,CAAA,WAAA;AACb,QAAe,YAAA,GAAA,cAAA,CAAA;AACf,QAAA,MAAA;AAAA,MAAA,KACG,SAAU,CAAA,YAAA;AACb,QAAe,YAAA,GAAA,YAAA,CAAA;AACf,QAAA,MAAA;AAAA,KAAA;AAEJ,IAAO,OAAA,YAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAGK,eAAe,aAA0B,EAAA;AACrD,IAAQ,QAAA,aAAA;AAAA,MAAA,KACD,SAAU,CAAA,KAAA,CAAA;AAAA,MAAA,KACV,SAAU,CAAA,UAAA;AACb,QAAA,OAAO,KAAK,CAAE,CAAA,qBAAA,CAAA,CAAA;AAAA,MAAA,KACX,SAAU,CAAA,WAAA;AACb,QAAA,OAAO,KAAK,CAAE,CAAA,sBAAA,CAAA,CAAA;AAAA,MAAA,KACX,SAAU,CAAA,YAAA;AACb,QAAA,OAAO,KAAK,CAAE,CAAA,uBAAA,CAAA,CAAA;AAAA,MAAA;AAEd,QAAO,OAAA,EAAA,CAAA;AAAA,KAAA;AAAA,GAAA;AAAA;;;;"}
@@ -1 +1,88 @@
1
- import{CHANGE_COLOR as o,DEFAULT_COLOR as p,COLORS_ARRAY as u,NULL_COLOR as C,BORDER_OPACITY_LEVEL as k,FILL_OPACITY_LEVEL as O}from"../data/Style.js";import f from"lodash";const v=.8,c=class{static colorSplit(a,s){return a.split(" ").join("").replace(/,[0-9]+([.]{1}[0-9]+){0,1}\)/,`,${s.toFixed(2)})`)}static computeOpacity(a,s){var e,t;let r=(t=(((e=s.split(" ").join("").match(/,[0-9]+([.]{1}[0-9]+){0,1}\)/))==null?void 0:e[0])||"").match(/[0-9]+([.]{1}[0-9]+){0,1}/))==null?void 0:t[0];return a*Number(r)}static getToolColors(a=9,s=9){const e=c.colorSplit,t=c.computeOpacity,n=f.cloneDeep(o),r=k[a],d=O[s];return Object.keys(o).forEach(i=>{const l=f.cloneDeep(p);l.valid.stroke=e(o[i].valid,t(r,o[i].valid)),l.valid.fill=e(o[i].valid,t(d,o[i].valid)*v),l.validSelected.stroke=e(o[i].select.stroke,t(r,o[i].select.stroke)),l.validSelected.fill=e(o[i].select.fill,t(d,o[i].select.fill)*v),l.validHover.stroke=e(o[i].hover,t(r,o[i].hover)),l.validHover.fill=e(o[i].hover,t(d,o[i].hover)*v),l.invalid.stroke=e(l.invalid.stroke,t(r,l.invalid.stroke)),l.invalid.fill=e(l.invalid.stroke,t(d,l.invalid.stroke)*v),l.invalidSelected.stroke=e(l.invalidSelected.stroke,t(r,l.invalidSelected.stroke)),l.invalidSelected.fill=e(l.invalidSelected.fill,t(d,l.invalidSelected.fill)*v),l.invalidHover.stroke=e(l.invalidHover.stroke,t(r,l.invalidHover.fill)),l.invalidHover.fill=e(l.invalidHover.fill,t(d,l.invalidHover.fill)*v),n[i]=l}),n}static getAttributeColors(a=9,s=9){const e=c.colorSplit,t=c.computeOpacity,n=k[a],r=O[s];let d=f.cloneDeep(u);return d.unshift(C),d=d.map(i=>{const l=JSON.parse(JSON.stringify(p));return l.valid.stroke=e(i,t(n,i)),l.valid.fill=e(i,t(r,i)*v*.5),l.validSelected.stroke=e(i,t(n,i)),l.validSelected.fill=e(i,t(r,i)*v),l.validHover.stroke=e(i,t(n,i)),l.validHover.fill=e(i,t(r,i)*v),l.invalid.stroke=e(l.invalid.stroke,t(n,i)),l.invalid.fill=e(l.invalid.fill,t(r,i)*v*.5),l.invalidSelected.stroke=e(l.invalidSelected.stroke,t(n,i)),l.invalidSelected.fill=e(l.invalidSelected.fill,t(r,i)*v),l.invalidHover.stroke=e(l.invalidHover.stroke,t(n,i)),l.invalidHover.fill=e(l.invalidHover.fill,t(r,i)*v),l}),d}static getDefaultToolLineColors(){const a={};return Object.keys(o).forEach(s=>{a[s]=o[s].line}),a}static initByOpacity(a,s){return{toolColor:this.getToolColors(a,s),attributeColor:this.getAttributeColors(a,s)}}};let S=c;S.changeOpacity={1:.2,3:.4,5:.6,7:.8,9:1};export{S as ToolStyleUtils};
1
+ import { CHANGE_COLOR, DEFAULT_COLOR, COLORS_ARRAY, NULL_COLOR, BORDER_OPACITY_LEVEL, FILL_OPACITY_LEVEL } from '../data/Style.js';
2
+ import _ from 'lodash';
3
+
4
+ const FILL_OPACITY = 0.8;
5
+ const _ToolStyleUtils = class {
6
+ static colorSplit(color, opacity) {
7
+ return color.split(" ").join("").replace(/,[0-9]+([.]{1}[0-9]+){0,1}\)/, `,${opacity.toFixed(2)})`);
8
+ }
9
+ static computeOpacity(opacity, color) {
10
+ var _a, _b;
11
+ const s = ((_a = color.split(" ").join("").match(/,[0-9]+([.]{1}[0-9]+){0,1}\)/)) == null ? void 0 : _a[0]) || "";
12
+ let firstOpacity = (_b = s.match(/[0-9]+([.]{1}[0-9]+){0,1}/)) == null ? void 0 : _b[0];
13
+ return opacity * Number(firstOpacity);
14
+ }
15
+ static getToolColors(borderOpacityParam = 9, fillOpacityParam = 9) {
16
+ const colorSplit = _ToolStyleUtils.colorSplit;
17
+ const computeOpacity = _ToolStyleUtils.computeOpacity;
18
+ const toolColor = _.cloneDeep(CHANGE_COLOR);
19
+ const borderOpacity = BORDER_OPACITY_LEVEL[borderOpacityParam];
20
+ const fillOpacity = FILL_OPACITY_LEVEL[fillOpacityParam];
21
+ Object.keys(CHANGE_COLOR).forEach((color) => {
22
+ const showColor = _.cloneDeep(DEFAULT_COLOR);
23
+ showColor.valid.stroke = colorSplit(CHANGE_COLOR[color].valid, computeOpacity(borderOpacity, CHANGE_COLOR[color].valid));
24
+ showColor.valid.fill = colorSplit(CHANGE_COLOR[color].valid, computeOpacity(fillOpacity, CHANGE_COLOR[color].valid) * FILL_OPACITY);
25
+ showColor.validSelected.stroke = colorSplit(CHANGE_COLOR[color].select.stroke, computeOpacity(borderOpacity, CHANGE_COLOR[color].select.stroke));
26
+ showColor.validSelected.fill = colorSplit(CHANGE_COLOR[color].select.fill, computeOpacity(fillOpacity, CHANGE_COLOR[color].select.fill) * FILL_OPACITY);
27
+ showColor.validHover.stroke = colorSplit(CHANGE_COLOR[color].hover, computeOpacity(borderOpacity, CHANGE_COLOR[color].hover));
28
+ showColor.validHover.fill = colorSplit(CHANGE_COLOR[color].hover, computeOpacity(fillOpacity, CHANGE_COLOR[color].hover) * FILL_OPACITY);
29
+ showColor.invalid.stroke = colorSplit(showColor.invalid.stroke, computeOpacity(borderOpacity, showColor.invalid.stroke));
30
+ showColor.invalid.fill = colorSplit(showColor.invalid.stroke, computeOpacity(fillOpacity, showColor.invalid.stroke) * FILL_OPACITY);
31
+ showColor.invalidSelected.stroke = colorSplit(showColor.invalidSelected.stroke, computeOpacity(borderOpacity, showColor.invalidSelected.stroke));
32
+ showColor.invalidSelected.fill = colorSplit(showColor.invalidSelected.fill, computeOpacity(fillOpacity, showColor.invalidSelected.fill) * FILL_OPACITY);
33
+ showColor.invalidHover.stroke = colorSplit(showColor.invalidHover.stroke, computeOpacity(borderOpacity, showColor.invalidHover.fill));
34
+ showColor.invalidHover.fill = colorSplit(showColor.invalidHover.fill, computeOpacity(fillOpacity, showColor.invalidHover.fill) * FILL_OPACITY);
35
+ toolColor[color] = showColor;
36
+ });
37
+ return toolColor;
38
+ }
39
+ static getAttributeColors(borderOpacityParam = 9, fillOpacityParam = 9) {
40
+ const colorSplit = _ToolStyleUtils.colorSplit;
41
+ const computeOpacity = _ToolStyleUtils.computeOpacity;
42
+ const borderOpacity = BORDER_OPACITY_LEVEL[borderOpacityParam];
43
+ const fillOpacity = FILL_OPACITY_LEVEL[fillOpacityParam];
44
+ let AttributeColorList = _.cloneDeep(COLORS_ARRAY);
45
+ AttributeColorList.unshift(NULL_COLOR);
46
+ AttributeColorList = AttributeColorList.map((item) => {
47
+ const showColor = JSON.parse(JSON.stringify(DEFAULT_COLOR));
48
+ showColor.valid.stroke = colorSplit(item, computeOpacity(borderOpacity, item));
49
+ showColor.valid.fill = colorSplit(item, computeOpacity(fillOpacity, item) * FILL_OPACITY * 0.5);
50
+ showColor.validSelected.stroke = colorSplit(item, computeOpacity(borderOpacity, item));
51
+ showColor.validSelected.fill = colorSplit(item, computeOpacity(fillOpacity, item) * FILL_OPACITY);
52
+ showColor.validHover.stroke = colorSplit(item, computeOpacity(borderOpacity, item));
53
+ showColor.validHover.fill = colorSplit(item, computeOpacity(fillOpacity, item) * FILL_OPACITY);
54
+ showColor.invalid.stroke = colorSplit(showColor.invalid.stroke, computeOpacity(borderOpacity, item));
55
+ showColor.invalid.fill = colorSplit(showColor.invalid.fill, computeOpacity(fillOpacity, item) * FILL_OPACITY * 0.5);
56
+ showColor.invalidSelected.stroke = colorSplit(showColor.invalidSelected.stroke, computeOpacity(borderOpacity, item));
57
+ showColor.invalidSelected.fill = colorSplit(showColor.invalidSelected.fill, computeOpacity(fillOpacity, item) * FILL_OPACITY);
58
+ showColor.invalidHover.stroke = colorSplit(showColor.invalidHover.stroke, computeOpacity(borderOpacity, item));
59
+ showColor.invalidHover.fill = colorSplit(showColor.invalidHover.fill, computeOpacity(fillOpacity, item) * FILL_OPACITY);
60
+ return showColor;
61
+ });
62
+ return AttributeColorList;
63
+ }
64
+ static getDefaultToolLineColors() {
65
+ const toolColor = {};
66
+ Object.keys(CHANGE_COLOR).forEach((color) => {
67
+ toolColor[color] = CHANGE_COLOR[color].line;
68
+ });
69
+ return toolColor;
70
+ }
71
+ static initByOpacity(borderOpacity, fillOpacity) {
72
+ return {
73
+ toolColor: this.getToolColors(borderOpacity, fillOpacity),
74
+ attributeColor: this.getAttributeColors(borderOpacity, fillOpacity)
75
+ };
76
+ }
77
+ };
78
+ let ToolStyleUtils = _ToolStyleUtils;
79
+ ToolStyleUtils.changeOpacity = {
80
+ 1: 0.2,
81
+ 3: 0.4,
82
+ 5: 0.6,
83
+ 7: 0.8,
84
+ 9: 1
85
+ };
86
+
87
+ export { ToolStyleUtils };
88
+ //# sourceMappingURL=ToolStyleUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolStyleUtils.js","sources":["../../src/utils/ToolStyleUtils.ts"],"sourcesContent":["import {\n CHANGE_COLOR,\n DEFAULT_COLOR,\n COLORS_ARRAY,\n NULL_COLOR,\n BORDER_OPACITY_LEVEL,\n FILL_OPACITY_LEVEL,\n} from '@/data/Style';\nimport _ from 'lodash';\n\nconst FILL_OPACITY = 0.8;\n\nexport class ToolStyleUtils {\n public static changeOpacity: { [a: number]: number } = {\n 1: 0.2,\n 3: 0.4,\n 5: 0.6,\n 7: 0.8,\n 9: 1.0,\n };\n\n public static colorSplit(color: string, opacity: number) {\n return color\n .split(' ')\n .join('')\n .replace(/,[0-9]+([.]{1}[0-9]+){0,1}\\)/, `,${opacity.toFixed(2)})`);\n }\n\n public static computeOpacity(opacity: number, color: string) {\n const s =\n color\n .split(' ')\n .join('')\n .match(/,[0-9]+([.]{1}[0-9]+){0,1}\\)/)?.[0] || '';\n let firstOpacity = s.match(/[0-9]+([.]{1}[0-9]+){0,1}/)?.[0];\n return opacity * Number(firstOpacity);\n }\n\n public static getToolColors(borderOpacityParam = 9, fillOpacityParam = 9) {\n const colorSplit = ToolStyleUtils.colorSplit;\n const computeOpacity = ToolStyleUtils.computeOpacity;\n\n const toolColor = _.cloneDeep(CHANGE_COLOR);\n const borderOpacity = BORDER_OPACITY_LEVEL[borderOpacityParam];\n const fillOpacity = FILL_OPACITY_LEVEL[fillOpacityParam];\n\n Object.keys(CHANGE_COLOR).forEach((color: any) => {\n const showColor = _.cloneDeep(DEFAULT_COLOR);\n showColor.valid.stroke = colorSplit(\n CHANGE_COLOR[color].valid,\n computeOpacity(borderOpacity, CHANGE_COLOR[color].valid),\n );\n showColor.valid.fill = colorSplit(\n CHANGE_COLOR[color].valid,\n computeOpacity(fillOpacity, CHANGE_COLOR[color].valid) * FILL_OPACITY,\n );\n showColor.validSelected.stroke = colorSplit(\n CHANGE_COLOR[color].select.stroke,\n computeOpacity(borderOpacity, CHANGE_COLOR[color].select.stroke),\n );\n showColor.validSelected.fill = colorSplit(\n CHANGE_COLOR[color].select.fill,\n computeOpacity(fillOpacity, CHANGE_COLOR[color].select.fill) * FILL_OPACITY,\n );\n showColor.validHover.stroke = colorSplit(\n CHANGE_COLOR[color].hover,\n computeOpacity(borderOpacity, CHANGE_COLOR[color].hover),\n );\n showColor.validHover.fill = colorSplit(\n CHANGE_COLOR[color].hover,\n computeOpacity(fillOpacity, CHANGE_COLOR[color].hover) * FILL_OPACITY,\n );\n\n // 无效的比例是一样的\n showColor.invalid.stroke = colorSplit(\n showColor.invalid.stroke,\n computeOpacity(borderOpacity, showColor.invalid.stroke),\n );\n showColor.invalid.fill = colorSplit(\n showColor.invalid.stroke,\n computeOpacity(fillOpacity, showColor.invalid.stroke) * FILL_OPACITY,\n );\n showColor.invalidSelected.stroke = colorSplit(\n showColor.invalidSelected.stroke,\n computeOpacity(borderOpacity, showColor.invalidSelected.stroke),\n );\n showColor.invalidSelected.fill = colorSplit(\n showColor.invalidSelected.fill,\n computeOpacity(fillOpacity, showColor.invalidSelected.fill) * FILL_OPACITY,\n );\n showColor.invalidHover.stroke = colorSplit(\n showColor.invalidHover.stroke,\n computeOpacity(borderOpacity, showColor.invalidHover.fill),\n );\n showColor.invalidHover.fill = colorSplit(\n showColor.invalidHover.fill,\n computeOpacity(fillOpacity, showColor.invalidHover.fill) * FILL_OPACITY,\n );\n toolColor[color] = showColor;\n });\n return toolColor;\n }\n\n public static getAttributeColors(borderOpacityParam = 9, fillOpacityParam = 9) {\n const colorSplit = ToolStyleUtils.colorSplit;\n const computeOpacity = ToolStyleUtils.computeOpacity;\n const borderOpacity = BORDER_OPACITY_LEVEL[borderOpacityParam];\n const fillOpacity = FILL_OPACITY_LEVEL[fillOpacityParam];\n\n let AttributeColorList: string[] = _.cloneDeep(COLORS_ARRAY);\n AttributeColorList.unshift(NULL_COLOR);\n AttributeColorList = AttributeColorList.map((item) => {\n const showColor = JSON.parse(JSON.stringify(DEFAULT_COLOR));\n showColor.valid.stroke = colorSplit(item, computeOpacity(borderOpacity, item));\n showColor.valid.fill = colorSplit(\n item,\n computeOpacity(fillOpacity, item) * FILL_OPACITY * 0.5,\n );\n showColor.validSelected.stroke = colorSplit(item, computeOpacity(borderOpacity, item));\n showColor.validSelected.fill = colorSplit(\n item,\n computeOpacity(fillOpacity, item) * FILL_OPACITY,\n );\n showColor.validHover.stroke = colorSplit(item, computeOpacity(borderOpacity, item));\n showColor.validHover.fill = colorSplit(\n item,\n computeOpacity(fillOpacity, item) * FILL_OPACITY,\n );\n showColor.invalid.stroke = colorSplit(\n showColor.invalid.stroke,\n computeOpacity(borderOpacity, item),\n );\n showColor.invalid.fill = colorSplit(\n showColor.invalid.fill,\n computeOpacity(fillOpacity, item) * FILL_OPACITY * 0.5,\n );\n showColor.invalidSelected.stroke = colorSplit(\n showColor.invalidSelected.stroke,\n computeOpacity(borderOpacity, item),\n );\n showColor.invalidSelected.fill = colorSplit(\n showColor.invalidSelected.fill,\n computeOpacity(fillOpacity, item) * FILL_OPACITY,\n );\n showColor.invalidHover.stroke = colorSplit(\n showColor.invalidHover.stroke,\n computeOpacity(borderOpacity, item),\n );\n showColor.invalidHover.fill = colorSplit(\n showColor.invalidHover.fill,\n computeOpacity(fillOpacity, item) * FILL_OPACITY,\n );\n return showColor;\n });\n return AttributeColorList;\n }\n\n public static getDefaultToolLineColors() {\n const toolColor: any = {};\n Object.keys(CHANGE_COLOR).forEach((color: any) => {\n toolColor[color] = CHANGE_COLOR[color].line;\n });\n return toolColor;\n }\n\n public static initByOpacity(borderOpacity: number, fillOpacity: number) {\n return {\n toolColor: this.getToolColors(borderOpacity, fillOpacity),\n attributeColor: this.getAttributeColors(borderOpacity, fillOpacity),\n };\n }\n}\n"],"names":[],"mappings":";;;AAUA,MAAM,YAAe,GAAA,GAAA,CAAA;AAEd,MAAqB,eAAA,GAAA,MAAA;AAAA,EASZ,OAAA,UAAA,CAAW,OAAe,OAAiB,EAAA;AACvD,IAAO,OAAA,KAAA,CACJ,MAAM,GACN,CAAA,CAAA,IAAA,CAA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AA,EAAgB,IAAK,CAAA,kBAAA,CAAmB,aAAe,EAAA,WAAA,CAAA;AAAA,KAAA,CAAA;AAAA,GAAA;AAAA,CAAA,CAAA;AA5JtD,IAAA,cAAA,GAAA,gBAAA;AAAA,eACS,aAAyC,GAAA;AAAA,EACrD,CAAG,EAAA,GAAA;AAAA,EACH,CAAG,EAAA,GAAA;AAAA,EACH,CAAG,EAAA,GAAA;AAAA,EACH,CAAG,EAAA,GAAA;AAAA,EACH,CAAG,EAAA,CAAA;AAAA,CAAA;;;;"}
@@ -1 +1,17 @@
1
- import{cTool as t}from"@labelbee/lb-annotation";const{EVideoToolName:l,EPointCloudName:i,EToolName:e}=t;class s{static isVideoTool(o){return o?Object.values(l).includes(o):!1}static isPointCloudTool(o){return o?Object.values(i).includes(o):!1}static getPointCloudToolList(){return[e.Point,e.Line,e.PointCloudPolygon]}}export{s as default};
1
+ import { cTool } from '@labelbee/lb-annotation';
2
+
3
+ const {EVideoToolName, EPointCloudName, EToolName} = cTool;
4
+ class ToolUtils {
5
+ static isVideoTool(tool) {
6
+ return tool ? Object.values(EVideoToolName).includes(tool) : false;
7
+ }
8
+ static isPointCloudTool(tool) {
9
+ return tool ? Object.values(EPointCloudName).includes(tool) : false;
10
+ }
11
+ static getPointCloudToolList() {
12
+ return [EToolName.Point, EToolName.Line, EToolName.PointCloudPolygon];
13
+ }
14
+ }
15
+
16
+ export { ToolUtils as default };
17
+ //# sourceMappingURL=ToolUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolUtils.js","sources":["../../src/utils/ToolUtils.ts"],"sourcesContent":["/**\n * @author Glenfiddish <edwinlee0927@hotmail.com>\n * @file Tool utils\n * @date 2022-06-20\n */\n\nimport { cTool } from '@labelbee/lb-annotation';\nconst { EVideoToolName, EPointCloudName, EToolName } = cTool;\n\nclass ToolUtils {\n public static isVideoTool(tool?: string) {\n return tool ? (Object.values(EVideoToolName) as string[]).includes(tool) : false;\n }\n\n public static isPointCloudTool(tool?: string) {\n return tool ? (Object.values(EPointCloudName) as string[]).includes(tool) : false;\n }\n\n public static getPointCloudToolList() {\n return [EToolName.Point, EToolName.Line, EToolName.PointCloudPolygon]\n }\n}\n\nexport default ToolUtils;\n"],"names":[],"mappings":";;AAOA,MAAM,CAAE,cAAgB,EAAA,eAAA,EAAiB,SAAc,CAAA,GAAA,KAAA,CAAA;AAEvD,MAAgB,SAAA,CAAA;AAAA,EAAA,OACA,YAAY,IAAe,EAAA;AACvC,IAAA,OAAO,IAAQ,GAAA,MAAA,CAAO,MAAO,CAAA,cAAA,CAAA,CAA6B,SAAS,IAAQ,CAAA,GAAA,KAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAG/D,iBAAiB,IAAe,EAAA;AAC5C,IAAA,OAAO,IAAQ,GAAA,MAAA,CAAO,MAAO,CAAA,eAAA,CAAA,CAA8B,SAAS,IAAQ,CAAA,GAAA,KAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAGhE,qBAAwB,GAAA;AACpC,IAAA,OAAO,CAAC,SAAA,CAAU,KAAO,EAAA,SAAA,CAAU,MAAM,SAAU,CAAA,iBAAA,CAAA,CAAA;AAAA,GAAA;AAAA;;;;"}
package/es/utils/data.js CHANGED
@@ -1 +1,72 @@
1
- import{jsonParser as g}from"./index.js";import P from"./StepUtils.js";var I=Object.defineProperty,d=Object.defineProperties,N=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,S=(e,r,t)=>r in e?I(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,o=(e,r)=>{for(var t in r||(r={}))w.call(r,t)&&S(e,t,r[t]);if(y)for(var t of y(r))v.call(r,t)&&S(e,t,r[t]);return e},a=(e,r)=>d(e,N(r));const D=(e,r)=>JSON.stringify(o(o({},g(e)),r)),J=(e,r,t,f)=>{const{step:l,stepList:_}=r,{rect:i,basicRectID:u}=t;try{const s=g(e),O=P.getCurrentStepInfo(l,_),{dataSourceStep:m}=O,p=`step_${O.step}`;if(s[p]){const n=s[p];return Object.assign(n,f),n.result?(JSON.stringify(n.result)===JSON.stringify(i)||(u?n.result=[...n.result.filter(c=>!(c.sourceID&&c.sourceID===u)),...i.filter(c=>c.sourceID&&c.sourceID===u)]:n.result=i),JSON.stringify(s)):JSON.stringify(a(o({},s),{[p]:a(o(o({},s[p]),f),{result:i})}))}return JSON.stringify(a(o({},s),{[p]:a(o({dataSourceStep:m},f),{toolName:_[l-1].tool,result:i})}))}catch(s){return e}};export{J as composeResult,D as composeResultWithBasicImgInfo};
1
+ import { jsonParser } from './index.js';
2
+ import StepUtils from './StepUtils.js';
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __defProps = Object.defineProperties;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
11
+ var __spreadValues = (a, b) => {
12
+ for (var prop in b || (b = {}))
13
+ if (__hasOwnProp.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
15
+ if (__getOwnPropSymbols)
16
+ for (var prop of __getOwnPropSymbols(b)) {
17
+ if (__propIsEnum.call(b, prop))
18
+ __defNormalProp(a, prop, b[prop]);
19
+ }
20
+ return a;
21
+ };
22
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
+ const composeResultWithBasicImgInfo = (result, basicImgInfo) => {
24
+ const newResult = JSON.stringify(__spreadValues(__spreadValues({}, jsonParser(result)), basicImgInfo));
25
+ return newResult;
26
+ };
27
+ const composeResult = (result, pos, newData, customObject) => {
28
+ const {step, stepList} = pos;
29
+ const {rect, basicRectID} = newData;
30
+ try {
31
+ const data = jsonParser(result);
32
+ const currentStepInfo = StepUtils.getCurrentStepInfo(step, stepList);
33
+ const {dataSourceStep} = currentStepInfo;
34
+ const stepName = `step_${currentStepInfo.step}`;
35
+ if (data[stepName]) {
36
+ const info = data[stepName];
37
+ Object.assign(info, customObject);
38
+ if (info.result) {
39
+ if (JSON.stringify(info.result) === JSON.stringify(rect)) {
40
+ return JSON.stringify(data);
41
+ }
42
+ if (basicRectID) {
43
+ info.result = [
44
+ ...info.result.filter((v) => !(v.sourceID && v.sourceID === basicRectID)),
45
+ ...rect.filter((v) => v.sourceID && v.sourceID === basicRectID)
46
+ ];
47
+ } else {
48
+ info.result = rect;
49
+ }
50
+ return JSON.stringify(data);
51
+ }
52
+ return JSON.stringify(__spreadProps(__spreadValues({}, data), {
53
+ [stepName]: __spreadProps(__spreadValues(__spreadValues({}, data[stepName]), customObject), {
54
+ result: rect
55
+ })
56
+ }));
57
+ }
58
+ return JSON.stringify(__spreadProps(__spreadValues({}, data), {
59
+ [stepName]: __spreadProps(__spreadValues({
60
+ dataSourceStep
61
+ }, customObject), {
62
+ toolName: stepList[step - 1].tool,
63
+ result: rect
64
+ })
65
+ }));
66
+ } catch (e) {
67
+ return result;
68
+ }
69
+ };
70
+
71
+ export { composeResult, composeResultWithBasicImgInfo };
72
+ //# sourceMappingURL=data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.js","sources":["../../src/utils/data.ts"],"sourcesContent":["import { jsonParser } from '.';\nimport StepUtils from './StepUtils';\n\n/**\n * 解析结果,将图片信息注入到结果\n * @param result\n * @param basicImgInfo\n */\nexport const composeResultWithBasicImgInfo = (\n result: string,\n basicImgInfo: { [a: string]: any },\n) => {\n const newResult = JSON.stringify({ ...jsonParser(result), ...basicImgInfo });\n return newResult;\n};\n\n// 处理result\nexport const composeResult = (\n result: string,\n pos: {\n step: number;\n stepList: any[];\n },\n newData: {\n rect: any[];\n basicRectID?: string;\n },\n customObject: Object,\n) => {\n const { step, stepList } = pos;\n const { rect, basicRectID } = newData;\n\n try {\n const data = jsonParser(result);\n const currentStepInfo = StepUtils.getCurrentStepInfo(step, stepList);\n const { dataSourceStep } = currentStepInfo;\n\n const stepName = `step_${currentStepInfo.step}`;\n if (data[stepName]) {\n const info = data[stepName];\n Object.assign(info, customObject);\n\n if (info.result) {\n if (JSON.stringify(info.result) === JSON.stringify(rect)) {\n return JSON.stringify(data);\n }\n if (basicRectID) {\n info.result = [\n ...info.result.filter(\n (v: { sourceID: string }) => !(v.sourceID && v.sourceID === basicRectID),\n ),\n ...rect.filter((v) => v.sourceID && v.sourceID === basicRectID),\n ];\n } else {\n info.result = rect;\n }\n return JSON.stringify(data);\n }\n return JSON.stringify({\n ...data,\n [stepName]: {\n ...data[stepName],\n ...customObject,\n result: rect,\n },\n });\n }\n // 初始化结果\n return JSON.stringify({\n ...data,\n [stepName]: {\n dataSourceStep,\n ...customObject,\n toolName: stepList[step - 1].tool,\n result: rect,\n },\n });\n } catch (e) {\n return result;\n }\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAQa,MAAA,6BAAA,GAAgC,CAC3C,MAAA,EACA,YACG,KAAA;AACH,EAAA,MAAM,SAAY,GAAA,IAAA,CAAK,SAAU,CAAA,cAAA,CAAA,cAAA,CAAA,EAAA,EAAK,WAAW,MAAY,CAAA,CAAA,EAAA,YAAA,CAAA,CAAA,CAAA;AAC7D,EAAO,OAAA,SAAA,CAAA;AAAA,EAAA;AAIF,MAAM,aAAgB,GAAA,CAC3B,MACA,EAAA,GAAA,EAIA,SAIA,YACG,KAAA;AACH,EAAM,MAAA,CAAE,MAAM,QAAa,CAAA,GAAA,GAAA,CAAA;AAC3B,EAAM,MAAA,CAAE,MAAM,WAAgB,CAAA,GAAA,OAAA,CAAA;AAE9B,EAAI,IAAA;AACF,IAAA,MAAM,OAAO,UAAW,CAAA,MAAA,CAAA,CAAA;AACxB,IAAM,MAAA,eAAA,GAAkB,SAAU,CAAA,kBAAA,CAAmB,IAAM,EAAA,QAAA,CAAA,CAAA;AAC3D,IA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AAAA,OAAA,CAAA,CAAA,CAAA;AAAA,KAAA;AAKd,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,aAAA,CAAA,cAAA,CAAA,EAAA,EACjB,IADiB,CAAA,EAAA;AAAA,MAAA,CAEnB,QAAW,GAAA,aAAA,CAAA,cAAA,CAAA;AAAA,QACV,cAAA;AAAA,OAAA,EACG,YAFO,CAAA,EAAA;AAAA,QAGV,QAAA,EAAU,QAAS,CAAA,IAAA,GAAO,CAAG,CAAA,CAAA,IAAA;AAAA,QAC7B,MAAQ,EAAA,IAAA;AAAA,OAAA,CAAA;AAAA,KAAA,CAAA,CAAA,CAAA;AAAA,GAAA,CAAA,OAGL,CAAP,EAAA;AACA,IAAO,OAAA,MAAA,CAAA;AAAA,GAAA;AAAA;;;;"}
package/es/utils/dom.js CHANGED
@@ -1 +1,20 @@
1
- import{prefix as r}from"../constant/index.js";function i(e,t){if(!e)return t;let n;return typeof e=="function"?n=e():"current"in e?n=e.current:n=e,n}const f=(e,t,n)=>`${r}-${e}${t?"__"+t:""}${n?"__"+n:""}`;export{f as getClassName,i as getTargetElement};
1
+ import { prefix } from '../constant/index.js';
2
+
3
+ function getTargetElement(target, defaultElement) {
4
+ if (!target) {
5
+ return defaultElement;
6
+ }
7
+ let targetElement;
8
+ if (typeof target === "function") {
9
+ targetElement = target();
10
+ } else if ("current" in target) {
11
+ targetElement = target.current;
12
+ } else {
13
+ targetElement = target;
14
+ }
15
+ return targetElement;
16
+ }
17
+ const getClassName = (block, elm, modify) => `${prefix}-${block}${elm ? "__" + elm : ""}${modify ? "__" + modify : ""}`;
18
+
19
+ export { getClassName, getTargetElement };
20
+ //# sourceMappingURL=dom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dom.js","sources":["../../src/utils/dom.ts"],"sourcesContent":["import { MutableRefObject } from 'react';\nimport { prefix } from '@/constant';\n\nexport type BasicTarget<T = HTMLElement> =\n | (() => T | null)\n | T\n | null\n | MutableRefObject<T | null | undefined>;\n\ntype TargetElement = HTMLElement | Element | Document | Window;\n\nexport function getTargetElement(\n target?: BasicTarget<TargetElement>,\n defaultElement?: TargetElement,\n): TargetElement | undefined | null {\n if (!target) {\n return defaultElement;\n }\n\n let targetElement: TargetElement | undefined | null;\n\n if (typeof target === 'function') {\n // TODO. Maybe the new version of typescript is not allowed.\n // @ts-ignore\n targetElement = target();\n } else if ('current' in target) {\n targetElement = target.current;\n } else {\n targetElement = target;\n }\n\n return targetElement;\n}\n\n/**\n * Get class like BEM\n * @param elm\n * @param modify\n */\nexport const getClassName = (block: string, elm?: string, modify?: string) =>\n `${prefix}-${block}${elm ? '__' + elm : ''}${modify ? '__' + modify : ''}`;\n"],"names":[],"mappings":";;AAWO,SAAA,gBAAA,CACL,QACA,cACkC,EAAA;AAClC,EAAA,IAAI,CAAC,MAAQ,EAAA;AACX,IAAO,OAAA,cAAA,CAAA;AAAA,GAAA;AAGT,EAAI,IAAA,aAAA,CAAA;AAEJ,EAAI,IAAA,OAAO,WAAW,UAAY,EAAA;AAGhC,IAAgB,aAAA,GAAA,MAAA,EAAA,CAAA;AAAA,GAAA,MAAA,IACP,aAAa,MAAQ,EAAA;AAC9B,IAAA,aAAA,GAAgB,MAAO,CAAA,OAAA,CAAA;AAAA,GAClB,MAAA;AACL,IAAgB,aAAA,GAAA,MAAA,CAAA;AAAA,GAAA;AAGlB,EAAO,OAAA,aAAA,CAAA;AAAA,CAAA;AAQF,MAAM,YAAe,GAAA,CAAC,KAAe,EAAA,GAAA,EAAc,WACxD,CAAG,EAAA,MAAA,CAAA,CAAA,EAAU,KAAQ,CAAA,EAAA,GAAA,GAAM,IAAO,GAAA,GAAA,GAAM,EAAK,CAAA,EAAA,MAAA,GAAS,OAAO,MAAS,GAAA,EAAA,CAAA;;;;"}
package/es/utils/index.js CHANGED
@@ -1 +1,30 @@
1
- import s from"lodash";const o=(r,i={})=>{try{return typeof r=="string"?JSON.parse(r):s.isObject(r)?r:i}catch(t){return i}},n=r=>{if(Array.isArray(r))return r.filter(i=>i).join(" ");if(s.isObject(r)){const i=[];return Object.keys(r).forEach(t=>{r[t]&&i.push(t)}),i.join(" ")}return""};export{n as classnames,o as jsonParser};
1
+ import _ from 'lodash';
2
+
3
+ const jsonParser = (content, defaultValue = {}) => {
4
+ try {
5
+ if (typeof content === "string") {
6
+ return JSON.parse(content);
7
+ }
8
+ return _.isObject(content) ? content : defaultValue;
9
+ } catch (e) {
10
+ return defaultValue;
11
+ }
12
+ };
13
+ const classnames = (className) => {
14
+ if (Array.isArray(className)) {
15
+ return className.filter((i) => i).join(" ");
16
+ }
17
+ if (_.isObject(className)) {
18
+ const classArray = [];
19
+ Object.keys(className).forEach((key) => {
20
+ if (className[key]) {
21
+ classArray.push(key);
22
+ }
23
+ });
24
+ return classArray.join(" ");
25
+ }
26
+ return "";
27
+ };
28
+
29
+ export { classnames, jsonParser };
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":["import _ from 'lodash';\n\nexport const jsonParser = (content: any, defaultValue: any = {}) => {\n try {\n if (typeof content === 'string') {\n return JSON.parse(content);\n }\n return _.isObject(content) ? content : defaultValue;\n } catch (e) {\n return defaultValue;\n }\n};\n\nexport const getNewNode = <T>(newNode: T, oldNode: T): T => {\n return newNode || _.isNull(newNode) ? newNode : oldNode;\n};\n\nexport const classnames = (className: { [key: string]: boolean } | (string | undefined)[]) => {\n if (Array.isArray(className)) {\n return className.filter((i) => i).join(' ');\n }\n\n if (_.isObject(className)) {\n const classArray: string[] = [];\n Object.keys(className).forEach((key) => {\n if (className[key]) {\n classArray.push(key);\n }\n });\n\n return classArray.join(' ');\n }\n\n return '';\n};\n"],"names":[],"mappings":";;AAEO,MAAM,UAAa,GAAA,CAAC,OAAc,EAAA,YAAA,GAAoB,EAAO,KAAA;AAClE,EAAI,IAAA;AACF,IAAI,IAAA,OAAO,YAAY,QAAU,EAAA;AAC/B,MAAA,OAAO,KAAK,KAAM,CAAA,OAAA,CAAA,CAAA;AAAA,KAAA;AAEpB,IAAO,OAAA,CAAA,CAAE,QAAS,CAAA,OAAA,CAAA,GAAW,OAAU,GAAA,YAAA,CAAA;AAAA,GAAA,CAAA,OAChC,CAAP,EAAA;AACA,IAAO,OAAA,YAAA,CAAA;AAAA,GAAA;AAAA,EAAA;AAQE,MAAA,UAAA,GAAa,CAAC,SAAmE,KAAA;AAC5F,EAAI,IAAA,KAAA,CAAM,QAAQ,SAAY,CAAA,EAAA;AAC5B,IAAA,OAAO,SAAU,CAAA,MAAA,CAAO,CAAC,CAAA,KAAM,GAAG,IAAK,CAAA,GAAA,CAAA,CAAA;AAAA,GAAA;AAGzC,EAAI,IAAA,CAAA,CAAE,SAAS,SAAY,CAAA,EAAA;AACzB,IAAA,MAAM,UAAuB,GAAA,EAAA,CAAA;AAC7B,IAAA,MAAA,CAAO,IAAK,CAAA,SAAA,CAAA,CAAW,OAAQ,CAAA,CAAC,GAAQ,KAAA;AACtC,MAAA,IAAI,UAAU,GAAM,CAAA,EAAA;AAClB,QAAA,UAAA,CAAW,IAAK,CAAA,GAAA,CAAA,CAAA;AAAA,OAAA;AAAA,KAAA,CAAA,CAAA;AAIpB,IAAA,OAAO,WAAW,IAAK,CAAA,GAAA,CAAA,CAAA;AAAA,GAAA;AAGzB,EAAO,OAAA,EAAA,CAAA;AAAA;;;;"}