@labelbee/lb-components 1.6.0-alpha.0 → 1.6.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/assets/annotation/lineTool/icon_line.svg.js +1 -0
  3. package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +1 -0
  4. package/dist/assets/annotation/pointCloudTool/copy.svg.js +1 -0
  5. package/dist/assets/annotation/pointCloudTool/nextBox.svg.js +1 -0
  6. package/dist/assets/annotation/pointCloudTool/nodata.svg.js +1 -0
  7. package/dist/assets/annotation/pointCloudTool/patse.svg.js +1 -0
  8. package/dist/assets/annotation/pointCloudTool/prevBox.svg.js +1 -0
  9. package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +1 -0
  10. package/dist/assets/annotation/pointCloudTool/selectAll.svg.js +1 -0
  11. package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js +1 -0
  12. package/dist/assets/annotation/pointTool/icon_point.svg.js +1 -0
  13. package/dist/assets/annotation/polygonTool/icon_polygon.svg.js +1 -0
  14. package/dist/assets/annotation/rectTool/icon_rect.svg.js +1 -0
  15. package/dist/assets/annotation/rectTool/{icon_rectPattern.svg.js → icon_rect_a.svg.js} +0 -0
  16. package/dist/assets/attributeIcon/eraser.svg.js +1 -0
  17. package/dist/assets/attributeIcon/eraser_a.svg.js +1 -0
  18. package/dist/assets/attributeIcon/pen.svg.js +1 -0
  19. package/dist/assets/attributeIcon/pen_a.svg.js +1 -0
  20. package/dist/assets/{cssIcon/annotation/icon_clearSmall.svg → icons/25541b4d.svg} +0 -0
  21. package/dist/assets/icons/25ef334b.svg +8 -0
  22. package/dist/assets/icons/7eadb9c4.svg +5 -0
  23. package/dist/assets/icons/9d70807.svg +5 -0
  24. package/dist/assets/icons/c5b4262e.png +0 -0
  25. package/dist/assets/{cssIcon/slide_btn.svg → icons/cc550fff.svg} +0 -0
  26. package/dist/assets/{cssIcon/annotation/icon_clearSmall_a.svg → icons/dc9b6bfc.svg} +0 -0
  27. package/dist/assets/icons/e4f0b7fe.png +0 -0
  28. package/dist/components/AnnotationView/index.js +1 -1
  29. package/dist/components/AnnotationView/pointCloudAnnotationView.js +1 -0
  30. package/dist/components/attributeList/index.js +1 -1
  31. package/dist/components/customResizeHook/index.js +1 -1
  32. package/dist/components/pointCloudView/PointCloud2DView.js +1 -0
  33. package/dist/components/pointCloudView/PointCloud3DView.js +1 -0
  34. package/dist/components/pointCloudView/PointCloudBackView.js +1 -0
  35. package/dist/components/pointCloudView/PointCloudContext.js +1 -0
  36. package/dist/components/pointCloudView/PointCloudInfos.js +1 -0
  37. package/dist/components/pointCloudView/PointCloudLayout.js +1 -0
  38. package/dist/components/pointCloudView/PointCloudListener.js +1 -0
  39. package/dist/components/pointCloudView/PointCloudSideView.js +1 -0
  40. package/dist/components/pointCloudView/PointCloudTopView.js +1 -0
  41. package/dist/components/pointCloudView/components/EmptyPage/index.js +1 -0
  42. package/dist/components/pointCloudView/hooks/useBoxes.js +1 -0
  43. package/dist/components/pointCloudView/hooks/usePointCloudViews.js +1 -0
  44. package/dist/components/pointCloudView/hooks/usePolygon.js +1 -0
  45. package/dist/components/pointCloudView/hooks/useRotate.js +1 -0
  46. package/dist/components/pointCloudView/hooks/useSingleBox.js +1 -0
  47. package/dist/components/pointCloudView/hooks/useStatus.js +1 -0
  48. package/dist/components/pointCloudView/hooks/useZoom.js +1 -0
  49. package/dist/components/pointCloudView/index.js +1 -0
  50. package/dist/components/videoAnnotate/index.js +1 -1
  51. package/dist/data/enums/ToolType.js +1 -1
  52. package/dist/hooks/annotation.js +1 -0
  53. package/dist/hooks/useSize.js +1 -1
  54. package/dist/index.css +314 -44
  55. package/dist/index.js +1 -1
  56. package/dist/store/Actions.js +1 -1
  57. package/dist/store/annotation/actionCreators.js +1 -1
  58. package/dist/store/annotation/map.js +1 -0
  59. package/dist/store/annotation/reducer.js +1 -1
  60. package/dist/store/ctx.js +1 -0
  61. package/dist/types/App.d.ts +10 -2
  62. package/dist/types/components/AnnotationView/index.d.ts +6 -5
  63. package/dist/types/components/AnnotationView/pointCloudAnnotationView.d.ts +10 -0
  64. package/dist/types/components/attributeList/index.d.ts +1 -0
  65. package/dist/types/components/pointCloudView/PointCloud2DView.d.ts +6 -0
  66. package/dist/types/components/pointCloudView/PointCloud3DView.d.ts +6 -0
  67. package/dist/types/components/pointCloudView/PointCloudBackView.d.ts +3 -0
  68. package/dist/types/components/pointCloudView/PointCloudContext.d.ts +33 -0
  69. package/dist/types/components/pointCloudView/PointCloudInfos.d.ts +19 -0
  70. package/dist/types/components/pointCloudView/PointCloudLayout.d.ts +7 -0
  71. package/dist/types/components/pointCloudView/PointCloudListener.d.ts +6 -0
  72. package/dist/types/components/pointCloudView/PointCloudSideView.d.ts +6 -0
  73. package/dist/types/components/pointCloudView/PointCloudTopView.d.ts +6 -0
  74. package/dist/types/components/pointCloudView/components/EmptyPage/index.d.ts +2 -0
  75. package/dist/types/components/pointCloudView/hooks/useBoxes.d.ts +10 -0
  76. package/dist/types/components/pointCloudView/hooks/usePointCloudViews.d.ts +63 -0
  77. package/dist/types/components/pointCloudView/hooks/usePolygon.d.ts +9 -0
  78. package/dist/types/components/pointCloudView/hooks/useRotate.d.ts +8 -0
  79. package/dist/types/components/pointCloudView/hooks/useSingleBox.d.ts +13 -0
  80. package/dist/types/components/pointCloudView/hooks/useStatus.d.ts +11 -0
  81. package/dist/types/components/pointCloudView/hooks/useZoom.d.ts +7 -0
  82. package/dist/types/components/pointCloudView/index.d.ts +15 -0
  83. package/dist/types/components/videoPlayer/TagToolInstanceAdaptor.d.ts +1 -1
  84. package/dist/types/components/videoPlayer/index.d.ts +1 -1
  85. package/dist/types/data/enums/ToolType.d.ts +14 -8
  86. package/dist/types/hooks/annotation.d.ts +32 -0
  87. package/dist/types/hooks/useSize.d.ts +2 -2
  88. package/dist/types/index.d.ts +3 -1
  89. package/dist/types/store/Actions.d.ts +3 -0
  90. package/dist/types/store/annotation/actionCreators.d.ts +15 -5
  91. package/dist/types/store/annotation/map.d.ts +13 -0
  92. package/dist/types/store/annotation/reducer.d.ts +1 -1
  93. package/dist/types/store/annotation/types.d.ts +2 -0
  94. package/dist/types/store/ctx.d.ts +4 -0
  95. package/dist/types/utils/PageOperator.d.ts +1 -1
  96. package/dist/types/utils/StepUtils.d.ts +7 -0
  97. package/dist/types/utils/ToolUtils.d.ts +10 -0
  98. package/dist/types/utils/data.d.ts +1 -1
  99. package/dist/types/utils/dom.d.ts +1 -1
  100. package/dist/types/utils/index.d.ts +1 -1
  101. package/dist/types/views/MainView/annotationOperation/index.d.ts +3 -0
  102. package/dist/types/views/MainView/sidebar/GeneralOperation/ActionsConfirm.d.ts +12 -0
  103. package/dist/types/views/MainView/sidebar/GeneralOperation/index.d.ts +5 -1
  104. package/dist/types/views/MainView/sidebar/GeneralOperation/useOperationList.d.ts +12 -0
  105. package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/index.d.ts +11 -0
  106. package/dist/types/views/MainView/sidebar/ScribbleSidebar/index.d.ts +6 -0
  107. package/dist/types/views/MainView/sidebar/ToolIcons.d.ts +11 -0
  108. package/dist/types/views/MainView/sidebar/ToolStyle/index.d.ts +1 -1
  109. package/dist/types/views/MainView/sidebar/index.d.ts +1 -0
  110. package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.d.ts +3 -0
  111. package/dist/types/views/MainView/toolFooter/Pagination.d.ts +12 -2
  112. package/dist/types/views/MainView/toolFooter/ZoomController/ZoomLevel/index.d.ts +1 -0
  113. package/dist/types/views/MainView/toolFooter/ZoomController/index.d.ts +15 -4
  114. package/dist/types/views/MainView/toolFooter/index.d.ts +7 -9
  115. package/dist/types/views/MainView/toolHeader/ExportData/index.d.ts +1 -1
  116. package/dist/utils/StepUtils.js +1 -1
  117. package/dist/utils/ToolUtils.js +1 -0
  118. package/dist/utils/data.js +1 -1
  119. package/dist/utils/dom.js +1 -1
  120. package/dist/utils/index.js +1 -1
  121. package/dist/views/MainView/annotationOperation/index.js +1 -1
  122. package/dist/views/MainView/annotationTips/index.js +1 -1
  123. package/dist/views/MainView/index.js +1 -1
  124. package/dist/views/MainView/sidebar/AnnotationText/index.js +1 -1
  125. package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +1 -0
  126. package/dist/views/MainView/sidebar/GeneralOperation/index.js +1 -1
  127. package/dist/views/MainView/sidebar/GeneralOperation/useOperationList.js +1 -0
  128. package/dist/views/MainView/sidebar/ImgAttributeInfo/index.js +1 -1
  129. package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -0
  130. package/dist/views/MainView/sidebar/ScribbleSidebar/index.js +1 -0
  131. package/dist/views/MainView/sidebar/SwitchAttributeList/index.js +1 -1
  132. package/dist/views/MainView/sidebar/TagSidebar/index.js +1 -1
  133. package/dist/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
  134. package/dist/views/MainView/sidebar/ToolIcons.js +1 -0
  135. package/dist/views/MainView/sidebar/ToolStyle/index.js +1 -1
  136. package/dist/views/MainView/sidebar/index.js +1 -1
  137. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -1
  138. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -0
  139. package/dist/views/MainView/toolFooter/FooterTips/index.js +1 -1
  140. package/dist/views/MainView/toolFooter/HiddenTips/index.js +1 -1
  141. package/dist/views/MainView/toolFooter/PageNumber/index.js +1 -1
  142. package/dist/views/MainView/toolFooter/Pagination.js +1 -1
  143. package/dist/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +1 -1
  144. package/dist/views/MainView/toolFooter/ZoomController/index.js +1 -1
  145. package/dist/views/MainView/toolFooter/index.js +1 -1
  146. package/dist/views/MainView/toolHeader/ExportData/index.js +1 -1
  147. package/dist/views/MainView/toolHeader/StepSwitch/index.js +1 -1
  148. package/dist/views/MainView/toolHeader/headerOption/index.js +1 -1
  149. package/dist/views/MainView/toolHeader/index.js +1 -1
  150. package/es/App.js +1 -1
  151. package/es/App.js.map +1 -1
  152. package/es/assets/annotation/lineTool/icon_line.svg.js +1 -0
  153. package/es/assets/annotation/lineTool/icon_line.svg.js.map +1 -0
  154. package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +1 -0
  155. package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js.map +1 -0
  156. package/es/assets/annotation/pointCloudTool/copy.svg.js +1 -0
  157. package/es/assets/annotation/pointCloudTool/copy.svg.js.map +1 -0
  158. package/es/assets/annotation/pointCloudTool/nextBox.svg.js +1 -0
  159. package/es/assets/annotation/pointCloudTool/nextBox.svg.js.map +1 -0
  160. package/es/assets/annotation/pointCloudTool/nodata.svg.js +1 -0
  161. package/es/assets/annotation/pointCloudTool/nodata.svg.js.map +1 -0
  162. package/es/assets/annotation/pointCloudTool/patse.svg.js +1 -0
  163. package/es/assets/annotation/pointCloudTool/patse.svg.js.map +1 -0
  164. package/es/assets/annotation/pointCloudTool/prevBox.svg.js +1 -0
  165. package/es/assets/annotation/pointCloudTool/prevBox.svg.js.map +1 -0
  166. package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +1 -0
  167. package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js.map +1 -0
  168. package/es/assets/annotation/pointCloudTool/selectAll.svg.js +1 -0
  169. package/es/assets/annotation/pointCloudTool/selectAll.svg.js.map +1 -0
  170. package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js +1 -0
  171. package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js.map +1 -0
  172. package/es/assets/annotation/pointTool/icon_point.svg.js +1 -0
  173. package/es/assets/annotation/pointTool/icon_point.svg.js.map +1 -0
  174. package/es/assets/annotation/polygonTool/icon_polygon.svg.js +1 -0
  175. package/es/assets/annotation/polygonTool/icon_polygon.svg.js.map +1 -0
  176. package/es/assets/annotation/rectTool/icon_rect.svg.js +1 -0
  177. package/es/assets/annotation/rectTool/icon_rect.svg.js.map +1 -0
  178. package/es/assets/annotation/rectTool/icon_rectPattern.svg.js +4 -1
  179. package/es/assets/annotation/rectTool/icon_rect_a.svg.js +1 -0
  180. package/es/assets/annotation/rectTool/icon_rect_a.svg.js.map +1 -0
  181. package/es/assets/attributeIcon/eraser.svg.js +1 -0
  182. package/es/assets/attributeIcon/eraser.svg.js.map +1 -0
  183. package/es/assets/attributeIcon/eraser_a.svg.js +1 -0
  184. package/es/assets/attributeIcon/eraser_a.svg.js.map +1 -0
  185. package/es/assets/attributeIcon/pen.svg.js +1 -0
  186. package/es/assets/attributeIcon/pen.svg.js.map +1 -0
  187. package/es/assets/attributeIcon/pen_a.svg.js +1 -0
  188. package/es/assets/attributeIcon/pen_a.svg.js.map +1 -0
  189. package/es/components/AnnotationView/index.js +1 -1
  190. package/es/components/AnnotationView/index.js.map +1 -1
  191. package/es/components/AnnotationView/pointCloudAnnotationView.js +1 -0
  192. package/es/components/AnnotationView/pointCloudAnnotationView.js.map +1 -0
  193. package/es/components/attributeList/index.js +1 -1
  194. package/es/components/attributeList/index.js.map +1 -1
  195. package/es/components/customResizeHook/index.js +1 -1
  196. package/es/components/customResizeHook/index.js.map +1 -1
  197. package/es/components/pointCloudView/PointCloud2DView.js +1 -0
  198. package/es/components/pointCloudView/PointCloud2DView.js.map +1 -0
  199. package/es/components/pointCloudView/PointCloud3DView.js +1 -1
  200. package/es/components/pointCloudView/PointCloud3DView.js.map +1 -0
  201. package/es/components/pointCloudView/PointCloudBackView.js +1 -0
  202. package/es/components/pointCloudView/PointCloudBackView.js.map +1 -0
  203. package/es/components/pointCloudView/PointCloudContext.js +1 -0
  204. package/es/components/pointCloudView/PointCloudContext.js.map +1 -0
  205. package/es/components/pointCloudView/PointCloudInfos.js +1 -0
  206. package/es/components/pointCloudView/PointCloudInfos.js.map +1 -0
  207. package/es/components/pointCloudView/PointCloudLayout.js +1 -1
  208. package/es/components/pointCloudView/PointCloudLayout.js.map +1 -0
  209. package/es/components/pointCloudView/PointCloudListener.js +1 -0
  210. package/es/components/pointCloudView/PointCloudListener.js.map +1 -0
  211. package/es/components/pointCloudView/PointCloudSideView.js +1 -0
  212. package/es/components/pointCloudView/PointCloudSideView.js.map +1 -0
  213. package/es/components/pointCloudView/PointCloudTopView.js +1 -1
  214. package/es/components/pointCloudView/PointCloudTopView.js.map +1 -0
  215. package/es/components/pointCloudView/components/EmptyPage/index.js +1 -0
  216. package/es/components/pointCloudView/components/EmptyPage/index.js.map +1 -0
  217. package/es/components/pointCloudView/data.js +4 -0
  218. package/es/components/pointCloudView/data.js.map +1 -0
  219. package/es/components/pointCloudView/hooks/useBoxes.js +1 -0
  220. package/es/components/pointCloudView/hooks/useBoxes.js.map +1 -0
  221. package/es/components/pointCloudView/hooks/useConfig.js +19 -0
  222. package/es/components/pointCloudView/hooks/useConfig.js.map +1 -0
  223. package/es/components/pointCloudView/hooks/usePointCloudViews.js +1 -0
  224. package/es/components/pointCloudView/hooks/usePointCloudViews.js.map +1 -0
  225. package/es/components/pointCloudView/hooks/usePolygon.js +1 -0
  226. package/es/components/pointCloudView/hooks/usePolygon.js.map +1 -0
  227. package/es/components/pointCloudView/hooks/useRotate.js +1 -0
  228. package/es/components/pointCloudView/hooks/useRotate.js.map +1 -0
  229. package/es/components/pointCloudView/hooks/useSingleBox.js +1 -0
  230. package/es/components/pointCloudView/hooks/useSingleBox.js.map +1 -0
  231. package/es/components/pointCloudView/hooks/useStatus.js +1 -0
  232. package/es/components/pointCloudView/hooks/useStatus.js.map +1 -0
  233. package/es/components/pointCloudView/hooks/useZoom.js +1 -0
  234. package/es/components/pointCloudView/hooks/useZoom.js.map +1 -0
  235. package/es/components/pointCloudView/index.js +1 -1
  236. package/es/components/pointCloudView/index.js.map +1 -0
  237. package/es/components/videoAnnotate/index.js +1 -1
  238. package/es/components/videoAnnotate/index.js.map +1 -1
  239. package/es/data/enums/ToolType.js +1 -1
  240. package/es/data/enums/ToolType.js.map +1 -1
  241. package/es/hooks/annotation.js +1 -0
  242. package/es/hooks/annotation.js.map +1 -0
  243. package/es/hooks/useConfig.js +18 -0
  244. package/es/hooks/useConfig.js.map +1 -0
  245. package/es/hooks/useSize.js +1 -1
  246. package/es/hooks/useSize.js.map +1 -1
  247. package/es/index.css +1404 -0
  248. package/es/index.js +1 -1
  249. package/es/index.js.map +1 -1
  250. package/es/store/Actions.js +1 -1
  251. package/es/store/Actions.js.map +1 -1
  252. package/es/store/annotation/actionCreators.js +1 -1
  253. package/es/store/annotation/actionCreators.js.map +1 -1
  254. package/es/store/annotation/map.js +1 -0
  255. package/es/store/annotation/map.js.map +1 -0
  256. package/es/store/annotation/reducer.js +1 -1
  257. package/es/store/annotation/reducer.js.map +1 -1
  258. package/es/store/ctx.js +1 -0
  259. package/es/store/ctx.js.map +1 -0
  260. package/es/utils/StepUtils.js +1 -1
  261. package/es/utils/StepUtils.js.map +1 -1
  262. package/es/utils/ToolUtils.js.map +1 -0
  263. package/es/utils/data.js +1 -1
  264. package/es/utils/data.js.map +1 -1
  265. package/es/utils/dom.js +1 -1
  266. package/es/utils/dom.js.map +1 -1
  267. package/es/utils/index.js +1 -1
  268. package/es/utils/index.js.map +1 -1
  269. package/es/views/MainView/annotationOperation/index.js +1 -1
  270. package/es/views/MainView/annotationOperation/index.js.map +1 -1
  271. package/es/views/MainView/annotationTips/index.js +1 -1
  272. package/es/views/MainView/annotationTips/index.js.map +1 -1
  273. package/es/views/MainView/index.js +1 -1
  274. package/es/views/MainView/index.js.map +1 -1
  275. package/es/views/MainView/sidebar/AnnotationText/index.js +1 -1
  276. package/es/views/MainView/sidebar/AnnotationText/index.js.map +1 -1
  277. package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +1 -0
  278. package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js.map +1 -0
  279. package/es/views/MainView/sidebar/GeneralOperation/index.js +1 -1
  280. package/es/views/MainView/sidebar/GeneralOperation/index.js.map +1 -1
  281. package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js +1 -0
  282. package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js.map +1 -0
  283. package/es/views/MainView/sidebar/ImgAttributeInfo/index.js +1 -1
  284. package/es/views/MainView/sidebar/ImgAttributeInfo/index.js.map +1 -1
  285. package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -0
  286. package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js.map +1 -0
  287. package/es/views/MainView/sidebar/ScribbleSidebar/index.js +1 -0
  288. package/es/views/MainView/sidebar/ScribbleSidebar/index.js.map +1 -0
  289. package/es/views/MainView/sidebar/SwitchAttributeList/index.js +1 -1
  290. package/es/views/MainView/sidebar/SwitchAttributeList/index.js.map +1 -1
  291. package/es/views/MainView/sidebar/TagSidebar/index.js +1 -1
  292. package/es/views/MainView/sidebar/TagSidebar/index.js.map +1 -1
  293. package/es/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
  294. package/es/views/MainView/sidebar/TextToolSidebar/index.js.map +1 -1
  295. package/es/views/MainView/sidebar/ToolIcons.js +1 -0
  296. package/es/views/MainView/sidebar/ToolIcons.js.map +1 -0
  297. package/es/views/MainView/sidebar/ToolStyle/index.js +1 -1
  298. package/es/views/MainView/sidebar/ToolStyle/index.js.map +1 -1
  299. package/es/views/MainView/sidebar/index.js +1 -1
  300. package/es/views/MainView/sidebar/index.js.map +1 -1
  301. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -1
  302. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js.map +1 -1
  303. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -0
  304. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js.map +1 -0
  305. package/es/views/MainView/toolFooter/FooterTips/index.js +1 -1
  306. package/es/views/MainView/toolFooter/FooterTips/index.js.map +1 -1
  307. package/es/views/MainView/toolFooter/HiddenTips/index.js +1 -1
  308. package/es/views/MainView/toolFooter/HiddenTips/index.js.map +1 -1
  309. package/es/views/MainView/toolFooter/PageNumber/index.js +1 -1
  310. package/es/views/MainView/toolFooter/PageNumber/index.js.map +1 -1
  311. package/es/views/MainView/toolFooter/Pagination.js +1 -1
  312. package/es/views/MainView/toolFooter/Pagination.js.map +1 -1
  313. package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +1 -1
  314. package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js.map +1 -1
  315. package/es/views/MainView/toolFooter/ZoomController/index.js +1 -1
  316. package/es/views/MainView/toolFooter/ZoomController/index.js.map +1 -1
  317. package/es/views/MainView/toolFooter/index.js +1 -1
  318. package/es/views/MainView/toolFooter/index.js.map +1 -1
  319. package/es/views/MainView/toolHeader/ExportData/index.js +1 -1
  320. package/es/views/MainView/toolHeader/ExportData/index.js.map +1 -1
  321. package/es/views/MainView/toolHeader/StepSwitch/index.js +1 -1
  322. package/es/views/MainView/toolHeader/StepSwitch/index.js.map +1 -1
  323. package/es/views/MainView/toolHeader/headerOption/index.js +1 -1
  324. package/es/views/MainView/toolHeader/headerOption/index.js.map +1 -1
  325. package/es/views/MainView/toolHeader/index.js +1 -1
  326. package/es/views/MainView/toolHeader/index.js.map +1 -1
  327. package/package.json +9 -8
  328. package/dist/index.css.map +0 -1
