@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,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Point cloud interface for crud
|
|
3
|
+
* @author Glenfiddish <edwinlee0927@hotmail.com>
|
|
4
|
+
* @createdate 2022-08-17
|
|
5
|
+
*/
|
|
6
|
+
import { PointCloudAnnotation, PointCloud } from '@labelbee/lb-annotation';
|
|
7
|
+
import { IPointCloudBox, IPointCloudSphere, IPointUnit, UpdatePolygonByDragList, ILine } from '@labelbee/lb-utils';
|
|
8
|
+
import { ISize } from '@/types/main';
|
|
9
|
+
import { IFileItem } from '@/types/data';
|
|
10
|
+
export declare const topViewPoint2PointCloud: (newPoint: any, size: ISize, pointCloud: PointCloud, selectedPointCloudSphere?: IPointCloudSphere, defaultValue?: {
|
|
11
|
+
[v: string]: any;
|
|
12
|
+
} | undefined) => IPointCloudSphere;
|
|
13
|
+
export declare const topViewPolygon2PointCloud: (newPolygon: any, size: ISize, pointCloud?: PointCloud, selectedPointCloudBox?: IPointCloudBox, defaultValue?: {
|
|
14
|
+
[v: string]: any;
|
|
15
|
+
} | undefined, intelligentFit?: boolean) => {
|
|
16
|
+
boxParams: Omit<IPointCloudBox, "trackID">;
|
|
17
|
+
newPointList: any;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @param sphereParams
|
|
22
|
+
* @param newPoint
|
|
23
|
+
* @param sideViewInstance
|
|
24
|
+
* @param url
|
|
25
|
+
* todo: need to be merged with func synchronizeSideView
|
|
26
|
+
*/
|
|
27
|
+
export declare const syncSideViewByPoint: (sphereParams: IPointCloudSphere, newPoint: IPointUnit, sideViewInstance: PointCloudAnnotation | undefined, url: string, config?: any) => void;
|
|
28
|
+
/**
|
|
29
|
+
* NewBox synchronize sideView
|
|
30
|
+
* @param boxParams
|
|
31
|
+
* @param newPolygon TODO! Need to add type
|
|
32
|
+
*/
|
|
33
|
+
export declare const synchronizeSideView: (boxParams: IPointCloudBox, newPolygon: any, sideViewInstance: PointCloudAnnotation | undefined, url: string) => void;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @param sphereParams
|
|
37
|
+
* @param newPoint
|
|
38
|
+
* @param backViewInstance
|
|
39
|
+
* @param url
|
|
40
|
+
* todo: need to be merged with func synchronizeBackView
|
|
41
|
+
*/
|
|
42
|
+
export declare const syncBackViewByPoint: (sphereParams: IPointCloudSphere, newPoint: IPointUnit, backViewInstance: PointCloudAnnotation | undefined, url: string, config?: any) => void;
|
|
43
|
+
/**
|
|
44
|
+
* NewBox synchronize backView
|
|
45
|
+
* @param boxParams
|
|
46
|
+
* @param newPolygon TODO! Need to add type
|
|
47
|
+
*/
|
|
48
|
+
export declare const synchronizeBackView: (boxParams: IPointCloudBox, newPolygon: any, BackViewInstance: PointCloudAnnotation, url: string) => void;
|
|
49
|
+
export declare const syncTopViewByPoint: (newSphereParams: IPointCloudSphere, newPoint: any, topViewInstance?: PointCloudAnnotation, mainViewInstance?: PointCloud) => void;
|
|
50
|
+
/**
|
|
51
|
+
* NewBox synchronize TopView
|
|
52
|
+
* @param boxParams
|
|
53
|
+
* @param newPolygon TODO! Need to add type
|
|
54
|
+
*/
|
|
55
|
+
export declare const synchronizeTopView: (newBoxParams: IPointCloudBox, newPolygon: any, topViewInstance?: PointCloudAnnotation, mainViewInstance?: PointCloud) => void;
|
|
56
|
+
export declare const usePointCloudViews: () => {
|
|
57
|
+
topViewAddSphere: () => void;
|
|
58
|
+
topViewAddBox: () => void;
|
|
59
|
+
topViewSelectedChanged: () => void;
|
|
60
|
+
sideViewUpdateBox: () => void;
|
|
61
|
+
backViewUpdateBox: () => void;
|
|
62
|
+
topViewUpdatePoint?: undefined;
|
|
63
|
+
sideViewUpdatePoint?: undefined;
|
|
64
|
+
backViewUpdatePoint?: undefined;
|
|
65
|
+
topViewUpdateBox?: undefined;
|
|
66
|
+
topViewUpdateLine?: undefined;
|
|
67
|
+
pointCloudBoxListUpdated?: undefined;
|
|
68
|
+
initPointCloud3d?: undefined;
|
|
69
|
+
updatePointCloudData?: undefined;
|
|
70
|
+
} | {
|
|
71
|
+
topViewAddSphere: ({ newPoint, size, zoom, trackConfigurable, }: {
|
|
72
|
+
newPoint: IPointUnit;
|
|
73
|
+
size: ISize;
|
|
74
|
+
zoom: number;
|
|
75
|
+
trackConfigurable?: boolean | undefined;
|
|
76
|
+
}) => void;
|
|
77
|
+
topViewAddBox: ({ polygon, size, imgList, trackConfigurable, zoom, intelligentFit, }: {
|
|
78
|
+
polygon: any;
|
|
79
|
+
size: ISize;
|
|
80
|
+
imgList: IFileItem[];
|
|
81
|
+
trackConfigurable?: boolean | undefined;
|
|
82
|
+
zoom: number;
|
|
83
|
+
intelligentFit?: boolean | undefined;
|
|
84
|
+
}) => void;
|
|
85
|
+
topViewSelectedChanged: ({ newSelectedBox, newPointCloudList, newSelectedSphere, newSphereList, }: {
|
|
86
|
+
newSelectedBox?: IPointCloudBox | undefined;
|
|
87
|
+
newPointCloudList?: IPointCloudBox[] | undefined;
|
|
88
|
+
newSelectedSphere?: IPointCloudSphere | undefined;
|
|
89
|
+
newSphereList?: IPointCloudSphere[] | undefined;
|
|
90
|
+
}) => void;
|
|
91
|
+
topViewUpdatePoint: (updatePoint: IPointUnit, size: ISize) => void;
|
|
92
|
+
sideViewUpdatePoint: (newPoint: IPointUnit, originPoint: IPointUnit) => void;
|
|
93
|
+
backViewUpdatePoint: (newPoint: IPointUnit, originPoint: IPointUnit) => void;
|
|
94
|
+
topViewUpdateBox: (updateList: UpdatePolygonByDragList, size: ISize) => void;
|
|
95
|
+
topViewUpdateLine: (updateList: ILine, size: ISize) => void;
|
|
96
|
+
sideViewUpdateBox: (newPolygon: any, originPolygon: any) => void;
|
|
97
|
+
backViewUpdateBox: (newPolygon: any, originPolygon: any) => void;
|
|
98
|
+
pointCloudBoxListUpdated: (newBoxes: IPointCloudBox[]) => void;
|
|
99
|
+
initPointCloud3d: (size: ISize) => void;
|
|
100
|
+
updatePointCloudData: (newData?: any) => Promise<void>;
|
|
101
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IPolygonData } from '@labelbee/lb-utils';
|
|
2
|
+
/**
|
|
3
|
+
* PointCloud Polygon Hook
|
|
4
|
+
* @returns
|
|
5
|
+
*/
|
|
6
|
+
export declare const usePolygon: () => {
|
|
7
|
+
addPolygon: (polygon: IPolygonData) => void;
|
|
8
|
+
deletePolygon: (id: string) => void;
|
|
9
|
+
selectedPolygon: IPolygonData | undefined;
|
|
10
|
+
updateSelectedPolygon: (polygon: IPolygonData) => void;
|
|
11
|
+
updatePolygonValidByID: (id: string) => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IPointCloudBox, PartialIPointCloudBoxList } from '@labelbee/lb-utils';
|
|
2
|
+
/** Actions for single selected box */
|
|
3
|
+
export declare const useSingleBox: () => {
|
|
4
|
+
selectedBox: {
|
|
5
|
+
info: IPointCloudBox;
|
|
6
|
+
index: number;
|
|
7
|
+
} | undefined;
|
|
8
|
+
updateSelectedBox: (params: Partial<IPointCloudBox>) => import("@labelbee/lb-utils").IPointCloudBoxList;
|
|
9
|
+
changeSelectedBoxValid: () => void;
|
|
10
|
+
changeValidByID: (id: string) => import("@labelbee/lb-utils").IPointCloudBoxList | undefined;
|
|
11
|
+
selectNextBox: (sort?: any) => void;
|
|
12
|
+
selectPrevBox: () => void;
|
|
13
|
+
deletePointCloudBox: (id: string) => void;
|
|
14
|
+
selectedBoxes: IPointCloudBox[];
|
|
15
|
+
updateSelectedBoxes: (updateList: PartialIPointCloudBoxList) => import("@labelbee/lb-utils").IPointCloudBoxList | undefined;
|
|
16
|
+
getPointCloudByID: (id: string) => IPointCloudBox | undefined;
|
|
17
|
+
deleteSelectedPointCloudBoxAndPolygon: () => void;
|
|
18
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const useSphere: () => {
|
|
2
|
+
selectedSphere: import("@labelbee/lb-utils").IPointCloudSphere | undefined;
|
|
3
|
+
getPointCloudSphereByID: (id: string) => import("@labelbee/lb-utils").IPointCloudSphere | undefined;
|
|
4
|
+
updatePointCloudSphere: (sphereParams: any) => import("@labelbee/lb-utils").IPointCloudSphereList;
|
|
5
|
+
deletePointCloudSphere: (id: string) => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Update PointCloud Status
|
|
3
|
+
* @createDate 2022-08-26
|
|
4
|
+
* @author Ron <ron.f.luo@gmail.com>
|
|
5
|
+
*/
|
|
6
|
+
import { cTool } from '@labelbee/lb-annotation';
|
|
7
|
+
export declare const useStatus: () => {
|
|
8
|
+
clearAllResult: () => void;
|
|
9
|
+
updatePointCloudPattern: (toolName: any) => void;
|
|
10
|
+
pointCloudPattern: cTool.EToolName.Rect | cTool.EToolName.Point | cTool.EToolName.Polygon | cTool.EToolName.Line;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ICoordinate, ISize } from '@labelbee/lb-utils';
|
|
2
|
+
export declare const useZoom: () => {
|
|
3
|
+
zoom: number;
|
|
4
|
+
setZoom: (zoom: number) => void;
|
|
5
|
+
initialPosition: () => void;
|
|
6
|
+
zoomOut: () => void;
|
|
7
|
+
zoomIn: () => void;
|
|
8
|
+
syncTopviewToolZoom: (currentPos: ICoordinate, zoom: number, size: ISize) => void;
|
|
9
|
+
syncSideviewToolZoom: (currentPos: ICoordinate, zoom: number, size: ISize) => void;
|
|
10
|
+
syncBackviewToolZoom: (currentPos: ICoordinate, zoom: number, size: ISize) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Glenfiddish <edwinlee0927@hotmail.com>
|
|
3
|
+
* @file Point cloud tool view
|
|
4
|
+
* Includes 2D-view、3Dview、top-view、side-view、back-view
|
|
5
|
+
* @date 2022-06-21
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { IFileItem } from '@/types/data';
|
|
9
|
+
import { TDrawLayerSlot } from '@/types/main';
|
|
10
|
+
interface IProps {
|
|
11
|
+
imgList: IFileItem[];
|
|
12
|
+
drawLayerSlot?: TDrawLayerSlot;
|
|
13
|
+
checkMode?: boolean;
|
|
14
|
+
intelligentFit?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}, "imgList">>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IPointCloudBoxWithIndex } from '@/store/annotation/types';
|
|
3
|
+
import { IFileItem } from '@/types/data';
|
|
4
|
+
interface IProps {
|
|
5
|
+
imgList: IFileItem[];
|
|
6
|
+
predictionResultVisible: boolean;
|
|
7
|
+
predictionResult: IPointCloudBoxWithIndex[];
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("react-redux").ConnectedComponent<(props: IProps) => JSX.Element | null, import("react-redux").Omit<IProps, "imgList" | "predictionResult" | "predictionResultVisible">>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { IPointCloudBoxWithIndex } from '@/store/annotation/types';
|
|
2
|
+
import { IFileItem } from '@/types/data';
|
|
3
|
+
import { PointCloud } from '@labelbee/lb-annotation';
|
|
4
|
+
import { EPerspectiveView, IPointCloudBox } from '@labelbee/lb-utils';
|
|
5
|
+
/**
|
|
6
|
+
* Returns a Promise that resolves after the specified duration.
|
|
7
|
+
* @param ms - The duration to sleep, in milliseconds.
|
|
8
|
+
* @returns A Promise that resolves after `ms` milliseconds.
|
|
9
|
+
*/
|
|
10
|
+
export declare const sleep: (time?: number) => Promise<unknown>;
|
|
11
|
+
export declare const views: readonly [EPerspectiveView.Top, EPerspectiveView.Left, EPerspectiveView.Back];
|
|
12
|
+
interface viewDataUrl {
|
|
13
|
+
[EPerspectiveView.Top]?: string;
|
|
14
|
+
[EPerspectiveView.Left]?: string;
|
|
15
|
+
[EPerspectiveView.Back]?: string;
|
|
16
|
+
}
|
|
17
|
+
export type IBox = IPointCloudBoxWithIndex & viewDataUrl;
|
|
18
|
+
/**
|
|
19
|
+
* Generates data URLs for each view of a given point cloud object using the provided box and zoom level.
|
|
20
|
+
*
|
|
21
|
+
* @param {PointCloud} pointCloud - The point cloud object to generate data URLs for.
|
|
22
|
+
* @param {IBox} box - An object representing the bounding box to use for calculating camera position.
|
|
23
|
+
* @param {number} zoom - The zoom level to use when generating data URLs.
|
|
24
|
+
* @returns {Promise<void>} - A promise that resolves once all data URLs have been generated.
|
|
25
|
+
*/
|
|
26
|
+
export declare const getViewsDataUrl: (pointCloud: PointCloud, box: IBox, zoom: number) => Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieve boxes with a specific trackID from an array of file items.
|
|
29
|
+
*
|
|
30
|
+
* @param {Array} imageList - An array of file items to search through.
|
|
31
|
+
* @param {Number} targetStep - The step number within the result object to retrieve boxes from.
|
|
32
|
+
* @param {Number} selectedBoxTrackID - The trackID to match when searching for boxes.
|
|
33
|
+
* @return {Array} An array of point cloud boxes that match the provided trackID, along with their index in the original array.
|
|
34
|
+
*/
|
|
35
|
+
export declare const getBoxesByTrackID: (imageList: IFileItem[], targetStep: number, selectedBoxTrackID: number) => IPointCloudBoxWithIndex[];
|
|
36
|
+
/**
|
|
37
|
+
* Calculate predicted values for each field in between the start and end points.
|
|
38
|
+
* @param {IPointCloudBoxWithIndex} start - The starting point, should have the same properties as IPointCloudBoxWithIndex.
|
|
39
|
+
* @param {IPointCloudBoxWithIndex} end - The ending point, should have the same properties as IPointCloudBoxWithIndex.
|
|
40
|
+
* @returns {IPointCloudBox[]} An array of objects with the same properties as IPointCloudBox, containing interpolated values between the start and end points for each field.
|
|
41
|
+
*/
|
|
42
|
+
export declare const predict: (start: IPointCloudBoxWithIndex, end: IPointCloudBoxWithIndex) => IPointCloudBox[];
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Glenfiddish <edwinlee0927@hotmail.com>
|
|
3
|
+
* @file connect store & TagToolInstanceAdaptor
|
|
4
|
+
* @date 2022-06-02
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { AnnotationState } from '@/store/annotation/types';
|
|
8
|
+
declare const _default: import("react-redux").ConnectedComponent<React.FC<{
|
|
9
|
+
annotation: AnnotationState;
|
|
10
|
+
}>, import("react-redux").Omit<{
|
|
11
|
+
annotation: AnnotationState;
|
|
12
|
+
} & {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}, "annotation">>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Implement TagTool interaction through class components.
|
|
3
|
+
* Refer to: packages/lb-annotation/src/core/toolOperation/tagOperation.ts
|
|
4
|
+
* @author Glenfiddish <edwinlee0927@hotmail.com>
|
|
5
|
+
* @date 2022-05-31
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { IStepInfo } from '@/types/step';
|
|
9
|
+
import _ from 'lodash';
|
|
10
|
+
import type { ObjectString } from './types';
|
|
11
|
+
import { IFileItem } from '@/types/data';
|
|
12
|
+
export interface IVideoTagInstanceAdaptorProps {
|
|
13
|
+
imgIndex: number;
|
|
14
|
+
imgList: IFileItem[];
|
|
15
|
+
pageForward: () => void;
|
|
16
|
+
pageJump: (page: string) => void;
|
|
17
|
+
pageBackward: () => void;
|
|
18
|
+
onMounted: (instance: TagToolInstanceAdaptor) => void;
|
|
19
|
+
onUnmounted: () => void;
|
|
20
|
+
step: number;
|
|
21
|
+
stepList: IStepInfo[];
|
|
22
|
+
}
|
|
23
|
+
interface IVideoTagInstanceAdaptorState {
|
|
24
|
+
tagResult: any[];
|
|
25
|
+
labelSelectedList: number[];
|
|
26
|
+
valid: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare class TagToolInstanceAdaptor extends React.Component<IVideoTagInstanceAdaptorProps, IVideoTagInstanceAdaptorState> {
|
|
29
|
+
fns: {
|
|
30
|
+
[key: string]: () => void;
|
|
31
|
+
};
|
|
32
|
+
videoRef?: HTMLVideoElement;
|
|
33
|
+
labelSelectedList: number[];
|
|
34
|
+
constructor(props: IVideoTagInstanceAdaptorProps);
|
|
35
|
+
get config(): any;
|
|
36
|
+
/** Just implementation, no actual logic */
|
|
37
|
+
get history(): {
|
|
38
|
+
initRecord: () => void;
|
|
39
|
+
pushHistory: () => void;
|
|
40
|
+
};
|
|
41
|
+
get currentTagResult(): any;
|
|
42
|
+
get valid(): boolean;
|
|
43
|
+
clearResult: (sendMsg?: boolean, value?: string) => void;
|
|
44
|
+
exportData: () => (any[] | {
|
|
45
|
+
valid: boolean;
|
|
46
|
+
duration: number;
|
|
47
|
+
frames: number | undefined;
|
|
48
|
+
videoWidth: number;
|
|
49
|
+
videoHeight: number;
|
|
50
|
+
})[];
|
|
51
|
+
singleOn(event: string, func: () => void): void;
|
|
52
|
+
on(event: string, func: () => void): void;
|
|
53
|
+
getTagResultByCode(num1: number, num2?: number): {
|
|
54
|
+
value: {
|
|
55
|
+
key: any;
|
|
56
|
+
value: any;
|
|
57
|
+
};
|
|
58
|
+
isMulti: any;
|
|
59
|
+
} | undefined;
|
|
60
|
+
setLabelBySelectedList(num1: number, num2?: number): void;
|
|
61
|
+
emitEvent: (event: string) => void;
|
|
62
|
+
/**
|
|
63
|
+
* Combine result with inputValue and existValue
|
|
64
|
+
* @param inputValue
|
|
65
|
+
* @param existValue
|
|
66
|
+
* @returns newValue
|
|
67
|
+
*/
|
|
68
|
+
combineResult: (inputValue: {
|
|
69
|
+
value: {
|
|
70
|
+
key: string;
|
|
71
|
+
value: string;
|
|
72
|
+
};
|
|
73
|
+
isMulti: boolean;
|
|
74
|
+
}, existValue?: ObjectString) => _.Dictionary<string | undefined>;
|
|
75
|
+
setResult: (tagResult: any[]) => void;
|
|
76
|
+
setLabel: (num1: number, num2: number) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Keydown event for recording keycode input(numeric only)
|
|
79
|
+
* @param event
|
|
80
|
+
*/
|
|
81
|
+
keydown: (event: KeyboardEvent) => void;
|
|
82
|
+
setValid: (valid: boolean) => void;
|
|
83
|
+
componentDidMount(): void;
|
|
84
|
+
componentWillUnmount(): void;
|
|
85
|
+
setResultFromImgList: (props: IVideoTagInstanceAdaptorProps) => void;
|
|
86
|
+
/** Observer imgIndex and set tagResult */
|
|
87
|
+
shouldComponentUpdate(props: IVideoTagInstanceAdaptorProps): boolean;
|
|
88
|
+
render(): JSX.Element;
|
|
89
|
+
}
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IVideoTagInstanceAdaptorProps } from './TagToolInstanceAdaptor';
|
|
3
|
+
/**
|
|
4
|
+
* I18n provider for InstanceAdaptorI18nProvider
|
|
5
|
+
* @param props
|
|
6
|
+
*/
|
|
7
|
+
export declare const VideoTagTool: (props: IVideoTagInstanceAdaptorProps & {
|
|
8
|
+
lang?: string;
|
|
9
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IInputList } from '@/types/main';
|
|
3
|
+
interface IVideoTagLayerProps {
|
|
4
|
+
result: Array<{
|
|
5
|
+
result: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
9
|
+
inputList: IInputList[];
|
|
10
|
+
}
|
|
11
|
+
export declare const VideoTagLayer: React.FC<IVideoTagLayerProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Glenfiddish <edwinlee0927@hotmail.com>
|
|
3
|
+
* @file Implement video player, including mouse and keyboard event
|
|
4
|
+
* @date 2022-06-02
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { IFileItem } from '@/types/data';
|
|
8
|
+
export declare const VideoPlayerCtx: React.Context<{
|
|
9
|
+
videoRef?: React.RefObject<HTMLVideoElement> | null | undefined;
|
|
10
|
+
isPlay: boolean;
|
|
11
|
+
playPause: () => void;
|
|
12
|
+
updateNextPlaybackRate: (isForward?: boolean) => void;
|
|
13
|
+
setCurrentTime: (time: number) => void;
|
|
14
|
+
playbackRate: number;
|
|
15
|
+
currentTime: number;
|
|
16
|
+
duration: number;
|
|
17
|
+
buffered: number;
|
|
18
|
+
imgList: IFileItem[];
|
|
19
|
+
imgIndex: number;
|
|
20
|
+
pageBackward: () => void;
|
|
21
|
+
pageJump: (page: string) => void;
|
|
22
|
+
pageForward: () => void;
|
|
23
|
+
}>;
|
|
24
|
+
interface IVideoPlayerProps {
|
|
25
|
+
imgList: IFileItem[];
|
|
26
|
+
imgIndex: number;
|
|
27
|
+
pageBackward: () => void;
|
|
28
|
+
pageJump: (page: string) => void;
|
|
29
|
+
pageForward: () => void;
|
|
30
|
+
valid: boolean;
|
|
31
|
+
setVideoRef?: (video: HTMLVideoElement) => void;
|
|
32
|
+
}
|
|
33
|
+
interface IVideoPlayerState {
|
|
34
|
+
playbackRate: number;
|
|
35
|
+
currentTime: number;
|
|
36
|
+
isPlay: boolean;
|
|
37
|
+
duration: number;
|
|
38
|
+
buffered: number;
|
|
39
|
+
error: boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare class VideoPlayer extends React.Component<IVideoPlayerProps, IVideoPlayerState> {
|
|
42
|
+
videoRef?: React.RefObject<HTMLVideoElement>;
|
|
43
|
+
timeInterval?: number;
|
|
44
|
+
constructor(props: IVideoPlayerProps);
|
|
45
|
+
get videoElm(): HTMLVideoElement | null | undefined;
|
|
46
|
+
get videoSrc(): string;
|
|
47
|
+
changePlaybackPate: (playbackRate: number) => void;
|
|
48
|
+
playPause: () => void;
|
|
49
|
+
updateNextPlaybackRate: (isForward?: boolean) => void;
|
|
50
|
+
fastForward: () => void;
|
|
51
|
+
rewind: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* Implement Video's keydown
|
|
54
|
+
* Play / Pause - Space
|
|
55
|
+
* Rewind / FastForward - ⬅️ / ➡️
|
|
56
|
+
* Speed - ⬆️ / ⬇
|
|
57
|
+
* @param event
|
|
58
|
+
*/
|
|
59
|
+
keydown: (event: KeyboardEvent) => void;
|
|
60
|
+
onPlay: () => void;
|
|
61
|
+
onPause: () => void;
|
|
62
|
+
onVideoStopped: () => void;
|
|
63
|
+
onVideoStart: () => void;
|
|
64
|
+
resetVideoData: () => void;
|
|
65
|
+
setDuration: () => void;
|
|
66
|
+
setCurrentTime: (currentTime: number) => void;
|
|
67
|
+
reload: () => void;
|
|
68
|
+
onError: () => void;
|
|
69
|
+
componentDidMount(): void;
|
|
70
|
+
componentWillUnmount(): void;
|
|
71
|
+
render(): JSX.Element;
|
|
72
|
+
}
|
|
73
|
+
export default VideoPlayer;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Find key and value to display label through inputList
|
|
3
|
+
* @param key
|
|
4
|
+
* @param value
|
|
5
|
+
* @param inputList
|
|
6
|
+
*/
|
|
7
|
+
export declare const findTagLabel: (key: string, value: string, inputList: any[]) => {
|
|
8
|
+
keyLabel: any;
|
|
9
|
+
valueLabel: any;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Sort tags through inputList
|
|
13
|
+
* @param tagsKeys
|
|
14
|
+
* @param inputList
|
|
15
|
+
*/
|
|
16
|
+
export declare const tagsSortThruInputList: (tagsKeys: string[], inputList: any[]) => string[];
|
|
17
|
+
/**
|
|
18
|
+
* Convent result's array to array of showing the labels
|
|
19
|
+
* @param result
|
|
20
|
+
* @param inputList
|
|
21
|
+
* @returns {ITagLabelsArray}
|
|
22
|
+
*/
|
|
23
|
+
export declare const result2LabelKey: (result: any[], inputList: any[]) => any;
|
|
24
|
+
/**
|
|
25
|
+
* Get key number through keyCode, Such as 49(keycode) => 1(number)
|
|
26
|
+
* @param {Number} keyCode
|
|
27
|
+
* @returns {Number} keyCode in scope if it greater than 0
|
|
28
|
+
*/
|
|
29
|
+
export declare const getKeyCodeNumber: (keyCode: number) => number;
|
|
30
|
+
/**
|
|
31
|
+
* Preserve decimals for number
|
|
32
|
+
* @param num
|
|
33
|
+
* @param places
|
|
34
|
+
* @returns {Number}
|
|
35
|
+
*/
|
|
36
|
+
export declare const decimalReserved: (num: number, places?: number) => number;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum EStepType {
|
|
2
|
+
Check = 0,
|
|
3
|
+
ANNOTATION = 1,
|
|
4
|
+
QUALITY_INSPECTION = 2,
|
|
5
|
+
PRE_ANNOTATION = 3,
|
|
6
|
+
MANUAL_CORRECTION = 4
|
|
7
|
+
}
|
|
8
|
+
export declare enum ESubmitType {
|
|
9
|
+
Backward = 1,
|
|
10
|
+
Forward = 2,
|
|
11
|
+
Jump = 3,
|
|
12
|
+
Quit = 4,
|
|
13
|
+
Export = 5,
|
|
14
|
+
StepChanged = 6,
|
|
15
|
+
Save = 7,
|
|
16
|
+
BatchUpdateTrackID = 8,
|
|
17
|
+
BatchUpdateImgList = 9,
|
|
18
|
+
SyncImgList = 10001,
|
|
19
|
+
SyncCurrentPageData = 10002
|
|
20
|
+
}
|
|
21
|
+
export declare const prefix = "bee";
|
|
22
|
+
export declare const componentCls: string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const styleString = "{\"color\":1,\"width\":2,\"borderOpacity\":9,\"fillOpacity\":9,\"toolColor\":{\"1\":{\"valid\":{\"stroke\":\"rgba(0,0,255,0.50)\",\"fill\":\"rgba(0,0,255,0.32)\"},\"invalid\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"},\"validSelected\":{\"stroke\":\"rgba(0,15,255,1.00)\",\"fill\":\"rgba(0,15,255,0.64)\"},\"invalidSelected\":{\"stroke\":\"rgba(255,153,102,0.80)\",\"fill\":\"rgba(255,153,102,0.19)\"},\"validHover\":{\"stroke\":\"rgba(0,15,255,0.80)\",\"fill\":\"rgba(0,15,255,0.51)\"},\"invalidHover\":{\"stroke\":\"rgba(255,153,102,0.50)\",\"fill\":\"rgba(255,153,102,0.32)\"}},\"3\":{\"valid\":{\"stroke\":\"rgba(0,255,255,0.50)\",\"fill\":\"rgba(0,255,255,0.32)\"},\"invalid\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"},\"validSelected\":{\"stroke\":\"rgba(0,212,255,1.00)\",\"fill\":\"rgba(0,212,255,0.64)\"},\"invalidSelected\":{\"stroke\":\"rgba(255,153,102,0.80)\",\"fill\":\"rgba(255,153,102,0.19)\"},\"validHover\":{\"stroke\":\"rgba(0,212,255,0.80)\",\"fill\":\"rgba(0,212,255,0.51)\"},\"invalidHover\":{\"stroke\":\"rgba(255,153,102,0.50)\",\"fill\":\"rgba(255,153,102,0.32)\"}},\"5\":{\"valid\":{\"stroke\":\"rgba(0,255,0,0.50)\",\"fill\":\"rgba(0,255,0,0.32)\"},\"invalid\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"},\"validSelected\":{\"stroke\":\"rgba(149,255,1.00)\",\"fill\":\"rgba(149,255,0,0.64)\"},\"invalidSelected\":{\"stroke\":\"rgba(255,153,102,0.80)\",\"fill\":\"rgba(255,153,102,0.19)\"},\"validHover\":{\"stroke\":\"rgba(149,255,0,0.80)\",\"fill\":\"rgba(149,255,0,0.51)\"},\"invalidHover\":{\"stroke\":\"rgba(255,153,102,0.50)\",\"fill\":\"rgba(255,153,102,0.32)\"}},\"7\":{\"valid\":{\"stroke\":\"rgba(255,255,0,0.50)\",\"fill\":\"rgba(255,255,0,0.32)\"},\"invalid\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"},\"validSelected\":{\"stroke\":\"rgba(255,230,102,1.00)\",\"fill\":\"rgba(255,213,0,0.64)\"},\"invalidSelected\":{\"stroke\":\"rgba(255,153,102,0.80)\",\"fill\":\"rgba(255,153,102,0.19)\"},\"validHover\":{\"stroke\":\"rgba(255,230,102,0.80)\",\"fill\":\"rgba(255,230,102,0.51)\"},\"invalidHover\":{\"stroke\":\"rgba(255,153,102,0.50)\",\"fill\":\"rgba(255,153,102,0.32)\"}},\"9\":{\"valid\":{\"stroke\":\"rgba(255,0,255,0.50)\",\"fill\":\"rgba(255,0,255,0.32)\"},\"invalid\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"},\"validSelected\":{\"stroke\":\"rgba(230,102,255,1.00)\",\"fill\":\"rgba(213,0,255,0.64)\"},\"invalidSelected\":{\"stroke\":\"rgba(255,153,102,0.80)\",\"fill\":\"rgba(255,153,102,0.19)\"},\"validHover\":{\"stroke\":\"rgba(230,102,255,0.80)\",\"fill\":\"rgba(230,102,255,0.51)\"},\"invalidHover\":{\"stroke\":\"rgba(255,153,102,0.50)\",\"fill\":\"rgba(255,153,102,0.32)\"}}},\"attributeColor\":[{\"valid\":{\"stroke\":\"rgba(204,204,204,1.00)\",\"fill\":\"rgba(204,204,204,0.32)\"},\"invalid\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.32)\"},\"validSelected\":{\"stroke\":\"rgba(204,204,204,1.00)\",\"fill\":\"rgba(204,204,204,0.64)\"},\"invalidSelected\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"},\"validHover\":{\"stroke\":\"rgba(204,204,204,1.00)\",\"fill\":\"rgba(204,204,204,0.64)\"},\"invalidHover\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"}},{\"valid\":{\"stroke\":\"rgba(128,12,249,1.00)\",\"fill\":\"rgba(128,12,249,0.32)\"},\"invalid\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.32)\"},\"validSelected\":{\"stroke\":\"rgba(128,12,249,1.00)\",\"fill\":\"rgba(128,12,249,0.64)\"},\"invalidSelected\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"},\"validHover\":{\"stroke\":\"rgba(128,12,249,1.00)\",\"fill\":\"rgba(128,12,249,0.64)\"},\"invalidHover\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"}},{\"valid\":{\"stroke\":\"rgba(0,255,48,1.00)\",\"fill\":\"rgba(0,255,48,0.32)\"},\"invalid\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.32)\"},\"validSelected\":{\"stroke\":\"rgba(0,255,48,1.00)\",\"fill\":\"rgba(0,255,48,0.64)\"},\"invalidSelected\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"},\"validHover\":{\"stroke\":\"rgba(0,255,48,1.00)\",\"fill\":\"rgba(0,255,48,0.64)\"},\"invalidHover\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"}},{\"valid\":{\"stroke\":\"rgba(255,136,247,1.00)\",\"fill\":\"rgba(255,136,247,0.32)\"},\"invalid\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.32)\"},\"validSelected\":{\"stroke\":\"rgba(255,136,247,1.00)\",\"fill\":\"rgba(255,136,247,0.64)\"},\"invalidSelected\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"},\"validHover\":{\"stroke\":\"rgba(255,136,247,1.00)\",\"fill\":\"rgba(255,136,247,0.64)\"},\"invalidHover\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"}},{\"valid\":{\"stroke\":\"rgba(255,226,50,1.00)\",\"fill\":\"rgba(255,226,50,0.32)\"},\"invalid\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.32)\"},\"validSelected\":{\"stroke\":\"rgba(255,226,50,1.00)\",\"fill\":\"rgba(255,226,50,0.64)\"},\"invalidSelected\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"},\"validHover\":{\"stroke\":\"rgba(255,226,50,1.00)\",\"fill\":\"rgba(255,226,50,0.64)\"},\"invalidHover\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"}},{\"valid\":{\"stroke\":\"rgba(153,66,23,1.00)\",\"fill\":\"rgba(153,66,23,0.32)\"},\"invalid\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.32)\"},\"validSelected\":{\"stroke\":\"rgba(153,66,23,1.00)\",\"fill\":\"rgba(153,66,23,0.64)\"},\"invalidSelected\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"},\"validHover\":{\"stroke\":\"rgba(153,66,23,1.00)\",\"fill\":\"rgba(153,66,23,0.64)\"},\"invalidHover\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"}},{\"valid\":{\"stroke\":\"rgba(2,130,250,1.00)\",\"fill\":\"rgba(2,130,250,0.32)\"},\"invalid\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.32)\"},\"validSelected\":{\"stroke\":\"rgba(2,130,250,1.00)\",\"fill\":\"rgba(2,130,250,0.64)\"},\"invalidSelected\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"},\"validHover\":{\"stroke\":\"rgba(2,130,250,1.00)\",\"fill\":\"rgba(2,130,250,0.64)\"},\"invalidHover\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"}},{\"valid\":{\"stroke\":\"rgba(255,35,35,1.00)\",\"fill\":\"rgba(255,35,35,0.32)\"},\"invalid\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.32)\"},\"validSelected\":{\"stroke\":\"rgba(255,35,35,1.00)\",\"fill\":\"rgba(255,35,35,0.64)\"},\"invalidSelected\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"},\"validHover\":{\"stroke\":\"rgba(255,35,35,1.00)\",\"fill\":\"rgba(255,35,35,0.64)\"},\"invalidHover\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"}},{\"valid\":{\"stroke\":\"rgba(0,255,234,1.00)\",\"fill\":\"rgba(0,255,234,0.32)\"},\"invalid\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.32)\"},\"validSelected\":{\"stroke\":\"rgba(0,255,234,1.00)\",\"fill\":\"rgba(0,255,234,0.64)\"},\"invalidSelected\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"},\"validHover\":{\"stroke\":\"rgba(0,255,234,1.00)\",\"fill\":\"rgba(0,255,234,0.64)\"},\"invalidHover\":{\"stroke\":\"rgba(255,153,102,1.00)\",\"fill\":\"rgba(255,153,102,0.64)\"}}],\"lineColor\":{\"1\":\"rgba(102, 111, 255, 1 )\",\"3\":\"rgba(102, 230, 255, 1)\",\"5\":\"rgba(191, 255, 102, 1)\",\"7\":\"rgba(255, 230, 102, 1)\",\"9\":\"rgba(230, 102, 255, 1)\"},\"attributeLineColor\":[\"rgba(204, 204, 204, 1)\",\"rgba(128, 12, 249, 1)\",\"rgba(0, 255, 48, 1)\",\"rgba(255, 136, 247, 1)\",\"rgba(255, 226, 50, 1)\",\"rgba(153, 66, 23, 1)\",\"rgba(2, 130, 250, 1)\",\"rgba(255, 35, 35, 1)\",\"rgba(0, 255, 234, 1)\"]}";
|
|
2
|
+
export default styleString;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const COLORS_ARRAY: string[];
|
|
2
|
+
export declare const NULL_COLOR = "rgba(204, 204, 204, 1)";
|
|
3
|
+
export declare const DEFAULT_COLOR: {
|
|
4
|
+
valid: {
|
|
5
|
+
stroke: string;
|
|
6
|
+
fill: string;
|
|
7
|
+
};
|
|
8
|
+
invalid: {
|
|
9
|
+
stroke: string;
|
|
10
|
+
fill: string;
|
|
11
|
+
};
|
|
12
|
+
validSelected: {
|
|
13
|
+
stroke: string;
|
|
14
|
+
fill: string;
|
|
15
|
+
};
|
|
16
|
+
invalidSelected: {
|
|
17
|
+
stroke: string;
|
|
18
|
+
fill: string;
|
|
19
|
+
};
|
|
20
|
+
validHover: {
|
|
21
|
+
stroke: string;
|
|
22
|
+
fill: string;
|
|
23
|
+
};
|
|
24
|
+
invalidHover: {
|
|
25
|
+
stroke: string;
|
|
26
|
+
fill: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const CHANGE_COLOR: {
|
|
30
|
+
[a: number]: any;
|
|
31
|
+
};
|
|
32
|
+
export declare const BORDER_OPACITY_LEVEL: {
|
|
33
|
+
[a: number]: number;
|
|
34
|
+
};
|
|
35
|
+
export declare const FILL_OPACITY_LEVEL: {
|
|
36
|
+
[a: number]: number;
|
|
37
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const headerHeight = 61;
|
|
2
|
+
export declare const tipsHeight = 40;
|
|
3
|
+
export declare const footerHeight = 40;
|
|
4
|
+
export declare const sidebarWidth = 240;
|
|
5
|
+
export declare const editStepWidth = 320;
|
|
6
|
+
/** 标注步骤的类型 */
|
|
7
|
+
export declare enum EStepType {
|
|
8
|
+
ANNOTATION = 1,
|
|
9
|
+
QUALITY_INSPECTION = 2,
|
|
10
|
+
PRE_ANNOTATION = 3,
|
|
11
|
+
MANUAL_CORRECTION = 4
|
|
12
|
+
}
|
|
13
|
+
/** 标注工具中最大获取的图片数 */
|
|
14
|
+
export declare const ANNOTATION_MAX_SIZE = 100;
|
|
15
|
+
/** 翻页操作 */
|
|
16
|
+
export declare enum EPageTurningOperation {
|
|
17
|
+
Backward = 0,
|
|
18
|
+
Forward = 1,
|
|
19
|
+
Jump = 2
|
|
20
|
+
}
|
|
21
|
+
/** 拖拽状态 */
|
|
22
|
+
export declare enum EDragStatus {
|
|
23
|
+
Start = 0,
|
|
24
|
+
Stop = 1,
|
|
25
|
+
Wait = 2
|
|
26
|
+
}
|
|
27
|
+
/** 拖拽的内容 */
|
|
28
|
+
export declare enum EDragTarget {
|
|
29
|
+
Point = 0,
|
|
30
|
+
Line = 1,
|
|
31
|
+
Plane = 2
|
|
32
|
+
}
|