@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,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
toolName?: string;
|
|
4
|
+
style?: any;
|
|
5
|
+
title?: React.ReactElement<any>;
|
|
6
|
+
}
|
|
7
|
+
interface IShortCutInfo {
|
|
8
|
+
name: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
shortCut?: string[];
|
|
11
|
+
noticeInfo?: string;
|
|
12
|
+
}
|
|
13
|
+
interface IComponentsProps {
|
|
14
|
+
style?: any;
|
|
15
|
+
title?: React.ReactElement<any>;
|
|
16
|
+
shortCutList: IShortCutInfo[];
|
|
17
|
+
}
|
|
18
|
+
export declare const shortCutTable: {
|
|
19
|
+
[a: string]: IShortCutInfo[];
|
|
20
|
+
};
|
|
21
|
+
export declare const ToolHotKeyCom: React.FC<IComponentsProps>;
|
|
22
|
+
declare const ToolHotKey: React.FC<IProps>;
|
|
23
|
+
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;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare const polygon: {
|
|
2
|
+
name: string;
|
|
3
|
+
icon: any;
|
|
4
|
+
shortCut: any[];
|
|
5
|
+
};
|
|
6
|
+
export declare const invalidPolygon: {
|
|
7
|
+
name: string;
|
|
8
|
+
icon: any;
|
|
9
|
+
shortCut: any[];
|
|
10
|
+
};
|
|
11
|
+
export declare const selectedPolygon: {
|
|
12
|
+
name: string;
|
|
13
|
+
icon: any;
|
|
14
|
+
shortCut: any[];
|
|
15
|
+
noticeInfo: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const changePolygonAttribute: {
|
|
18
|
+
name: string;
|
|
19
|
+
icon: any;
|
|
20
|
+
shortCut: string[];
|
|
21
|
+
};
|
|
22
|
+
export declare const deletePolygon: {
|
|
23
|
+
name: string;
|
|
24
|
+
icon: any;
|
|
25
|
+
shortCut: string[];
|
|
26
|
+
};
|
|
27
|
+
export declare const keepLine: {
|
|
28
|
+
name: string;
|
|
29
|
+
icon: any;
|
|
30
|
+
shortCut: string[];
|
|
31
|
+
};
|
|
32
|
+
export declare const insertPolygonPoint: {
|
|
33
|
+
name: string;
|
|
34
|
+
icon: any;
|
|
35
|
+
noticeInfo: string;
|
|
36
|
+
shortCut: any[];
|
|
37
|
+
};
|
|
38
|
+
export declare const deletePolygonPoint: {
|
|
39
|
+
name: string;
|
|
40
|
+
icon: any;
|
|
41
|
+
noticeInfo: string;
|
|
42
|
+
shortCut: any[];
|
|
43
|
+
};
|
|
44
|
+
export declare const changeSpecialPoint: {
|
|
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 splitPolygon: {
|
|
57
|
+
name: string;
|
|
58
|
+
icon: any;
|
|
59
|
+
noticeInfo: string;
|
|
60
|
+
shortCut: string[];
|
|
61
|
+
};
|
|
62
|
+
export declare const combinePolygon: {
|
|
63
|
+
name: string;
|
|
64
|
+
icon: any;
|
|
65
|
+
noticeInfo: string;
|
|
66
|
+
shortCut: string[];
|
|
67
|
+
};
|
|
68
|
+
export declare const segmentByAlgorithm: {
|
|
69
|
+
name: string;
|
|
70
|
+
icon: any;
|
|
71
|
+
noticeInfo: string;
|
|
72
|
+
shortCut: string[];
|
|
73
|
+
};
|
|
74
|
+
export declare const changeRenderPattern: {
|
|
75
|
+
name: string;
|
|
76
|
+
icon: any;
|
|
77
|
+
noticeInfo: string;
|
|
78
|
+
shortCut: string[];
|
|
79
|
+
};
|
|
80
|
+
declare const pointToolShortCutTable: {
|
|
81
|
+
name: string;
|
|
82
|
+
icon: any;
|
|
83
|
+
shortCut: any[];
|
|
84
|
+
}[];
|
|
85
|
+
export default pointToolShortCutTable;
|
package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const drawRect: {
|
|
2
|
+
name: string;
|
|
3
|
+
icon: any;
|
|
4
|
+
shortCut: any[];
|
|
5
|
+
};
|
|
6
|
+
export declare const drawInvalidRect: {
|
|
7
|
+
name: string;
|
|
8
|
+
icon: any;
|
|
9
|
+
shortCut: any[];
|
|
10
|
+
};
|
|
11
|
+
export declare const selectRect: {
|
|
12
|
+
name: string;
|
|
13
|
+
icon: any;
|
|
14
|
+
shortCut: any[];
|
|
15
|
+
noticeInfo: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const changeValid: {
|
|
18
|
+
name: string;
|
|
19
|
+
icon: any;
|
|
20
|
+
shortCut: string[];
|
|
21
|
+
};
|
|
22
|
+
export declare const changeValidByClick: {
|
|
23
|
+
name: string;
|
|
24
|
+
icon: any;
|
|
25
|
+
shortCut: any[];
|
|
26
|
+
};
|
|
27
|
+
export declare const deleteRect: {
|
|
28
|
+
name: string;
|
|
29
|
+
icon: any;
|
|
30
|
+
shortCut: any[];
|
|
31
|
+
noticeInfo: string;
|
|
32
|
+
};
|
|
33
|
+
declare const rectToolShortcutTable: {
|
|
34
|
+
name: string;
|
|
35
|
+
icon: any;
|
|
36
|
+
shortCut: any[];
|
|
37
|
+
}[];
|
|
38
|
+
export default rectToolShortcutTable;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ToolInstance } from '@/store/annotation/types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
toolInstance: ToolInstance;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import("react-redux").ConnectedComponent<(props: IProps) => JSX.Element | null, import("react-redux").Omit<IProps, "toolInstance">>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GraphToolInstance } from '@/store/annotation/types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
toolInstance: GraphToolInstance;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import("react-redux").ConnectedComponent<(props: IProps) => JSX.Element | null, import("react-redux").Omit<IProps, "toolInstance">>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IPaginationProps {
|
|
3
|
+
imgIndex: number;
|
|
4
|
+
totalPage: number;
|
|
5
|
+
pageJump: (page: string) => void;
|
|
6
|
+
pageForward: () => void;
|
|
7
|
+
pageBackward: () => void;
|
|
8
|
+
footerCls: string;
|
|
9
|
+
isVideo?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface IPageProps {
|
|
12
|
+
jumpSkip: Function;
|
|
13
|
+
imgIndex: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* page input for changing current page or file index
|
|
17
|
+
* @param props
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
export declare const PageInput: (props: IPageProps) => JSX.Element;
|
|
21
|
+
export declare const Pagination: React.FC<IPaginationProps>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ToolInstance } from '@/store/annotation/types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
toolInstance: ToolInstance;
|
|
5
|
+
zoom?: number;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}, "toolInstance">>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ToolInstance } from '@/store/annotation/types';
|
|
3
|
+
import { FooterTheme } from '../index';
|
|
4
|
+
interface IZoomControllerProps {
|
|
5
|
+
mode?: FooterTheme;
|
|
6
|
+
initialPosition?: () => void;
|
|
7
|
+
zoomIn?: () => void;
|
|
8
|
+
zoomOut?: () => void;
|
|
9
|
+
zoom?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const ZoomController: React.FC<IZoomControllerProps>;
|
|
12
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<{
|
|
13
|
+
toolInstance: ToolInstance;
|
|
14
|
+
mode: FooterTheme;
|
|
15
|
+
}>, import("react-redux").Omit<{
|
|
16
|
+
toolInstance: ToolInstance;
|
|
17
|
+
mode: FooterTheme;
|
|
18
|
+
} & {
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}, "toolInstance">>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { RenderFooter } from '@/types/main';
|
|
2
|
+
import { IStepInfo } from '@/types/step';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export type FooterTheme = 'light' | 'dark';
|
|
5
|
+
interface IProps {
|
|
6
|
+
totalPage: number;
|
|
7
|
+
imgIndex: number;
|
|
8
|
+
style?: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
stepList: IStepInfo[];
|
|
12
|
+
step: number;
|
|
13
|
+
basicResultList: any[];
|
|
14
|
+
basicIndex: number;
|
|
15
|
+
mode?: FooterTheme;
|
|
16
|
+
footer?: RenderFooter;
|
|
17
|
+
skipBeforePageTurning?: (pageTurning: Function) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const footerCls: string;
|
|
20
|
+
export declare const FooterDivider: () => JSX.Element;
|
|
21
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
}, "stepList" | "step" | "imgIndex" | "basicResultList" | "basicIndex" | "skipBeforePageTurning" | "totalPage">>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ToolInstance } from '@/store/annotation/types';
|
|
3
|
+
import { IFileItem, OnSubmit } from '@/types/data';
|
|
4
|
+
import { Dispatch } from 'redux';
|
|
5
|
+
interface IProps {
|
|
6
|
+
toolInstance: ToolInstance;
|
|
7
|
+
imgList: IFileItem[];
|
|
8
|
+
onSubmit?: OnSubmit;
|
|
9
|
+
exportData?: (imgList: IFileItem[]) => void;
|
|
10
|
+
dispatch: Dispatch;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}, "imgList" | "toolInstance" | "onSubmit" | "dispatch">>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 用于多步骤中的切换
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { IStepInfo } from '@/types/step';
|
|
6
|
+
interface IProps {
|
|
7
|
+
stepProgress: number;
|
|
8
|
+
stepList: IStepInfo[];
|
|
9
|
+
step: number;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}, "stepList" | "step">>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EToolName } from '@/data/enums/ToolType';
|
|
2
|
+
import { IFileItem } from '@/types/data';
|
|
3
|
+
import { Header } from '@/types/main';
|
|
4
|
+
import { IStepInfo } from '@/types/step';
|
|
5
|
+
import { AnnotationEngine } from '@labelbee/lb-annotation';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
interface IToolHeaderProps {
|
|
8
|
+
goBack?: (imgList?: IFileItem[]) => void;
|
|
9
|
+
exportData?: (data: any[]) => void;
|
|
10
|
+
header?: Header;
|
|
11
|
+
headerName?: string;
|
|
12
|
+
imgList: IFileItem[];
|
|
13
|
+
annotationEngine: AnnotationEngine;
|
|
14
|
+
stepProgress: number;
|
|
15
|
+
toolName: EToolName;
|
|
16
|
+
stepInfo: IStepInfo;
|
|
17
|
+
stepList: IStepInfo[];
|
|
18
|
+
step: number;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<IToolHeaderProps>, import("react-redux").Omit<IToolHeaderProps & {
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
}, "stepList" | "step" | "imgList" | "annotationEngine" | "toolName" | "stepInfo" | "stepProgress">>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var lbAnnotation=require("@labelbee/lb-annotation"),index=require("./index.js"),ToolType=require("../data/enums/ToolType.js"),_=require("lodash"),StepUtils=require("./StepUtils.js");function _interopDefaultLegacy(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var ___default=_interopDefaultLegacy(_),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(i,e,t)=>e in i?__defProp(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,__spreadValues=(i,e)=>{for(var t in e||(e={}))__hasOwnProp.call(e,t)&&__defNormalProp(i,t,e[t]);if(__getOwnPropSymbols)for(var t of __getOwnPropSymbols(e))__propIsEnum.call(e,t)&&__defNormalProp(i,t,e[t]);return i},__spreadProps=(i,e)=>__defProps(i,__getOwnPropDescs(e));class AnnotationDataUtils{static copyResultChange(e,t,r){try{const s=index.jsonParser(e),n=index.jsonParser(r),o=`step_${t}`;if(s[o]){const a=s[o];if(a.result)return a.result=a.result.map(u=>__spreadProps(__spreadValues({},u),{id:lbAnnotation.uuid(8,62)})),n[o]=a,JSON.stringify(n)}return e}catch(s){return e}}static isResultSourceMatchedDependence(e,t){const r=e==null?void 0:e.map(n=>n.sourceID).sort(),s=t==null?void 0:t.map(n=>n.id).sort();return ___default.default.isEqual(r,s)}static deltaUpdateBasicResultList(e,t){const r=e==null?void 0:e.map(s=>s.sourceID).sort();return t.filter(s=>!r.includes(s.id))}static getInitialResultList(e,t,r,s,n){const o=e!=null?e:[];switch(r.tool){case ToolType.EToolName.Tag:case ToolType.EToolName.Text:{if(r.dataSourceStep>0){const a=this.deltaUpdateBasicResultList(o,s);if(a.length>0)return o.concat(t.getInitResultList(r.dataSourceStep,a))}return n!==!0?o:t.getInitResultList(r.dataSourceStep,s)}default:return o}}static dataCorrection(e,t,r,s){var n,o;try{const u=`step_${StepUtils.getStepInfo(r,s).step}`,l=index.jsonParser(e),f=index.jsonParser(t),d=(n=l[u])==null?void 0:n.result,c=(o=f[u])==null?void 0:o.result;if(!c||___default.default.isEqual(d.sort(this.idCmp),c.sort(this.idCmp)))return e;const p=this.findDeletedIds(d,c);if(p.length===0)return e;const m=r,h=this.getStepKeys(l).sort();return this.deleteRes(l,m,p,h),JSON.stringify(l)}catch(a){return console.error(a),e}}static idCmp(e,t){const r=e.id,s=t.id;return r<s?-1:r>s?1:0}static findDeletedIds(e,t){return this.findDeletedItems(t,e).map(r=>r.id)}static findDeletedItems(e,t){const r=[];return e.forEach(s=>{t.some(o=>o.id===s.id)||r.push(s)}),r}static getStepKeys(e){return Object.keys(e).map(t=>parseInt(t.replace("step_",""),10)).filter(t=>!isNaN(t))}static deleteRes(e,t,r,s){s.forEach(n=>{if(n>t){const o=e[`step_${n}`];if([ToolType.EToolName.FolderTag,ToolType.EToolName.Segmentation].includes(o.tool))return;if(o.dataSourceStep===t){const a=[];o.result=o.result.filter(u=>r.includes(u.sourceID)?(a.push(u.id),!1):!0),this.deleteRes(e,n,a,s)}else o.result=o.result.filter(a=>!r.includes(a.sourceID))}})}}module.exports=AnnotationDataUtils;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _=require("lodash");class ConfigUtils{static jsonParser(r,e={}){try{return typeof r=="string"?JSON.parse(r):_.isObject(r)?r:e}catch(t){return e}}}ConfigUtils.getStepConfig=(s,r)=>s.find(e=>e.step===r),exports.ConfigUtils=ConfigUtils;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var AnnotationSize=require("../data/enums/AnnotationSize.js"),_=require("lodash"),index=require("./index.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ___default=_interopDefaultLegacy(_);const _PageOperator=class{static getPageInfo(e){const{imgIndex:n,imgList:s,basicResultList:t,basicIndex:r,step:a,stepList:d}=e;return{fileIndex:n,basicIndex:r,basicList:t,fileList:s,step:a,stepList:d}}static getNextPageInfo(e,n,s){const t=_PageOperator.getPageInfo(n),{fileIndex:r}=_PageOperator.getPageInfo(n),a=_PageOperator.getNextFileIndex(e,t,s),d=_PageOperator.getNextBasicIndex(e,t.basicIndex),c=a!==r,l=_PageOperator.hasNextBasicIndex(e,t),i={fileIndex:a,basicIndex:d,fileIndexChanged:c,basicIndexChanged:l};return l?(i.fileIndexChanged=!1,i.fileIndex=r,i):(i.basicIndex=e===AnnotationSize.EPageTurningOperation.Backward?_PageOperator.getBasicResultIndexForNextFile(t,i.fileIndex):0,i)}};let PageOperator=_PageOperator;PageOperator.getNextBasicIndex=(e,n)=>n+(e===AnnotationSize.EPageTurningOperation.Forward?1:-1),PageOperator.hasNextBasicIndex=(e,n)=>{const{basicList:s}=n;if((s==null?void 0:s.length)>0){const t=_PageOperator.getNextBasicIndex(e,n.basicIndex);return t>=0&&s.length>t}return!1},PageOperator.getBasicResultIndexForNextFile=(e,n)=>{var s;const{stepList:t,step:r,fileList:a}=e,d=t.find(l=>l.step===r),c=d==null?void 0:d.dataSourceStep;if(c){const i=(s=index.jsonParser(a[n].result)[`step_${c}`])==null?void 0:s.result;return!i||!(i==null?void 0:i.length)?0:(i==null?void 0:i.length)-1}return 0},PageOperator.getNextFileIndex=(e,n,s)=>{const{fileIndex:t,fileList:r}=n;let a=s!==void 0?s:t;switch(e){case AnnotationSize.EPageTurningOperation.Forward:a+=1;break;case AnnotationSize.EPageTurningOperation.Backward:a-=1;break;case AnnotationSize.EPageTurningOperation.Jump:break}return ___default.default.inRange(a,0,r.length)?a:t},module.exports=PageOperator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var index=require("../constant/index.js"),ToolUtils=require("./ToolUtils.js");class StepUtils{static getCurrentStepInfo(o,e){const t=this.getStepInfo(o,e);return[index.EStepType.QUALITY_INSPECTION,index.EStepType.MANUAL_CORRECTION].includes(t==null?void 0:t.type)?this.getStepInfo(t.dataSourceStep,e):t}static getStepInfo(o,e){return e==null?void 0:e.filter(t=>t.step===o)[0]}static currentToolIsVideo(o,e){const t=StepUtils.getCurrentStepInfo(o,e);return ToolUtils.isVideoTool(t==null?void 0:t.tool)}static currentToolIsPointCloud(o,e){const t=StepUtils.getCurrentStepInfo(o,e);return ToolUtils.isPointCloudTool(t==null?void 0:t.tool)}}module.exports=StepUtils;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var ToolType=require("../data/enums/ToolType.js"),lbUtils=require("@labelbee/lb-utils");const REGEXP_NUMBER="^[0-9]+$",REGEXP_ENGLISH="^[A-Za-z]+$";class TextUtils{static checkString(t,r){let e="";switch(t){case ToolType.ETextType.Order:case ToolType.ETextType.NumberOnly:e=REGEXP_NUMBER;break;case ToolType.ETextType.EnglishOnly:e=REGEXP_ENGLISH;break;case ToolType.ETextType.CustomFormat:e=r;break}return e}static getErrorNotice(t){switch(t){case ToolType.ETextType.Order:case ToolType.ETextType.NumberOnly:return lbUtils.i18n.t("TextCheckNumberOnly");case ToolType.ETextType.EnglishOnly:return lbUtils.i18n.t("TextCheckEnglishOnly");case ToolType.ETextType.CustomFormat:return lbUtils.i18n.t("TextCheckCustomFormat");default:return""}}}exports.REGEXP_ENGLISH=REGEXP_ENGLISH,exports.REGEXP_NUMBER=REGEXP_NUMBER,exports.TextUtils=TextUtils;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Style=require("../data/Style.js"),_=require("lodash");function _interopDefaultLegacy(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var ___default=_interopDefaultLegacy(_);const FILL_OPACITY=.8,_ToolStyleUtils=class{static colorSplit(o,r){return o.split(" ").join("").replace(/,[0-9]+([.]{1}[0-9]+){0,1}\)/,`,${r.toFixed(2)})`)}static computeOpacity(o,r){var t,i;let a=(i=(((t=r.split(" ").join("").match(/,[0-9]+([.]{1}[0-9]+){0,1}\)/))==null?void 0:t[0])||"").match(/[0-9]+([.]{1}[0-9]+){0,1}/))==null?void 0:i[0];return o*Number(a)}static getToolColors(o=9,r=9){const t=_ToolStyleUtils.colorSplit,i=_ToolStyleUtils.computeOpacity,d=___default.default.cloneDeep(Style.CHANGE_COLOR),a=Style.BORDER_OPACITY_LEVEL[o],s=Style.FILL_OPACITY_LEVEL[r];return Object.keys(Style.CHANGE_COLOR).forEach(e=>{const l=___default.default.cloneDeep(Style.DEFAULT_COLOR);l.valid.stroke=t(Style.CHANGE_COLOR[e].valid,i(a,Style.CHANGE_COLOR[e].valid)),l.valid.fill=t(Style.CHANGE_COLOR[e].valid,i(s,Style.CHANGE_COLOR[e].valid)*FILL_OPACITY),l.validSelected.stroke=t(Style.CHANGE_COLOR[e].select.stroke,i(a,Style.CHANGE_COLOR[e].select.stroke)),l.validSelected.fill=t(Style.CHANGE_COLOR[e].select.fill,i(s,Style.CHANGE_COLOR[e].select.fill)*FILL_OPACITY),l.validHover.stroke=t(Style.CHANGE_COLOR[e].hover,i(a,Style.CHANGE_COLOR[e].hover)),l.validHover.fill=t(Style.CHANGE_COLOR[e].hover,i(s,Style.CHANGE_COLOR[e].hover)*FILL_OPACITY),l.invalid.stroke=t(l.invalid.stroke,i(a,l.invalid.stroke)),l.invalid.fill=t(l.invalid.stroke,i(s,l.invalid.stroke)*FILL_OPACITY),l.invalidSelected.stroke=t(l.invalidSelected.stroke,i(a,l.invalidSelected.stroke)),l.invalidSelected.fill=t(l.invalidSelected.fill,i(s,l.invalidSelected.fill)*FILL_OPACITY),l.invalidHover.stroke=t(l.invalidHover.stroke,i(a,l.invalidHover.fill)),l.invalidHover.fill=t(l.invalidHover.fill,i(s,l.invalidHover.fill)*FILL_OPACITY),d[e]=l}),d}static getAttributeColors(o=9,r=9){const t=_ToolStyleUtils.colorSplit,i=_ToolStyleUtils.computeOpacity,d=Style.BORDER_OPACITY_LEVEL[o],a=Style.FILL_OPACITY_LEVEL[r];let s=___default.default.cloneDeep(Style.COLORS_ARRAY);return s.unshift(Style.NULL_COLOR),s=s.map(e=>{const l=JSON.parse(JSON.stringify(Style.DEFAULT_COLOR));return l.valid.stroke=t(e,i(d,e)),l.valid.fill=t(e,i(a,e)*FILL_OPACITY*.5),l.validSelected.stroke=t(e,i(d,e)),l.validSelected.fill=t(e,i(a,e)*FILL_OPACITY),l.validHover.stroke=t(e,i(d,e)),l.validHover.fill=t(e,i(a,e)*FILL_OPACITY),l.invalid.stroke=t(l.invalid.stroke,i(d,e)),l.invalid.fill=t(l.invalid.fill,i(a,e)*FILL_OPACITY*.5),l.invalidSelected.stroke=t(l.invalidSelected.stroke,i(d,e)),l.invalidSelected.fill=t(l.invalidSelected.fill,i(a,e)*FILL_OPACITY),l.invalidHover.stroke=t(l.invalidHover.stroke,i(d,e)),l.invalidHover.fill=t(l.invalidHover.fill,i(a,e)*FILL_OPACITY),l}),s}static getDefaultToolLineColors(){const o={};return Object.keys(Style.CHANGE_COLOR).forEach(r=>{o[r]=Style.CHANGE_COLOR[r].line}),o}static initByOpacity(o,r){return{toolColor:this.getToolColors(o,r),attributeColor:this.getAttributeColors(o,r)}}};let ToolStyleUtils=_ToolStyleUtils;ToolStyleUtils.changeOpacity={1:.2,3:.4,5:.6,7:.8,9:1},exports.ToolStyleUtils=ToolStyleUtils;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var lbAnnotation=require("@labelbee/lb-annotation");const{EVideoToolName,EPointCloudName,EToolName}=lbAnnotation.cTool;class ToolUtils{static isVideoTool(o){return o?Object.values(EVideoToolName).includes(o):!1}static isPointCloudTool(o){return o?Object.values(EPointCloudName).includes(o):!1}static getPointCloudToolList(){return[EToolName.Point,EToolName.Line,EToolName.PointCloudPolygon]}}module.exports=ToolUtils;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var index=require("./index.js"),StepUtils=require("./StepUtils.js"),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(r,e,t)=>e in r?__defProp(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,__spreadValues=(r,e)=>{for(var t in e||(e={}))__hasOwnProp.call(e,t)&&__defNormalProp(r,t,e[t]);if(__getOwnPropSymbols)for(var t of __getOwnPropSymbols(e))__propIsEnum.call(e,t)&&__defNormalProp(r,t,e[t]);return r},__spreadProps=(r,e)=>__defProps(r,__getOwnPropDescs(e));const composeResultWithBasicImgInfo=(r,e)=>JSON.stringify(__spreadValues(__spreadValues({},index.jsonParser(r)),e)),composeResult=(r,e,t,c)=>{const{step:a,stepList:l}=e,{rect:n,basicRectID:u}=t;try{const s=index.jsonParser(r),f=StepUtils.getCurrentStepInfo(a,l),{dataSourceStep:_}=f,i=`step_${f.step}`;if(s[i]){const o=s[i];return Object.assign(o,c),o.result?(JSON.stringify(o.result)===JSON.stringify(n)||(u?o.result=[...o.result.filter(p=>!(p.sourceID&&p.sourceID===u)),...n.filter(p=>p.sourceID&&p.sourceID===u)]:o.result=n),JSON.stringify(s)):JSON.stringify(__spreadProps(__spreadValues({},s),{[i]:__spreadProps(__spreadValues(__spreadValues({},s[i]),c),{result:n})}))}return JSON.stringify(__spreadProps(__spreadValues({},s),{[i]:__spreadProps(__spreadValues({dataSourceStep:_},c),{toolName:l[a-1].tool,result:n})}))}catch(s){return r}};exports.composeResult=composeResult,exports.composeResultWithBasicImgInfo=composeResultWithBasicImgInfo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var index=require("../constant/index.js");function getTargetElement(e,n){if(!e)return n;let t;return typeof e=="function"?t=e():"current"in e?t=e.current:t=e,t}const getClassName=(e,n,t)=>`${index.prefix}-${e}${n?"__"+n:""}${t?"__"+t:""}`;exports.getClassName=getClassName,exports.getTargetElement=getTargetElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _=require("lodash");function _interopDefaultLegacy(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var ___default=_interopDefaultLegacy(_);const jsonParser=(r,e={})=>{try{return typeof r=="string"?JSON.parse(r):___default.default.isObject(r)?r:e}catch(t){return e}},classnames=r=>{if(Array.isArray(r))return r.filter(e=>e).join(" ");if(___default.default.isObject(r)){const e=[];return Object.keys(r).forEach(t=>{r[t]&&e.push(t)}),e.join(" ")}return""};exports.classnames=classnames,exports.jsonParser=jsonParser;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var index=require("../../../index.js"),ctx=require("../../../store/ctx.js"),es=require("antd/es"),_=require("lodash"),React=require("react"),reactRedux=require("react-redux"),FileError=require("../../../components/fileException/FileError.js"),useSize=require("../../../hooks/useSize.js"),actionCreators=require("../../../store/toolStyle/actionCreators.js"),lbAnnotation=require("@labelbee/lb-annotation"),lbUtils=require("@labelbee/lb-utils"),StepUtils=require("../../../utils/StepUtils.js");function _interopDefaultLegacy(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var ___default=_interopDefaultLegacy(_),React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,r,o)=>r in t?__defProp(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o,__spreadValues=(t,r)=>{for(var o in r||(r={}))__hasOwnProp.call(r,o)&&__defNormalProp(t,o,r[o]);if(__getOwnPropSymbols)for(var o of __getOwnPropSymbols(r))__propIsEnum.call(r,o)&&__defNormalProp(t,o,r[o]);return t},__spreadProps=(t,r)=>__defProps(t,__getOwnPropDescs(r));const AnnotationOperation=t=>{const[,r]=React.useState(0),{imgAttribute:o,toolStyle:s,toolInstance:e,annotationEngine:n,imgList:f,imgIndex:b,dataInjectionAtCreation:d,renderEnhance:g,customRenderStyle:c,stepList:v,step:y,drawLayerSlot:p}=t,[E,m]=React.useState({zoom:1,currentPos:{x:0,y:0}}),S=React.useRef(null),I=React.useRef(null),l=useSize(S);React.useEffect(()=>{index.store.dispatch(actionCreators.InitToolStyleConfig())},[]),React.useEffect(()=>{if(!!n){switch(lbUtils.i18n.language){case"cn":case"en":n.setLang(lbUtils.i18n.language);break}n==null||n.setDataInjectionAtCreation(d),n==null||n.setRenderEnhance(g),c&&(n==null||n.setCustomRenderStyle(c))}},[n,d,g,c]),React.useEffect(()=>{const a=(i,P)=>{m({zoom:i,currentPos:P})},u=i=>{m(i)};return e&&(e.singleOn("messageError",i=>{es.message.error(i)}),e.singleOn("messageInfo",i=>{es.message.info(i)}),e.singleOn("changeAnnotationShow",()=>{r(i=>i+1)}),e.on("renderZoom",a),e.on("dragMove",u)),()=>{e&&(e.unbind("renderZoom",a),e.unbind("dragMove",u))}},[e]),React.useEffect(()=>{var a;(n==null?void 0:n.setImgAttribute)?n.setImgAttribute(o):(a=e==null?void 0:e.setImgAttribute)==null||a.call(e,o)},[o,n]),React.useEffect(()=>{e&&e.setStyle(s),n&&n.setStyle(s)},[s]),React.useEffect(()=>{(e==null?void 0:e.setSize)&&e.setSize(l),n&&n.setSize(l)},[l]),React.useEffect(()=>{const a=StepUtils.getCurrentStepInfo(y,v);e==null||e.setConfig(a.config)},[v]);const O=()=>{const a=f==null?void 0:f[b];!(a==null?void 0:a.url)||lbAnnotation.ImgUtils.load(a.url).then(u=>{n.setImgNode(u)})};return React__default.default.createElement("div",{ref:S,className:"annotationOperation"},React__default.default.createElement("div",{className:"canvas",ref:I,style:l,id:"toolContainer"},p==null?void 0:p(E)),(e==null?void 0:e.isImgError)===!0&&React__default.default.createElement(FileError,__spreadProps(__spreadValues({},l),{reloadImage:O,backgroundColor:"#e2e2e2",ignoreOffsetY:!0})))},mapStateToProps=t=>{const r=___default.default.pickBy(t.annotation,(o,s)=>["imgList","imgIndex","stepList","step","toolInstance","annotationEngine","loading"].includes(s));return __spreadValues({imgAttribute:t.imgAttribute,toolStyle:t.toolStyle},r)};var AnnotationOperation$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(AnnotationOperation);module.exports=AnnotationOperation$1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var React=require("react"),antd=require("antd"),index=require("../../../constant/index.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const AnnotationTips=({path:e,tips:t})=>!e&&!t?null:React__default.default.createElement("div",{className:`${index.prefix}-tips`},React__default.default.createElement(antd.Tooltip,{placement:"bottomRight",title:t},React__default.default.createElement("span",{className:`${index.prefix}-tips__leftContent`,title:t},t)),React__default.default.createElement(antd.Tooltip,{placement:"bottomRight",title:e},React__default.default.createElement("span",{className:`${index.prefix}-tips__path`},e)));module.exports=AnnotationTips;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var index=require("../../components/customResizeHook/index.js"),index$5=require("../../constant/index.js"),antd=require("antd"),es=require("antd/es"),React=require("react"),index$8=require("./annotationOperation/index.js"),index$7=require("./annotationTips/index.js"),index$3=require("./sidebar/index.js"),index$9=require("./toolFooter/index.js"),index$2=require("./toolHeader/index.js"),reducer=require("../../store/annotation/reducer.js"),index$6=require("../../components/videoAnnotate/index.js"),reactRedux=require("react-redux"),ToolUtils=require("../../utils/ToolUtils.js"),index$a=require("../../components/pointCloudView/index.js"),dom=require("../../utils/dom.js"),index$1=require("../../utils/index.js"),ctx=require("../../store/ctx.js"),index$4=require("../../components/predictTracking/previewResult/index.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,a)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,__spreadValues=(e,t)=>{for(var a in t||(t={}))__hasOwnProp.call(t,a)&&__defNormalProp(e,a,t[a]);if(__getOwnPropSymbols)for(var a of __getOwnPropSymbols(t))__propIsEnum.call(t,a)&&__defNormalProp(e,a,t[a]);return e};const{Sider,Content}=es.Layout,layoutCls=`${index$5.prefix}-layout`,ImageAnnotate=e=>{var t;return React__default.default.createElement(React__default.default.Fragment,null,e.showTips===!0&&React__default.default.createElement(index$7,{path:e.path,tips:e.tips}),React__default.default.createElement(index$8,__spreadValues({},e)),React__default.default.createElement(index$9.default,{style:(t=e.style)==null?void 0:t.footer,mode:e.mode,footer:e==null?void 0:e.footer}))},PointCloudAnnotate=e=>{var t;return React__default.default.createElement(React__default.default.Fragment,null,React__default.default.createElement(index$a,{drawLayerSlot:e.drawLayerSlot,checkMode:e.checkMode,intelligentFit:e.intelligentFit}),React__default.default.createElement(index$9.default,{style:(t=e.style)==null?void 0:t.footer,mode:e.mode,footer:e==null?void 0:e.footer}))},AnnotatedArea=e=>{var t;const{stepList:a,step:n}=e,r=(t=reducer.getStepConfig(a,n))==null?void 0:t.tool,i=ToolUtils.isVideoTool(r),l=ToolUtils.isPointCloudTool(r);return i?React__default.default.createElement(index$6,__spreadValues({},e)):l?React__default.default.createElement(PointCloudAnnotate,__spreadValues({},e)):React__default.default.createElement(ImageAnnotate,__spreadValues({},e))},MainView=e=>{var t,a,n,r,i;const l=(a=(t=e.style)==null?void 0:t.sider)==null?void 0:a.width;return React__default.default.createElement(index.ViewportProvider,null,React__default.default.createElement(antd.Spin,{spinning:e.loading},React__default.default.createElement(es.Layout,{className:index$1.classnames([layoutCls,e.className]),style:(n=e.style)==null?void 0:n.layout},React__default.default.createElement("header",{className:`${layoutCls}__header`,style:(r=e.style)==null?void 0:r.header},React__default.default.createElement(index$2,{header:e==null?void 0:e.header,headerName:e.headerName,goBack:e.goBack,exportData:e.exportData})),React__default.default.createElement(es.Layout,{className:dom.getClassName("layout","container")},e==null?void 0:e.leftSider,React__default.default.createElement(Content,{className:`${layoutCls}__content`},React__default.default.createElement(AnnotatedArea,__spreadValues({},e))),React__default.default.createElement(Sider,{className:`${layoutCls}__side`,width:l!=null?l:240,style:(i=e.style)==null?void 0:i.sider},React__default.default.createElement(index$3.default,{sider:e==null?void 0:e.sider})),React__default.default.createElement(index$4,null)))))},mapStateToProps=({annotation:e})=>{var t,a,n;const{imgList:r,loading:i}=e,l=(t=r[e.imgIndex])!=null?t:{};return{path:(n=(a=l==null?void 0:l.path)!=null?a:l==null?void 0:l.url)!=null?n:"",loading:i}};var MainView$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(MainView);module.exports=MainView$1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var React=require("react"),es=require("antd/es"),index=require("../TextAreaFormat/index.js"),TextUtils=require("../../../../utils/TextUtils.js"),reactRedux=require("react-redux"),ctx=require("../../../../store/ctx.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const AnnotationText=({toolInstance:e})=>{var u;const[,n]=React.useState(0);if(React.useEffect(()=>{e&&(e.singleOn("selectedChange",()=>{n(r=>r+1)}),e.singleOn("updateTextAttribute",()=>{n(r=>r+1)}),e.singleOn("messageError",r=>{es.message.error(r)}))},[e]),!e)return null;const{config:t}=e;return React__default.default.createElement("div",null,((u=e==null?void 0:e.config)==null?void 0:u.textConfigurable)&&e.selectedID&&React__default.default.createElement(index,{onChange:e.textChange,textValue:e.selectedText,checkString:TextUtils.TextUtils.checkString(t==null?void 0:t.textCheckType,t==null?void 0:t.customFormat),textCheckType:t.textCheckType}))};function mapStateToProps(e){return{toolInstance:e.annotation.toolInstance}}var AnnotationText$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(AnnotationText);module.exports=AnnotationText$1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var es=require("antd/es"),React=require("react"),icon_clearSmall=require("../../../../assets/annotation/common/icon_clearSmall.svg.js"),actionCreators=require("../../../../store/imgAttribute/actionCreators.js"),index=require("../../../../index.js"),icon_clearSmall_a=require("../../../../assets/annotation/common/icon_clearSmall_a.svg.js"),reactI18next=require("react-i18next");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const clearIcon=()=>{const[e,t]=React.useState(!1),r=()=>{index.store.dispatch(actionCreators.InitImgAttribute())},{t:a}=reactI18next.useTranslation();return React__default.default.createElement(es.Tooltip,{placement:"bottom",title:a("RestoreImageAttributes")},React__default.default.createElement("img",{onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),style:{marginLeft:6},src:e?icon_clearSmall_a:icon_clearSmall,onClick:o=>{o.stopPropagation(),r()}}))};module.exports=clearIcon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var React=require("react"),antd=require("antd"),reactI18next=require("react-i18next"),index=require("../../../../constant/index.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const forbidStyle={color:"#CCCCCC"},PopconfirmTitle=({info:e})=>{const{t}=reactI18next.useTranslation();return e.key.startsWith("sure")?React__default.default.createElement("div",{key:e.key},`${t("ConfirmTo")}${e.name.slice(0)}\uFF1F`):React__default.default.createElement("span",null,e.name)},ActionIcon=({icon:e})=>typeof e=="string"?React__default.default.createElement("img",{width:23,height:25,src:e}):e,ShowIcon=({isHover:e,info:t})=>{const r=!!t.forbidOperation,l=t.key===e&&!r;let n={color:l?"#666fff":""};return r&&(n=forbidStyle),React__default.default.createElement("div",{style:{cursor:r?"not-allowed":"default"},onClick:()=>{var c;return(t==null?void 0:t.forbidConfirm)&&!r&&((c=t==null?void 0:t.onClick)==null?void 0:c.call(t))}},React__default.default.createElement("div",{className:"icon"},React__default.default.createElement(ActionIcon,{icon:l?t.hoverSvg:t.imgSvg})),React__default.default.createElement("div",{className:"toolName",style:n},t.name))},ActionsConfirm=({allOperation:e})=>{const t=React.useRef(null),[r,l]=React.useState(null),{t:n}=reactI18next.useTranslation(),c=Math.floor(24/e.length);return React__default.default.createElement("div",{className:"generalOperation",ref:t},e.map((a,u)=>React__default.default.createElement(antd.Col,{span:c,key:u},React__default.default.createElement("div",{key:a.key,className:"item",onMouseEnter:()=>{l(a.key)},onMouseLeave:()=>{l(null)}},a.forbidConfirm?React__default.default.createElement(ShowIcon,{info:a,isHover:r}):React__default.default.createElement(antd.Popconfirm,{title:React__default.default.createElement(PopconfirmTitle,{info:a}),placement:"topRight",okText:n("Confirm"),cancelText:n("Cancel"),getPopupContainer:()=>{var o;return(o=t.current)!=null?o:document.body},onConfirm:a.onClick,overlayClassName:`${index.prefix}-pop-confirm`},React__default.default.createElement("div",null,React__default.default.createElement(ShowIcon,{info:a,isHover:r})))))))};module.exports=ActionsConfirm;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),reactRedux=require("react-redux"),StepUtils=require("../../../../utils/StepUtils.js"),index=require("../../../../utils/index.js"),ActionsConfirm=require("./ActionsConfirm.js"),useOperationList=require("./useOperationList.js"),ctx=require("../../../../store/ctx.js"),unitAttribute=require("../../../../assets/annotation/pointCloudTool/unitAttribute.svg.js"),unitAttributeForbid=require("../../../../assets/annotation/pointCloudTool/unitAttributeForbid.svg.js"),unitAttributeHover=require("../../../../assets/annotation/pointCloudTool/unitAttributeHover.svg.js"),reactI18next=require("react-i18next"),index$1=require("../../../../components/pointCloudView/components/UnifyParamsModal/index.js"),useSingleBox=require("../../../../components/pointCloudView/hooks/useSingleBox.js"),reducer=require("../../../../store/annotation/reducer.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const mapStateToProps=e=>{var t,n;const o=StepUtils.getCurrentStepInfo((t=e.annotation)==null?void 0:t.step,(n=e.annotation)==null?void 0:n.stepList);return{toolInstance:e.annotation.toolInstance,stepInfo:o,imgList:e.annotation.imgList,imgIndex:e.annotation.imgIndex,stepList:e.annotation.stepList}},GeneralOperation=({toolInstance:e,stepInfo:t})=>{const n=useOperationList(e),o=index.jsonParser(t==null?void 0:t.config),i=[n.empty];return(t==null?void 0:t.dataSourceStep)===0&&i.push(n.setValidity),(o==null?void 0:o.copyBackwardResult)&&i.push(n.copyPrevious),React__default.default.createElement(ActionsConfirm,{allOperation:i})},PointCloudOperation=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(({toolInstance:e,stepInfo:t,imgList:n,stepList:o,imgIndex:i})=>{const{t:p}=reactI18next.useTranslation(),{selectedBox:r}=useSingleBox.useSingleBox(),a=useOperationList(e),[v,s]=React.useState(!1),[f,m]=React.useState([]),u=index.jsonParser(t.config);let l=[a.copyPrevious,a.empty,a.setValidity];if(u.trackConfigurable===!0){const d=!r,x={name:p("UnifyParams"),key:"UnifyParams",imgSvg:d?unitAttributeForbid:unitAttribute,hoverSvg:unitAttributeHover,onClick:()=>{m(reducer.composeResultByToolInstance({toolInstance:e,imgList:n,imgIndex:i,stepList:o})),s(!0)},forbidConfirm:!0,forbidOperation:d};l.unshift(x)}const g=React.useCallback(()=>{s(!1)},[]),c=r==null?void 0:r.info;return React__default.default.createElement(React__default.default.Fragment,null,React__default.default.createElement(ActionsConfirm,{allOperation:l}),React__default.default.createElement(index$1,{id:c==null?void 0:c.trackID,visible:v,onCancel:g,config:u,imgList:f}))});var GeneralOperation$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(GeneralOperation);exports.PointCloudOperation=PointCloudOperation,exports.default=GeneralOperation$1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var icon_clear=require("../../../../assets/annotation/common/icon_clear.svg.js"),icon_clear_a=require("../../../../assets/annotation/common/icon_clear_a.svg.js"),icon_invalid=require("../../../../assets/annotation/common/icon_invalid.svg.js"),icon_invalid_a=require("../../../../assets/annotation/common/icon_invalid_a.svg.js"),icons=require("@ant-design/icons"),reactI18next=require("react-i18next"),React=require("react"),actionCreators=require("../../../../store/annotation/actionCreators.js"),index=require("../../../../index.js"),ctx=require("../../../../store/ctx.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,r,t)=>r in e?__defProp(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,__spreadValues=(e,r)=>{for(var t in r||(r={}))__hasOwnProp.call(r,t)&&__defNormalProp(e,t,r[t]);if(__getOwnPropSymbols)for(var t of __getOwnPropSymbols(r))__propIsEnum.call(r,t)&&__defNormalProp(e,t,r[t]);return e};const useOperationList=e=>{const[r,t]=React.useState(0),{t:a,i18n:o}=reactI18next.useTranslation(),{currentData:s}=ctx.useSelector(i=>{const{imgList:v,imgIndex:d}=i.annotation;return{currentData:v[d]}}),n={height:"25px",lineHeight:"25px",display:"flex",justifyContent:"center",alignItems:"center"},c={name:a("ClearLabel"),key:"empty",imgSvg:icon_clear,hoverSvg:icon_clear_a,onClick:()=>{e==null||e.clearResult()}},l={name:a((e==null?void 0:e.valid)===!1?"SetAsValid":"SetAsInvalid"),key:"setValidity",imgSvg:React__default.default.createElement(icons.StopOutlined,{style:n}),hoverSvg:React__default.default.createElement(icons.StopOutlined,{style:__spreadValues({color:"#666fff"},n)}),onClick:()=>{e.setValid(!e.valid),setTimeout(()=>{t(i=>i+1)})}},u={name:a("CopyThePrevious"),key:"copyPrevious",imgSvg:icon_invalid,hoverSvg:icon_invalid_a,onClick:()=>{index.store.dispatch(actionCreators.CopyBackWordResult())}};return React.useMemo(()=>({empty:c,setValidity:l,copyPrevious:u}),[e,r,s,o.language])};module.exports=useOperationList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var es=require("antd/es"),reactRedux=require("react-redux"),_=require("lodash"),React=require("react"),actionCreators=require("../../../../store/imgAttribute/actionCreators.js"),index=require("../../../../index.js"),ctx=require("../../../../store/ctx.js"),saturation=require("../../../../assets/annotation/image/saturation.svg.js"),contrast=require("../../../../assets/annotation/image/contrast.svg.js"),brightness=require("../../../../assets/annotation/image/brightness.svg.js"),zoomUp=require("../../../../assets/attributeIcon/zoomUp.svg.js"),icon_yuantu=require("../../../../assets/annotation/image/icon_yuantu.svg.js"),reactI18next=require("react-i18next");function _interopDefaultLegacy(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var React__default=_interopDefaultLegacy(React);const ImgAttributeInfo=t=>{const{imgAttribute:{contrast:r,saturation:s,brightness:l,zoomRatio:i,isOriginalSize:o}}=t,{t:n}=reactI18next.useTranslation(),a=_.throttle(e=>{index.store.dispatch(actionCreators.default.UpdateImgAttribute(e))},60,{trailing:!0}),u=[{name:"Saturation",min:-100,max:500,step:2,onChange:e=>a({saturation:e}),value:s,svg:saturation},{name:"Contrast",min:-100,max:300,step:2,onChange:e=>a({contrast:e}),value:r,svg:contrast},{name:"Exposure",min:-100,max:400,step:2,onChange:e=>a({brightness:e}),value:l,svg:brightness},{name:"ScreenRatio",min:.1,max:10,step:.1,onChange:e=>a({zoomRatio:e}),value:i,svg:zoomUp}];return React.useEffect(()=>()=>{index.store.dispatch(actionCreators.default.InitImgAttribute())},[]),React__default.default.createElement("div",null,u.map((e,c)=>React__default.default.createElement("div",{className:"imgAttributeController",key:`option_${c}`},React__default.default.createElement(es.Row,{className:"tools",style:{padding:"0px 0"}},React__default.default.createElement(es.Col,{span:24},React__default.default.createElement("span",{className:"singleTool"},React__default.default.createElement("img",{width:12,height:12,src:e.svg}),React__default.default.createElement("span",{className:"toolName"},n(e.name))))),React__default.default.createElement(es.Row,null,React__default.default.createElement(es.Col,{span:20},React__default.default.createElement(es.Slider,{min:e.min,max:e.max,step:e.step,value:e.value,onChange:e.onChange,trackStyle:{background:"#666fff"}})),React__default.default.createElement(es.Col,{span:4},React__default.default.createElement(es.Input,{value:e.value,disabled:!0,style:{fontSize:12,marginBottom:23,padding:"0px 2px",textAlign:"center"}}))))),React__default.default.createElement("div",{className:"imgAttributeController"},React__default.default.createElement(es.Row,{className:"tools",style:{padding:"10px 0"}},React__default.default.createElement(es.Col,{span:18},React__default.default.createElement("span",{className:"singleTool"},React__default.default.createElement("img",{src:icon_yuantu,width:16,style:{marginTop:"-2px"}}),React__default.default.createElement("span",{className:"toolName"},n("OriginalScale")))),React__default.default.createElement(es.Col,null,React__default.default.createElement(es.Switch,{checked:o,onChange:e=>a({isOriginalSize:e})})))))};function mapStateToProps({imgAttribute:t}){return{imgAttribute:t}}var ImgAttributeInfo$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(ImgAttributeInfo);module.exports=ImgAttributeInfo$1;
|
package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var actionCreators=require("../../../../../../store/annotation/actionCreators.js"),reducer=require("../../../../../../store/annotation/reducer.js"),ctx=require("../../../../../../store/ctx.js"),antd=require("antd"),React=require("react"),reactI18next=require("react-i18next"),reactRedux=require("react-redux");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t));const layout={labelCol:{span:8},wrapperCol:{span:16}},inputStyle={width:"80px"},BatchUpdateModal=({id:e,stepList:t,imgList:r,imgIndex:c,toolInstance:i})=>{const u=ctx.useDispatch(),[m,n]=React.useState(!1),[s]=antd.Form.useForm(),{t:a}=reactI18next.useTranslation(),p=o=>{u(actionCreators.BatchUpdateTrackID({id:e,newID:o.newID,rangeIndex:[o.prevPage-1,o.nextPage-1],imgList:reducer.composeResultByToolInstance({toolInstance:i,imgList:r,imgIndex:c,stepList:t})})),n(!1)},d=()=>n(!1),f=()=>s.submit(),l=[{required:!0,message:a("PositiveIntegerCheck")}];return React__default.default.createElement(React__default.default.Fragment,null,React__default.default.createElement("a",{style:{color:"#666FFF"},onClick:()=>n(!0)},a("BatchUpdateText")),React__default.default.createElement(antd.Modal,{title:a("BatchUpdateTrackID"),visible:m,onCancel:d,onOk:f,wrapClassName:"labelbee-custom-modal"},React__default.default.createElement(antd.Form,__spreadProps(__spreadValues({},layout),{form:s,onFinish:p}),React__default.default.createElement(antd.Form.Item,{name:"id",label:a("CurrentBoxTrackIDs")},e),React__default.default.createElement(antd.Form.Item,{name:"newID",label:a("TrackIDUnifyAs"),rules:l},React__default.default.createElement(antd.InputNumber,{precision:0,min:1,style:inputStyle})),React__default.default.createElement(antd.Form.Item,{label:a("UnifyTrackIDRange"),required:!0},React__default.default.createElement(antd.Form.Item,{style:{display:"inline-block"},rules:l,name:"prevPage",noStyle:!0},React__default.default.createElement(antd.InputNumber,{precision:0,min:1,style:inputStyle})),React__default.default.createElement("span",{style:{display:"inline-block",width:"24px",textAlign:"center"}},"-"),React__default.default.createElement(antd.Form.Item,{style:{display:"inline-block"},rules:l,name:"nextPage",noStyle:!0},React__default.default.createElement(antd.InputNumber,{precision:0,min:1,style:inputStyle})),React__default.default.createElement("span",{style:{display:"inline-block",width:"40x",marginLeft:"10px",textAlign:"center"}},a("Page"))))))},mapStateToProps=e=>({toolInstance:e.annotation.toolInstance,imgList:e.annotation.imgList,imgIndex:e.annotation.imgIndex,stepList:e.annotation.stepList});var BatchUpdateModal$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(BatchUpdateModal);module.exports=BatchUpdateModal$1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var React=require("react"),icons=require("@ant-design/icons"),ToolIcons=require("../ToolIcons.js"),lbAnnotation=require("@labelbee/lb-annotation"),PointCloudContext=require("../../../../components/pointCloudView/PointCloudContext.js"),antd=require("antd"),StepUtils=require("../../../../utils/StepUtils.js"),reactRedux=require("react-redux"),index=require("../../../../utils/index.js"),useStatus=require("../../../../components/pointCloudView/hooks/useStatus.js"),useSingleBox=require("../../../../components/pointCloudView/hooks/useSingleBox.js"),reactI18next=require("react-i18next"),ctx=require("../../../../store/ctx.js"),index$1=require("./components/batchUpdateModal/index.js"),lbUtils=require("@labelbee/lb-utils"),index$2=require("../../../../components/attributeList/index.js"),useAttribute=require("../../../../components/pointCloudView/hooks/useAttribute.js");function _interopDefaultLegacy(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var React__default=_interopDefaultLegacy(React);const AnnotatedBox=({imgList:l,imgIndex:i})=>{const s=React.useContext(PointCloudContext.PointCloudContext),[o,c]=React.useState([]),{t:r}=reactI18next.useTranslation();React.useEffect(()=>{const a=l;let t=new Map;c(lbUtils.PointCloudUtils.getAllPointCloudResult({imgList:a,extraBoxList:m,ignoreIndexList:[i]}).filter(n=>!n.trackID||t.get(n.trackID)?!1:(t.set(n.trackID,!0),!0)).sort((n,u)=>{var d,e;const p=(d=n==null?void 0:n.trackID)!=null?d:0,v=(e=u==null?void 0:u.trackID)!=null?e:0;return p-v}).map(n=>{var u;return(u=n==null?void 0:n.trackID)!=null?u:0}))},[s.pointCloudBoxList,l]);const{pointCloudBoxList:m}=s;return React__default.default.createElement("div",{style:{padding:24,borderBottom:"1px solid #eee"}},React__default.default.createElement("div",{style:{marginBottom:16}},r("AllTrackIDs")),React__default.default.createElement("div",null,o.map(a=>React__default.default.createElement(antd.Tag,{color:"#F3F4FF",key:a,style:{color:"#666",marginBottom:8}},a))))},BoxTrackIDInput=()=>{const[l,i]=React.useState(!1),{pointCloudBoxList:s}=React.useContext(PointCloudContext.PointCloudContext),{selectedBox:o,updateSelectedBox:c}=useSingleBox.useSingleBox(),[r,m]=React.useState(""),{t:a}=reactI18next.useTranslation(),t=o==null?void 0:o.info.trackID,n=d=>!!s.find(p=>p.trackID===d&&p.id!==(o==null?void 0:o.info.id)),u=(d=!1)=>{const e=parseInt(r,10);if(d&&i(!1),isNaN(e)){antd.message.error(a("PositiveIntegerCheck"));return}if(r.indexOf(".")>-1){antd.message.error(a("NotAllowDecimalPointsInTrackID"));return}if(n(e)){antd.message.error(a("DuplicateTrackIDsExist"));return}if(!(e>0)){antd.message.error(a("PositiveIntegerCheck"));return}c({trackID:e})};return React.useEffect(()=>{i(!1)},[t]),React__default.default.createElement("div",{style:{padding:24}},React__default.default.createElement("div",{style:{marginBottom:16,display:"flex",justifyContent:"space-between",alignItems:"center"}},React__default.default.createElement("span",null,a("CurrentBoxTrackIDs")),t&&React__default.default.createElement(index$1,{id:t})),React__default.default.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},l&&t?React__default.default.createElement(antd.Input,{defaultValue:t,onChange:d=>{m(d.target.value)},disabled:!t,size:"small",onBlur:()=>{u()},onPressEnter:()=>{u(!0)}}):React__default.default.createElement("span",null,t),React__default.default.createElement(icons.EditFilled,{style:{color:"#999",marginLeft:16,cursor:typeof t!="undefined"?"pointer":"not-allowed"},onClick:()=>{t&&i(!l)}})))},AttributeUpdater=({attributeList:l,subAttributeList:i,toolInstance:s})=>{const{selectedBox:o}=useSingleBox.useSingleBox(),c=React.useContext(PointCloudContext.PointCloudContext),{t:r}=reactI18next.useTranslation(),{defaultAttribute:m}=useAttribute.useAttribute(),a={fontWeight:500,fontSize:14,margin:"12px 0 8px 20px"},t={margin:"12px 20px 8px",fontSize:14,fontWeight:500,wordWrap:"break-word"},n=e=>{s.setDefaultAttribute(e)},u=(e,p)=>{s.setSubAttribute(e,p)},d=l.map(e=>({label:e.key,value:e.value,color:e==null?void 0:e.color}));return React__default.default.createElement("div",null,React__default.default.createElement("div",{style:a},r("Attribute")),React__default.default.createElement(index$2.default,{list:d,forbidDefault:!0,selectedAttribute:m!=null?m:"",attributeChanged:e=>n(e)}),React__default.default.createElement(antd.Divider,{style:{margin:0}}),o&&React__default.default.createElement(React__default.default.Fragment,null,i.map(e=>{var p,v,x,g,C;return(e==null?void 0:e.subSelected)&&React__default.default.createElement("div",{style:{marginTop:12},key:e.value},React__default.default.createElement("div",{style:t},r("SubAttribute"),"-",e.key),((p=e.subSelected)==null?void 0:p.length)<5?React__default.default.createElement(index$2.default,{list:e.subSelected.map(f=>({label:f.key,value:f.value})),selectedAttribute:(x=(v=c.selectedPointCloudBox)==null?void 0:v.subAttribute)==null?void 0:x[e.value],num:"-",forbidColor:!0,forbidDefault:!0,attributeChanged:f=>u(e.value,f),style:{marginBottom:12}}):React__default.default.createElement(antd.Select,{style:{margin:"0px 21px 17px 16px",width:"87%"},value:(C=(g=c.selectedPointCloudBox)==null?void 0:g.subAttribute)==null?void 0:C[e.value],placeholder:r("PleaseSelect"),onChange:f=>u(e.value,f),allowClear:!0},e.subSelected.map(f=>React__default.default.createElement(antd.Select.Option,{key:f.value,value:f.value},f.key))),React__default.default.createElement(antd.Divider,{style:{margin:0}}))})))},PointCloudToolSidebar=({stepInfo:l,toolInstance:i,imgList:s,imgIndex:o})=>{var c,r;const{updatePointCloudPattern:m,pointCloudPattern:a}=useStatus.useStatus(),t=index.jsonParser(l.config),n=(c=t==null?void 0:t.attributeList)!=null?c:[],u=(t==null?void 0:t.secondaryAttributeConfigurable)===!0?(r=t==null?void 0:t.inputList)!=null?r:[]:[];return React__default.default.createElement(React__default.default.Fragment,null,React__default.default.createElement(ToolIcons.ToolIcons,{toolName:lbAnnotation.cTool.EPointCloudName.PointCloud,selectedToolName:a,onChange:d=>m==null?void 0:m(d)}),(t==null?void 0:t.trackConfigurable)===!0&&React__default.default.createElement(React__default.default.Fragment,null,React__default.default.createElement(AnnotatedBox,{imgList:s,imgIndex:o}),React__default.default.createElement(BoxTrackIDInput,null),React__default.default.createElement(antd.Divider,{style:{margin:0}})),React__default.default.createElement(AttributeUpdater,{toolInstance:i,attributeList:n,subAttributeList:u}))},mapStateToProps=l=>{var i,s,o;const c=StepUtils.getCurrentStepInfo((i=l.annotation)==null?void 0:i.step,(s=l.annotation)==null?void 0:s.stepList),r=(o=l.annotation)==null?void 0:o.toolInstance;return{stepInfo:c,toolInstance:r,imgList:l.annotation.imgList,imgIndex:l.annotation.imgIndex}};var PointCloudToolSidebar$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(PointCloudToolSidebar);module.exports=PointCloudToolSidebar$1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var React=require("react"),antd=require("antd"),pen_a=require("../../../../assets/attributeIcon/pen_a.svg.js"),pen=require("../../../../assets/attributeIcon/pen.svg.js"),eraser_a=require("../../../../assets/attributeIcon/eraser_a.svg.js"),eraser=require("../../../../assets/attributeIcon/eraser.svg.js"),dom=require("../../../../utils/dom.js"),ToolType=require("../../../../data/enums/ToolType.js"),ctx=require("../../../../store/ctx.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const ScribbleSidebar=e=>{const{onChange:n}=e,t=ctx.useSelector(a=>a.annotation.toolInstance),[l,i]=React.useState(20),[r,c]=React.useState(ToolType.EScribblePattern.Scribble),s=()=>{n(r,l)};return React__default.default.createElement("div",{className:dom.getClassName("scribble")},React__default.default.createElement("div",{className:dom.getClassName("scribble","select")},React__default.default.createElement("img",{src:r===ToolType.EScribblePattern.Scribble?pen_a:pen,onClick:()=>{c(ToolType.EScribblePattern.Scribble),t==null||t.setPattern(ToolType.EScribblePattern.Scribble),s()}}),React__default.default.createElement("img",{src:r===ToolType.EScribblePattern.Erase?eraser_a:eraser,onClick:()=>{c(ToolType.EScribblePattern.Erase),t==null||t.setPattern(ToolType.EScribblePattern.Erase),s()}})),React__default.default.createElement("div",{className:dom.getClassName("scribble","silder")},React__default.default.createElement("span",{className:dom.getClassName("scribble","circle")}),React__default.default.createElement(antd.Slider,{onChange:a=>{i(a),s(),t==null||t.setPenSize(a)},min:1,max:50,style:{width:"60%"},value:l}),React__default.default.createElement("span",{className:dom.getClassName("scribble","circle"),style:{width:"10px",height:"10px"}})))};module.exports=ScribbleSidebar;
|