package/dist/App.js CHANGED
@@ -1 +1 @@
1
- "use strict";var index$1=require("./views/MainView/index.js"),lbUtils=require("@labelbee/lb-utils"),React=require("react"),reactRedux=require("react-redux"),index=require("./index.js"),Actions=require("./store/Actions.js"),actionCreators=require("./store/annotation/actionCreators.js"),reducer=require("./store/annotation/reducer.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e};const App=e=>{const{imgList:t,step:r=1,stepList:s,onSubmit:l,onSave:c,onPageChange:u,onStepChange:d,initialIndex:a=0,toolInstance:n,setToolInstance:o,getFileData:p,pageSize:f=10,loadFileList:i,defaultLang:v="cn"}=e;React.useEffect(()=>{index.store.dispatch(actionCreators.InitTaskData({onSubmit:l,stepList:s,step:r,getFileData:p,pageSize:f,loadFileList:i,onSave:c,onPageChange:u,onStepChange:d})),g(),lbUtils.i18n.changeLanguage(v)},[]),React.useEffect(()=>{o==null||o(n)},[n]);const g=()=>{i?actionCreators.loadImgList(index.store.dispatch,index.store.getState,a,!0).then(_=>{_&&index.store.dispatch(reducer.LoadFileAndFileData(a))}):t&&t.length>0&&(index.store.dispatch({type:Actions.ANNOTATION_ACTIONS.UPDATE_IMG_LIST,payload:{imgList:t}}),index.store.dispatch(reducer.LoadFileAndFileData(a)))};return React__default.default.createElement("div",null,React__default.default.createElement(index$1,__spreadValues({},e)))},mapStateToProps=e=>({toolInstance:e.annotation.toolInstance});var App$1=reactRedux.connect(mapStateToProps)(App);module.exports=App$1;
1
+ "use strict";var index$1=require("./views/MainView/index.js"),lbUtils=require("@labelbee/lb-utils"),React=require("react"),reactRedux=require("react-redux"),index=require("./index.js"),ctx=require("./store/ctx.js"),Actions=require("./store/Actions.js"),actionCreators=require("./store/annotation/actionCreators.js"),reducer=require("./store/annotation/reducer.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e};const App=e=>{const{imgList:t,step:r=1,stepList:n,onSubmit:o,onSave:i,onPageChange:s,onStepChange:l,initialIndex:c=0,toolInstance:f,setToolInstance:g,getFileData:u,pageSize:d=10,loadFileList:a,defaultLang:p="cn",skipBeforePageTurning:v}=e;React.useEffect(()=>{index.store.dispatch(actionCreators.InitTaskData({onSubmit:o,stepList:n,step:r,getFileData:u,pageSize:d,loadFileList:a,onSave:i,onPageChange:s,onStepChange:l,skipBeforePageTurning:v})),_(),lbUtils.i18n.changeLanguage(p)},[]),React.useEffect(()=>{index.store.dispatch(actionCreators.UpdateInjectFunc({onSubmit:o,stepList:n,getFileData:u,pageSize:d,loadFileList:a,onSave:i,onPageChange:s,onStepChange:l})),lbUtils.i18n.changeLanguage(p)},[o,n,u,d,a,i,s,l,p]),React.useEffect(()=>{g==null||g(f)},[f]);const _=()=>{a?actionCreators.loadImgList(index.store.dispatch,index.store.getState,c,!0).then(I=>{I&&index.store.dispatch(reducer.LoadFileAndFileData(c))}):t&&t.length>0&&(index.store.dispatch({type:Actions.ANNOTATION_ACTIONS.UPDATE_IMG_LIST,payload:{imgList:t}}),index.store.dispatch(reducer.LoadFileAndFileData(c)))};return React__default.default.createElement("div",null,React__default.default.createElement(index$1,__spreadValues({},e)))},mapStateToProps=e=>({toolInstance:e.annotation.toolInstance});var App$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(App);module.exports=App$1;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg id='icon_line' xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: none%3b %7d .cls-2 %7b fill: %23666%3b %7d %3c/style%3e %3c/defs%3e %3crect id='%e7%9f%a9%e5%bd%a2%e5%a4%87%e4%bb%bd_10' data-name='%e7%9f%a9%e5%bd%a2%e5%a4%87%e4%bb%bd 10' class='cls-1' width='20' height='20'/%3e %3cpath id='%e5%bd%a2%e7%8a%b6%e7%bb%93%e5%90%88' class='cls-2' d='M3.889%2c15.556V13.042l9.153-9.153h2.514V0H11.667V2.514L2.514%2c11.667H0v3.889Z' transform='translate(2.222 2.222)'/%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='4.81982' y='12.3096' width='1.49968' height='10.4997' transform='rotate(-135 4.81982 12.3096)' fill='%23666666'/%3e%3cg clip-path='url(%23clip0_90_7913)'%3e%3cg clip-path='url(%23clip1_90_7913)'%3e%3cmask id='mask0_90_7913' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='9' y='10' width='7' height='6'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.91842 13.0569L15.1098 13.0582L15.7797 13.7267H11.5931L12.7653 15.0664H11.7605L9.91842 13.0569ZM15.2773 12.2195L10.0859 12.2182L9.41602 11.5497H13.6026L12.4304 10.21H13.4351L15.2772 12.2195H15.2773Z' fill='white'/%3e%3c/mask%3e%3cg mask='url(%23mask0_90_7913)'%3e%3cpath d='M7.88104 8.6748H17.3149V16.6014H7.88104V8.6748Z' fill='%23666666'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3crect x='14.0015' y='5.06738' width='2.99984' height='2.99984' transform='rotate(180 14.0015 5.06738)' fill='white' stroke='%23707070'/%3e%3crect x='5.00146' y='14.0674' width='2.99984' height='2.99984' transform='rotate(180 5.00146 14.0674)' fill='white' stroke='%23707070'/%3e%3cdefs%3e%3cclipPath id='clip0_90_7913'%3e%3crect width='6.36365' height='4.85646' fill='white' transform='translate(9.41602 10.21)'/%3e%3c/clipPath%3e%3cclipPath id='clip1_90_7913'%3e%3crect width='6.36365' height='4.85646' fill='white' transform='translate(9.41602 10.21)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.33331 4.6437V3.104C4.33331 2.58624 4.75305 2.1665 5.27081 2.1665H13.3958C13.9136 2.1665 14.3333 2.58624 14.3333 3.104V11.229C14.3333 11.7468 13.9136 12.1665 13.3958 12.1665H11.8387' stroke='%23666666' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.7292 4.8335H2.60419C2.08642 4.8335 1.66669 5.25323 1.66669 5.771V13.896C1.66669 14.4138 2.08642 14.8335 2.60419 14.8335H10.7292C11.247 14.8335 11.6667 14.4138 11.6667 13.896V5.771C11.6667 5.25323 11.247 4.8335 10.7292 4.8335Z' stroke='%23666666' stroke-width='1.33333' stroke-linejoin='round'/%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.63151 12.7676L1.10109 5.19533C0.858489 4.91296 1.07723 4.49935 1.46897 4.49935H14.5298C14.9215 4.49935 15.1403 4.91296 14.8977 5.19533L8.36727 12.7676C8.18035 12.9844 7.81843 12.9844 7.6315 12.7676H7.63151Z' fill='%23666666'/%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='68' height='76' viewBox='0 0 68 76' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_96880_20054)'%3e%3crect x='6.45483' y='0.848145' width='54.0956' height='56.7089' rx='1.04533' fill='url(%23paint0_linear_96880_20054)' fill-opacity='0.12'/%3e%3cpath d='M67 41.3584V75H0V57.755L65.6869 40.348C66.3501 40.1722 67 40.6723 67 41.3584Z' fill='url(%23paint1_linear_96880_20054)'/%3e%3cpath d='M0.182861 35.8192V75.3775H67.0837V59.9767L1.60277 34.8433C0.91818 34.5806 0.182861 35.086 0.182861 35.8192Z' fill='url(%23paint2_linear_96880_20054)'/%3e%3cpath d='M34.8791 22C31.5247 22 28.8956 22.9519 26.9464 24.8558C25.4935 26.2426 24.5938 28.0144 24.2124 30.171C23.9638 31.5762 25.1568 32.7431 26.5838 32.7431V32.7431C28.0108 32.7431 29.098 31.5652 29.4401 30.1799C29.627 29.423 29.912 28.7815 30.3008 28.2555C31.2074 27.0316 32.6126 26.4423 34.5618 26.4423C36.103 26.4423 37.3269 26.8503 38.1882 27.7115C39.0041 28.5728 39.4574 29.7514 39.4574 31.2473C39.4574 32.3805 39.0494 33.4684 38.2335 34.4657L37.6896 35.1003C34.7431 37.7294 32.9753 39.6332 32.386 40.8571C31.9171 41.7614 31.6462 42.8142 31.5366 43.9972C31.4651 44.7702 31.9823 45.4588 32.7224 45.6932V45.6932C33.2639 45.8647 33.8406 45.8939 34.3967 45.778L34.957 45.6612C35.9679 45.4505 36.6494 44.5444 36.9087 43.5449C37.0201 43.1152 37.1747 42.7029 37.3723 42.3077C37.7802 41.4918 38.3695 40.7212 39.1854 40.0865C41.3613 38.1827 42.6758 36.9588 43.0838 36.5055C44.1717 35.0549 44.761 33.1964 44.761 30.9299C44.761 28.1648 43.8544 25.989 42.0412 24.4025C40.228 22.7706 37.8255 22 34.8791 22ZM34.0632 48.1552C33.0659 48.1552 32.25 48.4725 31.6154 49.1071C30.8901 49.7418 30.5728 50.5577 30.5728 51.5549C30.5728 52.5522 30.8901 53.3681 31.6154 54.0027C32.25 54.6374 33.0659 55 34.0632 55C35.0604 55 35.8764 54.6827 36.6016 54.0481C37.2363 53.4135 37.5989 52.5522 37.5989 51.5549C37.5989 50.5577 37.2363 49.7418 36.6016 49.1071C35.9217 48.4725 35.0604 48.1552 34.0632 48.1552Z' fill='%23F3F3F3' fill-opacity='0.25'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear_96880_20054' x1='33.5026' y1='0.848145' x2='33.5026' y2='57.557' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23EDEDED'/%3e%3cstop offset='1' stop-color='white'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear_96880_20054' x1='33.5' y1='32.9214' x2='33.5' y2='62.8103' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23373737'/%3e%3cstop offset='1' stop-color='%230E0E0E'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear_96880_20054' x1='33.6333' y1='31.097' x2='33.6333' y2='74.1393' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%232C2C2C'/%3e%3cstop offset='1' stop-color='%23424242'/%3e%3c/linearGradient%3e%3cclipPath id='clip0_96880_20054'%3e%3crect width='68' height='76.0002' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.33331 4.6437V3.104C4.33331 2.58624 4.75305 2.1665 5.27081 2.1665H13.3958C13.9136 2.1665 14.3333 2.58624 14.3333 3.104V11.229C14.3333 11.7468 13.9136 12.1665 13.3958 12.1665H11.8387' fill='%23CCCCCC'/%3e%3cpath d='M4.33331 4.6437V3.104C4.33331 2.58624 4.75305 2.1665 5.27081 2.1665H13.3958C13.9136 2.1665 14.3333 2.58624 14.3333 3.104V11.229C14.3333 11.7468 13.9136 12.1665 13.3958 12.1665H11.8387' stroke='%23666666' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.7292 4.8335H2.60419C2.08642 4.8335 1.66669 5.25323 1.66669 5.771V13.896C1.66669 14.4138 2.08642 14.8335 2.60419 14.8335H10.7292C11.247 14.8335 11.6667 14.4138 11.6667 13.896V5.771C11.6667 5.25323 11.247 4.8335 10.7292 4.8335Z' fill='%23CCCCCC' stroke='%23666666' stroke-width='1.33333' stroke-linejoin='round'/%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.63151 4.23239L1.10109 11.8047C0.858489 12.087 1.07723 12.5006 1.46897 12.5006H14.5298C14.9215 12.5006 15.1403 12.087 14.8977 11.8047L8.36727 4.23239C8.18035 4.01564 7.81843 4.01564 7.6315 4.23239H7.63151Z' fill='%23666666'/%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14.0606 2.74219V5.16642H11.6364' stroke='%23666666' stroke-width='0.8' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M14.6667 8.50016C14.6667 12.1821 11.6819 15.1668 8.00002 15.1668C4.31812 15.1668 1.33335 12.1821 1.33335 8.50016C1.33335 4.81826 4.31812 1.8335 8.00002 1.8335C10.4674 1.8335 12.6217 3.17387 13.7744 5.1662' stroke='%23666666' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M4.219 11V6.016H3.281L2.518 6.611V7.661L3.281 7.115V11H4.219ZM7.6968 9.572C7.6968 9.299 7.6758 9.012 7.5638 8.781C7.4938 8.641 7.3958 8.529 7.2628 8.424C7.3818 8.326 7.4658 8.221 7.5288 8.095C7.6408 7.857 7.6618 7.612 7.6618 7.353C7.6618 6.926 7.5918 6.562 7.3048 6.275C7.0878 6.058 6.7798 5.96 6.4438 5.96C6.1078 5.96 5.8138 6.058 5.5968 6.275C5.3098 6.562 5.2398 6.926 5.2398 7.353C5.2398 7.612 5.2608 7.857 5.3728 8.095C5.4358 8.221 5.5198 8.326 5.6388 8.424C5.5058 8.529 5.4078 8.641 5.3378 8.781C5.2258 9.012 5.2048 9.299 5.2048 9.572C5.2048 10.041 5.2328 10.412 5.5618 10.734C5.7858 10.951 6.1148 11.056 6.4508 11.056C6.7868 11.056 7.1158 10.951 7.3398 10.734C7.6688 10.412 7.6968 10.041 7.6968 9.572ZM6.7588 9.523C6.7588 9.656 6.7728 9.978 6.6748 10.111C6.6258 10.174 6.5418 10.216 6.4508 10.216C6.3598 10.216 6.2758 10.181 6.2268 10.111C6.1288 9.971 6.1428 9.656 6.1428 9.523C6.1428 9.39 6.1218 9.061 6.2268 8.921C6.2758 8.851 6.3598 8.816 6.4508 8.816C6.5418 8.816 6.6188 8.851 6.6748 8.921C6.7798 9.061 6.7588 9.39 6.7588 9.523ZM6.7238 7.402C6.7238 7.528 6.7518 7.843 6.6258 7.969C6.5838 8.011 6.5208 8.032 6.4508 8.032C6.3808 8.032 6.3248 8.011 6.2758 7.969C6.1428 7.85 6.1778 7.528 6.1778 7.402C6.1778 7.283 6.1568 7.003 6.2548 6.884C6.3038 6.828 6.3738 6.8 6.4508 6.8C6.5278 6.8 6.5978 6.828 6.6468 6.884C6.7448 7.003 6.7238 7.283 6.7238 7.402ZM10.6496 9.838V7.178C10.6496 6.744 10.5306 6.492 10.3066 6.282C10.0826 6.065 9.75359 5.96 9.41759 5.96C9.08159 5.96 8.75259 6.065 8.52859 6.282C8.30459 6.492 8.18559 6.744 8.18559 7.178V9.838C8.18559 10.272 8.30459 10.524 8.52859 10.734C8.75259 10.951 9.08159 11.056 9.41759 11.056C9.75359 11.056 10.0826 10.951 10.3066 10.734C10.5306 10.524 10.6496 10.272 10.6496 9.838ZM9.71159 9.873C9.71159 10.104 9.58559 10.216 9.41759 10.216C9.24959 10.216 9.12359 10.104 9.12359 9.873V7.143C9.12359 6.912 9.24959 6.8 9.41759 6.8C9.58559 6.8 9.71159 6.912 9.71159 7.143V9.873ZM13.6304 7.129C13.6304 6.443 13.0774 5.89 12.3914 5.89C11.7054 5.89 11.1524 6.443 11.1524 7.129C11.1524 7.815 11.7054 8.368 12.3914 8.368C13.0774 8.368 13.6304 7.815 13.6304 7.129ZM12.8044 7.129C12.8044 7.36 12.6224 7.542 12.3914 7.542C12.1604 7.542 11.9784 7.36 11.9784 7.129C11.9784 6.898 12.1604 6.716 12.3914 6.716C12.6224 6.716 12.8044 6.898 12.8044 7.129Z' fill='%23666666'/%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.3334 2.1665H2.66669C2.1144 2.1665 1.66669 2.61422 1.66669 3.1665V11.8332C1.66669 12.3855 2.1144 12.8332 2.66669 12.8332H11.3334C11.8857 12.8332 12.3334 12.3855 12.3334 11.8332V3.1665C12.3334 2.61422 11.8857 2.1665 11.3334 2.1665Z' stroke='%23666666' stroke-width='1.33333' stroke-linejoin='round'/%3e%3cpath d='M14.6666 4.83398V14.5C14.6666 14.8682 14.3681 15.1667 13.9999 15.1667H4.33447' stroke='%23666666' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M4.33331 7.32861L6.33321 9.17031L9.66665 5.73975' stroke='%23666666' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14 7.16667V13.5C14 14.0523 13.5523 14.5 13 14.5H3C2.44772 14.5 2 14.0523 2 13.5V3.5C2 2.94772 2.44772 2.5 3 2.5H10' stroke='%23666666' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.33331 7.16683L8.66665 9.8335L13.6666 2.8335' stroke='%23666666' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.125 1H8.875V5.5H11.125V1Z' fill='%23999999'/%3e%3cpath d='M11.125 14.5H8.875V19H11.125V14.5Z' fill='%23999999'/%3e%3cpath d='M14.5 8.96582V11.2158H19V8.96582H14.5Z' fill='%23999999'/%3e%3cpath d='M1 8.96582L1 11.2158H5.5V8.96582H1Z' fill='%23999999'/%3e%3cpath d='M10 13C11.6569 13 13 11.6569 13 10C13 8.34315 11.6569 7 10 7C8.34315 7 7 8.34315 7 10C7 11.6569 8.34315 13 10 13Z' fill='%23999999'/%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17 17H15V15H17V17ZM17 13H15V11H17V13ZM17 9H15V7H17V9ZM17 5H15V3H17V5Z' fill='%23999999'/%3e%3cpath d='M17 17H15.4286V15H17V17ZM13.8571 17H12.2857V15H13.8571V17ZM10.7143 17H9.14286V15H10.7143V17ZM7.57143 17H6V15H7.57143V17Z' fill='%23999999'/%3e%3cpath d='M18 2H14V6H18V2Z' fill='%23999999'/%3e%3cpath d='M6 14H2V18H6V14Z' fill='%23999999'/%3e%3cpath d='M18 14H14V18H18V14Z' fill='%23999999'/%3e%3cpath d='M15.2236 3L16.6378 4.41421L4.4144 16.6377L3.00019 15.2234L15.2236 3Z' fill='%23999999'/%3e%3cpath d='M15 15L15 17L5 17L5 15L15 15Z' fill='%23999999'/%3e%3cpath d='M15 6H17V15H15V6Z' fill='%23999999'/%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17 5H15.4286V3H17V5ZM13.8571 5H12.2857V3H13.8571V5ZM10.7143 5H9.14286V3H10.7143V5ZM7.57143 5H6V3H7.57143V5Z' fill='%23999999'/%3e%3cpath d='M17 17H15V15H17V17ZM17 13H15V11H17V13ZM17 9H15V7H17V9ZM17 5H15V3H17V5Z' fill='%23999999'/%3e%3cpath d='M17 17H15.4286V15H17V17ZM13.8571 17H12.2857V15H13.8571V17ZM10.7143 17H9.14286V15H10.7143V17ZM7.57143 17H6V15H7.57143V17Z' fill='%23999999'/%3e%3cpath d='M6 2H2V6H6V2Z' fill='%23999999'/%3e%3cpath d='M18 2H14V6H18V2Z' fill='%23999999'/%3e%3cpath d='M6 14H2V18H6V14Z' fill='%23999999'/%3e%3cpath d='M18 14H14V18H18V14Z' fill='%23999999'/%3e%3cpath d='M5 6H3V15H5V6Z' fill='white'/%3e%3cpath d='M3 6H5V15H3V6Z' fill='%23999999'/%3e%3cpath d='M15 3L15 5L5 5L5 3L15 3Z' fill='%23999999'/%3e%3cpath d='M15 15L15 17L5 17L5 15L15 15Z' fill='%23999999'/%3e%3cpath d='M15 6H17V15H15V6Z' fill='%23999999'/%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3crect x='6.34875' y='0.353553' width='4.5' height='8.47848' rx='2.25' transform='rotate(45 6.34875 0.353553)' fill='%23E6E6E6' stroke='%23BAB8B8' stroke-width='0.5' /%3e %3cline x1='1.74547' y1='4.60767' x2='4.92401' y2='8.46733' stroke='%23BAB8B8' stroke-width='0.5' /%3e %3cline x1='2.00061' y1='9.75' x2='10.0006' y2='9.75' stroke='%23BAB8B8' stroke-width='0.5' /%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3crect x='6.34875' y='0.353553' width='4.5' height='8.47848' rx='2.25' transform='rotate(45 6.34875 0.353553)' fill='%236272FB' stroke='%23BAB8B8' stroke-width='0.5' /%3e %3cline x1='1.74547' y1='4.60767' x2='4.92401' y2='8.46733' stroke='%23BAB8B8' stroke-width='0.5' /%3e %3cline x1='2.00061' y1='9.75' x2='10.0006' y2='9.75' stroke='%236272FB' stroke-width='0.5' /%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='12' height='13' viewBox='0 0 12 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3crect x='9.07153' y='1' width='3' height='10' rx='1' transform='rotate(45 9.07153 1)' fill='%23BAB8B8' /%3e %3cpath d='M1.06068 11.182L1.73311 8.67247L3.57023 10.5096L1.06068 11.182Z' fill='%23BAB8B8' /%3e %3ccircle cx='11.0002' cy='1' r='1' fill='%23BAB8B8' /%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1 @@
1
+ "use strict";var img="data:image/svg+xml,%3csvg width='12' height='13' viewBox='0 0 12 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3crect x='9.07153' y='1' width='3' height='10' rx='1' transform='rotate(45 9.07153 1)' fill='%236272FB' /%3e %3cpath d='M1.06068 11.182L1.73311 8.67247L3.57023 10.5096L1.06068 11.182Z' fill='%236272FB' /%3e %3ccircle cx='11.0002' cy='1' r='1' fill='%236272FB' /%3e%3c/svg%3e";module.exports=img;
@@ -0,0 +1,8 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12.2503 19.8382C16.4411 19.8382 19.8384 16.441 19.8384 12.2502C19.8384 8.05939 16.4411 4.66211 12.2503 4.66211C8.05952 4.66211 4.66223 8.05939 4.66223 12.2502C4.66223 16.441 8.05952 19.8382 12.2503 19.8382Z" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M12.2502 4.02984V1.50049" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M12.2502 23.0001V20.4707" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M23 12.25H20.4706" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
6
+ <path d="M4.02984 12.25H1.50049" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
7
+ <path d="M12.2501 13.5147C12.9486 13.5147 13.5148 12.9485 13.5148 12.25C13.5148 11.5515 12.9486 10.9854 12.2501 10.9854C11.5516 10.9854 10.9854 11.5515 10.9854 12.25C10.9854 12.9485 11.5516 13.5147 12.2501 13.5147Z" fill="white"/>
8
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M21 10.5H8V20.5H21V10.5Z" stroke="white" stroke-width="1.2" stroke-linejoin="round"/>
3
+ <path d="M3 14C3 9.02944 7.02944 5 12 5" stroke="white" stroke-width="1.2"/>
4
+ <path d="M11.1546 2.20832L11.1492 3.9226L11.1519 5.91278V7.62439C11.1492 7.7985 11.3528 7.89493 11.4894 7.78778L14.9206 5.07975C15.0251 4.99403 15.0278 4.83332 14.9206 4.75028L11.4921 2.04492C11.3581 1.93778 11.1546 2.03421 11.1546 2.20832Z" fill="white"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M21.0908 3.36377V7.00012H17.4544" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M22 12C22 17.5229 17.5229 22 12 22C6.47715 22 2 17.5229 2 12C2 6.47715 6.47715 2 12 2C15.701 2 18.9324 4.01056 20.6616 6.99905" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M8.536 15V9.304H7.464L6.592 9.984V11.184L7.464 10.56V15H8.536ZM12.5106 13.368C12.5106 13.056 12.4866 12.728 12.3586 12.464C12.2786 12.304 12.1666 12.176 12.0146 12.056C12.1506 11.944 12.2466 11.824 12.3186 11.68C12.4466 11.408 12.4706 11.128 12.4706 10.832C12.4706 10.344 12.3906 9.928 12.0626 9.6C11.8146 9.352 11.4626 9.24 11.0786 9.24C10.6946 9.24 10.3586 9.352 10.1106 9.6C9.78263 9.928 9.70263 10.344 9.70263 10.832C9.70263 11.128 9.72663 11.408 9.85463 11.68C9.92663 11.824 10.0226 11.944 10.1586 12.056C10.0066 12.176 9.89463 12.304 9.81463 12.464C9.68663 12.728 9.66263 13.056 9.66263 13.368C9.66263 13.904 9.69463 14.328 10.0706 14.696C10.3266 14.944 10.7026 15.064 11.0866 15.064C11.4706 15.064 11.8466 14.944 12.1026 14.696C12.4786 14.328 12.5106 13.904 12.5106 13.368ZM11.4386 13.312C11.4386 13.464 11.4546 13.832 11.3426 13.984C11.2866 14.056 11.1906 14.104 11.0866 14.104C10.9826 14.104 10.8866 14.064 10.8306 13.984C10.7186 13.824 10.7346 13.464 10.7346 13.312C10.7346 13.16 10.7106 12.784 10.8306 12.624C10.8866 12.544 10.9826 12.504 11.0866 12.504C11.1906 12.504 11.2786 12.544 11.3426 12.624C11.4626 12.784 11.4386 13.16 11.4386 13.312ZM11.3986 10.888C11.3986 11.032 11.4306 11.392 11.2866 11.536C11.2386 11.584 11.1666 11.608 11.0866 11.608C11.0066 11.608 10.9426 11.584 10.8866 11.536C10.7346 11.4 10.7746 11.032 10.7746 10.888C10.7746 10.752 10.7506 10.432 10.8626 10.296C10.9186 10.232 10.9986 10.2 11.0866 10.2C11.1746 10.2 11.2546 10.232 11.3106 10.296C11.4226 10.432 11.3986 10.752 11.3986 10.888ZM15.8853 13.672V10.632C15.8853 10.136 15.7493 9.848 15.4933 9.608C15.2373 9.36 14.8613 9.24 14.4773 9.24C14.0933 9.24 13.7173 9.36 13.4613 9.608C13.2053 9.848 13.0693 10.136 13.0693 10.632V13.672C13.0693 14.168 13.2053 14.456 13.4613 14.696C13.7173 14.944 14.0933 15.064 14.4773 15.064C14.8613 15.064 15.2373 14.944 15.4933 14.696C15.7493 14.456 15.8853 14.168 15.8853 13.672ZM14.8133 13.712C14.8133 13.976 14.6693 14.104 14.4773 14.104C14.2853 14.104 14.1413 13.976 14.1413 13.712V10.592C14.1413 10.328 14.2853 10.2 14.4773 10.2C14.6693 10.2 14.8133 10.328 14.8133 10.592V13.712ZM19.2919 10.576C19.2919 9.792 18.6599 9.16 17.8759 9.16C17.0919 9.16 16.4599 9.792 16.4599 10.576C16.4599 11.36 17.0919 11.992 17.8759 11.992C18.6599 11.992 19.2919 11.36 19.2919 10.576ZM18.3479 10.576C18.3479 10.84 18.1399 11.048 17.8759 11.048C17.6119 11.048 17.4039 10.84 17.4039 10.576C17.4039 10.312 17.6119 10.104 17.8759 10.104C18.1399 10.104 18.3479 10.312 18.3479 10.576Z" fill="white"/>
5
+ </svg>
Binary file
Binary file
@@ -1 +1 @@
1
- "use strict";var React=require("react"),lbAnnotation=require("@labelbee/lb-annotation"),es=require("antd/es");function _interopDefaultLegacy(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(r,o,e)=>o in r?__defProp(r,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[o]=e,__spreadValues=(r,o)=>{for(var e in o||(o={}))__hasOwnProp.call(o,e)&&__defNormalProp(r,e,o[e]);if(__getOwnPropSymbols)for(var e of __getOwnPropSymbols(o))__propIsEnum.call(o,e)&&__defNormalProp(r,e,o[e]);return r};const DEFAULT_SIZE={width:1280,height:720},AnnotationView=(r,o)=>{const{size:e=DEFAULT_SIZE,src:v,annotations:l=[],style:p={stroke:"blue",thickness:3},zoomChange:s,backgroundStyle:g={},onChange:c,showLoading:_=!1}=r,[m,d]=React.useState(!1),f=React.useRef(null),n=React.useRef();React.useImperativeHandle(o,()=>{const t=n.current;return t?{zoomIn:()=>t.zoomChanged(!0),zoomOut:()=>t.zoomChanged(!1),initImgPos:()=>t.initImgPos(),toolInstance:t}:{}},[n.current]),React.useEffect(()=>(f.current&&(n.current=new lbAnnotation.ViewOperation({container:f.current,size:e,style:p,annotations:l,config:"{}"}),n.current.init()),()=>{var t;(t=n.current)==null||t.destroy()}),[]),React.useEffect(()=>{var t;n.current&&(d(!0),(t=n.current)==null||t.setLoading(!0),lbAnnotation.ImgUtils.load(v).then(i=>{var a,u;(a=n.current)==null||a.setLoading(!1),d(!1),(u=n.current)==null||u.setImgNode(i)}).catch(()=>{var i;(i=n.current)==null||i.setLoading(!1),d(!1)}))},[v]),React.useEffect(()=>{n.current&&n.current.updateData(l)},[l]),React.useEffect(()=>{const t=n.current;(t==null?void 0:t.setSize)&&t.setSize(e)},[e==null?void 0:e.width,e==null?void 0:e.height]),React.useEffect(()=>{var t,i;return n.current&&((t=n.current)==null||t.on("onChange",(...a)=>{c==null||c.apply(null,a)}),(i=n.current)==null||i.on("renderZoom",a=>{s&&s(a)})),()=>{var a,u;(a=n.current)==null||a.unbindAll("onChange"),(u=n.current)==null||u.unbindAll("renderZoom")}},[s,c]);const h=React__default.default.createElement("div",{ref:f,style:__spreadValues(__spreadValues({position:"relative"},e),g)});return React__default.default.createElement(es.Spin,{spinning:_||m,delay:300},h)};var index=React__default.default.forwardRef(AnnotationView);module.exports=index;
1
+ "use strict";var React=require("react"),lbAnnotation=require("@labelbee/lb-annotation"),es=require("antd/es");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,o)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,__spreadValues=(e,t)=>{for(var o in t||(t={}))__hasOwnProp.call(t,o)&&__defNormalProp(e,o,t[o]);if(__getOwnPropSymbols)for(var o of __getOwnPropSymbols(t))__propIsEnum.call(t,o)&&__defNormalProp(e,o,t[o]);return e};const DEFAULT_SIZE={width:500,height:100},sizeInitialized=e=>{if(!e)return DEFAULT_SIZE;if(e.width&&e.height)return e;const t=__spreadValues({},e);return t.width||(t.width=DEFAULT_SIZE.width),t.height||(t.height=DEFAULT_SIZE.height),t},AnnotationView=(e,t)=>{var o,g;const{src:h,annotations:u=[],style:_={stroke:"blue",thickness:3},zoomChange:s,backgroundStyle:m={},onChange:c,showLoading:p=!1,globalStyle:w}=e,d=sizeInitialized(e.size),[b,f]=React.useState(!1),v=React.useRef(null),r=React.useRef();React.useImperativeHandle(t,()=>{const n=r.current;return n?{zoomIn:()=>n.zoomChanged(!0),zoomOut:()=>n.zoomChanged(!1),initImgPos:()=>n.initImgPos(),toolInstance:n}:{}},[r.current]),React.useEffect(()=>(v.current&&(r.current=new lbAnnotation.ViewOperation({container:v.current,size:d,style:_,annotations:u,config:"{}"}),r.current.init()),()=>{var n;(n=r.current)==null||n.destroy()}),[]),React.useEffect(()=>{var n;r.current&&(f(!0),(n=r.current)==null||n.setLoading(!0),lbAnnotation.ImgUtils.load(h).then(a=>{var i,l;(i=r.current)==null||i.setLoading(!1),f(!1),(l=r.current)==null||l.setImgNode(a)}).catch(()=>{var a;(a=r.current)==null||a.setLoading(!1),f(!1)}))},[h]),React.useEffect(()=>{r.current&&r.current.updateData(u)},[u]),React.useEffect(()=>{const n=r.current;(n==null?void 0:n.setSize)&&(n.setSize(d),n.initPosition())},[(o=e.size)==null?void 0:o.width,(g=e.size)==null?void 0:g.height]),React.useEffect(()=>{var n,a;return r.current&&((n=r.current)==null||n.on("onChange",(...i)=>{c==null||c.apply(null,i)}),(a=r.current)==null||a.on("renderZoom",i=>{s&&s(i)})),()=>{var i,l;(i=r.current)==null||i.unbindAll("onChange"),(l=r.current)==null||l.unbindAll("renderZoom")}},[s,c]);const y=React__default.default.createElement("div",{ref:v,style:__spreadValues(__spreadValues({position:"relative"},d),m)});return React__default.default.createElement(es.Spin,{spinning:p||b,delay:300,style:w},y)};var AnnotationView$1=React__default.default.forwardRef(AnnotationView);module.exports=AnnotationView$1;
@@ -0,0 +1 @@
1
+ "use strict";var lbAnnotation=require("@labelbee/lb-annotation"),lbUtils=require("@labelbee/lb-utils"),React=require("react");function _interopDefaultLegacy(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var React__default=_interopDefaultLegacy(React);const PointCloudAnnotationView=t=>{const{src:o,result:a,size:u}=t;let i=React.useRef();const r=React.useRef(),s=React.useCallback(e=>{i.current=e},[]);return React.useEffect(()=>{const e=new lbAnnotation.PointCloud({container:i.current,backgroundColor:"#ccc"});r.current=e},[]),React.useEffect(()=>{var e;(e=r.current)==null||e.init()},[u]),React.useEffect(()=>{var e;r.current&&o&&((e=r.current)==null||e.loadPCDFile(o))},[o]),React.useEffect(()=>(a&&lbUtils.PointCloudUtils.getBoxParamsFromResultList(a).forEach(l=>{var n;(n=r.current)==null||n.generateBox(l,l.id)}),()=>{var e;lbUtils.PointCloudUtils.getBoxParamsFromResultList(a).forEach(n=>{var c;(c=r.current)==null||c.removeObjectByName(n.id)}),(e=r.current)==null||e.render()}),[a]),React__default.default.createElement("div",{style:u,ref:s})};module.exports=PointCloudAnnotationView;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Style=require("../../data/Style.js"),index=require("../colorTag/index.js"),es=require("antd/es"),React=require("react");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const ATTRIBUTE_COLORS=[Style.NULL_COLOR].concat(Style.COLORS_ARRAY),AttributeList=React__default.default.forwardRef((e,n)=>{const d=React__default.default.useRef(),o=e.list||[];let u=[...ATTRIBUTE_COLORS];e.forbidDefault===!0&&(u=u.slice(1));let r="sensebee-radio-group";return e.noHeightLimit&&(r="sensebee-radio-group-no-limit-height"),React__default.default.createElement("div",{className:r},React__default.default.createElement(es.Radio.Group,{name:"radiogroup",defaultValue:e==null?void 0:e.selectedAttribute,value:e==null?void 0:e.selectedAttribute,onChange:a=>e.attributeChanged(a.target.value),ref:n},o.map((a,l)=>{var i;let t=(i=e==null?void 0:e.num)!=null?i:l;return e.forbidDefault===!0&&t++,typeof t=="number"&&t<=9&&t>=0||(t="-"),React__default.default.createElement(es.Radio,{value:a.value,ref:d,key:l},React__default.default.createElement("span",{className:"sensebee-radio-label",title:a.label},!(e==null?void 0:e.forbidColor)&&React__default.default.createElement(index.ColorTag,{color:l>8&&!e.forbidDefault?Style.COLORS_ARRAY[(l-1)%Style.COLORS_ARRAY.length]:u[l%u.length],style:{marginRight:"8px"}}),a.label),React__default.default.createElement("span",{className:"sensebee-radio-num"},t))})))});exports.ATTRIBUTE_COLORS=ATTRIBUTE_COLORS,exports.default=AttributeList;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Style=require("../../data/Style.js"),index=require("../colorTag/index.js"),es=require("antd/es"),React=require("react");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const ATTRIBUTE_COLORS=[Style.NULL_COLOR].concat(Style.COLORS_ARRAY),AttributeList=React__default.default.forwardRef((e,o)=>{const d=React__default.default.useRef(),f=e.list||[];let r=[...ATTRIBUTE_COLORS];e.forbidDefault===!0&&(r=r.slice(1));let u="sensebee-radio-group";return e.noHeightLimit&&(u="sensebee-radio-group-no-limit-height"),React__default.default.createElement("div",{className:u},React__default.default.createElement(es.Radio.Group,{name:"radiogroup",defaultValue:e==null?void 0:e.selectedAttribute,value:e==null?void 0:e.selectedAttribute,onChange:t=>e.attributeChanged(t.target.value),ref:o},f.map((t,l)=>{var i;let a=(i=e==null?void 0:e.num)!=null?i:l;e.forbidDefault===!0&&a++,typeof a=="number"&&a<=9&&a>=0||(a="-");let n=l>8&&!e.forbidDefault?Style.COLORS_ARRAY[(l-1)%Style.COLORS_ARRAY.length]:r[l%r.length];return(t==null?void 0:t.color)&&(n=t.color),React__default.default.createElement(es.Radio,{value:t.value,ref:d,key:l},React__default.default.createElement("span",{className:"sensebee-radio-label",title:t.label},!(e==null?void 0:e.forbidColor)&&React__default.default.createElement(index.ColorTag,{color:n,style:{marginRight:"8px"}}),t.label),React__default.default.createElement("span",{className:"sensebee-radio-num"},a))})))});exports.ATTRIBUTE_COLORS=ATTRIBUTE_COLORS,exports.default=AttributeList;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var AnnotationSize=require("../../data/enums/AnnotationSize.js"),lbAnnotation=require("@labelbee/lb-annotation"),React=require("react"),reactRedux=require("react-redux"),actionCreators=require("../../store/annotation/actionCreators.js"),antd=require("antd");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const EKeyCode=lbAnnotation.cKeyCode.default,viewportContext=React__default.default.createContext({width:window.innerWidth,height:window.innerHeight}),ViewportProviderComponent=e=>{const{children:a,dispatch:n}=e,[r]=React.useState(window.innerWidth),[i]=React.useState(window.innerHeight),o=t=>{var s;if(!!lbAnnotation.toolUtils.hotkeyFilter(t)&&(t.keyCode===EKeyCode.A&&n(actionCreators.PageBackward()),t.keyCode===EKeyCode.D&&n(actionCreators.PageForward()),t.keyCode===EKeyCode.R&&n(actionCreators.UpdateRotate()),t.shiftKey===!0&&t.ctrlKey===!0&&t.altKey===!0&&t.keyCode===EKeyCode.C)){antd.message.success("DEVELOPMENT TESTING - Switch Last Two Canvas");const c=(s=e.annotation)==null?void 0:s.annotationEngine.switchLastTwoCanvas();if(!c)return;n(actionCreators.UpdateToolInstance(c))}};React.useEffect(()=>(window.addEventListener("keydown",o),()=>{window.removeEventListener("keydown",o)}),[e.annotation.annotationEngine]);const d=React.useMemo(()=>({width:r,height:i}),[r,i]);return React__default.default.createElement(viewportContext.Provider,{value:d},a)},ViewportProvider=reactRedux.connect(e=>({annotation:e.annotation}))(ViewportProviderComponent),getFormatSize=(e,a=!1,n=!1)=>{const{width:r,height:i}=e,o=AnnotationSize.headerHeight+AnnotationSize.footerHeight,d=n?40+o+40:o,t=a?AnnotationSize.editStepWidth+AnnotationSize.sidebarWidth:AnnotationSize.sidebarWidth;return{width:r-t,height:i-d}};exports.ViewportProvider=ViewportProvider,exports.ViewportProviderComponent=ViewportProviderComponent,exports.getFormatSize=getFormatSize,exports.viewportContext=viewportContext;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var AnnotationSize=require("../../data/enums/AnnotationSize.js"),lbAnnotation=require("@labelbee/lb-annotation"),React=require("react"),reactRedux=require("react-redux"),actionCreators=require("../../store/annotation/actionCreators.js"),antd=require("antd"),ctx=require("../../store/ctx.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const EKeyCode=lbAnnotation.cKeyCode.default,viewportContext=React__default.default.createContext({width:window.innerWidth,height:window.innerHeight}),ViewportProviderComponent=e=>{const{children:d,dispatch:n,annotation:{skipBeforePageTurning:o}}=e,[i]=React.useState(window.innerWidth),[r]=React.useState(window.innerHeight),a=t=>{var c;if(!!lbAnnotation.toolUtils.hotkeyFilter(t)){if(!t.shiftKey||!t.ctrlKey){if(t.keyCode===EKeyCode.A){if(o){o(()=>n(actionCreators.PageBackward()));return}n(actionCreators.PageBackward())}if(t.keyCode===EKeyCode.D){if(o){o(()=>n(actionCreators.PageForward()));return}n(actionCreators.PageForward())}t.keyCode===EKeyCode.R&&n(actionCreators.UpdateRotate())}if(t.shiftKey===!0&&t.ctrlKey===!0&&t.altKey===!0&&t.keyCode===EKeyCode.C){antd.message.success("DEVELOPMENT TESTING - Switch Last Two Canvas");const u=(c=e.annotation)==null?void 0:c.annotationEngine.switchLastTwoCanvas();if(!u)return;n(actionCreators.UpdateToolInstance(u))}}};React.useEffect(()=>(window.addEventListener("keydown",a),()=>{window.removeEventListener("keydown",a)}),[e.annotation.annotationEngine,e.annotation.skipBeforePageTurning]);const s=React.useMemo(()=>({width:i,height:r}),[i,r]);return React__default.default.createElement(viewportContext.Provider,{value:s},d)},ViewportProvider=reactRedux.connect(e=>({annotation:e.annotation}),null,null,{context:ctx.LabelBeeContext})(ViewportProviderComponent),getFormatSize=(e,d=!1,n=!1)=>{const{width:o,height:i}=e,r=AnnotationSize.headerHeight+AnnotationSize.footerHeight,a=n?40+r+40:r,s=d?AnnotationSize.editStepWidth+AnnotationSize.sidebarWidth:AnnotationSize.sidebarWidth;return{width:o-s,height:i-a}};exports.ViewportProvider=ViewportProvider,exports.ViewportProviderComponent=ViewportProviderComponent,exports.getFormatSize=getFormatSize,exports.viewportContext=viewportContext;
@@ -0,0 +1 @@
1
+ "use strict";var dom=require("../../utils/dom.js"),React=require("react"),PointCloudLayout=require("./PointCloudLayout.js"),index=require("../AnnotationView/index.js"),PointCloudContext=require("./PointCloudContext.js"),reactRedux=require("react-redux"),icons=require("@ant-design/icons"),useSize=require("../../hooks/useSize.js"),useSingleBox=require("./hooks/useSingleBox.js"),reactI18next=require("react-i18next"),ctx=require("../../store/ctx.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__spreadValues=(e,t)=>{for(var n in t||(t={}))__hasOwnProp.call(t,n)&&__defNormalProp(e,n,t[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(t))__propIsEnum.call(t,n)&&__defNormalProp(e,n,t[n]);return e};const Toolbar=({onNext:e,onPrev:t,imgLength:n,imgIndex:l})=>React__default.default.createElement("div",null,React__default.default.createElement(icons.LeftOutlined,{onClick:t}),React__default.default.createElement("span",null," ",l+1," / ",n," "),React__default.default.createElement(icons.RightOutlined,{onClick:e})),PointCloud2DView=({imgInfo:e})=>{var t,n,l,g,x;const[c,y]=React.useState([]),{pointCloudBoxList:_,topViewInstance:L}=React.useContext(PointCloudContext.PointCloudContext),[s,p]=React.useState(0),C=React.useRef(null),v=React.useRef(),{selectedBox:f}=useSingleBox.useSingleBox(),w=useSize(C),{t:E}=reactI18next.useTranslation(),r=(t=e==null?void 0:e.mappingImgList)==null?void 0:t[s];React.useEffect(()=>{p(0)},[e]),React.useEffect(()=>{if(L&&r){const{pointCloudInstance:o}=L,a={fill:"transparent",color:"green"},u=_.reduce((i,d)=>{const S=o.pointCloudLidar2image(d,r.calib);return[...i,...S.map(P=>({type:P.type,annotation:__spreadValues({id:d.id,pointList:P.pointList},a)}))]},[]);y(u)}},[_,r]);const m=!e||!(e==null?void 0:e.mappingImgList)||!(((n=e==null?void 0:e.mappingImgList)==null?void 0:n.length)>0);return React.useEffect(()=>{var o,a;const u=(o=v.current)==null?void 0:o.toolInstance;if(!f||!u)return;const i=c.find(d=>d.annotation.id===f.info.id);((a=i==null?void 0:i.annotation.pointList)==null?void 0:a.length)>0&&u.focusPositionByPointList(i==null?void 0:i.annotation.pointList)},[f,v.current,c]),React__default.default.createElement(PointCloudLayout.PointCloudContainer,{className:dom.getClassName("point-cloud-2d-container"),title:E("2DView"),toolbar:m?void 0:React__default.default.createElement(Toolbar,{imgIndex:s,imgLength:(g=(l=e.mappingImgList)==null?void 0:l.length)!=null?g:0,onNext:()=>{var o;!e||!(e==null?void 0:e.mappingImgList)||s>=((o=e==null?void 0:e.mappingImgList)==null?void 0:o.length)-1||p(a=>a+1)},onPrev:()=>{s<=0||p(o=>o-1)}}),style:{display:m?"none":"flex"}},React__default.default.createElement("div",{className:dom.getClassName("point-cloud-2d-image"),ref:C},React__default.default.createElement(index,{src:(x=r==null?void 0:r.url)!=null?x:"",annotations:c,size:w,ref:v,globalStyle:{display:m?"none":"block"}})))},mapStateToProps=e=>{const{imgList:t,imgIndex:n}=e.annotation;return{imgInfo:t[n]}};var PointCloud2DView$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(PointCloud2DView);module.exports=PointCloud2DView$1;
@@ -0,0 +1 @@
1
+ "use strict";var dom=require("../../utils/dom.js"),lbAnnotation=require("@labelbee/lb-annotation"),lbUtils=require("@labelbee/lb-utils"),classNames=require("classnames"),React=require("react"),PointCloudLayout=require("./PointCloudLayout.js"),PointCloudContext=require("./PointCloudContext.js"),map=require("../../store/annotation/map.js"),reactRedux=require("react-redux"),index=require("../../utils/index.js"),useSingleBox=require("./hooks/useSingleBox.js"),antd=require("antd"),useSize=require("../../hooks/useSize.js"),usePointCloudViews=require("./hooks/usePointCloudViews.js"),reactI18next=require("react-i18next"),ctx=require("../../store/ctx.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var classNames__default=_interopDefaultLegacy(classNames),React__default=_interopDefaultLegacy(React);const pointCloudID="LABELBEE-POINTCLOUD",PointCloud3DContext=React__default.default.createContext({isActive:!1,setTarget3DView:()=>{},reset3DView:()=>{}}),PointCloudViewIcon=({perspectiveView:e})=>{const{isActive:l,setTarget3DView:a}=React.useContext(PointCloud3DContext),r=u=>classNames__default.default({[dom.getClassName("point-cloud-3d-view",u)]:!0,active:l});return React__default.default.createElement("span",{onClick:()=>{a(lbUtils.EPerspectiveView[e])},className:r(e.toLocaleLowerCase())})},PointCloud3DSideBar=()=>{const{reset3DView:e}=React.useContext(PointCloud3DContext);return React__default.default.createElement("div",{className:dom.getClassName("point-cloud-3d-sidebar")},React__default.default.createElement(PointCloudViewIcon,{perspectiveView:"Top"}),React__default.default.createElement(PointCloudViewIcon,{perspectiveView:"Front"}),React__default.default.createElement(PointCloudViewIcon,{perspectiveView:"Left"}),React__default.default.createElement(PointCloudViewIcon,{perspectiveView:"Back"}),React__default.default.createElement(PointCloudViewIcon,{perspectiveView:"Right"}),React__default.default.createElement(PointCloudViewIcon,{perspectiveView:"LFT"}),React__default.default.createElement(PointCloudViewIcon,{perspectiveView:"RBT"}),React__default.default.createElement("span",{onClick:()=>{e()},className:dom.getClassName("point-cloud-3d-view","reset")}))},PointCloud3D=({currentData:e})=>{var l;const a=React.useContext(PointCloudContext.PointCloudContext),[r,u]=React.useState(!0),s=React.useRef(null),{initPointCloud3d:c}=usePointCloudViews.usePointCloudViews(),v=useSize(s),{t:d}=reactI18next.useTranslation();React.useEffect(()=>{!a.mainViewInstance||c==null||c()},[v]);const{selectedBox:n}=useSingleBox.useSingleBox(),m=i=>{var t;const o=n==null?void 0:n.info;o&&((t=a.mainViewInstance)==null||t.updateCameraByBox(o,i))},C=()=>{var i;(i=a.mainViewInstance)==null||i.resetCamera()};React.useEffect(()=>{var i;if(s.current&&(e==null?void 0:e.url)){let t=a.mainViewInstance;if(t||(t=new lbAnnotation.PointCloud({container:s.current,backgroundColor:"#4c4c4c"})),e.result){const o=lbUtils.PointCloudUtils.getBoxParamsFromResultList(e.result);o.forEach(w=>{t==null||t.generateBox(w)}),a.setPointCloudResult(o),a.setPointCloudValid((i=index.jsonParser(e.result))==null?void 0:i.valid)}a.setMainViewInstance(t)}},[e]),React.useEffect(()=>{n&&m(lbUtils.EPerspectiveView.Top)},[n]);const f=React.useMemo(()=>({reset3DView:C,setTarget3DView:m,isActive:!!n}),[n]),p=React__default.default.createElement("div",null,React__default.default.createElement("span",{style:{marginRight:8}},d("ShowArrows")),React__default.default.createElement(antd.Switch,{size:"small",checked:r,onChange:i=>{var t;u(i),(t=a.mainViewInstance)==null||t.setShowDirection(i)}}));return React__default.default.createElement(PointCloudLayout.PointCloudContainer,{className:dom.getClassName("point-cloud-3d-container"),title:d("3DView"),toolbar:p,style:{height:e.mappingImgList&&((l=e.mappingImgList)==null?void 0:l.length)>0?"55%":"100%"}},React__default.default.createElement("div",{className:dom.getClassName("point-cloud-3d-content")},React__default.default.createElement(PointCloud3DContext.Provider,{value:f},React__default.default.createElement(PointCloud3DSideBar,null)),React__default.default.createElement("div",{className:dom.getClassName("point-cloud-3d-view"),id:pointCloudID,ref:s})))};var PointCloud3DView=reactRedux.connect(map.aMapStateToProps,null,null,{context:ctx.LabelBeeContext})(PointCloud3D);module.exports=PointCloud3DView;
@@ -0,0 +1 @@
1
+ "use strict";var lbAnnotation=require("@labelbee/lb-annotation"),dom=require("../../utils/dom.js"),PointCloudLayout=require("./PointCloudLayout.js"),React=require("react"),PointCloudContext=require("./PointCloudContext.js"),useSingleBox=require("./hooks/useSingleBox.js"),lbUtils=require("@labelbee/lb-utils"),PointCloudInfos=require("./PointCloudInfos.js"),reactRedux=require("react-redux"),map=require("../../store/annotation/map.js"),usePointCloudViews=require("./hooks/usePointCloudViews.js"),useSize=require("../../hooks/useSize.js"),index=require("./components/EmptyPage/index.js"),reactI18next=require("react-i18next"),ctx=require("../../store/ctx.js");function _interopDefaultLegacy(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,e,n)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,__spreadValues=(t,e)=>{for(var n in e||(e={}))__hasOwnProp.call(e,n)&&__defNormalProp(t,n,e[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(e))__propIsEnum.call(e,n)&&__defNormalProp(t,n,e[n]);return t},__spreadProps=(t,e)=>__defProps(t,__getOwnPropDescs(e));const TransferCanvas2WorldOffset=(t,e,n=1)=>{const{width:o,height:s}=e,c={x:t.x+o*n/2,y:t.y+s*n/2},d={x:e.width/2,y:e.height/2};return{offsetX:(d.x-c.x)/n,offsetY:-(d.y-c.y)/n}},updateBackViewByCanvas2D=(t,e,n,o,s)=>{const{offsetX:c,offsetY:d}=TransferCanvas2WorldOffset(t,n,e);if(s.camera.zoom=e,t){const r=Math.cos(o.rotation),l=Math.sin(o.rotation),a=c*r,u=c*l,{x:f,y:p,z:P}=s.initCameraPosition;s.camera.position.set(f+u,p-a,P+d)}s.camera.updateProjectionMatrix(),s.render()},PointCloudSideView=({currentData:t})=>{const e=React__default.default.useContext(PointCloudContext.PointCloudContext),n=React.useRef(null),o=useSize(n),{updateSelectedBox:s,selectedBox:c}=useSingleBox.useSingleBox(),{t:d}=reactI18next.useTranslation();return React.useEffect(()=>{if(n.current){const r={width:n.current.clientWidth,height:n.current.clientHeight},l=new lbAnnotation.PointCloudAnnotation({container:n.current,size:r,polygonOperationProps:{showDirectionLine:!1,forbidAddNew:!0}});e.setBackViewInstance(l)}},[]),React.useEffect(()=>{if(!o||!e.backViewInstance)return;const{pointCloud2dOperation:r,pointCloudInstance:l}=e.backViewInstance;r.singleOn("renderZoom",(a,u)=>{!e.selectedPointCloudBox||updateBackViewByCanvas2D(u,a,o,e.selectedPointCloudBox,l)}),r.singleOn("dragMove",({currentPos:a,zoom:u})=>{!e.selectedPointCloudBox||updateBackViewByCanvas2D(a,u,o,e.selectedPointCloudBox,l)}),r.singleOn("updatePolygonByDrag",({newPolygon:a,originPolygon:u})=>{if(!e.selectedPointCloudBox||!e.mainViewInstance||!t.url)return;const[f,p,P]=a.pointList,[w,x,C]=u.pointList,g=lbAnnotation.MathUtils.getLineCenterPoint([f,P]),h=lbAnnotation.MathUtils.getLineCenterPoint([w,C]),v={x:{x:g.x-h.x,y:g.y-h.y}.x,y:0,z:g.y-h.y},m=lbAnnotation.MathUtils.getLineLength(f,p),y=lbAnnotation.MathUtils.getLineLength(w,x),V=m-y,B=lbAnnotation.MathUtils.getLineLength(p,P),_=lbAnnotation.MathUtils.getLineLength(x,C),b=B-_;let{newBoxParams:i}=l.getNewBoxByBackUpdate(v,b,V,e.selectedPointCloudBox);if(e.mainViewInstance){const{count:I}=e.mainViewInstance.getSensesPointZAxisInPolygon(e.mainViewInstance.getCuboidFromPointCloudBox(i).polygonPointList,[i.center.z-i.depth/2,i.center.z+i.depth/2]);i=__spreadProps(__spreadValues({},i),{count:I})}usePointCloudViews.synchronizeTopView(i,a,e.topViewInstance,e.mainViewInstance),usePointCloudViews.synchronizeSideView(i,a,e.sideViewInstance,t.url),e.mainViewInstance.highlightOriginPointCloud(i),s(i)})},[e,o]),React.useEffect(()=>{var r;(r=e==null?void 0:e.backViewInstance)==null||r.initSize(o)},[o]),React__default.default.createElement(PointCloudLayout.PointCloudContainer,{className:dom.getClassName("point-cloud-container","back-view"),title:d("BackView"),toolbar:React__default.default.createElement(PointCloudInfos.SizeInfoForView,{perspectiveView:lbUtils.EPerspectiveView.Back})},React__default.default.createElement("div",{className:dom.getClassName("point-cloud-container","bottom-view-content")},React__default.default.createElement("div",{className:dom.getClassName("point-cloud-container","core-instance"),ref:n}),!c&&React__default.default.createElement(index,null)))};var PointCloudBackView=reactRedux.connect(map.aMapStateToProps,null,null,{context:ctx.LabelBeeContext})(PointCloudSideView);module.exports=PointCloudBackView;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react");function _interopDefaultLegacy(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var React__default=_interopDefaultLegacy(React);const PointCloudContext=React__default.default.createContext({pointCloudBoxList:[],polygonList:[],selectedID:"",selectedIDs:[],valid:!0,setSelectedIDs:()=>{},setPointCloudResult:()=>{},setPointCloudValid:()=>{},setTopViewInstance:()=>{},setSideViewInstance:()=>{},setBackViewInstance:()=>{},setMainViewInstance:()=>{},addSelectedID:()=>{},selectedAllBoxes:()=>{},addPointCloudBox:()=>{},setPolygonList:()=>{},zoom:1,setZoom:()=>{}}),PointCloudProvider=({children:o})=>{const[s,a]=React.useState([]),[c,P]=React.useState([]),[t,i]=React.useState([]),[d,p]=React.useState(!0),[l,I]=React.useState(1),[u,x]=React.useState(),[r,V]=React.useState(),[f,w]=React.useState(),[S,y]=React.useState(),C=React.useMemo(()=>t.length===1?t[0]:"",[t]),m=React.useMemo(()=>{const v=s.find(e=>e.id===C),B=e=>{a(s.concat(e))},g=e=>{p(e!==!1)},n=e=>{e===void 0&&i([]),typeof e=="string"&&i([e]),Array.isArray(e)&&i(Array.from(new Set(e)))};return{selectedID:C,pointCloudBoxList:s,selectedIDs:t,setPointCloudResult:a,setSelectedIDs:n,addPointCloudBox:B,valid:d,selectedPointCloudBox:v,setPointCloudValid:g,addSelectedID:e=>{t.includes(e)?n(t.filter(L=>L!==e)):n([...t,e])},selectedAllBoxes:()=>{n(s.map(e=>e.id))},topViewInstance:u,setTopViewInstance:x,sideViewInstance:r,setSideViewInstance:V,backViewInstance:f,setBackViewInstance:w,mainViewInstance:S,setMainViewInstance:y,polygonList:c,setPolygonList:P,zoom:l,setZoom:I}},[d,t,s,c,u,r,f,S,l]);return React__default.default.createElement(PointCloudContext.Provider,{value:m},o)};exports.PointCloudContext=PointCloudContext,exports.PointCloudProvider=PointCloudProvider;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var lbUtils=require("@labelbee/lb-utils"),React=require("react"),PointCloudContext=require("./PointCloudContext.js"),lbAnnotation=require("@labelbee/lb-annotation"),useSingleBox=require("./hooks/useSingleBox.js"),reactI18next=require("react-i18next");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const DECIMAL_PLACES=2,SizeInfoForView=({perspectiveView:e})=>{const{pointCloudBoxList:n,selectedID:a}=React__default.default.useContext(PointCloudContext.PointCloudContext),l=n.find(i=>i.id===a),d=reactI18next.useTranslation(),{t}=d;if(a&&l){const{length:i,width:o,height:r}=lbUtils.PointCloudUtils.transferBox2Kitti(l),c=e===lbUtils.EPerspectiveView.Back?[{label:t("Width"),value:o},{label:t("Height"),value:r}]:[{label:t("Length"),value:i},{label:t("Height"),value:r}];return React__default.default.createElement(React__default.default.Fragment,null,c.map((u,s)=>React__default.default.createElement("span",{key:s,style:{marginRight:s===0?16:0,fontSize:12}},`${u.label}: ${u.value.toFixed(DECIMAL_PLACES)}`)))}return null},BoxInfos=()=>{const e=React__default.default.useContext(PointCloudContext.PointCloudContext),{selectedBox:n}=useSingleBox.useSingleBox(),[a,l]=React.useState([]),d=reactI18next.useTranslation(),{t,i18n:i}=d;return React.useEffect(()=>{var o;if(!n)return;const{length:r,width:c,height:u,rotation_y:s}=lbUtils.PointCloudUtils.transferBox2Kitti(n.info);let f=[{label:t("Length"),value:r.toFixed(DECIMAL_PLACES)},{label:t("Width"),value:c.toFixed(DECIMAL_PLACES)},{label:t("Height"),value:u.toFixed(DECIMAL_PLACES)},{label:t("Rotation_y"),value:lbAnnotation.UnitUtils.rad2deg(s).toFixed(DECIMAL_PLACES)}];(o=e.mainViewInstance)==null||o.filterPointsByBox(n.info).then(x=>{if(!x){l(f);return}f.push({label:t("PointCount"),value:`${x.num}`}),l(f)})},[n,i.language]),n?React__default.default.createElement("div",{style:{position:"absolute",color:"white",backgroundColor:"rgba(153, 153, 153, 0.3)",right:8,top:8,fontSize:12,padding:8,zIndex:20}},a.map(o=>React__default.default.createElement("div",{key:o.label},`${o.label}: ${o.value}`))):null},PointCloudValidity=()=>{const e=React__default.default.useContext(PointCloudContext.PointCloudContext),{t:n}=reactI18next.useTranslation();return e.valid===!1?React__default.default.createElement("div",{style:{position:"absolute",backgroundColor:"rgb(242, 101, 73)",color:"white",left:0,top:0,fontSize:20,padding:"8px 16px",zIndex:20}},n("Invalid")):null};exports.BoxInfos=BoxInfos,exports.PointCloudValidity=PointCloudValidity,exports.SizeInfoForView=SizeInfoForView;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var dom=require("../../utils/dom.js"),classNames=require("classnames"),React=require("react");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var classNames__default=_interopDefaultLegacy(classNames),React__default=_interopDefaultLegacy(React);const PointCloudContainer=({title:e,toolbar:a,children:t,className:r,style:l})=>React__default.default.createElement("div",{className:classNames__default.default([r,dom.getClassName("point-cloud-container")]),style:l},React__default.default.createElement("div",{className:dom.getClassName("point-cloud-container","header")},React__default.default.createElement("span",{className:dom.getClassName("point-cloud-container","header-title")},e),a&&React__default.default.createElement("div",{className:dom.getClassName("point-cloud-container","header-toolbar")},a)),t);exports.PointCloudContainer=PointCloudContainer;
@@ -0,0 +1 @@
1
+ "use strict";var PointCloudContext=require("./PointCloudContext.js"),useRotate=require("./hooks/useRotate.js"),useBoxes=require("./hooks/useBoxes.js"),useSingleBox=require("./hooks/useSingleBox.js"),React=require("react"),lbAnnotation=require("@labelbee/lb-annotation"),antd=require("antd"),reactRedux=require("react-redux"),map=require("../../store/annotation/map.js"),annotation=require("../../hooks/annotation.js"),useStatus=require("./hooks/useStatus.js"),index=require("../../utils/index.js"),usePointCloudViews=require("./hooks/usePointCloudViews.js"),ctx=require("../../store/ctx.js"),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(o,e,r)=>e in o?__defProp(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,__spreadValues=(o,e)=>{for(var r in e||(e={}))__hasOwnProp.call(e,r)&&__defNormalProp(o,r,e[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(e))__propIsEnum.call(e,r)&&__defNormalProp(o,r,e[r]);return o},__spreadProps=(o,e)=>__defProps(o,__getOwnPropDescs(e));const{EPolygonPattern}=lbAnnotation.cTool,PointCloudListener=({currentData:o})=>{const e=React.useContext(PointCloudContext.PointCloudContext),{changeSelectedBoxValid:r,selectNextBox:P,selectPrevBox:x,updateSelectedBox:c}=useSingleBox.useSingleBox(),{clearAllResult:d}=useStatus.useStatus(),b=index.jsonParser(o.result),{copySelectedBoxes:f,pasteSelectedBoxes:w,copiedBoxes:C}=useBoxes.useBoxes(),{toolInstanceRef:a}=annotation.useCustomToolInstance({basicInfo:b}),{updateRotate:l}=useRotate.useRotate({currentData:o}),{updatePointCloudData:p}=usePointCloudViews.usePointCloudViews(),y=t=>{const{topViewInstance:s,mainViewInstance:u}=e;if(!s)return;const{pointCloud2dOperation:n}=s;switch(t){case"q":{l(2);break}case"e":l(-2);break;case"g":l(180);break;case"u":{const i=n.pattern===EPolygonPattern.Normal?EPolygonPattern.Rect:EPolygonPattern.Normal;n.setPattern(i);const B={[EPolygonPattern.Normal]:"Normal Pattern",[EPolygonPattern.Rect]:"Rect Pattern"};antd.message.success(`Change Pattern to ${B[i]} successfully`),n.clearActiveStatus(),n.clearDrawingStatus()}break;case"+":u==null||u.updatePointSize(!0);break;case"-":u==null||u.updatePointSize(!1);break;case"v":e.setPointCloudValid(!e.valid);break;case"z":P();break;case"c":x();break;case"f":r();break;default:return}},k=t=>{switch(t){case"c":f();break;case"v":w();break;case"a":e.selectedAllBoxes();break}},v=t=>{const s=t.key.toLocaleLowerCase();if(t.ctrlKey){k(s);return}y(s)};return React.useEffect(()=>{const{topViewInstance:t}=e;if(!!t)return window.addEventListener("keydown",v),()=>{window.removeEventListener("keydown",v)}},[e,C]),React.useEffect(()=>{p==null||p()},[o,e.mainViewInstance]),React.useEffect(()=>{a.current.exportData=()=>[e.pointCloudBoxList,{valid:e.valid}],a.current.exportCustomData=()=>{var t;return{renderPolygon:(t=e.polygonList)!=null?t:[]}},a.current.setDefaultAttribute=t=>{const s=e.selectedPointCloudBox;s&&(s.attribute=t,c(s))},a.current.setSubAttribute=(t,s)=>{var u;const n=e.selectedPointCloudBox;if(n){const i=(u=n==null?void 0:n.subAttribute)!=null?u:{};n.subAttribute=__spreadProps(__spreadValues({},i),{[t]:s}),c(n)}},a.current.clearResult=()=>{d==null||d()}},[e.pointCloudBoxList,e.selectedID,e.valid,e.polygonList]),React.useEffect(()=>{a.current.setValid=t=>{a.current.valid=t,setTimeout(()=>{e.setPointCloudValid(t)})}},[]),null};var PointCloudListener$1=reactRedux.connect(map.aMapStateToProps,null,null,{context:ctx.LabelBeeContext})(PointCloudListener);module.exports=PointCloudListener$1;
@@ -0,0 +1 @@
1
+ "use strict";var lbAnnotation=require("@labelbee/lb-annotation"),dom=require("../../utils/dom.js"),PointCloudLayout=require("./PointCloudLayout.js"),React=require("react"),lbUtils=require("@labelbee/lb-utils"),PointCloudContext=require("./PointCloudContext.js"),PointCloudInfos=require("./PointCloudInfos.js"),reactRedux=require("react-redux"),map=require("../../store/annotation/map.js"),usePointCloudViews=require("./hooks/usePointCloudViews.js"),useSingleBox=require("./hooks/useSingleBox.js"),index=require("./components/EmptyPage/index.js"),useSize=require("../../hooks/useSize.js"),reactI18next=require("react-i18next"),ctx=require("../../store/ctx.js");function _interopDefaultLegacy(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var React__default=_interopDefaultLegacy(React);const TransferCanvas2WorldOffset=(n,e,r=1)=>{const{width:u,height:t}=e,o={x:n.x+u*r/2,y:n.y+t*r/2},l={x:e.width/2,y:e.height/2};return{offsetX:(l.x-o.x)/r,offsetY:-(l.y-o.y)/r}},updateSideViewByCanvas2D=(n,e,r,u,t)=>{const{offsetX:o,offsetY:l}=TransferCanvas2WorldOffset(n,r,e);if(t.camera.zoom=e,n){const i=Math.cos(u.rotation),c=Math.sin(u.rotation),a=o*i,s=o*c,{x:d,y:f,z:x}=t.initCameraPosition;t.camera.position.set(d-a,f-s,x+l)}t.camera.updateProjectionMatrix(),t.render()},PointCloudSideView=({currentData:n})=>{const e=React__default.default.useContext(PointCloudContext.PointCloudContext),{sideViewUpdateBox:r}=usePointCloudViews.usePointCloudViews(),{selectedBox:u}=useSingleBox.useSingleBox(),t=React.useRef(null),o=useSize(t),{t:l}=reactI18next.useTranslation();return React.useEffect(()=>{if(t.current){const i={width:t.current.clientWidth,height:t.current.clientHeight},c=new lbAnnotation.PointCloudAnnotation({container:t.current,size:i,polygonOperationProps:{showDirectionLine:!1,forbidAddNew:!0}});e.setSideViewInstance(c)}},[]),React.useEffect(()=>{if(!o||!e.sideViewInstance)return;const{pointCloud2dOperation:i,pointCloudInstance:c}=e.sideViewInstance;i.singleOn("renderZoom",(a,s)=>{!e.selectedPointCloudBox||updateSideViewByCanvas2D(s,a,o,e.selectedPointCloudBox,c)}),i.singleOn("dragMove",({currentPos:a,zoom:s})=>{!e.selectedPointCloudBox||updateSideViewByCanvas2D(a,s,o,e.selectedPointCloudBox,c)}),i.singleOn("updatePolygonByDrag",({newPolygon:a,originPolygon:s})=>{r(a,s)})},[e,o]),React.useEffect(()=>{var i;(i=e==null?void 0:e.sideViewInstance)==null||i.initSize(o)},[o]),React__default.default.createElement(PointCloudLayout.PointCloudContainer,{className:dom.getClassName("point-cloud-container","side-view"),title:l("SideView"),toolbar:React__default.default.createElement(PointCloudInfos.SizeInfoForView,{perspectiveView:lbUtils.EPerspectiveView.Left})},React__default.default.createElement("div",{className:dom.getClassName("point-cloud-container","bottom-view-content")},React__default.default.createElement("div",{className:dom.getClassName("point-cloud-container","core-instance"),ref:t}),!u&&React__default.default.createElement(index,null)))};var PointCloudSideView$1=reactRedux.connect(map.aMapStateToProps,null,null,{context:ctx.LabelBeeContext})(PointCloudSideView);module.exports=PointCloudSideView$1;
@@ -0,0 +1 @@
1
+ "use strict";var dom=require("../../utils/dom.js"),index=require("../../views/MainView/toolFooter/index.js"),index$1=require("../../views/MainView/toolFooter/ZoomController/index.js"),icons=require("@ant-design/icons"),lbAnnotation=require("@labelbee/lb-annotation"),React=require("react"),PointCloudContext=require("./PointCloudContext.js"),useRotate=require("./hooks/useRotate.js"),useSingleBox=require("./hooks/useSingleBox.js"),PointCloudLayout=require("./PointCloudLayout.js"),PointCloudInfos=require("./PointCloudInfos.js"),usePolygon=require("./hooks/usePolygon.js"),useZoom=require("./hooks/useZoom.js"),antd=require("antd"),map=require("../../store/annotation/map.js"),reactRedux=require("react-redux"),usePointCloudViews=require("./hooks/usePointCloudViews.js"),useSize=require("../../hooks/useSize.js"),reactI18next=require("react-i18next"),ctx=require("../../store/ctx.js");function _interopDefaultLegacy(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var React__default=_interopDefaultLegacy(React);const{EPolygonPattern}=lbAnnotation.cTool,TransferCanvas2WorldOffset=(t,i,e=1)=>{const{width:l,height:c}=i,r={x:t.x+l*e/2,y:t.y+c*e/2},u={x:i.width/2,y:i.height/2};return{offsetX:(u.x-r.x)/e,offsetY:-(u.y-r.y)/e}},TopViewToolbar=({currentData:t})=>{const{zoom:i,zoomIn:e,zoomOut:l,initialPosition:c}=useZoom.useZoom(),{selectNextBox:r,selectPrevBox:u}=useSingleBox.useSingleBox(),{updateRotate:f}=useRotate.useRotate({currentData:t}),d=2,m=()=>{f(-d)},C=()=>{f(d)},a=()=>{f(180)};return React__default.default.createElement(React__default.default.Fragment,null,React__default.default.createElement("span",{onClick:C,className:dom.getClassName("point-cloud","rotate-reserve")}),React__default.default.createElement("span",{onClick:m,className:dom.getClassName("point-cloud","rotate")}),React__default.default.createElement("span",{onClick:a,className:dom.getClassName("point-cloud","rotate-180")}),React__default.default.createElement(index.FooterDivider,null),React__default.default.createElement(icons.UpSquareOutlined,{onClick:()=>{u()},className:dom.getClassName("point-cloud","prev")}),React__default.default.createElement(icons.DownSquareOutlined,{onClick:()=>{r()},className:dom.getClassName("point-cloud","next")}),React__default.default.createElement(index.FooterDivider,null),React__default.default.createElement(index$1.ZoomController,{initialPosition:c,zoomIn:e,zoomOut:l,zoom:i}))},ZAxisSlider=({setZAxisLimit:t,zAxisLimit:i})=>React__default.default.createElement("div",{style:{position:"absolute",top:128,right:8,height:"50%",zIndex:20}},React__default.default.createElement(antd.Slider,{vertical:!0,step:.5,max:10,min:.5,defaultValue:i,onAfterChange:e=>{t(e)}})),PointCloudTopView=({currentData:t})=>{const i=React.useRef(null),e=React__default.default.useContext(PointCloudContext.PointCloudContext),l=useSize(i),{setZoom:c}=useZoom.useZoom(),{addPolygon:r,deletePolygon:u}=usePolygon.usePolygon(),{deletePointCloudBox:f}=useSingleBox.useSingleBox(),[d,m]=React.useState(10),{t:C}=reactI18next.useTranslation(),a=usePointCloudViews.usePointCloudViews();return React.useLayoutEffect(()=>{if(!e.topViewInstance&&i.current&&(t==null?void 0:t.url)&&(t==null?void 0:t.result)){const o={width:i.current.clientWidth,height:i.current.clientHeight},n=new lbAnnotation.PointCloudAnnotation({container:i.current,size:o,pcdPath:t.url});e.setTopViewInstance(n)}},[t]),React.useEffect(()=>{if(!l||!e.topViewInstance||!e.sideViewInstance)return;const{pointCloud2dOperation:o}=e.topViewInstance;o.singleOn("polygonCreated",n=>{if(o.pattern===EPolygonPattern.Normal||!(t==null?void 0:t.url)){r(n);return}a.topViewAddBox(n,l)}),o.singleOn("deletedObject",({id:n})=>{f(n),u(n)}),o.singleOn("deleteSelectedIDs",()=>{e.setSelectedIDs([])}),o.singleOn("addSelectedIDs",n=>{e.addSelectedID(n)}),o.singleOn("setSelectedIDs",n=>{e.setSelectedIDs(n)}),o.singleOn("updatePolygonByDrag",({newPolygon:n})=>{var s;(s=a.topViewUpdateBox)==null||s.call(a,n,l)})},[e,l,t,a]),React.useEffect(()=>{if(!(l==null?void 0:l.width)||!e.topViewInstance)return;e.topViewInstance.initSize(l),e.topViewInstance.updatePolygonList(e.pointCloudBoxList);const{topViewInstance:{pointCloudInstance:o,pointCloud2dOperation:n}}=e;n.singleOn("renderZoom",(s,p)=>{const{offsetX:v,offsetY:x}=TransferCanvas2WorldOffset(p,l,s);if(o.camera.zoom=s,p){const{x:g,y:w,z:P}=o.initCameraPosition;o.camera.position.set(g+x,w-v,P)}o.camera.updateProjectionMatrix(),o.render(),c(s)}),n.singleOn("dragMove",({currentPos:s,zoom:p})=>{const{offsetX:v,offsetY:x}=TransferCanvas2WorldOffset(s,l,p);o.camera.zoom=p;const{x:g,y:w,z:P}=o.initCameraPosition;o.camera.position.set(g+x,w-v,P),o.render()})},[l]),React.useEffect(()=>{var o,n;(n=(o=e.topViewInstance)==null?void 0:o.pointCloudInstance)==null||n.applyZAxisPoints(d)},[d]),React.useEffect(()=>{a.topViewSelectedChanged()},[e.selectedIDs]),React__default.default.createElement(PointCloudLayout.PointCloudContainer,{className:dom.getClassName("point-cloud-container","top-view"),title:C("TopView"),toolbar:React__default.default.createElement(TopViewToolbar,{currentData:t})},React__default.default.createElement("div",{style:{position:"relative",flex:1}},React__default.default.createElement("div",{style:{width:"100%",height:"100%"},ref:i}),React__default.default.createElement(PointCloudInfos.BoxInfos,null),React__default.default.createElement(ZAxisSlider,{zAxisLimit:d,setZAxisLimit:m}),React__default.default.createElement(PointCloudInfos.PointCloudValidity,null)))};var PointCloudTopView$1=reactRedux.connect(map.aMapStateToProps,null,null,{context:ctx.LabelBeeContext})(PointCloudTopView);module.exports=PointCloudTopView$1;
@@ -0,0 +1 @@
1
+ "use strict";var React=require("react"),nodata=require("../../../../assets/annotation/pointCloudTool/nodata.svg.js"),dom=require("../../../../utils/dom.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const EmptyPage=()=>React__default.default.createElement("div",{className:dom.getClassName("point-cloud-container","empty-page")},React__default.default.createElement("img",{src:nodata}),React__default.default.createElement("span",{className:dom.getClassName("point-cloud-container","empty-page","text")},"\u6682\u65E0\u6570\u636E"));module.exports=EmptyPage;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),_=require("lodash"),antd=require("antd"),usePointCloudViews=require("./usePointCloudViews.js"),PointCloudContext=require("../PointCloudContext.js"),reactI18next=require("react-i18next");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ___default=_interopDefaultLegacy(_);const useBoxes=()=>{const{selectedIDs:e,pointCloudBoxList:o,setPointCloudResult:l}=React.useContext(PointCloudContext.PointCloudContext),[t,u]=React.useState([]),{pointCloudBoxListUpdated:a}=usePointCloudViews.usePointCloudViews(),{t:n,i18n:i}=reactI18next.useTranslation(),c=s=>o.some(C=>s.some(x=>x.id===C.id)),r=React.useMemo(()=>o.filter(s=>e.includes(s.id)),[e,o]),d=React.useCallback(()=>{r.length>0?u(___default.default.cloneDeep(r)):(u([]),antd.message.error(n("CopyEmptyInPointCloud")))},[e,o,i.language]),p=React.useCallback(()=>{if(t.length===0){antd.message.error(n("PasteEmptyInPointCloud"));return}c(t)?antd.message.error(n("HasDuplicateID")):(l(t),a==null||a(t),u([]))},[t,o,i.language]);return{copySelectedBoxes:d,pasteSelectedBoxes:p,copiedBoxes:t,selectedBoxes:r}};exports.useBoxes=useBoxes;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var lbAnnotation=require("@labelbee/lb-annotation"),lbUtils=require("@labelbee/lb-utils"),React=require("react"),PointCloudContext=require("../PointCloudContext.js"),useSingleBox=require("./useSingleBox.js"),_=require("lodash"),ctx=require("../../../store/ctx.js"),StepUtils=require("../../../utils/StepUtils.js"),index=require("../../../utils/index.js"),actionCreators=require("../../../store/annotation/actionCreators.js"),antd=require("antd"),reactI18next=require("react-i18next");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ___default=_interopDefaultLegacy(_),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,o,n)=>o in e?__defProp(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,__spreadValues=(e,o)=>{for(var n in o||(o={}))__hasOwnProp.call(o,n)&&__defNormalProp(e,n,o[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(o))__propIsEnum.call(o,n)&&__defNormalProp(e,n,o[n]);return e},__spreadProps=(e,o)=>__defProps(e,__getOwnPropDescs(o)),__async=(e,o,n)=>new Promise((a,t)=>{var i=r=>{try{c(n.next(r))}catch(g){t(g)}},p=r=>{try{c(n.throw(r))}catch(g){t(g)}},c=r=>r.done?a(r.value):Promise.resolve(r.value).then(i,p);c((n=n.apply(e,o)).next())});const DEFAULT_SCOPE=5,DEFAULT_RADIUS=90,PointCloudView={"3D":"3D",Top:"Top",Side:"Side",Back:"Back"},transferCanvas2World=(e,o)=>{const{width:n,height:a}=o,{x:t,y:i}=e;return{x:-i+a/2,y:-(t-n/2)}},topViewPolygon2PointCloud=(e,o,n,a,t)=>{const[i,p,c,r]=e.pointList.map(f=>transferCanvas2World(f,o)),g=lbAnnotation.MathUtils.getLineCenterPoint([i,c]),m=lbAnnotation.MathUtils.getLineLength(i,p),C=lbAnnotation.MathUtils.getLineLength(p,c),P=lbAnnotation.MathUtils.getRadiusFromQuadrangle(e.pointList);let L=0,x=1,w={};if(n){const f=n.getSensesPointZAxisInPolygon([i,p,c,r]);L=(f.maxZ+f.minZ)/2,x=f.maxZ-f.minZ,w={count:f.zCount}}a&&(L=a.center.z,x=a.depth);const h=__spreadValues({center:{x:g.x,y:g.y,z:L},width:C,height:m,depth:x,rotation:P,id:e.id,attribute:"",valid:!0},w);return t&&Object.assign(h,t),h},sideViewPolygon2PointCloud=(e,o,n,a)=>{const[t,i,p]=e.pointList,[c,r,g]=o.pointList,m=lbAnnotation.MathUtils.getLineCenterPoint([t,p]),C=lbAnnotation.MathUtils.getLineCenterPoint([c,g]),P={x:m.x-C.x,y:m.y-C.y},L=Math.cos(n.rotation),x=Math.sin(n.rotation),w={x:P.x,y:P.x*x+P.y*L,z:m.y-C.y},h=lbAnnotation.MathUtils.getLineLength(t,i),f=lbAnnotation.MathUtils.getLineLength(c,r),D=h-f,V=lbAnnotation.MathUtils.getLineLength(i,p),I=lbAnnotation.MathUtils.getLineLength(r,g),O=V-I,{newBoxParams:U}=a.getNewBoxBySideUpdate(w,O,D,n);return U},synchronizeSideView=(e,o,n,a)=>{if(!n)return;const{pointCloud2dOperation:t,pointCloudInstance:i}=n;i.loadPCDFileByBox(a,e,{width:DEFAULT_SCOPE,depth:DEFAULT_SCOPE});const{cameraPositionVector:p}=i.updateOrthoCamera(e,lbUtils.EPerspectiveView.Left);i.setInitCameraPosition(p);const{polygon2d:c,zoom:r}=i.getBoxSidePolygon2DCoordinate(e);i.camera.zoom=r,i.camera.updateProjectionMatrix(),i.render(),t.initPosition(),t.zoomChangeOnCenter(r),t.setResultAndSelectedID([{id:o.id,pointList:c,textAttribute:"",isRect:!0}],o.id)},synchronizeBackView=(e,o,n,a)=>{if(!n)return;const{pointCloud2dOperation:t,pointCloudInstance:i}=n;i.loadPCDFileByBox(a,e,{height:DEFAULT_SCOPE,depth:DEFAULT_SCOPE});const{cameraPositionVector:p}=i.updateOrthoCamera(e,lbUtils.EPerspectiveView.Back);i.setInitCameraPosition(p);const{polygon2d:c,zoom:r}=i.getBoxBackPolygon2DCoordinate(e);i.camera.zoom=r,i.camera.updateProjectionMatrix(),i.render(),t.initPosition(),t.zoomChangeOnCenter(r),t.setResultAndSelectedID([{id:o.id,pointList:c,textAttribute:"",isRect:!0}],o.id)},synchronizeTopView=(e,o,n,a)=>{if(!n||!a)return;a.generateBox(e,o.id),a.updateCameraByBox(e,lbUtils.EPerspectiveView.Top),a.render();const{pointCloud2dOperation:t,pointCloudInstance:i}=n,{polygon2d:p}=i.getBoxTopPolygon2DCoordinate(e),c=[...t.polygonList],r=c.find(g=>g.id===o.id);r?r.pointList=p:c.push({id:o.id,pointList:p,textAttribute:"",isRect:!0}),t.setResultAndSelectedID(c,o.id)},usePointCloudViews=()=>{const e=React.useContext(PointCloudContext.PointCloudContext),{topViewInstance:o,sideViewInstance:n,backViewInstance:a,mainViewInstance:t,addPointCloudBox:i,setSelectedIDs:p,selectedIDs:c,pointCloudBoxList:r,setPointCloudResult:g}=e,{updateSelectedBox:m}=useSingleBox.useSingleBox(),{currentData:C,config:P}=ctx.useSelector(s=>{const{stepList:l,step:u,imgList:d,imgIndex:v}=s.annotation;return{currentData:d[v],config:index.jsonParser(StepUtils.getCurrentStepInfo(u,l).config)}}),L=ctx.useDispatch(),{selectedBox:x}=useSingleBox.useSingleBox(),{t:w}=reactI18next.useTranslation(),h=x==null?void 0:x.info;if(!o||!n)return{topViewAddBox:()=>{},topViewSelectedChanged:()=>{},sideViewUpdateBox:()=>{}};const{pointCloudInstance:f}=o,D=s=>{t==null||t.generateBox(s),t==null||t.controls.update(),t==null||t.render()},V=(s,l)=>{var u,d,v;const y=topViewPolygon2PointCloud(s,l,f,void 0,{attribute:(v=(d=(u=P==null?void 0:P.attributeList)==null?void 0:u[0])==null?void 0:d.value)!=null?v:""}),b=o==null?void 0:o.pointCloud2dOperation,B=y;if((P==null?void 0:P.lowerLimitPointsNumInBox)&&typeof y.count=="number"&&y.count<P.lowerLimitPointsNumInBox){antd.message.info(w("LowerLimitPointsNumInBox",{num:P.lowerLimitPointsNumInBox})),b.deletePolygon(y.id);return}b.setSelectedIDs([s.id]),p(B.id),S(PointCloudView.Top,s,B),i(B)},I=()=>{const s=x==null?void 0:x.info,l=o==null?void 0:o.pointCloud2dOperation;if(l.setSelectedIDs(c),!s||!l)return;const u=l.selectedPolygon;S(PointCloudView.Top,u,s)},O=(s,l,u)=>{if(h){let d=sideViewPolygon2PointCloud(s,l,h,n.pointCloudInstance);if(t){const{count:v}=t.getSensesPointZAxisInPolygon(t.getCuboidFromPointCloudBox(d).polygonPointList,[d.center.z-d.depth/2,d.center.z+d.depth/2]);d=__spreadProps(__spreadValues({},d),{count:v})}m(d),S(u,s,d)}},U=(s,l)=>{O(s,l,PointCloudView.Side)},j=(s,l)=>{O(s,l,PointCloudView.Back)},z=(s,l)=>{if(h){const u=topViewPolygon2PointCloud(s,l,o.pointCloudInstance,h);Object.assign(h,___default.default.pickBy(u,(d,v)=>["width","height","x","y"])),m(u),S(PointCloudView.Top,s,h)}},S=(s,l,u)=>{const d=C==null?void 0:C.url,v={[PointCloudView.Side]:()=>{synchronizeSideView(u,l,n,d)},[PointCloudView.Back]:()=>{a&&synchronizeBackView(u,l,a,d)},[PointCloudView.Top]:()=>{synchronizeTopView(u,l,o,t)}};Object.keys(v).forEach(y=>{y!==s&&v[y]()}),D(u),t==null||t.highlightOriginPointCloud(u)};return{topViewAddBox:V,topViewSelectedChanged:I,topViewUpdateBox:z,sideViewUpdateBox:U,backViewUpdateBox:j,pointCloudBoxListUpdated:s=>{o.updatePolygonList(s),t==null||t.generateBoxes(s)},clearAllResult:()=>{r.forEach(s=>{t==null||t.removeObjectByName(s.id)}),t==null||t.render(),g([]),o.pointCloud2dOperation.clearActiveStatus(),o.pointCloud2dOperation.clearResult()},initPointCloud3d:()=>{!t||(t.initPerspectiveCamera(),t.initRenderer(),t.render())},updatePointCloudData:()=>__async(void 0,null,function*(){var s,l,u,d,v,y;if(!(C==null?void 0:C.url)||!t)return;if(actionCreators.SetPointCloudLoading(L,!0),yield t.loadPCDFile(C.url,(s=P==null?void 0:P.radius)!=null?s:DEFAULT_RADIUS),r.forEach(B=>{t==null||t.removeObjectByName(B.id)}),C.result){const B=lbUtils.PointCloudUtils.getBoxParamsFromResultList(C.result),A=lbUtils.PointCloudUtils.getPolygonListFromResultList(C.result);B.forEach(R=>{t==null||t.generateBox(R)}),e.setPointCloudResult(B),e.setPolygonList(A)}else e.setPointCloudResult([]),e.setPolygonList([]);t.updateTopCamera();const b=(u=(l=index.jsonParser(C.result))==null?void 0:l.valid)!=null?u:!0;e.setPointCloudValid(b),(d=e.sideViewInstance)==null||d.clearAllData(),(v=e.backViewInstance)==null||v.clearAllData(),o.updateData(C.url,C.result,{radius:(y=P==null?void 0:P.radius)!=null?y:DEFAULT_RADIUS}),actionCreators.SetPointCloudLoading(L,!1)})}};exports.synchronizeBackView=synchronizeBackView,exports.synchronizeSideView=synchronizeSideView,exports.synchronizeTopView=synchronizeTopView,exports.topViewPolygon2PointCloud=topViewPolygon2PointCloud,exports.transferCanvas2World=transferCanvas2World,exports.usePointCloudViews=usePointCloudViews;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),PointCloudContext=require("../PointCloudContext.js");const usePolygon=()=>{const{polygonList:e,setPolygonList:t}=React.useContext(PointCloudContext.PointCloudContext);return{addPolygon:o=>{t(e.concat(o))},deletePolygon:o=>{const n=e.filter(s=>s.id!==o);t([...n])}}};exports.usePolygon=usePolygon;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),usePointCloudViews=require("./usePointCloudViews.js"),useSingleBox=require("./useSingleBox.js"),PointCloudContext=require("../PointCloudContext.js"),lbAnnotation=require("@labelbee/lb-annotation");const{ERotateDirection}=lbAnnotation.cAnnotation,useRotate=({currentData:t})=>{const e=React.useContext(PointCloudContext.PointCloudContext),{selectedBox:i,updateSelectedBox:a}=useSingleBox.useSingleBox();return{updateRotate:React.useCallback(s=>{const{topViewInstance:l,mainViewInstance:n}=e;if(!l||!n)return;const{pointCloud2dOperation:u}=l,o=i==null?void 0:i.info;if(!o||!(t==null?void 0:t.url)||!e.backViewInstance)return;a({rotation:o.rotation+Number(Math.PI*s)/180}),u.rotatePolygon(s,ERotateDirection.Anticlockwise);const r=u.selectedPolygon;n.generateBox(o),n.highlightOriginPointCloud(o),usePointCloudViews.synchronizeSideView(o,r,e.sideViewInstance,t.url),usePointCloudViews.synchronizeBackView(o,r,e.backViewInstance,t.url),n.render()},[e.selectedID,e.pointCloudBoxList,e.setPointCloudResult,e.topViewInstance,t])}};exports.useRotate=useRotate;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),_=require("lodash"),PointCloudContext=require("../PointCloudContext.js"),lbAnnotation=require("@labelbee/lb-annotation");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ___default=_interopDefaultLegacy(_);const{ESortDirection}=lbAnnotation.cAnnotation,useSingleBox=()=>{const{pointCloudBoxList:e,setPointCloudResult:c,topViewInstance:s,selectedIDs:a,selectedID:l,mainViewInstance:i,setSelectedIDs:x}=React.useContext(PointCloudContext.PointCloudContext),o=React.useMemo(()=>{const t=e.findIndex(n=>n.id===l);if(t>-1)return{info:e[t],index:t}},[l,e]),d=React.useCallback(t=>{(o==null?void 0:o.info)&&(e.splice(o.index,1,___default.default.merge(o.info,t)),c(___default.default.cloneDeep(e)))},[l,e]),f=React.useCallback(()=>{(o==null?void 0:o.info)&&d({valid:!o.info.valid})},[l]),u=React.useCallback((t=ESortDirection.ascend)=>{if(!s||a.length>1)return;const{pointCloud2dOperation:n}=s,r=n.switchToNextPolygon(t);r&&x(r)},[s]);return{selectedBox:o,updateSelectedBox:d,changeSelectedBoxValid:f,selectNextBox:u,selectPrevBox:()=>{u(ESortDirection.descend)},deletePointCloudBox:t=>{c(e.filter(n=>n.id!==t)),i==null||i.removeObjectByName(t),i==null||i.render()}}};exports.useSingleBox=useSingleBox;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),PointCloudContext=require("../PointCloudContext.js"),lbAnnotation=require("@labelbee/lb-annotation");const{EToolName,EPolygonPattern}=lbAnnotation.cTool,useStatus=()=>{const{topViewInstance:t,mainViewInstance:e,pointCloudBoxList:a,setPointCloudResult:r}=React.useContext(PointCloudContext.PointCloudContext),[u,l]=React.useState(EToolName.Rect);return{clearAllResult:()=>{a.forEach(n=>{e==null||e.removeObjectByName(n.id)}),e==null||e.render(),r([]),t==null||t.pointCloud2dOperation.clearActiveStatus(),t==null||t.pointCloud2dOperation.clearResult()},updatePointCloudPattern:n=>{const o=t==null?void 0:t.pointCloud2dOperation;if(!!o)switch(o.clearActiveStatus(),n){case EToolName.Rect:o.setPattern(EPolygonPattern.Rect),l(EToolName.Rect);break;case EToolName.Polygon:o.setPattern(EPolygonPattern.Normal),l(EToolName.Polygon);break}},pointCloudPattern:u}};exports.useStatus=useStatus;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),PointCloudContext=require("../PointCloudContext.js");const useZoom=()=>{const{topViewInstance:o}=React.useContext(PointCloudContext.PointCloudContext),{zoom:t,setZoom:e}=React.useContext(PointCloudContext.PointCloudContext);return{zoom:t,setZoom:e,initialPosition:()=>{o==null||o.pointCloud2dOperation.initImgPos()},zoomOut:()=>{o==null||o.pointCloud2dOperation.zoomChanged(!1)},zoomIn:()=>{o==null||o.pointCloud2dOperation.zoomChanged(!0)}}};exports.useZoom=useZoom;
@@ -0,0 +1 @@
1
+ "use strict";var dom=require("../../utils/dom.js"),React=require("react"),PointCloud3DView=require("./PointCloud3DView.js"),PointCloudBackView=require("./PointCloudBackView.js"),PointCloudTopView=require("./PointCloudTopView.js"),PointCloudSideView=require("./PointCloudSideView.js"),PointCloud2DView=require("./PointCloud2DView.js"),PointCloudListener=require("./PointCloudListener.js"),reactRedux=require("react-redux"),ctx=require("../../store/ctx.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const PointCloudView=({imgList:e})=>e.length===0?null:React__default.default.createElement(React__default.default.Fragment,null,React__default.default.createElement(PointCloudListener,null),React__default.default.createElement("div",{className:dom.getClassName("point-cloud-layout"),onContextMenu:t=>t.preventDefault()},React__default.default.createElement("div",{className:dom.getClassName("point-cloud-wrapper")},React__default.default.createElement("div",{className:dom.getClassName("point-cloud-container","left")},React__default.default.createElement(PointCloud2DView,null),React__default.default.createElement(PointCloud3DView,null)),React__default.default.createElement("div",{className:dom.getClassName("point-cloud-container","right")},React__default.default.createElement(PointCloudTopView,null),React__default.default.createElement("div",{className:dom.getClassName("point-cloud-container","right-bottom")},React__default.default.createElement(PointCloudSideView,null),React__default.default.createElement(PointCloudBackView,null)))))),mapStateToProps=e=>({imgList:e.annotation.imgList});var PointCloudView$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(PointCloudView);module.exports=PointCloudView$1;
@@ -1 +1 @@
1
- "use strict";var React=require("react"),reactRedux=require("react-redux"),Actions=require("../../store/Actions.js"),actionCreators=require("../../store/annotation/actionCreators.js"),TagToolInstanceAdaptor=require("../videoPlayer/TagToolInstanceAdaptor.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const VideoAnnotate=e=>{const{imgList:o,imgIndex:r,stepList:n,step:c}=e.annotation,t=reactRedux.useDispatch(),s=a=>{t({type:Actions.ANNOTATION_ACTIONS.SET_TOOL,payload:{instance:a}})},i=()=>{t({type:Actions.ANNOTATION_ACTIONS.SET_TOOL,payload:{instance:void 0}})};return React__default.default.createElement(TagToolInstanceAdaptor.TagToolInstanceAdaptor,{imgIndex:r,imgList:o,pageBackward:()=>t(actionCreators.PageBackward()),pageForward:()=>t(actionCreators.PageForward()),pageJump:a=>t(actionCreators.PageJump(~~a)),onMounted:s,onUnmounted:i,stepList:n,step:c})};var VideoAnnotate$1=reactRedux.connect(({annotation:e})=>({annotation:e}))(VideoAnnotate);module.exports=VideoAnnotate$1;
1
+ "use strict";var React=require("react"),reactRedux=require("react-redux"),ctx=require("../../store/ctx.js"),Actions=require("../../store/Actions.js"),actionCreators=require("../../store/annotation/actionCreators.js"),TagToolInstanceAdaptor=require("../videoPlayer/TagToolInstanceAdaptor.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const VideoAnnotate=e=>{const{imgList:o,imgIndex:r,stepList:n,step:c}=e.annotation,t=ctx.useDispatch(),s=a=>{t({type:Actions.ANNOTATION_ACTIONS.SET_TOOL,payload:{instance:a}})},i=()=>{t({type:Actions.ANNOTATION_ACTIONS.SET_TOOL,payload:{instance:void 0}})};return React__default.default.createElement(TagToolInstanceAdaptor.TagToolInstanceAdaptor,{imgIndex:r,imgList:o,pageBackward:()=>t(actionCreators.PageBackward()),pageForward:()=>t(actionCreators.PageForward()),pageJump:a=>t(actionCreators.PageJump(~~a)),onMounted:s,onUnmounted:i,stepList:n,step:c})};var VideoAnnotate$1=reactRedux.connect(({annotation:e})=>({annotation:e}),null,null,{context:ctx.LabelBeeContext})(VideoAnnotate);module.exports=VideoAnnotate$1;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ETextType=void 0,function(t){t[t.AnyString=0]="AnyString",t[t.Order=1]="Order",t[t.EnglishOnly=2]="EnglishOnly",t[t.NumberOnly=3]="NumberOnly",t[t.CustomFormat=4]="CustomFormat"}(exports.ETextType||(exports.ETextType={}));const TEXT_ATTRIBUTE_MAX_LENGTH=1e3;exports.EToolName=void 0,function(t){t.Rect="rectTool",t.Tag="tagTool",t.Point="pointTool",t.PointMarker="pointMarkerTool",t.Segmentation="segmentationTool",t.Filter="filterTool",t.Text="textTool",t.Polygon="polygonTool",t.Line="lineTool",t.LineMarker="lineMarkerTool",t.Empty="emptyTool",t.FolderTag="folderTagTool",t.RectTrack="rectTrackTool",t.Face="faceTool",t.ClientAttribute="clientAttributeTool",t.OCRRelation="OCRRelationTool",t.SegmentByRect="segmentByRectTool"}(exports.EToolName||(exports.EToolName={})),exports.TEXT_ATTRIBUTE_MAX_LENGTH=TEXT_ATTRIBUTE_MAX_LENGTH;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EScribblePattern=void 0,function(t){t[t.Scribble=1]="Scribble",t[t.Erase=2]="Erase"}(exports.EScribblePattern||(exports.EScribblePattern={})),exports.EToolName=void 0,function(t){t.Rect="rectTool",t.Tag="tagTool",t.Point="pointTool",t.PointMarker="pointMarkerTool",t.Segmentation="segmentationTool",t.Filter="filterTool",t.Text="textTool",t.Polygon="polygonTool",t.Line="lineTool",t.LineMarker="lineMarkerTool",t.Empty="emptyTool",t.FolderTag="folderTagTool",t.RectTrack="rectTrackTool",t.ScribbleTool="scribbleTool",t.Face="faceTool",t.ClientAttribute="clientAttributeTool",t.OCRRelation="OCRRelationTool",t.SegmentByRect="segmentByRectTool"}(exports.EToolName||(exports.EToolName={})),exports.ETextType=void 0,function(t){t[t.AnyString=0]="AnyString",t[t.Order=1]="Order",t[t.EnglishOnly=2]="EnglishOnly",t[t.NumberOnly=3]="NumberOnly",t[t.CustomFormat=4]="CustomFormat"}(exports.ETextType||(exports.ETextType={}));const TEXT_ATTRIBUTE_MAX_LENGTH=1e3;exports.TEXT_ATTRIBUTE_MAX_LENGTH=TEXT_ATTRIBUTE_MAX_LENGTH;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),ctx=require("../store/ctx.js"),Actions=require("../store/Actions.js");const useCustomToolInstance=({basicInfo:e}={})=>{var r;const s=ctx.useDispatch(),o=React.useRef({valid:(r=e==null?void 0:e.valid)!=null?r:!0,exportData:()=>[[],{}],exportCustomData:()=>({}),clearResult:()=>{},singleOn:()=>{},on:()=>{},unbind:()=>{},setResult:()=>{},history:{initRecord:()=>{},pushHistory:()=>{}},setDefaultAttribute:t=>{},setSubAttribute:(t,a)=>{},setValid:()=>{},updateRotate:()=>{}}),u=t=>{s({type:Actions.ANNOTATION_ACTIONS.SET_TOOL,payload:{instance:t}})},n=()=>{s({type:Actions.ANNOTATION_ACTIONS.SET_TOOL,payload:{instance:void 0}})};return React.useEffect(()=>(u(o.current),()=>{n()}),[]),{toolInstanceRef:o}};exports.useCustomToolInstance=useCustomToolInstance;
@@ -1 +1 @@
1
- "use strict";var React=require("react"),ResizeObserver=require("resize-observer-polyfill"),dom=require("../utils/dom.js"),useRafState=require("./useRafState.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ResizeObserver__default=_interopDefaultLegacy(ResizeObserver);function useSize(e){const[s,u]=useRafState(()=>{const t=dom.getTargetElement(e);return{width:(t||{}).clientWidth,height:(t||{}).clientHeight}});return React.useLayoutEffect(()=>{const t=dom.getTargetElement(e);if(!t)return()=>{};const r=new ResizeObserver__default.default(a=>{a.forEach(i=>{u({width:i.target.clientWidth,height:i.target.clientHeight})})});return r.observe(t),()=>{r.disconnect()}},[e]),s}module.exports=useSize;
1
+ "use strict";var React=require("react"),ResizeObserver=require("resize-observer-polyfill"),dom=require("../utils/dom.js"),useRafState=require("./useRafState.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ResizeObserver__default=_interopDefaultLegacy(ResizeObserver);function useSize(e){const[l,s]=useRafState(()=>{var t,r;const i=dom.getTargetElement(e);return{width:(t=(i||{}).clientWidth)!=null?t:0,height:(r=(i||{}).clientHeight)!=null?r:0}});return React.useLayoutEffect(()=>{const t=dom.getTargetElement(e);if(!t)return()=>{};const r=new ResizeObserver__default.default(i=>{i.forEach(u=>{var a,n;s({width:(a=u.target.clientWidth)!=null?a:0,height:(n=u.target.clientHeight)!=null?n:0})})});return r.observe(t),()=>{r.disconnect()}},[e]),l}module.exports=useSize;