@labelbee/lb-components 1.2.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 +31 -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_a.svg.js +1 -0
- package/dist/assets/annotation/pointTool/icon_point_a.svg.js +1 -0
- package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js +1 -0
- package/dist/assets/annotation/rectTool/icon_rectPattern.svg.js +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_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_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_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_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_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/attributeIcon/zoomUp.svg.js +1 -0
- package/dist/assets/cssIcon/annotation/icon_clearSmall.svg +10 -0
- package/dist/assets/cssIcon/annotation/icon_clearSmall_a.svg +10 -0
- package/dist/assets/cssIcon/slide_btn.svg +23 -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/ImageError/index.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/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/useRafState.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 +835 -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/reducer.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 +41 -0
- package/dist/types/components/AnnotationView/index.d.ts +24 -0
- package/dist/types/components/ImageError/index.d.ts +14 -0
- package/dist/types/components/annotationStepPopover/index.d.ts +8 -0
- package/dist/types/components/attributeList/index.d.ts +16 -0
- package/dist/types/components/checkboxList/index.d.ts +8 -0
- package/dist/types/components/colorTag/index.d.ts +1 -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/configureStore.d.ts +3 -0
- package/dist/types/constant/index.d.ts +18 -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 +43 -0
- package/dist/types/hooks/useRafState.d.ts +3 -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 +9 -0
- package/dist/types/store/Actions.d.ts +31 -0
- package/dist/types/store/annotation/actionCreators.d.ts +56 -0
- package/dist/types/store/annotation/reducer.d.ts +14 -0
- package/dist/types/store/annotation/types.d.ts +100 -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 +18 -0
- package/dist/types/utils/TextUtils.d.ts +7 -0
- package/dist/types/utils/ToolStyleUtils.d.ts +18 -0
- package/dist/types/utils/data.d.ts +15 -0
- package/dist/types/utils/dom.d.ts +5 -0
- package/dist/types/utils/index.d.ts +5 -0
- package/dist/types/views/MainView/annotationOperation/index.d.ts +19 -0
- package/dist/types/views/MainView/index.d.ts +4 -0
- package/dist/types/views/MainView/sidebar/AnnotationText/index.d.ts +7 -0
- package/dist/types/views/MainView/sidebar/ClearIcon/index.d.ts +2 -0
- package/dist/types/views/MainView/sidebar/GeneralOperation/index.d.ts +12 -0
- package/dist/types/views/MainView/sidebar/ImgAttributeInfo/index.d.ts +6 -0
- package/dist/types/views/MainView/sidebar/SwitchAttributeList/index.d.ts +9 -0
- package/dist/types/views/MainView/sidebar/TagSidebar/index.d.ts +9 -0
- package/dist/types/views/MainView/sidebar/TextAreaFormat/index.d.ts +8 -0
- package/dist/types/views/MainView/sidebar/TextToolSidebar/index.d.ts +20 -0
- package/dist/types/views/MainView/sidebar/ToolStyle/index.d.ts +7 -0
- package/dist/types/views/MainView/sidebar/index.d.ts +7 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.d.ts +109 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/index.d.ts +13 -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/polygon/index.d.ts +79 -0
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.d.ts +38 -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/index.d.ts +3 -0
- package/dist/types/views/MainView/toolFooter/HiddenTips/index.d.ts +6 -0
- package/dist/types/views/MainView/toolFooter/PageNumber/index.d.ts +6 -0
- package/dist/types/views/MainView/toolFooter/ZoomController/ZoomLevel/index.d.ts +7 -0
- package/dist/types/views/MainView/toolFooter/ZoomController/index.d.ts +8 -0
- package/dist/types/views/MainView/toolFooter/index.d.ts +22 -0
- package/dist/types/views/MainView/toolHeader/ExportData/index.d.ts +13 -0
- package/dist/types/views/MainView/toolHeader/StepSwitch/index.d.ts +12 -0
- package/dist/types/views/MainView/toolHeader/headerOption/index.d.ts +8 -0
- package/dist/types/views/MainView/toolHeader/index.d.ts +19 -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/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/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/index.js +1 -0
- package/dist/views/MainView/sidebar/ImgAttributeInfo/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/ToolStyle/index.js +1 -0
- package/dist/views/MainView/sidebar/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/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/polygon/index.js +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/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/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/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/App.js.map +1 -0
- package/es/assets/annotation/common/icon_adapt.svg.js +1 -0
- package/es/assets/annotation/common/icon_adapt.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_adapt_black.svg.js +1 -0
- package/es/assets/annotation/common/icon_adapt_black.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_back.svg.js +1 -0
- package/es/assets/annotation/common/icon_back.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_backA.svg.js +1 -0
- package/es/assets/annotation/common/icon_backA.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clear.svg.js +1 -0
- package/es/assets/annotation/common/icon_clear.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clearSmall.svg.js +1 -0
- package/es/assets/annotation/common/icon_clearSmall.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clearSmall_a.svg.js +1 -0
- package/es/assets/annotation/common/icon_clearSmall_a.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clear_a.svg.js +1 -0
- package/es/assets/annotation/common/icon_clear_a.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_invalid.svg.js +1 -0
- package/es/assets/annotation/common/icon_invalid.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_invalid_a.svg.js +1 -0
- package/es/assets/annotation/common/icon_invalid_a.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_next.svg.js +1 -0
- package/es/assets/annotation/common/icon_next.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_nextA.svg.js +1 -0
- package/es/assets/annotation/common/icon_nextA.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_r.svg.js +1 -0
- package/es/assets/annotation/common/icon_r.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_rA.svg.js +1 -0
- package/es/assets/annotation/common/icon_rA.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_save.svg.js +1 -0
- package/es/assets/annotation/common/icon_save.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_saveA.svg.js +1 -0
- package/es/assets/annotation/common/icon_saveA.svg.js.map +1 -0
- package/es/assets/annotation/image/brightness.svg.js +1 -0
- package/es/assets/annotation/image/brightness.svg.js.map +1 -0
- package/es/assets/annotation/image/contrast.svg.js +1 -0
- package/es/assets/annotation/image/contrast.svg.js.map +1 -0
- package/es/assets/annotation/image/icon_yuantu.svg.js +1 -0
- package/es/assets/annotation/image/icon_yuantu.svg.js.map +1 -0
- package/es/assets/annotation/image/saturation.svg.js +1 -0
- package/es/assets/annotation/image/saturation.svg.js.map +1 -0
- package/es/assets/annotation/lineTool/icon_line_a.svg.js +1 -0
- package/es/assets/annotation/lineTool/icon_line_a.svg.js.map +1 -0
- package/es/assets/annotation/pointTool/icon_point_a.svg.js +1 -0
- package/es/assets/annotation/pointTool/icon_point_a.svg.js.map +1 -0
- package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js +1 -0
- package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js.map +1 -0
- package/es/assets/annotation/rectTool/icon_rectPattern.svg.js +1 -0
- package/es/assets/annotation/rectTool/icon_rectPattern.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +1 -0
- 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 +1 -0
- 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 +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js +1 -0
- package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js.map +1 -0
- package/es/assets/attributeIcon/zoomUp.svg.js +1 -0
- 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/toolStyle/icon_border.svg.js +1 -0
- package/es/assets/toolStyle/icon_border.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_borderColor.svg.js +1 -0
- package/es/assets/toolStyle/icon_borderColor.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_opacityFill.svg.js +1 -0
- package/es/assets/toolStyle/icon_opacityFill.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_opacityStroke.svg.js +1 -0
- package/es/assets/toolStyle/icon_opacityStroke.svg.js.map +1 -0
- package/es/components/AnnotationView/index.js +1 -0
- package/es/components/AnnotationView/index.js.map +1 -0
- package/es/components/ImageError/index.js +1 -0
- package/es/components/ImageError/index.js.map +1 -0
- package/es/components/annotationStepPopover/index.js +1 -0
- package/es/components/annotationStepPopover/index.js.map +1 -0
- package/es/components/attributeList/index.js +1 -0
- package/es/components/attributeList/index.js.map +1 -0
- package/es/components/checkboxList/index.js +1 -0
- package/es/components/checkboxList/index.js.map +1 -0
- package/es/components/colorTag/index.js +1 -0
- package/es/components/colorTag/index.js.map +1 -0
- package/es/components/customAntd/IconWithText/index.js +1 -0
- package/es/components/customAntd/IconWithText/index.js.map +1 -0
- package/es/components/customResizeHook/index.js +1 -0
- package/es/components/customResizeHook/index.js.map +1 -0
- package/es/configureStore.js +1 -0
- package/es/configureStore.js.map +1 -0
- package/es/constant/index.js +1 -0
- package/es/constant/index.js.map +1 -0
- package/es/constant/styleString.js +1 -0
- package/es/constant/styleString.js.map +1 -0
- package/es/data/Style.js +1 -0
- package/es/data/Style.js.map +1 -0
- package/es/data/enums/AnnotationSize.js +1 -0
- package/es/data/enums/AnnotationSize.js.map +1 -0
- package/es/data/enums/ToolType.js +1 -0
- package/es/data/enums/ToolType.js.map +1 -0
- package/es/hooks/useRafState.js +1 -0
- package/es/hooks/useRafState.js.map +1 -0
- package/es/hooks/useSafeSate.js +1 -0
- package/es/hooks/useSafeSate.js.map +1 -0
- package/es/hooks/useSize.js +1 -0
- package/es/hooks/useSize.js.map +1 -0
- package/es/hooks/useUnmountedRef.js +1 -0
- package/es/hooks/useUnmountedRef.js.map +1 -0
- package/es/index.js +1 -0
- package/es/index.js.map +1 -0
- package/es/store/Actions.js +1 -0
- package/es/store/Actions.js.map +1 -0
- package/es/store/annotation/actionCreators.js +1 -0
- package/es/store/annotation/actionCreators.js.map +1 -0
- package/es/store/annotation/reducer.js +1 -0
- package/es/store/annotation/reducer.js.map +1 -0
- package/es/store/imgAttribute/actionCreators.js +1 -0
- package/es/store/imgAttribute/actionCreators.js.map +1 -0
- package/es/store/imgAttribute/reducer.js +1 -0
- package/es/store/imgAttribute/reducer.js.map +1 -0
- package/es/store/index.js +1 -0
- package/es/store/index.js.map +1 -0
- package/es/store/toolStyle/actionCreators.js +1 -0
- package/es/store/toolStyle/actionCreators.js.map +1 -0
- package/es/store/toolStyle/reducer.js +1 -0
- package/es/store/toolStyle/reducer.js.map +1 -0
- package/es/utils/AnnotationDataUtils.js +1 -0
- package/es/utils/AnnotationDataUtils.js.map +1 -0
- package/es/utils/ConfigUtils.js +1 -0
- package/es/utils/ConfigUtils.js.map +1 -0
- package/es/utils/PageOperator.js +1 -0
- package/es/utils/PageOperator.js.map +1 -0
- package/es/utils/StepUtils.js +1 -0
- package/es/utils/StepUtils.js.map +1 -0
- package/es/utils/TextUtils.js +1 -0
- package/es/utils/TextUtils.js.map +1 -0
- package/es/utils/ToolStyleUtils.js +1 -0
- package/es/utils/ToolStyleUtils.js.map +1 -0
- package/es/utils/data.js +1 -0
- package/es/utils/data.js.map +1 -0
- package/es/utils/dom.js +1 -0
- package/es/utils/dom.js.map +1 -0
- package/es/utils/index.js +1 -0
- package/es/utils/index.js.map +1 -0
- package/es/views/MainView/annotationOperation/index.js +1 -0
- package/es/views/MainView/annotationOperation/index.js.map +1 -0
- package/es/views/MainView/index.js +1 -0
- package/es/views/MainView/index.js.map +1 -0
- package/es/views/MainView/sidebar/AnnotationText/index.js +1 -0
- package/es/views/MainView/sidebar/AnnotationText/index.js.map +1 -0
- package/es/views/MainView/sidebar/ClearIcon/index.js +1 -0
- package/es/views/MainView/sidebar/ClearIcon/index.js.map +1 -0
- package/es/views/MainView/sidebar/GeneralOperation/index.js +1 -0
- package/es/views/MainView/sidebar/GeneralOperation/index.js.map +1 -0
- package/es/views/MainView/sidebar/ImgAttributeInfo/index.js +1 -0
- package/es/views/MainView/sidebar/ImgAttributeInfo/index.js.map +1 -0
- package/es/views/MainView/sidebar/SwitchAttributeList/index.js +1 -0
- package/es/views/MainView/sidebar/SwitchAttributeList/index.js.map +1 -0
- package/es/views/MainView/sidebar/TagSidebar/index.js +1 -0
- package/es/views/MainView/sidebar/TagSidebar/index.js.map +1 -0
- package/es/views/MainView/sidebar/TextAreaFormat/index.js +1 -0
- package/es/views/MainView/sidebar/TextAreaFormat/index.js.map +1 -0
- package/es/views/MainView/sidebar/TextToolSidebar/index.js +1 -0
- package/es/views/MainView/sidebar/TextToolSidebar/index.js.map +1 -0
- package/es/views/MainView/sidebar/ToolStyle/index.js +1 -0
- package/es/views/MainView/sidebar/ToolStyle/index.js.map +1 -0
- package/es/views/MainView/sidebar/index.js +1 -0
- package/es/views/MainView/sidebar/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/index.js +1 -0
- package/es/views/MainView/toolFooter/FooterTips/index.js.map +1 -0
- package/es/views/MainView/toolFooter/HiddenTips/index.js +1 -0
- package/es/views/MainView/toolFooter/HiddenTips/index.js.map +1 -0
- package/es/views/MainView/toolFooter/PageNumber/index.js +1 -0
- package/es/views/MainView/toolFooter/PageNumber/index.js.map +1 -0
- package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +1 -0
- package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js.map +1 -0
- package/es/views/MainView/toolFooter/ZoomController/index.js +1 -0
- package/es/views/MainView/toolFooter/ZoomController/index.js.map +1 -0
- package/es/views/MainView/toolFooter/index.js +1 -0
- package/es/views/MainView/toolFooter/index.js.map +1 -0
- package/es/views/MainView/toolHeader/ExportData/index.js +1 -0
- package/es/views/MainView/toolHeader/ExportData/index.js.map +1 -0
- package/es/views/MainView/toolHeader/StepSwitch/index.js +1 -0
- package/es/views/MainView/toolHeader/StepSwitch/index.js.map +1 -0
- package/es/views/MainView/toolHeader/headerOption/index.js +1 -0
- package/es/views/MainView/toolHeader/headerOption/index.js.map +1 -0
- package/es/views/MainView/toolHeader/index.js +1 -0
- package/es/views/MainView/toolHeader/index.js.map +1 -0
- package/package.json +98 -0
|
@@ -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 declare 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 declare type ToolStyleActionTypes = InitToolStyleConfig | UpdateToolStyleConfig;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { IStepInfo } from '@/types/step';
|
|
2
|
+
export default class AnnotationDataUtils {
|
|
3
|
+
/**
|
|
4
|
+
* 复制上一张图片结果
|
|
5
|
+
* @param copyResult 复制的结果
|
|
6
|
+
* @param step 复制的步骤
|
|
7
|
+
* @param currentResult 当前的步骤
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
static copyResultChange(copyResult: string, step: number, currentResult: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* 判断结果sourceID与依赖数据的id是否能对应
|
|
13
|
+
* @param result
|
|
14
|
+
* @param basicResultList
|
|
15
|
+
*/
|
|
16
|
+
static isResultSourceMatchedDependence(result: any, basicResultList: any[]): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 获取依赖增量更新的内容
|
|
19
|
+
* @param result
|
|
20
|
+
* @param basicResultList
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
static deltaUpdateBasicResultList(result: any, basicResultList: any[]): any[];
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param stepResult
|
|
27
|
+
* @param toolInstance
|
|
28
|
+
* @param stepConfig
|
|
29
|
+
* @param basicResultList 获取初始化数据 该部分默认输入需要为空数组
|
|
30
|
+
* @param isInitData
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
static getInitialResultList(stepResult: any[] | undefined, toolInstance: any, stepConfig: any, basicResultList: any[], isInitData: boolean): any;
|
|
34
|
+
/**
|
|
35
|
+
* 修正数据,找到被删除的数据,并将依赖该数据的结果全部删除
|
|
36
|
+
* @param newResStr 新提交的数据
|
|
37
|
+
* @param oldResStr 当前的数据
|
|
38
|
+
* @param step 当前操作的步骤
|
|
39
|
+
* @param stepList 步骤列表
|
|
40
|
+
*/
|
|
41
|
+
static dataCorrection(newResStr: string, oldResStr: string, step: number, stepList: IStepInfo[]): string;
|
|
42
|
+
/**
|
|
43
|
+
* id sort 规则
|
|
44
|
+
* @param a
|
|
45
|
+
* @param b
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
static idCmp(a: any, b: any): 0 | 1 | -1;
|
|
49
|
+
/**
|
|
50
|
+
* 找到结果被删除的id
|
|
51
|
+
* @param newResForCurStep
|
|
52
|
+
* @param oldResForCurStep
|
|
53
|
+
* @returns {Array<string>}
|
|
54
|
+
*/
|
|
55
|
+
static findDeletedIds(newResForCurStep: any[], oldResForCurStep: any[]): any[];
|
|
56
|
+
/**
|
|
57
|
+
* 找到被删除的结果
|
|
58
|
+
* @param oldResForCurStep
|
|
59
|
+
* @param newResForCurStep
|
|
60
|
+
* @returns {Array<any>}
|
|
61
|
+
*/
|
|
62
|
+
static findDeletedItems(oldResForCurStep: any[], newResForCurStep: any[]): any[];
|
|
63
|
+
/**
|
|
64
|
+
* 根据结果找到所有的步骤
|
|
65
|
+
* @param res
|
|
66
|
+
* @returns {Array<number>} 结果步骤列表
|
|
67
|
+
*/
|
|
68
|
+
static getStepKeys(res: any): number[];
|
|
69
|
+
/**
|
|
70
|
+
* 删除依赖数据的结果
|
|
71
|
+
* @param resData 当前文件的结果
|
|
72
|
+
* @param dataSourceStep 依赖步骤
|
|
73
|
+
* @param deletedIds 需要删除的sourceID
|
|
74
|
+
* @param stepKeys 结果的步骤
|
|
75
|
+
*/
|
|
76
|
+
static deleteRes(resData: any, dataSourceStep: number, deletedIds: string[], stepKeys: number[]): void;
|
|
77
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { EPageTurningOperation } from '../data/enums/AnnotationSize';
|
|
2
|
+
interface IPageInfo {
|
|
3
|
+
fileIndex: number;
|
|
4
|
+
basicIndex: number;
|
|
5
|
+
basicList: any[];
|
|
6
|
+
fileList: any[];
|
|
7
|
+
step: number;
|
|
8
|
+
stepList: any[];
|
|
9
|
+
}
|
|
10
|
+
declare class PageOperator {
|
|
11
|
+
static getPageInfo(annotationStore: any): {
|
|
12
|
+
fileIndex: any;
|
|
13
|
+
basicIndex: any;
|
|
14
|
+
basicList: any;
|
|
15
|
+
fileList: any;
|
|
16
|
+
step: any;
|
|
17
|
+
stepList: any;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @param pageTurningOperation
|
|
22
|
+
* @param nextIndex
|
|
23
|
+
*/
|
|
24
|
+
static getNextPageInfo(pageTurningOperation: EPageTurningOperation, annotationStore: any, nextIndex?: number): {
|
|
25
|
+
fileIndex: number;
|
|
26
|
+
basicIndex: number;
|
|
27
|
+
fileIndexChanged: boolean;
|
|
28
|
+
basicIndexChanged: boolean;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* 获取下一个依赖索引
|
|
32
|
+
* @param pageTurningOperation
|
|
33
|
+
*/
|
|
34
|
+
static getNextBasicIndex: (pageTurningOperation: EPageTurningOperation, basicIndex: number) => number;
|
|
35
|
+
/**
|
|
36
|
+
* 存在下一个依赖数据
|
|
37
|
+
* @param pageTurningOperation
|
|
38
|
+
*/
|
|
39
|
+
static hasNextBasicIndex: (pageTurningOperation: EPageTurningOperation, pageInfo: IPageInfo) => boolean;
|
|
40
|
+
static getBasicResultIndexForNextFile: (pageInfo: IPageInfo, fileIndex: number) => number;
|
|
41
|
+
/**
|
|
42
|
+
* 计算下一个文件的索引
|
|
43
|
+
* @param pageTurningOperation
|
|
44
|
+
* @param fileIndex
|
|
45
|
+
*/
|
|
46
|
+
static getNextFileIndex: (pageTurningOperation: EPageTurningOperation, pageInfo: IPageInfo, fileIndex?: number | undefined) => number;
|
|
47
|
+
}
|
|
48
|
+
export default PageOperator;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IStepInfo } from '@/types/step';
|
|
2
|
+
export default class StepUtils {
|
|
3
|
+
/**
|
|
4
|
+
* 获取当前步骤的步骤配置信息,用于当前标注配置的获取
|
|
5
|
+
* @export
|
|
6
|
+
* @param {number} currentStep
|
|
7
|
+
* @param {IStepInfo[]} stepList
|
|
8
|
+
* @returns {*}
|
|
9
|
+
*/
|
|
10
|
+
static getCurrentStepInfo(currentStep: number, stepList: IStepInfo[]): IStepInfo;
|
|
11
|
+
/**
|
|
12
|
+
* 找到指定步骤的数据
|
|
13
|
+
* @param step 获取的步骤
|
|
14
|
+
* @param stepList 步骤列表
|
|
15
|
+
* @returns 步骤配置
|
|
16
|
+
*/
|
|
17
|
+
static getStepInfo(step: number, stepList: IStepInfo[]): IStepInfo;
|
|
18
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ETextType } from '@/data/enums/ToolType';
|
|
2
|
+
export declare const REGEXP_NUMBER = "^[0-9]+$";
|
|
3
|
+
export declare const REGEXP_ENGLISH = "^[A-Za-z]+$";
|
|
4
|
+
export declare class TextUtils {
|
|
5
|
+
static checkString(textCheckType: ETextType, customFormat: string): string;
|
|
6
|
+
static getErrorNotice(textCheckType: ETextType): "" | "请按仅数字的格式输入" | "请按仅英文的格式输入" | "请按要求的格式输入";
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class ToolStyleUtils {
|
|
2
|
+
static changeOpacity: {
|
|
3
|
+
[a: number]: number;
|
|
4
|
+
};
|
|
5
|
+
static colorSplit(color: string, opacity: number): string;
|
|
6
|
+
static computeOpacity(opacity: number, color: string): number;
|
|
7
|
+
static getToolColors(borderOpacityParam?: number, fillOpacityParam?: number): {
|
|
8
|
+
[a: number]: any;
|
|
9
|
+
};
|
|
10
|
+
static getAttributeColors(borderOpacityParam?: number, fillOpacityParam?: number): string[];
|
|
11
|
+
static getDefaultToolLineColors(): any;
|
|
12
|
+
static initByOpacity(borderOpacity: number, fillOpacity: number): {
|
|
13
|
+
toolColor: {
|
|
14
|
+
[a: number]: any;
|
|
15
|
+
};
|
|
16
|
+
attributeColor: string[];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 解析结果,将图片信息注入到结果
|
|
3
|
+
* @param result
|
|
4
|
+
* @param basicImgInfo
|
|
5
|
+
*/
|
|
6
|
+
export declare const composeResultWithBasicImgInfo: (result: string, basicImgInfo: {
|
|
7
|
+
[a: string]: any;
|
|
8
|
+
}) => string;
|
|
9
|
+
export declare const composeResult: (result: string, pos: {
|
|
10
|
+
step: number;
|
|
11
|
+
stepList: any[];
|
|
12
|
+
}, newData: {
|
|
13
|
+
rect: any[];
|
|
14
|
+
basicRectID?: string;
|
|
15
|
+
}) => string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
export declare type BasicTarget<T = HTMLElement> = (() => T | null) | T | null | MutableRefObject<T | null | undefined>;
|
|
3
|
+
declare type TargetElement = HTMLElement | Element | Document | Window;
|
|
4
|
+
export declare function getTargetElement(target?: BasicTarget<TargetElement>, defaultElement?: TargetElement): TargetElement | undefined | null;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AppState } from 'src/store';
|
|
3
|
+
import { ImgAttributeState } from 'src/store/imgAttribute/types';
|
|
4
|
+
import { IFileItem } from '@/types/data';
|
|
5
|
+
import { IStepInfo } from '@/types/step';
|
|
6
|
+
import { AnnotationEngine } from '@sensetime/annotation';
|
|
7
|
+
interface IProps extends AppState {
|
|
8
|
+
imgAttribute: ImgAttributeState;
|
|
9
|
+
imgList: IFileItem[];
|
|
10
|
+
exportData: any[];
|
|
11
|
+
config: string;
|
|
12
|
+
stepList: IStepInfo[];
|
|
13
|
+
step: number;
|
|
14
|
+
imgIndex: number;
|
|
15
|
+
annotationEngine: AnnotationEngine;
|
|
16
|
+
loading: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps, "dispatch" | "imgAttribute" | "toolStyle">>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GraphToolInstance } from '@/store/annotation/types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
toolInstance: GraphToolInstance;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps, "toolInstance">>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ToolInstance } from '@/store/annotation/types';
|
|
3
|
+
import { IStepInfo } from '@/types/step';
|
|
4
|
+
import { AnnotationFileList } from '@/types/data';
|
|
5
|
+
interface IProps {
|
|
6
|
+
toolInstance: ToolInstance;
|
|
7
|
+
stepInfo: IStepInfo;
|
|
8
|
+
imgList: AnnotationFileList;
|
|
9
|
+
imgIndex: number;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps, "imgIndex" | "imgList" | "toolInstance" | "stepInfo">>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ImgAttributeState } from '@/store/imgAttribute/types';
|
|
2
|
+
interface IProps {
|
|
3
|
+
imgAttribute: ImgAttributeState;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("react-redux").ConnectedComponent<(props: IProps) => JSX.Element, import("react-redux").Omit<IProps, "imgAttribute">>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GraphToolInstance } from 'src/store/annotation/types';
|
|
3
|
+
import { IStepInfo } from '@/types/step';
|
|
4
|
+
interface IProps {
|
|
5
|
+
toolInstance: GraphToolInstance;
|
|
6
|
+
stepInfo: IStepInfo;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps, "toolInstance" | "stepInfo">>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TagOperation } from '@sensetime/annotation';
|
|
3
|
+
interface IProps {
|
|
4
|
+
imgIndex: number;
|
|
5
|
+
toolInstance: TagOperation;
|
|
6
|
+
}
|
|
7
|
+
export declare const expandIconFuc: ({ isActive }: any) => JSX.Element;
|
|
8
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps, "imgIndex" | "toolInstance">>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IStepInfo } from '@/types/step';
|
|
3
|
+
import TextToolOperation from '@sensetime/annotation/dist/types/core/toolOperation/TextToolOperation';
|
|
4
|
+
interface ITextareaWithFooterProps {
|
|
5
|
+
textareaProps?: any;
|
|
6
|
+
footer?: any;
|
|
7
|
+
}
|
|
8
|
+
export declare const TextareaWithFooter: (props: ITextareaWithFooterProps) => JSX.Element;
|
|
9
|
+
interface IProps {
|
|
10
|
+
dispatch: Function;
|
|
11
|
+
toolInstance: TextToolOperation;
|
|
12
|
+
imgIndex: number;
|
|
13
|
+
triggerEventAfterIndexChanged: boolean;
|
|
14
|
+
step: number;
|
|
15
|
+
stepList: IStepInfo[];
|
|
16
|
+
basicResultList: any[];
|
|
17
|
+
}
|
|
18
|
+
export declare const SingleTextInput: (props: any) => JSX.Element;
|
|
19
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps, "stepList" | "step" | "imgIndex" | "basicResultList" | "toolInstance" | "dispatch" | "triggerEventAfterIndexChanged">>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ToolStyleState } from '@/store/toolStyle/types';
|
|
2
|
+
interface IProps {
|
|
3
|
+
toolStyle: ToolStyleState;
|
|
4
|
+
config: string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import("react-redux").ConnectedComponent<(props: IProps) => JSX.Element, import("react-redux").Omit<IProps, "config" | "toolStyle">>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export declare const revoke: {
|
|
2
|
+
name: string;
|
|
3
|
+
icon: any;
|
|
4
|
+
shortCut: string[];
|
|
5
|
+
};
|
|
6
|
+
export declare const restore: {
|
|
7
|
+
name: string;
|
|
8
|
+
icon: any;
|
|
9
|
+
shortCut: string[];
|
|
10
|
+
};
|
|
11
|
+
export declare const scale: {
|
|
12
|
+
name: string;
|
|
13
|
+
icon: any;
|
|
14
|
+
shortCut: any[];
|
|
15
|
+
};
|
|
16
|
+
export declare const fullScreen: {
|
|
17
|
+
name: string;
|
|
18
|
+
icon: any;
|
|
19
|
+
shortCut: string[];
|
|
20
|
+
};
|
|
21
|
+
export declare const rotate: {
|
|
22
|
+
name: string;
|
|
23
|
+
icon: any;
|
|
24
|
+
shortCut: string[];
|
|
25
|
+
noticeInfo: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const setValid: {
|
|
28
|
+
name: string;
|
|
29
|
+
icon: any;
|
|
30
|
+
shortCut: string[];
|
|
31
|
+
};
|
|
32
|
+
export declare const backward: {
|
|
33
|
+
name: string;
|
|
34
|
+
icon: any;
|
|
35
|
+
shortCut: string[];
|
|
36
|
+
};
|
|
37
|
+
export declare const forward: {
|
|
38
|
+
name: string;
|
|
39
|
+
icon: any;
|
|
40
|
+
shortCut: string[];
|
|
41
|
+
};
|
|
42
|
+
export declare const backwardPage: {
|
|
43
|
+
name: string;
|
|
44
|
+
icon: any;
|
|
45
|
+
shortCut: string[];
|
|
46
|
+
};
|
|
47
|
+
export declare const forwardPage: {
|
|
48
|
+
name: string;
|
|
49
|
+
icon: any;
|
|
50
|
+
shortCut: string[];
|
|
51
|
+
};
|
|
52
|
+
export declare const dargWithRightClick: {
|
|
53
|
+
name: string;
|
|
54
|
+
icon: any;
|
|
55
|
+
shortCut: any[];
|
|
56
|
+
noticeInfo: string;
|
|
57
|
+
};
|
|
58
|
+
export declare const dargWithLeftClick: {
|
|
59
|
+
name: string;
|
|
60
|
+
icon: any;
|
|
61
|
+
shortCut: any[];
|
|
62
|
+
};
|
|
63
|
+
export declare const forwardWithEnter: {
|
|
64
|
+
name: string;
|
|
65
|
+
icon: any;
|
|
66
|
+
shortCut: string[];
|
|
67
|
+
};
|
|
68
|
+
export declare const copyBackwardResult: {
|
|
69
|
+
name: string;
|
|
70
|
+
icon: any;
|
|
71
|
+
shortCut: string[];
|
|
72
|
+
};
|
|
73
|
+
export declare const attributeLock: {
|
|
74
|
+
name: string;
|
|
75
|
+
icon: any;
|
|
76
|
+
shortCut: string[];
|
|
77
|
+
};
|
|
78
|
+
export declare const attributeClickLock: {
|
|
79
|
+
name: string;
|
|
80
|
+
icon: any;
|
|
81
|
+
shortCut: any[];
|
|
82
|
+
};
|
|
83
|
+
export declare const tabChangeSelected: {
|
|
84
|
+
name: string;
|
|
85
|
+
icon: any;
|
|
86
|
+
shortCut: string[];
|
|
87
|
+
};
|
|
88
|
+
export declare const tabReverseChangeSelected: {
|
|
89
|
+
name: string;
|
|
90
|
+
icon: any;
|
|
91
|
+
shortCut: string[];
|
|
92
|
+
};
|
|
93
|
+
export declare const hidden: {
|
|
94
|
+
name: string;
|
|
95
|
+
icon: any;
|
|
96
|
+
noticeInfo: string;
|
|
97
|
+
shortCut: string[];
|
|
98
|
+
};
|
|
99
|
+
export declare const changeSpecialLine: {
|
|
100
|
+
name: string;
|
|
101
|
+
icon: any;
|
|
102
|
+
noticeInfo: string;
|
|
103
|
+
shortCut: any[];
|
|
104
|
+
};
|
|
105
|
+
export declare const saveResult: {
|
|
106
|
+
name: string;
|
|
107
|
+
icon: any;
|
|
108
|
+
shortCut: string[];
|
|
109
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
isSingleImg?: boolean;
|
|
4
|
+
style?: any;
|
|
5
|
+
}
|
|
6
|
+
export interface IShortcuts {
|
|
7
|
+
name: string;
|
|
8
|
+
icon: any;
|
|
9
|
+
shortCut: string[];
|
|
10
|
+
noticeInfo?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const ToolHotKey: React.FC<IProps>;
|
|
13
|
+
export default ToolHotKey;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export declare const line: {
|
|
2
|
+
name: string;
|
|
3
|
+
icon: any;
|
|
4
|
+
shortCut: any[];
|
|
5
|
+
};
|
|
6
|
+
export declare const invalidLine: {
|
|
7
|
+
name: string;
|
|
8
|
+
icon: any;
|
|
9
|
+
shortCut: any[];
|
|
10
|
+
};
|
|
11
|
+
export declare const horizontalLine: {
|
|
12
|
+
name: string;
|
|
13
|
+
icon: any;
|
|
14
|
+
shortCut: any[];
|
|
15
|
+
};
|
|
16
|
+
export declare const selectLine: {
|
|
17
|
+
name: string;
|
|
18
|
+
icon: any;
|
|
19
|
+
shortCut: any[];
|
|
20
|
+
};
|
|
21
|
+
export declare const changeLineAttribute: {
|
|
22
|
+
name: string;
|
|
23
|
+
icon: any;
|
|
24
|
+
shortCut: string[];
|
|
25
|
+
};
|
|
26
|
+
export declare const deleteLine: {
|
|
27
|
+
name: string;
|
|
28
|
+
icon: any;
|
|
29
|
+
noticeInfo: string;
|
|
30
|
+
shortCut: any[];
|
|
31
|
+
};
|
|
32
|
+
export declare const keepLine: {
|
|
33
|
+
name: string;
|
|
34
|
+
icon: any;
|
|
35
|
+
noticeInfo: string;
|
|
36
|
+
shortCut: string[];
|
|
37
|
+
};
|
|
38
|
+
export declare const insertPoint: {
|
|
39
|
+
name: string;
|
|
40
|
+
icon: any;
|
|
41
|
+
noticeInfo: string;
|
|
42
|
+
shortCut: any[];
|
|
43
|
+
};
|
|
44
|
+
export declare const deletePoint: {
|
|
45
|
+
name: string;
|
|
46
|
+
icon: any;
|
|
47
|
+
noticeInfo: string;
|
|
48
|
+
shortCut: any[];
|
|
49
|
+
};
|
|
50
|
+
export declare const suspendAbsorption: {
|
|
51
|
+
name: string;
|
|
52
|
+
icon: any;
|
|
53
|
+
noticeInfo: string;
|
|
54
|
+
shortCut: string[];
|
|
55
|
+
};
|
|
56
|
+
export declare const preLine: {
|
|
57
|
+
name: string;
|
|
58
|
+
icon: any;
|
|
59
|
+
shortCut: string[];
|
|
60
|
+
};
|
|
61
|
+
export declare const nextLine: {
|
|
62
|
+
name: string;
|
|
63
|
+
icon: any;
|
|
64
|
+
shortCut: string[];
|
|
65
|
+
};
|
|
66
|
+
declare const lineToolShortCutTable: {
|
|
67
|
+
name: string;
|
|
68
|
+
icon: any;
|
|
69
|
+
shortCut: any[];
|
|
70
|
+
}[];
|
|
71
|
+
export default lineToolShortCutTable;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const drawPoint: {
|
|
2
|
+
name: string;
|
|
3
|
+
icon: any;
|
|
4
|
+
shortCut: any[];
|
|
5
|
+
};
|
|
6
|
+
export declare const drawInvalidPoint: {
|
|
7
|
+
name: string;
|
|
8
|
+
icon: any;
|
|
9
|
+
shortCut: any[];
|
|
10
|
+
};
|
|
11
|
+
export declare const selectPoint: {
|
|
12
|
+
name: string;
|
|
13
|
+
icon: any;
|
|
14
|
+
shortCut: any[];
|
|
15
|
+
noticeInfo: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const deletePoint: {
|
|
18
|
+
name: string;
|
|
19
|
+
icon: any;
|
|
20
|
+
shortCut: string[];
|
|
21
|
+
};
|
|
22
|
+
declare const pointToolShortCutTable: {
|
|
23
|
+
name: string;
|
|
24
|
+
icon: any;
|
|
25
|
+
shortCut: any[];
|
|
26
|
+
}[];
|
|
27
|
+
export default pointToolShortCutTable;
|