@labelbee/lb-components 1.10.0-alpha.2 → 1.10.0-alpha.3
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 +63 -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 +97 -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 +143 -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/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 +57 -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 +91 -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 +135 -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 +6 -5
- package/LICENSE +0 -203
|
@@ -1 +1,49 @@
|
|
|
1
|
-
import{useContext
|
|
1
|
+
import { useContext, useEffect } from 'react';
|
|
2
|
+
import { PointCloudContext } from '../PointCloudContext.js';
|
|
3
|
+
|
|
4
|
+
const useAttribute = () => {
|
|
5
|
+
const {
|
|
6
|
+
topViewInstance,
|
|
7
|
+
sideViewInstance,
|
|
8
|
+
backViewInstance,
|
|
9
|
+
mainViewInstance,
|
|
10
|
+
defaultAttribute,
|
|
11
|
+
setDefaultAttribute
|
|
12
|
+
} = useContext(PointCloudContext);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (!(topViewInstance == null ? void 0 : topViewInstance.toolInstance)) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const updateDefaultAttribute2 = () => {
|
|
18
|
+
setDefaultAttribute(topViewInstance == null ? void 0 : topViewInstance.toolInstance.defaultAttribute);
|
|
19
|
+
};
|
|
20
|
+
topViewInstance == null ? void 0 : topViewInstance.toolInstance.on("changeAttributeSidebar", updateDefaultAttribute2);
|
|
21
|
+
return () => {
|
|
22
|
+
topViewInstance == null ? void 0 : topViewInstance.toolInstance.unbind("changeAttributeSidebar", updateDefaultAttribute2);
|
|
23
|
+
};
|
|
24
|
+
}, [topViewInstance == null ? void 0 : topViewInstance.toolInstance]);
|
|
25
|
+
const syncThreeViewsAttribute = (attribute) => {
|
|
26
|
+
[
|
|
27
|
+
topViewInstance == null ? void 0 : topViewInstance.toolInstance,
|
|
28
|
+
sideViewInstance == null ? void 0 : sideViewInstance.toolInstance,
|
|
29
|
+
backViewInstance == null ? void 0 : backViewInstance.toolInstance
|
|
30
|
+
].forEach((instance) => {
|
|
31
|
+
instance == null ? void 0 : instance.setDefaultAttribute(attribute);
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
const updateDefaultAttribute = (attribute) => {
|
|
35
|
+
topViewInstance == null ? void 0 : topViewInstance.toolInstance.setDefaultAttribute(attribute);
|
|
36
|
+
};
|
|
37
|
+
const reRenderPointCloud3DBox = (newBox) => {
|
|
38
|
+
mainViewInstance == null ? void 0 : mainViewInstance.generateBox(newBox);
|
|
39
|
+
};
|
|
40
|
+
return {
|
|
41
|
+
syncThreeViewsAttribute,
|
|
42
|
+
updateDefaultAttribute,
|
|
43
|
+
reRenderPointCloud3DBox,
|
|
44
|
+
defaultAttribute
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export { useAttribute };
|
|
49
|
+
//# sourceMappingURL=useAttribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAttribute.js","sources":["../../../../src/components/pointCloudView/hooks/useAttribute.ts"],"sourcesContent":["import { IPointCloudBox } from '@labelbee/lb-utils';\nimport { useContext, useEffect } from 'react';\nimport { PointCloudContext } from '../PointCloudContext';\n\nexport const useAttribute = () => {\n const {\n topViewInstance,\n sideViewInstance,\n backViewInstance,\n mainViewInstance,\n defaultAttribute,\n setDefaultAttribute,\n } = useContext(PointCloudContext);\n\n useEffect(() => {\n if (!topViewInstance?.toolInstance) {\n return;\n }\n\n const updateDefaultAttribute = () => {\n setDefaultAttribute(topViewInstance?.toolInstance.defaultAttribute);\n };\n\n topViewInstance?.toolInstance.on('changeAttributeSidebar', updateDefaultAttribute);\n\n return () => {\n topViewInstance?.toolInstance.unbind('changeAttributeSidebar', updateDefaultAttribute);\n };\n }, [topViewInstance?.toolInstance]);\n\n const syncThreeViewsAttribute = (attribute?: string) => {\n [\n topViewInstance?.toolInstance,\n sideViewInstance?.toolInstance,\n backViewInstance?.toolInstance,\n ].forEach((instance) => {\n instance?.setDefaultAttribute(attribute);\n });\n };\n\n const updateDefaultAttribute = (attribute?: string) => {\n topViewInstance?.toolInstance.setDefaultAttribute(attribute);\n };\n\n const reRenderPointCloud3DBox = (newBox: IPointCloudBox) => {\n mainViewInstance?.generateBox(newBox);\n };\n\n return {\n syncThreeViewsAttribute,\n updateDefaultAttribute,\n reRenderPointCloud3DBox,\n defaultAttribute,\n };\n};\n"],"names":[],"mappings":";;;AAIO,MAAM,eAAe,MAAM;AAChC,EAAM,MAAA;AAAA,IACJ,eAAA;AAAA,IACA,gBAAA;AAAA,IACA,gBAAA;AAAA,IACA,gBAAA;AAAA,IACA,gBAAA;AAAA,IACA,mBAAA;AAAA,GAAA,GACE,UAAW,CAAA,iBAAA,CAAA,CAAA;AAEf,EAAA,SAAA,CAAU,MAAM;AACd,IAAI,IAAA,qDAAkB,YAAc,CAAA,EAAA;AAClC,MAAA,OAAA;AAAA,KAAA;AAGF,IAAA,MAAM,0BAAyB,MAAM;AACnC,MAAA,mBAAA,CAAoB,mDAAiB,YAAa,CAAA,gBAAA,CAAA,CAAA;AAAA,KAAA,CAAA;AAGpD,IAAiB,eAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAA,YAAA,CAAa,GAAG,wBAA0B,EAAA,uBAAA,CAAA,CAAA;AAE3D,IAAA,OAAO,MAAM;AACX,MAAiB,eAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAA,YAAA,CAAa,OAAO,wBAA0B,EAAA,uBAAA,CAAA,CAAA;AAAA,KAAA,CAAA;AAAA,GAAA,EAEhE,CAAC,eAAiB,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAA,YAAA,CAAA,CAAA,CAAA;AAErB,EAAM,MAAA,uBAAA,GAA0B,CAAC,SAAuB,KAAA;AACtD,IAAA;AAAA,MACE,eAAiB,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAA,YAAA;AAAA,MACjB,gBAAkB,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,gBAAA,CAAA,YAAA;AAAA,MAClB,gBAAkB,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,gBAAA,CAAA,YAAA;AAAA,KAClB,CAAA,OAAA,CAAQ,CAAC,QAAa,KAAA;AACtB,MAAA,QAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,QAAA,CAAU,mBAAoB,CAAA,SAAA,CAAA,CAAA;AAAA,KAAA,CAAA,CAAA;AAAA,GAAA,CAAA;AAIlC,EAAM,MAAA,sBAAA,GAAyB,CAAC,SAAuB,KAAA;AACrD,IAAA,eAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAiB,aAAa,mBAAoB,CAAA,SAAA,CAAA,CAAA;AAAA,GAAA,CAAA;AAGpD,EAAM,MAAA,uBAAA,GAA0B,CAAC,MAA2B,KAAA;AAC1D,IAAA,gBAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,gBAAA,CAAkB,WAAY,CAAA,MAAA,CAAA,CAAA;AAAA,GAAA,CAAA;AAGhC,EAAO,OAAA;AAAA,IACL,uBAAA;AAAA,IACA,sBAAA;AAAA,IACA,uBAAA;AAAA,IACA,gBAAA;AAAA,GAAA,CAAA;AAAA;;;;"}
|
|
@@ -1 +1,73 @@
|
|
|
1
|
-
import{useContext
|
|
1
|
+
import { useContext, useState, useMemo, useCallback } from 'react';
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
import { message, Modal } from 'antd';
|
|
4
|
+
import { usePointCloudViews } from './usePointCloudViews.js';
|
|
5
|
+
import { PointCloudContext } from '../PointCloudContext.js';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
7
|
+
|
|
8
|
+
const useBoxes = ({config}) => {
|
|
9
|
+
const {
|
|
10
|
+
selectedIDs,
|
|
11
|
+
pointCloudBoxList,
|
|
12
|
+
displayPointCloudList,
|
|
13
|
+
setPointCloudResult,
|
|
14
|
+
syncAllViewPointCloudColor
|
|
15
|
+
} = useContext(PointCloudContext);
|
|
16
|
+
const [copiedBoxes, setCopiedBoxes] = useState([]);
|
|
17
|
+
const {pointCloudBoxListUpdated} = usePointCloudViews();
|
|
18
|
+
const {t, i18n} = useTranslation();
|
|
19
|
+
const hasDuplicateID = (checkBoxList) => {
|
|
20
|
+
if (config.trackConfigurable !== true) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return pointCloudBoxList.some((item) => {
|
|
24
|
+
return checkBoxList.some((i) => i.trackID === item.trackID);
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const selectedBoxes = useMemo(() => {
|
|
28
|
+
return displayPointCloudList.filter((i) => selectedIDs.includes(i.id));
|
|
29
|
+
}, [selectedIDs, displayPointCloudList]);
|
|
30
|
+
const copySelectedBoxes = useCallback(() => {
|
|
31
|
+
if (selectedBoxes.length > 0) {
|
|
32
|
+
setCopiedBoxes(_.cloneDeep(selectedBoxes));
|
|
33
|
+
} else {
|
|
34
|
+
setCopiedBoxes([]);
|
|
35
|
+
message.error(t("CopyEmptyInPointCloud"));
|
|
36
|
+
}
|
|
37
|
+
}, [selectedIDs, displayPointCloudList, i18n.language]);
|
|
38
|
+
const pasteSelectedBoxes = useCallback(() => {
|
|
39
|
+
if (copiedBoxes.length === 0) {
|
|
40
|
+
message.error(t("PasteEmptyInPointCloud"));
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const hasDuplicate = hasDuplicateID(copiedBoxes);
|
|
44
|
+
const updatePointCloudResult = (newPointCloudBoxList) => {
|
|
45
|
+
setPointCloudResult(newPointCloudBoxList);
|
|
46
|
+
pointCloudBoxListUpdated == null ? void 0 : pointCloudBoxListUpdated(newPointCloudBoxList);
|
|
47
|
+
setCopiedBoxes([]);
|
|
48
|
+
syncAllViewPointCloudColor(newPointCloudBoxList);
|
|
49
|
+
};
|
|
50
|
+
if (hasDuplicate) {
|
|
51
|
+
Modal.confirm({
|
|
52
|
+
title: t("HasDuplicateIDHeader"),
|
|
53
|
+
content: t("HasDuplicateIDMsg"),
|
|
54
|
+
onOk: () => {
|
|
55
|
+
const newPointCloudResult = pointCloudBoxList.filter((v) => {
|
|
56
|
+
if (copiedBoxes.find((c) => c.trackID === v.trackID)) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
return true;
|
|
60
|
+
}).concat(copiedBoxes);
|
|
61
|
+
updatePointCloudResult(newPointCloudResult);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
} else {
|
|
65
|
+
const newPointCloudResult = [...displayPointCloudList, ...copiedBoxes];
|
|
66
|
+
updatePointCloudResult(newPointCloudResult);
|
|
67
|
+
}
|
|
68
|
+
}, [copiedBoxes, displayPointCloudList, i18n.language]);
|
|
69
|
+
return {copySelectedBoxes, pasteSelectedBoxes, copiedBoxes, selectedBoxes};
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export { useBoxes };
|
|
73
|
+
//# sourceMappingURL=useBoxes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBoxes.js","sources":["../../../../src/components/pointCloudView/hooks/useBoxes.ts"],"sourcesContent":["import { IPointCloudBoxList, IPointCloudConfig } from '@labelbee/lb-utils';\nimport { useCallback, useContext, useMemo, useState } from 'react';\nimport _ from 'lodash';\nimport { message, Modal } from 'antd';\nimport { usePointCloudViews } from './usePointCloudViews';\nimport { PointCloudContext } from '../PointCloudContext';\nimport { useTranslation } from 'react-i18next';\n\n/**\n * Actions for selected boxes\n */\nexport const useBoxes = ({ config }: { config: IPointCloudConfig }) => {\n const {\n selectedIDs,\n pointCloudBoxList,\n displayPointCloudList,\n setPointCloudResult,\n syncAllViewPointCloudColor,\n } = useContext(PointCloudContext);\n const [copiedBoxes, setCopiedBoxes] = useState<IPointCloudBoxList>([]);\n const { pointCloudBoxListUpdated } = usePointCloudViews();\n const { t, i18n } = useTranslation();\n\n const hasDuplicateID = (checkBoxList: IPointCloudBoxList) => {\n if (config.trackConfigurable !== true) {\n return false;\n }\n\n return pointCloudBoxList.some((item) => {\n return checkBoxList.some((i) => i.trackID === item.trackID);\n });\n };\n\n const selectedBoxes = useMemo(() => {\n return displayPointCloudList.filter((i) => selectedIDs.includes(i.id));\n }, [selectedIDs, displayPointCloudList]);\n\n const copySelectedBoxes = useCallback(() => {\n if (selectedBoxes.length > 0) {\n setCopiedBoxes(_.cloneDeep(selectedBoxes));\n } else {\n setCopiedBoxes([]);\n message.error(t('CopyEmptyInPointCloud'));\n }\n }, [selectedIDs, displayPointCloudList, i18n.language]);\n\n const pasteSelectedBoxes = useCallback(() => {\n if (copiedBoxes.length === 0) {\n message.error(t('PasteEmptyInPointCloud'));\n return;\n }\n\n const hasDuplicate = hasDuplicateID(copiedBoxes);\n\n const updatePointCloudResult = (newPointCloudBoxList: IPointCloudBoxList) => {\n /** Paste succeed and empty */\n setPointCloudResult(newPointCloudBoxList);\n pointCloudBoxListUpdated?.(newPointCloudBoxList);\n setCopiedBoxes([]);\n\n // TODO: It need to update in global.\n syncAllViewPointCloudColor(newPointCloudBoxList);\n };\n\n if (hasDuplicate) {\n Modal.confirm({\n title: t('HasDuplicateIDHeader'),\n content: t('HasDuplicateIDMsg'),\n onOk: () => {\n /**\n * Filter the same trackID in old-pointCloudBoxList.\n */\n const newPointCloudResult = pointCloudBoxList\n .filter((v) => {\n if (copiedBoxes.find((c) => c.trackID === v.trackID)) {\n return false;\n }\n return true;\n })\n .concat(copiedBoxes);\n\n updatePointCloudResult(newPointCloudResult);\n },\n });\n } else {\n /** Paste succeed and empty */\n const newPointCloudResult = [...displayPointCloudList, ...copiedBoxes];\n\n updatePointCloudResult(newPointCloudResult);\n }\n }, [copiedBoxes, displayPointCloudList, i18n.language]);\n\n return { copySelectedBoxes, pasteSelectedBoxes, copiedBoxes, selectedBoxes };\n};\n"],"names":[],"mappings":"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"}
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
import{PointCloudContext
|
|
1
|
+
import { PointCloudContext } from '../PointCloudContext.js';
|
|
2
|
+
import { useContext } from 'react';
|
|
3
|
+
|
|
4
|
+
const useConfig = () => {
|
|
5
|
+
const {topViewInstance, sideViewInstance, backViewInstance, mainViewInstance} = useContext(PointCloudContext);
|
|
6
|
+
const syncAllViewsConfig = (config) => {
|
|
7
|
+
[topViewInstance, sideViewInstance, backViewInstance].forEach((instance) => {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
instance == null ? void 0 : instance.updateConfig(config);
|
|
10
|
+
const defaultAttribute = (_b = (_a = config == null ? void 0 : config.attributeList) == null ? void 0 : _a[0]) == null ? void 0 : _b.value;
|
|
11
|
+
if (defaultAttribute) {
|
|
12
|
+
instance == null ? void 0 : instance.pointCloud2dOperation.setDefaultAttribute(defaultAttribute);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
mainViewInstance == null ? void 0 : mainViewInstance.setConfig(config);
|
|
16
|
+
};
|
|
17
|
+
const reRenderTopViewRange = (radius) => {
|
|
18
|
+
var _a, _b, _c;
|
|
19
|
+
(_b = (_a = topViewInstance == null ? void 0 : topViewInstance.pointCloudInstance) == null ? void 0 : _a.generateRange) == null ? void 0 : _b.call(_a, radius);
|
|
20
|
+
(_c = topViewInstance == null ? void 0 : topViewInstance.pointCloudInstance) == null ? void 0 : _c.render();
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
syncAllViewsConfig,
|
|
24
|
+
reRenderTopViewRange
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { useConfig };
|
|
29
|
+
//# sourceMappingURL=useConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConfig.js","sources":["../../../../src/components/pointCloudView/hooks/useConfig.ts"],"sourcesContent":["import { PointCloudContext } from '../PointCloudContext';\nimport { useContext } from 'react';\nimport { IPointCloudConfig } from '@labelbee/lb-utils';\n\nexport const useConfig = () => {\n const { topViewInstance, sideViewInstance, backViewInstance, mainViewInstance } =\n useContext(PointCloudContext);\n\n const syncAllViewsConfig = (config: IPointCloudConfig) => {\n [topViewInstance, sideViewInstance, backViewInstance].forEach((instance) => {\n instance?.updateConfig(config);\n \n /**\n * If update the config, needs to update defaultAttribute.\n */\n const defaultAttribute = config?.attributeList?.[0]?.value;\n if (defaultAttribute) {\n instance?.pointCloud2dOperation.setDefaultAttribute(defaultAttribute);\n }\n });\n mainViewInstance?.setConfig(config);\n };\n\n const reRenderTopViewRange = (radius: number) => {\n topViewInstance?.pointCloudInstance?.generateRange?.(radius);\n topViewInstance?.pointCloudInstance?.render();\n };\n\n return {\n syncAllViewsConfig,\n reRenderTopViewRange,\n };\n};\n"],"names":[],"mappings":";;;AAIO,MAAM,YAAY,MAAM;AAC7B,EAAA,MAAM,CAAE,eAAA,EAAiB,gBAAkB,EAAA,gBAAA,EAAkB,oBAC3D,UAAW,CAAA,iBAAA,CAAA,CAAA;AAEb,EAAM,MAAA,kBAAA,GAAqB,CAAC,MAA8B,KAAA;AACxD,IAAA,CAAC,eAAiB,EAAA,gBAAA,EAAkB,gBAAkB,CAAA,CAAA,OAAA,CAAQ,CAAC,QAAa,KAAA;AAThF,MAAA,IAAA,EAAA,EAAA,EAAA,CAAA;AAUM,MAAA,QAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,QAAA,CAAU,YAAa,CAAA,MAAA,CAAA,CAAA;AAKvB,MAAA,MAAM,gBAAmB,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,MAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,MAAA,CAAQ,aAAR,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAwB,OAAxB,IAA4B,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,KAAA,CAAA;AACrD,MAAA,IAAI,gBAAkB,EAAA;AACpB,QAAA,QAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,QAAA,CAAU,sBAAsB,mBAAoB,CAAA,gBAAA,CAAA,CAAA;AAAA,OAAA;AAAA,KAAA,CAAA,CAAA;AAGxD,IAAA,gBAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,gBAAA,CAAkB,SAAU,CAAA,MAAA,CAAA,CAAA;AAAA,GAAA,CAAA;AAG9B,EAAM,MAAA,oBAAA,GAAuB,CAAC,MAAmB,KAAA;AAvBnD,IAAA,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,CAAA;AAwBI,IAAiB,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,eAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAA,kBAAA,KAAjB,IAAqC,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,aAAA,KAArC,IAAqD,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,EAAA,EAAA,MAAA,CAAA,CAAA;AACrD,IAAA,CAAA,EAAA,GAAA,eAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAiB,uBAAjB,IAAqC,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,MAAA,EAAA,CAAA;AAAA,GAAA,CAAA;AAGvC,EAAO,OAAA;AAAA,IACL,kBAAA;AAAA,IACA,oBAAA;AAAA,GAAA,CAAA;AAAA;;;;"}
|
|
@@ -1 +1,169 @@
|
|
|
1
|
-
import{useContext
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { PointCloudContext } from '../PointCloudContext.js';
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
const useHistory = () => {
|
|
21
|
+
const {
|
|
22
|
+
history,
|
|
23
|
+
setPointCloudResult,
|
|
24
|
+
setSelectedIDs,
|
|
25
|
+
pointCloudBoxList,
|
|
26
|
+
pointCloudSphereList,
|
|
27
|
+
mainViewInstance,
|
|
28
|
+
topViewInstance,
|
|
29
|
+
polygonList,
|
|
30
|
+
setPolygonList,
|
|
31
|
+
lineList,
|
|
32
|
+
setLineList,
|
|
33
|
+
syncAllViewPointCloudColor
|
|
34
|
+
} = useContext(PointCloudContext);
|
|
35
|
+
const addHistory = ({
|
|
36
|
+
newBoxParams,
|
|
37
|
+
newPolygon,
|
|
38
|
+
newLine
|
|
39
|
+
}) => {
|
|
40
|
+
const historyRecord = {
|
|
41
|
+
pointCloudBoxList,
|
|
42
|
+
polygonList,
|
|
43
|
+
lineList
|
|
44
|
+
};
|
|
45
|
+
if (newBoxParams) {
|
|
46
|
+
historyRecord.pointCloudBoxList = pointCloudBoxList.concat(newBoxParams);
|
|
47
|
+
}
|
|
48
|
+
if (newPolygon) {
|
|
49
|
+
historyRecord.polygonList = polygonList.concat(newPolygon);
|
|
50
|
+
}
|
|
51
|
+
if (newLine) {
|
|
52
|
+
historyRecord.lineList = lineList.concat(newLine);
|
|
53
|
+
}
|
|
54
|
+
history.pushHistory(historyRecord);
|
|
55
|
+
};
|
|
56
|
+
const pushHistoryWithList = (params) => {
|
|
57
|
+
const historyRecord = {
|
|
58
|
+
pointCloudBoxList,
|
|
59
|
+
polygonList,
|
|
60
|
+
lineList
|
|
61
|
+
};
|
|
62
|
+
if (params.pointCloudBoxList) {
|
|
63
|
+
historyRecord.pointCloudBoxList = params.pointCloudBoxList;
|
|
64
|
+
}
|
|
65
|
+
if (params.polygonList) {
|
|
66
|
+
historyRecord.polygonList = params.polygonList;
|
|
67
|
+
}
|
|
68
|
+
if (params.lineList) {
|
|
69
|
+
historyRecord.lineList = params.lineList;
|
|
70
|
+
}
|
|
71
|
+
history.pushHistory(historyRecord);
|
|
72
|
+
};
|
|
73
|
+
const pushHistoryUnderUpdateLine = (line) => {
|
|
74
|
+
const selectedLine = lineList.find((v) => v.id === line.id);
|
|
75
|
+
if (selectedLine) {
|
|
76
|
+
const newLineList = lineList.map((v) => {
|
|
77
|
+
if (v.id === line.id) {
|
|
78
|
+
return line;
|
|
79
|
+
}
|
|
80
|
+
return __spreadValues({}, v);
|
|
81
|
+
});
|
|
82
|
+
history.pushHistory({
|
|
83
|
+
lineList: newLineList
|
|
84
|
+
});
|
|
85
|
+
setLineList(newLineList);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const pushHistoryUnderUpdatePoint = (point) => {
|
|
89
|
+
if (point) {
|
|
90
|
+
history.pushHistory({
|
|
91
|
+
pointCloudSphereList
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
const pushHistoryUnderUpdatePolygon = (polygon) => {
|
|
96
|
+
const selectedPolygon = polygonList.find((v) => v.id === polygon.id);
|
|
97
|
+
if (selectedPolygon) {
|
|
98
|
+
const newPolygonList = polygonList.map((v) => {
|
|
99
|
+
if (v.id === polygon.id) {
|
|
100
|
+
return polygon;
|
|
101
|
+
}
|
|
102
|
+
return __spreadValues({}, v);
|
|
103
|
+
});
|
|
104
|
+
history.pushHistory({
|
|
105
|
+
pointCloudBoxList,
|
|
106
|
+
polygonList: newPolygonList
|
|
107
|
+
});
|
|
108
|
+
setPolygonList(newPolygonList);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
const initHistory = ({
|
|
112
|
+
pointCloudBoxList: pointCloudBoxList2,
|
|
113
|
+
polygonList: polygonList2
|
|
114
|
+
}) => {
|
|
115
|
+
history.initRecord({pointCloudBoxList: pointCloudBoxList2, polygonList: polygonList2}, true);
|
|
116
|
+
};
|
|
117
|
+
const updatePointCloud = (params) => {
|
|
118
|
+
if (!params) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
const {
|
|
122
|
+
pointCloudBoxList: newPointCloudBoxList = [],
|
|
123
|
+
polygonList: newPolygonList = [],
|
|
124
|
+
lineList: newLineList = []
|
|
125
|
+
} = params;
|
|
126
|
+
if (newPointCloudBoxList) {
|
|
127
|
+
if (pointCloudBoxList.length !== newPointCloudBoxList.length) {
|
|
128
|
+
setSelectedIDs();
|
|
129
|
+
}
|
|
130
|
+
const deletePointCloudList = pointCloudBoxList.filter((v) => newPointCloudBoxList.every((d) => d.id !== v.id));
|
|
131
|
+
const addPointCloudList = newPointCloudBoxList.filter((v) => pointCloudBoxList.every((d) => d.id !== v.id));
|
|
132
|
+
deletePointCloudList.forEach((v) => {
|
|
133
|
+
mainViewInstance == null ? void 0 : mainViewInstance.removeObjectByName(v.id);
|
|
134
|
+
});
|
|
135
|
+
addPointCloudList.forEach((v) => {
|
|
136
|
+
mainViewInstance == null ? void 0 : mainViewInstance.generateBox(v);
|
|
137
|
+
});
|
|
138
|
+
setPointCloudResult(newPointCloudBoxList);
|
|
139
|
+
syncAllViewPointCloudColor(newPointCloudBoxList);
|
|
140
|
+
}
|
|
141
|
+
if (newPolygonList) {
|
|
142
|
+
setPolygonList(newPolygonList);
|
|
143
|
+
}
|
|
144
|
+
if (newLineList) {
|
|
145
|
+
setLineList(newLineList);
|
|
146
|
+
}
|
|
147
|
+
topViewInstance == null ? void 0 : topViewInstance.updatePolygonList(newPointCloudBoxList != null ? newPointCloudBoxList : [], newPolygonList != null ? newPolygonList : []);
|
|
148
|
+
topViewInstance == null ? void 0 : topViewInstance.updateLineList(newLineList != null ? newLineList : []);
|
|
149
|
+
};
|
|
150
|
+
const redo = () => {
|
|
151
|
+
updatePointCloud(history.redo());
|
|
152
|
+
};
|
|
153
|
+
const undo = () => {
|
|
154
|
+
updatePointCloud(history.undo());
|
|
155
|
+
};
|
|
156
|
+
return {
|
|
157
|
+
addHistory,
|
|
158
|
+
pushHistoryWithList,
|
|
159
|
+
initHistory,
|
|
160
|
+
pushHistoryUnderUpdatePoint,
|
|
161
|
+
pushHistoryUnderUpdatePolygon,
|
|
162
|
+
pushHistoryUnderUpdateLine,
|
|
163
|
+
redo,
|
|
164
|
+
undo
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export { useHistory };
|
|
169
|
+
//# sourceMappingURL=useHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHistory.js","sources":["../../../../src/components/pointCloudView/hooks/useHistory.ts"],"sourcesContent":["import {\n IPointCloudBox,\n IPointCloudBoxList,\n IPolygonData,\n IPointUnit,\n ILine,\n} from '@labelbee/lb-utils';\nimport { useContext } from 'react';\nimport { PointCloudContext } from '../PointCloudContext';\n\nexport const useHistory = () => {\n const {\n history,\n setPointCloudResult,\n setSelectedIDs,\n pointCloudBoxList,\n pointCloudSphereList,\n mainViewInstance,\n topViewInstance,\n polygonList,\n setPolygonList,\n lineList,\n setLineList,\n syncAllViewPointCloudColor,\n } = useContext(PointCloudContext);\n\n const addHistory = ({\n newBoxParams,\n newPolygon,\n newLine,\n }: {\n newBoxParams?: IPointCloudBox;\n newPolygon?: IPolygonData;\n newLine?: ILine;\n }) => {\n const historyRecord = {\n pointCloudBoxList,\n polygonList,\n lineList,\n };\n\n if (newBoxParams) {\n historyRecord.pointCloudBoxList = pointCloudBoxList.concat(newBoxParams);\n }\n\n if (newPolygon) {\n historyRecord.polygonList = polygonList.concat(newPolygon);\n }\n if (newLine) {\n historyRecord.lineList = lineList.concat(newLine);\n }\n\n history.pushHistory(historyRecord);\n };\n\n const pushHistoryWithList = (\n params: Partial<{\n pointCloudBoxList: IPointCloudBoxList;\n polygonList: IPolygonData[];\n lineList: ILine[];\n }>,\n ) => {\n const historyRecord = {\n pointCloudBoxList,\n polygonList,\n lineList,\n };\n\n if (params.pointCloudBoxList) {\n historyRecord.pointCloudBoxList = params.pointCloudBoxList;\n }\n\n if (params.polygonList) {\n historyRecord.polygonList = params.polygonList;\n }\n\n if (params.lineList) {\n historyRecord.lineList = params.lineList;\n }\n history.pushHistory(historyRecord);\n };\n const pushHistoryUnderUpdateLine = (line: ILine) => {\n const selectedLine = lineList.find((v) => v.id === line.id);\n if (selectedLine) {\n const newLineList = lineList.map((v) => {\n if (v.id === line.id) {\n return line;\n }\n return {\n ...v,\n };\n });\n history.pushHistory({\n lineList: newLineList,\n });\n setLineList(newLineList);\n }\n };\n\n // todo: need to be completed in future when adding history\n const pushHistoryUnderUpdatePoint = (point: IPointUnit) => {\n if (point) {\n history.pushHistory({\n pointCloudSphereList,\n });\n }\n };\n\n const pushHistoryUnderUpdatePolygon = (polygon: IPolygonData) => {\n const selectedPolygon = polygonList.find((v) => v.id === polygon.id);\n\n if (selectedPolygon) {\n const newPolygonList = polygonList.map((v) => {\n if (v.id === polygon.id) {\n return polygon;\n }\n return {\n ...v,\n };\n });\n history.pushHistory({\n pointCloudBoxList,\n polygonList: newPolygonList,\n });\n setPolygonList(newPolygonList);\n }\n };\n\n const initHistory = ({\n pointCloudBoxList,\n polygonList,\n }: {\n pointCloudBoxList: IPointCloudBoxList;\n polygonList: IPolygonData[];\n }) => {\n history.initRecord({ pointCloudBoxList, polygonList }, true);\n };\n\n const updatePointCloud = (params?: {\n pointCloudBoxList: IPointCloudBoxList;\n polygonList: IPolygonData[];\n lineList: ILine[];\n }) => {\n if (!params) {\n return;\n }\n\n const {\n pointCloudBoxList: newPointCloudBoxList = [],\n polygonList: newPolygonList = [],\n lineList: newLineList = [],\n } = params;\n\n if (newPointCloudBoxList) {\n if (pointCloudBoxList.length !== newPointCloudBoxList.length) {\n setSelectedIDs();\n }\n\n const deletePointCloudList = pointCloudBoxList.filter((v) =>\n newPointCloudBoxList.every((d) => d.id !== v.id),\n );\n const addPointCloudList = newPointCloudBoxList.filter((v) =>\n pointCloudBoxList.every((d) => d.id !== v.id),\n );\n\n // Clear All Data\n deletePointCloudList.forEach((v) => {\n mainViewInstance?.removeObjectByName(v.id);\n });\n\n // Add Init Box\n addPointCloudList.forEach((v) => {\n mainViewInstance?.generateBox(v);\n });\n\n setPointCloudResult(newPointCloudBoxList);\n syncAllViewPointCloudColor(newPointCloudBoxList);\n }\n\n if (newPolygonList) {\n setPolygonList(newPolygonList);\n }\n\n if (newLineList) {\n setLineList(newLineList);\n }\n\n topViewInstance?.updatePolygonList(newPointCloudBoxList ?? [], newPolygonList ?? []);\n topViewInstance?.updateLineList(newLineList ?? []);\n };\n\n const redo = () => {\n updatePointCloud(history.redo());\n };\n\n const undo = () => {\n updatePointCloud(history.undo());\n };\n\n return {\n addHistory,\n pushHistoryWithList,\n initHistory,\n pushHistoryUnderUpdatePoint,\n pushHistoryUnderUpdatePolygon,\n pushHistoryUnderUpdateLine,\n redo,\n undo,\n };\n};\n"],"names":[],"mappings":"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"}
|
|
@@ -1 +1,70 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { PointCloudContext } from '../PointCloudContext.js';
|
|
3
|
+
import { useHistory } from './useHistory.js';
|
|
4
|
+
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defProps = Object.defineProperties;
|
|
7
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
|
|
12
|
+
var __spreadValues = (a, b) => {
|
|
13
|
+
for (var prop in b || (b = {}))
|
|
14
|
+
if (__hasOwnProp.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
if (__getOwnPropSymbols)
|
|
17
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
+
if (__propIsEnum.call(b, prop))
|
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
|
20
|
+
}
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
+
const useLine = () => {
|
|
25
|
+
const {lineList, setLineList, selectedID} = useContext(PointCloudContext);
|
|
26
|
+
const {addHistory, pushHistoryWithList} = useHistory();
|
|
27
|
+
const selectedLine = lineList.find((v) => v.id === selectedID);
|
|
28
|
+
const addLine = (line) => {
|
|
29
|
+
setLineList(lineList.concat(line));
|
|
30
|
+
addHistory({newLine: line});
|
|
31
|
+
};
|
|
32
|
+
const deleteLine = (id) => {
|
|
33
|
+
const newLineList = lineList.filter((v) => v.id !== id).map((v) => __spreadValues({}, v));
|
|
34
|
+
setLineList(newLineList);
|
|
35
|
+
pushHistoryWithList({lineList: newLineList});
|
|
36
|
+
};
|
|
37
|
+
const updateSelectedLine = (line) => {
|
|
38
|
+
if (selectedLine) {
|
|
39
|
+
setLineList(lineList.map((v) => {
|
|
40
|
+
if (v.id === selectedID) {
|
|
41
|
+
return line;
|
|
42
|
+
}
|
|
43
|
+
return v;
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const updateLineValidByID = (id) => {
|
|
48
|
+
const line = lineList.find((v) => v.id === id);
|
|
49
|
+
if (line) {
|
|
50
|
+
setLineList(lineList.map((v) => {
|
|
51
|
+
if (v.id === id) {
|
|
52
|
+
return __spreadProps(__spreadValues({}, v), {
|
|
53
|
+
valid: !v.valid
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return v;
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
return {
|
|
61
|
+
addLine,
|
|
62
|
+
deleteLine,
|
|
63
|
+
selectedLine,
|
|
64
|
+
updateSelectedLine,
|
|
65
|
+
updateLineValidByID
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export { useLine };
|
|
70
|
+
//# sourceMappingURL=useLine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLine.js","sources":["../../../../src/components/pointCloudView/hooks/useLine.ts"],"sourcesContent":["import { useContext } from 'react';\nimport { ILine } from '@labelbee/lb-utils';\nimport { PointCloudContext } from '../PointCloudContext';\nimport { useHistory } from './useHistory';\n\n/**\n * PointCloud line Hook\n * @returns\n */\nexport const useLine = () => {\n const { lineList, setLineList, selectedID } = useContext(PointCloudContext);\n const { addHistory, pushHistoryWithList } = useHistory();\n\n const selectedLine = lineList.find((v) => v.id === selectedID);\n\n const addLine = (line: ILine) => {\n setLineList(lineList.concat(line));\n addHistory({ newLine: line });\n };\n\n const deleteLine = (id: string) => {\n const newLineList = lineList.filter((v) => v.id !== id).map((v) => ({ ...v }));\n setLineList(newLineList);\n pushHistoryWithList({ lineList: newLineList });\n };\n\n const updateSelectedLine = (line: ILine) => {\n if (selectedLine) {\n setLineList(\n lineList.map((v) => {\n if (v.id === selectedID) {\n return line;\n }\n return v;\n }),\n );\n }\n };\n\n const updateLineValidByID = (id: string) => {\n const line = lineList.find((v) => v.id === id);\n if (line) {\n setLineList(\n lineList.map((v) => {\n if (v.id === id) {\n return {\n ...v,\n valid: !v.valid,\n };\n }\n return v;\n }),\n );\n }\n };\n\n return {\n addLine,\n deleteLine,\n selectedLine,\n updateSelectedLine,\n updateLineValidByID,\n };\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AASO,MAAM,UAAU,MAAM;AAC3B,EAAA,MAAM,CAAE,QAAA,EAAU,WAAa,EAAA,UAAA,CAAA,GAAe,UAAW,CAAA,iBAAA,CAAA,CAAA;AACzD,EAAM,MAAA,CAAE,YAAY,mBAAwB,CAAA,GAAA,UAAA,EAAA,CAAA;AAE5C,EAAA,MAAM,eAAe,QAAS,CAAA,IAAA,CAAK,CAAC,CAAA,KAAM,EAAE,EAAO,KAAA,UAAA,CAAA,CAAA;AAEnD,EAAM,MAAA,OAAA,GAAU,CAAC,IAAgB,KAAA;AAC/B,IAAA,WAAA,CAAY,SAAS,MAAO,CAAA,IAAA,CAAA,CAAA,CAAA;AAC5B,IAAA,UAAA,CAAW,CAAE,OAAS,EAAA,IAAA,CAAA,CAAA,CAAA;AAAA,GAAA,CAAA;AAGxB,EAAM,MAAA,UAAA,GAAa,CAAC,EAAe,KAAA;AACjC,IAAM,MAAA,WAAA,GAAc,QAAS,CAAA,MAAA,CAAO,CAAC,CAAA,KAAM,CAAE,CAAA,EAAA,KAAO,EAAI,CAAA,CAAA,GAAA,CAAI,CAAC,CAAA,KAAO,cAAK,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AACzE,IAAY,WAAA,CAAA,WAAA,CAAA,CAAA;AACZ,IAAA,mBAAA,CAAoB,CAAE,QAAU,EAAA,WAAA,CAAA,CAAA,CAAA;AAAA,GAAA,CAAA;AAGlC,EAAM,MAAA,kBAAA,GAAqB,CAAC,IAAgB,KAAA;AAC1C,IAAA,IAAI,YAAc,EAAA;AAChB,MACE,WAAA,CAAA,QAAA,CAAS,GAAI,CAAA,CAAC,CAAM,KAAA;AAClB,QAAI,IAAA,CAAA,CAAE,OAAO,UAAY,EAAA;AACvB,UAAO,OAAA,IAAA,CAAA;AAAA,SAAA;AAET,QAAO,OAAA,CAAA,CAAA;AAAA,OAAA,CAAA,CAAA,CAAA;AAAA,KAAA;AAAA,GAAA,CAAA;AAMf,EAAM,MAAA,mBAAA,GAAsB,CAAC,EAAe,KAAA;AAC1C,IAAA,MAAM,OAAO,QAAS,CAAA,IAAA,CAAK,CAAC,CAAA,KAAM,EAAE,EAAO,KAAA,EAAA,CAAA,CAAA;AAC3C,IAAA,IAAI,IAAM,EAAA;AACR,MACE,WAAA,CAAA,QAAA,CAAS,GAAI,CAAA,CAAC,CAAM,KAAA;AAClB,QAAI,IAAA,CAAA,CAAE,OAAO,EAAI,EAAA;AACf,UAAA,OAAO,iCACF,CADE,CAAA,EAAA;AAAA,YAEL,KAAA,EAAO,CAAC,CAAE,CAAA,KAAA;AAAA,WAAA,CAAA,CAAA;AAAA,SAAA;AAGd,QAAO,OAAA,CAAA,CAAA;AAAA,OAAA,CAAA,CAAA,CAAA;AAAA,KAAA;AAAA,GAAA,CAAA;AAMf,EAAO,OAAA;AAAA,IACL,OAAA;AAAA,IACA,UAAA;AAAA,IACA,YAAA;AAAA,IACA,kBAAA;AAAA,IACA,mBAAA;AAAA,GAAA,CAAA;AAAA;;;;"}
|