@labelbee/lb-components 1.10.0-alpha.2 → 1.10.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.js +146 -1
- package/dist/App.js.map +1 -0
- package/dist/assets/annotation/common/icon_adapt.svg.js +6 -1
- package/dist/assets/annotation/common/icon_adapt.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_adapt_black.svg.js +6 -1
- package/dist/assets/annotation/common/icon_adapt_black.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_back.svg.js +6 -1
- package/dist/assets/annotation/common/icon_back.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_backA.svg.js +6 -1
- package/dist/assets/annotation/common/icon_backA.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_clear.svg.js +6 -1
- package/dist/assets/annotation/common/icon_clear.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_clearSmall.svg.js +6 -1
- package/dist/assets/annotation/common/icon_clearSmall.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_clearSmall_a.svg.js +6 -1
- package/dist/assets/annotation/common/icon_clearSmall_a.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_clear_a.svg.js +6 -1
- package/dist/assets/annotation/common/icon_clear_a.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_invalid.svg.js +6 -1
- package/dist/assets/annotation/common/icon_invalid.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_invalid_a.svg.js +6 -1
- package/dist/assets/annotation/common/icon_invalid_a.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_next.svg.js +6 -1
- package/dist/assets/annotation/common/icon_next.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_nextA.svg.js +6 -1
- package/dist/assets/annotation/common/icon_nextA.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_r.svg.js +6 -1
- package/dist/assets/annotation/common/icon_r.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_rA.svg.js +6 -1
- package/dist/assets/annotation/common/icon_rA.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_save.svg.js +6 -1
- package/dist/assets/annotation/common/icon_save.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_saveA.svg.js +6 -1
- package/dist/assets/annotation/common/icon_saveA.svg.js.map +1 -0
- package/dist/assets/annotation/image/brightness.svg.js +6 -1
- package/dist/assets/annotation/image/brightness.svg.js.map +1 -0
- package/dist/assets/annotation/image/contrast.svg.js +6 -1
- package/dist/assets/annotation/image/contrast.svg.js.map +1 -0
- package/dist/assets/annotation/image/icon_yuantu.svg.js +6 -1
- package/dist/assets/annotation/image/icon_yuantu.svg.js.map +1 -0
- package/dist/assets/annotation/image/saturation.svg.js +6 -1
- package/dist/assets/annotation/image/saturation.svg.js.map +1 -0
- package/dist/assets/annotation/lineTool/icon_line.svg.js +6 -1
- package/dist/assets/annotation/lineTool/icon_line.svg.js.map +1 -0
- package/dist/assets/annotation/lineTool/icon_line_a.svg.js +6 -1
- package/dist/assets/annotation/lineTool/icon_line_a.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/copy.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/copy.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/nextBox.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/nextBox.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/nodata.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/nodata.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/patse.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/patse.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/prevBox.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/prevBox.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/selectAll.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/selectAll.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js.map +1 -0
- package/dist/assets/annotation/pointTool/icon_point.svg.js +6 -1
- package/dist/assets/annotation/pointTool/icon_point.svg.js.map +1 -0
- package/dist/assets/annotation/pointTool/icon_point_a.svg.js +6 -1
- package/dist/assets/annotation/pointTool/icon_point_a.svg.js.map +1 -0
- package/dist/assets/annotation/polygonTool/icon_polygon.svg.js +6 -1
- package/dist/assets/annotation/polygonTool/icon_polygon.svg.js.map +1 -0
- package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js +6 -1
- package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js.map +1 -0
- package/dist/assets/annotation/rectTool/icon_rect.svg.js +6 -1
- package/dist/assets/annotation/rectTool/icon_rect.svg.js.map +1 -0
- package/dist/assets/annotation/rectTool/icon_rect_a.svg.js +6 -1
- package/dist/assets/annotation/rectTool/icon_rect_a.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js.map +1 -0
- package/dist/assets/annotation/video/icon_keyboard_h.svg.js +6 -1
- package/dist/assets/annotation/video/icon_keyboard_h.svg.js.map +1 -0
- package/dist/assets/attributeIcon/eraser.svg.js +6 -1
- package/dist/assets/attributeIcon/eraser.svg.js.map +1 -0
- package/dist/assets/attributeIcon/eraser_a.svg.js +6 -1
- package/dist/assets/attributeIcon/eraser_a.svg.js.map +1 -0
- package/dist/assets/attributeIcon/pen.svg.js +6 -1
- package/dist/assets/attributeIcon/pen.svg.js.map +1 -0
- package/dist/assets/attributeIcon/pen_a.svg.js +6 -1
- package/dist/assets/attributeIcon/pen_a.svg.js.map +1 -0
- package/dist/assets/attributeIcon/zoomUp.svg.js +6 -1
- package/dist/assets/attributeIcon/zoomUp.svg.js.map +1 -0
- package/dist/assets/predictTracking/icon.svg.js +6 -1
- package/dist/assets/predictTracking/icon.svg.js.map +1 -0
- package/dist/assets/toolStyle/icon_border.svg.js +6 -1
- package/dist/assets/toolStyle/icon_border.svg.js.map +1 -0
- package/dist/assets/toolStyle/icon_borderColor.svg.js +6 -1
- package/dist/assets/toolStyle/icon_borderColor.svg.js.map +1 -0
- package/dist/assets/toolStyle/icon_opacityFill.svg.js +6 -1
- package/dist/assets/toolStyle/icon_opacityFill.svg.js.map +1 -0
- package/dist/assets/toolStyle/icon_opacityStroke.svg.js +6 -1
- package/dist/assets/toolStyle/icon_opacityStroke.svg.js.map +1 -0
- package/dist/components/AnnotationView/index.js +160 -1
- package/dist/components/AnnotationView/index.js.map +1 -0
- package/dist/components/AnnotationView/pointCloudAnnotationView.js +85 -1
- package/dist/components/AnnotationView/pointCloudAnnotationView.js.map +1 -0
- package/dist/components/annotationStepPopover/index.js +39 -1
- package/dist/components/annotationStepPopover/index.js.map +1 -0
- package/dist/components/attributeList/index.js +66 -1
- package/dist/components/attributeList/index.js.map +1 -0
- package/dist/components/checkboxList/index.js +39 -1
- package/dist/components/checkboxList/index.js.map +1 -0
- package/dist/components/colorTag/index.js +38 -1
- package/dist/components/colorTag/index.js.map +1 -0
- package/dist/components/customAntd/IconWithText/index.js +59 -1
- package/dist/components/customAntd/IconWithText/index.js.map +1 -0
- package/dist/components/customResizeHook/index.js +95 -1
- package/dist/components/customResizeHook/index.js.map +1 -0
- package/dist/components/fileException/FileError.js +61 -1
- package/dist/components/fileException/FileError.js.map +1 -0
- package/dist/components/fileException/FileInvalid.js +31 -1
- package/dist/components/fileException/FileInvalid.js.map +1 -0
- package/dist/components/fileException/index.js +38 -1
- package/dist/components/fileException/index.js.map +1 -0
- package/dist/components/pointCloudView/PointCloud2DView.js +153 -1
- package/dist/components/pointCloudView/PointCloud2DView.js.map +1 -0
- package/dist/components/pointCloudView/PointCloud3DView.js +234 -1
- package/dist/components/pointCloudView/PointCloud3DView.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudBackView.js +138 -1
- package/dist/components/pointCloudView/PointCloudBackView.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudContext.js +257 -1
- package/dist/components/pointCloudView/PointCloudContext.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudInfos.js +146 -1
- package/dist/components/pointCloudView/PointCloudInfos.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudLayout.js +28 -1
- package/dist/components/pointCloudView/PointCloudLayout.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudListener.js +347 -1
- package/dist/components/pointCloudView/PointCloudListener.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudSegment.js +62 -0
- package/dist/components/pointCloudView/PointCloudSegment.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudSideView.js +135 -1
- package/dist/components/pointCloudView/PointCloudSideView.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudTopView.js +339 -1
- package/dist/components/pointCloudView/PointCloudTopView.js.map +1 -0
- package/dist/components/pointCloudView/components/EmptyPage/index.js +24 -1
- package/dist/components/pointCloudView/components/EmptyPage/index.js.map +1 -0
- package/dist/components/pointCloudView/components/UnifyParamsModal/index.js +240 -1
- package/dist/components/pointCloudView/components/UnifyParamsModal/index.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useAttribute.js +53 -1
- package/dist/components/pointCloudView/hooks/useAttribute.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useBoxes.js +81 -1
- package/dist/components/pointCloudView/hooks/useBoxes.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useConfig.js +33 -1
- package/dist/components/pointCloudView/hooks/useConfig.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useHistory.js +173 -1
- package/dist/components/pointCloudView/hooks/useHistory.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useLine.js +74 -1
- package/dist/components/pointCloudView/hooks/useLine.js.map +1 -0
- package/dist/components/pointCloudView/hooks/usePointCloudViews.js +759 -1
- package/dist/components/pointCloudView/hooks/usePointCloudViews.js.map +1 -0
- package/dist/components/pointCloudView/hooks/usePolygon.js +74 -1
- package/dist/components/pointCloudView/hooks/usePolygon.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useRotate.js +47 -1
- package/dist/components/pointCloudView/hooks/useRotate.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useSingleBox.js +176 -1
- package/dist/components/pointCloudView/hooks/useSingleBox.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useSphere.js +51 -1
- package/dist/components/pointCloudView/hooks/useSphere.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useStatus.js +92 -1
- package/dist/components/pointCloudView/hooks/useStatus.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useZoom.js +42 -1
- package/dist/components/pointCloudView/hooks/useZoom.js.map +1 -0
- package/dist/components/pointCloudView/index.js +59 -1
- package/dist/components/pointCloudView/index.js.map +1 -0
- package/dist/components/predictTracking/index.js +8 -1
- package/dist/components/predictTracking/index.js.map +1 -0
- package/dist/components/predictTracking/predictTrackingIcon/index.js +104 -1
- package/dist/components/predictTracking/predictTrackingIcon/index.js.map +1 -0
- package/dist/components/predictTracking/previewResult/index.js +196 -1
- package/dist/components/predictTracking/previewResult/index.js.map +1 -0
- package/dist/components/predictTracking/previewResult/util.js +144 -1
- package/dist/components/predictTracking/previewResult/util.js.map +1 -0
- package/dist/components/videoAnnotate/index.js +50 -1
- package/dist/components/videoAnnotate/index.js.map +1 -0
- package/dist/components/videoPlayer/TagToolInstanceAdaptor.js +233 -1
- package/dist/components/videoPlayer/TagToolInstanceAdaptor.js.map +1 -0
- package/dist/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js +40 -1
- package/dist/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js.map +1 -0
- package/dist/components/videoPlayer/VideoTagLayer.js +37 -1
- package/dist/components/videoPlayer/VideoTagLayer.js.map +1 -0
- package/dist/components/videoPlayer/components/controller/index.js +131 -1
- package/dist/components/videoPlayer/components/controller/index.js.map +1 -0
- package/dist/components/videoPlayer/index.js +267 -1
- package/dist/components/videoPlayer/index.js.map +1 -0
- package/dist/components/videoPlayer/utils.js +59 -1
- package/dist/components/videoPlayer/utils.js.map +1 -0
- package/dist/configureStore.js +16 -1
- package/dist/configureStore.js.map +1 -0
- package/dist/constant/index.js +32 -1
- package/dist/constant/index.js.map +1 -0
- package/dist/constant/styleString.js +6 -1
- package/dist/constant/styleString.js.map +1 -0
- package/dist/data/Style.js +113 -1
- package/dist/data/Style.js.map +1 -0
- package/dist/data/enums/AnnotationSize.js +39 -1
- package/dist/data/enums/AnnotationSize.js.map +1 -0
- package/dist/data/enums/ToolType.js +44 -1
- package/dist/data/enums/ToolType.js.map +1 -0
- package/dist/hooks/annotation.js +81 -1
- package/dist/hooks/annotation.js.map +1 -0
- package/dist/hooks/useRafState.js +21 -1
- package/dist/hooks/useRafState.js.map +1 -0
- package/dist/hooks/useRefCache.js +14 -1
- package/dist/hooks/useRefCache.js.map +1 -0
- package/dist/hooks/useSafeSate.js +22 -1
- package/dist/hooks/useSafeSate.js.map +1 -0
- package/dist/hooks/useSize.js +45 -1
- package/dist/hooks/useSize.js.map +1 -0
- package/dist/hooks/useUnmountedRef.js +17 -1
- package/dist/hooks/useUnmountedRef.js.map +1 -0
- package/dist/index.js +90 -1
- package/dist/index.js.map +1 -0
- package/dist/store/Actions.js +57 -1
- package/dist/store/Actions.js.map +1 -0
- package/dist/store/annotation/actionCreators.js +488 -1
- package/dist/store/annotation/actionCreators.js.map +1 -0
- package/dist/store/annotation/map.js +26 -1
- package/dist/store/annotation/map.js.map +1 -0
- package/dist/store/annotation/reducer.js +669 -1
- package/dist/store/annotation/reducer.js.map +1 -0
- package/dist/store/annotation/selectors.js +15 -1
- package/dist/store/annotation/selectors.js.map +1 -0
- package/dist/store/ctx.js +19 -1
- package/dist/store/ctx.js.map +1 -0
- package/dist/store/imgAttribute/actionCreators.js +27 -1
- package/dist/store/imgAttribute/actionCreators.js.map +1 -0
- package/dist/store/imgAttribute/reducer.js +44 -1
- package/dist/store/imgAttribute/reducer.js.map +1 -0
- package/dist/store/index.js +17 -1
- package/dist/store/index.js.map +1 -0
- package/dist/store/toolStyle/actionCreators.js +22 -1
- package/dist/store/toolStyle/actionCreators.js.map +1 -0
- package/dist/store/toolStyle/reducer.js +54 -1
- package/dist/store/toolStyle/reducer.js.map +1 -0
- package/dist/types/components/pointCloudView/PointCloudSegment.d.ts +6 -0
- package/dist/types/components/predictTracking/previewResult/util.d.ts +2 -1
- package/dist/types/store/annotation/actionCreators.d.ts +1 -1
- package/dist/types/views/MainView/toolHeader/SwitchPattern/index.d.ts +5 -0
- package/dist/utils/AnnotationDataUtils.js +171 -1
- package/dist/utils/AnnotationDataUtils.js.map +1 -0
- package/dist/utils/ConfigUtils.js +22 -1
- package/dist/utils/ConfigUtils.js.map +1 -0
- package/dist/utils/PageOperator.js +99 -1
- package/dist/utils/PageOperator.js.map +1 -0
- package/dist/utils/StepUtils.js +29 -1
- package/dist/utils/StepUtils.js.map +1 -0
- package/dist/utils/TextUtils.js +45 -1
- package/dist/utils/TextUtils.js.map +1 -0
- package/dist/utils/ToolStyleUtils.js +96 -1
- package/dist/utils/ToolStyleUtils.js.map +1 -0
- package/dist/utils/ToolUtils.js +19 -1
- package/dist/utils/ToolUtils.js.map +1 -0
- package/dist/utils/data.js +77 -1
- package/dist/utils/data.js.map +1 -0
- package/dist/utils/dom.js +25 -1
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/index.js +39 -1
- package/dist/utils/index.js.map +1 -0
- package/dist/views/MainView/annotationOperation/index.js +175 -1
- package/dist/views/MainView/annotationOperation/index.js.map +1 -0
- package/dist/views/MainView/annotationTips/index.js +32 -1
- package/dist/views/MainView/annotationTips/index.js.map +1 -0
- package/dist/views/MainView/index.js +122 -1
- package/dist/views/MainView/index.js.map +1 -0
- package/dist/views/MainView/sidebar/AnnotationText/index.js +47 -1
- package/dist/views/MainView/sidebar/AnnotationText/index.js.map +1 -0
- package/dist/views/MainView/sidebar/ClearIcon/index.js +37 -1
- package/dist/views/MainView/sidebar/ClearIcon/index.js.map +1 -0
- package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +101 -1
- package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js.map +1 -0
- package/dist/views/MainView/sidebar/GeneralOperation/index.js +95 -1
- package/dist/views/MainView/sidebar/GeneralOperation/index.js.map +1 -0
- package/dist/views/MainView/sidebar/GeneralOperation/useOperationList.js +94 -1
- package/dist/views/MainView/sidebar/GeneralOperation/useOperationList.js.map +1 -0
- package/dist/views/MainView/sidebar/ImgAttributeInfo/index.js +134 -1
- package/dist/views/MainView/sidebar/ImgAttributeInfo/index.js.map +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +128 -1
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js.map +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +253 -1
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js.map +1 -0
- package/dist/views/MainView/sidebar/ScribbleSidebar/index.js +64 -1
- package/dist/views/MainView/sidebar/ScribbleSidebar/index.js.map +1 -0
- package/dist/views/MainView/sidebar/SwitchAttributeList/index.js +79 -1
- package/dist/views/MainView/sidebar/SwitchAttributeList/index.js.map +1 -0
- package/dist/views/MainView/sidebar/TagSidebar/index.js +187 -1
- package/dist/views/MainView/sidebar/TagSidebar/index.js.map +1 -0
- package/dist/views/MainView/sidebar/TextAreaFormat/index.js +112 -1
- package/dist/views/MainView/sidebar/TextAreaFormat/index.js.map +1 -0
- package/dist/views/MainView/sidebar/TextToolSidebar/index.js +235 -1
- package/dist/views/MainView/sidebar/TextToolSidebar/index.js.map +1 -0
- package/dist/views/MainView/sidebar/ToolIcons.js +87 -1
- package/dist/views/MainView/sidebar/ToolIcons.js.map +1 -0
- package/dist/views/MainView/sidebar/ToolStyle/index.js +162 -1
- package/dist/views/MainView/sidebar/ToolStyle/index.js.map +1 -0
- package/dist/views/MainView/sidebar/index.js +156 -1
- package/dist/views/MainView/sidebar/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/AnnotatedAttributes/index.js +211 -1
- package/dist/views/MainView/toolFooter/AnnotatedAttributes/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterPopover.js +54 -1
- package/dist/views/MainView/toolFooter/FooterPopover.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +149 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js +26 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +226 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +111 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +55 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +174 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +117 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +71 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +18 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +25 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +18 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js +28 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/index.js +23 -1
- package/dist/views/MainView/toolFooter/FooterTips/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/HiddenTips/index.js +45 -1
- package/dist/views/MainView/toolFooter/HiddenTips/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/PageNumber/index.js +48 -1
- package/dist/views/MainView/toolFooter/PageNumber/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/Pagination.js +91 -1
- package/dist/views/MainView/toolFooter/Pagination.js.map +1 -0
- package/dist/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +39 -1
- package/dist/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/ZoomController/index.js +72 -1
- package/dist/views/MainView/toolFooter/ZoomController/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/index.js +135 -1
- package/dist/views/MainView/toolFooter/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/ExportData/index.js +44 -1
- package/dist/views/MainView/toolHeader/ExportData/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/StepSwitch/index.js +47 -1
- package/dist/views/MainView/toolHeader/StepSwitch/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/SwitchPattern/index.js +59 -0
- package/dist/views/MainView/toolHeader/SwitchPattern/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/headerOption/index.js +151 -1
- package/dist/views/MainView/toolHeader/headerOption/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/index.js +180 -1
- package/dist/views/MainView/toolHeader/index.js.map +1 -0
- package/es/App.js +138 -1
- package/es/App.js.map +1 -0
- package/es/assets/annotation/common/icon_adapt.svg.js +4 -1
- package/es/assets/annotation/common/icon_adapt.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_adapt_black.svg.js +4 -1
- package/es/assets/annotation/common/icon_adapt_black.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_back.svg.js +4 -1
- package/es/assets/annotation/common/icon_back.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_backA.svg.js +4 -1
- package/es/assets/annotation/common/icon_backA.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clear.svg.js +4 -1
- package/es/assets/annotation/common/icon_clear.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clearSmall.svg.js +4 -1
- package/es/assets/annotation/common/icon_clearSmall.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clearSmall_a.svg.js +4 -1
- package/es/assets/annotation/common/icon_clearSmall_a.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clear_a.svg.js +4 -1
- package/es/assets/annotation/common/icon_clear_a.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_invalid.svg.js +4 -1
- package/es/assets/annotation/common/icon_invalid.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_invalid_a.svg.js +4 -1
- package/es/assets/annotation/common/icon_invalid_a.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_next.svg.js +4 -1
- package/es/assets/annotation/common/icon_next.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_nextA.svg.js +4 -1
- package/es/assets/annotation/common/icon_nextA.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_r.svg.js +4 -1
- package/es/assets/annotation/common/icon_r.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_rA.svg.js +4 -1
- package/es/assets/annotation/common/icon_rA.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_save.svg.js +4 -1
- package/es/assets/annotation/common/icon_save.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_saveA.svg.js +4 -1
- package/es/assets/annotation/common/icon_saveA.svg.js.map +1 -0
- package/es/assets/annotation/image/brightness.svg.js +4 -1
- package/es/assets/annotation/image/brightness.svg.js.map +1 -0
- package/es/assets/annotation/image/contrast.svg.js +4 -1
- package/es/assets/annotation/image/contrast.svg.js.map +1 -0
- package/es/assets/annotation/image/icon_yuantu.svg.js +4 -1
- package/es/assets/annotation/image/icon_yuantu.svg.js.map +1 -0
- package/es/assets/annotation/image/saturation.svg.js +4 -1
- package/es/assets/annotation/image/saturation.svg.js.map +1 -0
- package/es/assets/annotation/lineTool/icon_line.svg.js +4 -1
- package/es/assets/annotation/lineTool/icon_line.svg.js.map +1 -0
- package/es/assets/annotation/lineTool/icon_line_a.svg.js +4 -1
- package/es/assets/annotation/lineTool/icon_line_a.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/copy.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/copy.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/nextBox.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/nextBox.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/nodata.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/nodata.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/patse.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/patse.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/prevBox.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/prevBox.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/selectAll.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/selectAll.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js.map +1 -0
- package/es/assets/annotation/pointTool/icon_point.svg.js +4 -1
- package/es/assets/annotation/pointTool/icon_point.svg.js.map +1 -0
- package/es/assets/annotation/pointTool/icon_point_a.svg.js +4 -1
- package/es/assets/annotation/pointTool/icon_point_a.svg.js.map +1 -0
- package/es/assets/annotation/polygonTool/icon_polygon.svg.js +4 -1
- package/es/assets/annotation/polygonTool/icon_polygon.svg.js.map +1 -0
- package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js +4 -1
- package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js.map +1 -0
- package/es/assets/annotation/rectTool/icon_rect.svg.js +4 -1
- package/es/assets/annotation/rectTool/icon_rect.svg.js.map +1 -0
- package/es/assets/annotation/rectTool/icon_rectPattern.svg.js +4 -0
- package/es/assets/annotation/rectTool/icon_rectPattern.svg.js.map +1 -0
- package/es/assets/annotation/rectTool/icon_rect_a.svg.js +4 -1
- package/es/assets/annotation/rectTool/icon_rect_a.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_copyBackwardResult.svg.js +4 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_copyBackwardResult.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js.map +1 -0
- package/es/assets/annotation/video/icon_keyboard_h.svg.js +4 -1
- package/es/assets/annotation/video/icon_keyboard_h.svg.js.map +1 -0
- package/es/assets/attributeIcon/eraser.svg.js +4 -1
- package/es/assets/attributeIcon/eraser.svg.js.map +1 -0
- package/es/assets/attributeIcon/eraser_a.svg.js +4 -1
- package/es/assets/attributeIcon/eraser_a.svg.js.map +1 -0
- package/es/assets/attributeIcon/pen.svg.js +4 -1
- package/es/assets/attributeIcon/pen.svg.js.map +1 -0
- package/es/assets/attributeIcon/pen_a.svg.js +4 -1
- package/es/assets/attributeIcon/pen_a.svg.js.map +1 -0
- package/es/assets/attributeIcon/zoomUp.svg.js +4 -1
- package/es/assets/attributeIcon/zoomUp.svg.js.map +1 -0
- package/es/assets/cssIcon/annotation/icon_clearSmall.svg +10 -0
- package/es/assets/cssIcon/annotation/icon_clearSmall_a.svg +10 -0
- package/es/assets/cssIcon/slide_btn.svg +23 -0
- package/es/assets/predictTracking/icon.svg.js +4 -1
- package/es/assets/predictTracking/icon.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_border.svg.js +4 -1
- package/es/assets/toolStyle/icon_border.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_borderColor.svg.js +4 -1
- package/es/assets/toolStyle/icon_borderColor.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_opacityFill.svg.js +4 -1
- package/es/assets/toolStyle/icon_opacityFill.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_opacityStroke.svg.js +4 -1
- package/es/assets/toolStyle/icon_opacityStroke.svg.js.map +1 -0
- package/es/components/AnnotationView/index.js +154 -1
- package/es/components/AnnotationView/index.js.map +1 -0
- package/es/components/AnnotationView/pointCloudAnnotationView.js +79 -1
- package/es/components/AnnotationView/pointCloudAnnotationView.js.map +1 -0
- package/es/components/ImageError/index.js +53 -0
- package/es/components/ImageError/index.js.map +1 -0
- package/es/components/annotationStepPopover/index.js +33 -1
- package/es/components/annotationStepPopover/index.js.map +1 -0
- package/es/components/attributeList/index.js +57 -1
- package/es/components/attributeList/index.js.map +1 -0
- package/es/components/checkboxList/index.js +33 -1
- package/es/components/checkboxList/index.js.map +1 -0
- package/es/components/colorTag/index.js +30 -1
- package/es/components/colorTag/index.js.map +1 -0
- package/es/components/customAntd/IconWithText/index.js +53 -1
- package/es/components/customAntd/IconWithText/index.js.map +1 -0
- package/es/components/customResizeHook/index.js +84 -1
- package/es/components/customResizeHook/index.js.map +1 -0
- package/es/components/fileException/FileError.js +55 -1
- package/es/components/fileException/FileError.js.map +1 -0
- package/es/components/fileException/FileInvalid.js +25 -1
- package/es/components/fileException/FileInvalid.js.map +1 -0
- package/es/components/fileException/index.js +32 -1
- package/es/components/fileException/index.js.map +1 -0
- package/es/components/pointCloudView/PointCloud2DView.js +147 -1
- package/es/components/pointCloudView/PointCloud2DView.js.map +1 -0
- package/es/components/pointCloudView/PointCloud3DView.js +227 -1
- package/es/components/pointCloudView/PointCloud3DView.js.map +1 -0
- package/es/components/pointCloudView/PointCloudBackView.js +132 -1
- package/es/components/pointCloudView/PointCloudBackView.js.map +1 -0
- package/es/components/pointCloudView/PointCloudContext.js +248 -1
- package/es/components/pointCloudView/PointCloudContext.js.map +1 -0
- package/es/components/pointCloudView/PointCloudInfos.js +136 -1
- package/es/components/pointCloudView/PointCloudInfos.js.map +1 -0
- package/es/components/pointCloudView/PointCloudLayout.js +19 -1
- package/es/components/pointCloudView/PointCloudLayout.js.map +1 -0
- package/es/components/pointCloudView/PointCloudListener.js +345 -1
- package/es/components/pointCloudView/PointCloudListener.js.map +1 -0
- package/es/components/pointCloudView/PointCloudSegment.js +56 -0
- package/es/components/pointCloudView/PointCloudSegment.js.map +1 -0
- package/es/components/pointCloudView/PointCloudSideView.js +129 -1
- package/es/components/pointCloudView/PointCloudSideView.js.map +1 -0
- package/es/components/pointCloudView/PointCloudTopView.js +333 -1
- package/es/components/pointCloudView/PointCloudTopView.js.map +1 -0
- package/es/components/pointCloudView/components/EmptyPage/index.js +18 -1
- package/es/components/pointCloudView/components/EmptyPage/index.js.map +1 -0
- package/es/components/pointCloudView/components/PointCloudSizeSlider/index.js +23 -0
- package/es/components/pointCloudView/components/PointCloudSizeSlider/index.js.map +1 -0
- package/es/components/pointCloudView/components/UnifiedParamsModal/index.js +228 -0
- package/es/components/pointCloudView/components/UnifiedParamsModal/index.js.map +1 -0
- package/es/components/pointCloudView/components/UnifyParamsModal/index.js +234 -1
- package/es/components/pointCloudView/components/UnifyParamsModal/index.js.map +1 -0
- package/es/components/pointCloudView/data.js +4 -0
- package/es/components/pointCloudView/data.js.map +1 -0
- package/es/components/pointCloudView/hooks/useAttribute.js +49 -1
- package/es/components/pointCloudView/hooks/useAttribute.js.map +1 -0
- package/es/components/pointCloudView/hooks/useBoxes.js +73 -1
- package/es/components/pointCloudView/hooks/useBoxes.js.map +1 -0
- package/es/components/pointCloudView/hooks/useConfig.js +29 -1
- package/es/components/pointCloudView/hooks/useConfig.js.map +1 -0
- package/es/components/pointCloudView/hooks/useHistory.js +169 -1
- package/es/components/pointCloudView/hooks/useHistory.js.map +1 -0
- package/es/components/pointCloudView/hooks/useLine.js +70 -1
- package/es/components/pointCloudView/hooks/useLine.js.map +1 -0
- package/es/components/pointCloudView/hooks/usePointCloudViews.js +747 -1
- package/es/components/pointCloudView/hooks/usePointCloudViews.js.map +1 -0
- package/es/components/pointCloudView/hooks/usePolygon.js +70 -1
- package/es/components/pointCloudView/hooks/usePolygon.js.map +1 -0
- package/es/components/pointCloudView/hooks/useRotate.js +43 -1
- package/es/components/pointCloudView/hooks/useRotate.js.map +1 -0
- package/es/components/pointCloudView/hooks/useSingleBox.js +168 -1
- package/es/components/pointCloudView/hooks/useSingleBox.js.map +1 -0
- package/es/components/pointCloudView/hooks/useSphere.js +43 -1
- package/es/components/pointCloudView/hooks/useSphere.js.map +1 -0
- package/es/components/pointCloudView/hooks/useStatus.js +88 -1
- package/es/components/pointCloudView/hooks/useStatus.js.map +1 -0
- package/es/components/pointCloudView/hooks/useZoom.js +38 -1
- package/es/components/pointCloudView/hooks/useZoom.js.map +1 -0
- package/es/components/pointCloudView/index.js +53 -1
- package/es/components/pointCloudView/index.js.map +1 -0
- package/es/components/predictTracking/index.js +3 -1
- package/es/components/predictTracking/index.js.map +1 -0
- package/es/components/predictTracking/predictTrackingIcon/index.js +98 -1
- package/es/components/predictTracking/predictTrackingIcon/index.js.map +1 -0
- package/es/components/predictTracking/previewResult/index.js +189 -1
- package/es/components/predictTracking/previewResult/index.js.map +1 -0
- package/es/components/predictTracking/previewResult/util.js +136 -1
- package/es/components/predictTracking/previewResult/util.js.map +1 -0
- package/es/components/videoAnnotate/index.js +44 -1
- package/es/components/videoAnnotate/index.js.map +1 -0
- package/es/components/videoPlayer/TagToolInstanceAdaptor.js +224 -1
- package/es/components/videoPlayer/TagToolInstanceAdaptor.js.map +1 -0
- package/es/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js +32 -1
- package/es/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js.map +1 -0
- package/es/components/videoPlayer/VideoTagLayer.js +29 -1
- package/es/components/videoPlayer/VideoTagLayer.js.map +1 -0
- package/es/components/videoPlayer/components/controller/index.js +125 -1
- package/es/components/videoPlayer/components/controller/index.js.map +1 -0
- package/es/components/videoPlayer/index.js +257 -1
- package/es/components/videoPlayer/index.js.map +1 -0
- package/es/components/videoPlayer/utils.js +51 -1
- package/es/components/videoPlayer/utils.js.map +1 -0
- package/es/configureStore.js +10 -1
- package/es/configureStore.js.map +1 -0
- package/es/constant/index.js +27 -1
- package/es/constant/index.js.map +1 -0
- package/es/constant/styleString.js +4 -1
- package/es/constant/styleString.js.map +1 -0
- package/es/data/Style.js +104 -1
- package/es/data/Style.js.map +1 -0
- package/es/data/enums/AnnotationSize.js +32 -1
- package/es/data/enums/AnnotationSize.js.map +1 -0
- package/es/data/enums/ToolType.js +40 -1
- package/es/data/enums/ToolType.js.map +1 -0
- package/es/hooks/annotation.js +77 -1
- package/es/hooks/annotation.js.map +1 -0
- package/es/hooks/useConfig.js +18 -0
- package/es/hooks/useConfig.js.map +1 -0
- package/es/hooks/useRafState.js +19 -1
- package/es/hooks/useRafState.js.map +1 -0
- package/es/hooks/useRefCache.js +12 -1
- package/es/hooks/useRefCache.js.map +1 -0
- package/es/hooks/useSafeSate.js +16 -1
- package/es/hooks/useSafeSate.js.map +1 -0
- package/es/hooks/useSize.js +39 -1
- package/es/hooks/useSize.js.map +1 -0
- package/es/hooks/useUnmountedRef.js +15 -1
- package/es/hooks/useUnmountedRef.js.map +1 -0
- package/es/index.js +64 -1
- package/es/index.js.map +1 -0
- package/es/store/Actions.js +51 -1
- package/es/store/Actions.js.map +1 -0
- package/es/store/annotation/actionCreators.js +450 -1
- package/es/store/annotation/actionCreators.js.map +1 -0
- package/es/store/annotation/map.js +22 -1
- package/es/store/annotation/map.js.map +1 -0
- package/es/store/annotation/reducer.js +657 -1
- package/es/store/annotation/reducer.js.map +1 -0
- package/es/store/annotation/selectors.js +11 -1
- package/es/store/annotation/selectors.js.map +1 -0
- package/es/store/ctx.js +9 -1
- package/es/store/ctx.js.map +1 -0
- package/es/store/imgAttribute/actionCreators.js +21 -1
- package/es/store/imgAttribute/actionCreators.js.map +1 -0
- package/es/store/imgAttribute/reducer.js +40 -1
- package/es/store/imgAttribute/reducer.js.map +1 -0
- package/es/store/index.js +13 -1
- package/es/store/index.js.map +1 -0
- package/es/store/toolStyle/actionCreators.js +17 -1
- package/es/store/toolStyle/actionCreators.js.map +1 -0
- package/es/store/toolStyle/reducer.js +50 -1
- package/es/store/toolStyle/reducer.js.map +1 -0
- package/es/utils/AnnotationDataUtils.js +165 -1
- package/es/utils/AnnotationDataUtils.js.map +1 -0
- package/es/utils/ConfigUtils.js +18 -1
- package/es/utils/ConfigUtils.js.map +1 -0
- package/es/utils/PageOperator.js +93 -1
- package/es/utils/PageOperator.js.map +1 -0
- package/es/utils/StepUtils.js +27 -1
- package/es/utils/StepUtils.js.map +1 -0
- package/es/utils/TextUtils.js +39 -1
- package/es/utils/TextUtils.js.map +1 -0
- package/es/utils/ToolStyleUtils.js +88 -1
- package/es/utils/ToolStyleUtils.js.map +1 -0
- package/es/utils/ToolUtils.js +17 -1
- package/es/utils/ToolUtils.js.map +1 -0
- package/es/utils/data.js +72 -1
- package/es/utils/data.js.map +1 -0
- package/es/utils/dom.js +20 -1
- package/es/utils/dom.js.map +1 -0
- package/es/utils/index.js +30 -1
- package/es/utils/index.js.map +1 -0
- package/es/views/MainView/annotationOperation/index.js +168 -1
- package/es/views/MainView/annotationOperation/index.js.map +1 -0
- package/es/views/MainView/annotationTips/index.js +26 -1
- package/es/views/MainView/annotationTips/index.js.map +1 -0
- package/es/views/MainView/index.js +116 -1
- package/es/views/MainView/index.js.map +1 -0
- package/es/views/MainView/sidebar/AnnotationText/index.js +41 -1
- package/es/views/MainView/sidebar/AnnotationText/index.js.map +1 -0
- package/es/views/MainView/sidebar/ClearIcon/index.js +31 -1
- package/es/views/MainView/sidebar/ClearIcon/index.js.map +1 -0
- package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +95 -1
- package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js.map +1 -0
- package/es/views/MainView/sidebar/GeneralOperation/index.js +86 -1
- package/es/views/MainView/sidebar/GeneralOperation/index.js.map +1 -0
- package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js +88 -1
- package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js.map +1 -0
- package/es/views/MainView/sidebar/ImgAttributeInfo/index.js +128 -1
- package/es/views/MainView/sidebar/ImgAttributeInfo/index.js.map +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +122 -1
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js.map +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +247 -1
- package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js.map +1 -0
- package/es/views/MainView/sidebar/ScribbleSidebar/index.js +58 -1
- package/es/views/MainView/sidebar/ScribbleSidebar/index.js.map +1 -0
- package/es/views/MainView/sidebar/SwitchAttributeList/index.js +73 -1
- package/es/views/MainView/sidebar/SwitchAttributeList/index.js.map +1 -0
- package/es/views/MainView/sidebar/TagSidebar/index.js +178 -1
- package/es/views/MainView/sidebar/TagSidebar/index.js.map +1 -0
- package/es/views/MainView/sidebar/TextAreaFormat/index.js +106 -1
- package/es/views/MainView/sidebar/TextAreaFormat/index.js.map +1 -0
- package/es/views/MainView/sidebar/TextToolSidebar/index.js +225 -1
- package/es/views/MainView/sidebar/TextToolSidebar/index.js.map +1 -0
- package/es/views/MainView/sidebar/ToolIcons.js +78 -1
- package/es/views/MainView/sidebar/ToolIcons.js.map +1 -0
- package/es/views/MainView/sidebar/ToolStyle/index.js +156 -1
- package/es/views/MainView/sidebar/ToolStyle/index.js.map +1 -0
- package/es/views/MainView/sidebar/index.js +147 -1
- package/es/views/MainView/sidebar/index.js.map +1 -0
- package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js +200 -1
- package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterPopover.js +48 -1
- package/es/views/MainView/toolFooter/FooterPopover.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +127 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js +24 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +216 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +97 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +47 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +165 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +102 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +61 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +16 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +20 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +16 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js +22 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/index.js +17 -1
- package/es/views/MainView/toolFooter/FooterTips/index.js.map +1 -0
- package/es/views/MainView/toolFooter/HiddenTips/index.js +39 -1
- package/es/views/MainView/toolFooter/HiddenTips/index.js.map +1 -0
- package/es/views/MainView/toolFooter/PageNumber/index.js +42 -1
- package/es/views/MainView/toolFooter/PageNumber/index.js.map +1 -0
- package/es/views/MainView/toolFooter/Pagination.js +82 -1
- package/es/views/MainView/toolFooter/Pagination.js.map +1 -0
- package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +33 -1
- package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js.map +1 -0
- package/es/views/MainView/toolFooter/ZoomController/index.js +63 -1
- package/es/views/MainView/toolFooter/ZoomController/index.js.map +1 -0
- package/es/views/MainView/toolFooter/index.js +125 -1
- package/es/views/MainView/toolFooter/index.js.map +1 -0
- package/es/views/MainView/toolHeader/ExportData/index.js +38 -1
- package/es/views/MainView/toolHeader/ExportData/index.js.map +1 -0
- package/es/views/MainView/toolHeader/StepSwitch/index.js +41 -1
- package/es/views/MainView/toolHeader/StepSwitch/index.js.map +1 -0
- package/es/views/MainView/toolHeader/SwitchPattern/index.js +53 -0
- package/es/views/MainView/toolHeader/SwitchPattern/index.js.map +1 -0
- package/es/views/MainView/toolHeader/headerOption/index.js +145 -1
- package/es/views/MainView/toolHeader/headerOption/index.js.map +1 -0
- package/es/views/MainView/toolHeader/index.js +173 -1
- package/es/views/MainView/toolHeader/index.js.map +1 -0
- package/package.json +8 -6
package/es/utils/PageOperator.js
CHANGED
|
@@ -1 +1,93 @@
|
|
|
1
|
-
import{EPageTurningOperation
|
|
1
|
+
import { EPageTurningOperation } from '../data/enums/AnnotationSize.js';
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
import { jsonParser } from './index.js';
|
|
4
|
+
|
|
5
|
+
const _PageOperator = class {
|
|
6
|
+
static getPageInfo(annotationStore) {
|
|
7
|
+
const {
|
|
8
|
+
imgIndex: fileIndex,
|
|
9
|
+
imgList: fileList,
|
|
10
|
+
basicResultList: basicList,
|
|
11
|
+
basicIndex,
|
|
12
|
+
step,
|
|
13
|
+
stepList
|
|
14
|
+
} = annotationStore;
|
|
15
|
+
return {
|
|
16
|
+
fileIndex,
|
|
17
|
+
basicIndex,
|
|
18
|
+
basicList,
|
|
19
|
+
fileList,
|
|
20
|
+
step,
|
|
21
|
+
stepList
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
static getNextPageInfo(pageTurningOperation, annotationStore, nextIndex) {
|
|
25
|
+
const pageInfo = _PageOperator.getPageInfo(annotationStore);
|
|
26
|
+
const {fileIndex: currentFileIndex} = _PageOperator.getPageInfo(annotationStore);
|
|
27
|
+
const nextFileIndex = _PageOperator.getNextFileIndex(pageTurningOperation, pageInfo, nextIndex);
|
|
28
|
+
const nextBasicIndex = _PageOperator.getNextBasicIndex(pageTurningOperation, pageInfo.basicIndex);
|
|
29
|
+
const fileIndexChanged = nextFileIndex !== currentFileIndex;
|
|
30
|
+
const hasNextBasicIndex = _PageOperator.hasNextBasicIndex(pageTurningOperation, pageInfo);
|
|
31
|
+
const pageChangedInfo = {
|
|
32
|
+
fileIndex: nextFileIndex,
|
|
33
|
+
basicIndex: nextBasicIndex,
|
|
34
|
+
fileIndexChanged,
|
|
35
|
+
basicIndexChanged: hasNextBasicIndex
|
|
36
|
+
};
|
|
37
|
+
if (hasNextBasicIndex) {
|
|
38
|
+
pageChangedInfo.fileIndexChanged = false;
|
|
39
|
+
pageChangedInfo.fileIndex = currentFileIndex;
|
|
40
|
+
return pageChangedInfo;
|
|
41
|
+
}
|
|
42
|
+
pageChangedInfo.basicIndex = pageTurningOperation === EPageTurningOperation.Backward ? _PageOperator.getBasicResultIndexForNextFile(pageInfo, pageChangedInfo.fileIndex) : 0;
|
|
43
|
+
return pageChangedInfo;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
let PageOperator = _PageOperator;
|
|
47
|
+
PageOperator.getNextBasicIndex = (pageTurningOperation, basicIndex) => {
|
|
48
|
+
return basicIndex + (pageTurningOperation === EPageTurningOperation.Forward ? 1 : -1);
|
|
49
|
+
};
|
|
50
|
+
PageOperator.hasNextBasicIndex = (pageTurningOperation, pageInfo) => {
|
|
51
|
+
const {basicList} = pageInfo;
|
|
52
|
+
if ((basicList == null ? void 0 : basicList.length) > 0) {
|
|
53
|
+
const nextBasicIndex = _PageOperator.getNextBasicIndex(pageTurningOperation, pageInfo.basicIndex);
|
|
54
|
+
return nextBasicIndex >= 0 && basicList.length > nextBasicIndex;
|
|
55
|
+
}
|
|
56
|
+
return false;
|
|
57
|
+
};
|
|
58
|
+
PageOperator.getBasicResultIndexForNextFile = (pageInfo, fileIndex) => {
|
|
59
|
+
var _a;
|
|
60
|
+
const {stepList, step, fileList} = pageInfo;
|
|
61
|
+
const stepConfig = stepList.find((i) => i.step === step);
|
|
62
|
+
const dataSourceStep = stepConfig == null ? void 0 : stepConfig.dataSourceStep;
|
|
63
|
+
if (dataSourceStep) {
|
|
64
|
+
const fileResult = jsonParser(fileList[fileIndex].result);
|
|
65
|
+
const stepResult = (_a = fileResult[`step_${dataSourceStep}`]) == null ? void 0 : _a.result;
|
|
66
|
+
if (!stepResult || !(stepResult == null ? void 0 : stepResult.length)) {
|
|
67
|
+
return 0;
|
|
68
|
+
}
|
|
69
|
+
return (stepResult == null ? void 0 : stepResult.length) - 1;
|
|
70
|
+
}
|
|
71
|
+
return 0;
|
|
72
|
+
};
|
|
73
|
+
PageOperator.getNextFileIndex = (pageTurningOperation, pageInfo, fileIndex) => {
|
|
74
|
+
const {fileIndex: currentFileIndex, fileList} = pageInfo;
|
|
75
|
+
let newIndex = fileIndex !== void 0 ? fileIndex : currentFileIndex;
|
|
76
|
+
switch (pageTurningOperation) {
|
|
77
|
+
case EPageTurningOperation.Forward:
|
|
78
|
+
newIndex += 1;
|
|
79
|
+
break;
|
|
80
|
+
case EPageTurningOperation.Backward:
|
|
81
|
+
newIndex -= 1;
|
|
82
|
+
break;
|
|
83
|
+
case EPageTurningOperation.Jump:
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
if (_.inRange(newIndex, 0, fileList.length)) {
|
|
87
|
+
return newIndex;
|
|
88
|
+
}
|
|
89
|
+
return currentFileIndex;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export { PageOperator as default };
|
|
93
|
+
//# sourceMappingURL=PageOperator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageOperator.js","sources":["../../src/utils/PageOperator.ts"],"sourcesContent":["import { EPageTurningOperation } from '../data/enums/AnnotationSize';\nimport _ from 'lodash';\nimport { jsonParser } from '.';\n\ninterface IPageInfo {\n fileIndex: number;\n basicIndex: number;\n basicList: any[];\n fileList: any[];\n step: number;\n stepList: any[];\n}\n\nclass PageOperator {\n public static getPageInfo(annotationStore: any) {\n const {\n imgIndex: fileIndex,\n imgList: fileList,\n basicResultList: basicList,\n basicIndex,\n step,\n stepList,\n } = annotationStore;\n\n return {\n fileIndex,\n basicIndex,\n basicList,\n fileList,\n step,\n stepList,\n };\n }\n\n /**\n *\n * @param pageTurningOperation\n * @param nextIndex\n */\n public static getNextPageInfo(\n pageTurningOperation: EPageTurningOperation,\n annotationStore: any,\n nextIndex?: number,\n ) {\n const pageInfo: IPageInfo = PageOperator.getPageInfo(annotationStore);\n const { fileIndex: currentFileIndex } = PageOperator.getPageInfo(annotationStore);\n\n const nextFileIndex = PageOperator.getNextFileIndex(pageTurningOperation, pageInfo, nextIndex);\n const nextBasicIndex = PageOperator.getNextBasicIndex(\n pageTurningOperation,\n pageInfo.basicIndex,\n );\n const fileIndexChanged = nextFileIndex !== currentFileIndex;\n\n const hasNextBasicIndex = PageOperator.hasNextBasicIndex(pageTurningOperation, pageInfo);\n\n const pageChangedInfo = {\n fileIndex: nextFileIndex,\n basicIndex: nextBasicIndex,\n fileIndexChanged,\n basicIndexChanged: hasNextBasicIndex,\n };\n\n if (hasNextBasicIndex) {\n pageChangedInfo.fileIndexChanged = false;\n pageChangedInfo.fileIndex = currentFileIndex;\n return pageChangedInfo;\n }\n\n pageChangedInfo.basicIndex =\n pageTurningOperation === EPageTurningOperation.Backward\n ? PageOperator.getBasicResultIndexForNextFile(pageInfo, pageChangedInfo.fileIndex)\n : 0;\n\n return pageChangedInfo;\n }\n\n /**\n * 获取下一个依赖索引\n * @param pageTurningOperation\n */\n public static getNextBasicIndex = (\n pageTurningOperation: EPageTurningOperation,\n basicIndex: number,\n ) => {\n return basicIndex + (pageTurningOperation === EPageTurningOperation.Forward ? 1 : -1);\n };\n\n /**\n * 存在下一个依赖数据\n * @param pageTurningOperation\n */\n public static hasNextBasicIndex = (\n pageTurningOperation: EPageTurningOperation,\n pageInfo: IPageInfo,\n ) => {\n const { basicList } = pageInfo;\n if (basicList?.length > 0) {\n const nextBasicIndex = PageOperator.getNextBasicIndex(\n pageTurningOperation,\n pageInfo.basicIndex,\n );\n\n return nextBasicIndex >= 0 && basicList.length > nextBasicIndex;\n }\n\n return false;\n };\n\n public static getBasicResultIndexForNextFile = (pageInfo: IPageInfo, fileIndex: number) => {\n const { stepList, step, fileList } = pageInfo;\n const stepConfig = stepList.find((i) => i.step === step);\n const dataSourceStep = stepConfig?.dataSourceStep;\n\n if (dataSourceStep) {\n const fileResult = jsonParser(fileList[fileIndex].result);\n const stepResult = fileResult[`step_${dataSourceStep}`]?.result;\n\n if (!stepResult || !stepResult?.length) {\n return 0;\n }\n\n return stepResult?.length - 1;\n }\n\n return 0;\n };\n\n /**\n * 计算下一个文件的索引\n * @param pageTurningOperation\n * @param fileIndex\n */\n public static getNextFileIndex = (\n pageTurningOperation: EPageTurningOperation,\n pageInfo: IPageInfo,\n fileIndex?: number,\n ) => {\n const { fileIndex: currentFileIndex, fileList } = pageInfo;\n\n let newIndex = fileIndex !== undefined ? fileIndex : currentFileIndex;\n switch (pageTurningOperation) {\n case EPageTurningOperation.Forward:\n newIndex += 1;\n break;\n case EPageTurningOperation.Backward:\n newIndex -= 1;\n break;\n case EPageTurningOperation.Jump:\n break;\n }\n\n if (_.inRange(newIndex, 0, fileList.length)) {\n return newIndex;\n }\n\n return currentFileIndex;\n };\n}\n\nexport default PageOperator;\n"],"names":[],"mappings":";;;;AAaA,MAAmB,aAAA,GAAA,MAAA;AAAA,EAAA,OACH,YAAY,eAAsB,EAAA;AAC9C,IAAM,MAAA;AAAA,MACJ,QAAU,EAAA,SAAA;AAAA,MACV,OAAS,EAAA,QAAA;AAAA,MACT,eAAiB,EAAA,SAAA;AAAA,MACjB,UAAA;AAAA,MACA,IAAA;AAAA,MACA,QAAA;AAAA,KACE,GAAA,eAAA,CAAA;AAEJ,IAAO,OAAA;AAAA,MACL,SAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,QAAA;AAAA,MACA,IAAA;AAAA,MACA,QAAA;AAAA,KAAA,CAAA;AAAA,GAAA;AAAA,EASU,OAAA,eAAA,CACZ,oBACA,EAAA,eAAA,EACA,SACA,EAAA;AACA,IAAM,MAAA,QAAA,GAAsB,cAAa,WAAY,CAAA,eAAA,CAAA,CAAA;AACrD,IAAA,MAAM,CAAE,SAAA,EAAW,gBAAqB,CAAA,GAAA,aAAA,CAAa,WAAY,CAAA,eAAA,CAAA,CAAA;AAEjE,IAAA,MAAM,aAAgB,GAAA,aAAA,CAAa,gBAAiB,CAAA,oBAAA,EAAsB,QAAU,EAAA,SAAA,CAAA,CAAA;AACpF,IAAA,MAAM,cAAiB,GAAA,aAAA,CAAa,iBAClC,CAAA,oBAAA,EACA,QAAS,CAAA,UAAA,CAAA,CAAA;AAEX,IAAA,MAAM,mBAAmB,aAAkB,KAAA,gBAAA,CAAA;AAE3C,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A,CAAA;AACrD,EAAQ,QAAA,oBAAA;AAAA,IAAA,KACD,qBAAsB,CAAA,OAAA;AACzB,MAAY,QAAA,IAAA,CAAA,CAAA;AACZ,MAAA,MAAA;AAAA,IAAA,KACG,qBAAsB,CAAA,QAAA;AACzB,MAAY,QAAA,IAAA,CAAA,CAAA;AACZ,MAAA,MAAA;AAAA,IAAA,KACG,qBAAsB,CAAA,IAAA;AACzB,MAAA,MAAA;AAAA,GAAA;AAGJ,EAAA,IAAI,CAAE,CAAA,OAAA,CAAQ,QAAU,EAAA,CAAA,EAAG,SAAS,MAAS,CAAA,EAAA;AAC3C,IAAO,OAAA,QAAA,CAAA;AAAA,GAAA;AAGT,EAAO,OAAA,gBAAA,CAAA;AAAA,CAAA;;;;"}
|
package/es/utils/StepUtils.js
CHANGED
|
@@ -1 +1,27 @@
|
|
|
1
|
-
import{EStepType
|
|
1
|
+
import { EStepType } from '../constant/index.js';
|
|
2
|
+
import ToolUtils from './ToolUtils.js';
|
|
3
|
+
|
|
4
|
+
class StepUtils {
|
|
5
|
+
static getCurrentStepInfo(currentStep, stepList) {
|
|
6
|
+
const currentStepInfo = this.getStepInfo(currentStep, stepList);
|
|
7
|
+
const useDataSourceStep = [EStepType.QUALITY_INSPECTION, EStepType.MANUAL_CORRECTION].includes(currentStepInfo == null ? void 0 : currentStepInfo.type);
|
|
8
|
+
if (useDataSourceStep) {
|
|
9
|
+
return this.getStepInfo(currentStepInfo.dataSourceStep, stepList);
|
|
10
|
+
}
|
|
11
|
+
return currentStepInfo;
|
|
12
|
+
}
|
|
13
|
+
static getStepInfo(step, stepList) {
|
|
14
|
+
return stepList == null ? void 0 : stepList.filter((info) => info.step === step)[0];
|
|
15
|
+
}
|
|
16
|
+
static currentToolIsVideo(step, stepList) {
|
|
17
|
+
const currentStepInfo = StepUtils.getCurrentStepInfo(step, stepList);
|
|
18
|
+
return ToolUtils.isVideoTool(currentStepInfo == null ? void 0 : currentStepInfo.tool);
|
|
19
|
+
}
|
|
20
|
+
static currentToolIsPointCloud(step, stepList) {
|
|
21
|
+
const currentStepInfo = StepUtils.getCurrentStepInfo(step, stepList);
|
|
22
|
+
return ToolUtils.isPointCloudTool(currentStepInfo == null ? void 0 : currentStepInfo.tool);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { StepUtils as default };
|
|
27
|
+
//# sourceMappingURL=StepUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepUtils.js","sources":["../../src/utils/StepUtils.ts"],"sourcesContent":["import { EStepType } from '@/constant';\nimport { IStepInfo } from '@/types/step';\nimport ToolUtils from './ToolUtils';\n\nexport default class StepUtils {\n /**\n * 获取当前步骤的步骤配置信息,用于当前标注配置的获取\n * @export\n * @param {number} currentStep\n * @param {IStepInfo[]} stepList\n * @returns {*}\n */\n public static getCurrentStepInfo(currentStep: number, stepList: IStepInfo[]) {\n const currentStepInfo = this.getStepInfo(currentStep, stepList);\n\n const useDataSourceStep = [EStepType.QUALITY_INSPECTION, EStepType.MANUAL_CORRECTION].includes(\n currentStepInfo?.type,\n );\n\n /** 人工修正、质检获取 dataSourceStep 作为步骤配置 */\n if (useDataSourceStep) {\n return this.getStepInfo(currentStepInfo.dataSourceStep, stepList);\n }\n\n return currentStepInfo;\n }\n\n /**\n * 找到指定步骤的数据\n * @param step 获取的步骤\n * @param stepList 步骤列表\n * @returns 步骤配置\n */\n public static getStepInfo(step: number, stepList: IStepInfo[]) {\n return stepList?.filter((info) => info.step === step)[0];\n }\n\n /**\n * 根据toolName判断当前步骤是否为视频工具\n * @param step 步骤\n * @param stepList 步骤列表\n * @returns {Number} 是否为视频工具\n */\n public static currentToolIsVideo(step: number, stepList: IStepInfo[]) {\n const currentStepInfo = StepUtils.getCurrentStepInfo(step, stepList);\n return ToolUtils.isVideoTool(currentStepInfo?.tool);\n }\n\n\n /**\n * Check for PointCloud\n * @param step \n * @param stepList \n * @returns \n */\n public static currentToolIsPointCloud(step: number, step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iBAAiB,eAAiB,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAA,IAAA,CAAA,CAAA;AAAA,GAAA;AAAA;;;;"}
|
package/es/utils/TextUtils.js
CHANGED
|
@@ -1 +1,39 @@
|
|
|
1
|
-
import{ETextType
|
|
1
|
+
import { ETextType } from '../data/enums/ToolType.js';
|
|
2
|
+
import { i18n } from '@labelbee/lb-utils';
|
|
3
|
+
|
|
4
|
+
const REGEXP_NUMBER = "^[0-9]+$";
|
|
5
|
+
const REGEXP_ENGLISH = "^[A-Za-z]+$";
|
|
6
|
+
class TextUtils {
|
|
7
|
+
static checkString(textCheckType, customFormat) {
|
|
8
|
+
let regExpString = "";
|
|
9
|
+
switch (textCheckType) {
|
|
10
|
+
case ETextType.Order:
|
|
11
|
+
case ETextType.NumberOnly:
|
|
12
|
+
regExpString = REGEXP_NUMBER;
|
|
13
|
+
break;
|
|
14
|
+
case ETextType.EnglishOnly:
|
|
15
|
+
regExpString = REGEXP_ENGLISH;
|
|
16
|
+
break;
|
|
17
|
+
case ETextType.CustomFormat:
|
|
18
|
+
regExpString = customFormat;
|
|
19
|
+
break;
|
|
20
|
+
}
|
|
21
|
+
return regExpString;
|
|
22
|
+
}
|
|
23
|
+
static getErrorNotice(textCheckType) {
|
|
24
|
+
switch (textCheckType) {
|
|
25
|
+
case ETextType.Order:
|
|
26
|
+
case ETextType.NumberOnly:
|
|
27
|
+
return i18n.t("TextCheckNumberOnly");
|
|
28
|
+
case ETextType.EnglishOnly:
|
|
29
|
+
return i18n.t("TextCheckEnglishOnly");
|
|
30
|
+
case ETextType.CustomFormat:
|
|
31
|
+
return i18n.t("TextCheckCustomFormat");
|
|
32
|
+
default:
|
|
33
|
+
return "";
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { REGEXP_ENGLISH, REGEXP_NUMBER, TextUtils };
|
|
39
|
+
//# sourceMappingURL=TextUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextUtils.js","sources":["../../src/utils/TextUtils.ts"],"sourcesContent":["/*\n * @Author: Laoluo luozefeng@sensetime.com\n * @Date: 2022-01-12 13:15:33\n * @LastEditors: Laoluo luozefeng@sensetime.com\n * @LastEditTime: 2022-05-30 15:51:43\n */\nimport { ETextType } from '@/data/enums/ToolType';\nimport { i18n } from '@labelbee/lb-utils';\n\nexport const REGEXP_NUMBER = '^[0-9]+$';\nexport const REGEXP_ENGLISH = '^[A-Za-z]+$';\n\nexport class TextUtils {\n public static checkString(textCheckType: ETextType, customFormat: string) {\n let regExpString = '';\n switch (textCheckType) {\n case ETextType.Order:\n case ETextType.NumberOnly:\n regExpString = REGEXP_NUMBER;\n break;\n case ETextType.EnglishOnly:\n regExpString = REGEXP_ENGLISH;\n break;\n case ETextType.CustomFormat:\n regExpString = customFormat;\n break;\n }\n return regExpString;\n }\n\n public static getErrorNotice(textCheckType: ETextType) {\n switch (textCheckType) {\n case ETextType.Order:\n case ETextType.NumberOnly:\n return i18n.t(\"TextCheckNumberOnly\");\n case ETextType.EnglishOnly:\n return i18n.t(\"TextCheckEnglishOnly\");\n case ETextType.CustomFormat:\n return i18n.t(\"TextCheckCustomFormat\");\n default:\n return '';\n }\n }\n}\n"],"names":[],"mappings":";;;AASO,MAAM,aAAgB,GAAA,WAAA;AACtB,MAAM,cAAiB,GAAA,cAAA;AAEP,MAAA,SAAA,CAAA;AAAA,EACP,OAAA,WAAA,CAAY,eAA0B,YAAsB,EAAA;AACxE,IAAA,IAAI,YAAe,GAAA,EAAA,CAAA;AACnB,IAAQ,QAAA,aAAA;AAAA,MAAA,KACD,SAAU,CAAA,KAAA,CAAA;AAAA,MAAA,KACV,SAAU,CAAA,UAAA;AACb,QAAe,YAAA,GAAA,aAAA,CAAA;AACf,QAAA,MAAA;AAAA,MAAA,KACG,SAAU,CAAA,WAAA;AACb,QAAe,YAAA,GAAA,cAAA,CAAA;AACf,QAAA,MAAA;AAAA,MAAA,KACG,SAAU,CAAA,YAAA;AACb,QAAe,YAAA,GAAA,YAAA,CAAA;AACf,QAAA,MAAA;AAAA,KAAA;AAEJ,IAAO,OAAA,YAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAGK,eAAe,aAA0B,EAAA;AACrD,IAAQ,QAAA,aAAA;AAAA,MAAA,KACD,SAAU,CAAA,KAAA,CAAA;AAAA,MAAA,KACV,SAAU,CAAA,UAAA;AACb,QAAA,OAAO,KAAK,CAAE,CAAA,qBAAA,CAAA,CAAA;AAAA,MAAA,KACX,SAAU,CAAA,WAAA;AACb,QAAA,OAAO,KAAK,CAAE,CAAA,sBAAA,CAAA,CAAA;AAAA,MAAA,KACX,SAAU,CAAA,YAAA;AACb,QAAA,OAAO,KAAK,CAAE,CAAA,uBAAA,CAAA,CAAA;AAAA,MAAA;AAEd,QAAO,OAAA,EAAA,CAAA;AAAA,KAAA;AAAA,GAAA;AAAA;;;;"}
|
|
@@ -1 +1,88 @@
|
|
|
1
|
-
import{CHANGE_COLOR
|
|
1
|
+
import { CHANGE_COLOR, DEFAULT_COLOR, COLORS_ARRAY, NULL_COLOR, BORDER_OPACITY_LEVEL, FILL_OPACITY_LEVEL } from '../data/Style.js';
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
|
|
4
|
+
const FILL_OPACITY = 0.8;
|
|
5
|
+
const _ToolStyleUtils = class {
|
|
6
|
+
static colorSplit(color, opacity) {
|
|
7
|
+
return color.split(" ").join("").replace(/,[0-9]+([.]{1}[0-9]+){0,1}\)/, `,${opacity.toFixed(2)})`);
|
|
8
|
+
}
|
|
9
|
+
static computeOpacity(opacity, color) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const s = ((_a = color.split(" ").join("").match(/,[0-9]+([.]{1}[0-9]+){0,1}\)/)) == null ? void 0 : _a[0]) || "";
|
|
12
|
+
let firstOpacity = (_b = s.match(/[0-9]+([.]{1}[0-9]+){0,1}/)) == null ? void 0 : _b[0];
|
|
13
|
+
return opacity * Number(firstOpacity);
|
|
14
|
+
}
|
|
15
|
+
static getToolColors(borderOpacityParam = 9, fillOpacityParam = 9) {
|
|
16
|
+
const colorSplit = _ToolStyleUtils.colorSplit;
|
|
17
|
+
const computeOpacity = _ToolStyleUtils.computeOpacity;
|
|
18
|
+
const toolColor = _.cloneDeep(CHANGE_COLOR);
|
|
19
|
+
const borderOpacity = BORDER_OPACITY_LEVEL[borderOpacityParam];
|
|
20
|
+
const fillOpacity = FILL_OPACITY_LEVEL[fillOpacityParam];
|
|
21
|
+
Object.keys(CHANGE_COLOR).forEach((color) => {
|
|
22
|
+
const showColor = _.cloneDeep(DEFAULT_COLOR);
|
|
23
|
+
showColor.valid.stroke = colorSplit(CHANGE_COLOR[color].valid, computeOpacity(borderOpacity, CHANGE_COLOR[color].valid));
|
|
24
|
+
showColor.valid.fill = colorSplit(CHANGE_COLOR[color].valid, computeOpacity(fillOpacity, CHANGE_COLOR[color].valid) * FILL_OPACITY);
|
|
25
|
+
showColor.validSelected.stroke = colorSplit(CHANGE_COLOR[color].select.stroke, computeOpacity(borderOpacity, CHANGE_COLOR[color].select.stroke));
|
|
26
|
+
showColor.validSelected.fill = colorSplit(CHANGE_COLOR[color].select.fill, computeOpacity(fillOpacity, CHANGE_COLOR[color].select.fill) * FILL_OPACITY);
|
|
27
|
+
showColor.validHover.stroke = colorSplit(CHANGE_COLOR[color].hover, computeOpacity(borderOpacity, CHANGE_COLOR[color].hover));
|
|
28
|
+
showColor.validHover.fill = colorSplit(CHANGE_COLOR[color].hover, computeOpacity(fillOpacity, CHANGE_COLOR[color].hover) * FILL_OPACITY);
|
|
29
|
+
showColor.invalid.stroke = colorSplit(showColor.invalid.stroke, computeOpacity(borderOpacity, showColor.invalid.stroke));
|
|
30
|
+
showColor.invalid.fill = colorSplit(showColor.invalid.stroke, computeOpacity(fillOpacity, showColor.invalid.stroke) * FILL_OPACITY);
|
|
31
|
+
showColor.invalidSelected.stroke = colorSplit(showColor.invalidSelected.stroke, computeOpacity(borderOpacity, showColor.invalidSelected.stroke));
|
|
32
|
+
showColor.invalidSelected.fill = colorSplit(showColor.invalidSelected.fill, computeOpacity(fillOpacity, showColor.invalidSelected.fill) * FILL_OPACITY);
|
|
33
|
+
showColor.invalidHover.stroke = colorSplit(showColor.invalidHover.stroke, computeOpacity(borderOpacity, showColor.invalidHover.fill));
|
|
34
|
+
showColor.invalidHover.fill = colorSplit(showColor.invalidHover.fill, computeOpacity(fillOpacity, showColor.invalidHover.fill) * FILL_OPACITY);
|
|
35
|
+
toolColor[color] = showColor;
|
|
36
|
+
});
|
|
37
|
+
return toolColor;
|
|
38
|
+
}
|
|
39
|
+
static getAttributeColors(borderOpacityParam = 9, fillOpacityParam = 9) {
|
|
40
|
+
const colorSplit = _ToolStyleUtils.colorSplit;
|
|
41
|
+
const computeOpacity = _ToolStyleUtils.computeOpacity;
|
|
42
|
+
const borderOpacity = BORDER_OPACITY_LEVEL[borderOpacityParam];
|
|
43
|
+
const fillOpacity = FILL_OPACITY_LEVEL[fillOpacityParam];
|
|
44
|
+
let AttributeColorList = _.cloneDeep(COLORS_ARRAY);
|
|
45
|
+
AttributeColorList.unshift(NULL_COLOR);
|
|
46
|
+
AttributeColorList = AttributeColorList.map((item) => {
|
|
47
|
+
const showColor = JSON.parse(JSON.stringify(DEFAULT_COLOR));
|
|
48
|
+
showColor.valid.stroke = colorSplit(item, computeOpacity(borderOpacity, item));
|
|
49
|
+
showColor.valid.fill = colorSplit(item, computeOpacity(fillOpacity, item) * FILL_OPACITY * 0.5);
|
|
50
|
+
showColor.validSelected.stroke = colorSplit(item, computeOpacity(borderOpacity, item));
|
|
51
|
+
showColor.validSelected.fill = colorSplit(item, computeOpacity(fillOpacity, item) * FILL_OPACITY);
|
|
52
|
+
showColor.validHover.stroke = colorSplit(item, computeOpacity(borderOpacity, item));
|
|
53
|
+
showColor.validHover.fill = colorSplit(item, computeOpacity(fillOpacity, item) * FILL_OPACITY);
|
|
54
|
+
showColor.invalid.stroke = colorSplit(showColor.invalid.stroke, computeOpacity(borderOpacity, item));
|
|
55
|
+
showColor.invalid.fill = colorSplit(showColor.invalid.fill, computeOpacity(fillOpacity, item) * FILL_OPACITY * 0.5);
|
|
56
|
+
showColor.invalidSelected.stroke = colorSplit(showColor.invalidSelected.stroke, computeOpacity(borderOpacity, item));
|
|
57
|
+
showColor.invalidSelected.fill = colorSplit(showColor.invalidSelected.fill, computeOpacity(fillOpacity, item) * FILL_OPACITY);
|
|
58
|
+
showColor.invalidHover.stroke = colorSplit(showColor.invalidHover.stroke, computeOpacity(borderOpacity, item));
|
|
59
|
+
showColor.invalidHover.fill = colorSplit(showColor.invalidHover.fill, computeOpacity(fillOpacity, item) * FILL_OPACITY);
|
|
60
|
+
return showColor;
|
|
61
|
+
});
|
|
62
|
+
return AttributeColorList;
|
|
63
|
+
}
|
|
64
|
+
static getDefaultToolLineColors() {
|
|
65
|
+
const toolColor = {};
|
|
66
|
+
Object.keys(CHANGE_COLOR).forEach((color) => {
|
|
67
|
+
toolColor[color] = CHANGE_COLOR[color].line;
|
|
68
|
+
});
|
|
69
|
+
return toolColor;
|
|
70
|
+
}
|
|
71
|
+
static initByOpacity(borderOpacity, fillOpacity) {
|
|
72
|
+
return {
|
|
73
|
+
toolColor: this.getToolColors(borderOpacity, fillOpacity),
|
|
74
|
+
attributeColor: this.getAttributeColors(borderOpacity, fillOpacity)
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
let ToolStyleUtils = _ToolStyleUtils;
|
|
79
|
+
ToolStyleUtils.changeOpacity = {
|
|
80
|
+
1: 0.2,
|
|
81
|
+
3: 0.4,
|
|
82
|
+
5: 0.6,
|
|
83
|
+
7: 0.8,
|
|
84
|
+
9: 1
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export { ToolStyleUtils };
|
|
88
|
+
//# sourceMappingURL=ToolStyleUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolStyleUtils.js","sources":["../../src/utils/ToolStyleUtils.ts"],"sourcesContent":["import {\n CHANGE_COLOR,\n DEFAULT_COLOR,\n COLORS_ARRAY,\n NULL_COLOR,\n BORDER_OPACITY_LEVEL,\n FILL_OPACITY_LEVEL,\n} from '@/data/Style';\nimport _ from 'lodash';\n\nconst FILL_OPACITY = 0.8;\n\nexport class ToolStyleUtils {\n public static changeOpacity: { [a: number]: number } = {\n 1: 0.2,\n 3: 0.4,\n 5: 0.6,\n 7: 0.8,\n 9: 1.0,\n };\n\n public static colorSplit(color: string, opacity: number) {\n return color\n .split(' ')\n .join('')\n .replace(/,[0-9]+([.]{1}[0-9]+){0,1}\\)/, `,${opacity.toFixed(2)})`);\n }\n\n public static computeOpacity(opacity: number, color: string) {\n const s =\n color\n .split(' ')\n .join('')\n .match(/,[0-9]+([.]{1}[0-9]+){0,1}\\)/)?.[0] || '';\n let firstOpacity = s.match(/[0-9]+([.]{1}[0-9]+){0,1}/)?.[0];\n return opacity * Number(firstOpacity);\n }\n\n public static getToolColors(borderOpacityParam = 9, fillOpacityParam = 9) {\n const colorSplit = ToolStyleUtils.colorSplit;\n const computeOpacity = ToolStyleUtils.computeOpacity;\n\n const toolColor = _.cloneDeep(CHANGE_COLOR);\n const borderOpacity = BORDER_OPACITY_LEVEL[borderOpacityParam];\n const fillOpacity = FILL_OPACITY_LEVEL[fillOpacityParam];\n\n Object.keys(CHANGE_COLOR).forEach((color: any) => {\n const showColor = _.cloneDeep(DEFAULT_COLOR);\n showColor.valid.stroke = colorSplit(\n CHANGE_COLOR[color].valid,\n computeOpacity(borderOpacity, CHANGE_COLOR[color].valid),\n );\n showColor.valid.fill = colorSplit(\n CHANGE_COLOR[color].valid,\n computeOpacity(fillOpacity, CHANGE_COLOR[color].valid) * FILL_OPACITY,\n );\n showColor.validSelected.stroke = colorSplit(\n CHANGE_COLOR[color].select.stroke,\n computeOpacity(borderOpacity, CHANGE_COLOR[color].select.stroke),\n );\n showColor.validSelected.fill = colorSplit(\n CHANGE_COLOR[color].select.fill,\n computeOpacity(fillOpacity, CHANGE_COLOR[color].select.fill) * FILL_OPACITY,\n );\n showColor.validHover.stroke = colorSplit(\n CHANGE_COLOR[color].hover,\n computeOpacity(borderOpacity, CHANGE_COLOR[color].hover),\n );\n showColor.validHover.fill = colorSplit(\n CHANGE_COLOR[color].hover,\n computeOpacity(fillOpacity, CHANGE_COLOR[color].hover) * FILL_OPACITY,\n );\n\n // 无效的比例是一样的\n showColor.invalid.stroke = colorSplit(\n showColor.invalid.stroke,\n computeOpacity(borderOpacity, showColor.invalid.stroke),\n );\n showColor.invalid.fill = colorSplit(\n showColor.invalid.stroke,\n computeOpacity(fillOpacity, showColor.invalid.stroke) * FILL_OPACITY,\n );\n showColor.invalidSelected.stroke = colorSplit(\n showColor.invalidSelected.stroke,\n computeOpacity(borderOpacity, showColor.invalidSelected.stroke),\n );\n showColor.invalidSelected.fill = colorSplit(\n showColor.invalidSelected.fill,\n computeOpacity(fillOpacity, showColor.invalidSelected.fill) * FILL_OPACITY,\n );\n showColor.invalidHover.stroke = colorSplit(\n showColor.invalidHover.stroke,\n computeOpacity(borderOpacity, showColor.invalidHover.fill),\n );\n showColor.invalidHover.fill = colorSplit(\n showColor.invalidHover.fill,\n computeOpacity(fillOpacity, showColor.invalidHover.fill) * FILL_OPACITY,\n );\n toolColor[color] = showColor;\n });\n return toolColor;\n }\n\n public static getAttributeColors(borderOpacityParam = 9, fillOpacityParam = 9) {\n const colorSplit = ToolStyleUtils.colorSplit;\n const computeOpacity = ToolStyleUtils.computeOpacity;\n const borderOpacity = BORDER_OPACITY_LEVEL[borderOpacityParam];\n const fillOpacity = FILL_OPACITY_LEVEL[fillOpacityParam];\n\n let AttributeColorList: string[] = _.cloneDeep(COLORS_ARRAY);\n AttributeColorList.unshift(NULL_COLOR);\n AttributeColorList = AttributeColorList.map((item) => {\n const showColor = JSON.parse(JSON.stringify(DEFAULT_COLOR));\n showColor.valid.stroke = colorSplit(item, computeOpacity(borderOpacity, item));\n showColor.valid.fill = colorSplit(\n item,\n computeOpacity(fillOpacity, item) * FILL_OPACITY * 0.5,\n );\n showColor.validSelected.stroke = colorSplit(item, computeOpacity(borderOpacity, item));\n showColor.validSelected.fill = colorSplit(\n item,\n computeOpacity(fillOpacity, item) * FILL_OPACITY,\n );\n showColor.validHover.stroke = colorSplit(item, computeOpacity(borderOpacity, item));\n showColor.validHover.fill = colorSplit(\n item,\n computeOpacity(fillOpacity, item) * FILL_OPACITY,\n );\n showColor.invalid.stroke = colorSplit(\n showColor.invalid.stroke,\n computeOpacity(borderOpacity, item),\n );\n showColor.invalid.fill = colorSplit(\n showColor.invalid.fill,\n computeOpacity(fillOpacity, item) * FILL_OPACITY * 0.5,\n );\n showColor.invalidSelected.stroke = colorSplit(\n showColor.invalidSelected.stroke,\n computeOpacity(borderOpacity, item),\n );\n showColor.invalidSelected.fill = colorSplit(\n showColor.invalidSelected.fill,\n computeOpacity(fillOpacity, item) * FILL_OPACITY,\n );\n showColor.invalidHover.stroke = colorSplit(\n showColor.invalidHover.stroke,\n computeOpacity(borderOpacity, item),\n );\n showColor.invalidHover.fill = colorSplit(\n showColor.invalidHover.fill,\n computeOpacity(fillOpacity, item) * FILL_OPACITY,\n );\n return showColor;\n });\n return AttributeColorList;\n }\n\n public static getDefaultToolLineColors() {\n const toolColor: any = {};\n Object.keys(CHANGE_COLOR).forEach((color: any) => {\n toolColor[color] = CHANGE_COLOR[color].line;\n });\n return toolColor;\n }\n\n public static initByOpacity(borderOpacity: number, fillOpacity: number) {\n return {\n toolColor: this.getToolColors(borderOpacity, fillOpacity),\n attributeColor: this.getAttributeColors(borderOpacity, fillOpacity),\n };\n }\n}\n"],"names":[],"mappings":";;;AAUA,MAAM,YAAe,GAAA,GAAA,CAAA;AAEd,MAAqB,eAAA,GAAA,MAAA;AAAA,EASZ,OAAA,UAAA,CAAW,OAAe,OAAiB,EAAA;AACvD,IAAO,OAAA,KAAA,CACJ,MAAM,GACN,CAAA,CAAA,IAAA,CAAK,IACL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AgB,IAAK,CAAA,kBAAA,CAAmB,aAAe,EAAA,WAAA,CAAA;AAAA,KAAA,CAAA;AAAA,GAAA;AAAA,CAAA,CAAA;AA5JtD,IAAA,cAAA,GAAA,gBAAA;AAAA,eACS,aAAyC,GAAA;AAAA,EACrD,CAAG,EAAA,GAAA;AAAA,EACH,CAAG,EAAA,GAAA;AAAA,EACH,CAAG,EAAA,GAAA;AAAA,EACH,CAAG,EAAA,GAAA;AAAA,EACH,CAAG,EAAA,CAAA;AAAA,CAAA;;;;"}
|
package/es/utils/ToolUtils.js
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
|
-
import{cTool
|
|
1
|
+
import { cTool } from '@labelbee/lb-annotation';
|
|
2
|
+
|
|
3
|
+
const {EVideoToolName, EPointCloudName, EToolName} = cTool;
|
|
4
|
+
class ToolUtils {
|
|
5
|
+
static isVideoTool(tool) {
|
|
6
|
+
return tool ? Object.values(EVideoToolName).includes(tool) : false;
|
|
7
|
+
}
|
|
8
|
+
static isPointCloudTool(tool) {
|
|
9
|
+
return tool ? Object.values(EPointCloudName).includes(tool) : false;
|
|
10
|
+
}
|
|
11
|
+
static getPointCloudToolList() {
|
|
12
|
+
return [EToolName.Point, EToolName.Line, EToolName.PointCloudPolygon];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { ToolUtils as default };
|
|
17
|
+
//# sourceMappingURL=ToolUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolUtils.js","sources":["../../src/utils/ToolUtils.ts"],"sourcesContent":["/**\n * @author Glenfiddish <edwinlee0927@hotmail.com>\n * @file Tool utils\n * @date 2022-06-20\n */\n\nimport { cTool } from '@labelbee/lb-annotation';\nconst { EVideoToolName, EPointCloudName, EToolName } = cTool;\n\nclass ToolUtils {\n public static isVideoTool(tool?: string) {\n return tool ? (Object.values(EVideoToolName) as string[]).includes(tool) : false;\n }\n\n public static isPointCloudTool(tool?: string) {\n return tool ? (Object.values(EPointCloudName) as string[]).includes(tool) : false;\n }\n\n public static getPointCloudToolList() {\n return [EToolName.Point, EToolName.Line, EToolName.PointCloudPolygon]\n }\n}\n\nexport default ToolUtils;\n"],"names":[],"mappings":";;AAOA,MAAM,CAAE,cAAgB,EAAA,eAAA,EAAiB,SAAc,CAAA,GAAA,KAAA,CAAA;AAEvD,MAAgB,SAAA,CAAA;AAAA,EAAA,OACA,YAAY,IAAe,EAAA;AACvC,IAAA,OAAO,IAAQ,GAAA,MAAA,CAAO,MAAO,CAAA,cAAA,CAAA,CAA6B,SAAS,IAAQ,CAAA,GAAA,KAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAG/D,iBAAiB,IAAe,EAAA;AAC5C,IAAA,OAAO,IAAQ,GAAA,MAAA,CAAO,MAAO,CAAA,eAAA,CAAA,CAA8B,SAAS,IAAQ,CAAA,GAAA,KAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAGhE,qBAAwB,GAAA;AACpC,IAAA,OAAO,CAAC,SAAA,CAAU,KAAO,EAAA,SAAA,CAAU,MAAM,SAAU,CAAA,iBAAA,CAAA,CAAA;AAAA,GAAA;AAAA;;;;"}
|
package/es/utils/data.js
CHANGED
|
@@ -1 +1,72 @@
|
|
|
1
|
-
import{jsonParser
|
|
1
|
+
import { jsonParser } from './index.js';
|
|
2
|
+
import StepUtils from './StepUtils.js';
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defProps = Object.defineProperties;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
const composeResultWithBasicImgInfo = (result, basicImgInfo) => {
|
|
24
|
+
const newResult = JSON.stringify(__spreadValues(__spreadValues({}, jsonParser(result)), basicImgInfo));
|
|
25
|
+
return newResult;
|
|
26
|
+
};
|
|
27
|
+
const composeResult = (result, pos, newData, customObject) => {
|
|
28
|
+
const {step, stepList} = pos;
|
|
29
|
+
const {rect, basicRectID} = newData;
|
|
30
|
+
try {
|
|
31
|
+
const data = jsonParser(result);
|
|
32
|
+
const currentStepInfo = StepUtils.getCurrentStepInfo(step, stepList);
|
|
33
|
+
const {dataSourceStep} = currentStepInfo;
|
|
34
|
+
const stepName = `step_${currentStepInfo.step}`;
|
|
35
|
+
if (data[stepName]) {
|
|
36
|
+
const info = data[stepName];
|
|
37
|
+
Object.assign(info, customObject);
|
|
38
|
+
if (info.result) {
|
|
39
|
+
if (JSON.stringify(info.result) === JSON.stringify(rect)) {
|
|
40
|
+
return JSON.stringify(data);
|
|
41
|
+
}
|
|
42
|
+
if (basicRectID) {
|
|
43
|
+
info.result = [
|
|
44
|
+
...info.result.filter((v) => !(v.sourceID && v.sourceID === basicRectID)),
|
|
45
|
+
...rect.filter((v) => v.sourceID && v.sourceID === basicRectID)
|
|
46
|
+
];
|
|
47
|
+
} else {
|
|
48
|
+
info.result = rect;
|
|
49
|
+
}
|
|
50
|
+
return JSON.stringify(data);
|
|
51
|
+
}
|
|
52
|
+
return JSON.stringify(__spreadProps(__spreadValues({}, data), {
|
|
53
|
+
[stepName]: __spreadProps(__spreadValues(__spreadValues({}, data[stepName]), customObject), {
|
|
54
|
+
result: rect
|
|
55
|
+
})
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
return JSON.stringify(__spreadProps(__spreadValues({}, data), {
|
|
59
|
+
[stepName]: __spreadProps(__spreadValues({
|
|
60
|
+
dataSourceStep
|
|
61
|
+
}, customObject), {
|
|
62
|
+
toolName: stepList[step - 1].tool,
|
|
63
|
+
result: rect
|
|
64
|
+
})
|
|
65
|
+
}));
|
|
66
|
+
} catch (e) {
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export { composeResult, composeResultWithBasicImgInfo };
|
|
72
|
+
//# sourceMappingURL=data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.js","sources":["../../src/utils/data.ts"],"sourcesContent":["import { jsonParser } from '.';\nimport StepUtils from './StepUtils';\n\n/**\n * 解析结果,将图片信息注入到结果\n * @param result\n * @param basicImgInfo\n */\nexport const composeResultWithBasicImgInfo = (\n result: string,\n basicImgInfo: { [a: string]: any },\n) => {\n const newResult = JSON.stringify({ ...jsonParser(result), ...basicImgInfo });\n return newResult;\n};\n\n// 处理result\nexport const composeResult = (\n result: string,\n pos: {\n step: number;\n stepList: any[];\n },\n newData: {\n rect: any[];\n basicRectID?: string;\n },\n customObject: Object,\n) => {\n const { step, stepList } = pos;\n const { rect, basicRectID } = newData;\n\n try {\n const data = jsonParser(result);\n const currentStepInfo = StepUtils.getCurrentStepInfo(step, stepList);\n const { dataSourceStep } = currentStepInfo;\n\n const stepName = `step_${currentStepInfo.step}`;\n if (data[stepName]) {\n const info = data[stepName];\n Object.assign(info, customObject);\n\n if (info.result) {\n if (JSON.stringify(info.result) === JSON.stringify(rect)) {\n return JSON.stringify(data);\n }\n if (basicRectID) {\n info.result = [\n ...info.result.filter(\n (v: { sourceID: string }) => !(v.sourceID && v.sourceID === basicRectID),\n ),\n ...rect.filter((v) => v.sourceID && v.sourceID === basicRectID),\n ];\n } else {\n info.result = rect;\n }\n return JSON.stringify(data);\n }\n return JSON.stringify({\n ...data,\n [stepName]: {\n ...data[stepName],\n ...customObject,\n result: rect,\n },\n });\n }\n // 初始化结果\n return JSON.stringify({\n ...data,\n [stepName]: {\n dataSourceStep,\n ...customObject,\n toolName: stepList[step - 1].tool,\n result: rect,\n },\n });\n } catch (e) {\n return result;\n }\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAQa,MAAA,6BAAA,GAAgC,CAC3C,MAAA,EACA,YACG,KAAA;AACH,EAAA,MAAM,SAAY,GAAA,IAAA,CAAK,SAAU,CAAA,cAAA,CAAA,cAAA,CAAA,EAAA,EAAK,WAAW,MAAY,CAAA,CAAA,EAAA,YAAA,CAAA,CAAA,CAAA;AAC7D,EAAO,OAAA,SAAA,CAAA;AAAA,EAAA;AAIF,MAAM,aAAgB,GAAA,CAC3B,MACA,EAAA,GAAA,EAIA,SAIA,YACG,KAAA;AACH,EAAM,MAAA,CAAE,MAAM,QAAa,CAAA,GAAA,GAAA,CAAA;AAC3B,EAAM,MAAA,CAAE,MAAM,WAAgB,CAAA,GAAA,OAAA,CAAA;AAE9B,EAAI,IAAA;AACF,IAAA,MAAM,OAAO,UAAW,CAAA,MAAA,CAAA,CAAA;AACxB,IAAM,MAAA,eAAA,GAAkB,SAAU,CAAA,kBAAA,CAAmB,IAAM,EAAA,QAAA,CAAA,CAAA;AAC3D,IAAA,MAAM,CAAE,cAAmB,CAAA,GAAA,eAAA,CAAA;AAE3B,IAAM,MAAA,QAAA,GAAW,QAAQ,eAAgB,CAAA,IAAA,CAAA,CAAA,CAAA;AACzC,IAAA,IAAI,KAAK,QAAW,CAAA,EAAA;AAClB,MAAA,MAAM,OAAO,IAAK,CAAA,QAAA,CAAA,CAAA;AAClB,MAAA,MAAA,CAAO,OAAO,IAAM,EAAA,YAAA,CAAA,CAAA;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A,IAAA,GAAO,CAAG,CAAA,CAAA,IAAA;AAAA,QAC7B,MAAQ,EAAA,IAAA;AAAA,OAAA,CAAA;AAAA,KAAA,CAAA,CAAA,CAAA;AAAA,GAAA,CAAA,OAGL,CAAP,EAAA;AACA,IAAO,OAAA,MAAA,CAAA;AAAA,GAAA;AAAA;;;;"}
|
package/es/utils/dom.js
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
|
-
import{prefix
|
|
1
|
+
import { prefix } from '../constant/index.js';
|
|
2
|
+
|
|
3
|
+
function getTargetElement(target, defaultElement) {
|
|
4
|
+
if (!target) {
|
|
5
|
+
return defaultElement;
|
|
6
|
+
}
|
|
7
|
+
let targetElement;
|
|
8
|
+
if (typeof target === "function") {
|
|
9
|
+
targetElement = target();
|
|
10
|
+
} else if ("current" in target) {
|
|
11
|
+
targetElement = target.current;
|
|
12
|
+
} else {
|
|
13
|
+
targetElement = target;
|
|
14
|
+
}
|
|
15
|
+
return targetElement;
|
|
16
|
+
}
|
|
17
|
+
const getClassName = (block, elm, modify) => `${prefix}-${block}${elm ? "__" + elm : ""}${modify ? "__" + modify : ""}`;
|
|
18
|
+
|
|
19
|
+
export { getClassName, getTargetElement };
|
|
20
|
+
//# sourceMappingURL=dom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom.js","sources":["../../src/utils/dom.ts"],"sourcesContent":["import { MutableRefObject } from 'react';\nimport { prefix } from '@/constant';\n\nexport type BasicTarget<T = HTMLElement> =\n | (() => T | null)\n | T\n | null\n | MutableRefObject<T | null | undefined>;\n\ntype TargetElement = HTMLElement | Element | Document | Window;\n\nexport function getTargetElement(\n target?: BasicTarget<TargetElement>,\n defaultElement?: TargetElement,\n): TargetElement | undefined | null {\n if (!target) {\n return defaultElement;\n }\n\n let targetElement: TargetElement | undefined | null;\n\n if (typeof target === 'function') {\n // TODO. Maybe the new version of typescript is not allowed.\n // @ts-ignore\n targetElement = target();\n } else if ('current' in target) {\n targetElement = target.current;\n } else {\n targetElement = target;\n }\n\n return targetElement;\n}\n\n/**\n * Get class like BEM\n * @param elm\n * @param modify\n */\nexport const getClassName = (block: string, elm?: string, modify?: string) =>\n `${prefix}-${block}${elm ? '__' + elm : ''}${modify ? '__' + modify : ''}`;\n"],"names":[],"mappings":";;AAWO,SAAA,gBAAA,CACL,QACA,cACkC,EAAA;AAClC,EAAA,IAAI,CAAC,MAAQ,EAAA;AACX,IAAO,OAAA,cAAA,CAAA;AAAA,GAAA;AAGT,EAAI,IAAA,aAAA,CAAA;AAEJ,EAAI,IAAA,OAAO,WAAW,UAAY,EAAA;AAGhC,IAAgB,aAAA,GAAA,MAAA,EAAA,CAAA;AAAA,GAAA,MAAA,IACP,aAAa,MAAQ,EAAA;AAC9B,IAAA,aAAA,GAAgB,MAAO,CAAA,OAAA,CAAA;AAAA,GAClB,MAAA;AACL,IAAgB,aAAA,GAAA,MAAA,CAAA;AAAA,GAAA;AAGlB,EAAO,OAAA,aAAA,CAAA;AAAA,CAAA;AAQF,MAAM,YAAe,GAAA,CAAC,KAAe,EAAA,GAAA,EAAc,WACxD,CAAG,EAAA,MAAA,CAAA,CAAA,EAAU,KAAQ,CAAA,EAAA,GAAA,GAAM,IAAO,GAAA,GAAA,GAAM,EAAK,CAAA,EAAA,MAAA,GAAS,OAAO,MAAS,GAAA,EAAA,CAAA;;;;"}
|
package/es/utils/index.js
CHANGED
|
@@ -1 +1,30 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _ from 'lodash';
|
|
2
|
+
|
|
3
|
+
const jsonParser = (content, defaultValue = {}) => {
|
|
4
|
+
try {
|
|
5
|
+
if (typeof content === "string") {
|
|
6
|
+
return JSON.parse(content);
|
|
7
|
+
}
|
|
8
|
+
return _.isObject(content) ? content : defaultValue;
|
|
9
|
+
} catch (e) {
|
|
10
|
+
return defaultValue;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const classnames = (className) => {
|
|
14
|
+
if (Array.isArray(className)) {
|
|
15
|
+
return className.filter((i) => i).join(" ");
|
|
16
|
+
}
|
|
17
|
+
if (_.isObject(className)) {
|
|
18
|
+
const classArray = [];
|
|
19
|
+
Object.keys(className).forEach((key) => {
|
|
20
|
+
if (className[key]) {
|
|
21
|
+
classArray.push(key);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return classArray.join(" ");
|
|
25
|
+
}
|
|
26
|
+
return "";
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { classnames, jsonParser };
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":["import _ from 'lodash';\n\nexport const jsonParser = (content: any, defaultValue: any = {}) => {\n try {\n if (typeof content === 'string') {\n return JSON.parse(content);\n }\n return _.isObject(content) ? content : defaultValue;\n } catch (e) {\n return defaultValue;\n }\n};\n\nexport const getNewNode = <T>(newNode: T, oldNode: T): T => {\n return newNode || _.isNull(newNode) ? newNode : oldNode;\n};\n\nexport const classnames = (className: { [key: string]: boolean } | (string | undefined)[]) => {\n if (Array.isArray(className)) {\n return className.filter((i) => i).join(' ');\n }\n\n if (_.isObject(className)) {\n const classArray: string[] = [];\n Object.keys(className).forEach((key) => {\n if (className[key]) {\n classArray.push(key);\n }\n });\n\n return classArray.join(' ');\n }\n\n return '';\n};\n"],"names":[],"mappings":";;AAEO,MAAM,UAAa,GAAA,CAAC,OAAc,EAAA,YAAA,GAAoB,EAAO,KAAA;AAClE,EAAI,IAAA;AACF,IAAI,IAAA,OAAO,YAAY,QAAU,EAAA;AAC/B,MAAA,OAAO,KAAK,KAAM,CAAA,OAAA,CAAA,CAAA;AAAA,KAAA;AAEpB,IAAO,OAAA,CAAA,CAAE,QAAS,CAAA,OAAA,CAAA,GAAW,OAAU,GAAA,YAAA,CAAA;AAAA,GAAA,CAAA,OAChC,CAAP,EAAA;AACA,IAAO,OAAA,YAAA,CAAA;AAAA,GAAA;AAAA,EAAA;AAQE,MAAA,UAAA,GAAa,CAAC,SAAmE,KAAA;AAC5F,EAAI,IAAA,KAAA,CAAM,QAAQ,SAAY,CAAA,EAAA;AAC5B,IAAA,OAAO,SAAU,CAAA,MAAA,CAAO,CAAC,CAAA,KAAM,GAAG,IAAK,CAAA,GAAA,CAAA,CAAA;AAAA,GAAA;AAGzC,EAAI,IAAA,CAAA,CAAE,SAAS,SAAY,CAAA,EAAA;AACzB,IAAA,MAAM,UAAuB,GAAA,EAAA,CAAA;AAC7B,IAAA,MAAA,CAAO,IAAK,CAAA,SAAA,CAAA,CAAW,OAAQ,CAAA,CAAC,GAAQ,KAAA;AACtC,MAAA,IAAI,UAAU,GAAM,CAAA,EAAA;AAClB,QAAA,UAAA,CAAW,IAAK,CAAA,GAAA,CAAA,CAAA;AAAA,OAAA;AAAA,KAAA,CAAA,CAAA;AAIpB,IAAA,OAAO,WAAW,IAAK,CAAA,GAAA,CAAA,CAAA;AAAA,GAAA;AAGzB,EAAO,OAAA,EAAA,CAAA;AAAA;;;;"}
|