@labelbee/lb-components 1.0.0-alpha.1
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/README.md +41 -0
- package/dist/App.js +1 -0
- package/dist/assets/annotation/common/icon_adapt.svg.js +1 -0
- package/dist/assets/annotation/common/icon_adapt_black.svg.js +1 -0
- package/dist/assets/annotation/common/icon_back.svg.js +1 -0
- package/dist/assets/annotation/common/icon_backA.svg.js +1 -0
- package/dist/assets/annotation/common/icon_clear.svg.js +1 -0
- package/dist/assets/annotation/common/icon_clearSmall.svg.js +1 -0
- package/dist/assets/annotation/common/icon_clearSmall_a.svg.js +1 -0
- package/dist/assets/annotation/common/icon_clear_a.svg.js +1 -0
- package/dist/assets/annotation/common/icon_invalid.svg.js +1 -0
- package/dist/assets/annotation/common/icon_invalid_a.svg.js +1 -0
- package/dist/assets/annotation/common/icon_next.svg.js +1 -0
- package/dist/assets/annotation/common/icon_nextA.svg.js +1 -0
- package/dist/assets/annotation/common/icon_r.svg.js +1 -0
- package/dist/assets/annotation/common/icon_rA.svg.js +1 -0
- package/dist/assets/annotation/common/icon_save.svg.js +1 -0
- package/dist/assets/annotation/common/icon_saveA.svg.js +1 -0
- package/dist/assets/annotation/image/brightness.svg.js +1 -0
- package/dist/assets/annotation/image/contrast.svg.js +1 -0
- package/dist/assets/annotation/image/icon_yuantu.svg.js +1 -0
- package/dist/assets/annotation/image/saturation.svg.js +1 -0
- package/dist/assets/annotation/lineTool/icon_line.svg.js +1 -0
- package/dist/assets/annotation/lineTool/icon_line_a.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/copy.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/nextBox.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/nodata.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/patse.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/prevBox.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/selectAll.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +1 -0
- package/dist/assets/annotation/pointTool/icon_point.svg.js +1 -0
- package/dist/assets/annotation/pointTool/icon_point_a.svg.js +1 -0
- package/dist/assets/annotation/polygonTool/icon_polygon.svg.js +1 -0
- package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js +1 -0
- package/dist/assets/annotation/rectTool/icon_rect.svg.js +1 -0
- package/dist/assets/annotation/rectTool/icon_rect_a.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js +1 -0
- package/dist/assets/annotation/video/icon_keyboard_h.svg.js +1 -0
- package/dist/assets/attributeIcon/eraser.svg.js +1 -0
- package/dist/assets/attributeIcon/eraser_a.svg.js +1 -0
- package/dist/assets/attributeIcon/pen.svg.js +1 -0
- package/dist/assets/attributeIcon/pen_a.svg.js +1 -0
- package/dist/assets/attributeIcon/zoomUp.svg.js +1 -0
- package/dist/assets/icons/25541b4d.svg +10 -0
- package/dist/assets/icons/25ef334b.svg +8 -0
- package/dist/assets/icons/7eadb9c4.svg +5 -0
- package/dist/assets/icons/9d70807.svg +5 -0
- package/dist/assets/icons/aa147cfc.png +0 -0
- package/dist/assets/icons/c5b4262e.png +0 -0
- package/dist/assets/icons/cc550fff.svg +23 -0
- package/dist/assets/icons/dc9b6bfc.svg +10 -0
- package/dist/assets/icons/e4f0b7fe.png +0 -0
- package/dist/assets/predictTracking/icon.svg.js +1 -0
- package/dist/assets/toolStyle/icon_border.svg.js +1 -0
- package/dist/assets/toolStyle/icon_borderColor.svg.js +1 -0
- package/dist/assets/toolStyle/icon_opacityFill.svg.js +1 -0
- package/dist/assets/toolStyle/icon_opacityStroke.svg.js +1 -0
- package/dist/components/AnnotationView/index.js +1 -0
- package/dist/components/AnnotationView/pointCloudAnnotationView.js +1 -0
- package/dist/components/annotationStepPopover/index.js +1 -0
- package/dist/components/attributeList/index.js +1 -0
- package/dist/components/checkboxList/index.js +1 -0
- package/dist/components/colorTag/index.js +1 -0
- package/dist/components/customAntd/IconWithText/index.js +1 -0
- package/dist/components/customResizeHook/index.js +1 -0
- package/dist/components/fileException/FileError.js +1 -0
- package/dist/components/fileException/FileInvalid.js +1 -0
- package/dist/components/fileException/index.js +1 -0
- package/dist/components/pointCloudView/PointCloud2DView.js +1 -0
- package/dist/components/pointCloudView/PointCloud3DView.js +1 -0
- package/dist/components/pointCloudView/PointCloudBackView.js +1 -0
- package/dist/components/pointCloudView/PointCloudContext.js +1 -0
- package/dist/components/pointCloudView/PointCloudInfos.js +1 -0
- package/dist/components/pointCloudView/PointCloudLayout.js +1 -0
- package/dist/components/pointCloudView/PointCloudListener.js +1 -0
- package/dist/components/pointCloudView/PointCloudSideView.js +1 -0
- package/dist/components/pointCloudView/PointCloudTopView.js +1 -0
- package/dist/components/pointCloudView/components/EmptyPage/index.js +1 -0
- package/dist/components/pointCloudView/components/UnifyParamsModal/index.js +1 -0
- package/dist/components/pointCloudView/hooks/useAttribute.js +1 -0
- package/dist/components/pointCloudView/hooks/useBoxes.js +1 -0
- package/dist/components/pointCloudView/hooks/useConfig.js +1 -0
- package/dist/components/pointCloudView/hooks/useHistory.js +1 -0
- package/dist/components/pointCloudView/hooks/useLine.js +1 -0
- package/dist/components/pointCloudView/hooks/usePointCloudViews.js +1 -0
- package/dist/components/pointCloudView/hooks/usePolygon.js +1 -0
- package/dist/components/pointCloudView/hooks/useRotate.js +1 -0
- package/dist/components/pointCloudView/hooks/useSingleBox.js +1 -0
- package/dist/components/pointCloudView/hooks/useSphere.js +1 -0
- package/dist/components/pointCloudView/hooks/useStatus.js +1 -0
- package/dist/components/pointCloudView/hooks/useZoom.js +1 -0
- package/dist/components/pointCloudView/index.js +1 -0
- package/dist/components/predictTracking/index.js +1 -0
- package/dist/components/predictTracking/predictTrackingIcon/index.js +1 -0
- package/dist/components/predictTracking/previewResult/index.js +1 -0
- package/dist/components/predictTracking/previewResult/util.js +1 -0
- package/dist/components/videoAnnotate/index.js +1 -0
- package/dist/components/videoPlayer/TagToolInstanceAdaptor.js +1 -0
- package/dist/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js +1 -0
- package/dist/components/videoPlayer/VideoTagLayer.js +1 -0
- package/dist/components/videoPlayer/components/controller/index.js +1 -0
- package/dist/components/videoPlayer/index.js +1 -0
- package/dist/components/videoPlayer/utils.js +1 -0
- package/dist/configureStore.js +1 -0
- package/dist/constant/index.js +1 -0
- package/dist/constant/styleString.js +1 -0
- package/dist/data/Style.js +1 -0
- package/dist/data/enums/AnnotationSize.js +1 -0
- package/dist/data/enums/ToolType.js +1 -0
- package/dist/hooks/annotation.js +1 -0
- package/dist/hooks/useRafState.js +1 -0
- package/dist/hooks/useRefCache.js +1 -0
- package/dist/hooks/useSafeSate.js +1 -0
- package/dist/hooks/useSize.js +1 -0
- package/dist/hooks/useUnmountedRef.js +1 -0
- package/dist/index.css +1549 -0
- package/dist/index.js +1 -0
- package/dist/store/Actions.js +1 -0
- package/dist/store/annotation/actionCreators.js +1 -0
- package/dist/store/annotation/map.js +1 -0
- package/dist/store/annotation/reducer.js +1 -0
- package/dist/store/annotation/selectors.js +1 -0
- package/dist/store/ctx.js +1 -0
- package/dist/store/imgAttribute/actionCreators.js +1 -0
- package/dist/store/imgAttribute/reducer.js +1 -0
- package/dist/store/index.js +1 -0
- package/dist/store/toolStyle/actionCreators.js +1 -0
- package/dist/store/toolStyle/reducer.js +1 -0
- package/dist/types/App.d.ts +75 -0
- package/dist/types/components/AnnotationView/index.d.ts +27 -0
- package/dist/types/components/AnnotationView/pointCloudAnnotationView.d.ts +13 -0
- package/dist/types/components/annotationStepPopover/index.d.ts +9 -0
- package/dist/types/components/attributeList/index.d.ts +18 -0
- package/dist/types/components/checkboxList/index.d.ts +9 -0
- package/dist/types/components/colorTag/index.d.ts +2 -0
- package/dist/types/components/customAntd/IconWithText/index.d.ts +9 -0
- package/dist/types/components/customResizeHook/index.d.ts +31 -0
- package/dist/types/components/fileException/FileError.d.ts +15 -0
- package/dist/types/components/fileException/FileInvalid.d.ts +12 -0
- package/dist/types/components/fileException/index.d.ts +17 -0
- package/dist/types/components/pointCloudView/PointCloud2DView.d.ts +4 -0
- package/dist/types/components/pointCloudView/PointCloud3DView.d.ts +6 -0
- package/dist/types/components/pointCloudView/PointCloudBackView.d.ts +7 -0
- package/dist/types/components/pointCloudView/PointCloudContext.d.ts +54 -0
- package/dist/types/components/pointCloudView/PointCloudInfos.d.ts +23 -0
- package/dist/types/components/pointCloudView/PointCloudLayout.d.ts +7 -0
- package/dist/types/components/pointCloudView/PointCloudListener.d.ts +9 -0
- package/dist/types/components/pointCloudView/PointCloudSideView.d.ts +9 -0
- package/dist/types/components/pointCloudView/PointCloudTopView.d.ts +12 -0
- package/dist/types/components/pointCloudView/components/EmptyPage/index.d.ts +3 -0
- package/dist/types/components/pointCloudView/components/UnifyParamsModal/index.d.ts +13 -0
- package/dist/types/components/pointCloudView/hooks/useAttribute.d.ts +7 -0
- package/dist/types/components/pointCloudView/hooks/useBoxes.d.ts +12 -0
- package/dist/types/components/pointCloudView/hooks/useConfig.d.ts +5 -0
- package/dist/types/components/pointCloudView/hooks/useHistory.d.ts +22 -0
- package/dist/types/components/pointCloudView/hooks/useLine.d.ts +12 -0
- package/dist/types/components/pointCloudView/hooks/usePointCloudViews.d.ts +101 -0
- package/dist/types/components/pointCloudView/hooks/usePolygon.d.ts +12 -0
- package/dist/types/components/pointCloudView/hooks/useRotate.d.ts +8 -0
- package/dist/types/components/pointCloudView/hooks/useSingleBox.d.ts +18 -0
- package/dist/types/components/pointCloudView/hooks/useSphere.d.ts +6 -0
- package/dist/types/components/pointCloudView/hooks/useStatus.d.ts +11 -0
- package/dist/types/components/pointCloudView/hooks/useZoom.d.ts +11 -0
- package/dist/types/components/pointCloudView/index.d.ts +19 -0
- package/dist/types/components/predictTracking/index.d.ts +2 -0
- package/dist/types/components/predictTracking/predictTrackingIcon/index.d.ts +7 -0
- package/dist/types/components/predictTracking/previewResult/index.d.ts +10 -0
- package/dist/types/components/predictTracking/previewResult/util.d.ts +43 -0
- package/dist/types/components/videoAnnotate/index.d.ts +15 -0
- package/dist/types/components/videoPlayer/TagToolInstanceAdaptor.d.ts +90 -0
- package/dist/types/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.d.ts +9 -0
- package/dist/types/components/videoPlayer/VideoTagLayer.d.ts +12 -0
- package/dist/types/components/videoPlayer/components/controller/index.d.ts +3 -0
- package/dist/types/components/videoPlayer/index.d.ts +73 -0
- package/dist/types/components/videoPlayer/types.d.ts +8 -0
- package/dist/types/components/videoPlayer/utils.d.ts +36 -0
- package/dist/types/configureStore.d.ts +3 -0
- package/dist/types/constant/index.d.ts +22 -0
- package/dist/types/constant/styleString.d.ts +2 -0
- package/dist/types/data/Style.d.ts +37 -0
- package/dist/types/data/enums/AnnotationSize.d.ts +32 -0
- package/dist/types/data/enums/ToolType.d.ts +54 -0
- package/dist/types/hooks/annotation.d.ts +37 -0
- package/dist/types/hooks/useRafState.d.ts +3 -0
- package/dist/types/hooks/useRefCache.d.ts +8 -0
- package/dist/types/hooks/useSafeSate.d.ts +4 -0
- package/dist/types/hooks/useSize.d.ts +7 -0
- package/dist/types/hooks/useUnmountedRef.d.ts +3 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/store/Actions.d.ts +48 -0
- package/dist/types/store/annotation/actionCreators.d.ts +95 -0
- package/dist/types/store/annotation/map.d.ts +29 -0
- package/dist/types/store/annotation/reducer.d.ts +53 -0
- package/dist/types/store/annotation/selectors.d.ts +7 -0
- package/dist/types/store/annotation/types.d.ts +158 -0
- package/dist/types/store/ctx.d.ts +4 -0
- package/dist/types/store/imgAttribute/actionCreators.d.ts +8 -0
- package/dist/types/store/imgAttribute/reducer.d.ts +8 -0
- package/dist/types/store/imgAttribute/types.d.ts +23 -0
- package/dist/types/store/index.d.ts +3 -0
- package/dist/types/store/toolStyle/actionCreators.d.ts +8 -0
- package/dist/types/store/toolStyle/reducer.d.ts +13 -0
- package/dist/types/store/toolStyle/types.d.ts +23 -0
- package/dist/types/utils/AnnotationDataUtils.d.ts +77 -0
- package/dist/types/utils/ConfigUtils.d.ts +9 -0
- package/dist/types/utils/PageOperator.d.ts +48 -0
- package/dist/types/utils/StepUtils.d.ts +32 -0
- package/dist/types/utils/TextUtils.d.ts +7 -0
- package/dist/types/utils/ToolStyleUtils.d.ts +18 -0
- package/dist/types/utils/ToolUtils.d.ts +12 -0
- package/dist/types/utils/data.d.ts +15 -0
- package/dist/types/utils/dom.d.ts +11 -0
- package/dist/types/utils/index.d.ts +5 -0
- package/dist/types/views/MainView/annotationOperation/index.d.ts +18 -0
- package/dist/types/views/MainView/annotationTips/index.d.ts +7 -0
- package/dist/types/views/MainView/index.d.ts +10 -0
- package/dist/types/views/MainView/sidebar/AnnotationText/index.d.ts +9 -0
- package/dist/types/views/MainView/sidebar/ClearIcon/index.d.ts +3 -0
- package/dist/types/views/MainView/sidebar/GeneralOperation/ActionsConfirm.d.ts +14 -0
- package/dist/types/views/MainView/sidebar/GeneralOperation/index.d.ts +19 -0
- package/dist/types/views/MainView/sidebar/GeneralOperation/useOperationList.d.ts +12 -0
- package/dist/types/views/MainView/sidebar/ImgAttributeInfo/index.d.ts +7 -0
- package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.d.ts +20 -0
- package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/index.d.ts +14 -0
- package/dist/types/views/MainView/sidebar/ScribbleSidebar/index.d.ts +6 -0
- package/dist/types/views/MainView/sidebar/SwitchAttributeList/index.d.ts +11 -0
- package/dist/types/views/MainView/sidebar/TagSidebar/index.d.ts +11 -0
- package/dist/types/views/MainView/sidebar/TextAreaFormat/index.d.ts +9 -0
- package/dist/types/views/MainView/sidebar/TextToolSidebar/index.d.ts +22 -0
- package/dist/types/views/MainView/sidebar/ToolIcons.d.ts +12 -0
- package/dist/types/views/MainView/sidebar/ToolStyle/index.d.ts +8 -0
- package/dist/types/views/MainView/sidebar/index.d.ts +10 -0
- package/dist/types/views/MainView/toolFooter/AnnotatedAttributes/index.d.ts +5 -0
- package/dist/types/views/MainView/toolFooter/FooterPopover.d.ts +10 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.d.ts +132 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.d.ts +6 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/index.d.ts +23 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.d.ts +71 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.d.ts +27 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.d.ts +5 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.d.ts +85 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.d.ts +38 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.d.ts +6 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.d.ts +3 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.d.ts +6 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.d.ts +3 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/index.d.ts +3 -0
- package/dist/types/views/MainView/toolFooter/HiddenTips/index.d.ts +7 -0
- package/dist/types/views/MainView/toolFooter/PageNumber/index.d.ts +7 -0
- package/dist/types/views/MainView/toolFooter/Pagination.d.ts +22 -0
- package/dist/types/views/MainView/toolFooter/ZoomController/ZoomLevel/index.d.ts +10 -0
- package/dist/types/views/MainView/toolFooter/ZoomController/index.d.ts +21 -0
- package/dist/types/views/MainView/toolFooter/index.d.ts +24 -0
- package/dist/types/views/MainView/toolHeader/ExportData/index.d.ts +15 -0
- package/dist/types/views/MainView/toolHeader/StepSwitch/index.d.ts +14 -0
- package/dist/types/views/MainView/toolHeader/headerOption/index.d.ts +8 -0
- package/dist/types/views/MainView/toolHeader/index.d.ts +23 -0
- package/dist/utils/AnnotationDataUtils.js +1 -0
- package/dist/utils/ConfigUtils.js +1 -0
- package/dist/utils/PageOperator.js +1 -0
- package/dist/utils/StepUtils.js +1 -0
- package/dist/utils/TextUtils.js +1 -0
- package/dist/utils/ToolStyleUtils.js +1 -0
- package/dist/utils/ToolUtils.js +1 -0
- package/dist/utils/data.js +1 -0
- package/dist/utils/dom.js +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/views/MainView/annotationOperation/index.js +1 -0
- package/dist/views/MainView/annotationTips/index.js +1 -0
- package/dist/views/MainView/index.js +1 -0
- package/dist/views/MainView/sidebar/AnnotationText/index.js +1 -0
- package/dist/views/MainView/sidebar/ClearIcon/index.js +1 -0
- package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +1 -0
- package/dist/views/MainView/sidebar/GeneralOperation/index.js +1 -0
- package/dist/views/MainView/sidebar/GeneralOperation/useOperationList.js +1 -0
- package/dist/views/MainView/sidebar/ImgAttributeInfo/index.js +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -0
- package/dist/views/MainView/sidebar/ScribbleSidebar/index.js +1 -0
- package/dist/views/MainView/sidebar/SwitchAttributeList/index.js +1 -0
- package/dist/views/MainView/sidebar/TagSidebar/index.js +1 -0
- package/dist/views/MainView/sidebar/TextAreaFormat/index.js +1 -0
- package/dist/views/MainView/sidebar/TextToolSidebar/index.js +1 -0
- package/dist/views/MainView/sidebar/ToolIcons.js +1 -0
- package/dist/views/MainView/sidebar/ToolStyle/index.js +1 -0
- package/dist/views/MainView/sidebar/index.js +1 -0
- package/dist/views/MainView/toolFooter/AnnotatedAttributes/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterPopover.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/index.js +1 -0
- package/dist/views/MainView/toolFooter/HiddenTips/index.js +1 -0
- package/dist/views/MainView/toolFooter/PageNumber/index.js +1 -0
- package/dist/views/MainView/toolFooter/Pagination.js +1 -0
- package/dist/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +1 -0
- package/dist/views/MainView/toolFooter/ZoomController/index.js +1 -0
- package/dist/views/MainView/toolFooter/index.js +1 -0
- package/dist/views/MainView/toolHeader/ExportData/index.js +1 -0
- package/dist/views/MainView/toolHeader/StepSwitch/index.js +1 -0
- package/dist/views/MainView/toolHeader/headerOption/index.js +1 -0
- package/dist/views/MainView/toolHeader/index.js +1 -0
- package/es/App.js +1 -0
- package/es/assets/annotation/common/icon_adapt.svg.js +1 -0
- package/es/assets/annotation/common/icon_adapt_black.svg.js +1 -0
- package/es/assets/annotation/common/icon_back.svg.js +1 -0
- package/es/assets/annotation/common/icon_backA.svg.js +1 -0
- package/es/assets/annotation/common/icon_clear.svg.js +1 -0
- package/es/assets/annotation/common/icon_clearSmall.svg.js +1 -0
- package/es/assets/annotation/common/icon_clearSmall_a.svg.js +1 -0
- package/es/assets/annotation/common/icon_clear_a.svg.js +1 -0
- package/es/assets/annotation/common/icon_invalid.svg.js +1 -0
- package/es/assets/annotation/common/icon_invalid_a.svg.js +1 -0
- package/es/assets/annotation/common/icon_next.svg.js +1 -0
- package/es/assets/annotation/common/icon_nextA.svg.js +1 -0
- package/es/assets/annotation/common/icon_r.svg.js +1 -0
- package/es/assets/annotation/common/icon_rA.svg.js +1 -0
- package/es/assets/annotation/common/icon_save.svg.js +1 -0
- package/es/assets/annotation/common/icon_saveA.svg.js +1 -0
- package/es/assets/annotation/image/brightness.svg.js +1 -0
- package/es/assets/annotation/image/contrast.svg.js +1 -0
- package/es/assets/annotation/image/icon_yuantu.svg.js +1 -0
- package/es/assets/annotation/image/saturation.svg.js +1 -0
- package/es/assets/annotation/lineTool/icon_line.svg.js +1 -0
- package/es/assets/annotation/lineTool/icon_line_a.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/copy.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/nextBox.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/nodata.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/patse.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/prevBox.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/selectAll.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +1 -0
- package/es/assets/annotation/pointTool/icon_point.svg.js +1 -0
- package/es/assets/annotation/pointTool/icon_point_a.svg.js +1 -0
- package/es/assets/annotation/polygonTool/icon_polygon.svg.js +1 -0
- package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js +1 -0
- package/es/assets/annotation/rectTool/icon_rect.svg.js +1 -0
- package/es/assets/annotation/rectTool/icon_rect_a.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js +1 -0
- package/es/assets/annotation/video/icon_keyboard_h.svg.js +1 -0
- package/es/assets/attributeIcon/eraser.svg.js +1 -0
- package/es/assets/attributeIcon/eraser_a.svg.js +1 -0
- package/es/assets/attributeIcon/pen.svg.js +1 -0
- package/es/assets/attributeIcon/pen_a.svg.js +1 -0
- package/es/assets/attributeIcon/zoomUp.svg.js +1 -0
- package/es/assets/predictTracking/icon.svg.js +1 -0
- package/es/assets/toolStyle/icon_border.svg.js +1 -0
- package/es/assets/toolStyle/icon_borderColor.svg.js +1 -0
- package/es/assets/toolStyle/icon_opacityFill.svg.js +1 -0
- package/es/assets/toolStyle/icon_opacityStroke.svg.js +1 -0
- package/es/components/AnnotationView/index.js +1 -0
- package/es/components/AnnotationView/pointCloudAnnotationView.js +1 -0
- package/es/components/annotationStepPopover/index.js +1 -0
- package/es/components/attributeList/index.js +1 -0
- package/es/components/checkboxList/index.js +1 -0
- package/es/components/colorTag/index.js +1 -0
- package/es/components/customAntd/IconWithText/index.js +1 -0
- package/es/components/customResizeHook/index.js +1 -0
- package/es/components/fileException/FileError.js +1 -0
- package/es/components/fileException/FileInvalid.js +1 -0
- package/es/components/fileException/index.js +1 -0
- package/es/components/pointCloudView/PointCloud2DView.js +1 -0
- package/es/components/pointCloudView/PointCloud3DView.js +1 -0
- package/es/components/pointCloudView/PointCloudBackView.js +1 -0
- package/es/components/pointCloudView/PointCloudContext.js +1 -0
- package/es/components/pointCloudView/PointCloudInfos.js +1 -0
- package/es/components/pointCloudView/PointCloudLayout.js +1 -0
- package/es/components/pointCloudView/PointCloudListener.js +1 -0
- package/es/components/pointCloudView/PointCloudSideView.js +1 -0
- package/es/components/pointCloudView/PointCloudTopView.js +1 -0
- package/es/components/pointCloudView/components/EmptyPage/index.js +1 -0
- package/es/components/pointCloudView/components/UnifyParamsModal/index.js +1 -0
- package/es/components/pointCloudView/hooks/useAttribute.js +1 -0
- package/es/components/pointCloudView/hooks/useBoxes.js +1 -0
- package/es/components/pointCloudView/hooks/useConfig.js +1 -0
- package/es/components/pointCloudView/hooks/useHistory.js +1 -0
- package/es/components/pointCloudView/hooks/useLine.js +1 -0
- package/es/components/pointCloudView/hooks/usePointCloudViews.js +1 -0
- package/es/components/pointCloudView/hooks/usePolygon.js +1 -0
- package/es/components/pointCloudView/hooks/useRotate.js +1 -0
- package/es/components/pointCloudView/hooks/useSingleBox.js +1 -0
- package/es/components/pointCloudView/hooks/useSphere.js +1 -0
- package/es/components/pointCloudView/hooks/useStatus.js +1 -0
- package/es/components/pointCloudView/hooks/useZoom.js +1 -0
- package/es/components/pointCloudView/index.js +1 -0
- package/es/components/predictTracking/index.js +1 -0
- package/es/components/predictTracking/predictTrackingIcon/index.js +1 -0
- package/es/components/predictTracking/previewResult/index.js +1 -0
- package/es/components/predictTracking/previewResult/util.js +1 -0
- package/es/components/videoAnnotate/index.js +1 -0
- package/es/components/videoPlayer/TagToolInstanceAdaptor.js +1 -0
- package/es/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js +1 -0
- package/es/components/videoPlayer/VideoTagLayer.js +1 -0
- package/es/components/videoPlayer/components/controller/index.js +1 -0
- package/es/components/videoPlayer/index.js +1 -0
- package/es/components/videoPlayer/utils.js +1 -0
- package/es/configureStore.js +1 -0
- package/es/constant/index.js +1 -0
- package/es/constant/styleString.js +1 -0
- package/es/data/Style.js +1 -0
- package/es/data/enums/AnnotationSize.js +1 -0
- package/es/data/enums/ToolType.js +1 -0
- package/es/hooks/annotation.js +1 -0
- package/es/hooks/useRafState.js +1 -0
- package/es/hooks/useRefCache.js +1 -0
- package/es/hooks/useSafeSate.js +1 -0
- package/es/hooks/useSize.js +1 -0
- package/es/hooks/useUnmountedRef.js +1 -0
- package/es/index.css +1549 -0
- package/es/index.js +1 -0
- package/es/store/Actions.js +1 -0
- package/es/store/annotation/actionCreators.js +1 -0
- package/es/store/annotation/map.js +1 -0
- package/es/store/annotation/reducer.js +1 -0
- package/es/store/annotation/selectors.js +1 -0
- package/es/store/ctx.js +1 -0
- package/es/store/imgAttribute/actionCreators.js +1 -0
- package/es/store/imgAttribute/reducer.js +1 -0
- package/es/store/index.js +1 -0
- package/es/store/toolStyle/actionCreators.js +1 -0
- package/es/store/toolStyle/reducer.js +1 -0
- package/es/utils/AnnotationDataUtils.js +1 -0
- package/es/utils/ConfigUtils.js +1 -0
- package/es/utils/PageOperator.js +1 -0
- package/es/utils/StepUtils.js +1 -0
- package/es/utils/TextUtils.js +1 -0
- package/es/utils/ToolStyleUtils.js +1 -0
- package/es/utils/ToolUtils.js +1 -0
- package/es/utils/data.js +1 -0
- package/es/utils/dom.js +1 -0
- package/es/utils/index.js +1 -0
- package/es/views/MainView/annotationOperation/index.js +1 -0
- package/es/views/MainView/annotationTips/index.js +1 -0
- package/es/views/MainView/index.js +1 -0
- package/es/views/MainView/sidebar/AnnotationText/index.js +1 -0
- package/es/views/MainView/sidebar/ClearIcon/index.js +1 -0
- package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +1 -0
- package/es/views/MainView/sidebar/GeneralOperation/index.js +1 -0
- package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js +1 -0
- package/es/views/MainView/sidebar/ImgAttributeInfo/index.js +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -0
- package/es/views/MainView/sidebar/ScribbleSidebar/index.js +1 -0
- package/es/views/MainView/sidebar/SwitchAttributeList/index.js +1 -0
- package/es/views/MainView/sidebar/TagSidebar/index.js +1 -0
- package/es/views/MainView/sidebar/TextAreaFormat/index.js +1 -0
- package/es/views/MainView/sidebar/TextToolSidebar/index.js +1 -0
- package/es/views/MainView/sidebar/ToolIcons.js +1 -0
- package/es/views/MainView/sidebar/ToolStyle/index.js +1 -0
- package/es/views/MainView/sidebar/index.js +1 -0
- package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterPopover.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/index.js +1 -0
- package/es/views/MainView/toolFooter/HiddenTips/index.js +1 -0
- package/es/views/MainView/toolFooter/PageNumber/index.js +1 -0
- package/es/views/MainView/toolFooter/Pagination.js +1 -0
- package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +1 -0
- package/es/views/MainView/toolFooter/ZoomController/index.js +1 -0
- package/es/views/MainView/toolFooter/index.js +1 -0
- package/es/views/MainView/toolHeader/ExportData/index.js +1 -0
- package/es/views/MainView/toolHeader/StepSwitch/index.js +1 -0
- package/es/views/MainView/toolHeader/headerOption/index.js +1 -0
- package/es/views/MainView/toolHeader/index.js +1 -0
- package/package.json +102 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare enum EScribblePattern {
|
|
2
|
+
Scribble = 1,
|
|
3
|
+
Erase = 2
|
|
4
|
+
}
|
|
5
|
+
export declare enum EToolName {
|
|
6
|
+
/** 拉框工具 */
|
|
7
|
+
Rect = "rectTool",
|
|
8
|
+
/** 标签工具 */
|
|
9
|
+
Tag = "tagTool",
|
|
10
|
+
/** 标点工具 */
|
|
11
|
+
Point = "pointTool",
|
|
12
|
+
/** 列表标点工具 */
|
|
13
|
+
PointMarker = "pointMarkerTool",
|
|
14
|
+
/** 前景分割工具 */
|
|
15
|
+
Segmentation = "segmentationTool",
|
|
16
|
+
/** 筛选工具 */
|
|
17
|
+
Filter = "filterTool",
|
|
18
|
+
/** 文本工具 */
|
|
19
|
+
Text = "textTool",
|
|
20
|
+
/** 多边形工具 */
|
|
21
|
+
Polygon = "polygonTool",
|
|
22
|
+
/** 线条 */
|
|
23
|
+
Line = "lineTool",
|
|
24
|
+
/** 列表线条工具 */
|
|
25
|
+
LineMarker = "lineMarkerTool",
|
|
26
|
+
/** 空工具,表示当前没有选择的工具,没有实际的业务逻辑 */
|
|
27
|
+
Empty = "emptyTool",
|
|
28
|
+
/** 文件夹标签工具 */
|
|
29
|
+
FolderTag = "folderTagTool",
|
|
30
|
+
/** 拉框跟踪工具 */
|
|
31
|
+
RectTrack = "rectTrackTool",
|
|
32
|
+
/** 涂抹工具 */
|
|
33
|
+
ScribbleTool = "scribbleTool",
|
|
34
|
+
/** 人脸106工具 */
|
|
35
|
+
Face = "faceTool",
|
|
36
|
+
/** 客户端属性工具 */
|
|
37
|
+
ClientAttribute = "clientAttributeTool",
|
|
38
|
+
/** OCR关联关系工具 */
|
|
39
|
+
OCRRelation = "OCRRelationTool",
|
|
40
|
+
/** 算法分割辅助工具 */
|
|
41
|
+
SegmentByRect = "segmentByRectTool",
|
|
42
|
+
Cuboid = "cuboidTool",
|
|
43
|
+
/** 点云多边形工具 */
|
|
44
|
+
PointCloudPolygon = "pointCloudPolygon"
|
|
45
|
+
}
|
|
46
|
+
export declare enum ETextType {
|
|
47
|
+
AnyString = 0,
|
|
48
|
+
Order = 1,
|
|
49
|
+
EnglishOnly = 2,
|
|
50
|
+
NumberOnly = 3,
|
|
51
|
+
CustomFormat = 4
|
|
52
|
+
}
|
|
53
|
+
/** 文本标注字数上限 */
|
|
54
|
+
export declare const TEXT_ATTRIBUTE_MAX_LENGTH = 1000;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ICustomToolInstance {
|
|
3
|
+
valid: boolean;
|
|
4
|
+
exportData: () => [any[], {}];
|
|
5
|
+
exportCustomData: () => {};
|
|
6
|
+
singleOn: () => void;
|
|
7
|
+
clearResult: () => void;
|
|
8
|
+
on: () => void;
|
|
9
|
+
unbind: () => void;
|
|
10
|
+
setResult: () => void;
|
|
11
|
+
setValid: (valid: boolean) => void;
|
|
12
|
+
history: {
|
|
13
|
+
initRecord: (action: any) => void;
|
|
14
|
+
pushHistory: (action: any) => void;
|
|
15
|
+
};
|
|
16
|
+
setDefaultAttribute: (attribute: string) => void;
|
|
17
|
+
setForbidOperation: (forbidOperation: boolean) => void;
|
|
18
|
+
setShowDefaultCursor: (forbidOperation: boolean) => void;
|
|
19
|
+
setSubAttribute: (key: string, value: string) => void;
|
|
20
|
+
updateRotate: () => void;
|
|
21
|
+
undo: () => void;
|
|
22
|
+
redo: () => void;
|
|
23
|
+
[str: string]: any;
|
|
24
|
+
}
|
|
25
|
+
export interface ICustomToolInstanceProps {
|
|
26
|
+
basicInfo?: {
|
|
27
|
+
[v: string]: any;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @returns
|
|
32
|
+
* Custom an empty toolInstance to adapt old use.
|
|
33
|
+
*/
|
|
34
|
+
declare const useCustomToolInstance: ({ basicInfo }?: ICustomToolInstanceProps) => {
|
|
35
|
+
toolInstanceRef: import("react").MutableRefObject<ICustomToolInstance>;
|
|
36
|
+
};
|
|
37
|
+
export { useCustomToolInstance };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
declare function useSafeState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>];
|
|
3
|
+
declare function useSafeState<S = undefined>(): [S | undefined, Dispatch<SetStateAction<S | undefined>>];
|
|
4
|
+
export default useSafeState;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AppProps } from '@/App';
|
|
2
|
+
import AnnotationView from '@/components/AnnotationView';
|
|
3
|
+
import PointCloudAnnotationView from '@/components/AnnotationView/pointCloudAnnotationView';
|
|
4
|
+
import { i18n } from '@labelbee/lb-utils';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { VideoTagTool } from '@/components/videoPlayer/TagToolInstanceAdaptorI18nProvider';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
import PredictTracking from '@/components/predictTracking';
|
|
9
|
+
export declare const store: import("redux").Store<{}, import("redux").Action<any>> & {
|
|
10
|
+
dispatch: unknown;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: React.ForwardRefExoticComponent<AppProps & React.RefAttributes<unknown>>;
|
|
13
|
+
export default _default;
|
|
14
|
+
export { AnnotationView, PointCloudAnnotationView, i18n, VideoTagTool, PredictTracking };
|
|
15
|
+
export * from './constant';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare const ANNOTATION_ACTIONS: {
|
|
2
|
+
INIT_ALL_STATE: string;
|
|
3
|
+
UPDATE_TOOL_INSTANCE: string;
|
|
4
|
+
UPDATE_IMG_LIST: string;
|
|
5
|
+
UPDATE_ANNOTATION_CONFIG: string;
|
|
6
|
+
LOAD_FILE_DATA: string;
|
|
7
|
+
SUBMIT_FILE_DATA: string;
|
|
8
|
+
SET_TASK_CONFIG: string;
|
|
9
|
+
INIT_TOOL: string;
|
|
10
|
+
SET_TOOL: string;
|
|
11
|
+
UPDATE_ON_SUBMIT: string;
|
|
12
|
+
UPDATE_ON_SAVE: string;
|
|
13
|
+
UPDATE_ON_PAGE_CHANGE: string;
|
|
14
|
+
UPDATE_ON_STEP_CHANGE: string;
|
|
15
|
+
UPDATE_ROTATE: string;
|
|
16
|
+
UPDATE_GET_FILE_DATA: string;
|
|
17
|
+
UPDATE_PAGE_SIZE: string;
|
|
18
|
+
UPDATE_LOAD_FILE_LIST: string;
|
|
19
|
+
GET_FILE_DATA: string;
|
|
20
|
+
SET_FILE_DATA: string;
|
|
21
|
+
COPY_BACKWARD_RESULT: string;
|
|
22
|
+
SET_STEP: string;
|
|
23
|
+
SUBMIT_RESULT: string;
|
|
24
|
+
SAVE_RESULT: string;
|
|
25
|
+
SET_BASIC_INDEX: string;
|
|
26
|
+
CALC_STEP_PROGRESS: string;
|
|
27
|
+
SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED: string;
|
|
28
|
+
SKIP_BEFORE_PAGE_TURNING: string;
|
|
29
|
+
UPDATE_BEFORE_ROTATE: string;
|
|
30
|
+
SET_LOADING: string;
|
|
31
|
+
SET_POINT_CLOUD_LOADING: string;
|
|
32
|
+
SET_CHECK_MODE: string;
|
|
33
|
+
SET_TASK_STEP_LIST: string;
|
|
34
|
+
UPDATE_ANNOTATION_VALID: string;
|
|
35
|
+
BATCH_UPDATE_TRACK_ID: string;
|
|
36
|
+
BATCH_UPDATE_RESULT_BY_TRACK_ID: string;
|
|
37
|
+
BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT: string;
|
|
38
|
+
SET_PREDICT_RESULT_VISIBLE: string;
|
|
39
|
+
SET_PREDICT_RESULT: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const IMAGE_ATTRIBUTE_ACTIONS: {
|
|
42
|
+
UPDATE_IMG_ATTRIBUTE: string;
|
|
43
|
+
INIT_IMG_ATTRIBUTE: string;
|
|
44
|
+
};
|
|
45
|
+
export declare const TOOL_STYLE_ACTIONS: {
|
|
46
|
+
INIT_TOOL_STYLE_CONFIG: string;
|
|
47
|
+
UPDATE_TOOL_STYLE_CONFIG: string;
|
|
48
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { IStepInfo } from '@/types/step';
|
|
2
|
+
import { GetFileData, LoadFileList, IFileItem, OnPageChange, OnSave, OnStepChange, OnSubmit } from '@/types/data';
|
|
3
|
+
import { AnnotationActionTypes, ToolInstance } from './types';
|
|
4
|
+
import { ESubmitType } from '@/constant';
|
|
5
|
+
import { EPageTurningOperation } from '@/data/enums/AnnotationSize';
|
|
6
|
+
import { IPointCloudBox } from '@labelbee/lb-utils';
|
|
7
|
+
export declare function UpdateToolInstance(toolInstance: ToolInstance): AnnotationActionTypes;
|
|
8
|
+
export declare function UpdateImgList(imgList: IFileItem[]): AnnotationActionTypes;
|
|
9
|
+
export declare function UpdateAnnotationConfig(config: string): AnnotationActionTypes;
|
|
10
|
+
export declare function SetTaskStepList({ stepList }: {
|
|
11
|
+
stepList: IStepInfo[];
|
|
12
|
+
}): AnnotationActionTypes;
|
|
13
|
+
export declare function SetTaskConfig({ stepList, step, }: {
|
|
14
|
+
stepList: IStepInfo[];
|
|
15
|
+
step: number;
|
|
16
|
+
}): AnnotationActionTypes;
|
|
17
|
+
export declare function UpdateOnSubmit(onSubmit: OnSubmit): AnnotationActionTypes;
|
|
18
|
+
export declare function UpdateOnSave(onSave: OnSave): AnnotationActionTypes;
|
|
19
|
+
export declare function UpdateOnPageChange(onPageChange: OnPageChange): AnnotationActionTypes;
|
|
20
|
+
export declare function UpdateOnStepChange(onStepChange: OnStepChange): AnnotationActionTypes;
|
|
21
|
+
export declare function UpdateGetFileData(getFileData: GetFileData): AnnotationActionTypes;
|
|
22
|
+
export declare function UpdatePageSize(pageSize: number): AnnotationActionTypes;
|
|
23
|
+
export declare function UpdateGetFileList(loadFileList: LoadFileList): AnnotationActionTypes;
|
|
24
|
+
export declare function UpdateRotate(): AnnotationActionTypes;
|
|
25
|
+
export declare function UpdateValid(): AnnotationActionTypes;
|
|
26
|
+
export declare function UpdateSkipBeforePageTurning(skipBeforePageTurning: (pageTurning: Function) => {}): AnnotationActionTypes;
|
|
27
|
+
export declare function UpdateBeforeRotate(beforeRotate: () => {}): AnnotationActionTypes;
|
|
28
|
+
export declare function CopyBackWordResult(): AnnotationActionTypes;
|
|
29
|
+
export declare function BatchUpdateTrackID({ id, newID, rangeIndex, imgList, }: {
|
|
30
|
+
id: number;
|
|
31
|
+
newID: number;
|
|
32
|
+
rangeIndex: [number, number];
|
|
33
|
+
imgList: IFileItem[];
|
|
34
|
+
}): AnnotationActionTypes;
|
|
35
|
+
export declare function BatchUpdateResultByTrackID(id: number, // originData
|
|
36
|
+
newData: Partial<IPointCloudBox>, rangeIndex: [number, number]): AnnotationActionTypes;
|
|
37
|
+
export declare function BatchUpdateImgListResultByPredictResult(): AnnotationActionTypes;
|
|
38
|
+
export declare const UpdateCheckMode: (checkMode: boolean) => AnnotationActionTypes;
|
|
39
|
+
/**
|
|
40
|
+
* 初始化任务数据
|
|
41
|
+
* @param param0
|
|
42
|
+
*/
|
|
43
|
+
export declare function InitTaskData({ onSubmit, onSave, onPageChange, onStepChange, getFileData, pageSize, loadFileList, step, stepList, skipBeforePageTurning, beforeRotate, checkMode, }: any): any;
|
|
44
|
+
/**
|
|
45
|
+
* 初始化任务数据
|
|
46
|
+
* @param param0
|
|
47
|
+
*/
|
|
48
|
+
export declare function UpdateInjectFunc({ onSubmit, onSave, onPageChange, onStepChange, getFileData, pageSize, loadFileList, stepList, beforeRotate, }: any): any;
|
|
49
|
+
/** 切换到下一步 */
|
|
50
|
+
export declare const ToNextStep: (pageNumber?: number) => (dispatch: any, getState: any) => any[];
|
|
51
|
+
/**
|
|
52
|
+
* 更新当前操作的步骤
|
|
53
|
+
* @param {number} toStep
|
|
54
|
+
*/
|
|
55
|
+
export declare const UpdateProcessingStep: (toStep: number, index?: number) => (dispatch: any, getState: any) => any[];
|
|
56
|
+
/**
|
|
57
|
+
* 提交当前的文件数据
|
|
58
|
+
* @param submitType
|
|
59
|
+
*/
|
|
60
|
+
export declare const ToSubmitFileData: (submitType: ESubmitType) => (dispatch: any) => any[];
|
|
61
|
+
/** 向前翻页 */
|
|
62
|
+
export declare const PageBackward: (triggerEventAfterIndexChanged?: boolean) => (dispatch: any, getState: any) => Promise<any>;
|
|
63
|
+
/** 向后翻页 */
|
|
64
|
+
export declare const PageForward: (triggerEventAfterIndexChanged?: boolean) => (dispatch: any, getState: any) => Promise<any>;
|
|
65
|
+
/**
|
|
66
|
+
* 跳到指定文件索引
|
|
67
|
+
* @param toIndex
|
|
68
|
+
*/
|
|
69
|
+
export declare const PageJump: (toIndex: number, triggerEventAfterIndexChanged?: boolean) => (dispatch: any, getState: any) => Promise<any> | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* 加载文件列表
|
|
72
|
+
* @param dispatch
|
|
73
|
+
* @param getState
|
|
74
|
+
* @param nextIndex 需要加载的图片index
|
|
75
|
+
* @param isInitial // 是否为初始化加载
|
|
76
|
+
*/
|
|
77
|
+
export declare const loadImgList: (dispatch: any, getState: any, nextIndex: number, isInitial?: boolean) => Promise<true | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* 判断翻页还是切换依赖数据
|
|
80
|
+
* @param dispatch
|
|
81
|
+
* @param getState
|
|
82
|
+
* @param pageTurningOperation
|
|
83
|
+
* @param toIndex
|
|
84
|
+
*/
|
|
85
|
+
export declare const DispatcherTurning: (dispatch: any, getState: any, pageTurningOperation: EPageTurningOperation, triggerEventAfterIndexChanged?: boolean, toIndex?: number) => Promise<any>;
|
|
86
|
+
/**
|
|
87
|
+
* 保存当前页数据
|
|
88
|
+
* */
|
|
89
|
+
export declare const ChangeSave: (dispatch: Function) => void;
|
|
90
|
+
export declare const SetAnnotationLoading: (dispatch: Function, loading: boolean) => void;
|
|
91
|
+
export declare const SetPointCloudLoading: (dispatch: Function, loading: boolean) => void;
|
|
92
|
+
export declare const InitAnnotationState: (dispatch: Function) => void;
|
|
93
|
+
export declare const SetPredictResult: (dispatch: Function, result: any) => void;
|
|
94
|
+
export declare const SetPredictResultVisible: (dispatch: Function, visible: boolean) => void;
|
|
95
|
+
export declare const GetBoxesByID: (selectedBoxTrackID: number) => (dispatch: any, getState: any) => IPointCloudBox[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file MapStateToProps set
|
|
3
|
+
* @createdate 2022-07-19
|
|
4
|
+
* @author Ron <ron.f.luo@gmail.com>
|
|
5
|
+
*/
|
|
6
|
+
import { AppState } from '../index';
|
|
7
|
+
import { IFileItem } from '@/types/data';
|
|
8
|
+
import { IStepInfo } from '@/types/step';
|
|
9
|
+
export declare const aMapStateToProps: (state: AppState) => {
|
|
10
|
+
currentData: any;
|
|
11
|
+
};
|
|
12
|
+
export interface IAnnotationStateProps {
|
|
13
|
+
currentData: IFileItem;
|
|
14
|
+
}
|
|
15
|
+
export interface IA2MapStateProps extends IAnnotationStateProps {
|
|
16
|
+
imgList: IFileItem[];
|
|
17
|
+
stepInfo: IStepInfo;
|
|
18
|
+
config: any;
|
|
19
|
+
imgIndex: number;
|
|
20
|
+
configString: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const a2MapStateToProps: (state: AppState) => {
|
|
23
|
+
currentData: any;
|
|
24
|
+
imgIndex: any;
|
|
25
|
+
imgList: any;
|
|
26
|
+
stepInfo: IStepInfo;
|
|
27
|
+
config: any;
|
|
28
|
+
configString: string;
|
|
29
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { IFileItem } from '@/types/data';
|
|
2
|
+
import { IStepInfo } from '@/types/step';
|
|
3
|
+
import { AnnotationEngine } from '@labelbee/lb-annotation';
|
|
4
|
+
import { AnnotationActionTypes, AnnotationState } from './types';
|
|
5
|
+
export declare const getStepConfig: (stepList: any[], step: number) => any;
|
|
6
|
+
/**
|
|
7
|
+
* 获取当前文件列表的总页数
|
|
8
|
+
* @param state
|
|
9
|
+
*/
|
|
10
|
+
export declare const getTotalPage: (state: AnnotationState) => number;
|
|
11
|
+
/**
|
|
12
|
+
* 初始化imgNode并加载数据
|
|
13
|
+
* @param nextIndex
|
|
14
|
+
* @param nextBasicIndex
|
|
15
|
+
*/
|
|
16
|
+
export declare const LoadFileAndFileData: (nextIndex: number, nextBasicIndex?: number) => any;
|
|
17
|
+
export declare const composeResultByToolInstance: ({ toolInstance, imgList, imgIndex, stepList, step, }: {
|
|
18
|
+
toolInstance: any;
|
|
19
|
+
imgList: IFileItem[];
|
|
20
|
+
imgIndex: number;
|
|
21
|
+
stepList: IStepInfo[];
|
|
22
|
+
step?: number | undefined;
|
|
23
|
+
}) => any[];
|
|
24
|
+
export declare const annotationReducer: (state: {
|
|
25
|
+
toolInstance: import("./types").ToolInstance | null;
|
|
26
|
+
annotationEngine: AnnotationEngine | null;
|
|
27
|
+
imgList: IFileItem[];
|
|
28
|
+
config: string;
|
|
29
|
+
imgIndex: number;
|
|
30
|
+
imgPageSize: number;
|
|
31
|
+
step: number;
|
|
32
|
+
stepList: IStepInfo[];
|
|
33
|
+
imgNode: HTMLImageElement;
|
|
34
|
+
onSubmit?: import("@/types/data").OnSubmit | undefined;
|
|
35
|
+
onSave?: import("@/types/data").OnSave | undefined;
|
|
36
|
+
onPageChange?: import("@/types/data").OnPageChange | undefined;
|
|
37
|
+
onStepChange?: import("@/types/data").OnStepChange | undefined;
|
|
38
|
+
getFileData?: import("@/types/data").GetFileData | undefined;
|
|
39
|
+
loadFileList?: import("@/types/data").LoadFileList | undefined;
|
|
40
|
+
pageSize?: number | undefined;
|
|
41
|
+
basicIndex: number;
|
|
42
|
+
basicResultList: any[];
|
|
43
|
+
resultList: any[];
|
|
44
|
+
stepProgress: number;
|
|
45
|
+
loading: boolean;
|
|
46
|
+
triggerEventAfterIndexChanged: boolean;
|
|
47
|
+
skipBeforePageTurning?: ((pageTurning: Function) => void) | undefined;
|
|
48
|
+
beforeRotate?: (() => boolean) | undefined;
|
|
49
|
+
pointCloudLoading: boolean;
|
|
50
|
+
checkMode: boolean;
|
|
51
|
+
predictionResult: import("./types").IPointCloudBoxWithIndex[];
|
|
52
|
+
predictionResultVisible: boolean;
|
|
53
|
+
} | undefined, action: AnnotationActionTypes) => AnnotationState;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { AnnotationEngine, RectOperation, TagOperation, TextToolOperation, PointOperation, PolygonOperation, LineToolOperation } from '@labelbee/lb-annotation';
|
|
2
|
+
import { ANNOTATION_ACTIONS } from '@/store/Actions';
|
|
3
|
+
import { IStepInfo } from '@/types/step';
|
|
4
|
+
import { OnSubmit, IFileItem, GetFileData, OnSave, OnPageChange, OnStepChange, LoadFileList } from '@/types/data';
|
|
5
|
+
import { ESubmitType } from '@/constant';
|
|
6
|
+
import { IPointCloudBox } from '@labelbee/lb-utils';
|
|
7
|
+
export type GraphToolInstance = RectOperation | PointOperation | PolygonOperation | LineToolOperation;
|
|
8
|
+
export type ToolInstance = GraphToolInstance | TagOperation | TextToolOperation;
|
|
9
|
+
interface CommonActions {
|
|
10
|
+
type: string;
|
|
11
|
+
payload?: any;
|
|
12
|
+
}
|
|
13
|
+
export type IPointCloudBoxWithIndex = IPointCloudBox & {
|
|
14
|
+
index: number;
|
|
15
|
+
};
|
|
16
|
+
export interface AnnotationState {
|
|
17
|
+
toolInstance: ToolInstance | null;
|
|
18
|
+
annotationEngine: AnnotationEngine | null;
|
|
19
|
+
imgList: IFileItem[];
|
|
20
|
+
config: string;
|
|
21
|
+
imgIndex: number;
|
|
22
|
+
imgPageSize: number;
|
|
23
|
+
step: number;
|
|
24
|
+
stepList: IStepInfo[];
|
|
25
|
+
imgNode: HTMLImageElement;
|
|
26
|
+
onSubmit?: OnSubmit;
|
|
27
|
+
onSave?: OnSave;
|
|
28
|
+
onPageChange?: OnPageChange;
|
|
29
|
+
onStepChange?: OnStepChange;
|
|
30
|
+
getFileData?: GetFileData;
|
|
31
|
+
loadFileList?: LoadFileList;
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
basicIndex: number;
|
|
34
|
+
basicResultList: any[];
|
|
35
|
+
resultList: any[];
|
|
36
|
+
stepProgress: number;
|
|
37
|
+
loading: boolean;
|
|
38
|
+
/** 阻止文件切换后的事件 */
|
|
39
|
+
triggerEventAfterIndexChanged: boolean;
|
|
40
|
+
skipBeforePageTurning?: (pageTurning: Function) => void;
|
|
41
|
+
beforeRotate?: () => boolean;
|
|
42
|
+
pointCloudLoading: boolean;
|
|
43
|
+
checkMode: boolean;
|
|
44
|
+
predictionResult: IPointCloudBoxWithIndex[];
|
|
45
|
+
predictionResultVisible: boolean;
|
|
46
|
+
}
|
|
47
|
+
interface UpdateToolInstance {
|
|
48
|
+
type: typeof ANNOTATION_ACTIONS.UPDATE_TOOL_INSTANCE;
|
|
49
|
+
payload: {
|
|
50
|
+
toolInstance: ToolInstance;
|
|
51
|
+
annotationEngine: AnnotationEngine;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
interface UpdateImgList {
|
|
55
|
+
type: typeof ANNOTATION_ACTIONS.UPDATE_IMG_LIST;
|
|
56
|
+
payload: {
|
|
57
|
+
imgList: IFileItem[];
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
interface UpdateAnnotationConfig {
|
|
61
|
+
type: typeof ANNOTATION_ACTIONS.UPDATE_ANNOTATION_CONFIG;
|
|
62
|
+
payload: {
|
|
63
|
+
config: string;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
interface SubmitFileData extends CommonActions {
|
|
67
|
+
type: typeof ANNOTATION_ACTIONS.SUBMIT_FILE_DATA;
|
|
68
|
+
payload: {
|
|
69
|
+
submitType: ESubmitType;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
interface LoadFileData extends CommonActions {
|
|
73
|
+
type: typeof ANNOTATION_ACTIONS.LOAD_FILE_DATA;
|
|
74
|
+
payload: {
|
|
75
|
+
nextIndex: number;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
interface SetTaskConfig {
|
|
79
|
+
type: typeof ANNOTATION_ACTIONS.SET_TASK_CONFIG;
|
|
80
|
+
payload: {
|
|
81
|
+
stepList: IStepInfo[];
|
|
82
|
+
step: number;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
interface InitTool {
|
|
86
|
+
type: typeof ANNOTATION_ACTIONS.INIT_TOOL;
|
|
87
|
+
payload: {
|
|
88
|
+
stepList: IStepInfo[];
|
|
89
|
+
step: number;
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
interface UpdateOnSubmit {
|
|
93
|
+
type: typeof ANNOTATION_ACTIONS.UPDATE_ON_SUBMIT;
|
|
94
|
+
payload: {
|
|
95
|
+
onSubmit: OnSubmit;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
interface UpdateOnSave {
|
|
99
|
+
type: typeof ANNOTATION_ACTIONS.UPDATE_ON_SAVE;
|
|
100
|
+
payload: {
|
|
101
|
+
onSave: OnSave;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
interface UpdateOnPageChange {
|
|
105
|
+
type: typeof ANNOTATION_ACTIONS.UPDATE_ON_PAGE_CHANGE;
|
|
106
|
+
payload: {
|
|
107
|
+
getFileData: OnPageChange;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
interface UpdateOnStepChange {
|
|
111
|
+
type: typeof ANNOTATION_ACTIONS.UPDATE_ON_STEP_CHANGE;
|
|
112
|
+
payload: {
|
|
113
|
+
getFileData: OnStepChange;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
interface UpdateGetFileData {
|
|
117
|
+
type: typeof ANNOTATION_ACTIONS.UPDATE_GET_FILE_DATA;
|
|
118
|
+
payload: {
|
|
119
|
+
getFileData: GetFileData;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
interface UpdatePageSize {
|
|
123
|
+
type: typeof ANNOTATION_ACTIONS.UPDATE_PAGE_SIZE;
|
|
124
|
+
payload: {
|
|
125
|
+
pageSize: number;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
interface UpdateGetFileList {
|
|
129
|
+
type: typeof ANNOTATION_ACTIONS.UPDATE_LOAD_FILE_LIST;
|
|
130
|
+
payload: {
|
|
131
|
+
getFileData: LoadFileList;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
interface CopyBackWordResult extends CommonActions {
|
|
135
|
+
type: typeof ANNOTATION_ACTIONS.COPY_BACKWARD_RESULT;
|
|
136
|
+
}
|
|
137
|
+
interface InitAnnotationState extends CommonActions {
|
|
138
|
+
type: typeof ANNOTATION_ACTIONS.INIT_ALL_STATE;
|
|
139
|
+
}
|
|
140
|
+
interface BatchUpdateTrackID {
|
|
141
|
+
type: typeof ANNOTATION_ACTIONS.BATCH_UPDATE_TRACK_ID;
|
|
142
|
+
payload: {
|
|
143
|
+
id: number;
|
|
144
|
+
newID: number;
|
|
145
|
+
range: [number, number];
|
|
146
|
+
imgList: IFileItem[];
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
interface BatchUpdateResultByTrackID {
|
|
150
|
+
type: typeof ANNOTATION_ACTIONS.BATCH_UPDATE_RESULT_BY_TRACK_ID;
|
|
151
|
+
payload: {
|
|
152
|
+
id: number;
|
|
153
|
+
newData: Partial<IPointCloudBox>;
|
|
154
|
+
range: [number, number];
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
export type AnnotationActionTypes = UpdateToolInstance | UpdateImgList | UpdateAnnotationConfig | SubmitFileData | LoadFileData | SetTaskConfig | InitTool | UpdateOnSubmit | UpdateOnPageChange | UpdateOnStepChange | UpdateGetFileData | UpdatePageSize | UpdateGetFileList | CopyBackWordResult | UpdateOnSave | BatchUpdateTrackID | BatchUpdateResultByTrackID | InitAnnotationState;
|
|
158
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AnyAction, Dispatch } from 'redux';
|
|
2
|
+
export declare const LabelBeeContext: any;
|
|
3
|
+
export declare const useDispatch: () => Dispatch<AnyAction | any>;
|
|
4
|
+
export declare const useSelector: <Selected extends unknown>(selector: (state: any) => Selected, equalityFn?: ((previous: Selected, next: Selected) => boolean) | undefined) => Selected;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ImgAttributeActionTypes, ImgAttributeState } from './types';
|
|
2
|
+
export declare function UpdateImgAttribute(imgAttribute: ImgAttributeState): ImgAttributeActionTypes;
|
|
3
|
+
export declare function InitImgAttribute(): ImgAttributeActionTypes;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
UpdateImgAttribute: typeof UpdateImgAttribute;
|
|
6
|
+
InitImgAttribute: typeof InitImgAttribute;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ImgAttributeState, ImgAttributeActionTypes } from './types';
|
|
2
|
+
export declare function imgAttributeReducer(state: {
|
|
3
|
+
contrast: number;
|
|
4
|
+
saturation: number;
|
|
5
|
+
brightness: number;
|
|
6
|
+
zoomRatio: number;
|
|
7
|
+
isOriginalSize: boolean;
|
|
8
|
+
} | undefined, action: ImgAttributeActionTypes): ImgAttributeState;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IMAGE_ATTRIBUTE_ACTIONS } from '@/store/Actions';
|
|
2
|
+
export interface ImgAttributeState {
|
|
3
|
+
contrast: number;
|
|
4
|
+
saturation: number;
|
|
5
|
+
brightness: number;
|
|
6
|
+
zoomRatio: number;
|
|
7
|
+
isOriginalSize: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface UpdateImgAttribute {
|
|
10
|
+
type: typeof IMAGE_ATTRIBUTE_ACTIONS.UPDATE_IMG_ATTRIBUTE;
|
|
11
|
+
payload: {
|
|
12
|
+
contrast?: number;
|
|
13
|
+
saturation?: number;
|
|
14
|
+
brightness?: number;
|
|
15
|
+
zoomRatio?: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
interface InitImgAttribute {
|
|
19
|
+
type: typeof IMAGE_ATTRIBUTE_ACTIONS.INIT_IMG_ATTRIBUTE;
|
|
20
|
+
payload: {};
|
|
21
|
+
}
|
|
22
|
+
export type ImgAttributeActionTypes = UpdateImgAttribute | InitImgAttribute;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ToolStyleActionTypes, ToolStyleState } from './types';
|
|
2
|
+
export declare function InitToolStyleConfig(): ToolStyleActionTypes;
|
|
3
|
+
export declare function UpdateToolStyleConfig(toolStyle: Partial<ToolStyleState>): ToolStyleActionTypes;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
InitToolStyleConfig: typeof InitToolStyleConfig;
|
|
6
|
+
UpdateToolStyleConfig: typeof UpdateToolStyleConfig;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ToolStyleActionTypes, ToolStyleState } from './types';
|
|
2
|
+
export declare function toolStyleReducer(state: {
|
|
3
|
+
color: number;
|
|
4
|
+
width: number;
|
|
5
|
+
borderOpacity: number;
|
|
6
|
+
fillOpacity: number;
|
|
7
|
+
toolColor: {
|
|
8
|
+
[color: number]: any;
|
|
9
|
+
};
|
|
10
|
+
attributeColor: any[];
|
|
11
|
+
lineColor: string;
|
|
12
|
+
attributeLineColor: string[];
|
|
13
|
+
} | undefined, action: ToolStyleActionTypes): ToolStyleState;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TOOL_STYLE_ACTIONS } from '@/store/Actions';
|
|
2
|
+
export interface ToolStyleState {
|
|
3
|
+
color: number;
|
|
4
|
+
width: number;
|
|
5
|
+
borderOpacity: number;
|
|
6
|
+
fillOpacity: number;
|
|
7
|
+
toolColor: {
|
|
8
|
+
[color: number]: any;
|
|
9
|
+
};
|
|
10
|
+
attributeColor: any[];
|
|
11
|
+
lineColor: string;
|
|
12
|
+
attributeLineColor: string[];
|
|
13
|
+
}
|
|
14
|
+
interface UpdateToolStyleConfig {
|
|
15
|
+
type: typeof TOOL_STYLE_ACTIONS.UPDATE_TOOL_STYLE_CONFIG;
|
|
16
|
+
payload: Partial<ToolStyleState>;
|
|
17
|
+
}
|
|
18
|
+
interface InitToolStyleConfig {
|
|
19
|
+
type: typeof TOOL_STYLE_ACTIONS.INIT_TOOL_STYLE_CONFIG;
|
|
20
|
+
payload: undefined;
|
|
21
|
+
}
|
|
22
|
+
export type ToolStyleActionTypes = InitToolStyleConfig | UpdateToolStyleConfig;
|
|
23
|
+
export {};
|