@labelbee/lb-components 1.10.0-alpha.2 → 1.10.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.js +146 -1
- package/dist/App.js.map +1 -0
- package/dist/assets/annotation/common/icon_adapt.svg.js +6 -1
- package/dist/assets/annotation/common/icon_adapt.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_adapt_black.svg.js +6 -1
- package/dist/assets/annotation/common/icon_adapt_black.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_back.svg.js +6 -1
- package/dist/assets/annotation/common/icon_back.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_backA.svg.js +6 -1
- package/dist/assets/annotation/common/icon_backA.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_clear.svg.js +6 -1
- package/dist/assets/annotation/common/icon_clear.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_clearSmall.svg.js +6 -1
- package/dist/assets/annotation/common/icon_clearSmall.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_clearSmall_a.svg.js +6 -1
- package/dist/assets/annotation/common/icon_clearSmall_a.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_clear_a.svg.js +6 -1
- package/dist/assets/annotation/common/icon_clear_a.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_invalid.svg.js +6 -1
- package/dist/assets/annotation/common/icon_invalid.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_invalid_a.svg.js +6 -1
- package/dist/assets/annotation/common/icon_invalid_a.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_next.svg.js +6 -1
- package/dist/assets/annotation/common/icon_next.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_nextA.svg.js +6 -1
- package/dist/assets/annotation/common/icon_nextA.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_r.svg.js +6 -1
- package/dist/assets/annotation/common/icon_r.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_rA.svg.js +6 -1
- package/dist/assets/annotation/common/icon_rA.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_save.svg.js +6 -1
- package/dist/assets/annotation/common/icon_save.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_saveA.svg.js +6 -1
- package/dist/assets/annotation/common/icon_saveA.svg.js.map +1 -0
- package/dist/assets/annotation/image/brightness.svg.js +6 -1
- package/dist/assets/annotation/image/brightness.svg.js.map +1 -0
- package/dist/assets/annotation/image/contrast.svg.js +6 -1
- package/dist/assets/annotation/image/contrast.svg.js.map +1 -0
- package/dist/assets/annotation/image/icon_yuantu.svg.js +6 -1
- package/dist/assets/annotation/image/icon_yuantu.svg.js.map +1 -0
- package/dist/assets/annotation/image/saturation.svg.js +6 -1
- package/dist/assets/annotation/image/saturation.svg.js.map +1 -0
- package/dist/assets/annotation/lineTool/icon_line.svg.js +6 -1
- package/dist/assets/annotation/lineTool/icon_line.svg.js.map +1 -0
- package/dist/assets/annotation/lineTool/icon_line_a.svg.js +6 -1
- package/dist/assets/annotation/lineTool/icon_line_a.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/copy.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/copy.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/nextBox.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/nextBox.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/nodata.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/nodata.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/patse.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/patse.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/prevBox.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/prevBox.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/selectAll.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/selectAll.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js.map +1 -0
- package/dist/assets/annotation/pointTool/icon_point.svg.js +6 -1
- package/dist/assets/annotation/pointTool/icon_point.svg.js.map +1 -0
- package/dist/assets/annotation/pointTool/icon_point_a.svg.js +6 -1
- package/dist/assets/annotation/pointTool/icon_point_a.svg.js.map +1 -0
- package/dist/assets/annotation/polygonTool/icon_polygon.svg.js +6 -1
- package/dist/assets/annotation/polygonTool/icon_polygon.svg.js.map +1 -0
- package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js +6 -1
- package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js.map +1 -0
- package/dist/assets/annotation/rectTool/icon_rect.svg.js +6 -1
- package/dist/assets/annotation/rectTool/icon_rect.svg.js.map +1 -0
- package/dist/assets/annotation/rectTool/icon_rect_a.svg.js +6 -1
- package/dist/assets/annotation/rectTool/icon_rect_a.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js.map +1 -0
- package/dist/assets/annotation/video/icon_keyboard_h.svg.js +6 -1
- package/dist/assets/annotation/video/icon_keyboard_h.svg.js.map +1 -0
- package/dist/assets/attributeIcon/eraser.svg.js +6 -1
- package/dist/assets/attributeIcon/eraser.svg.js.map +1 -0
- package/dist/assets/attributeIcon/eraser_a.svg.js +6 -1
- package/dist/assets/attributeIcon/eraser_a.svg.js.map +1 -0
- package/dist/assets/attributeIcon/pen.svg.js +6 -1
- package/dist/assets/attributeIcon/pen.svg.js.map +1 -0
- package/dist/assets/attributeIcon/pen_a.svg.js +6 -1
- package/dist/assets/attributeIcon/pen_a.svg.js.map +1 -0
- package/dist/assets/attributeIcon/zoomUp.svg.js +6 -1
- package/dist/assets/attributeIcon/zoomUp.svg.js.map +1 -0
- package/dist/assets/predictTracking/icon.svg.js +6 -1
- package/dist/assets/predictTracking/icon.svg.js.map +1 -0
- package/dist/assets/toolStyle/icon_border.svg.js +6 -1
- package/dist/assets/toolStyle/icon_border.svg.js.map +1 -0
- package/dist/assets/toolStyle/icon_borderColor.svg.js +6 -1
- package/dist/assets/toolStyle/icon_borderColor.svg.js.map +1 -0
- package/dist/assets/toolStyle/icon_opacityFill.svg.js +6 -1
- package/dist/assets/toolStyle/icon_opacityFill.svg.js.map +1 -0
- package/dist/assets/toolStyle/icon_opacityStroke.svg.js +6 -1
- package/dist/assets/toolStyle/icon_opacityStroke.svg.js.map +1 -0
- package/dist/components/AnnotationView/index.js +160 -1
- package/dist/components/AnnotationView/index.js.map +1 -0
- package/dist/components/AnnotationView/pointCloudAnnotationView.js +85 -1
- package/dist/components/AnnotationView/pointCloudAnnotationView.js.map +1 -0
- package/dist/components/annotationStepPopover/index.js +39 -1
- package/dist/components/annotationStepPopover/index.js.map +1 -0
- package/dist/components/attributeList/index.js +66 -1
- package/dist/components/attributeList/index.js.map +1 -0
- package/dist/components/checkboxList/index.js +39 -1
- package/dist/components/checkboxList/index.js.map +1 -0
- package/dist/components/colorTag/index.js +38 -1
- package/dist/components/colorTag/index.js.map +1 -0
- package/dist/components/customAntd/IconWithText/index.js +59 -1
- package/dist/components/customAntd/IconWithText/index.js.map +1 -0
- package/dist/components/customResizeHook/index.js +95 -1
- package/dist/components/customResizeHook/index.js.map +1 -0
- package/dist/components/fileException/FileError.js +61 -1
- package/dist/components/fileException/FileError.js.map +1 -0
- package/dist/components/fileException/FileInvalid.js +31 -1
- package/dist/components/fileException/FileInvalid.js.map +1 -0
- package/dist/components/fileException/index.js +38 -1
- package/dist/components/fileException/index.js.map +1 -0
- package/dist/components/pointCloudView/PointCloud2DView.js +153 -1
- package/dist/components/pointCloudView/PointCloud2DView.js.map +1 -0
- package/dist/components/pointCloudView/PointCloud3DView.js +234 -1
- package/dist/components/pointCloudView/PointCloud3DView.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudBackView.js +138 -1
- package/dist/components/pointCloudView/PointCloudBackView.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudContext.js +257 -1
- package/dist/components/pointCloudView/PointCloudContext.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudInfos.js +146 -1
- package/dist/components/pointCloudView/PointCloudInfos.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudLayout.js +28 -1
- package/dist/components/pointCloudView/PointCloudLayout.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudListener.js +347 -1
- package/dist/components/pointCloudView/PointCloudListener.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudSegment.js +62 -0
- package/dist/components/pointCloudView/PointCloudSegment.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudSideView.js +135 -1
- package/dist/components/pointCloudView/PointCloudSideView.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudTopView.js +339 -1
- package/dist/components/pointCloudView/PointCloudTopView.js.map +1 -0
- package/dist/components/pointCloudView/components/EmptyPage/index.js +24 -1
- package/dist/components/pointCloudView/components/EmptyPage/index.js.map +1 -0
- package/dist/components/pointCloudView/components/UnifyParamsModal/index.js +240 -1
- package/dist/components/pointCloudView/components/UnifyParamsModal/index.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useAttribute.js +53 -1
- package/dist/components/pointCloudView/hooks/useAttribute.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useBoxes.js +81 -1
- package/dist/components/pointCloudView/hooks/useBoxes.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useConfig.js +33 -1
- package/dist/components/pointCloudView/hooks/useConfig.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useHistory.js +173 -1
- package/dist/components/pointCloudView/hooks/useHistory.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useLine.js +74 -1
- package/dist/components/pointCloudView/hooks/useLine.js.map +1 -0
- package/dist/components/pointCloudView/hooks/usePointCloudViews.js +759 -1
- package/dist/components/pointCloudView/hooks/usePointCloudViews.js.map +1 -0
- package/dist/components/pointCloudView/hooks/usePolygon.js +74 -1
- package/dist/components/pointCloudView/hooks/usePolygon.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useRotate.js +47 -1
- package/dist/components/pointCloudView/hooks/useRotate.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useSingleBox.js +176 -1
- package/dist/components/pointCloudView/hooks/useSingleBox.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useSphere.js +51 -1
- package/dist/components/pointCloudView/hooks/useSphere.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useStatus.js +92 -1
- package/dist/components/pointCloudView/hooks/useStatus.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useZoom.js +42 -1
- package/dist/components/pointCloudView/hooks/useZoom.js.map +1 -0
- package/dist/components/pointCloudView/index.js +59 -1
- package/dist/components/pointCloudView/index.js.map +1 -0
- package/dist/components/predictTracking/index.js +8 -1
- package/dist/components/predictTracking/index.js.map +1 -0
- package/dist/components/predictTracking/predictTrackingIcon/index.js +104 -1
- package/dist/components/predictTracking/predictTrackingIcon/index.js.map +1 -0
- package/dist/components/predictTracking/previewResult/index.js +196 -1
- package/dist/components/predictTracking/previewResult/index.js.map +1 -0
- package/dist/components/predictTracking/previewResult/util.js +144 -1
- package/dist/components/predictTracking/previewResult/util.js.map +1 -0
- package/dist/components/videoAnnotate/index.js +50 -1
- package/dist/components/videoAnnotate/index.js.map +1 -0
- package/dist/components/videoPlayer/TagToolInstanceAdaptor.js +233 -1
- package/dist/components/videoPlayer/TagToolInstanceAdaptor.js.map +1 -0
- package/dist/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js +40 -1
- package/dist/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js.map +1 -0
- package/dist/components/videoPlayer/VideoTagLayer.js +37 -1
- package/dist/components/videoPlayer/VideoTagLayer.js.map +1 -0
- package/dist/components/videoPlayer/components/controller/index.js +131 -1
- package/dist/components/videoPlayer/components/controller/index.js.map +1 -0
- package/dist/components/videoPlayer/index.js +267 -1
- package/dist/components/videoPlayer/index.js.map +1 -0
- package/dist/components/videoPlayer/utils.js +59 -1
- package/dist/components/videoPlayer/utils.js.map +1 -0
- package/dist/configureStore.js +16 -1
- package/dist/configureStore.js.map +1 -0
- package/dist/constant/index.js +32 -1
- package/dist/constant/index.js.map +1 -0
- package/dist/constant/styleString.js +6 -1
- package/dist/constant/styleString.js.map +1 -0
- package/dist/data/Style.js +113 -1
- package/dist/data/Style.js.map +1 -0
- package/dist/data/enums/AnnotationSize.js +39 -1
- package/dist/data/enums/AnnotationSize.js.map +1 -0
- package/dist/data/enums/ToolType.js +44 -1
- package/dist/data/enums/ToolType.js.map +1 -0
- package/dist/hooks/annotation.js +81 -1
- package/dist/hooks/annotation.js.map +1 -0
- package/dist/hooks/useRafState.js +21 -1
- package/dist/hooks/useRafState.js.map +1 -0
- package/dist/hooks/useRefCache.js +14 -1
- package/dist/hooks/useRefCache.js.map +1 -0
- package/dist/hooks/useSafeSate.js +22 -1
- package/dist/hooks/useSafeSate.js.map +1 -0
- package/dist/hooks/useSize.js +45 -1
- package/dist/hooks/useSize.js.map +1 -0
- package/dist/hooks/useUnmountedRef.js +17 -1
- package/dist/hooks/useUnmountedRef.js.map +1 -0
- package/dist/index.js +90 -1
- package/dist/index.js.map +1 -0
- package/dist/store/Actions.js +57 -1
- package/dist/store/Actions.js.map +1 -0
- package/dist/store/annotation/actionCreators.js +488 -1
- package/dist/store/annotation/actionCreators.js.map +1 -0
- package/dist/store/annotation/map.js +26 -1
- package/dist/store/annotation/map.js.map +1 -0
- package/dist/store/annotation/reducer.js +669 -1
- package/dist/store/annotation/reducer.js.map +1 -0
- package/dist/store/annotation/selectors.js +15 -1
- package/dist/store/annotation/selectors.js.map +1 -0
- package/dist/store/ctx.js +19 -1
- package/dist/store/ctx.js.map +1 -0
- package/dist/store/imgAttribute/actionCreators.js +27 -1
- package/dist/store/imgAttribute/actionCreators.js.map +1 -0
- package/dist/store/imgAttribute/reducer.js +44 -1
- package/dist/store/imgAttribute/reducer.js.map +1 -0
- package/dist/store/index.js +17 -1
- package/dist/store/index.js.map +1 -0
- package/dist/store/toolStyle/actionCreators.js +22 -1
- package/dist/store/toolStyle/actionCreators.js.map +1 -0
- package/dist/store/toolStyle/reducer.js +54 -1
- package/dist/store/toolStyle/reducer.js.map +1 -0
- package/dist/types/components/pointCloudView/PointCloudSegment.d.ts +6 -0
- package/dist/types/components/predictTracking/previewResult/util.d.ts +2 -1
- package/dist/types/store/annotation/actionCreators.d.ts +1 -1
- package/dist/types/views/MainView/toolHeader/SwitchPattern/index.d.ts +5 -0
- package/dist/utils/AnnotationDataUtils.js +171 -1
- package/dist/utils/AnnotationDataUtils.js.map +1 -0
- package/dist/utils/ConfigUtils.js +22 -1
- package/dist/utils/ConfigUtils.js.map +1 -0
- package/dist/utils/PageOperator.js +99 -1
- package/dist/utils/PageOperator.js.map +1 -0
- package/dist/utils/StepUtils.js +29 -1
- package/dist/utils/StepUtils.js.map +1 -0
- package/dist/utils/TextUtils.js +45 -1
- package/dist/utils/TextUtils.js.map +1 -0
- package/dist/utils/ToolStyleUtils.js +96 -1
- package/dist/utils/ToolStyleUtils.js.map +1 -0
- package/dist/utils/ToolUtils.js +19 -1
- package/dist/utils/ToolUtils.js.map +1 -0
- package/dist/utils/data.js +77 -1
- package/dist/utils/data.js.map +1 -0
- package/dist/utils/dom.js +25 -1
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/index.js +39 -1
- package/dist/utils/index.js.map +1 -0
- package/dist/views/MainView/annotationOperation/index.js +175 -1
- package/dist/views/MainView/annotationOperation/index.js.map +1 -0
- package/dist/views/MainView/annotationTips/index.js +32 -1
- package/dist/views/MainView/annotationTips/index.js.map +1 -0
- package/dist/views/MainView/index.js +122 -1
- package/dist/views/MainView/index.js.map +1 -0
- package/dist/views/MainView/sidebar/AnnotationText/index.js +47 -1
- package/dist/views/MainView/sidebar/AnnotationText/index.js.map +1 -0
- package/dist/views/MainView/sidebar/ClearIcon/index.js +37 -1
- package/dist/views/MainView/sidebar/ClearIcon/index.js.map +1 -0
- package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +101 -1
- package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js.map +1 -0
- package/dist/views/MainView/sidebar/GeneralOperation/index.js +95 -1
- package/dist/views/MainView/sidebar/GeneralOperation/index.js.map +1 -0
- package/dist/views/MainView/sidebar/GeneralOperation/useOperationList.js +94 -1
- package/dist/views/MainView/sidebar/GeneralOperation/useOperationList.js.map +1 -0
- package/dist/views/MainView/sidebar/ImgAttributeInfo/index.js +134 -1
- package/dist/views/MainView/sidebar/ImgAttributeInfo/index.js.map +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +128 -1
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js.map +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +253 -1
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js.map +1 -0
- package/dist/views/MainView/sidebar/ScribbleSidebar/index.js +64 -1
- package/dist/views/MainView/sidebar/ScribbleSidebar/index.js.map +1 -0
- package/dist/views/MainView/sidebar/SwitchAttributeList/index.js +79 -1
- package/dist/views/MainView/sidebar/SwitchAttributeList/index.js.map +1 -0
- package/dist/views/MainView/sidebar/TagSidebar/index.js +187 -1
- package/dist/views/MainView/sidebar/TagSidebar/index.js.map +1 -0
- package/dist/views/MainView/sidebar/TextAreaFormat/index.js +112 -1
- package/dist/views/MainView/sidebar/TextAreaFormat/index.js.map +1 -0
- package/dist/views/MainView/sidebar/TextToolSidebar/index.js +235 -1
- package/dist/views/MainView/sidebar/TextToolSidebar/index.js.map +1 -0
- package/dist/views/MainView/sidebar/ToolIcons.js +87 -1
- package/dist/views/MainView/sidebar/ToolIcons.js.map +1 -0
- package/dist/views/MainView/sidebar/ToolStyle/index.js +162 -1
- package/dist/views/MainView/sidebar/ToolStyle/index.js.map +1 -0
- package/dist/views/MainView/sidebar/index.js +156 -1
- package/dist/views/MainView/sidebar/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/AnnotatedAttributes/index.js +211 -1
- package/dist/views/MainView/toolFooter/AnnotatedAttributes/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterPopover.js +54 -1
- package/dist/views/MainView/toolFooter/FooterPopover.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +149 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js +26 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +226 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +111 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +55 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +174 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +117 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +71 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +18 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +25 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +18 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js +28 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/index.js +23 -1
- package/dist/views/MainView/toolFooter/FooterTips/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/HiddenTips/index.js +45 -1
- package/dist/views/MainView/toolFooter/HiddenTips/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/PageNumber/index.js +48 -1
- package/dist/views/MainView/toolFooter/PageNumber/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/Pagination.js +91 -1
- package/dist/views/MainView/toolFooter/Pagination.js.map +1 -0
- package/dist/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +39 -1
- package/dist/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/ZoomController/index.js +72 -1
- package/dist/views/MainView/toolFooter/ZoomController/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/index.js +135 -1
- package/dist/views/MainView/toolFooter/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/ExportData/index.js +44 -1
- package/dist/views/MainView/toolHeader/ExportData/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/StepSwitch/index.js +47 -1
- package/dist/views/MainView/toolHeader/StepSwitch/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/SwitchPattern/index.js +59 -0
- package/dist/views/MainView/toolHeader/SwitchPattern/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/headerOption/index.js +151 -1
- package/dist/views/MainView/toolHeader/headerOption/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/index.js +180 -1
- package/dist/views/MainView/toolHeader/index.js.map +1 -0
- package/es/App.js +138 -1
- package/es/App.js.map +1 -0
- package/es/assets/annotation/common/icon_adapt.svg.js +4 -1
- package/es/assets/annotation/common/icon_adapt.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_adapt_black.svg.js +4 -1
- package/es/assets/annotation/common/icon_adapt_black.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_back.svg.js +4 -1
- package/es/assets/annotation/common/icon_back.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_backA.svg.js +4 -1
- package/es/assets/annotation/common/icon_backA.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clear.svg.js +4 -1
- package/es/assets/annotation/common/icon_clear.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clearSmall.svg.js +4 -1
- package/es/assets/annotation/common/icon_clearSmall.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clearSmall_a.svg.js +4 -1
- package/es/assets/annotation/common/icon_clearSmall_a.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clear_a.svg.js +4 -1
- package/es/assets/annotation/common/icon_clear_a.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_invalid.svg.js +4 -1
- package/es/assets/annotation/common/icon_invalid.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_invalid_a.svg.js +4 -1
- package/es/assets/annotation/common/icon_invalid_a.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_next.svg.js +4 -1
- package/es/assets/annotation/common/icon_next.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_nextA.svg.js +4 -1
- package/es/assets/annotation/common/icon_nextA.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_r.svg.js +4 -1
- package/es/assets/annotation/common/icon_r.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_rA.svg.js +4 -1
- package/es/assets/annotation/common/icon_rA.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_save.svg.js +4 -1
- package/es/assets/annotation/common/icon_save.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_saveA.svg.js +4 -1
- package/es/assets/annotation/common/icon_saveA.svg.js.map +1 -0
- package/es/assets/annotation/image/brightness.svg.js +4 -1
- package/es/assets/annotation/image/brightness.svg.js.map +1 -0
- package/es/assets/annotation/image/contrast.svg.js +4 -1
- package/es/assets/annotation/image/contrast.svg.js.map +1 -0
- package/es/assets/annotation/image/icon_yuantu.svg.js +4 -1
- package/es/assets/annotation/image/icon_yuantu.svg.js.map +1 -0
- package/es/assets/annotation/image/saturation.svg.js +4 -1
- package/es/assets/annotation/image/saturation.svg.js.map +1 -0
- package/es/assets/annotation/lineTool/icon_line.svg.js +4 -1
- package/es/assets/annotation/lineTool/icon_line.svg.js.map +1 -0
- package/es/assets/annotation/lineTool/icon_line_a.svg.js +4 -1
- package/es/assets/annotation/lineTool/icon_line_a.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/copy.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/copy.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/nextBox.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/nextBox.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/nodata.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/nodata.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/patse.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/patse.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/prevBox.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/prevBox.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/selectAll.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/selectAll.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js.map +1 -0
- package/es/assets/annotation/pointTool/icon_point.svg.js +4 -1
- package/es/assets/annotation/pointTool/icon_point.svg.js.map +1 -0
- package/es/assets/annotation/pointTool/icon_point_a.svg.js +4 -1
- package/es/assets/annotation/pointTool/icon_point_a.svg.js.map +1 -0
- package/es/assets/annotation/polygonTool/icon_polygon.svg.js +4 -1
- package/es/assets/annotation/polygonTool/icon_polygon.svg.js.map +1 -0
- package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js +4 -1
- package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js.map +1 -0
- package/es/assets/annotation/rectTool/icon_rect.svg.js +4 -1
- package/es/assets/annotation/rectTool/icon_rect.svg.js.map +1 -0
- package/es/assets/annotation/rectTool/icon_rectPattern.svg.js +4 -0
- package/es/assets/annotation/rectTool/icon_rectPattern.svg.js.map +1 -0
- package/es/assets/annotation/rectTool/icon_rect_a.svg.js +4 -1
- package/es/assets/annotation/rectTool/icon_rect_a.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_copyBackwardResult.svg.js +4 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_copyBackwardResult.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js.map +1 -0
- package/es/assets/annotation/video/icon_keyboard_h.svg.js +4 -1
- package/es/assets/annotation/video/icon_keyboard_h.svg.js.map +1 -0
- package/es/assets/attributeIcon/eraser.svg.js +4 -1
- package/es/assets/attributeIcon/eraser.svg.js.map +1 -0
- package/es/assets/attributeIcon/eraser_a.svg.js +4 -1
- package/es/assets/attributeIcon/eraser_a.svg.js.map +1 -0
- package/es/assets/attributeIcon/pen.svg.js +4 -1
- package/es/assets/attributeIcon/pen.svg.js.map +1 -0
- package/es/assets/attributeIcon/pen_a.svg.js +4 -1
- package/es/assets/attributeIcon/pen_a.svg.js.map +1 -0
- package/es/assets/attributeIcon/zoomUp.svg.js +4 -1
- package/es/assets/attributeIcon/zoomUp.svg.js.map +1 -0
- package/es/assets/cssIcon/annotation/icon_clearSmall.svg +10 -0
- package/es/assets/cssIcon/annotation/icon_clearSmall_a.svg +10 -0
- package/es/assets/cssIcon/slide_btn.svg +23 -0
- package/es/assets/predictTracking/icon.svg.js +4 -1
- package/es/assets/predictTracking/icon.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_border.svg.js +4 -1
- package/es/assets/toolStyle/icon_border.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_borderColor.svg.js +4 -1
- package/es/assets/toolStyle/icon_borderColor.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_opacityFill.svg.js +4 -1
- package/es/assets/toolStyle/icon_opacityFill.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_opacityStroke.svg.js +4 -1
- package/es/assets/toolStyle/icon_opacityStroke.svg.js.map +1 -0
- package/es/components/AnnotationView/index.js +154 -1
- package/es/components/AnnotationView/index.js.map +1 -0
- package/es/components/AnnotationView/pointCloudAnnotationView.js +79 -1
- package/es/components/AnnotationView/pointCloudAnnotationView.js.map +1 -0
- package/es/components/ImageError/index.js +53 -0
- package/es/components/ImageError/index.js.map +1 -0
- package/es/components/annotationStepPopover/index.js +33 -1
- package/es/components/annotationStepPopover/index.js.map +1 -0
- package/es/components/attributeList/index.js +57 -1
- package/es/components/attributeList/index.js.map +1 -0
- package/es/components/checkboxList/index.js +33 -1
- package/es/components/checkboxList/index.js.map +1 -0
- package/es/components/colorTag/index.js +30 -1
- package/es/components/colorTag/index.js.map +1 -0
- package/es/components/customAntd/IconWithText/index.js +53 -1
- package/es/components/customAntd/IconWithText/index.js.map +1 -0
- package/es/components/customResizeHook/index.js +84 -1
- package/es/components/customResizeHook/index.js.map +1 -0
- package/es/components/fileException/FileError.js +55 -1
- package/es/components/fileException/FileError.js.map +1 -0
- package/es/components/fileException/FileInvalid.js +25 -1
- package/es/components/fileException/FileInvalid.js.map +1 -0
- package/es/components/fileException/index.js +32 -1
- package/es/components/fileException/index.js.map +1 -0
- package/es/components/pointCloudView/PointCloud2DView.js +147 -1
- package/es/components/pointCloudView/PointCloud2DView.js.map +1 -0
- package/es/components/pointCloudView/PointCloud3DView.js +227 -1
- package/es/components/pointCloudView/PointCloud3DView.js.map +1 -0
- package/es/components/pointCloudView/PointCloudBackView.js +132 -1
- package/es/components/pointCloudView/PointCloudBackView.js.map +1 -0
- package/es/components/pointCloudView/PointCloudContext.js +248 -1
- package/es/components/pointCloudView/PointCloudContext.js.map +1 -0
- package/es/components/pointCloudView/PointCloudInfos.js +136 -1
- package/es/components/pointCloudView/PointCloudInfos.js.map +1 -0
- package/es/components/pointCloudView/PointCloudLayout.js +19 -1
- package/es/components/pointCloudView/PointCloudLayout.js.map +1 -0
- package/es/components/pointCloudView/PointCloudListener.js +345 -1
- package/es/components/pointCloudView/PointCloudListener.js.map +1 -0
- package/es/components/pointCloudView/PointCloudSegment.js +56 -0
- package/es/components/pointCloudView/PointCloudSegment.js.map +1 -0
- package/es/components/pointCloudView/PointCloudSideView.js +129 -1
- package/es/components/pointCloudView/PointCloudSideView.js.map +1 -0
- package/es/components/pointCloudView/PointCloudTopView.js +333 -1
- package/es/components/pointCloudView/PointCloudTopView.js.map +1 -0
- package/es/components/pointCloudView/components/EmptyPage/index.js +18 -1
- package/es/components/pointCloudView/components/EmptyPage/index.js.map +1 -0
- package/es/components/pointCloudView/components/PointCloudSizeSlider/index.js +23 -0
- package/es/components/pointCloudView/components/PointCloudSizeSlider/index.js.map +1 -0
- package/es/components/pointCloudView/components/UnifiedParamsModal/index.js +228 -0
- package/es/components/pointCloudView/components/UnifiedParamsModal/index.js.map +1 -0
- package/es/components/pointCloudView/components/UnifyParamsModal/index.js +234 -1
- package/es/components/pointCloudView/components/UnifyParamsModal/index.js.map +1 -0
- package/es/components/pointCloudView/data.js +4 -0
- package/es/components/pointCloudView/data.js.map +1 -0
- package/es/components/pointCloudView/hooks/useAttribute.js +49 -1
- package/es/components/pointCloudView/hooks/useAttribute.js.map +1 -0
- package/es/components/pointCloudView/hooks/useBoxes.js +73 -1
- package/es/components/pointCloudView/hooks/useBoxes.js.map +1 -0
- package/es/components/pointCloudView/hooks/useConfig.js +29 -1
- package/es/components/pointCloudView/hooks/useConfig.js.map +1 -0
- package/es/components/pointCloudView/hooks/useHistory.js +169 -1
- package/es/components/pointCloudView/hooks/useHistory.js.map +1 -0
- package/es/components/pointCloudView/hooks/useLine.js +70 -1
- package/es/components/pointCloudView/hooks/useLine.js.map +1 -0
- package/es/components/pointCloudView/hooks/usePointCloudViews.js +747 -1
- package/es/components/pointCloudView/hooks/usePointCloudViews.js.map +1 -0
- package/es/components/pointCloudView/hooks/usePolygon.js +70 -1
- package/es/components/pointCloudView/hooks/usePolygon.js.map +1 -0
- package/es/components/pointCloudView/hooks/useRotate.js +43 -1
- package/es/components/pointCloudView/hooks/useRotate.js.map +1 -0
- package/es/components/pointCloudView/hooks/useSingleBox.js +168 -1
- package/es/components/pointCloudView/hooks/useSingleBox.js.map +1 -0
- package/es/components/pointCloudView/hooks/useSphere.js +43 -1
- package/es/components/pointCloudView/hooks/useSphere.js.map +1 -0
- package/es/components/pointCloudView/hooks/useStatus.js +88 -1
- package/es/components/pointCloudView/hooks/useStatus.js.map +1 -0
- package/es/components/pointCloudView/hooks/useZoom.js +38 -1
- package/es/components/pointCloudView/hooks/useZoom.js.map +1 -0
- package/es/components/pointCloudView/index.js +53 -1
- package/es/components/pointCloudView/index.js.map +1 -0
- package/es/components/predictTracking/index.js +3 -1
- package/es/components/predictTracking/index.js.map +1 -0
- package/es/components/predictTracking/predictTrackingIcon/index.js +98 -1
- package/es/components/predictTracking/predictTrackingIcon/index.js.map +1 -0
- package/es/components/predictTracking/previewResult/index.js +189 -1
- package/es/components/predictTracking/previewResult/index.js.map +1 -0
- package/es/components/predictTracking/previewResult/util.js +136 -1
- package/es/components/predictTracking/previewResult/util.js.map +1 -0
- package/es/components/videoAnnotate/index.js +44 -1
- package/es/components/videoAnnotate/index.js.map +1 -0
- package/es/components/videoPlayer/TagToolInstanceAdaptor.js +224 -1
- package/es/components/videoPlayer/TagToolInstanceAdaptor.js.map +1 -0
- package/es/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js +32 -1
- package/es/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js.map +1 -0
- package/es/components/videoPlayer/VideoTagLayer.js +29 -1
- package/es/components/videoPlayer/VideoTagLayer.js.map +1 -0
- package/es/components/videoPlayer/components/controller/index.js +125 -1
- package/es/components/videoPlayer/components/controller/index.js.map +1 -0
- package/es/components/videoPlayer/index.js +257 -1
- package/es/components/videoPlayer/index.js.map +1 -0
- package/es/components/videoPlayer/utils.js +51 -1
- package/es/components/videoPlayer/utils.js.map +1 -0
- package/es/configureStore.js +10 -1
- package/es/configureStore.js.map +1 -0
- package/es/constant/index.js +27 -1
- package/es/constant/index.js.map +1 -0
- package/es/constant/styleString.js +4 -1
- package/es/constant/styleString.js.map +1 -0
- package/es/data/Style.js +104 -1
- package/es/data/Style.js.map +1 -0
- package/es/data/enums/AnnotationSize.js +32 -1
- package/es/data/enums/AnnotationSize.js.map +1 -0
- package/es/data/enums/ToolType.js +40 -1
- package/es/data/enums/ToolType.js.map +1 -0
- package/es/hooks/annotation.js +77 -1
- package/es/hooks/annotation.js.map +1 -0
- package/es/hooks/useConfig.js +18 -0
- package/es/hooks/useConfig.js.map +1 -0
- package/es/hooks/useRafState.js +19 -1
- package/es/hooks/useRafState.js.map +1 -0
- package/es/hooks/useRefCache.js +12 -1
- package/es/hooks/useRefCache.js.map +1 -0
- package/es/hooks/useSafeSate.js +16 -1
- package/es/hooks/useSafeSate.js.map +1 -0
- package/es/hooks/useSize.js +39 -1
- package/es/hooks/useSize.js.map +1 -0
- package/es/hooks/useUnmountedRef.js +15 -1
- package/es/hooks/useUnmountedRef.js.map +1 -0
- package/es/index.js +64 -1
- package/es/index.js.map +1 -0
- package/es/store/Actions.js +51 -1
- package/es/store/Actions.js.map +1 -0
- package/es/store/annotation/actionCreators.js +450 -1
- package/es/store/annotation/actionCreators.js.map +1 -0
- package/es/store/annotation/map.js +22 -1
- package/es/store/annotation/map.js.map +1 -0
- package/es/store/annotation/reducer.js +657 -1
- package/es/store/annotation/reducer.js.map +1 -0
- package/es/store/annotation/selectors.js +11 -1
- package/es/store/annotation/selectors.js.map +1 -0
- package/es/store/ctx.js +9 -1
- package/es/store/ctx.js.map +1 -0
- package/es/store/imgAttribute/actionCreators.js +21 -1
- package/es/store/imgAttribute/actionCreators.js.map +1 -0
- package/es/store/imgAttribute/reducer.js +40 -1
- package/es/store/imgAttribute/reducer.js.map +1 -0
- package/es/store/index.js +13 -1
- package/es/store/index.js.map +1 -0
- package/es/store/toolStyle/actionCreators.js +17 -1
- package/es/store/toolStyle/actionCreators.js.map +1 -0
- package/es/store/toolStyle/reducer.js +50 -1
- package/es/store/toolStyle/reducer.js.map +1 -0
- package/es/utils/AnnotationDataUtils.js +165 -1
- package/es/utils/AnnotationDataUtils.js.map +1 -0
- package/es/utils/ConfigUtils.js +18 -1
- package/es/utils/ConfigUtils.js.map +1 -0
- package/es/utils/PageOperator.js +93 -1
- package/es/utils/PageOperator.js.map +1 -0
- package/es/utils/StepUtils.js +27 -1
- package/es/utils/StepUtils.js.map +1 -0
- package/es/utils/TextUtils.js +39 -1
- package/es/utils/TextUtils.js.map +1 -0
- package/es/utils/ToolStyleUtils.js +88 -1
- package/es/utils/ToolStyleUtils.js.map +1 -0
- package/es/utils/ToolUtils.js +17 -1
- package/es/utils/ToolUtils.js.map +1 -0
- package/es/utils/data.js +72 -1
- package/es/utils/data.js.map +1 -0
- package/es/utils/dom.js +20 -1
- package/es/utils/dom.js.map +1 -0
- package/es/utils/index.js +30 -1
- package/es/utils/index.js.map +1 -0
- package/es/views/MainView/annotationOperation/index.js +168 -1
- package/es/views/MainView/annotationOperation/index.js.map +1 -0
- package/es/views/MainView/annotationTips/index.js +26 -1
- package/es/views/MainView/annotationTips/index.js.map +1 -0
- package/es/views/MainView/index.js +116 -1
- package/es/views/MainView/index.js.map +1 -0
- package/es/views/MainView/sidebar/AnnotationText/index.js +41 -1
- package/es/views/MainView/sidebar/AnnotationText/index.js.map +1 -0
- package/es/views/MainView/sidebar/ClearIcon/index.js +31 -1
- package/es/views/MainView/sidebar/ClearIcon/index.js.map +1 -0
- package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +95 -1
- package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js.map +1 -0
- package/es/views/MainView/sidebar/GeneralOperation/index.js +86 -1
- package/es/views/MainView/sidebar/GeneralOperation/index.js.map +1 -0
- package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js +88 -1
- package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js.map +1 -0
- package/es/views/MainView/sidebar/ImgAttributeInfo/index.js +128 -1
- package/es/views/MainView/sidebar/ImgAttributeInfo/index.js.map +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +122 -1
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js.map +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +247 -1
- package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js.map +1 -0
- package/es/views/MainView/sidebar/ScribbleSidebar/index.js +58 -1
- package/es/views/MainView/sidebar/ScribbleSidebar/index.js.map +1 -0
- package/es/views/MainView/sidebar/SwitchAttributeList/index.js +73 -1
- package/es/views/MainView/sidebar/SwitchAttributeList/index.js.map +1 -0
- package/es/views/MainView/sidebar/TagSidebar/index.js +178 -1
- package/es/views/MainView/sidebar/TagSidebar/index.js.map +1 -0
- package/es/views/MainView/sidebar/TextAreaFormat/index.js +106 -1
- package/es/views/MainView/sidebar/TextAreaFormat/index.js.map +1 -0
- package/es/views/MainView/sidebar/TextToolSidebar/index.js +225 -1
- package/es/views/MainView/sidebar/TextToolSidebar/index.js.map +1 -0
- package/es/views/MainView/sidebar/ToolIcons.js +78 -1
- package/es/views/MainView/sidebar/ToolIcons.js.map +1 -0
- package/es/views/MainView/sidebar/ToolStyle/index.js +156 -1
- package/es/views/MainView/sidebar/ToolStyle/index.js.map +1 -0
- package/es/views/MainView/sidebar/index.js +147 -1
- package/es/views/MainView/sidebar/index.js.map +1 -0
- package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js +200 -1
- package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterPopover.js +48 -1
- package/es/views/MainView/toolFooter/FooterPopover.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +127 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js +24 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +216 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +97 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +47 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +165 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +102 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +61 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +16 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +20 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +16 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js +22 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/index.js +17 -1
- package/es/views/MainView/toolFooter/FooterTips/index.js.map +1 -0
- package/es/views/MainView/toolFooter/HiddenTips/index.js +39 -1
- package/es/views/MainView/toolFooter/HiddenTips/index.js.map +1 -0
- package/es/views/MainView/toolFooter/PageNumber/index.js +42 -1
- package/es/views/MainView/toolFooter/PageNumber/index.js.map +1 -0
- package/es/views/MainView/toolFooter/Pagination.js +82 -1
- package/es/views/MainView/toolFooter/Pagination.js.map +1 -0
- package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +33 -1
- package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js.map +1 -0
- package/es/views/MainView/toolFooter/ZoomController/index.js +63 -1
- package/es/views/MainView/toolFooter/ZoomController/index.js.map +1 -0
- package/es/views/MainView/toolFooter/index.js +125 -1
- package/es/views/MainView/toolFooter/index.js.map +1 -0
- package/es/views/MainView/toolHeader/ExportData/index.js +38 -1
- package/es/views/MainView/toolHeader/ExportData/index.js.map +1 -0
- package/es/views/MainView/toolHeader/StepSwitch/index.js +41 -1
- package/es/views/MainView/toolHeader/StepSwitch/index.js.map +1 -0
- package/es/views/MainView/toolHeader/SwitchPattern/index.js +53 -0
- package/es/views/MainView/toolHeader/SwitchPattern/index.js.map +1 -0
- package/es/views/MainView/toolHeader/headerOption/index.js +145 -1
- package/es/views/MainView/toolHeader/headerOption/index.js.map +1 -0
- package/es/views/MainView/toolHeader/index.js +173 -1
- package/es/views/MainView/toolHeader/index.js.map +1 -0
- package/package.json +8 -6
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var lbAnnotation = require('@labelbee/lb-annotation');
|
|
5
|
+
var antd = require('antd');
|
|
6
|
+
var reactRedux = require('react-redux');
|
|
7
|
+
var ctx = require('../../../../store/ctx.js');
|
|
8
|
+
var PointCloudContext = require('../../../../components/pointCloudView/PointCloudContext.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
|
|
14
|
+
const SwitchPattern = ({toolName}) => {
|
|
15
|
+
const {
|
|
16
|
+
globalPattern,
|
|
17
|
+
setGlobalPattern,
|
|
18
|
+
setTopViewInstance,
|
|
19
|
+
setSideViewInstance,
|
|
20
|
+
setBackViewInstance,
|
|
21
|
+
setMainViewInstance
|
|
22
|
+
} = React.useContext(PointCloudContext.PointCloudContext);
|
|
23
|
+
if (toolName !== lbAnnotation.EPointCloudName.PointCloud) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
const clearDetection = () => {
|
|
27
|
+
setTopViewInstance(void 0);
|
|
28
|
+
setSideViewInstance(void 0);
|
|
29
|
+
setBackViewInstance(void 0);
|
|
30
|
+
setMainViewInstance(void 0);
|
|
31
|
+
};
|
|
32
|
+
const updateDetection = () => {
|
|
33
|
+
setGlobalPattern(lbAnnotation.EPointCloudPattern.Detection);
|
|
34
|
+
clearDetection();
|
|
35
|
+
};
|
|
36
|
+
const updateSegmentation = () => {
|
|
37
|
+
setGlobalPattern(lbAnnotation.EPointCloudPattern.Segmentation);
|
|
38
|
+
clearDetection();
|
|
39
|
+
};
|
|
40
|
+
return /* @__PURE__ */ React__default["default"].createElement("span", {
|
|
41
|
+
style: {margin: "0 10px"}
|
|
42
|
+
}, /* @__PURE__ */ React__default["default"].createElement(antd.Button, {
|
|
43
|
+
type: globalPattern === lbAnnotation.EPointCloudPattern.Detection ? "primary" : void 0,
|
|
44
|
+
onClick: updateDetection
|
|
45
|
+
}, "\u68C0\u6D4B\u6A21\u5F0F"), /* @__PURE__ */ React__default["default"].createElement(antd.Button, {
|
|
46
|
+
type: globalPattern === lbAnnotation.EPointCloudPattern.Segmentation ? "primary" : void 0,
|
|
47
|
+
onClick: updateSegmentation
|
|
48
|
+
}, "\u5206\u5272\u6A21\u5F0F"));
|
|
49
|
+
};
|
|
50
|
+
const mapStateToProps = (state) => {
|
|
51
|
+
var _a, _b;
|
|
52
|
+
return {
|
|
53
|
+
toolName: (_b = (_a = state.annotation.stepList[state.annotation.step - 1]) == null ? void 0 : _a.tool) != null ? _b : ""
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
var SwitchPattern$1 = reactRedux.connect(mapStateToProps, null, null, {context: ctx.LabelBeeContext})(SwitchPattern);
|
|
57
|
+
|
|
58
|
+
module.exports = SwitchPattern$1;
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/views/MainView/toolHeader/SwitchPattern/index.tsx"],"sourcesContent":["/**\n * Switch Pattern in PointCloudTool\n *\n *\n */\nimport React, { useContext } from 'react';\nimport { EPointCloudName, EPointCloudPattern } from '@labelbee/lb-annotation';\nimport { Button } from 'antd';\nimport { AppState } from '@/store';\nimport { connect } from 'react-redux';\nimport { LabelBeeContext } from '@/store/ctx';\nimport { PointCloudContext } from '@/components/pointCloudView/PointCloudContext';\n\ninterface IProps {\n toolName: string;\n}\n\nconst SwitchPattern = ({ toolName }: IProps) => {\n const {\n globalPattern,\n setGlobalPattern,\n setTopViewInstance,\n setSideViewInstance,\n setBackViewInstance,\n setMainViewInstance,\n } = useContext(PointCloudContext);\n\n if (toolName !== EPointCloudName.PointCloud) {\n return null;\n }\n\n const clearDetection = () => {\n setTopViewInstance(undefined);\n setSideViewInstance(undefined);\n setBackViewInstance(undefined);\n setMainViewInstance(undefined);\n };\n\n const updateDetection = () => {\n setGlobalPattern(EPointCloudPattern.Detection);\n clearDetection();\n };\n const updateSegmentation = () => {\n setGlobalPattern(EPointCloudPattern.Segmentation);\n clearDetection();\n };\n\n return (\n <span style={{ margin: '0 10px' }}>\n <Button\n type={globalPattern === EPointCloudPattern.Detection ? 'primary' : undefined}\n onClick={updateDetection}\n >\n 检测模式\n </Button>\n <Button\n type={globalPattern === EPointCloudPattern.Segmentation ? 'primary' : undefined}\n onClick={updateSegmentation}\n >\n 分割模式\n </Button>\n </span>\n );\n};\n\nconst mapStateToProps = (state: AppState) => ({\n toolName: state.annotation.stepList[state.annotation.step - 1]?.tool ?? '',\n});\n\nexport default connect(mapStateToProps, null, null, { context: LabelBeeContext })(SwitchPattern);\n"],"names":["useContext","PointCloudContext","EPointCloudName","EPointCloudPattern","Button","connect","LabelBeeContext"],"mappings":";;;;;;;;;;;;;AAiBA,MAAM,aAAA,GAAgB,CAAC,CAAE,QAAuB,CAAA,KAAA;AAC9C,EAAM,MAAA;AAAA,IACJ,aAAA;AAAA,IACA,gBAAA;AAAA,IACA,kBAAA;AAAA,IACA,mBAAA;AAAA,IACA,mBAAA;AAAA,IACA,mBAAA;AAAA,GAAA,GACEA,gBAAW,CAAAC,mCAAA,CAAA,CAAA;AAEf,EAAI,IAAA,QAAA,KAAaC,6BAAgB,UAAY,EAAA;AAC3C,IAAO,OAAA,IAAA,CAAA;AAAA,GAAA;AAGT,EAAA,MAAM,iBAAiB,MAAM;AAC3B,IAAmB,kBAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AACnB,IAAoB,mBAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AACpB,IAAoB,mBAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AACpB,IAAoB,mBAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AAAA,GAAA,CAAA;AAGtB,EAAA,MAAM,kBAAkB,MAAM;AAC5B,IAAA,gBAAA,CAAiBC,+BAAmB,CAAA,SAAA,CAAA,CAAA;AACpC,IAAA,cAAA,EAAA,CAAA;AAAA,GAAA,CAAA;AA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|
5
|
+
var icon_r = require('../../../../assets/annotation/common/icon_r.svg.js');
|
|
6
|
+
var icon_next = require('../../../../assets/annotation/common/icon_next.svg.js');
|
|
7
|
+
var icon_back = require('../../../../assets/annotation/common/icon_back.svg.js');
|
|
8
|
+
var icon_rA = require('../../../../assets/annotation/common/icon_rA.svg.js');
|
|
9
|
+
var icon_nextA = require('../../../../assets/annotation/common/icon_nextA.svg.js');
|
|
10
|
+
var icon_backA = require('../../../../assets/annotation/common/icon_backA.svg.js');
|
|
11
|
+
var icon_save = require('../../../../assets/annotation/common/icon_save.svg.js');
|
|
12
|
+
var icon_saveA = require('../../../../assets/annotation/common/icon_saveA.svg.js');
|
|
13
|
+
var index = require('../../../../constant/index.js');
|
|
14
|
+
var ToolType = require('../../../../data/enums/ToolType.js');
|
|
15
|
+
var actionCreators = require('../../../../store/annotation/actionCreators.js');
|
|
16
|
+
var reactI18next = require('react-i18next');
|
|
17
|
+
var lbAnnotation = require('@labelbee/lb-annotation');
|
|
18
|
+
|
|
19
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
20
|
+
|
|
21
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
|
+
|
|
23
|
+
const {EVideoToolName, EPointCloudName} = lbAnnotation.cTool;
|
|
24
|
+
var EColor;
|
|
25
|
+
(function(EColor2) {
|
|
26
|
+
EColor2["Hover"] = "#666fff";
|
|
27
|
+
EColor2["Normal"] = "#999999";
|
|
28
|
+
})(EColor || (EColor = {}));
|
|
29
|
+
const HeaderOption = (props) => {
|
|
30
|
+
const [toolHover, setToolHover] = React.useState("");
|
|
31
|
+
const {stepInfo} = props;
|
|
32
|
+
const dispatch = ctx.useDispatch();
|
|
33
|
+
const {
|
|
34
|
+
annotation: {toolInstance, onSave}
|
|
35
|
+
} = ctx.useSelector((state) => ({
|
|
36
|
+
annotation: state.annotation,
|
|
37
|
+
imgAttribute: state.imgAttribute
|
|
38
|
+
}));
|
|
39
|
+
const {t} = reactI18next.useTranslation();
|
|
40
|
+
const isTagTool = [ToolType.EToolName.Tag, EVideoToolName.VideoTagTool].includes(stepInfo == null ? void 0 : stepInfo.tool);
|
|
41
|
+
const isVideo = [EVideoToolName.VideoTagTool].includes(stepInfo == null ? void 0 : stepInfo.tool);
|
|
42
|
+
const isPointCloud = [EPointCloudName.PointCloud].includes(stepInfo == null ? void 0 : stepInfo.tool);
|
|
43
|
+
const isBegin = props.isBegin || isTagTool;
|
|
44
|
+
const updateRotate = () => {
|
|
45
|
+
if (stepInfo.dataSourceStep !== 0 && stepInfo.dataSourceStep !== void 0) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
toolInstance == null ? void 0 : toolInstance.updateRotate();
|
|
49
|
+
};
|
|
50
|
+
const revocation = React.useCallback(() => {
|
|
51
|
+
toolInstance == null ? void 0 : toolInstance.undo();
|
|
52
|
+
}, [toolInstance]);
|
|
53
|
+
const restore = React.useCallback(() => {
|
|
54
|
+
toolInstance == null ? void 0 : toolInstance.redo();
|
|
55
|
+
}, [toolInstance]);
|
|
56
|
+
let commonOptionList = [
|
|
57
|
+
{
|
|
58
|
+
toolName: "save",
|
|
59
|
+
title: "Save",
|
|
60
|
+
show: !!onSave,
|
|
61
|
+
commonSvg: icon_save,
|
|
62
|
+
selectedSvg: icon_saveA,
|
|
63
|
+
click: () => {
|
|
64
|
+
dispatch(actionCreators.ChangeSave);
|
|
65
|
+
},
|
|
66
|
+
style: {
|
|
67
|
+
fontSize: "12px",
|
|
68
|
+
color: !isBegin && toolHover === "save" ? EColor.Hover : EColor.Normal
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
toolName: "revocation",
|
|
73
|
+
title: "Undo",
|
|
74
|
+
show: true,
|
|
75
|
+
commonSvg: icon_back,
|
|
76
|
+
selectedSvg: icon_backA,
|
|
77
|
+
click: () => {
|
|
78
|
+
if (isTagTool) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
revocation();
|
|
82
|
+
},
|
|
83
|
+
style: {
|
|
84
|
+
opacity: isBegin === true ? 0.4 : 1,
|
|
85
|
+
fontSize: "12px",
|
|
86
|
+
color: !isBegin && toolHover === "revocation" ? EColor.Hover : EColor.Normal
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
toolName: "restore",
|
|
91
|
+
title: "Redo",
|
|
92
|
+
show: true,
|
|
93
|
+
commonSvg: icon_next,
|
|
94
|
+
selectedSvg: icon_nextA,
|
|
95
|
+
click: () => {
|
|
96
|
+
if (isTagTool) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
restore();
|
|
100
|
+
},
|
|
101
|
+
style: {
|
|
102
|
+
opacity: isBegin === true ? 0.4 : 1,
|
|
103
|
+
fontSize: "12px",
|
|
104
|
+
color: !isBegin && toolHover === "restore" ? EColor.Hover : EColor.Normal
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
toolName: "rotate",
|
|
109
|
+
title: "Rotate",
|
|
110
|
+
show: true,
|
|
111
|
+
selectedSvg: icon_rA,
|
|
112
|
+
commonSvg: icon_r,
|
|
113
|
+
click: () => {
|
|
114
|
+
if (isVideo) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
updateRotate();
|
|
118
|
+
},
|
|
119
|
+
style: {
|
|
120
|
+
opacity: isVideo === true ? 0.4 : 1,
|
|
121
|
+
fontSize: "12px",
|
|
122
|
+
color: !isBegin && toolHover === "rotate" ? EColor.Hover : EColor.Normal
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
];
|
|
126
|
+
if (isPointCloud) {
|
|
127
|
+
commonOptionList = commonOptionList.slice(0, 3);
|
|
128
|
+
}
|
|
129
|
+
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
130
|
+
className: `${index.prefix}-header__hotKey`
|
|
131
|
+
}, commonOptionList.map((info) => {
|
|
132
|
+
return info.show && /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
133
|
+
key: info.toolName,
|
|
134
|
+
className: "item",
|
|
135
|
+
onMouseEnter: () => setToolHover(info.toolName),
|
|
136
|
+
onMouseLeave: () => setToolHover("")
|
|
137
|
+
}, /* @__PURE__ */ React__default["default"].createElement("a", {
|
|
138
|
+
className: "item",
|
|
139
|
+
onClick: info.click
|
|
140
|
+
}, /* @__PURE__ */ React__default["default"].createElement("img", {
|
|
141
|
+
className: "singleTool",
|
|
142
|
+
src: toolHover === info.toolName ? info.selectedSvg : info.commonSvg,
|
|
143
|
+
style: info.style
|
|
144
|
+
}), /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
145
|
+
style: info.style
|
|
146
|
+
}, t(info.title))));
|
|
147
|
+
}));
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
module.exports = HeaderOption;
|
|
151
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/views/MainView/toolHeader/headerOption/index.tsx"],"sourcesContent":["import React, { useState, useCallback } from 'react';\nimport { useDispatch, useSelector } from '@/store/ctx';\nimport { AppState } from '@/store';\nimport rotateSvg from '@/assets/annotation/common/icon_r.svg';\nimport restoreSvg from '@/assets/annotation/common/icon_next.svg';\nimport revocationSvg from '@/assets/annotation/common/icon_back.svg';\nimport rotateHighlightSvg from '@/assets/annotation/common/icon_rA.svg';\nimport restoreHighlightSvg from '@/assets/annotation/common/icon_nextA.svg';\nimport revocationHighlightSvg from '@/assets/annotation/common/icon_backA.svg';\nimport saveSvg from '@/assets/annotation/common/icon_save.svg';\nimport saveLightSvg from '@/assets/annotation/common/icon_saveA.svg';\nimport { prefix } from '@/constant';\nimport { EToolName } from '@/data/enums/ToolType';\nimport { ChangeSave } from '@/store/annotation/actionCreators';\nimport { IStepInfo } from '@/types/step';\nimport { useTranslation } from 'react-i18next';\nimport { cTool } from '@labelbee/lb-annotation';\nconst { EVideoToolName, EPointCloudName } = cTool;\n\ninterface IProps {\n isBegin?: boolean;\n stepInfo: IStepInfo;\n}\n\nenum EColor {\n Hover = '#666fff',\n Normal = '#999999',\n}\n\nconst HeaderOption: React.FC<IProps> = (props) => {\n const [toolHover, setToolHover] = useState('');\n const { stepInfo } = props;\n const dispatch = useDispatch();\n const {\n annotation: { toolInstance, onSave },\n } = useSelector((state: AppState) => ({\n annotation: state.annotation,\n imgAttribute: state.imgAttribute,\n }));\n const { t } = useTranslation();\n\n const isTagTool = [EToolName.Tag, EVideoToolName.VideoTagTool].includes(stepInfo?.tool as any);\n const isVideo = [EVideoToolName.VideoTagTool].includes(stepInfo?.tool as any);\n const isPointCloud = [EPointCloudName.PointCloud].includes(stepInfo?.tool as any);\n\n const isBegin = props.isBegin || isTagTool;\n\n const updateRotate = () => {\n /**\n * 1. 非第一步无法旋转\n * 2. 单步骤不存在 dataSourceStep\n */\n if (stepInfo.dataSourceStep !== 0 && stepInfo.dataSourceStep !== undefined) {\n return;\n }\n\n toolInstance?.updateRotate();\n };\n\n const revocation = useCallback(() => {\n toolInstance?.undo();\n }, [toolInstance]);\n\n const restore = useCallback(() => {\n toolInstance?.redo();\n }, [toolInstance]);\n\n let commonOptionList: any = [\n {\n toolName: 'save',\n title: 'Save',\n show: !!onSave,\n commonSvg: saveSvg,\n selectedSvg: saveLightSvg,\n click: () => {\n dispatch(ChangeSave);\n },\n style: {\n fontSize: '12px',\n color: !isBegin && toolHover === 'save' ? EColor.Hover : EColor.Normal,\n },\n },\n {\n toolName: 'revocation',\n title: 'Undo',\n show: true,\n commonSvg: revocationSvg,\n selectedSvg: revocationHighlightSvg,\n click: () => {\n if (isTagTool) {\n return;\n }\n\n revocation();\n },\n style: {\n opacity: isBegin === true ? 0.4 : 1,\n fontSize: '12px',\n color: !isBegin && toolHover === 'revocation' ? EColor.Hover : EColor.Normal,\n },\n },\n {\n toolName: 'restore',\n title: 'Redo',\n show: true,\n commonSvg: restoreSvg,\n selectedSvg: restoreHighlightSvg,\n click: () => {\n if (isTagTool) {\n return;\n }\n\n restore();\n },\n style: {\n opacity: isBegin === true ? 0.4 : 1,\n fontSize: '12px',\n color: !isBegin && toolHover === 'restore' ? EColor.Hover : EColor.Normal,\n },\n },\n {\n toolName: 'rotate',\n title: 'Rotate',\n show: true,\n selectedSvg: rotateHighlightSvg,\n commonSvg: rotateSvg,\n click: () => {\n if (isVideo) {\n // VideoTool don't need to rotate\n return;\n }\n\n updateRotate();\n },\n style: {\n opacity: isVideo === true ? 0.4 : 1,\n fontSize: '12px',\n color: !isBegin && toolHover === 'rotate' ? EColor.Hover : EColor.Normal,\n },\n },\n ];\n\n // PointCloudTool temporarily removes \"restore\" & \"redo\"\n if (isPointCloud) {\n commonOptionList = commonOptionList.slice(0, 3);\n }\n\n return (\n <div className={`${prefix}-header__hotKey`}>\n {commonOptionList.map((info: any) => {\n return (\n info.show && (\n <div\n key={info.toolName}\n className='item'\n onMouseEnter={() => setToolHover(info.toolName)}\n onMouseLeave={() => setToolHover('')}\n >\n <a className='item' onClick={info.click}>\n <img\n className='singleTool'\n src={toolHover === info.toolName ? info.selectedSvg : info.commonSvg}\n style={info.style}\n />\n <div style={info.style}>{t(info.title)}</div>\n </a>\n </div>\n )\n );\n })}\n </div>\n );\n};\n\nexport default HeaderOption;\n"],"names":["cTool","useState","useDispatch","useSelector","useTranslation","EToolName","useCallback","saveSvg","saveLightSvg","ChangeSave","revocationSvg","revocationHighlightSvg","restoreSvg","restoreHighlightSvg","rotateHighlightSvg","rotateSvg","prefix","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiBA,MAAM,CAAE,gBAAgB,eAAoB,CAAA,GAAAA,kBAAA,CAAA;AAO5C,IAAK,MAAA,CAAA;AAAL,CAAA,SAAK,OAAL,EAAA;AACE,EAAQ,OAAA,CAAA,OAAA,CAAA,GAAA,SAAA,CAAA;AACR,EAAS,OAAA,CAAA,QAAA,CAAA,GAAA,SAAA,CAAA;AAAA,CAFN,EAAA,MAAA,KAAA,M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AA;AAMxE,EAAA,IAAI,YAAc,EAAA;AAChB,IAAmB,gBAAA,GAAA,gBAAA,CAAiB,MAAM,CAAG,EAAA,CAAA,CAAA,CAAA;AAAA,GAAA;AAG/C,EAAA,+DACG,KAAD,EAAA;AAAA,IAAK,WAAW,CAAG,EAAAC,YAAA,CAAA,eAAA,CAAA;AAAA,GAChB,EAAA,gBAAA,CAAiB,GAAI,CAAA,CAAC,IAAc,KAAA;AACnC,IACE,OAAA,IAAA,CAAK,IACH,oBAAAC,yBAAA,CAAA,aAAA,CAAC,KAAD,EAAA;AAAA,MACE,KAAK,IAAK,CAAA,QAAA;AAAA,MACV,SAAU,EAAA,MAAA;AAAA,MACV,YAAA,EAAc,MAAM,YAAA,CAAa,IAAK,CAAA,QAAA,CAAA;AAAA,MACtC,YAAA,EAAc,MAAM,YAAa,CAAA,EAAA,CAAA;AAAA,KAAA,0DAEhC,GAAD,EAAA;AAAA,MAAG,SAAU,EAAA,MAAA;AAAA,MAAO,SAAS,IAAK,CAAA,KAAA;AAAA,KAAA,0DAC/B,KAAD,EAAA;AAAA,MACE,SAAU,EAAA,YAAA;AAAA,MACV,KAAK,SAAc,KAAA,IAAA,CAAK,QAAW,GAAA,IAAA,CAAK,cAAc,IAAK,CAAA,SAAA;AAAA,MAC3D,OAAO,IAAK,CAAA,KAAA;AAAA,KAAA,CAAA,0DAEb,KAAD,EAAA;AAAA,MAAK,OAAO,IAAK,CAAA,KAAA;AAAA,KAAA,EAAQ,EAAE,IAAK,CAAA,KAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,GAAA,CAAA,CAAA,CAAA;AAAA;;;;"}
|
|
@@ -1 +1,180 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index$2 = require('../../../constant/index.js');
|
|
4
|
+
var useSize = require('../../../hooks/useSize.js');
|
|
5
|
+
var actionCreators = require('../../../store/annotation/actionCreators.js');
|
|
6
|
+
var icons = require('@ant-design/icons');
|
|
7
|
+
var lbUtils = require('@labelbee/lb-utils');
|
|
8
|
+
var es = require('antd/es');
|
|
9
|
+
var classNames = require('classnames');
|
|
10
|
+
var _ = require('lodash');
|
|
11
|
+
var React = require('react');
|
|
12
|
+
var reactI18next = require('react-i18next');
|
|
13
|
+
var reactRedux = require('react-redux');
|
|
14
|
+
var ctx = require('../../../store/ctx.js');
|
|
15
|
+
var index$5 = require('../../../index.js');
|
|
16
|
+
var index$3 = require('./ExportData/index.js');
|
|
17
|
+
var index$4 = require('./headerOption/index.js');
|
|
18
|
+
var index = require('./StepSwitch/index.js');
|
|
19
|
+
var index$1 = require('../../../components/predictTracking/predictTrackingIcon/index.js');
|
|
20
|
+
|
|
21
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
22
|
+
|
|
23
|
+
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
24
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
25
|
+
|
|
26
|
+
const NextButton = ({
|
|
27
|
+
disabled,
|
|
28
|
+
imgList
|
|
29
|
+
}) => {
|
|
30
|
+
const {t} = reactI18next.useTranslation();
|
|
31
|
+
const toNext = () => {
|
|
32
|
+
const {dispatch, getState} = index$5.store;
|
|
33
|
+
if (imgList[0]) {
|
|
34
|
+
dispatch(actionCreators.ToNextStep(0));
|
|
35
|
+
} else {
|
|
36
|
+
actionCreators.loadImgList(dispatch, getState, 0).then((isSuccess) => {
|
|
37
|
+
if (isSuccess) {
|
|
38
|
+
dispatch(actionCreators.ToNextStep(0));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
return /* @__PURE__ */ React__default["default"].createElement(es.Button, {
|
|
44
|
+
type: "primary",
|
|
45
|
+
style: {
|
|
46
|
+
marginLeft: 10
|
|
47
|
+
},
|
|
48
|
+
onClick: toNext,
|
|
49
|
+
disabled
|
|
50
|
+
}, t("NextStep"));
|
|
51
|
+
};
|
|
52
|
+
const NextStep = ({step, stepProgress, stepList, imgList}) => {
|
|
53
|
+
var _a;
|
|
54
|
+
const {t} = reactI18next.useTranslation();
|
|
55
|
+
const lastStep = (_a = _.last(stepList)) == null ? void 0 : _a.step;
|
|
56
|
+
if (stepList.length < 2 || step === lastStep) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
const disabled = stepProgress < 1;
|
|
60
|
+
if (disabled) {
|
|
61
|
+
return /* @__PURE__ */ React__default["default"].createElement(es.Tooltip, {
|
|
62
|
+
title: t("StepNotFinishedNotify")
|
|
63
|
+
}, /* @__PURE__ */ React__default["default"].createElement("span", null, /* @__PURE__ */ React__default["default"].createElement(NextButton, {
|
|
64
|
+
disabled,
|
|
65
|
+
imgList
|
|
66
|
+
})));
|
|
67
|
+
}
|
|
68
|
+
return /* @__PURE__ */ React__default["default"].createElement(NextButton, {
|
|
69
|
+
disabled,
|
|
70
|
+
imgList
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
const ToolHeader = ({
|
|
74
|
+
goBack,
|
|
75
|
+
exportData,
|
|
76
|
+
header,
|
|
77
|
+
headerName,
|
|
78
|
+
imgList,
|
|
79
|
+
stepProgress,
|
|
80
|
+
stepInfo,
|
|
81
|
+
stepList,
|
|
82
|
+
step,
|
|
83
|
+
annotationEngine
|
|
84
|
+
}) => {
|
|
85
|
+
var _a;
|
|
86
|
+
const dispatch = ctx.useDispatch();
|
|
87
|
+
const [, forceUpdate] = React.useReducer((x) => x + 1, 0);
|
|
88
|
+
const ref = React.useRef(null);
|
|
89
|
+
const size = useSize(ref);
|
|
90
|
+
const currentOption = /* @__PURE__ */ React__default["default"].createElement(index$3, {
|
|
91
|
+
exportData
|
|
92
|
+
});
|
|
93
|
+
const closeAnnotation = () => {
|
|
94
|
+
dispatch(actionCreators.ToSubmitFileData(index$2.ESubmitType.Quit));
|
|
95
|
+
if (goBack) {
|
|
96
|
+
goBack(imgList);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
const changeLanguage = (lang) => {
|
|
100
|
+
lbUtils.i18n.changeLanguage(lang);
|
|
101
|
+
annotationEngine == null ? void 0 : annotationEngine.setLang(lang);
|
|
102
|
+
forceUpdate();
|
|
103
|
+
};
|
|
104
|
+
const curLang = lbUtils.i18n.language;
|
|
105
|
+
const width = (_a = size == null ? void 0 : size.width) != null ? _a : window.innerWidth;
|
|
106
|
+
const backNode = /* @__PURE__ */ React__default["default"].createElement(icons.LeftOutlined, {
|
|
107
|
+
className: `${index$2.prefix}-header__icon`,
|
|
108
|
+
onClick: closeAnnotation
|
|
109
|
+
});
|
|
110
|
+
const headerNameNode = headerName ? /* @__PURE__ */ React__default["default"].createElement("span", {
|
|
111
|
+
className: `${index$2.prefix}-header__name`
|
|
112
|
+
}, headerName) : "";
|
|
113
|
+
const stepListNode = stepList.length > 1 && /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(index, {
|
|
114
|
+
stepProgress
|
|
115
|
+
}), /* @__PURE__ */ React__default["default"].createElement(NextStep, {
|
|
116
|
+
step,
|
|
117
|
+
stepProgress,
|
|
118
|
+
stepList,
|
|
119
|
+
imgList
|
|
120
|
+
}));
|
|
121
|
+
const headerOptionNode = /* @__PURE__ */ React__default["default"].createElement(index$4, {
|
|
122
|
+
stepInfo
|
|
123
|
+
});
|
|
124
|
+
const langNode = /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
125
|
+
className: `${index$2.prefix}-header__lang`
|
|
126
|
+
}, /* @__PURE__ */ React__default["default"].createElement("span", {
|
|
127
|
+
className: `${index$2.prefix}-langCN ${curLang === "cn" ? "active" : ""}`,
|
|
128
|
+
onClick: () => changeLanguage("cn")
|
|
129
|
+
}, "\u4E2D\u6587"), ` / `, /* @__PURE__ */ React__default["default"].createElement("span", {
|
|
130
|
+
className: `${index$2.prefix}-langEN ${curLang === "en" ? "active" : ""}`,
|
|
131
|
+
onClick: () => changeLanguage("en")
|
|
132
|
+
}, "En"));
|
|
133
|
+
const rightActions = /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(index$1, null), langNode);
|
|
134
|
+
if (header) {
|
|
135
|
+
if (typeof header === "function") {
|
|
136
|
+
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
137
|
+
className: classNames__default["default"](`${index$2.prefix}-header`),
|
|
138
|
+
ref
|
|
139
|
+
}, /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
140
|
+
className: `${index$2.prefix}-header__title`
|
|
141
|
+
}, header({
|
|
142
|
+
backNode,
|
|
143
|
+
headerNameNode,
|
|
144
|
+
stepListNode,
|
|
145
|
+
headerOptionNode,
|
|
146
|
+
langNode: rightActions
|
|
147
|
+
})));
|
|
148
|
+
} else {
|
|
149
|
+
return header;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
153
|
+
className: classNames__default["default"](`${index$2.prefix}-header`),
|
|
154
|
+
ref
|
|
155
|
+
}, /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
156
|
+
className: `${index$2.prefix}-header__title`
|
|
157
|
+
}, backNode, headerNameNode, stepListNode, currentOption, /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
158
|
+
id: "operationNode",
|
|
159
|
+
className: `${index$2.prefix}-header__operationNode`,
|
|
160
|
+
style: {left: width / 2 - 174 / 2}
|
|
161
|
+
}, headerOptionNode), /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
162
|
+
className: `${index$2.prefix}-header__titlePlacement`
|
|
163
|
+
}), rightActions));
|
|
164
|
+
};
|
|
165
|
+
const mapStateToProps = (state) => {
|
|
166
|
+
var _a;
|
|
167
|
+
return {
|
|
168
|
+
imgList: state.annotation.imgList,
|
|
169
|
+
annotationEngine: state.annotation.annotationEngine,
|
|
170
|
+
stepProgress: state.annotation.stepProgress,
|
|
171
|
+
toolName: (_a = state.annotation.stepList[state.annotation.step - 1]) == null ? void 0 : _a.tool,
|
|
172
|
+
stepList: state.annotation.stepList,
|
|
173
|
+
stepInfo: state.annotation.stepList[state.annotation.step - 1],
|
|
174
|
+
step: state.annotation.step
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
var ToolHeader$1 = reactRedux.connect(mapStateToProps, null, null, {context: ctx.LabelBeeContext})(ToolHeader);
|
|
178
|
+
|
|
179
|
+
module.exports = ToolHeader$1;
|
|
180
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/views/MainView/toolHeader/index.tsx"],"sourcesContent":["import { ESubmitType, prefix } from '@/constant';\nimport { EToolName } from '@/data/enums/ToolType';\nimport useSize from '@/hooks/useSize';\nimport { AppState } from '@/store';\nimport { loadImgList, ToNextStep, ToSubmitFileData } from '@/store/annotation/actionCreators';\nimport { IFileItem } from '@/types/data';\nimport { Header } from '@/types/main';\nimport { IStepInfo } from '@/types/step';\nimport { LeftOutlined } from '@ant-design/icons';\nimport { AnnotationEngine } from '@labelbee/lb-annotation';\nimport { i18n } from '@labelbee/lb-utils';\nimport { Button, Tooltip } from 'antd/es';\nimport classNames from 'classnames';\nimport { last } from 'lodash';\nimport React, { useReducer, useRef } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { connect } from 'react-redux';\nimport { useDispatch, LabelBeeContext } from '@/store/ctx';\nimport { store } from '@/index';\nimport ExportData from './ExportData';\nimport HeaderOption from './headerOption';\nimport StepSwitch from './StepSwitch';\nimport PredictTrackingIcon from '@/components/predictTracking/predictTrackingIcon';\n\ninterface INextStep {\n stepProgress: number;\n stepList: IStepInfo[];\n step: number; // 当前步骤\n imgList: IFileItem[];\n}\n\nconst NextButton: React.FC<{ disabled: boolean; imgList: IFileItem[] }> = ({\n disabled,\n imgList,\n}) => {\n const { t } = useTranslation();\n\n const toNext = () => {\n const { dispatch, getState } = store;\n // 点击下一步跳转到第一页 第一页没有图片的话则需要先加载图片\n if (imgList[0]) {\n dispatch(ToNextStep(0) as any);\n } else {\n loadImgList(dispatch, getState, 0).then((isSuccess) => {\n if (isSuccess) {\n dispatch(ToNextStep(0) as any);\n }\n });\n }\n };\n\n return (\n <Button\n type='primary'\n style={{\n marginLeft: 10,\n }}\n onClick={toNext}\n disabled={disabled}\n >\n {t('NextStep')}\n </Button>\n );\n};\n\nconst NextStep: React.FC<INextStep> = ({ step, stepProgress, stepList, imgList }) => {\n const { t } = useTranslation();\n // 最后一步不显示下一步按钮\n const lastStep = last(stepList)?.step;\n\n if (stepList.length < 2 || step === lastStep) {\n return null;\n }\n\n const disabled = stepProgress < 1;\n\n if (disabled) {\n return (\n <Tooltip title={t('StepNotFinishedNotify')}>\n <span>\n <NextButton disabled={disabled} imgList={imgList} />\n </span>\n </Tooltip>\n );\n }\n\n return <NextButton disabled={disabled} imgList={imgList} />;\n};\n\ninterface IToolHeaderProps {\n goBack?: (imgList?: IFileItem[]) => void;\n exportData?: (data: any[]) => void;\n header?: Header;\n headerName?: string;\n imgList: IFileItem[];\n annotationEngine: AnnotationEngine;\n stepProgress: number;\n toolName: EToolName;\n stepInfo: IStepInfo;\n stepList: IStepInfo[];\n step: number;\n}\n\nconst ToolHeader: React.FC<IToolHeaderProps> = ({\n goBack,\n exportData,\n header,\n headerName,\n imgList,\n stepProgress,\n stepInfo,\n stepList,\n step,\n annotationEngine,\n}) => {\n const dispatch = useDispatch();\n const [, forceUpdate] = useReducer((x) => x + 1, 0);\n const ref = useRef(null);\n\n const size = useSize(ref);\n\n // render 数据展示\n const currentOption = <ExportData exportData={exportData} />;\n\n const closeAnnotation = () => {\n dispatch(ToSubmitFileData(ESubmitType.Quit));\n\n if (goBack) {\n goBack(imgList);\n }\n };\n\n const changeLanguage = (lang: 'en' | 'cn') => {\n i18n.changeLanguage(lang);\n annotationEngine?.setLang(lang);\n forceUpdate();\n };\n\n const curLang = i18n.language;\n\n const width = size?.width ?? window.innerWidth;\n\n const backNode = <LeftOutlined className={`${prefix}-header__icon`} onClick={closeAnnotation} />;\n\n const headerNameNode = headerName ? (\n <span className={`${prefix}-header__name`}>{headerName}</span>\n ) : (\n ''\n );\n\n const stepListNode = stepList.length > 1 && (\n <>\n <StepSwitch stepProgress={stepProgress} />\n <NextStep step={step} stepProgress={stepProgress} stepList={stepList} imgList={imgList} />\n </>\n );\n\n const headerOptionNode = <HeaderOption stepInfo={stepInfo} />;\n\n const langNode = (\n <div className={`${prefix}-header__lang`}>\n <span\n className={`${prefix}-langCN ${curLang === 'cn' ? 'active' : ''}`}\n onClick={() => changeLanguage('cn')}\n >\n 中文\n </span>\n {` / `}\n <span\n className={`${prefix}-langEN ${curLang === 'en' ? 'active' : ''}`}\n onClick={() => changeLanguage('en')}\n >\n En\n </span>\n </div>\n );\n\n const rightActions = (\n <>\n <PredictTrackingIcon />\n {langNode}\n </>\n );\n\n if (header) {\n if (typeof header === 'function') {\n return (\n <div className={classNames(`${prefix}-header`)} ref={ref}>\n <div className={`${prefix}-header__title`}>\n {header({\n backNode,\n headerNameNode,\n stepListNode,\n headerOptionNode,\n langNode: rightActions,\n })}\n </div>\n </div>\n );\n } else {\n return header;\n }\n }\n\n return (\n <div className={classNames(`${prefix}-header`)} ref={ref}>\n <div className={`${prefix}-header__title`}>\n {backNode}\n {headerNameNode}\n {stepListNode}\n {currentOption}\n <div\n id='operationNode'\n className={`${prefix}-header__operationNode`}\n style={{ left: width / 2 - 174 / 2 }}\n >\n {headerOptionNode}\n </div>\n <div className={`${prefix}-header__titlePlacement`} />\n {rightActions}\n </div>\n </div>\n );\n};\n\nconst mapStateToProps = (state: AppState) => ({\n imgList: state.annotation.imgList,\n annotationEngine: state.annotation.annotationEngine,\n stepProgress: state.annotation.stepProgress,\n toolName: state.annotation.stepList[state.annotation.step - 1]?.tool,\n stepList: state.annotation.stepList,\n stepInfo: state.annotation.stepList[state.annotation.step - 1],\n step: state.annotation.step,\n});\n\nexport default connect(mapStateToProps, null, null, { context: LabelBeeContext })(ToolHeader);\n"],"names":["useTranslation","store","ToNextStep","loadImgList","Button","last","Tooltip","React","useDispatch","useReducer","useRef","ExportData","ToSubmitFileData","ESubmitType","i18n","LeftOutlined","prefix","StepSwitch","HeaderOption","PredictTrackingIcon","classNames","connect","LabelBeeContext"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAM,aAAoE,CAAC;AAAA,EACzE,QAAA;AAAA,EACA,OAAA;AAAA,CACI,KAAA;AACJ,EAAA,MAAM,CAAE,CAAM,CAAA,GAAAA,2BAAA,EAAA,CAAA;AAEd,EAAA,MAAM,SAAS,MAAM;AACnB,IAAM,MAAA,CAAE,UAAU,QAAa,CAAA,GAAAC,aAAA,CAAA;AAE/B,IAAA,IAAI,QAAQ,CAAI,CAAA,EAAA;AACd,MAAA,QAAA,CAASC,yBAAW,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,KACf,MAAA;AACL,MAAAC,0BAAA,CAAY,QAAU,EAAA,QAAA,EAAU,CAAG,CAAA,CAAA,IAAA,CAAK,CAAC,SAAc,KAAA;AACrD,QAAA,IAAI,SAAW,EAAA;AACb,UAAA,QAAA,CAASD,yBAAW,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,SAAA;AAAA,OAAA,CAAA,CAAA;AAAA,KAAA;AAAA,GAAA,CAAA;AAM5B,EAAA,+DACGE,SAAD,EAAA;AAAA,IACE,IAAK,EAAA,SAAA;AAAA,IACL,KAAO,EAAA;AAAA,MACL,UAAY,EAAA,EAAA;AAAA,KAAA;AAAA,IAEd,OAAS,EAAA,MAAA;AAAA,IACT,QAAA;AAAA,GAAA,EAEC,CAAE,CAAA,UAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA;AAKT,MAAM,WAAgC,CAAC,CAAE,IAAM,EAAA,YAAA,EAAc,UAAU,OAAc,CAAA,KAAA;AAjErF,EAAA,IAAA,EAAA,CAAA;AAkEE,EAAA,MAAM,CAAE,CAAM,CAAA,GAAAJ,2BA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A,IAC/B,QAAA,EAAU,YAAM,UAAW,CAAA,QAAA,CAAS,MAAM,UAAW,CAAA,IAAA,GAAO,OAAlD,IAAsD,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA;AAAA,IAChE,QAAA,EAAU,MAAM,UAAW,CAAA,QAAA;AAAA,IAC3B,UAAU,KAAM,CAAA,UAAA,CAAW,QAAS,CAAA,KAAA,CAAM,WAAW,IAAO,GAAA,CAAA,CAAA;AAAA,IAC5D,IAAA,EAAM,MAAM,UAAW,CAAA,IAAA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAGzB,mBAAeK,mBAAQ,eAAiB,EAAA,IAAA,EAAM,IAAM,EAAA,CAAE,SAASC,mBAAmB,CAAA,CAAA,CAAA,UAAA,CAAA;;;;"}
|
package/es/App.js
CHANGED
|
@@ -1 +1,138 @@
|
|
|
1
|
-
import
|
|
1
|
+
import MainView from './views/MainView/index.js';
|
|
2
|
+
import { i18n } from '@labelbee/lb-utils';
|
|
3
|
+
import React, { useState, useEffect } from 'react';
|
|
4
|
+
import { connect } from 'react-redux';
|
|
5
|
+
import { store } from './index.js';
|
|
6
|
+
import { LabelBeeContext } from './store/ctx.js';
|
|
7
|
+
import { ANNOTATION_ACTIONS } from './store/Actions.js';
|
|
8
|
+
import { InitTaskData, InitAnnotationState, UpdateInjectFunc, loadImgList } from './store/annotation/actionCreators.js';
|
|
9
|
+
import { LoadFileAndFileData } from './store/annotation/reducer.js';
|
|
10
|
+
import { ConfigProvider } from 'antd/es';
|
|
11
|
+
import zhCN from 'antd/es/locale/zh_CN';
|
|
12
|
+
import enUS from 'antd/es/locale/en_US';
|
|
13
|
+
|
|
14
|
+
var __defProp = Object.defineProperty;
|
|
15
|
+
var __defProps = Object.defineProperties;
|
|
16
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
17
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
18
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
19
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
20
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
|
|
21
|
+
var __spreadValues = (a, b) => {
|
|
22
|
+
for (var prop in b || (b = {}))
|
|
23
|
+
if (__hasOwnProp.call(b, prop))
|
|
24
|
+
__defNormalProp(a, prop, b[prop]);
|
|
25
|
+
if (__getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
27
|
+
if (__propIsEnum.call(b, prop))
|
|
28
|
+
__defNormalProp(a, prop, b[prop]);
|
|
29
|
+
}
|
|
30
|
+
return a;
|
|
31
|
+
};
|
|
32
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
33
|
+
const App = (props) => {
|
|
34
|
+
const [_, forceRender] = useState(0);
|
|
35
|
+
const {
|
|
36
|
+
imgList,
|
|
37
|
+
step = 1,
|
|
38
|
+
stepList,
|
|
39
|
+
onSubmit,
|
|
40
|
+
onSave,
|
|
41
|
+
onPageChange,
|
|
42
|
+
onStepChange,
|
|
43
|
+
initialIndex = 0,
|
|
44
|
+
toolInstance,
|
|
45
|
+
setToolInstance,
|
|
46
|
+
getFileData,
|
|
47
|
+
pageSize = 10,
|
|
48
|
+
loadFileList,
|
|
49
|
+
defaultLang = "cn",
|
|
50
|
+
skipBeforePageTurning,
|
|
51
|
+
beforeRotate,
|
|
52
|
+
checkMode = false,
|
|
53
|
+
intelligentFit = true
|
|
54
|
+
} = props;
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
store.dispatch(InitTaskData({
|
|
57
|
+
onSubmit,
|
|
58
|
+
stepList,
|
|
59
|
+
step,
|
|
60
|
+
getFileData,
|
|
61
|
+
pageSize,
|
|
62
|
+
loadFileList,
|
|
63
|
+
onSave,
|
|
64
|
+
onPageChange,
|
|
65
|
+
onStepChange,
|
|
66
|
+
skipBeforePageTurning,
|
|
67
|
+
beforeRotate,
|
|
68
|
+
checkMode
|
|
69
|
+
}));
|
|
70
|
+
initImgList();
|
|
71
|
+
i18n.changeLanguage(defaultLang);
|
|
72
|
+
const i18nLanguageChangedFunc = () => {
|
|
73
|
+
forceRender((v) => v + 1);
|
|
74
|
+
};
|
|
75
|
+
i18n.on("languageChanged", i18nLanguageChangedFunc);
|
|
76
|
+
return () => {
|
|
77
|
+
i18n.off("languageChanged", i18nLanguageChangedFunc);
|
|
78
|
+
InitAnnotationState(store.dispatch);
|
|
79
|
+
};
|
|
80
|
+
}, []);
|
|
81
|
+
useEffect(() => {
|
|
82
|
+
store.dispatch(UpdateInjectFunc({
|
|
83
|
+
onSubmit,
|
|
84
|
+
stepList,
|
|
85
|
+
getFileData,
|
|
86
|
+
pageSize,
|
|
87
|
+
loadFileList,
|
|
88
|
+
onSave,
|
|
89
|
+
onPageChange,
|
|
90
|
+
onStepChange,
|
|
91
|
+
beforeRotate
|
|
92
|
+
}));
|
|
93
|
+
i18n.changeLanguage(defaultLang);
|
|
94
|
+
}, [
|
|
95
|
+
onSubmit,
|
|
96
|
+
stepList,
|
|
97
|
+
getFileData,
|
|
98
|
+
pageSize,
|
|
99
|
+
loadFileList,
|
|
100
|
+
onSave,
|
|
101
|
+
onPageChange,
|
|
102
|
+
onStepChange,
|
|
103
|
+
defaultLang,
|
|
104
|
+
beforeRotate
|
|
105
|
+
]);
|
|
106
|
+
useEffect(() => {
|
|
107
|
+
setToolInstance == null ? void 0 : setToolInstance(toolInstance);
|
|
108
|
+
}, [toolInstance]);
|
|
109
|
+
const initImgList = () => {
|
|
110
|
+
if (loadFileList) {
|
|
111
|
+
loadImgList(store.dispatch, store.getState, initialIndex, true).then((isSuccess) => {
|
|
112
|
+
if (isSuccess) {
|
|
113
|
+
store.dispatch(LoadFileAndFileData(initialIndex));
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
} else if (imgList && imgList.length > 0) {
|
|
117
|
+
store.dispatch({
|
|
118
|
+
type: ANNOTATION_ACTIONS.UPDATE_IMG_LIST,
|
|
119
|
+
payload: {
|
|
120
|
+
imgList
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
store.dispatch(LoadFileAndFileData(initialIndex));
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(ConfigProvider, {
|
|
127
|
+
locale: i18n.language === "en" ? enUS : zhCN
|
|
128
|
+
}, /* @__PURE__ */ React.createElement(MainView, __spreadProps(__spreadValues({}, props), {
|
|
129
|
+
intelligentFit
|
|
130
|
+
}))));
|
|
131
|
+
};
|
|
132
|
+
const mapStateToProps = (state) => ({
|
|
133
|
+
toolInstance: state.annotation.toolInstance
|
|
134
|
+
});
|
|
135
|
+
var App$1 = connect(mapStateToProps, null, null, {context: LabelBeeContext})(App);
|
|
136
|
+
|
|
137
|
+
export { App$1 as default };
|
|
138
|
+
//# sourceMappingURL=App.js.map
|
package/es/App.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.js","sources":["../src/App.tsx"],"sourcesContent":["import MainView from '@/views/MainView';\nimport { i18n } from '@labelbee/lb-utils';\nimport React, { useEffect, useState } from 'react';\nimport { connect } from 'react-redux';\nimport { store } from '.';\nimport { LabelBeeContext } from '@/store/ctx';\nimport { AppState } from './store';\nimport { ANNOTATION_ACTIONS } from './store/Actions';\nimport {\n InitAnnotationState,\n InitTaskData,\n loadImgList,\n UpdateInjectFunc,\n} from './store/annotation/actionCreators';\nimport { LoadFileAndFileData } from './store/annotation/reducer';\nimport { ToolInstance } from './store/annotation/types';\nimport {\n GetFileData,\n IFileItem,\n LoadFileList,\n OnPageChange,\n OnSave,\n OnStepChange,\n OnSubmit,\n} from './types/data';\nimport { Header, RenderFooter, Sider } from './types/main';\nimport { IStepInfo } from './types/step';\nimport { ConfigProvider } from 'antd/es';\nimport zhCN from 'antd/es/locale/zh_CN';\nimport enUS from 'antd/es/locale/en_US';\n\ninterface IAnnotationStyle {\n strokeColor: string;\n fillColor: string;\n textColor: string;\n toolColor: any;\n}\n\nexport interface AppProps {\n exportData?: (data: any[]) => void;\n goBack?: () => void;\n imgList?: IFileItem[];\n config: string;\n stepList: IStepInfo[];\n step: number;\n onSubmit?: OnSubmit;\n onSave?: OnSave;\n onPageChange?: OnPageChange;\n onStepChange?: OnStepChange;\n getFileData?: GetFileData;\n pageSize: number;\n loadFileList?: LoadFileList;\n headerName?: string;\n initialIndex?: number;\n className?: string;\n toolInstance: ToolInstance;\n header?: Header;\n footer?: RenderFooter;\n sider?: Sider;\n style?: {\n layout?: { [key: string]: any };\n header?: { [key: string]: any };\n sider?: { [key: string]: any };\n footer?: { [key: string]: any };\n };\n setToolInstance?: (tool: ToolInstance) => void;\n mode?: 'light' | 'dark'; // 临时需求应用于 toolFooter 的操作\n showTips?: boolean; // 是否展示 tips\n tips?: string; // Tips 具体内容\n defaultLang: 'en' | 'cn'; // 国际化设置\n leftSider?: () => React.ReactNode | React.ReactNode;\n\n // data Correction\n skipBeforePageTurning?: (pageTurning: Function) => void;\n beforeRotate?: () => boolean;\n\n drawLayerSlot?: (props: {\n zoom: number;\n currentPos: { x: number; y: number };\n }) => React.ReactNode;\n\n // 标注信息扩展的功能\n dataInjectionAtCreation: (annotationData: any) => {};\n // 渲染增强\n renderEnhance: {\n staticRender?: (canvas: HTMLCanvasElement, data: any, style: IAnnotationStyle) => void;\n selectedRender?: (canvas: HTMLCanvasElement, data: any, style: IAnnotationStyle) => void;\n creatingRender?: (canvas: HTMLCanvasElement, data: any, style: IAnnotationStyle) => void;\n };\n customRenderStyle?: (data: any) => IAnnotationStyle;\n\n checkMode?: boolean;\n intelligentFit?: boolean;\n}\n\nconst App: React.FC<AppProps> = (props) => {\n const [_, forceRender] = useState(0);\n const {\n imgList,\n step = 1,\n stepList,\n onSubmit,\n onSave,\n onPageChange,\n onStepChange,\n initialIndex = 0,\n toolInstance,\n setToolInstance,\n getFileData,\n pageSize = 10,\n loadFileList,\n defaultLang = 'cn',\n skipBeforePageTurning,\n beforeRotate,\n checkMode = false,\n intelligentFit = true,\n } = props;\n\n useEffect(() => {\n store.dispatch(\n InitTaskData({\n onSubmit,\n stepList,\n step,\n getFileData,\n pageSize,\n loadFileList,\n onSave,\n onPageChange,\n onStepChange,\n skipBeforePageTurning,\n beforeRotate,\n checkMode,\n }),\n );\n\n initImgList();\n // 初始化国际化语言\n i18n.changeLanguage(defaultLang);\n\n const i18nLanguageChangedFunc = () => {\n forceRender((v) => v + 1);\n };\n\n i18n.on('languageChanged', i18nLanguageChangedFunc);\n return () => {\n i18n.off('languageChanged', i18nLanguageChangedFunc);\n\n // Init all annotation state after unmounting\n InitAnnotationState(store.dispatch);\n };\n }, []);\n\n useEffect(() => {\n store.dispatch(\n UpdateInjectFunc({\n onSubmit,\n stepList,\n getFileData,\n pageSize,\n loadFileList,\n onSave,\n onPageChange,\n onStepChange,\n beforeRotate,\n }),\n );\n\n i18n.changeLanguage(defaultLang);\n }, [\n onSubmit,\n stepList,\n getFileData,\n pageSize,\n loadFileList,\n onSave,\n onPageChange,\n onStepChange,\n defaultLang,\n beforeRotate,\n ]);\n\n useEffect(() => {\n setToolInstance?.(toolInstance);\n }, [toolInstance]);\n\n // 初始化imgList 优先以loadFileList方式加载数据\n const initImgList = () => {\n if (loadFileList) {\n loadImgList(store.dispatch, store.getState, initialIndex, true).then((isSuccess) => {\n if (isSuccess) {\n store.dispatch(LoadFileAndFileData(initialIndex));\n }\n });\n } else if (imgList && imgList.length > 0) {\n store.dispatch({\n type: ANNOTATION_ACTIONS.UPDATE_IMG_LIST,\n payload: {\n imgList,\n },\n });\n store.dispatch(LoadFileAndFileData(initialIndex));\n }\n };\n\n return (\n <div>\n <ConfigProvider locale={i18n.language === 'en' ? enUS : zhCN}>\n <MainView {...props} intelligentFit={intelligentFit} />\n </ConfigProvider>\n </div>\n );\n};\n\nconst mapStateToProps = (state: AppState) => ({\n toolInstance: state.annotation.toolInstance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