@labelbee/lb-components 1.10.0-alpha.2 → 1.10.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.js +146 -1
- package/dist/App.js.map +1 -0
- package/dist/assets/annotation/common/icon_adapt.svg.js +6 -1
- package/dist/assets/annotation/common/icon_adapt.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_adapt_black.svg.js +6 -1
- package/dist/assets/annotation/common/icon_adapt_black.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_back.svg.js +6 -1
- package/dist/assets/annotation/common/icon_back.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_backA.svg.js +6 -1
- package/dist/assets/annotation/common/icon_backA.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_clear.svg.js +6 -1
- package/dist/assets/annotation/common/icon_clear.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_clearSmall.svg.js +6 -1
- package/dist/assets/annotation/common/icon_clearSmall.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_clearSmall_a.svg.js +6 -1
- package/dist/assets/annotation/common/icon_clearSmall_a.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_clear_a.svg.js +6 -1
- package/dist/assets/annotation/common/icon_clear_a.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_invalid.svg.js +6 -1
- package/dist/assets/annotation/common/icon_invalid.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_invalid_a.svg.js +6 -1
- package/dist/assets/annotation/common/icon_invalid_a.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_next.svg.js +6 -1
- package/dist/assets/annotation/common/icon_next.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_nextA.svg.js +6 -1
- package/dist/assets/annotation/common/icon_nextA.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_r.svg.js +6 -1
- package/dist/assets/annotation/common/icon_r.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_rA.svg.js +6 -1
- package/dist/assets/annotation/common/icon_rA.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_save.svg.js +6 -1
- package/dist/assets/annotation/common/icon_save.svg.js.map +1 -0
- package/dist/assets/annotation/common/icon_saveA.svg.js +6 -1
- package/dist/assets/annotation/common/icon_saveA.svg.js.map +1 -0
- package/dist/assets/annotation/image/brightness.svg.js +6 -1
- package/dist/assets/annotation/image/brightness.svg.js.map +1 -0
- package/dist/assets/annotation/image/contrast.svg.js +6 -1
- package/dist/assets/annotation/image/contrast.svg.js.map +1 -0
- package/dist/assets/annotation/image/icon_yuantu.svg.js +6 -1
- package/dist/assets/annotation/image/icon_yuantu.svg.js.map +1 -0
- package/dist/assets/annotation/image/saturation.svg.js +6 -1
- package/dist/assets/annotation/image/saturation.svg.js.map +1 -0
- package/dist/assets/annotation/lineTool/icon_line.svg.js +6 -1
- package/dist/assets/annotation/lineTool/icon_line.svg.js.map +1 -0
- package/dist/assets/annotation/lineTool/icon_line_a.svg.js +6 -1
- package/dist/assets/annotation/lineTool/icon_line_a.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/copy.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/copy.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/nextBox.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/nextBox.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/nodata.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/nodata.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/patse.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/patse.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/prevBox.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/prevBox.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/selectAll.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/selectAll.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js.map +1 -0
- package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +6 -1
- package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js.map +1 -0
- package/dist/assets/annotation/pointTool/icon_point.svg.js +6 -1
- package/dist/assets/annotation/pointTool/icon_point.svg.js.map +1 -0
- package/dist/assets/annotation/pointTool/icon_point_a.svg.js +6 -1
- package/dist/assets/annotation/pointTool/icon_point_a.svg.js.map +1 -0
- package/dist/assets/annotation/polygonTool/icon_polygon.svg.js +6 -1
- package/dist/assets/annotation/polygonTool/icon_polygon.svg.js.map +1 -0
- package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js +6 -1
- package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js.map +1 -0
- package/dist/assets/annotation/rectTool/icon_rect.svg.js +6 -1
- package/dist/assets/annotation/rectTool/icon_rect.svg.js.map +1 -0
- package/dist/assets/annotation/rectTool/icon_rect_a.svg.js +6 -1
- package/dist/assets/annotation/rectTool/icon_rect_a.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js.map +1 -0
- package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js +6 -1
- package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js.map +1 -0
- package/dist/assets/annotation/video/icon_keyboard_h.svg.js +6 -1
- package/dist/assets/annotation/video/icon_keyboard_h.svg.js.map +1 -0
- package/dist/assets/attributeIcon/eraser.svg.js +6 -1
- package/dist/assets/attributeIcon/eraser.svg.js.map +1 -0
- package/dist/assets/attributeIcon/eraser_a.svg.js +6 -1
- package/dist/assets/attributeIcon/eraser_a.svg.js.map +1 -0
- package/dist/assets/attributeIcon/pen.svg.js +6 -1
- package/dist/assets/attributeIcon/pen.svg.js.map +1 -0
- package/dist/assets/attributeIcon/pen_a.svg.js +6 -1
- package/dist/assets/attributeIcon/pen_a.svg.js.map +1 -0
- package/dist/assets/attributeIcon/zoomUp.svg.js +6 -1
- package/dist/assets/attributeIcon/zoomUp.svg.js.map +1 -0
- package/dist/assets/predictTracking/icon.svg.js +6 -1
- package/dist/assets/predictTracking/icon.svg.js.map +1 -0
- package/dist/assets/toolStyle/icon_border.svg.js +6 -1
- package/dist/assets/toolStyle/icon_border.svg.js.map +1 -0
- package/dist/assets/toolStyle/icon_borderColor.svg.js +6 -1
- package/dist/assets/toolStyle/icon_borderColor.svg.js.map +1 -0
- package/dist/assets/toolStyle/icon_opacityFill.svg.js +6 -1
- package/dist/assets/toolStyle/icon_opacityFill.svg.js.map +1 -0
- package/dist/assets/toolStyle/icon_opacityStroke.svg.js +6 -1
- package/dist/assets/toolStyle/icon_opacityStroke.svg.js.map +1 -0
- package/dist/components/AnnotationView/index.js +160 -1
- package/dist/components/AnnotationView/index.js.map +1 -0
- package/dist/components/AnnotationView/pointCloudAnnotationView.js +85 -1
- package/dist/components/AnnotationView/pointCloudAnnotationView.js.map +1 -0
- package/dist/components/annotationStepPopover/index.js +39 -1
- package/dist/components/annotationStepPopover/index.js.map +1 -0
- package/dist/components/attributeList/index.js +66 -1
- package/dist/components/attributeList/index.js.map +1 -0
- package/dist/components/checkboxList/index.js +39 -1
- package/dist/components/checkboxList/index.js.map +1 -0
- package/dist/components/colorTag/index.js +38 -1
- package/dist/components/colorTag/index.js.map +1 -0
- package/dist/components/customAntd/IconWithText/index.js +59 -1
- package/dist/components/customAntd/IconWithText/index.js.map +1 -0
- package/dist/components/customResizeHook/index.js +95 -1
- package/dist/components/customResizeHook/index.js.map +1 -0
- package/dist/components/fileException/FileError.js +61 -1
- package/dist/components/fileException/FileError.js.map +1 -0
- package/dist/components/fileException/FileInvalid.js +31 -1
- package/dist/components/fileException/FileInvalid.js.map +1 -0
- package/dist/components/fileException/index.js +38 -1
- package/dist/components/fileException/index.js.map +1 -0
- package/dist/components/pointCloudView/PointCloud2DView.js +153 -1
- package/dist/components/pointCloudView/PointCloud2DView.js.map +1 -0
- package/dist/components/pointCloudView/PointCloud3DView.js +234 -1
- package/dist/components/pointCloudView/PointCloud3DView.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudBackView.js +138 -1
- package/dist/components/pointCloudView/PointCloudBackView.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudContext.js +257 -1
- package/dist/components/pointCloudView/PointCloudContext.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudInfos.js +146 -1
- package/dist/components/pointCloudView/PointCloudInfos.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudLayout.js +28 -1
- package/dist/components/pointCloudView/PointCloudLayout.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudListener.js +347 -1
- package/dist/components/pointCloudView/PointCloudListener.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudSegment.js +62 -0
- package/dist/components/pointCloudView/PointCloudSegment.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudSideView.js +135 -1
- package/dist/components/pointCloudView/PointCloudSideView.js.map +1 -0
- package/dist/components/pointCloudView/PointCloudTopView.js +339 -1
- package/dist/components/pointCloudView/PointCloudTopView.js.map +1 -0
- package/dist/components/pointCloudView/components/EmptyPage/index.js +24 -1
- package/dist/components/pointCloudView/components/EmptyPage/index.js.map +1 -0
- package/dist/components/pointCloudView/components/UnifyParamsModal/index.js +240 -1
- package/dist/components/pointCloudView/components/UnifyParamsModal/index.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useAttribute.js +53 -1
- package/dist/components/pointCloudView/hooks/useAttribute.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useBoxes.js +81 -1
- package/dist/components/pointCloudView/hooks/useBoxes.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useConfig.js +33 -1
- package/dist/components/pointCloudView/hooks/useConfig.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useHistory.js +173 -1
- package/dist/components/pointCloudView/hooks/useHistory.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useLine.js +74 -1
- package/dist/components/pointCloudView/hooks/useLine.js.map +1 -0
- package/dist/components/pointCloudView/hooks/usePointCloudViews.js +759 -1
- package/dist/components/pointCloudView/hooks/usePointCloudViews.js.map +1 -0
- package/dist/components/pointCloudView/hooks/usePolygon.js +74 -1
- package/dist/components/pointCloudView/hooks/usePolygon.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useRotate.js +47 -1
- package/dist/components/pointCloudView/hooks/useRotate.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useSingleBox.js +176 -1
- package/dist/components/pointCloudView/hooks/useSingleBox.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useSphere.js +51 -1
- package/dist/components/pointCloudView/hooks/useSphere.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useStatus.js +92 -1
- package/dist/components/pointCloudView/hooks/useStatus.js.map +1 -0
- package/dist/components/pointCloudView/hooks/useZoom.js +42 -1
- package/dist/components/pointCloudView/hooks/useZoom.js.map +1 -0
- package/dist/components/pointCloudView/index.js +59 -1
- package/dist/components/pointCloudView/index.js.map +1 -0
- package/dist/components/predictTracking/index.js +8 -1
- package/dist/components/predictTracking/index.js.map +1 -0
- package/dist/components/predictTracking/predictTrackingIcon/index.js +104 -1
- package/dist/components/predictTracking/predictTrackingIcon/index.js.map +1 -0
- package/dist/components/predictTracking/previewResult/index.js +196 -1
- package/dist/components/predictTracking/previewResult/index.js.map +1 -0
- package/dist/components/predictTracking/previewResult/util.js +144 -1
- package/dist/components/predictTracking/previewResult/util.js.map +1 -0
- package/dist/components/videoAnnotate/index.js +50 -1
- package/dist/components/videoAnnotate/index.js.map +1 -0
- package/dist/components/videoPlayer/TagToolInstanceAdaptor.js +233 -1
- package/dist/components/videoPlayer/TagToolInstanceAdaptor.js.map +1 -0
- package/dist/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js +40 -1
- package/dist/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js.map +1 -0
- package/dist/components/videoPlayer/VideoTagLayer.js +37 -1
- package/dist/components/videoPlayer/VideoTagLayer.js.map +1 -0
- package/dist/components/videoPlayer/components/controller/index.js +131 -1
- package/dist/components/videoPlayer/components/controller/index.js.map +1 -0
- package/dist/components/videoPlayer/index.js +267 -1
- package/dist/components/videoPlayer/index.js.map +1 -0
- package/dist/components/videoPlayer/utils.js +59 -1
- package/dist/components/videoPlayer/utils.js.map +1 -0
- package/dist/configureStore.js +16 -1
- package/dist/configureStore.js.map +1 -0
- package/dist/constant/index.js +32 -1
- package/dist/constant/index.js.map +1 -0
- package/dist/constant/styleString.js +6 -1
- package/dist/constant/styleString.js.map +1 -0
- package/dist/data/Style.js +113 -1
- package/dist/data/Style.js.map +1 -0
- package/dist/data/enums/AnnotationSize.js +39 -1
- package/dist/data/enums/AnnotationSize.js.map +1 -0
- package/dist/data/enums/ToolType.js +44 -1
- package/dist/data/enums/ToolType.js.map +1 -0
- package/dist/hooks/annotation.js +81 -1
- package/dist/hooks/annotation.js.map +1 -0
- package/dist/hooks/useRafState.js +21 -1
- package/dist/hooks/useRafState.js.map +1 -0
- package/dist/hooks/useRefCache.js +14 -1
- package/dist/hooks/useRefCache.js.map +1 -0
- package/dist/hooks/useSafeSate.js +22 -1
- package/dist/hooks/useSafeSate.js.map +1 -0
- package/dist/hooks/useSize.js +45 -1
- package/dist/hooks/useSize.js.map +1 -0
- package/dist/hooks/useUnmountedRef.js +17 -1
- package/dist/hooks/useUnmountedRef.js.map +1 -0
- package/dist/index.js +90 -1
- package/dist/index.js.map +1 -0
- package/dist/store/Actions.js +57 -1
- package/dist/store/Actions.js.map +1 -0
- package/dist/store/annotation/actionCreators.js +488 -1
- package/dist/store/annotation/actionCreators.js.map +1 -0
- package/dist/store/annotation/map.js +26 -1
- package/dist/store/annotation/map.js.map +1 -0
- package/dist/store/annotation/reducer.js +669 -1
- package/dist/store/annotation/reducer.js.map +1 -0
- package/dist/store/annotation/selectors.js +15 -1
- package/dist/store/annotation/selectors.js.map +1 -0
- package/dist/store/ctx.js +19 -1
- package/dist/store/ctx.js.map +1 -0
- package/dist/store/imgAttribute/actionCreators.js +27 -1
- package/dist/store/imgAttribute/actionCreators.js.map +1 -0
- package/dist/store/imgAttribute/reducer.js +44 -1
- package/dist/store/imgAttribute/reducer.js.map +1 -0
- package/dist/store/index.js +17 -1
- package/dist/store/index.js.map +1 -0
- package/dist/store/toolStyle/actionCreators.js +22 -1
- package/dist/store/toolStyle/actionCreators.js.map +1 -0
- package/dist/store/toolStyle/reducer.js +54 -1
- package/dist/store/toolStyle/reducer.js.map +1 -0
- package/dist/types/components/pointCloudView/PointCloudSegment.d.ts +6 -0
- package/dist/types/components/predictTracking/previewResult/util.d.ts +2 -1
- package/dist/types/store/annotation/actionCreators.d.ts +1 -1
- package/dist/types/views/MainView/toolHeader/SwitchPattern/index.d.ts +5 -0
- package/dist/utils/AnnotationDataUtils.js +171 -1
- package/dist/utils/AnnotationDataUtils.js.map +1 -0
- package/dist/utils/ConfigUtils.js +22 -1
- package/dist/utils/ConfigUtils.js.map +1 -0
- package/dist/utils/PageOperator.js +99 -1
- package/dist/utils/PageOperator.js.map +1 -0
- package/dist/utils/StepUtils.js +29 -1
- package/dist/utils/StepUtils.js.map +1 -0
- package/dist/utils/TextUtils.js +45 -1
- package/dist/utils/TextUtils.js.map +1 -0
- package/dist/utils/ToolStyleUtils.js +96 -1
- package/dist/utils/ToolStyleUtils.js.map +1 -0
- package/dist/utils/ToolUtils.js +19 -1
- package/dist/utils/ToolUtils.js.map +1 -0
- package/dist/utils/data.js +77 -1
- package/dist/utils/data.js.map +1 -0
- package/dist/utils/dom.js +25 -1
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/index.js +39 -1
- package/dist/utils/index.js.map +1 -0
- package/dist/views/MainView/annotationOperation/index.js +175 -1
- package/dist/views/MainView/annotationOperation/index.js.map +1 -0
- package/dist/views/MainView/annotationTips/index.js +32 -1
- package/dist/views/MainView/annotationTips/index.js.map +1 -0
- package/dist/views/MainView/index.js +122 -1
- package/dist/views/MainView/index.js.map +1 -0
- package/dist/views/MainView/sidebar/AnnotationText/index.js +47 -1
- package/dist/views/MainView/sidebar/AnnotationText/index.js.map +1 -0
- package/dist/views/MainView/sidebar/ClearIcon/index.js +37 -1
- package/dist/views/MainView/sidebar/ClearIcon/index.js.map +1 -0
- package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +101 -1
- package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js.map +1 -0
- package/dist/views/MainView/sidebar/GeneralOperation/index.js +95 -1
- package/dist/views/MainView/sidebar/GeneralOperation/index.js.map +1 -0
- package/dist/views/MainView/sidebar/GeneralOperation/useOperationList.js +94 -1
- package/dist/views/MainView/sidebar/GeneralOperation/useOperationList.js.map +1 -0
- package/dist/views/MainView/sidebar/ImgAttributeInfo/index.js +134 -1
- package/dist/views/MainView/sidebar/ImgAttributeInfo/index.js.map +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +128 -1
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js.map +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +253 -1
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js.map +1 -0
- package/dist/views/MainView/sidebar/ScribbleSidebar/index.js +64 -1
- package/dist/views/MainView/sidebar/ScribbleSidebar/index.js.map +1 -0
- package/dist/views/MainView/sidebar/SwitchAttributeList/index.js +79 -1
- package/dist/views/MainView/sidebar/SwitchAttributeList/index.js.map +1 -0
- package/dist/views/MainView/sidebar/TagSidebar/index.js +187 -1
- package/dist/views/MainView/sidebar/TagSidebar/index.js.map +1 -0
- package/dist/views/MainView/sidebar/TextAreaFormat/index.js +112 -1
- package/dist/views/MainView/sidebar/TextAreaFormat/index.js.map +1 -0
- package/dist/views/MainView/sidebar/TextToolSidebar/index.js +235 -1
- package/dist/views/MainView/sidebar/TextToolSidebar/index.js.map +1 -0
- package/dist/views/MainView/sidebar/ToolIcons.js +87 -1
- package/dist/views/MainView/sidebar/ToolIcons.js.map +1 -0
- package/dist/views/MainView/sidebar/ToolStyle/index.js +162 -1
- package/dist/views/MainView/sidebar/ToolStyle/index.js.map +1 -0
- package/dist/views/MainView/sidebar/index.js +156 -1
- package/dist/views/MainView/sidebar/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/AnnotatedAttributes/index.js +211 -1
- package/dist/views/MainView/toolFooter/AnnotatedAttributes/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterPopover.js +54 -1
- package/dist/views/MainView/toolFooter/FooterPopover.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +149 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js +26 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +226 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +111 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +55 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +174 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +117 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +71 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +18 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +25 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +18 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js +28 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/FooterTips/index.js +23 -1
- package/dist/views/MainView/toolFooter/FooterTips/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/HiddenTips/index.js +45 -1
- package/dist/views/MainView/toolFooter/HiddenTips/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/PageNumber/index.js +48 -1
- package/dist/views/MainView/toolFooter/PageNumber/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/Pagination.js +91 -1
- package/dist/views/MainView/toolFooter/Pagination.js.map +1 -0
- package/dist/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +39 -1
- package/dist/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/ZoomController/index.js +72 -1
- package/dist/views/MainView/toolFooter/ZoomController/index.js.map +1 -0
- package/dist/views/MainView/toolFooter/index.js +135 -1
- package/dist/views/MainView/toolFooter/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/ExportData/index.js +44 -1
- package/dist/views/MainView/toolHeader/ExportData/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/StepSwitch/index.js +47 -1
- package/dist/views/MainView/toolHeader/StepSwitch/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/SwitchPattern/index.js +59 -0
- package/dist/views/MainView/toolHeader/SwitchPattern/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/headerOption/index.js +151 -1
- package/dist/views/MainView/toolHeader/headerOption/index.js.map +1 -0
- package/dist/views/MainView/toolHeader/index.js +180 -1
- package/dist/views/MainView/toolHeader/index.js.map +1 -0
- package/es/App.js +138 -1
- package/es/App.js.map +1 -0
- package/es/assets/annotation/common/icon_adapt.svg.js +4 -1
- package/es/assets/annotation/common/icon_adapt.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_adapt_black.svg.js +4 -1
- package/es/assets/annotation/common/icon_adapt_black.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_back.svg.js +4 -1
- package/es/assets/annotation/common/icon_back.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_backA.svg.js +4 -1
- package/es/assets/annotation/common/icon_backA.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clear.svg.js +4 -1
- package/es/assets/annotation/common/icon_clear.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clearSmall.svg.js +4 -1
- package/es/assets/annotation/common/icon_clearSmall.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clearSmall_a.svg.js +4 -1
- package/es/assets/annotation/common/icon_clearSmall_a.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_clear_a.svg.js +4 -1
- package/es/assets/annotation/common/icon_clear_a.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_invalid.svg.js +4 -1
- package/es/assets/annotation/common/icon_invalid.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_invalid_a.svg.js +4 -1
- package/es/assets/annotation/common/icon_invalid_a.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_next.svg.js +4 -1
- package/es/assets/annotation/common/icon_next.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_nextA.svg.js +4 -1
- package/es/assets/annotation/common/icon_nextA.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_r.svg.js +4 -1
- package/es/assets/annotation/common/icon_r.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_rA.svg.js +4 -1
- package/es/assets/annotation/common/icon_rA.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_save.svg.js +4 -1
- package/es/assets/annotation/common/icon_save.svg.js.map +1 -0
- package/es/assets/annotation/common/icon_saveA.svg.js +4 -1
- package/es/assets/annotation/common/icon_saveA.svg.js.map +1 -0
- package/es/assets/annotation/image/brightness.svg.js +4 -1
- package/es/assets/annotation/image/brightness.svg.js.map +1 -0
- package/es/assets/annotation/image/contrast.svg.js +4 -1
- package/es/assets/annotation/image/contrast.svg.js.map +1 -0
- package/es/assets/annotation/image/icon_yuantu.svg.js +4 -1
- package/es/assets/annotation/image/icon_yuantu.svg.js.map +1 -0
- package/es/assets/annotation/image/saturation.svg.js +4 -1
- package/es/assets/annotation/image/saturation.svg.js.map +1 -0
- package/es/assets/annotation/lineTool/icon_line.svg.js +4 -1
- package/es/assets/annotation/lineTool/icon_line.svg.js.map +1 -0
- package/es/assets/annotation/lineTool/icon_line_a.svg.js +4 -1
- package/es/assets/annotation/lineTool/icon_line_a.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/copy.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/copy.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/nextBox.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/nextBox.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/nodata.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/nodata.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/patse.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/patse.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/prevBox.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/prevBox.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/selectAll.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/selectAll.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js.map +1 -0
- package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +4 -1
- package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js.map +1 -0
- package/es/assets/annotation/pointTool/icon_point.svg.js +4 -1
- package/es/assets/annotation/pointTool/icon_point.svg.js.map +1 -0
- package/es/assets/annotation/pointTool/icon_point_a.svg.js +4 -1
- package/es/assets/annotation/pointTool/icon_point_a.svg.js.map +1 -0
- package/es/assets/annotation/polygonTool/icon_polygon.svg.js +4 -1
- package/es/assets/annotation/polygonTool/icon_polygon.svg.js.map +1 -0
- package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js +4 -1
- package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js.map +1 -0
- package/es/assets/annotation/rectTool/icon_rect.svg.js +4 -1
- package/es/assets/annotation/rectTool/icon_rect.svg.js.map +1 -0
- package/es/assets/annotation/rectTool/icon_rectPattern.svg.js +4 -0
- package/es/assets/annotation/rectTool/icon_rectPattern.svg.js.map +1 -0
- package/es/assets/annotation/rectTool/icon_rect_a.svg.js +4 -1
- package/es/assets/annotation/rectTool/icon_rect_a.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_copyBackwardResult.svg.js +4 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_copyBackwardResult.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js.map +1 -0
- package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js +4 -1
- package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js.map +1 -0
- package/es/assets/annotation/video/icon_keyboard_h.svg.js +4 -1
- package/es/assets/annotation/video/icon_keyboard_h.svg.js.map +1 -0
- package/es/assets/attributeIcon/eraser.svg.js +4 -1
- package/es/assets/attributeIcon/eraser.svg.js.map +1 -0
- package/es/assets/attributeIcon/eraser_a.svg.js +4 -1
- package/es/assets/attributeIcon/eraser_a.svg.js.map +1 -0
- package/es/assets/attributeIcon/pen.svg.js +4 -1
- package/es/assets/attributeIcon/pen.svg.js.map +1 -0
- package/es/assets/attributeIcon/pen_a.svg.js +4 -1
- package/es/assets/attributeIcon/pen_a.svg.js.map +1 -0
- package/es/assets/attributeIcon/zoomUp.svg.js +4 -1
- package/es/assets/attributeIcon/zoomUp.svg.js.map +1 -0
- package/es/assets/cssIcon/annotation/icon_clearSmall.svg +10 -0
- package/es/assets/cssIcon/annotation/icon_clearSmall_a.svg +10 -0
- package/es/assets/cssIcon/slide_btn.svg +23 -0
- package/es/assets/predictTracking/icon.svg.js +4 -1
- package/es/assets/predictTracking/icon.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_border.svg.js +4 -1
- package/es/assets/toolStyle/icon_border.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_borderColor.svg.js +4 -1
- package/es/assets/toolStyle/icon_borderColor.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_opacityFill.svg.js +4 -1
- package/es/assets/toolStyle/icon_opacityFill.svg.js.map +1 -0
- package/es/assets/toolStyle/icon_opacityStroke.svg.js +4 -1
- package/es/assets/toolStyle/icon_opacityStroke.svg.js.map +1 -0
- package/es/components/AnnotationView/index.js +154 -1
- package/es/components/AnnotationView/index.js.map +1 -0
- package/es/components/AnnotationView/pointCloudAnnotationView.js +79 -1
- package/es/components/AnnotationView/pointCloudAnnotationView.js.map +1 -0
- package/es/components/ImageError/index.js +53 -0
- package/es/components/ImageError/index.js.map +1 -0
- package/es/components/annotationStepPopover/index.js +33 -1
- package/es/components/annotationStepPopover/index.js.map +1 -0
- package/es/components/attributeList/index.js +57 -1
- package/es/components/attributeList/index.js.map +1 -0
- package/es/components/checkboxList/index.js +33 -1
- package/es/components/checkboxList/index.js.map +1 -0
- package/es/components/colorTag/index.js +30 -1
- package/es/components/colorTag/index.js.map +1 -0
- package/es/components/customAntd/IconWithText/index.js +53 -1
- package/es/components/customAntd/IconWithText/index.js.map +1 -0
- package/es/components/customResizeHook/index.js +84 -1
- package/es/components/customResizeHook/index.js.map +1 -0
- package/es/components/fileException/FileError.js +55 -1
- package/es/components/fileException/FileError.js.map +1 -0
- package/es/components/fileException/FileInvalid.js +25 -1
- package/es/components/fileException/FileInvalid.js.map +1 -0
- package/es/components/fileException/index.js +32 -1
- package/es/components/fileException/index.js.map +1 -0
- package/es/components/pointCloudView/PointCloud2DView.js +147 -1
- package/es/components/pointCloudView/PointCloud2DView.js.map +1 -0
- package/es/components/pointCloudView/PointCloud3DView.js +227 -1
- package/es/components/pointCloudView/PointCloud3DView.js.map +1 -0
- package/es/components/pointCloudView/PointCloudBackView.js +132 -1
- package/es/components/pointCloudView/PointCloudBackView.js.map +1 -0
- package/es/components/pointCloudView/PointCloudContext.js +248 -1
- package/es/components/pointCloudView/PointCloudContext.js.map +1 -0
- package/es/components/pointCloudView/PointCloudInfos.js +136 -1
- package/es/components/pointCloudView/PointCloudInfos.js.map +1 -0
- package/es/components/pointCloudView/PointCloudLayout.js +19 -1
- package/es/components/pointCloudView/PointCloudLayout.js.map +1 -0
- package/es/components/pointCloudView/PointCloudListener.js +345 -1
- package/es/components/pointCloudView/PointCloudListener.js.map +1 -0
- package/es/components/pointCloudView/PointCloudSegment.js +56 -0
- package/es/components/pointCloudView/PointCloudSegment.js.map +1 -0
- package/es/components/pointCloudView/PointCloudSideView.js +129 -1
- package/es/components/pointCloudView/PointCloudSideView.js.map +1 -0
- package/es/components/pointCloudView/PointCloudTopView.js +333 -1
- package/es/components/pointCloudView/PointCloudTopView.js.map +1 -0
- package/es/components/pointCloudView/components/EmptyPage/index.js +18 -1
- package/es/components/pointCloudView/components/EmptyPage/index.js.map +1 -0
- package/es/components/pointCloudView/components/PointCloudSizeSlider/index.js +23 -0
- package/es/components/pointCloudView/components/PointCloudSizeSlider/index.js.map +1 -0
- package/es/components/pointCloudView/components/UnifiedParamsModal/index.js +228 -0
- package/es/components/pointCloudView/components/UnifiedParamsModal/index.js.map +1 -0
- package/es/components/pointCloudView/components/UnifyParamsModal/index.js +234 -1
- package/es/components/pointCloudView/components/UnifyParamsModal/index.js.map +1 -0
- package/es/components/pointCloudView/data.js +4 -0
- package/es/components/pointCloudView/data.js.map +1 -0
- package/es/components/pointCloudView/hooks/useAttribute.js +49 -1
- package/es/components/pointCloudView/hooks/useAttribute.js.map +1 -0
- package/es/components/pointCloudView/hooks/useBoxes.js +73 -1
- package/es/components/pointCloudView/hooks/useBoxes.js.map +1 -0
- package/es/components/pointCloudView/hooks/useConfig.js +29 -1
- package/es/components/pointCloudView/hooks/useConfig.js.map +1 -0
- package/es/components/pointCloudView/hooks/useHistory.js +169 -1
- package/es/components/pointCloudView/hooks/useHistory.js.map +1 -0
- package/es/components/pointCloudView/hooks/useLine.js +70 -1
- package/es/components/pointCloudView/hooks/useLine.js.map +1 -0
- package/es/components/pointCloudView/hooks/usePointCloudViews.js +747 -1
- package/es/components/pointCloudView/hooks/usePointCloudViews.js.map +1 -0
- package/es/components/pointCloudView/hooks/usePolygon.js +70 -1
- package/es/components/pointCloudView/hooks/usePolygon.js.map +1 -0
- package/es/components/pointCloudView/hooks/useRotate.js +43 -1
- package/es/components/pointCloudView/hooks/useRotate.js.map +1 -0
- package/es/components/pointCloudView/hooks/useSingleBox.js +168 -1
- package/es/components/pointCloudView/hooks/useSingleBox.js.map +1 -0
- package/es/components/pointCloudView/hooks/useSphere.js +43 -1
- package/es/components/pointCloudView/hooks/useSphere.js.map +1 -0
- package/es/components/pointCloudView/hooks/useStatus.js +88 -1
- package/es/components/pointCloudView/hooks/useStatus.js.map +1 -0
- package/es/components/pointCloudView/hooks/useZoom.js +38 -1
- package/es/components/pointCloudView/hooks/useZoom.js.map +1 -0
- package/es/components/pointCloudView/index.js +53 -1
- package/es/components/pointCloudView/index.js.map +1 -0
- package/es/components/predictTracking/index.js +3 -1
- package/es/components/predictTracking/index.js.map +1 -0
- package/es/components/predictTracking/predictTrackingIcon/index.js +98 -1
- package/es/components/predictTracking/predictTrackingIcon/index.js.map +1 -0
- package/es/components/predictTracking/previewResult/index.js +189 -1
- package/es/components/predictTracking/previewResult/index.js.map +1 -0
- package/es/components/predictTracking/previewResult/util.js +136 -1
- package/es/components/predictTracking/previewResult/util.js.map +1 -0
- package/es/components/videoAnnotate/index.js +44 -1
- package/es/components/videoAnnotate/index.js.map +1 -0
- package/es/components/videoPlayer/TagToolInstanceAdaptor.js +224 -1
- package/es/components/videoPlayer/TagToolInstanceAdaptor.js.map +1 -0
- package/es/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js +32 -1
- package/es/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js.map +1 -0
- package/es/components/videoPlayer/VideoTagLayer.js +29 -1
- package/es/components/videoPlayer/VideoTagLayer.js.map +1 -0
- package/es/components/videoPlayer/components/controller/index.js +125 -1
- package/es/components/videoPlayer/components/controller/index.js.map +1 -0
- package/es/components/videoPlayer/index.js +257 -1
- package/es/components/videoPlayer/index.js.map +1 -0
- package/es/components/videoPlayer/utils.js +51 -1
- package/es/components/videoPlayer/utils.js.map +1 -0
- package/es/configureStore.js +10 -1
- package/es/configureStore.js.map +1 -0
- package/es/constant/index.js +27 -1
- package/es/constant/index.js.map +1 -0
- package/es/constant/styleString.js +4 -1
- package/es/constant/styleString.js.map +1 -0
- package/es/data/Style.js +104 -1
- package/es/data/Style.js.map +1 -0
- package/es/data/enums/AnnotationSize.js +32 -1
- package/es/data/enums/AnnotationSize.js.map +1 -0
- package/es/data/enums/ToolType.js +40 -1
- package/es/data/enums/ToolType.js.map +1 -0
- package/es/hooks/annotation.js +77 -1
- package/es/hooks/annotation.js.map +1 -0
- package/es/hooks/useConfig.js +18 -0
- package/es/hooks/useConfig.js.map +1 -0
- package/es/hooks/useRafState.js +19 -1
- package/es/hooks/useRafState.js.map +1 -0
- package/es/hooks/useRefCache.js +12 -1
- package/es/hooks/useRefCache.js.map +1 -0
- package/es/hooks/useSafeSate.js +16 -1
- package/es/hooks/useSafeSate.js.map +1 -0
- package/es/hooks/useSize.js +39 -1
- package/es/hooks/useSize.js.map +1 -0
- package/es/hooks/useUnmountedRef.js +15 -1
- package/es/hooks/useUnmountedRef.js.map +1 -0
- package/es/index.js +64 -1
- package/es/index.js.map +1 -0
- package/es/store/Actions.js +51 -1
- package/es/store/Actions.js.map +1 -0
- package/es/store/annotation/actionCreators.js +450 -1
- package/es/store/annotation/actionCreators.js.map +1 -0
- package/es/store/annotation/map.js +22 -1
- package/es/store/annotation/map.js.map +1 -0
- package/es/store/annotation/reducer.js +657 -1
- package/es/store/annotation/reducer.js.map +1 -0
- package/es/store/annotation/selectors.js +11 -1
- package/es/store/annotation/selectors.js.map +1 -0
- package/es/store/ctx.js +9 -1
- package/es/store/ctx.js.map +1 -0
- package/es/store/imgAttribute/actionCreators.js +21 -1
- package/es/store/imgAttribute/actionCreators.js.map +1 -0
- package/es/store/imgAttribute/reducer.js +40 -1
- package/es/store/imgAttribute/reducer.js.map +1 -0
- package/es/store/index.js +13 -1
- package/es/store/index.js.map +1 -0
- package/es/store/toolStyle/actionCreators.js +17 -1
- package/es/store/toolStyle/actionCreators.js.map +1 -0
- package/es/store/toolStyle/reducer.js +50 -1
- package/es/store/toolStyle/reducer.js.map +1 -0
- package/es/utils/AnnotationDataUtils.js +165 -1
- package/es/utils/AnnotationDataUtils.js.map +1 -0
- package/es/utils/ConfigUtils.js +18 -1
- package/es/utils/ConfigUtils.js.map +1 -0
- package/es/utils/PageOperator.js +93 -1
- package/es/utils/PageOperator.js.map +1 -0
- package/es/utils/StepUtils.js +27 -1
- package/es/utils/StepUtils.js.map +1 -0
- package/es/utils/TextUtils.js +39 -1
- package/es/utils/TextUtils.js.map +1 -0
- package/es/utils/ToolStyleUtils.js +88 -1
- package/es/utils/ToolStyleUtils.js.map +1 -0
- package/es/utils/ToolUtils.js +17 -1
- package/es/utils/ToolUtils.js.map +1 -0
- package/es/utils/data.js +72 -1
- package/es/utils/data.js.map +1 -0
- package/es/utils/dom.js +20 -1
- package/es/utils/dom.js.map +1 -0
- package/es/utils/index.js +30 -1
- package/es/utils/index.js.map +1 -0
- package/es/views/MainView/annotationOperation/index.js +168 -1
- package/es/views/MainView/annotationOperation/index.js.map +1 -0
- package/es/views/MainView/annotationTips/index.js +26 -1
- package/es/views/MainView/annotationTips/index.js.map +1 -0
- package/es/views/MainView/index.js +116 -1
- package/es/views/MainView/index.js.map +1 -0
- package/es/views/MainView/sidebar/AnnotationText/index.js +41 -1
- package/es/views/MainView/sidebar/AnnotationText/index.js.map +1 -0
- package/es/views/MainView/sidebar/ClearIcon/index.js +31 -1
- package/es/views/MainView/sidebar/ClearIcon/index.js.map +1 -0
- package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +95 -1
- package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js.map +1 -0
- package/es/views/MainView/sidebar/GeneralOperation/index.js +86 -1
- package/es/views/MainView/sidebar/GeneralOperation/index.js.map +1 -0
- package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js +88 -1
- package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js.map +1 -0
- package/es/views/MainView/sidebar/ImgAttributeInfo/index.js +128 -1
- package/es/views/MainView/sidebar/ImgAttributeInfo/index.js.map +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +122 -1
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js.map +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +247 -1
- package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js.map +1 -0
- package/es/views/MainView/sidebar/ScribbleSidebar/index.js +58 -1
- package/es/views/MainView/sidebar/ScribbleSidebar/index.js.map +1 -0
- package/es/views/MainView/sidebar/SwitchAttributeList/index.js +73 -1
- package/es/views/MainView/sidebar/SwitchAttributeList/index.js.map +1 -0
- package/es/views/MainView/sidebar/TagSidebar/index.js +178 -1
- package/es/views/MainView/sidebar/TagSidebar/index.js.map +1 -0
- package/es/views/MainView/sidebar/TextAreaFormat/index.js +106 -1
- package/es/views/MainView/sidebar/TextAreaFormat/index.js.map +1 -0
- package/es/views/MainView/sidebar/TextToolSidebar/index.js +225 -1
- package/es/views/MainView/sidebar/TextToolSidebar/index.js.map +1 -0
- package/es/views/MainView/sidebar/ToolIcons.js +78 -1
- package/es/views/MainView/sidebar/ToolIcons.js.map +1 -0
- package/es/views/MainView/sidebar/ToolStyle/index.js +156 -1
- package/es/views/MainView/sidebar/ToolStyle/index.js.map +1 -0
- package/es/views/MainView/sidebar/index.js +147 -1
- package/es/views/MainView/sidebar/index.js.map +1 -0
- package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js +200 -1
- package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterPopover.js +48 -1
- package/es/views/MainView/toolFooter/FooterPopover.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +127 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js +24 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +216 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +97 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +47 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +165 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +102 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +61 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +16 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +20 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +16 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js +22 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js.map +1 -0
- package/es/views/MainView/toolFooter/FooterTips/index.js +17 -1
- package/es/views/MainView/toolFooter/FooterTips/index.js.map +1 -0
- package/es/views/MainView/toolFooter/HiddenTips/index.js +39 -1
- package/es/views/MainView/toolFooter/HiddenTips/index.js.map +1 -0
- package/es/views/MainView/toolFooter/PageNumber/index.js +42 -1
- package/es/views/MainView/toolFooter/PageNumber/index.js.map +1 -0
- package/es/views/MainView/toolFooter/Pagination.js +82 -1
- package/es/views/MainView/toolFooter/Pagination.js.map +1 -0
- package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +33 -1
- package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js.map +1 -0
- package/es/views/MainView/toolFooter/ZoomController/index.js +63 -1
- package/es/views/MainView/toolFooter/ZoomController/index.js.map +1 -0
- package/es/views/MainView/toolFooter/index.js +125 -1
- package/es/views/MainView/toolFooter/index.js.map +1 -0
- package/es/views/MainView/toolHeader/ExportData/index.js +38 -1
- package/es/views/MainView/toolHeader/ExportData/index.js.map +1 -0
- package/es/views/MainView/toolHeader/StepSwitch/index.js +41 -1
- package/es/views/MainView/toolHeader/StepSwitch/index.js.map +1 -0
- package/es/views/MainView/toolHeader/SwitchPattern/index.js +53 -0
- package/es/views/MainView/toolHeader/SwitchPattern/index.js.map +1 -0
- package/es/views/MainView/toolHeader/headerOption/index.js +145 -1
- package/es/views/MainView/toolHeader/headerOption/index.js.map +1 -0
- package/es/views/MainView/toolHeader/index.js +173 -1
- package/es/views/MainView/toolHeader/index.js.map +1 -0
- package/package.json +8 -6
|
@@ -1 +1,747 @@
|
|
|
1
|
-
import{MathUtils as x,getCuboidFromPointCloudBox as Vt}from"@labelbee/lb-annotation";import{EPerspectiveView as N,PointCloudUtils as I,DEFAULT_SPHERE_PARAMS as Ut}from"@labelbee/lb-utils";import{useContext as kt}from"react";import{PointCloudContext as At}from"../PointCloudContext.js";import{useSingleBox as st}from"./useSingleBox.js";import{useSphere as jt}from"./useSphere.js";import{useSelector as Tt,useDispatch as zt}from"../../../store/ctx.js";import Rt from"../../../utils/StepUtils.js";import{jsonParser as rt}from"../../../utils/index.js";import{SetPointCloudLoading as dt}from"../../../store/annotation/actionCreators.js";import{message as Et}from"antd";import{useTranslation as Ht}from"react-i18next";import{useHistory as Ft}from"./useHistory.js";import{usePolygon as Nt}from"./usePolygon.js";var Wt=Object.defineProperty,Zt=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,at=(t,e,n)=>e in t?Wt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,L=(t,e)=>{for(var n in e||(e={}))Gt.call(e,n)&&at(t,n,e[n]);if(lt)for(var n of lt(e))Xt.call(e,n)&&at(t,n,e[n]);return t},V=(t,e)=>Zt(t,Mt(e)),q=(t,e,n)=>new Promise((r,o)=>{var c=d=>{try{s(n.next(d))}catch(g){o(g)}},p=d=>{try{s(n.throw(d))}catch(g){o(g)}},s=d=>d.done?r(d.value):Promise.resolve(d.value).then(c,p);s((n=n.apply(t,e)).next())});const G=5,X=90,y={"3D":"3D",Top:"Top",Side:"Side",Back:"Back"},J=(t,e,n,r,o)=>{const{x:c,y:p}=I.transferCanvas2World(t,e),{defaultZ:s}=Ut,d={center:{x:c,y:p,z:s},id:t.id},g=r?L(L({},r),d):V(L({},d),{attribute:"",valid:!0});return o&&Object.assign(g,o),g},K=(t,e,n,r,o,c)=>{let p=t.pointList.map(m=>I.transferCanvas2World(m,e)),s=0,d=1,g={};if(n){const m=n.getSensesPointZAxisInPolygon(p,void 0,c);c&&m.fittedCoordinates.length>0&&(p=m.fittedCoordinates),s=(m.maxZ+m.minZ)/2,d=m.maxZ-m.minZ,g={count:m.zCount}}const[P,B,H]=p,U=x.getLineCenterPoint([P,H]),T=x.getLineLength(P,B),z=x.getLineLength(B,H),R=x.getRadiusFromQuadrangle(t.pointList);r&&(s=r.center.z,d=r.depth);const k={center:{x:U.x,y:U.y,z:s},width:z,height:T,depth:d,rotation:R,id:t.id},A=L(r?L(L({},r),k):V(L({},k),{attribute:"",valid:!0}),g);o&&Object.assign(A,o);const j=p.map(m=>I.transferWorld2Canvas(m,e));return{boxParams:A,newPointList:j}},ct=(t,e,n)=>{const r={x:t.x-e.x,y:t.y-e.y};return V(L({},n),{center:{x:n.center.x-r.x,y:n.center.y,z:n.center.z-r.y}})},ut=(t,e,n,r)=>{const[o,c,p]=t.pointList,[s,d,g]=e.pointList,P=x.getLineCenterPoint([o,p]),B=x.getLineCenterPoint([s,g]),U={x:{x:P.x-B.x,y:P.y-B.y}.x,y:0,z:P.y-B.y},T=x.getLineLength(o,c),z=x.getLineLength(s,d),R=T-z,k=x.getLineLength(c,p),A=x.getLineLength(d,g),j=k-A,{newBoxParams:m}=r.getNewBoxBySideUpdate(U,j,R,n);return m},Yt=(t,e,n)=>{const r={x:t.x-e.x,y:t.y-e.y};return V(L({},n),{center:{x:n.center.x,y:n.center.y-r.x,z:n.center.z-r.y}})},Qt=(t,e,n,r)=>{const[o,c,p]=t.pointList,[s,d,g]=e.pointList,P=x.getLineCenterPoint([o,p]),B=x.getLineCenterPoint([s,g]),U={x:{x:P.x-B.x,y:P.y-B.y}.x,y:0,z:P.y-B.y},T=x.getLineLength(o,c),z=x.getLineLength(s,d),R=T-z,k=x.getLineLength(c,p),A=x.getLineLength(d,g),j=k-A;let{newBoxParams:m}=r.getNewBoxByBackUpdate(U,j,R,n);return m},pt=(t,e,n,r,o)=>{var c;if(!n)return;const{toolInstance:p,pointCloudInstance:s}=n;s.loadPCDFile(r,(c=o==null?void 0:o.radius)!=null?c:X);const{cameraPositionVector:d}=s.updateOrthoCameraBySphere(t,N.Left);s.setInitCameraPosition(d);const{point2d:g,zoom:P}=s.getSphereSidePoint2DCoordinate(t);s.camera.zoom=P,s.camera.updateProjectionMatrix(),s.render(),p.initPosition(),p.zoomChangeOnCenter(P),p.setResult([V(L(L({},e),g),{valid:t.valid,textAttribute:"",attribute:t.attribute})]),p.setSelectedID(e.id)},ft=(t,e,n,r)=>{if(!n)return;const{pointCloud2dOperation:o,pointCloudInstance:c}=n;c.loadPCDFileByBox(r,t,{width:G,depth:G});const{cameraPositionVector:p}=c.updateOrthoCamera(t,N.Left);c.setInitCameraPosition(p);const{polygon2d:s,zoom:d}=c.getBoxSidePolygon2DCoordinate(t);c.camera.zoom=d,c.camera.updateProjectionMatrix(),c.render(),o.initPosition(),o.zoomChangeOnCenter(d),o.setResultAndSelectedID([{id:e.id,valid:t.valid,pointList:s,textAttribute:"",isRect:!0,attribute:t.attribute}],e.id)},Ct=(t,e,n,r,o)=>{var c;if(!n)return;const{toolInstance:p,pointCloudInstance:s}=n;s.loadPCDFile(r,(c=o==null?void 0:o.radius)!=null?c:X);const{cameraPositionVector:d}=s.updateOrthoCameraBySphere(t,N.Back);s.setInitCameraPosition(d);const{point2d:g,zoom:P}=s.getSphereBackPoint2DCoordinate(t);s.camera.zoom=P,s.camera.updateProjectionMatrix(),s.render(),p.initPosition(),p.zoomChangeOnCenter(P),p.setResult([V(L(L({},e),g),{valid:t.valid,textAttribute:"",attribute:t.attribute})]),p.setSelectedID(e.id)},gt=(t,e,n,r)=>{if(!n)return;const{pointCloud2dOperation:o,pointCloudInstance:c}=n;c.loadPCDFileByBox(r,t,{height:G,depth:G});const{cameraPositionVector:p}=c.updateOrthoCamera(t,N.Back);c.setInitCameraPosition(p);const{polygon2d:s,zoom:d}=c.getBoxBackPolygon2DCoordinate(t);c.camera.zoom=d,c.camera.updateProjectionMatrix(),c.render(),o.initPosition(),o.zoomChangeOnCenter(d),o.setResultAndSelectedID([{id:e.id,valid:t.valid,pointList:s,textAttribute:"",isRect:!0,attribute:t.attribute}],e.id)},Pt=(t,e,n,r)=>{if(!n||!r)return;r.generateSphere(t),r.updateCameraBySphere(t,N.Top),r.render();const{toolInstance:o,pointCloudInstance:c}=n,{point2d:p}=c.getSphereTopPoint2DCoordinate(t),s=[...o.pointList].map(d=>d.id===e.id?V(L(L({},e),p),{valid:t.valid,textAttribute:"",attribute:t.attribute}):d);o.setResult(s),o.setSelectedID(e.id)},$=(t,e,n,r)=>{var o;if(!n||!r)return;r.generateBox(t,e.id),r.render();const{pointCloud2dOperation:c,pointCloudInstance:p}=n,{polygon2d:s}=p.getBoxTopPolygon2DCoordinate(t),d=[...c.polygonList],g=d.find(P=>P.id===e.id);g?g.pointList=s:d.push({id:e.id,pointList:s,textAttribute:"",isRect:!0,valid:(o=t.valid)!=null?o:!0}),c.setResultAndSelectedID(d,e.id)},qt=()=>{const t=kt(At),{topViewInstance:e,sideViewInstance:n,backViewInstance:r,mainViewInstance:o,addPointCloudBox:c,addPointCloudSphere:p,setSelectedIDs:s,selectedIDs:d,pointCloudBoxList:g,pointCloudSphereList:P,hideAttributes:B}=t,{addHistory:H,initHistory:U,pushHistoryUnderUpdatePolygon:T,pushHistoryUnderUpdatePoint:z,pushHistoryUnderUpdateLine:R}=Ft(),{selectedPolygon:k}=Nt(),{updateSelectedBox:A,updateSelectedBoxes:j,getPointCloudByID:m}=st(),{getPointCloudSphereByID:ht,updatePointCloudSphere:tt,selectedSphere:W}=jt(),{currentData:D,config:S}=Tt(i=>{const{stepList:l,step:f,imgList:u,imgIndex:a}=i.annotation;return{currentData:u[a],config:rt(Rt.getCurrentStepInfo(f,l).config)}}),ot=zt(),{selectedBox:F}=st(),{t:yt}=Ht(),et=F==null?void 0:F.info;if(!e||!n||!r)return{topViewAddSphere:()=>{},topViewAddBox:()=>{},topViewSelectedChanged:()=>{},sideViewUpdateBox:()=>{},backViewUpdateBox:()=>{}};const{pointCloudInstance:Y}=e,Lt=i=>{o==null||o.generateBox(i),o==null||o.controls.update(),o==null||o.render()},mt=i=>{o==null||o.generateSphere(i),o==null||o.controls.update(),o==null||o.render()},xt=({newPoint:i,size:l,zoom:f,trackConfigurable:u})=>{var a;const C={attribute:(a=e.toolInstance.defaultAttribute)!=null?a:""};u===!0&&Object.assign(C,{trackID:I.getNextTrackID({imgList:[],extraBoxList:[],extraSphereList:P})});const h=J(i,l,Y,void 0,C);s(i.id);const v=p(h);Z(y.Top,i,h,f,v,S)},vt=({polygon:i,size:l,imgList:f,trackConfigurable:u,zoom:a,intelligentFit:C})=>{var h;const v={attribute:(h=e.toolInstance.defaultAttribute)!=null?h:""};u===!0&&Object.assign(v,{trackID:I.getNextTrackID({imgList:[],extraBoxList:g,extraSphereList:P})});const w=e==null?void 0:e.toolInstance,O=L({},i),{boxParams:b,newPointList:E}=K(O,l,Y,void 0,v,C);if((S==null?void 0:S.lowerLimitPointsNumInBox)&&typeof b.count=="number"&&b.count<S.lowerLimitPointsNumInBox){Et.info(yt("LowerLimitPointsNumInBox",{num:S.lowerLimitPointsNumInBox})),w.deletePolygon(b.id);return}C&&(E==null?void 0:E.length)&&(O.pointList=E);const Q=B.includes(O.attribute),_=c(b);Q?s([]):(s(b.id),w.setSelectedIDs([O.id]),M(y.Top,O,b,a,_),C&&$(b,O,e,o)),H({newBoxParams:b})},Bt=({newSelectedBox:i,newPointCloudList:l,newSelectedSphere:f,newSphereList:u})=>{const a=e==null?void 0:e.toolInstance;if(!(d.length===0||!a)){if(i||(F==null?void 0:F.info)){const C=i!=null?i:F==null?void 0:F.info;a.setSelectedIDs(d);const h=a.selectedPolygon;if(d.length===1&&C){M(y.Top,h,C,void 0,l);return}}if((f||W)&&d.length===1){const C=f!=null?f:W;a.setSelectedID(d[0]);const h=a.selectedPoint;C&&Z(y.Top,h,C,void 0,u,S)}}},nt=(i,l,f)=>{if(et){let u,a;switch(f){case y.Back:u=Qt;break;case y.Side:u=ut;break;default:u=ut;break}if(a=u(i,l,et,n.pointCloudInstance),o){const{count:h}=o.getSensesPointZAxisInPolygon(Vt(a).polygonPointList,[a.center.z-a.depth/2,a.center.z+a.depth/2]);a=V(L({},a),{count:h})}const C=A(a);return M(f,i,a,void 0,C),C}},it=(i,l,f)=>{if(W){let u,a;switch(f){case y.Back:u=Yt;break;case y.Side:u=ct;break;default:u=ct;break}a=u(i,l,W);const C=tt(a);return Z(f,i,a,void 0,C,S),C}},St=(i,l)=>{it(i,l,y.Side)},bt=(i,l)=>{it(i,l,y.Back)},wt=(i,l)=>{nt(i,l,y.Side)},It=(i,l)=>{nt(i,l,y.Back)},Dt=(i,l)=>{R(i)},Ot=(i,l)=>{const{x:f,y:u}=I.transferCanvas2World(i,l);z(V(L({},i),{x:f,y:u}));const a=ht(i.id),C=J(i,l,Y,a),h=tt(C);Z(y.Top,i,C,void 0,h,S)},_t=(i,l)=>{if(k){const u=i[0].newPolygon;u.pointList=u.pointList.map(a=>I.transferCanvas2World(a,l)),T(i[0].newPolygon);return}const f=i.map(({newPolygon:u})=>{const a=m(u.id),{boxParams:C}=K(u,l,e.pointCloudInstance,a);return C});if(f.length===1){const{newPolygon:u}=i[0],a=j(f);M(y.Top,u,f[0],void 0,a)}else{const u=j(f);u&&t.syncAllViewPointCloudColor(u)}},Z=(i,l,f,u,a,C)=>q(void 0,null,function*(){const h=D==null?void 0:D.url,v={[y.Side]:()=>{pt(f,l,n,h,C)},[y.Back]:()=>{r&&Ct(f,l,r,h,C)},[y.Top]:()=>{Pt(f,l,e,o)}};Object.keys(v).forEach(w=>{w!==i&&v[w]()}),u&&(o==null||o.updateCameraZoom(u)),mt(f)}),M=(i,l,f,u,a)=>q(void 0,null,function*(){const C=D==null?void 0:D.url;a&&(yield t.syncAllViewPointCloudColor(a));const h={[y.Side]:()=>{ft(f,l,n,C)},[y.Back]:()=>{r&>(f,l,r,C)},[y.Top]:()=>{$(f,l,e,o)}};Object.keys(h).forEach(v=>{v!==i&&h[v]()}),u&&(o==null||o.updateCameraZoom(u)),Lt(f)});return{topViewAddSphere:xt,topViewAddBox:vt,topViewSelectedChanged:Bt,topViewUpdatePoint:Ot,sideViewUpdatePoint:St,backViewUpdatePoint:bt,topViewUpdateBox:_t,topViewUpdateLine:Dt,sideViewUpdateBox:wt,backViewUpdateBox:It,pointCloudBoxListUpdated:i=>{e.updatePolygonList(i),o==null||o.generateBoxes(i)},initPointCloud3d:i=>{if(!o)return;const l={left:-i.width/2,right:i.width/2,top:i.height/2,bottom:-i.height/2,near:100,far:-100};o.initOrthographicCamera(l),o.initRenderer(),o.render()},updatePointCloudData:(...i)=>q(void 0,[...i],function*(l=D){var f,u,a,C,h,v;if(!(l==null?void 0:l.url)||!o)return;dt(ot,!0),yield o.loadPCDFile(l.url,(f=S==null?void 0:S.radius)!=null?f:X),g.forEach(_=>{o==null||o.removeObjectByName(_.id)}),P.forEach(_=>{o==null||o.removeObjectByName(_.id)});let w=[],O=[],b=[],E=[];D.result?(w=I.getBoxParamsFromResultList(D.result),b=I.getPolygonListFromResultList(D.result),O=I.getLineListFromResultList(D.result),E=I.getSphereParamsFromResultList(D.result),w.forEach(_=>{o==null||o.generateBox(_)}),E.forEach(_=>{o==null||o.generateSphere(_)}),t.syncAllViewPointCloudColor(w),t.setPointCloudResult(w),t.setPolygonList(b),t.setLineList(O),t.setPointCloudSphereList(E)):(t.setPointCloudResult([]),t.setPolygonList([]),t.setPointCloudSphereList([]),t.setLineList([])),U({pointCloudBoxList:w,polygonList:b}),o.updateTopCamera();const Q=(a=(u=rt(l.result))==null?void 0:u.valid)!=null?a:!0;t.setPointCloudValid(Q),(C=t.sideViewInstance)==null||C.clearAllData(),(h=t.backViewInstance)==null||h.clearAllData(),e.updateData(l.url,l.result,{radius:(v=S==null?void 0:S.radius)!=null?v:X}),dt(ot,!1)})}};export{Ct as syncBackViewByPoint,pt as syncSideViewByPoint,Pt as syncTopViewByPoint,gt as synchronizeBackView,ft as synchronizeSideView,$ as synchronizeTopView,J as topViewPoint2PointCloud,K as topViewPolygon2PointCloud,qt as usePointCloudViews};
|
|
1
|
+
import { MathUtils, getCuboidFromPointCloudBox } from '@labelbee/lb-annotation';
|
|
2
|
+
import { EPerspectiveView, PointCloudUtils, DEFAULT_SPHERE_PARAMS } from '@labelbee/lb-utils';
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
import { PointCloudContext } from '../PointCloudContext.js';
|
|
5
|
+
import { useSingleBox } from './useSingleBox.js';
|
|
6
|
+
import { useSphere } from './useSphere.js';
|
|
7
|
+
import { useSelector, useDispatch } from '../../../store/ctx.js';
|
|
8
|
+
import StepUtils from '../../../utils/StepUtils.js';
|
|
9
|
+
import { jsonParser } from '../../../utils/index.js';
|
|
10
|
+
import { SetPointCloudLoading } from '../../../store/annotation/actionCreators.js';
|
|
11
|
+
import { message } from 'antd';
|
|
12
|
+
import { useTranslation } from 'react-i18next';
|
|
13
|
+
import { useHistory } from './useHistory.js';
|
|
14
|
+
import { usePolygon } from './usePolygon.js';
|
|
15
|
+
|
|
16
|
+
var __defProp = Object.defineProperty;
|
|
17
|
+
var __defProps = Object.defineProperties;
|
|
18
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
19
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
20
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
21
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
22
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
|
|
23
|
+
var __spreadValues = (a, b) => {
|
|
24
|
+
for (var prop in b || (b = {}))
|
|
25
|
+
if (__hasOwnProp.call(b, prop))
|
|
26
|
+
__defNormalProp(a, prop, b[prop]);
|
|
27
|
+
if (__getOwnPropSymbols)
|
|
28
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
29
|
+
if (__propIsEnum.call(b, prop))
|
|
30
|
+
__defNormalProp(a, prop, b[prop]);
|
|
31
|
+
}
|
|
32
|
+
return a;
|
|
33
|
+
};
|
|
34
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
35
|
+
var __async = (__this, __arguments, generator) => {
|
|
36
|
+
return new Promise((resolve, reject) => {
|
|
37
|
+
var fulfilled = (value) => {
|
|
38
|
+
try {
|
|
39
|
+
step(generator.next(value));
|
|
40
|
+
} catch (e) {
|
|
41
|
+
reject(e);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
var rejected = (value) => {
|
|
45
|
+
try {
|
|
46
|
+
step(generator.throw(value));
|
|
47
|
+
} catch (e) {
|
|
48
|
+
reject(e);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
52
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
const DEFAULT_SCOPE = 5;
|
|
56
|
+
const DEFAULT_RADIUS = 90;
|
|
57
|
+
const PointCloudView = {
|
|
58
|
+
"3D": "3D",
|
|
59
|
+
Top: "Top",
|
|
60
|
+
Side: "Side",
|
|
61
|
+
Back: "Back"
|
|
62
|
+
};
|
|
63
|
+
const topViewPoint2PointCloud = (newPoint, size, pointCloud, selectedPointCloudSphere, defaultValue) => {
|
|
64
|
+
const {x: realX, y: realY} = PointCloudUtils.transferCanvas2World(newPoint, size);
|
|
65
|
+
const {defaultZ} = DEFAULT_SPHERE_PARAMS;
|
|
66
|
+
const newPosition = {
|
|
67
|
+
center: {
|
|
68
|
+
x: realX,
|
|
69
|
+
y: realY,
|
|
70
|
+
z: defaultZ
|
|
71
|
+
},
|
|
72
|
+
id: newPoint.id
|
|
73
|
+
};
|
|
74
|
+
const sphereParams = selectedPointCloudSphere ? __spreadValues(__spreadValues({}, selectedPointCloudSphere), newPosition) : __spreadProps(__spreadValues({}, newPosition), {
|
|
75
|
+
attribute: "",
|
|
76
|
+
valid: true
|
|
77
|
+
});
|
|
78
|
+
if (defaultValue) {
|
|
79
|
+
Object.assign(sphereParams, defaultValue);
|
|
80
|
+
}
|
|
81
|
+
return sphereParams;
|
|
82
|
+
};
|
|
83
|
+
const topViewPolygon2PointCloud = (newPolygon, size, pointCloud, selectedPointCloudBox, defaultValue, intelligentFit) => {
|
|
84
|
+
let worldPointList = newPolygon.pointList.map((v) => PointCloudUtils.transferCanvas2World(v, size));
|
|
85
|
+
let z = 0;
|
|
86
|
+
let depth = 1;
|
|
87
|
+
let extraData = {};
|
|
88
|
+
if (pointCloud) {
|
|
89
|
+
const zInfo = pointCloud.getSensesPointZAxisInPolygon(worldPointList, void 0, intelligentFit);
|
|
90
|
+
if (intelligentFit && zInfo.fittedCoordinates.length > 0) {
|
|
91
|
+
worldPointList = zInfo.fittedCoordinates;
|
|
92
|
+
}
|
|
93
|
+
z = (zInfo.maxZ + zInfo.minZ) / 2;
|
|
94
|
+
depth = zInfo.maxZ - zInfo.minZ;
|
|
95
|
+
extraData = {
|
|
96
|
+
count: zInfo.zCount
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
const [point1, point2, point3] = worldPointList;
|
|
100
|
+
const centerPoint = MathUtils.getLineCenterPoint([point1, point3]);
|
|
101
|
+
const height = MathUtils.getLineLength(point1, point2);
|
|
102
|
+
const width = MathUtils.getLineLength(point2, point3);
|
|
103
|
+
const rotation = MathUtils.getRadiusFromQuadrangle(newPolygon.pointList);
|
|
104
|
+
if (selectedPointCloudBox) {
|
|
105
|
+
z = selectedPointCloudBox.center.z;
|
|
106
|
+
depth = selectedPointCloudBox.depth;
|
|
107
|
+
}
|
|
108
|
+
const newPosition = {
|
|
109
|
+
center: {
|
|
110
|
+
x: centerPoint.x,
|
|
111
|
+
y: centerPoint.y,
|
|
112
|
+
z
|
|
113
|
+
},
|
|
114
|
+
width,
|
|
115
|
+
height,
|
|
116
|
+
depth,
|
|
117
|
+
rotation,
|
|
118
|
+
id: newPolygon.id
|
|
119
|
+
};
|
|
120
|
+
const boxParams = selectedPointCloudBox ? __spreadValues(__spreadValues(__spreadValues({}, selectedPointCloudBox), newPosition), extraData) : __spreadValues(__spreadProps(__spreadValues({}, newPosition), {
|
|
121
|
+
attribute: "",
|
|
122
|
+
valid: true
|
|
123
|
+
}), extraData);
|
|
124
|
+
if (defaultValue) {
|
|
125
|
+
Object.assign(boxParams, defaultValue);
|
|
126
|
+
}
|
|
127
|
+
const newPointList = worldPointList.map((v) => PointCloudUtils.transferWorld2Canvas(v, size));
|
|
128
|
+
return {boxParams, newPointList};
|
|
129
|
+
};
|
|
130
|
+
const sideViewPoint2PointCloud = (newPoint, originPoint, selectedSphere) => {
|
|
131
|
+
const offset = {
|
|
132
|
+
x: newPoint.x - originPoint.x,
|
|
133
|
+
y: newPoint.y - originPoint.y
|
|
134
|
+
};
|
|
135
|
+
return __spreadProps(__spreadValues({}, selectedSphere), {
|
|
136
|
+
center: {
|
|
137
|
+
x: selectedSphere.center.x - offset.x,
|
|
138
|
+
y: selectedSphere.center.y,
|
|
139
|
+
z: selectedSphere.center.z - offset.y
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
const sideViewPolygon2PointCloud = (newPolygon, originPolygon, selectedPointCloudBox, pointCloudInstance) => {
|
|
144
|
+
const [point1, point2, point3] = newPolygon.pointList;
|
|
145
|
+
const [op1, op2, op3] = originPolygon.pointList;
|
|
146
|
+
const newCenterPoint = MathUtils.getLineCenterPoint([point1, point3]);
|
|
147
|
+
const oldCenterPoint = MathUtils.getLineCenterPoint([op1, op3]);
|
|
148
|
+
const offset = {
|
|
149
|
+
x: newCenterPoint.x - oldCenterPoint.x,
|
|
150
|
+
y: newCenterPoint.y - oldCenterPoint.y
|
|
151
|
+
};
|
|
152
|
+
const offsetCenterPoint = {
|
|
153
|
+
x: offset.x,
|
|
154
|
+
y: 0,
|
|
155
|
+
z: newCenterPoint.y - oldCenterPoint.y
|
|
156
|
+
};
|
|
157
|
+
const height = MathUtils.getLineLength(point1, point2);
|
|
158
|
+
const oldHeight = MathUtils.getLineLength(op1, op2);
|
|
159
|
+
const offsetHeight = height - oldHeight;
|
|
160
|
+
const width = MathUtils.getLineLength(point2, point3);
|
|
161
|
+
const oldWidth = MathUtils.getLineLength(op2, op3);
|
|
162
|
+
const offsetWidth = width - oldWidth;
|
|
163
|
+
const {newBoxParams} = pointCloudInstance.getNewBoxBySideUpdate(offsetCenterPoint, offsetWidth, offsetHeight, selectedPointCloudBox);
|
|
164
|
+
return newBoxParams;
|
|
165
|
+
};
|
|
166
|
+
const backViewPoint2PointCloud = (newPoint, originPoint, selectedSphere) => {
|
|
167
|
+
const offset = {
|
|
168
|
+
x: newPoint.x - originPoint.x,
|
|
169
|
+
y: newPoint.y - originPoint.y
|
|
170
|
+
};
|
|
171
|
+
return __spreadProps(__spreadValues({}, selectedSphere), {
|
|
172
|
+
center: {
|
|
173
|
+
x: selectedSphere.center.x,
|
|
174
|
+
y: selectedSphere.center.y - offset.x,
|
|
175
|
+
z: selectedSphere.center.z - offset.y
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
};
|
|
179
|
+
const backViewPolygon2PointCloud = (newPolygon, originPolygon, selectedPointCloudBox, pointCloudInstance) => {
|
|
180
|
+
const [point1, point2, point3] = newPolygon.pointList;
|
|
181
|
+
const [op1, op2, op3] = originPolygon.pointList;
|
|
182
|
+
const newCenterPoint = MathUtils.getLineCenterPoint([point1, point3]);
|
|
183
|
+
const oldCenterPoint = MathUtils.getLineCenterPoint([op1, op3]);
|
|
184
|
+
const offset = {
|
|
185
|
+
x: newCenterPoint.x - oldCenterPoint.x,
|
|
186
|
+
y: newCenterPoint.y - oldCenterPoint.y
|
|
187
|
+
};
|
|
188
|
+
const offsetCenterPoint = {
|
|
189
|
+
x: offset.x,
|
|
190
|
+
y: 0,
|
|
191
|
+
z: newCenterPoint.y - oldCenterPoint.y
|
|
192
|
+
};
|
|
193
|
+
const height = MathUtils.getLineLength(point1, point2);
|
|
194
|
+
const oldHeight = MathUtils.getLineLength(op1, op2);
|
|
195
|
+
const offsetHeight = height - oldHeight;
|
|
196
|
+
const width = MathUtils.getLineLength(point2, point3);
|
|
197
|
+
const oldWidth = MathUtils.getLineLength(op2, op3);
|
|
198
|
+
const offsetWidth = width - oldWidth;
|
|
199
|
+
let {newBoxParams} = pointCloudInstance.getNewBoxByBackUpdate(offsetCenterPoint, offsetWidth, offsetHeight, selectedPointCloudBox);
|
|
200
|
+
return newBoxParams;
|
|
201
|
+
};
|
|
202
|
+
const syncSideViewByPoint = (sphereParams, newPoint, sideViewInstance, url, config) => {
|
|
203
|
+
var _a;
|
|
204
|
+
if (!sideViewInstance) {
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
const {toolInstance, pointCloudInstance} = sideViewInstance;
|
|
208
|
+
pointCloudInstance.loadPCDFile(url, (_a = config == null ? void 0 : config.radius) != null ? _a : DEFAULT_RADIUS);
|
|
209
|
+
const {cameraPositionVector} = pointCloudInstance.updateOrthoCameraBySphere(sphereParams, EPerspectiveView.Left);
|
|
210
|
+
pointCloudInstance.setInitCameraPosition(cameraPositionVector);
|
|
211
|
+
const {point2d, zoom} = pointCloudInstance.getSphereSidePoint2DCoordinate(sphereParams);
|
|
212
|
+
pointCloudInstance.camera.zoom = zoom;
|
|
213
|
+
pointCloudInstance.camera.updateProjectionMatrix();
|
|
214
|
+
pointCloudInstance.render();
|
|
215
|
+
toolInstance.initPosition();
|
|
216
|
+
toolInstance.zoomChangeOnCenter(zoom);
|
|
217
|
+
toolInstance.setResult([
|
|
218
|
+
__spreadProps(__spreadValues(__spreadValues({}, newPoint), point2d), {
|
|
219
|
+
valid: sphereParams.valid,
|
|
220
|
+
textAttribute: "",
|
|
221
|
+
attribute: sphereParams.attribute
|
|
222
|
+
})
|
|
223
|
+
]);
|
|
224
|
+
toolInstance.setSelectedID(newPoint.id);
|
|
225
|
+
};
|
|
226
|
+
const synchronizeSideView = (boxParams, newPolygon, sideViewInstance, url) => {
|
|
227
|
+
if (!sideViewInstance) {
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
const {pointCloud2dOperation, pointCloudInstance} = sideViewInstance;
|
|
231
|
+
pointCloudInstance.loadPCDFileByBox(url, boxParams, {
|
|
232
|
+
width: DEFAULT_SCOPE,
|
|
233
|
+
depth: DEFAULT_SCOPE
|
|
234
|
+
});
|
|
235
|
+
const {cameraPositionVector} = pointCloudInstance.updateOrthoCamera(boxParams, EPerspectiveView.Left);
|
|
236
|
+
pointCloudInstance.setInitCameraPosition(cameraPositionVector);
|
|
237
|
+
const {polygon2d, zoom} = pointCloudInstance.getBoxSidePolygon2DCoordinate(boxParams);
|
|
238
|
+
pointCloudInstance.camera.zoom = zoom;
|
|
239
|
+
pointCloudInstance.camera.updateProjectionMatrix();
|
|
240
|
+
pointCloudInstance.render();
|
|
241
|
+
pointCloud2dOperation.initPosition();
|
|
242
|
+
pointCloud2dOperation.zoomChangeOnCenter(zoom);
|
|
243
|
+
pointCloud2dOperation.setResultAndSelectedID([
|
|
244
|
+
{
|
|
245
|
+
id: newPolygon.id,
|
|
246
|
+
valid: boxParams.valid,
|
|
247
|
+
pointList: polygon2d,
|
|
248
|
+
textAttribute: "",
|
|
249
|
+
isRect: true,
|
|
250
|
+
attribute: boxParams.attribute
|
|
251
|
+
}
|
|
252
|
+
], newPolygon.id);
|
|
253
|
+
};
|
|
254
|
+
const syncBackViewByPoint = (sphereParams, newPoint, backViewInstance, url, config) => {
|
|
255
|
+
var _a;
|
|
256
|
+
if (!backViewInstance) {
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
const {toolInstance, pointCloudInstance} = backViewInstance;
|
|
260
|
+
pointCloudInstance.loadPCDFile(url, (_a = config == null ? void 0 : config.radius) != null ? _a : DEFAULT_RADIUS);
|
|
261
|
+
const {cameraPositionVector} = pointCloudInstance.updateOrthoCameraBySphere(sphereParams, EPerspectiveView.Back);
|
|
262
|
+
pointCloudInstance.setInitCameraPosition(cameraPositionVector);
|
|
263
|
+
const {point2d, zoom} = pointCloudInstance.getSphereBackPoint2DCoordinate(sphereParams);
|
|
264
|
+
pointCloudInstance.camera.zoom = zoom;
|
|
265
|
+
pointCloudInstance.camera.updateProjectionMatrix();
|
|
266
|
+
pointCloudInstance.render();
|
|
267
|
+
toolInstance.initPosition();
|
|
268
|
+
toolInstance.zoomChangeOnCenter(zoom);
|
|
269
|
+
toolInstance.setResult([
|
|
270
|
+
__spreadProps(__spreadValues(__spreadValues({}, newPoint), point2d), {
|
|
271
|
+
valid: sphereParams.valid,
|
|
272
|
+
textAttribute: "",
|
|
273
|
+
attribute: sphereParams.attribute
|
|
274
|
+
})
|
|
275
|
+
]);
|
|
276
|
+
toolInstance.setSelectedID(newPoint.id);
|
|
277
|
+
};
|
|
278
|
+
const synchronizeBackView = (boxParams, newPolygon, BackViewInstance, url) => {
|
|
279
|
+
if (!BackViewInstance) {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
const {
|
|
283
|
+
pointCloud2dOperation: backPointCloudPolygonOperation,
|
|
284
|
+
pointCloudInstance: backPointCloud
|
|
285
|
+
} = BackViewInstance;
|
|
286
|
+
backPointCloud.loadPCDFileByBox(url, boxParams, {height: DEFAULT_SCOPE, depth: DEFAULT_SCOPE});
|
|
287
|
+
const {cameraPositionVector} = backPointCloud.updateOrthoCamera(boxParams, EPerspectiveView.Back);
|
|
288
|
+
backPointCloud.setInitCameraPosition(cameraPositionVector);
|
|
289
|
+
const {polygon2d, zoom} = backPointCloud.getBoxBackPolygon2DCoordinate(boxParams);
|
|
290
|
+
backPointCloud.camera.zoom = zoom;
|
|
291
|
+
backPointCloud.camera.updateProjectionMatrix();
|
|
292
|
+
backPointCloud.render();
|
|
293
|
+
backPointCloudPolygonOperation.initPosition();
|
|
294
|
+
backPointCloudPolygonOperation.zoomChangeOnCenter(zoom);
|
|
295
|
+
backPointCloudPolygonOperation.setResultAndSelectedID([
|
|
296
|
+
{
|
|
297
|
+
id: newPolygon.id,
|
|
298
|
+
valid: boxParams.valid,
|
|
299
|
+
pointList: polygon2d,
|
|
300
|
+
textAttribute: "",
|
|
301
|
+
isRect: true,
|
|
302
|
+
attribute: boxParams.attribute
|
|
303
|
+
}
|
|
304
|
+
], newPolygon.id);
|
|
305
|
+
};
|
|
306
|
+
const syncTopViewByPoint = (newSphereParams, newPoint, topViewInstance, mainViewInstance) => {
|
|
307
|
+
if (!topViewInstance || !mainViewInstance) {
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
mainViewInstance.generateSphere(newSphereParams);
|
|
311
|
+
mainViewInstance.updateCameraBySphere(newSphereParams, EPerspectiveView.Top);
|
|
312
|
+
mainViewInstance.render();
|
|
313
|
+
const {toolInstance, pointCloudInstance} = topViewInstance;
|
|
314
|
+
const {point2d} = pointCloudInstance.getSphereTopPoint2DCoordinate(newSphereParams);
|
|
315
|
+
const newPointList = [...toolInstance.pointList].map((v) => v.id === newPoint.id ? __spreadProps(__spreadValues(__spreadValues({}, newPoint), point2d), {
|
|
316
|
+
valid: newSphereParams.valid,
|
|
317
|
+
textAttribute: "",
|
|
318
|
+
attribute: newSphereParams.attribute
|
|
319
|
+
}) : v);
|
|
320
|
+
toolInstance.setResult(newPointList);
|
|
321
|
+
toolInstance.setSelectedID(newPoint.id);
|
|
322
|
+
};
|
|
323
|
+
const synchronizeTopView = (newBoxParams, newPolygon, topViewInstance, mainViewInstance) => {
|
|
324
|
+
var _a;
|
|
325
|
+
if (!topViewInstance || !mainViewInstance) {
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
mainViewInstance.generateBox(newBoxParams, newPolygon.id);
|
|
329
|
+
mainViewInstance.render();
|
|
330
|
+
const {pointCloud2dOperation, pointCloudInstance} = topViewInstance;
|
|
331
|
+
const {polygon2d} = pointCloudInstance.getBoxTopPolygon2DCoordinate(newBoxParams);
|
|
332
|
+
const newPolygonList = [...pointCloud2dOperation.polygonList];
|
|
333
|
+
const oldPolygon = newPolygonList.find((v) => v.id === newPolygon.id);
|
|
334
|
+
if (oldPolygon) {
|
|
335
|
+
oldPolygon.pointList = polygon2d;
|
|
336
|
+
} else {
|
|
337
|
+
newPolygonList.push({
|
|
338
|
+
id: newPolygon.id,
|
|
339
|
+
pointList: polygon2d,
|
|
340
|
+
textAttribute: "",
|
|
341
|
+
isRect: true,
|
|
342
|
+
valid: (_a = newBoxParams.valid) != null ? _a : true
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
pointCloud2dOperation.setResultAndSelectedID(newPolygonList, newPolygon.id);
|
|
346
|
+
};
|
|
347
|
+
const usePointCloudViews = () => {
|
|
348
|
+
const ptCtx = useContext(PointCloudContext);
|
|
349
|
+
const {
|
|
350
|
+
topViewInstance,
|
|
351
|
+
sideViewInstance,
|
|
352
|
+
backViewInstance,
|
|
353
|
+
mainViewInstance,
|
|
354
|
+
addPointCloudBox,
|
|
355
|
+
addPointCloudSphere,
|
|
356
|
+
setSelectedIDs,
|
|
357
|
+
selectedIDs,
|
|
358
|
+
pointCloudBoxList,
|
|
359
|
+
pointCloudSphereList,
|
|
360
|
+
hideAttributes
|
|
361
|
+
} = ptCtx;
|
|
362
|
+
const {
|
|
363
|
+
addHistory,
|
|
364
|
+
initHistory,
|
|
365
|
+
pushHistoryUnderUpdatePolygon,
|
|
366
|
+
pushHistoryUnderUpdatePoint,
|
|
367
|
+
pushHistoryUnderUpdateLine
|
|
368
|
+
} = useHistory();
|
|
369
|
+
const {selectedPolygon} = usePolygon();
|
|
370
|
+
const {updateSelectedBox, updateSelectedBoxes, getPointCloudByID} = useSingleBox();
|
|
371
|
+
const {getPointCloudSphereByID, updatePointCloudSphere, selectedSphere} = useSphere();
|
|
372
|
+
const {currentData, config} = useSelector((state) => {
|
|
373
|
+
const {stepList, step, imgList, imgIndex} = state.annotation;
|
|
374
|
+
return {
|
|
375
|
+
currentData: imgList[imgIndex],
|
|
376
|
+
config: jsonParser(StepUtils.getCurrentStepInfo(step, stepList).config)
|
|
377
|
+
};
|
|
378
|
+
});
|
|
379
|
+
const dispatch = useDispatch();
|
|
380
|
+
const {selectedBox} = useSingleBox();
|
|
381
|
+
const {t} = useTranslation();
|
|
382
|
+
const selectedPointCloudBox = selectedBox == null ? void 0 : selectedBox.info;
|
|
383
|
+
if (!topViewInstance || !sideViewInstance || !backViewInstance) {
|
|
384
|
+
return {
|
|
385
|
+
topViewAddSphere: () => {
|
|
386
|
+
},
|
|
387
|
+
topViewAddBox: () => {
|
|
388
|
+
},
|
|
389
|
+
topViewSelectedChanged: () => {
|
|
390
|
+
},
|
|
391
|
+
sideViewUpdateBox: () => {
|
|
392
|
+
},
|
|
393
|
+
backViewUpdateBox: () => {
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
const {pointCloudInstance: topViewPointCloud} = topViewInstance;
|
|
398
|
+
const mainViewGenBox = (boxParams) => {
|
|
399
|
+
mainViewInstance == null ? void 0 : mainViewInstance.generateBox(boxParams);
|
|
400
|
+
mainViewInstance == null ? void 0 : mainViewInstance.controls.update();
|
|
401
|
+
mainViewInstance == null ? void 0 : mainViewInstance.render();
|
|
402
|
+
};
|
|
403
|
+
const mainViewGenSphere = (sphereParams) => {
|
|
404
|
+
mainViewInstance == null ? void 0 : mainViewInstance.generateSphere(sphereParams);
|
|
405
|
+
mainViewInstance == null ? void 0 : mainViewInstance.controls.update();
|
|
406
|
+
mainViewInstance == null ? void 0 : mainViewInstance.render();
|
|
407
|
+
};
|
|
408
|
+
const topViewAddSphere = ({
|
|
409
|
+
newPoint,
|
|
410
|
+
size,
|
|
411
|
+
zoom,
|
|
412
|
+
trackConfigurable
|
|
413
|
+
}) => {
|
|
414
|
+
var _a;
|
|
415
|
+
const extraData = {
|
|
416
|
+
attribute: (_a = topViewInstance.toolInstance.defaultAttribute) != null ? _a : ""
|
|
417
|
+
};
|
|
418
|
+
if (trackConfigurable === true) {
|
|
419
|
+
Object.assign(extraData, {
|
|
420
|
+
trackID: PointCloudUtils.getNextTrackID({
|
|
421
|
+
imgList: [],
|
|
422
|
+
extraBoxList: [],
|
|
423
|
+
extraSphereList: pointCloudSphereList
|
|
424
|
+
})
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
const sphereParams = topViewPoint2PointCloud(newPoint, size, topViewPointCloud, void 0, extraData);
|
|
428
|
+
setSelectedIDs(newPoint.id);
|
|
429
|
+
const newSphereList = addPointCloudSphere(sphereParams);
|
|
430
|
+
syncPointCloudPoint(PointCloudView.Top, newPoint, sphereParams, zoom, newSphereList, config);
|
|
431
|
+
};
|
|
432
|
+
const topViewAddBox = ({
|
|
433
|
+
polygon,
|
|
434
|
+
size,
|
|
435
|
+
imgList,
|
|
436
|
+
trackConfigurable,
|
|
437
|
+
zoom,
|
|
438
|
+
intelligentFit
|
|
439
|
+
}) => {
|
|
440
|
+
var _a;
|
|
441
|
+
const extraData = {
|
|
442
|
+
attribute: (_a = topViewInstance.toolInstance.defaultAttribute) != null ? _a : ""
|
|
443
|
+
};
|
|
444
|
+
if (trackConfigurable === true) {
|
|
445
|
+
Object.assign(extraData, {
|
|
446
|
+
trackID: PointCloudUtils.getNextTrackID({
|
|
447
|
+
imgList: [],
|
|
448
|
+
extraBoxList: pointCloudBoxList,
|
|
449
|
+
extraSphereList: pointCloudSphereList
|
|
450
|
+
})
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
const polygonOperation = topViewInstance == null ? void 0 : topViewInstance.toolInstance;
|
|
454
|
+
const newPolygon = __spreadValues({}, polygon);
|
|
455
|
+
const {boxParams, newPointList} = topViewPolygon2PointCloud(newPolygon, size, topViewPointCloud, void 0, extraData, intelligentFit);
|
|
456
|
+
if ((config == null ? void 0 : config.lowerLimitPointsNumInBox) && typeof boxParams.count === "number" && boxParams.count < config.lowerLimitPointsNumInBox) {
|
|
457
|
+
message.info(t("LowerLimitPointsNumInBox", {num: config.lowerLimitPointsNumInBox}));
|
|
458
|
+
polygonOperation.deletePolygon(boxParams.id);
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
if (intelligentFit && (newPointList == null ? void 0 : newPointList.length)) {
|
|
462
|
+
newPolygon.pointList = newPointList;
|
|
463
|
+
}
|
|
464
|
+
const isBoxHidden = hideAttributes.includes(newPolygon.attribute);
|
|
465
|
+
const newPointCloudList = addPointCloudBox(boxParams);
|
|
466
|
+
if (isBoxHidden) {
|
|
467
|
+
setSelectedIDs([]);
|
|
468
|
+
} else {
|
|
469
|
+
setSelectedIDs(boxParams.id);
|
|
470
|
+
polygonOperation.setSelectedIDs([newPolygon.id]);
|
|
471
|
+
syncPointCloudViews(PointCloudView.Top, newPolygon, boxParams, zoom, newPointCloudList);
|
|
472
|
+
if (intelligentFit) {
|
|
473
|
+
synchronizeTopView(boxParams, newPolygon, topViewInstance, mainViewInstance);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
addHistory({newBoxParams: boxParams});
|
|
477
|
+
};
|
|
478
|
+
const topViewSelectedChanged = ({
|
|
479
|
+
newSelectedBox,
|
|
480
|
+
newPointCloudList,
|
|
481
|
+
newSelectedSphere,
|
|
482
|
+
newSphereList
|
|
483
|
+
}) => {
|
|
484
|
+
const operation = topViewInstance == null ? void 0 : topViewInstance.toolInstance;
|
|
485
|
+
if (selectedIDs.length === 0 || !operation) {
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
if (newSelectedBox || (selectedBox == null ? void 0 : selectedBox.info)) {
|
|
489
|
+
const boxParams = newSelectedBox != null ? newSelectedBox : selectedBox == null ? void 0 : selectedBox.info;
|
|
490
|
+
operation.setSelectedIDs(selectedIDs);
|
|
491
|
+
const polygon = operation.selectedPolygon;
|
|
492
|
+
if (selectedIDs.length === 1 && boxParams) {
|
|
493
|
+
syncPointCloudViews(PointCloudView.Top, polygon, boxParams, void 0, newPointCloudList);
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
if (newSelectedSphere || selectedSphere) {
|
|
498
|
+
if (selectedIDs.length === 1) {
|
|
499
|
+
const sphereParams = newSelectedSphere != null ? newSelectedSphere : selectedSphere;
|
|
500
|
+
operation.setSelectedID(selectedIDs[0]);
|
|
501
|
+
const point = operation.selectedPoint;
|
|
502
|
+
if (sphereParams) {
|
|
503
|
+
syncPointCloudPoint(PointCloudView.Top, point, sphereParams, void 0, newSphereList, config);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
};
|
|
508
|
+
const viewUpdateBox = (newPolygon, originPolygon, fromView) => {
|
|
509
|
+
if (selectedPointCloudBox) {
|
|
510
|
+
let transfer2PointCloud;
|
|
511
|
+
let newBoxParams;
|
|
512
|
+
switch (fromView) {
|
|
513
|
+
case PointCloudView.Back:
|
|
514
|
+
transfer2PointCloud = backViewPolygon2PointCloud;
|
|
515
|
+
break;
|
|
516
|
+
case PointCloudView.Side:
|
|
517
|
+
transfer2PointCloud = sideViewPolygon2PointCloud;
|
|
518
|
+
break;
|
|
519
|
+
default:
|
|
520
|
+
transfer2PointCloud = sideViewPolygon2PointCloud;
|
|
521
|
+
break;
|
|
522
|
+
}
|
|
523
|
+
newBoxParams = transfer2PointCloud(newPolygon, originPolygon, selectedPointCloudBox, sideViewInstance.pointCloudInstance);
|
|
524
|
+
if (mainViewInstance) {
|
|
525
|
+
const {count} = mainViewInstance.getSensesPointZAxisInPolygon(getCuboidFromPointCloudBox(newBoxParams).polygonPointList, [
|
|
526
|
+
newBoxParams.center.z - newBoxParams.depth / 2,
|
|
527
|
+
newBoxParams.center.z + newBoxParams.depth / 2
|
|
528
|
+
]);
|
|
529
|
+
newBoxParams = __spreadProps(__spreadValues({}, newBoxParams), {
|
|
530
|
+
count
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
const newPointCloudList = updateSelectedBox(newBoxParams);
|
|
534
|
+
syncPointCloudViews(fromView, newPolygon, newBoxParams, void 0, newPointCloudList);
|
|
535
|
+
return newPointCloudList;
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
const viewUpdatePoint = (newPoint, originPoint, fromView) => {
|
|
539
|
+
if (selectedSphere) {
|
|
540
|
+
let transfer2PointCloud;
|
|
541
|
+
let newSphereParams;
|
|
542
|
+
switch (fromView) {
|
|
543
|
+
case PointCloudView.Back:
|
|
544
|
+
transfer2PointCloud = backViewPoint2PointCloud;
|
|
545
|
+
break;
|
|
546
|
+
case PointCloudView.Side:
|
|
547
|
+
transfer2PointCloud = sideViewPoint2PointCloud;
|
|
548
|
+
break;
|
|
549
|
+
default:
|
|
550
|
+
transfer2PointCloud = sideViewPoint2PointCloud;
|
|
551
|
+
break;
|
|
552
|
+
}
|
|
553
|
+
newSphereParams = transfer2PointCloud(newPoint, originPoint, selectedSphere);
|
|
554
|
+
const newSphereList = updatePointCloudSphere(newSphereParams);
|
|
555
|
+
syncPointCloudPoint(fromView, newPoint, newSphereParams, void 0, newSphereList, config);
|
|
556
|
+
return newSphereList;
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
const sideViewUpdatePoint = (newPoint, originPoint) => {
|
|
560
|
+
viewUpdatePoint(newPoint, originPoint, PointCloudView.Side);
|
|
561
|
+
};
|
|
562
|
+
const backViewUpdatePoint = (newPoint, originPoint) => {
|
|
563
|
+
viewUpdatePoint(newPoint, originPoint, PointCloudView.Back);
|
|
564
|
+
};
|
|
565
|
+
const sideViewUpdateBox = (newPolygon, originPolygon) => {
|
|
566
|
+
viewUpdateBox(newPolygon, originPolygon, PointCloudView.Side);
|
|
567
|
+
};
|
|
568
|
+
const backViewUpdateBox = (newPolygon, originPolygon) => {
|
|
569
|
+
viewUpdateBox(newPolygon, originPolygon, PointCloudView.Back);
|
|
570
|
+
};
|
|
571
|
+
const topViewUpdateLine = (updateList, size) => {
|
|
572
|
+
pushHistoryUnderUpdateLine(updateList);
|
|
573
|
+
return;
|
|
574
|
+
};
|
|
575
|
+
const topViewUpdatePoint = (updatePoint, size) => {
|
|
576
|
+
const {x: realX, y: realY} = PointCloudUtils.transferCanvas2World(updatePoint, size);
|
|
577
|
+
pushHistoryUnderUpdatePoint(__spreadProps(__spreadValues({}, updatePoint), {x: realX, y: realY}));
|
|
578
|
+
const pointCloudSphere = getPointCloudSphereByID(updatePoint.id);
|
|
579
|
+
const newSphereParams = topViewPoint2PointCloud(updatePoint, size, topViewPointCloud, pointCloudSphere);
|
|
580
|
+
const newPointCloudSphereList = updatePointCloudSphere(newSphereParams);
|
|
581
|
+
syncPointCloudPoint(PointCloudView.Top, updatePoint, newSphereParams, void 0, newPointCloudSphereList, config);
|
|
582
|
+
};
|
|
583
|
+
const topViewUpdateBox = (updateList, size) => {
|
|
584
|
+
if (selectedPolygon) {
|
|
585
|
+
const polygon = updateList[0].newPolygon;
|
|
586
|
+
polygon.pointList = polygon.pointList.map((v) => PointCloudUtils.transferCanvas2World(v, size));
|
|
587
|
+
pushHistoryUnderUpdatePolygon(updateList[0].newPolygon);
|
|
588
|
+
return;
|
|
589
|
+
}
|
|
590
|
+
const updatePointCloudList = updateList.map(({newPolygon: polygon}) => {
|
|
591
|
+
const pointCloudBox = getPointCloudByID(polygon.id);
|
|
592
|
+
const {boxParams} = topViewPolygon2PointCloud(polygon, size, topViewInstance.pointCloudInstance, pointCloudBox);
|
|
593
|
+
return boxParams;
|
|
594
|
+
});
|
|
595
|
+
if (updatePointCloudList.length === 1) {
|
|
596
|
+
const {newPolygon: polygon} = updateList[0];
|
|
597
|
+
const newPointCloudBoxList = updateSelectedBoxes(updatePointCloudList);
|
|
598
|
+
syncPointCloudViews(PointCloudView.Top, polygon, updatePointCloudList[0], void 0, newPointCloudBoxList);
|
|
599
|
+
} else {
|
|
600
|
+
const newPointCloudBoxList = updateSelectedBoxes(updatePointCloudList);
|
|
601
|
+
if (newPointCloudBoxList) {
|
|
602
|
+
ptCtx.syncAllViewPointCloudColor(newPointCloudBoxList);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
const syncPointCloudPoint = (omitView, point, sphereParams, zoom, newPointCloudSphereList, config2) => __async(undefined, null, function* () {
|
|
607
|
+
const dataUrl = currentData == null ? void 0 : currentData.url;
|
|
608
|
+
const viewToBeUpdated = {
|
|
609
|
+
[PointCloudView.Side]: () => {
|
|
610
|
+
syncSideViewByPoint(sphereParams, point, sideViewInstance, dataUrl, config2);
|
|
611
|
+
},
|
|
612
|
+
[PointCloudView.Back]: () => {
|
|
613
|
+
if (backViewInstance) {
|
|
614
|
+
syncBackViewByPoint(sphereParams, point, backViewInstance, dataUrl, config2);
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
[PointCloudView.Top]: () => {
|
|
618
|
+
syncTopViewByPoint(sphereParams, point, topViewInstance, mainViewInstance);
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
Object.keys(viewToBeUpdated).forEach((key) => {
|
|
622
|
+
if (key !== omitView) {
|
|
623
|
+
viewToBeUpdated[key]();
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
if (zoom) {
|
|
627
|
+
mainViewInstance == null ? void 0 : mainViewInstance.updateCameraZoom(zoom);
|
|
628
|
+
}
|
|
629
|
+
mainViewGenSphere(sphereParams);
|
|
630
|
+
});
|
|
631
|
+
const syncPointCloudViews = (omitView, polygon, boxParams, zoom, newPointCloudBoxList) => __async(undefined, null, function* () {
|
|
632
|
+
const dataUrl = currentData == null ? void 0 : currentData.url;
|
|
633
|
+
if (newPointCloudBoxList) {
|
|
634
|
+
yield ptCtx.syncAllViewPointCloudColor(newPointCloudBoxList);
|
|
635
|
+
}
|
|
636
|
+
const viewToBeUpdated = {
|
|
637
|
+
[PointCloudView.Side]: () => {
|
|
638
|
+
synchronizeSideView(boxParams, polygon, sideViewInstance, dataUrl);
|
|
639
|
+
},
|
|
640
|
+
[PointCloudView.Back]: () => {
|
|
641
|
+
if (backViewInstance) {
|
|
642
|
+
synchronizeBackView(boxParams, polygon, backViewInstance, dataUrl);
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
[PointCloudView.Top]: () => {
|
|
646
|
+
synchronizeTopView(boxParams, polygon, topViewInstance, mainViewInstance);
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
Object.keys(viewToBeUpdated).forEach((key) => {
|
|
650
|
+
if (key !== omitView) {
|
|
651
|
+
viewToBeUpdated[key]();
|
|
652
|
+
}
|
|
653
|
+
});
|
|
654
|
+
if (zoom) {
|
|
655
|
+
mainViewInstance == null ? void 0 : mainViewInstance.updateCameraZoom(zoom);
|
|
656
|
+
}
|
|
657
|
+
mainViewGenBox(boxParams);
|
|
658
|
+
});
|
|
659
|
+
const pointCloudBoxListUpdated = (newBoxes) => {
|
|
660
|
+
topViewInstance.updatePolygonList(newBoxes);
|
|
661
|
+
mainViewInstance == null ? void 0 : mainViewInstance.generateBoxes(newBoxes);
|
|
662
|
+
};
|
|
663
|
+
const initPointCloud3d = (size) => {
|
|
664
|
+
if (!mainViewInstance) {
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
const orthographicParams = {
|
|
668
|
+
left: -size.width / 2,
|
|
669
|
+
right: size.width / 2,
|
|
670
|
+
top: size.height / 2,
|
|
671
|
+
bottom: -size.height / 2,
|
|
672
|
+
near: 100,
|
|
673
|
+
far: -100
|
|
674
|
+
};
|
|
675
|
+
mainViewInstance.initOrthographicCamera(orthographicParams);
|
|
676
|
+
mainViewInstance.initRenderer();
|
|
677
|
+
mainViewInstance.render();
|
|
678
|
+
};
|
|
679
|
+
const updatePointCloudData = (..._0) => __async(undefined, [..._0], function* (newData = currentData) {
|
|
680
|
+
var _a, _b, _c, _d, _e, _f;
|
|
681
|
+
if (!(newData == null ? void 0 : newData.url) || !mainViewInstance) {
|
|
682
|
+
return;
|
|
683
|
+
}
|
|
684
|
+
SetPointCloudLoading(dispatch, true);
|
|
685
|
+
yield mainViewInstance.loadPCDFile(newData.url, (_a = config == null ? void 0 : config.radius) != null ? _a : DEFAULT_RADIUS);
|
|
686
|
+
pointCloudBoxList.forEach((v) => {
|
|
687
|
+
mainViewInstance == null ? void 0 : mainViewInstance.removeObjectByName(v.id);
|
|
688
|
+
});
|
|
689
|
+
pointCloudSphereList.forEach((v) => {
|
|
690
|
+
mainViewInstance == null ? void 0 : mainViewInstance.removeObjectByName(v.id);
|
|
691
|
+
});
|
|
692
|
+
let boxParamsList = [];
|
|
693
|
+
let lineList = [];
|
|
694
|
+
let polygonList = [];
|
|
695
|
+
let sphereParamsList = [];
|
|
696
|
+
if (currentData.result) {
|
|
697
|
+
boxParamsList = PointCloudUtils.getBoxParamsFromResultList(currentData.result);
|
|
698
|
+
polygonList = PointCloudUtils.getPolygonListFromResultList(currentData.result);
|
|
699
|
+
lineList = PointCloudUtils.getLineListFromResultList(currentData.result);
|
|
700
|
+
sphereParamsList = PointCloudUtils.getSphereParamsFromResultList(currentData.result);
|
|
701
|
+
boxParamsList.forEach((v) => {
|
|
702
|
+
mainViewInstance == null ? void 0 : mainViewInstance.generateBox(v);
|
|
703
|
+
});
|
|
704
|
+
sphereParamsList.forEach((v) => {
|
|
705
|
+
mainViewInstance == null ? void 0 : mainViewInstance.generateSphere(v);
|
|
706
|
+
});
|
|
707
|
+
ptCtx.syncAllViewPointCloudColor(boxParamsList);
|
|
708
|
+
ptCtx.setPointCloudResult(boxParamsList);
|
|
709
|
+
ptCtx.setPolygonList(polygonList);
|
|
710
|
+
ptCtx.setLineList(lineList);
|
|
711
|
+
ptCtx.setPointCloudSphereList(sphereParamsList);
|
|
712
|
+
} else {
|
|
713
|
+
ptCtx.setPointCloudResult([]);
|
|
714
|
+
ptCtx.setPolygonList([]);
|
|
715
|
+
ptCtx.setPointCloudSphereList([]);
|
|
716
|
+
ptCtx.setLineList([]);
|
|
717
|
+
}
|
|
718
|
+
initHistory({pointCloudBoxList: boxParamsList, polygonList});
|
|
719
|
+
mainViewInstance.updateTopCamera();
|
|
720
|
+
const valid = (_c = (_b = jsonParser(newData.result)) == null ? void 0 : _b.valid) != null ? _c : true;
|
|
721
|
+
ptCtx.setPointCloudValid(valid);
|
|
722
|
+
(_d = ptCtx.sideViewInstance) == null ? void 0 : _d.clearAllData();
|
|
723
|
+
(_e = ptCtx.backViewInstance) == null ? void 0 : _e.clearAllData();
|
|
724
|
+
topViewInstance.updateData(newData.url, newData.result, {
|
|
725
|
+
radius: (_f = config == null ? void 0 : config.radius) != null ? _f : DEFAULT_RADIUS
|
|
726
|
+
});
|
|
727
|
+
SetPointCloudLoading(dispatch, false);
|
|
728
|
+
});
|
|
729
|
+
return {
|
|
730
|
+
topViewAddSphere,
|
|
731
|
+
topViewAddBox,
|
|
732
|
+
topViewSelectedChanged,
|
|
733
|
+
topViewUpdatePoint,
|
|
734
|
+
sideViewUpdatePoint,
|
|
735
|
+
backViewUpdatePoint,
|
|
736
|
+
topViewUpdateBox,
|
|
737
|
+
topViewUpdateLine,
|
|
738
|
+
sideViewUpdateBox,
|
|
739
|
+
backViewUpdateBox,
|
|
740
|
+
pointCloudBoxListUpdated,
|
|
741
|
+
initPointCloud3d,
|
|
742
|
+
updatePointCloudData
|
|
743
|
+
};
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
export { syncBackViewByPoint, syncSideViewByPoint, syncTopViewByPoint, synchronizeBackView, synchronizeSideView, synchronizeTopView, topViewPoint2PointCloud, topViewPolygon2PointCloud, usePointCloudViews };
|
|
747
|
+
//# sourceMappingURL=usePointCloudViews.js.map
|