@labelbee/lb-components 1.22.0-beta.5 → 1.23.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/annotation/LLMTool/empty.svg.js +1 -1
- package/dist/assets/annotation/LLMTool/imgFail_cn.svg.js +1 -1
- package/dist/assets/annotation/LLMTool/imgFail_en.svg.js +1 -1
- package/dist/assets/annotation/LLMTool/loading.svg.js +1 -1
- package/dist/assets/annotation/audio/clip.svg.js +1 -1
- package/dist/assets/annotation/audio/clipA.svg.js +1 -1
- package/dist/assets/annotation/audio/clipASmall.svg.js +1 -1
- package/dist/assets/annotation/audio/clipSmall.svg.js +1 -1
- package/dist/assets/annotation/audio/delete.svg.js +1 -1
- package/dist/assets/annotation/audio/loop.svg.js +1 -1
- package/dist/assets/annotation/audio/loopA.svg.js +1 -1
- package/dist/assets/annotation/audio/progressDot.svg.js +1 -1
- package/dist/assets/annotation/audio/progressDotA.svg.js +1 -1
- package/dist/assets/annotation/audio/tag.svg.js +1 -1
- package/dist/assets/annotation/audio/tagA.svg.js +1 -1
- package/dist/assets/annotation/common/icon_adapt.svg.js +1 -1
- package/dist/assets/annotation/common/icon_adapt_black.svg.js +1 -1
- package/dist/assets/annotation/common/icon_back.svg.js +1 -1
- package/dist/assets/annotation/common/icon_backA.svg.js +1 -1
- package/dist/assets/annotation/common/icon_clear.svg.js +1 -1
- package/dist/assets/annotation/common/icon_clearSmall.svg.js +1 -1
- package/dist/assets/annotation/common/icon_clearSmall_a.svg.js +1 -1
- package/dist/assets/annotation/common/icon_clear_a.svg.js +1 -1
- package/dist/assets/annotation/common/icon_esc.svg.js +1 -1
- package/dist/assets/annotation/common/icon_invalid.svg.js +1 -1
- package/dist/assets/annotation/common/icon_invalid_a.svg.js +1 -1
- package/dist/assets/annotation/common/icon_left_squareOutlined.svg.js +1 -1
- package/dist/assets/annotation/common/icon_menu_fold.svg.js +1 -1
- package/dist/assets/annotation/common/icon_next.svg.js +1 -1
- package/dist/assets/annotation/common/icon_nextA.svg.js +1 -1
- package/dist/assets/annotation/common/icon_r.svg.js +1 -1
- package/dist/assets/annotation/common/icon_rA.svg.js +1 -1
- package/dist/assets/annotation/common/icon_right_squareOutlined.svg.js +1 -1
- package/dist/assets/annotation/common/icon_save.svg.js +1 -1
- package/dist/assets/annotation/common/icon_saveA.svg.js +1 -1
- package/dist/assets/annotation/image/brightness.svg.js +1 -1
- package/dist/assets/annotation/image/contrast.svg.js +1 -1
- package/dist/assets/annotation/image/icon_yuantu.svg.js +1 -1
- package/dist/assets/annotation/image/saturation.svg.js +1 -1
- package/dist/assets/annotation/lineTool/icon_line.svg.js +1 -1
- package/dist/assets/annotation/lineTool/icon_line_a.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/addSvg.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/cancel.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/circleSelector.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/circleSelector_a.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/clearSvg.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/copy.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/coverMode.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/finish.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/highlight.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/highlight_a.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/lassoSelector.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/lassoSelector_a.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/leftArrow.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/nextBox.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/nodata.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/patse.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/prevBox.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/rightArrow.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/selectAll.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/unCoverMode.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +1 -1
- package/dist/assets/annotation/pointTool/icon_point.svg.js +1 -1
- package/dist/assets/annotation/pointTool/icon_point_a.svg.js +1 -1
- package/dist/assets/annotation/polygonTool/icon_polygon.svg.js +1 -1
- package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js +1 -1
- package/dist/assets/annotation/rectTool/icon_rect.svg.js +1 -1
- package/dist/assets/annotation/rectTool/icon_rect_a.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/deleteRemark.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_down.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_eraser.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_eyeLock_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_line_static.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonCut_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_scribble.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_strokeEnlarge.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_strokeReduction.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_up.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/nextRemark.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/preRemark.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js +1 -1
- package/dist/assets/annotation/video/icon_clip.svg.js +1 -1
- package/dist/assets/annotation/video/icon_keyboard_h.svg.js +1 -1
- package/dist/assets/annotation/video/icon_timePoint.svg.js +1 -1
- package/dist/assets/annotation/video/icon_videoCut.svg.js +1 -1
- package/dist/assets/annotation/video/icon_videoCutting.svg.js +1 -1
- package/dist/assets/attributeIcon/eraser.svg.js +1 -1
- package/dist/assets/attributeIcon/eraser_a.svg.js +1 -1
- package/dist/assets/attributeIcon/icon_eyeLock_a.svg.js +1 -1
- package/dist/assets/attributeIcon/icon_eyeLock_h.svg.js +1 -1
- package/dist/assets/attributeIcon/pen.svg.js +1 -1
- package/dist/assets/attributeIcon/pen_a.svg.js +1 -1
- package/dist/assets/attributeIcon/zoomUp.svg.js +1 -1
- package/dist/assets/predictTracking/icon.svg.js +1 -1
- package/dist/assets/toolStyle/icon_border.svg.js +1 -1
- package/dist/assets/toolStyle/icon_borderColor.svg.js +1 -1
- package/dist/assets/toolStyle/icon_defaultSize.svg.js +1 -1
- package/dist/assets/toolStyle/icon_opacityFill.svg.js +1 -1
- package/dist/assets/toolStyle/icon_opacityStroke.svg.js +1 -1
- package/dist/components/LLMToolView/index.js +1 -1
- package/dist/components/LLMToolView/questionView/components/header/index.js +1 -1
- package/dist/components/LLMToolView/sidebar/components/answerList/index.js +1 -1
- package/dist/components/LLMToolView/sidebar/components/answerSort/index.js +1 -1
- package/dist/components/LLMToolView/sidebar/components/determineGroup/index.js +1 -1
- package/dist/components/LLMToolView/sidebar/components/scoreGroupButton/index.js +1 -1
- package/dist/components/LLMToolView/sidebar/components/textEditor/index.js +1 -1
- package/dist/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
- package/dist/components/LLMToolView/sidebar/index.js +1 -1
- package/dist/components/LLMToolView/utils/data.js +1 -1
- package/dist/components/NLPToolView/index.js +1 -1
- package/dist/components/NLPToolView/textContent/extraMask.js +1 -0
- package/dist/components/NLPToolView/textContent/index.js +1 -1
- package/dist/components/messageMaskLayer/index.js +1 -0
- package/dist/components/pointCloudView/PointCloudContext.js +1 -1
- package/dist/components/pointCloudView/PointCloudTopView.js +1 -1
- package/dist/components/tagList/components/overall/index.js +1 -0
- package/dist/components/tagList/components/portion/index.js +1 -0
- package/dist/components/tagList/index.js +1 -0
- package/dist/components/tagList/index.module.scss.js +1 -0
- package/dist/constant/index.js +1 -1
- package/dist/index.css +70 -2
- package/dist/index.js +1 -1
- package/dist/store/annotatedBox/index.js +1 -0
- package/dist/types/components/LLMToolView/index.d.ts +2 -0
- package/dist/types/components/LLMToolView/sidebar/components/answerList/index.d.ts +3 -10
- package/dist/types/components/LLMToolView/sidebar/components/answerSort/index.d.ts +1 -1
- package/dist/types/components/LLMToolView/sidebar/components/determineGroup/index.d.ts +1 -1
- package/dist/types/components/LLMToolView/sidebar/components/scoreGroupButton/index.d.ts +1 -1
- package/dist/types/components/LLMToolView/sidebar/components/textEditor/index.d.ts +1 -1
- package/dist/types/components/LLMToolView/sidebar/components/textInputBox/index.d.ts +1 -1
- package/dist/types/components/LLMToolView/sidebar/index.d.ts +1 -3
- package/dist/types/components/LLMToolView/types.d.ts +27 -0
- package/dist/types/components/LLMToolView/utils/data.d.ts +14 -0
- package/dist/types/components/NLPToolView/index.d.ts +5 -4
- package/dist/types/components/NLPToolView/textContent/extraMask.d.ts +12 -0
- package/dist/types/components/NLPToolView/textContent/index.d.ts +6 -8
- package/dist/types/components/NLPToolView/types.d.ts +18 -11
- package/dist/types/components/messageMaskLayer/index.d.ts +11 -0
- package/dist/types/components/pointCloudView/PointCloudContext.d.ts +3 -0
- package/dist/types/components/tagList/components/overall/index.d.ts +4 -0
- package/dist/types/components/tagList/components/portion/index.d.ts +4 -0
- package/dist/types/components/tagList/index.d.ts +4 -0
- package/dist/types/components/tagList/types.d.ts +23 -0
- package/dist/types/constant/index.d.ts +0 -4
- package/dist/types/index.d.ts +3 -1
- package/dist/types/store/annotatedBox/index.d.ts +14 -0
- package/dist/types/views/MainView/NLPLayout/index.d.ts +5 -3
- package/dist/types/views/MainView/sidebar/NLPSidebar/indicatorDetermine.d.ts +1 -1
- package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.d.ts +9 -0
- package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/arrow.d.ts +8 -0
- package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.d.ts +11 -0
- package/dist/types/views/MainView/sidebar/SwitchAttributeList/index.d.ts +0 -1
- package/dist/utils/audio.js +1 -1
- package/dist/views/MainView/LLMLayout/index.js +1 -1
- package/dist/views/MainView/NLPLayout/index.js +1 -1
- package/dist/views/MainView/sidebar/AnnotationText/index.js +1 -1
- package/dist/views/MainView/sidebar/NLPSidebar/index.js +1 -1
- package/dist/views/MainView/sidebar/NLPSidebar/indicatorDetermine.js +1 -1
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.js +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.module.scss.js +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/arrow.js +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.js +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.module.scss.js +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
- package/dist/views/MainView/sidebar/SwitchAttributeList/index.js +1 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/LLM/index.js +1 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +1 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +1 -1
- package/es/App.js +1 -1
- package/es/assets/annotation/LLMTool/empty.svg.js +1 -1
- package/es/assets/annotation/LLMTool/imgFail_cn.svg.js +1 -1
- package/es/assets/annotation/LLMTool/imgFail_en.svg.js +1 -1
- package/es/assets/annotation/LLMTool/loading.svg.js +1 -1
- package/es/assets/annotation/audio/clip.svg.js +1 -1
- package/es/assets/annotation/audio/clipA.svg.js +1 -1
- package/es/assets/annotation/audio/clipASmall.svg.js +1 -1
- package/es/assets/annotation/audio/clipSmall.svg.js +1 -1
- package/es/assets/annotation/audio/delete.svg.js +1 -1
- package/es/assets/annotation/audio/loop.svg.js +1 -1
- package/es/assets/annotation/audio/loopA.svg.js +1 -1
- package/es/assets/annotation/audio/progressDot.svg.js +1 -1
- package/es/assets/annotation/audio/progressDotA.svg.js +1 -1
- package/es/assets/annotation/audio/tag.svg.js +1 -1
- package/es/assets/annotation/audio/tagA.svg.js +1 -1
- package/es/assets/annotation/common/icon_adapt.svg.js +1 -1
- package/es/assets/annotation/common/icon_adapt_black.svg.js +1 -1
- package/es/assets/annotation/common/icon_back.svg.js +1 -1
- package/es/assets/annotation/common/icon_backA.svg.js +1 -1
- package/es/assets/annotation/common/icon_clear.svg.js +1 -1
- package/es/assets/annotation/common/icon_clearSmall.svg.js +1 -1
- package/es/assets/annotation/common/icon_clearSmall_a.svg.js +1 -1
- package/es/assets/annotation/common/icon_clear_a.svg.js +1 -1
- package/es/assets/annotation/common/icon_esc.svg.js +1 -1
- package/es/assets/annotation/common/icon_invalid.svg.js +1 -1
- package/es/assets/annotation/common/icon_invalid_a.svg.js +1 -1
- package/es/assets/annotation/common/icon_left_squareOutlined.svg.js +1 -1
- package/es/assets/annotation/common/icon_menu_fold.svg.js +1 -1
- package/es/assets/annotation/common/icon_next.svg.js +1 -1
- package/es/assets/annotation/common/icon_nextA.svg.js +1 -1
- package/es/assets/annotation/common/icon_r.svg.js +1 -1
- package/es/assets/annotation/common/icon_rA.svg.js +1 -1
- package/es/assets/annotation/common/icon_right_squareOutlined.svg.js +1 -1
- package/es/assets/annotation/common/icon_save.svg.js +1 -1
- package/es/assets/annotation/common/icon_saveA.svg.js +1 -1
- package/es/assets/annotation/image/brightness.svg.js +1 -1
- package/es/assets/annotation/image/contrast.svg.js +1 -1
- package/es/assets/annotation/image/icon_yuantu.svg.js +1 -1
- package/es/assets/annotation/image/saturation.svg.js +1 -1
- package/es/assets/annotation/lineTool/icon_line.svg.js +1 -1
- package/es/assets/annotation/lineTool/icon_line_a.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/addSvg.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/cancel.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/circleSelector.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/circleSelector_a.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/clearSvg.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/copy.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/coverMode.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/finish.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/highlight.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/highlight_a.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/lassoSelector.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/lassoSelector_a.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/leftArrow.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/nextBox.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/nodata.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/patse.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/prevBox.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/rightArrow.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/selectAll.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/unCoverMode.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +1 -1
- package/es/assets/annotation/pointTool/icon_point.svg.js +1 -1
- package/es/assets/annotation/pointTool/icon_point_a.svg.js +1 -1
- package/es/assets/annotation/polygonTool/icon_polygon.svg.js +1 -1
- package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js +1 -1
- package/es/assets/annotation/rectTool/icon_rect.svg.js +1 -1
- package/es/assets/annotation/rectTool/icon_rect_a.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/deleteRemark.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_down.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_eraser.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_eyeLock_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_line_static.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonCut_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_scribble.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_strokeEnlarge.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_strokeReduction.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_up.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/nextRemark.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/preRemark.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js +1 -1
- package/es/assets/annotation/video/icon_clip.svg.js +1 -1
- package/es/assets/annotation/video/icon_keyboard_h.svg.js +1 -1
- package/es/assets/annotation/video/icon_timePoint.svg.js +1 -1
- package/es/assets/annotation/video/icon_videoCut.svg.js +1 -1
- package/es/assets/annotation/video/icon_videoCutting.svg.js +1 -1
- package/es/assets/attributeIcon/eraser.svg.js +1 -1
- package/es/assets/attributeIcon/eraser_a.svg.js +1 -1
- package/es/assets/attributeIcon/icon_eyeLock_a.svg.js +1 -1
- package/es/assets/attributeIcon/icon_eyeLock_h.svg.js +1 -1
- package/es/assets/attributeIcon/pen.svg.js +1 -1
- package/es/assets/attributeIcon/pen_a.svg.js +1 -1
- package/es/assets/attributeIcon/zoomUp.svg.js +1 -1
- package/es/assets/predictTracking/icon.svg.js +1 -1
- package/es/assets/toolStyle/icon_border.svg.js +1 -1
- package/es/assets/toolStyle/icon_borderColor.svg.js +1 -1
- package/es/assets/toolStyle/icon_defaultSize.svg.js +1 -1
- package/es/assets/toolStyle/icon_opacityFill.svg.js +1 -1
- package/es/assets/toolStyle/icon_opacityStroke.svg.js +1 -1
- package/es/components/LLMToolView/index.js +1 -1
- package/es/components/LLMToolView/modelAPIView/index.js +1 -1
- package/es/components/LLMToolView/questionView/components/header/index.js +1 -1
- package/es/components/LLMToolView/questionView/components/imgView/index.js +1 -1
- package/es/components/LLMToolView/questionView/index.js +1 -1
- package/es/components/LLMToolView/sidebar/components/answerList/index.js +1 -1
- package/es/components/LLMToolView/sidebar/components/answerSort/index.js +1 -1
- package/es/components/LLMToolView/sidebar/components/determineGroup/index.js +1 -1
- package/es/components/LLMToolView/sidebar/components/scoreGroupButton/index.js +1 -1
- package/es/components/LLMToolView/sidebar/components/textEditor/index.js +2 -2
- package/es/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
- package/es/components/LLMToolView/sidebar/index.js +1 -1
- package/es/components/LLMToolView/utils/data.js +1 -1
- package/es/components/NLPToolView/index.js +1 -1
- package/es/components/NLPToolView/textContent/extraMask.js +1 -0
- package/es/components/NLPToolView/textContent/index.js +1 -1
- package/es/components/attributeList/components/limitPopover/index.js +1 -1
- package/es/components/audioAnnotate/audioContext/index.js +1 -1
- package/es/components/audioAnnotate/audioSide/LabelDetailPopover/index.js +1 -1
- package/es/components/audioAnnotate/audioSide/clipSidebar/index.js +1 -1
- package/es/components/audioAnnotate/audioSide/labelSidebar/index.js +1 -1
- package/es/components/audioAnnotate/tagResultShow/index.js +1 -1
- package/es/components/audioPlayer/clipRegion/index.js +1 -1
- package/es/components/audioPlayer/clipTip/index.js +1 -1
- package/es/components/audioPlayer/combineTip/index.js +1 -1
- package/es/components/audioPlayer/progressDot/index.js +1 -1
- package/es/components/audioPlayer/zoomSlider/index.js +1 -1
- package/es/components/checkboxList/index.js +1 -1
- package/es/components/colorPalette/index.js +1 -1
- package/es/components/customAntd/IconWithText/index.js +1 -1
- package/es/components/diffMatchPatchComponent/index.js +2 -2
- package/es/components/fileException/FileError.js +1 -1
- package/es/components/fileException/FileInvalid.js +1 -1
- package/es/components/fileException/index.js +1 -1
- package/es/components/invalidPage/index.js +1 -1
- package/es/components/latexEditor/index.js +1 -1
- package/es/components/markdownView/index.js +1 -1
- package/es/components/measureCanvas/index.js +1 -1
- package/es/components/messageMaskLayer/index.js +1 -0
- package/es/components/pointCloud2DRectOperationView/index.js +1 -1
- package/es/components/pointCloudView/PointCloud2DSingleView.js +1 -1
- package/es/components/pointCloudView/PointCloud2DView.js +1 -1
- package/es/components/pointCloudView/PointCloud3DView.js +1 -1
- package/es/components/pointCloudView/PointCloudContext.js +1 -1
- package/es/components/pointCloudView/PointCloudInfos.js +1 -1
- package/es/components/pointCloudView/PointCloudSegment.js +1 -1
- package/es/components/pointCloudView/PointCloudSegment2DView.js +1 -1
- package/es/components/pointCloudView/PointCloudSegmentStatus.js +1 -1
- package/es/components/pointCloudView/PointCloudSegmentToolbar.js +1 -1
- package/es/components/pointCloudView/PointCloudTopView.js +1 -1
- package/es/components/pointCloudView/components/HighlightVisible/index.js +1 -1
- package/es/components/pointCloudView/components/PointCloudSizeSlider/index.js +1 -1
- package/es/components/pointCloudView/components/TitleButton/index.js +1 -1
- package/es/components/pointCloudView/components/UnifyParamsModal/index.js +1 -1
- package/es/components/pointCloudView/components/sideAndBackOverView/index.js +1 -1
- package/es/components/pointCloudView/index.js +1 -1
- package/es/components/predictTracking/predictTrackingIcon/index.js +1 -1
- package/es/components/predictTracking/previewResult/index.js +1 -1
- package/es/components/tagList/components/overall/index.js +1 -0
- package/es/components/tagList/components/portion/index.js +1 -0
- package/es/components/tagList/index.js +1 -0
- package/es/components/tagList/index.module.scss.js +1 -0
- package/es/components/videoAnnotate/index.js +1 -1
- package/es/components/videoAnnotate/videoClipTool/components/annotatedList/index.js +1 -1
- package/es/components/videoAnnotate/videoClipTool/components/resizableSnippet/index.js +1 -1
- package/es/components/videoAnnotate/videoClipTool/components/timeSliceRange/index.js +1 -1
- package/es/components/videoAnnotate/videoClipTool/components/videoClipToolHotkey/index.js +1 -1
- package/es/components/videoAnnotate/videoClipTool/components/videoTimeSlicesOverVideo/index.js +1 -1
- package/es/components/videoAnnotate/videoClipTool/components/videoTrack/index.js +1 -1
- package/es/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptorI18nProvider.js +1 -1
- package/es/components/videoPlayer/VideoTagLayer.js +1 -1
- package/es/components/videoPlayer/VideoTextLayer.js +2 -2
- package/es/components/videoPlayer/components/SpeedController/index.js +1 -1
- package/es/components/videoPlayer/components/controller/index.js +1 -1
- package/es/components/videoPlayer/index.js +1 -1
- package/es/constant/index.js +1 -1
- package/es/hooks/useSafeSate.js +1 -1
- package/es/index.css +70 -2
- package/es/index.js +1 -1
- package/es/store/annotatedBox/index.js +1 -0
- package/es/utils/audio.js +1 -1
- package/es/views/MainView/LLMLayout/index.js +1 -1
- package/es/views/MainView/NLPLayout/index.js +1 -1
- package/es/views/MainView/annotationOperation/index.js +1 -1
- package/es/views/MainView/annotationTips/index.js +1 -1
- package/es/views/MainView/index.js +1 -1
- package/es/views/MainView/sidebar/AnnotationText/index.js +1 -1
- package/es/views/MainView/sidebar/GeneralOperation/index.js +1 -1
- package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js +1 -1
- package/es/views/MainView/sidebar/NLPSidebar/NLPAnnotatedList.js +1 -1
- package/es/views/MainView/sidebar/NLPSidebar/index.js +1 -1
- package/es/views/MainView/sidebar/NLPSidebar/indicatorDetermine.js +1 -1
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.js +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.module.scss.js +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +1 -1
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/arrow.js +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.js +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.module.scss.js +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
- package/es/views/MainView/sidebar/ScribbleSidebar/index.js +1 -1
- package/es/views/MainView/sidebar/SwitchAttributeList/index.js +1 -1
- package/es/views/MainView/sidebar/TextAreaFormat/index.js +1 -1
- package/es/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
- package/es/views/MainView/sidebar/ToolIcons.js +1 -1
- package/es/views/MainView/sidebar/index.js +1 -1
- package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterPopover.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/LLM/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/index.js +1 -1
- package/es/views/MainView/toolFooter/HiddenTips/index.js +1 -1
- package/es/views/MainView/toolFooter/PageNumber/index.js +1 -1
- package/es/views/MainView/toolFooter/Pagination.js +1 -1
- package/es/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js +1 -1
- package/es/views/MainView/toolFooter/ZoomController/index.js +1 -1
- package/es/views/MainView/toolFooter/index.js +1 -1
- package/es/views/MainView/toolHeader/ExportData/index.js +1 -1
- package/es/views/MainView/toolHeader/StepSwitch/index.js +1 -1
- package/es/views/MainView/toolHeader/SwitchPattern/index.js +1 -1
- package/es/views/MainView/toolHeader/headerOption/index.js +1 -1
- package/es/views/MainView/toolHeader/index.js +1 -1
- package/package.json +9 -6
- package/dist/components/NLPToolView/textContent/remarkMask.js +0 -1
- package/dist/types/components/NLPToolView/textContent/remarkMask.d.ts +0 -12
- package/es/components/NLPToolView/textContent/remarkMask.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var lbUtils=require("@labelbee/lb-utils"),React=require("react"),lbAnnotation=require("@labelbee/lb-annotation"),ctx=require("../../store/ctx.js"),actionCreators=require("../../store/annotation/actionCreators.js");function _interopDefaultLegacy(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(n,e,i)=>e in n?__defProp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[e]=i,__spreadValues=(n,e)=>{for(var i in e||(e={}))__hasOwnProp.call(e,i)&&__defNormalProp(n,i,e[i]);if(__getOwnPropSymbols)for(var i of __getOwnPropSymbols(e))__propIsEnum.call(e,i)&&__defNormalProp(n,i,e[i]);return n},__spreadProps=(n,e)=>__defProps(n,__getOwnPropDescs(e)),__async=(n,e,i)=>new Promise((
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var lbUtils=require("@labelbee/lb-utils"),React=require("react"),lbAnnotation=require("@labelbee/lb-annotation"),ctx=require("../../store/ctx.js"),actionCreators=require("../../store/annotation/actionCreators.js"),index=require("../../store/annotatedBox/index.js");function _interopDefaultLegacy(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(n,e,i)=>e in n?__defProp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[e]=i,__spreadValues=(n,e)=>{for(var i in e||(e={}))__hasOwnProp.call(e,i)&&__defNormalProp(n,i,e[i]);if(__getOwnPropSymbols)for(var i of __getOwnPropSymbols(e))__propIsEnum.call(e,i)&&__defNormalProp(n,i,e[i]);return n},__spreadProps=(n,e)=>__defProps(n,__getOwnPropDescs(e)),__async=(n,e,i)=>new Promise((h,C)=>{var I=P=>{try{f(i.next(P))}catch(s){C(s)}},_=P=>{try{f(i.throw(P))}catch(s){C(s)}},f=P=>P.done?h(P.value):Promise.resolve(P.value).then(I,_);f((i=i.apply(n,e)).next())});const PointCloudContext=React__default.default.createContext({pointCloudBoxList:[],pointCloudSphereList:[],displayPointCloudList:[],displaySphereList:[],displayLineList:[],polygonList:[],lineList:[],selectedID:"",selectedIDs:[],highlightIDs:[],setHighlightIDs:()=>{},valid:!0,setSelectedIDs:()=>{},setPointCloudResult:()=>{},setPointCloudSphereList:()=>{},setPointCloudValid:()=>{},setTopViewInstance:()=>{},setSideViewInstance:()=>{},setBackViewInstance:()=>{},setMainViewInstance:()=>{},addSelectedID:()=>{},addHighlightID:()=>{},selectedAllBoxes:()=>{},addPointCloudBox:()=>[],addPointCloudSphere:()=>[],setPolygonList:()=>{},setLineList:()=>{},zoom:1,setZoom:()=>{},history:new lbAnnotation.ActionsHistory,hideAttributes:[],setHideAttributes:()=>{},toggleAttributesVisible:()=>{},reRender:()=>{},setAttrPanelLayout:()=>{},attrPanelLayout:"",syncAllViewPointCloudColor:()=>Promise.resolve(),defaultAttribute:"",setDefaultAttribute:()=>{},pointCloudPattern:lbAnnotation.EToolName.Rect,setPointCloudPattern:()=>{},selectSpecAttr:()=>{},globalPattern:lbUtils.EPointCloudPattern.Detection,setGlobalPattern:()=>{},setPtSegmentInstance:()=>{},segmentation:[],setSegmentation:()=>{},clearAllDetectionInstance:()=>{},highlight2DDataList:[],setHighlight2DDataList:()=>{},cuboidBoxIn2DView:!0,setCuboidBoxIn2DView:n=>{},imageSizes:{},cacheImageNodeSize:()=>{}}),PointCloudProvider=({children:n})=>{const[e,i]=React.useState([]),[h,C]=React.useState([]),[I,_]=React.useState([]),[f,P]=React.useState([]),[s,A]=React.useState([]),[m,x]=React.useState([]),[R,$]=React.useState(!0),[j,tt]=React.useState(!0),[z,et]=React.useState(1),[a,N]=React.useState(),[q,M]=React.useState(),[G,T]=React.useState(),[l,F]=React.useState(),[Z,ot]=React.useState(""),[V,nt]=React.useState(lbAnnotation.EToolName.Rect),it=React.useRef(new lbAnnotation.ActionsHistory).current,[c,B]=React.useState([]),[k,st]=React.useState(""),[O,lt]=React.useState(lbUtils.EPointCloudPattern.Detection),[S,U]=React.useState(void 0),[H,rt]=React.useState([]),[E,at]=React.useState([]),p=index(),[J,ut]=React.useState({}),dt=ctx.useDispatch(),ct=r=>{const{imgNode:u,path:d}=r;d&&u&&ut(g=>__spreadProps(__spreadValues({},g),{[d]:{width:u.width,height:u.height}}))},K=React.useMemo(()=>s.length===1?s[0]:"",[s]),D=React.useMemo(()=>{const r=e.find(t=>t.id===K),u=t=>{const o=e.concat(t);return i(o),o},d=t=>{const o=h.concat(t);return C(o),o},g=t=>{$(t!==!1)},v=t=>{t===void 0&&A([]),typeof t=="string"&&A([t]),Array.isArray(t)&&A(Array.from(new Set(t)))},vt=t=>{s.includes(t)?v(s.filter(o=>o!==t)):v([...s,t])},Pt=t=>{m.includes(t)?x([]):x([t])},gt=()=>{if(V===lbAnnotation.EToolName.Rect){const t=e.map(o=>o.id);v(t),a==null||a.pointCloud2dOperation.setSelectedIDs(t)}},ft=t=>{v(e.filter(o=>o.attribute===t).map(o=>o.id))},Q=e.filter(t=>!c.includes(t.attribute)),W=h.filter(t=>!c.includes(t.attribute)),X=f.filter(t=>t.attribute&&!c.includes(t.attribute)),ht=t=>{if(c.includes(t))B(c.filter(o=>o!==t));else{const o=c.concat(t);B(o)}},St=(t=Q,o=I,y=W,w=X,L=H)=>{var b;l==null||l.clearAllBox(),l==null||l.clearAllSphere(),a==null||a.updatePolygonList(t,o),a==null||a.updatePointList(y),a==null||a.updateLineList(w),l==null||l.generateBoxes(t),l==null||l.generateSpheres(y),(b=S==null?void 0:S.store)==null||b.updateCurrentSegment(L),Y(t)},bt=()=>{N(void 0),M(void 0),T(void 0),F(void 0)},Y=(t,o)=>__async(void 0,null,function*(){var y;if(!l)return;const w=l.pointCloudObject;if(!!w)try{const L=yield l.getHighlightIndexByMappingImgList({mappingImgList:o!=null?o:E,points:w.geometry.attributes.position.array}),b=yield l==null?void 0:l.highlightOriginPointCloud(t,L);return b&&((y=a==null?void 0:a.pointCloudInstance)==null||y.updateColor(b)),b}catch(L){console.error(L)}});return{selectedID:K,pointCloudBoxList:e,pointCloudSphereList:h,displayPointCloudList:Q,displaySphereList:W,displayLineList:X,selectedIDs:s,setPointCloudResult:i,setSelectedIDs:v,addPointCloudBox:u,addPointCloudSphere:d,setPointCloudSphereList:C,valid:R,selectedPointCloudBox:r,setPointCloudValid:g,addSelectedID:vt,addHighlightID:Pt,selectedAllBoxes:gt,topViewInstance:a,setTopViewInstance:N,sideViewInstance:q,setSideViewInstance:M,backViewInstance:G,setBackViewInstance:T,mainViewInstance:l,setMainViewInstance:F,polygonList:I,setPolygonList:_,lineList:f,setLineList:P,zoom:z,setZoom:et,history:it,toggleAttributesVisible:ht,hideAttributes:c,setHideAttributes:B,reRender:St,attrPanelLayout:k,setAttrPanelLayout:st,syncAllViewPointCloudColor:Y,defaultAttribute:Z,setDefaultAttribute:ot,pointCloudPattern:V,setPointCloudPattern:nt,selectSpecAttr:ft,globalPattern:O,setGlobalPattern:t=>{O!==t&&(dt(actionCreators.ChangeSave),lt(t),t===lbUtils.EPointCloudPattern.Detection&&U(void 0))},ptSegmentInstance:S,setPtSegmentInstance:U,segmentation:H,setSegmentation:rt,clearAllDetectionInstance:bt,highlight2DDataList:E,setHighlight2DDataList:at,cuboidBoxIn2DView:j,setCuboidBoxIn2DView:tt,imageSizes:J,cacheImageNodeSize:ct,highlightIDs:m,setHighlightIDs:x}},[R,s,e,h,I,f,a,q,G,l,z,c,k,Z,V,O,S,H,E,j,J,m]);React.useEffect(()=>{var r,u,d;(r=p==null?void 0:p.setPointCloudBoxList)==null||r.call(p,e),(u=p==null?void 0:p.setHighlightIDs)==null||u.call(p,m),(d=p==null?void 0:p.setSelectedIDs)==null||d.call(p,s)},[e,s,m]),React.useEffect(()=>{var r;(r=p==null?void 0:p.setPtCtx)==null||r.call(p,D)},[D]);const pt=()=>{const r=e.filter(v=>c.includes(v.attribute)),{setSelectedIDs:u,reRender:d}=D,g=r.map(v=>v.id);g.length>0&&u(s.filter(v=>!g.includes(v))),d()};return React.useEffect(()=>{var r,u,d,g;pt(),(u=(r=a==null?void 0:a.toolInstance)==null?void 0:r.setHiddenAttributes)==null||u.call(r,c),(g=(d=S==null?void 0:S.store)==null?void 0:d.setHiddenAttributes)==null||g.call(d,c)},[c]),React__default.default.createElement(PointCloudContext.Provider,{value:D},n)};exports.PointCloudContext=PointCloudContext,exports.PointCloudProvider=PointCloudProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var dom=require("../../utils/dom.js"),index$3=require("../../views/MainView/toolFooter/index.js"),index$4=require("../../views/MainView/toolFooter/ZoomController/index.js"),icons=require("@ant-design/icons"),lbAnnotation=require("@labelbee/lb-annotation"),lbUtils=require("@labelbee/lb-utils"),React=require("react"),PointCloudContext=require("./PointCloudContext.js"),useRotate=require("./hooks/useRotate.js"),useSingleBox=require("./hooks/useSingleBox.js"),PointCloudLayout=require("./PointCloudLayout.js"),PointCloudInfos=require("./PointCloudInfos.js"),usePolygon=require("./hooks/usePolygon.js"),useSphere=require("./hooks/useSphere.js"),useZoom=require("./hooks/useZoom.js"),antd=require("antd"),map=require("../../store/annotation/map.js"),reactRedux=require("react-redux"),usePointCloudViews=require("./hooks/usePointCloudViews.js"),useSize=require("../../hooks/useSize.js"),reactI18next=require("react-i18next"),ctx=require("../../store/ctx.js"),index=require("../../utils/index.js"),ToolUtils=require("../../utils/ToolUtils.js"),_=require("lodash"),index$2=require("./components/PointCloudSizeSlider/index.js"),useHistory=require("./hooks/useHistory.js"),index$1=require("./components/TitleButton/index.js");function _interopDefaultLegacy(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var React__default=_interopDefaultLegacy(React),___default=_interopDefaultLegacy(_),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(o,i,l)=>i in o?__defProp(o,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[i]=l,__spreadValues=(o,i)=>{for(var l in i||(i={}))__hasOwnProp.call(i,l)&&__defNormalProp(o,l,i[l]);if(__getOwnPropSymbols)for(var l of __getOwnPropSymbols(i))__propIsEnum.call(i,l)&&__defNormalProp(o,l,i[l]);return o},__spreadProps=(o,i)=>__defProps(o,__getOwnPropDescs(i));const{EPolygonPattern,EToolName}=lbAnnotation.cTool,{ESortDirection}=lbAnnotation.cAnnotation,EKeyCode=lbAnnotation.cKeyCode.default,TransferCanvas2WorldOffset=(o,i,l=1)=>{const{width:C,height:c}=i,w={x:o.x+C*l/2,y:o.y+c*l/2},g={x:i.width/2,y:i.height/2};return{offsetX:(g.x-w.x)/l,offsetY:-(g.y-w.y)/l}},TopViewToolbar=({currentData:o})=>{var i,l;const{zoom:C,zoomIn:c,zoomOut:w,initialPosition:g}=useZoom.useZoom(),{selectNextBox:V,selectPrevBox:S}=useSingleBox.useSingleBox(),{switchToNextSphere:y}=useSphere.useSphere(),{updateRotate:P}=useRotate.useRotate({currentData:o}),x=React__default.default.useContext(PointCloudContext.PointCloudContext),{topViewInstance:E}=x,I=(l=(i=x==null?void 0:x.topViewInstance)==null?void 0:i.toolScheduler)==null?void 0:l.getCurrentToolName(),p=2,e=()=>{P(-p)},a=()=>{P(p)},f=()=>{P(180)};return React__default.default.createElement(React__default.default.Fragment,null,React__default.default.createElement(index$2,{onChange:L=>{var h;(h=E==null?void 0:E.pointCloudInstance)==null||h.updatePointSize({customSize:L})}}),React__default.default.createElement("span",{onClick:a,className:dom.getClassName("point-cloud","rotate-reserve")}),React__default.default.createElement("span",{onClick:e,className:dom.getClassName("point-cloud","rotate")}),React__default.default.createElement("span",{onClick:f,className:dom.getClassName("point-cloud","rotate-180")}),React__default.default.createElement(index$3.FooterDivider,null),React__default.default.createElement(icons.UpSquareOutlined,{onClick:()=>{if(I===EToolName.Point){y(ESortDirection.descend);return}S(!0)},className:dom.getClassName("point-cloud","prev")}),React__default.default.createElement(icons.DownSquareOutlined,{onClick:()=>{if(I===EToolName.Point){y(ESortDirection.ascend);return}V(!0)},className:dom.getClassName("point-cloud","next")}),React__default.default.createElement(index$3.FooterDivider,null),React__default.default.createElement(index$4.ZoomController,{initialPosition:g,zoomIn:c,zoomOut:w,zoom:C}))},ZAxisSlider=({setZAxisLimit:o,zAxisLimit:i,checkMode:l})=>l?null:React__default.default.createElement("div",{style:{position:"absolute",top:128,right:8,height:"50%",zIndex:20}},React__default.default.createElement(antd.Slider,{vertical:!0,step:.5,max:10,min:.5,defaultValue:i,onAfterChange:C=>{o(C)}})),PointCloudTopView=({currentData:o,imgList:i,stepInfo:l,drawLayerSlot:C,checkMode:c,intelligentFit:w,setIsEnlargeTopView:g,isEnlargeTopView:V,onExitZoom:S,highlightAttribute:y})=>{var P,x;const[E,I]=React.useState({zoom:1,currentPos:{x:0,y:0}}),p=React.useRef(null),e=React__default.default.useContext(PointCloudContext.PointCloudContext),a=useSize(p),f=index.jsonParser(l.config),{setZoom:L,syncTopviewToolZoom:h}=useZoom.useZoom(),{hideAttributes:B}=e,{addPolygon:D,deletePolygon:R}=usePolygon.usePolygon(),{deletePointCloudSphere:U}=useSphere.useSphere(),{deletePointCloudBox:Z,changeValidByID:z}=useSingleBox.useSingleBox(),[b,H]=React.useState(10),{t:k}=reactI18next.useTranslation(),m=usePointCloudViews.usePointCloudViews(),{pushHistoryWithList:F}=useHistory.useHistory();React.useLayoutEffect(()=>{if(!e.topViewInstance&&p.current&&(o==null?void 0:o.url)&&(o==null?void 0:o.result)){const n={width:p.current.clientWidth,height:p.current.clientHeight},r=new lbAnnotation.PointCloudAnnotation({container:p.current,size:n,pcdPath:o.url,config:__spreadProps(__spreadValues({},f),{pointCloudPattern:e.pointCloudPattern}),checkMode:c,toolName:ToolUtils.getPointCloudToolList(),proxyMode:c});e.setTopViewInstance(r)}},[o]),React.useEffect(()=>{if(!a||!e.topViewInstance||!e.sideViewInstance)return;const{toolInstance:n}=e.topViewInstance;n.singleOn("dataUpdated",(t,s)=>{const d=___default.default.cloneDeep(t).map(u=>__spreadProps(__spreadValues({},u),{pointList:lbUtils.PointCloudUtils.pointListTransferCanvas2World(u.pointList,a)}));e.setSelectedIDs(s),e.setLineList(d),F({lineList:d})}),n.singleOn("pointCreated",(t,s)=>{m.topViewAddSphere({newPoint:t,size:a,trackConfigurable:f.trackConfigurable,zoom:s})}),n.singleOn("pointDeleted",t=>{U(t)}),n.singleOn("pointSelected",t=>{e.setSelectedIDs([t])}),n.singleOn("updatePointByDrag",(t,s)=>{var d;(d=m.topViewUpdatePoint)==null||d.call(m,t,a)}),n.singleOn("polygonCreated",(t,s)=>{if(n.pattern===EPolygonPattern.Normal||!(o==null?void 0:o.url)){const d=__spreadProps(__spreadValues({},t),{pointList:t.pointList.map(u=>lbUtils.PointCloudUtils.transferCanvas2World(u,a))});D(d),e.setSelectedIDs(B.includes(t.attribute)?"":t.id);return}m.topViewAddBox({polygon:t,size:a,imgList:i,trackConfigurable:f.trackConfigurable,zoom:s,intelligentFit:w})}),n.singleOn("deletedObject",({id:t})=>{Z(t),R(t)}),n.singleOn("deleteSelectedIDs",()=>{e.setSelectedIDs([])}),n.singleOn("addSelectedIDs",t=>{e.addSelectedID(t)}),n.singleOn("setSelectedIDs",t=>{e.setSelectedIDs(t)}),n.singleOn("updatePolygonByDrag",t=>{var s;(s=m.topViewUpdateBox)==null||s.call(m,t,a)});const r=t=>{var s;const d=z(t);d&&e.syncAllViewPointCloudColor(d),e.polygonList.find(u=>u.id===t)&&((s=e.topViewInstance)==null||s.toolInstance.setPolygonValidAndRender(t,!0))};return n.on("validUpdate",r),()=>{n.unbind("validUpdate",r)}},[e,a,o,m,e.polygonList,e.lineList,(P=e.topViewInstance)==null?void 0:P.toolInstance]),React.useEffect(()=>{var n,r;if(!(a==null?void 0:a.width)||!e.topViewInstance)return;const t=(r=(n=f==null?void 0:f.attributeList)==null?void 0:n[0])==null?void 0:r.value;t&&e.topViewInstance.toolInstance.setDefaultAttribute(t),e.topViewInstance.initSize(a),e.topViewInstance.updatePolygonList(e.displayPointCloudList,e.polygonList),e.topViewInstance.updatePointList(e.displaySphereList),e.topViewInstance.updateLineList(e.displayLineList);const{topViewInstance:{pointCloudInstance:s,toolInstance:d}}=e;d.singleOn("renderZoom",(u,v)=>{const{offsetX:O,offsetY:q}=TransferCanvas2WorldOffset(v,a,u);if(s.camera.zoom=u,v){const{x:j,y:T,z:N}=s.initCameraPosition;s.camera.position.set(j+q,T-O,N)}s.camera.updateProjectionMatrix(),s.render(),L(u),h(v,u,a),I({zoom:u,currentPos:v})}),d.singleOn("dragMove",({currentPos:u,zoom:v})=>{const{offsetX:O,offsetY:q}=TransferCanvas2WorldOffset(u,a,v);s.camera.zoom=v;const{x:j,y:T,z:N}=s.initCameraPosition;s.camera.position.set(j+q,T-O,N),s.render(),h(u,v,a),I({zoom:v,currentPos:u})})},[a,e.topViewInstance,(x=e.topViewInstance)==null?void 0:x.toolInstance]),React.useEffect(()=>{var n,r;(r=(n=e.topViewInstance)==null?void 0:n.pointCloudInstance)==null||r.applyZAxisPoints(b)},[b]),React.useEffect(()=>{m.topViewSelectedChanged({})},[e.selectedIDs]),React.useEffect(()=>(window.addEventListener("keydown",A),()=>{window.removeEventListener("keydown",A)}),[]);const A=n=>{const{keyCode:r}=n;r===EKeyCode.Esc&&S()};return React.useEffect(()=>{var n,r,t;(t=(r=(n=e.topViewInstance)==null?void 0:n.pointCloud2dOperation)==null?void 0:r.setHighlightAttribute)==null||t.call(r,y)},[e.topViewInstance,y]),React__default.default.createElement(PointCloudLayout.PointCloudContainer,{className:dom.getClassName("point-cloud-container","top-view"),title:V?React__default.default.createElement("div",{style:{display:"flex",alignItems:"center",position:"relative"}},React__default.default.createElement(icons.LeftOutlined,{style:{cursor:"pointer",marginRight:"12px"},onClick:()=>{S()}}),React__default.default.createElement("span",null,k("TopView")),React__default.default.createElement(PointCloudInfos.BoxInfos,{checkMode:c,config:f,style:{display:"flex",position:"initial",margin:"0px 20px"}})):React__default.default.createElement(index$1,{title:k("TopView"),onClick:()=>{g(!0)}}),toolbar:React__default.default.createElement(TopViewToolbar,{currentData:o})},React__default.default.createElement("div",{style:{position:"relative",flex:1}},React__default.default.createElement("div",{style:{width:"100%",height:"100%"},ref:p},C==null?void 0:C(E)),!V&&React__default.default.createElement(PointCloudInfos.BoxInfos,{checkMode:c,config:f}),React__default.default.createElement(ZAxisSlider,{checkMode:c,zAxisLimit:b,setZAxisLimit:H}),React__default.default.createElement(PointCloudInfos.PointCloudValidity,null)))};var PointCloudTopView$1=reactRedux.connect(map.a2MapStateToProps,null,null,{context:ctx.LabelBeeContext})(PointCloudTopView);module.exports=PointCloudTopView$1;
|
|
1
|
+
"use strict";var dom=require("../../utils/dom.js"),index$3=require("../../views/MainView/toolFooter/index.js"),index$4=require("../../views/MainView/toolFooter/ZoomController/index.js"),icons=require("@ant-design/icons"),lbAnnotation=require("@labelbee/lb-annotation"),lbUtils=require("@labelbee/lb-utils"),React=require("react"),PointCloudContext=require("./PointCloudContext.js"),useRotate=require("./hooks/useRotate.js"),useSingleBox=require("./hooks/useSingleBox.js"),PointCloudLayout=require("./PointCloudLayout.js"),PointCloudInfos=require("./PointCloudInfos.js"),usePolygon=require("./hooks/usePolygon.js"),useSphere=require("./hooks/useSphere.js"),useZoom=require("./hooks/useZoom.js"),antd=require("antd"),map=require("../../store/annotation/map.js"),reactRedux=require("react-redux"),usePointCloudViews=require("./hooks/usePointCloudViews.js"),useSize=require("../../hooks/useSize.js"),reactI18next=require("react-i18next"),ctx=require("../../store/ctx.js"),index=require("../../utils/index.js"),ToolUtils=require("../../utils/ToolUtils.js"),_=require("lodash"),index$2=require("./components/PointCloudSizeSlider/index.js"),useHistory=require("./hooks/useHistory.js"),index$1=require("./components/TitleButton/index.js");function _interopDefaultLegacy(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var React__default=_interopDefaultLegacy(React),___default=_interopDefaultLegacy(_),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(o,l,s)=>l in o?__defProp(o,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[l]=s,__spreadValues=(o,l)=>{for(var s in l||(l={}))__hasOwnProp.call(l,s)&&__defNormalProp(o,s,l[s]);if(__getOwnPropSymbols)for(var s of __getOwnPropSymbols(l))__propIsEnum.call(l,s)&&__defNormalProp(o,s,l[s]);return o},__spreadProps=(o,l)=>__defProps(o,__getOwnPropDescs(l));const{EPolygonPattern,EToolName}=lbAnnotation.cTool,{ESortDirection}=lbAnnotation.cAnnotation,EKeyCode=lbAnnotation.cKeyCode.default,TransferCanvas2WorldOffset=(o,l,s=1)=>{const{width:C,height:c}=l,w={x:o.x+C*s/2,y:o.y+c*s/2},g={x:l.width/2,y:l.height/2};return{offsetX:(g.x-w.x)/s,offsetY:-(g.y-w.y)/s}},TopViewToolbar=({currentData:o})=>{var l,s;const{zoom:C,zoomIn:c,zoomOut:w,initialPosition:g}=useZoom.useZoom(),{selectNextBox:V,selectPrevBox:S}=useSingleBox.useSingleBox(),{switchToNextSphere:y}=useSphere.useSphere(),{updateRotate:P}=useRotate.useRotate({currentData:o}),x=React__default.default.useContext(PointCloudContext.PointCloudContext),{topViewInstance:E}=x,I=(s=(l=x==null?void 0:x.topViewInstance)==null?void 0:l.toolScheduler)==null?void 0:s.getCurrentToolName(),p=2,e=()=>{P(-p)},r=()=>{P(p)},f=()=>{P(180)};return React__default.default.createElement(React__default.default.Fragment,null,React__default.default.createElement(index$2,{onChange:L=>{var h;(h=E==null?void 0:E.pointCloudInstance)==null||h.updatePointSize({customSize:L})}}),React__default.default.createElement("span",{onClick:r,className:dom.getClassName("point-cloud","rotate-reserve")}),React__default.default.createElement("span",{onClick:e,className:dom.getClassName("point-cloud","rotate")}),React__default.default.createElement("span",{onClick:f,className:dom.getClassName("point-cloud","rotate-180")}),React__default.default.createElement(index$3.FooterDivider,null),React__default.default.createElement(icons.UpSquareOutlined,{onClick:()=>{if(I===EToolName.Point){y(ESortDirection.descend);return}S(!0)},className:dom.getClassName("point-cloud","prev")}),React__default.default.createElement(icons.DownSquareOutlined,{onClick:()=>{if(I===EToolName.Point){y(ESortDirection.ascend);return}V(!0)},className:dom.getClassName("point-cloud","next")}),React__default.default.createElement(index$3.FooterDivider,null),React__default.default.createElement(index$4.ZoomController,{initialPosition:g,zoomIn:c,zoomOut:w,zoom:C}))},ZAxisSlider=({setZAxisLimit:o,zAxisLimit:l,checkMode:s})=>s?null:React__default.default.createElement("div",{style:{position:"absolute",top:128,right:8,height:"50%",zIndex:20}},React__default.default.createElement(antd.Slider,{vertical:!0,step:.5,max:10,min:.5,defaultValue:l,onAfterChange:C=>{o(C)}})),PointCloudTopView=({currentData:o,imgList:l,stepInfo:s,drawLayerSlot:C,checkMode:c,intelligentFit:w,setIsEnlargeTopView:g,isEnlargeTopView:V,onExitZoom:S,highlightAttribute:y})=>{var P,x;const[E,I]=React.useState({zoom:1,currentPos:{x:0,y:0}}),p=React.useRef(null),e=React__default.default.useContext(PointCloudContext.PointCloudContext),r=useSize(p),f=index.jsonParser(s.config),{setZoom:L,syncTopviewToolZoom:h}=useZoom.useZoom(),{hideAttributes:D}=e,{addPolygon:B,deletePolygon:R}=usePolygon.usePolygon(),{deletePointCloudSphere:U}=useSphere.useSphere(),{deletePointCloudBox:Z,changeValidByID:z}=useSingleBox.useSingleBox(),[b,H]=React.useState(10),{t:k}=reactI18next.useTranslation(),m=usePointCloudViews.usePointCloudViews(),{pushHistoryWithList:F}=useHistory.useHistory();React.useLayoutEffect(()=>{if(!e.topViewInstance&&p.current&&(o==null?void 0:o.url)&&(o==null?void 0:o.result)){const n={width:p.current.clientWidth,height:p.current.clientHeight},a=new lbAnnotation.PointCloudAnnotation({container:p.current,size:n,pcdPath:o.url,config:__spreadProps(__spreadValues({},f),{pointCloudPattern:e.pointCloudPattern}),checkMode:c,toolName:ToolUtils.getPointCloudToolList(),proxyMode:c});e.setTopViewInstance(a)}},[o]),React.useEffect(()=>{if(!r||!e.topViewInstance||!e.sideViewInstance)return;const{toolInstance:n}=e.topViewInstance;n.singleOn("dataUpdated",(t,i)=>{const d=___default.default.cloneDeep(t).map(u=>__spreadProps(__spreadValues({},u),{pointList:lbUtils.PointCloudUtils.pointListTransferCanvas2World(u.pointList,r)}));e.setSelectedIDs(i),e.setLineList(d),F({lineList:d})}),n.singleOn("pointCreated",(t,i)=>{m.topViewAddSphere({newPoint:t,size:r,trackConfigurable:f.trackConfigurable,zoom:i})}),n.singleOn("pointDeleted",t=>{U(t)}),n.singleOn("pointSelected",t=>{e.setSelectedIDs([t])}),n.singleOn("updatePointByDrag",(t,i)=>{var d;(d=m.topViewUpdatePoint)==null||d.call(m,t,r)}),n.singleOn("polygonCreated",(t,i)=>{if(n.pattern===EPolygonPattern.Normal||!(o==null?void 0:o.url)){const d=__spreadProps(__spreadValues({},t),{pointList:t.pointList.map(u=>lbUtils.PointCloudUtils.transferCanvas2World(u,r))});B(d),e.setSelectedIDs(D.includes(t.attribute)?"":t.id);return}m.topViewAddBox({polygon:t,size:r,imgList:l,trackConfigurable:f.trackConfigurable,zoom:i,intelligentFit:w})}),n.singleOn("deletedObject",({id:t})=>{Z(t),R(t)}),n.singleOn("deleteSelectedIDs",()=>{e.setSelectedIDs([])}),n.singleOn("addSelectedIDs",t=>{e.addSelectedID(t)}),n.singleOn("setSelectedIDs",t=>{e.setSelectedIDs(t)}),n.singleOn("updatePolygonByDrag",t=>{var i;(i=m.topViewUpdateBox)==null||i.call(m,t,r)});const a=t=>{var i;const d=z(t);d&&e.syncAllViewPointCloudColor(d),e.polygonList.find(u=>u.id===t)&&((i=e.topViewInstance)==null||i.toolInstance.setPolygonValidAndRender(t,!0))};return n.on("validUpdate",a),()=>{n.unbind("validUpdate",a)}},[e,r,o,m,e.polygonList,e.lineList,(P=e.topViewInstance)==null?void 0:P.toolInstance]),React.useEffect(()=>{var n,a;if(!(r==null?void 0:r.width)||!e.topViewInstance)return;const t=(a=(n=f==null?void 0:f.attributeList)==null?void 0:n[0])==null?void 0:a.value;t&&e.topViewInstance.toolInstance.setDefaultAttribute(t),e.topViewInstance.initSize(r),e.topViewInstance.updatePolygonList(e.displayPointCloudList,e.polygonList),e.topViewInstance.updatePointList(e.displaySphereList),e.topViewInstance.updateLineList(e.displayLineList);const{topViewInstance:{pointCloudInstance:i,toolInstance:d}}=e;d.singleOn("renderZoom",(u,v)=>{const{offsetX:O,offsetY:q}=TransferCanvas2WorldOffset(v,r,u);if(i.camera.zoom=u,v){const{x:j,y:T,z:N}=i.initCameraPosition;i.camera.position.set(j+q,T-O,N)}i.camera.updateProjectionMatrix(),i.render(),L(u),h(v,u,r),I({zoom:u,currentPos:v})}),d.singleOn("dragMove",({currentPos:u,zoom:v})=>{const{offsetX:O,offsetY:q}=TransferCanvas2WorldOffset(u,r,v);i.camera.zoom=v;const{x:j,y:T,z:N}=i.initCameraPosition;i.camera.position.set(j+q,T-O,N),i.render(),h(u,v,r),I({zoom:v,currentPos:u})})},[r,e.topViewInstance,(x=e.topViewInstance)==null?void 0:x.toolInstance]),React.useEffect(()=>{var n,a;(a=(n=e.topViewInstance)==null?void 0:n.pointCloudInstance)==null||a.applyZAxisPoints(b)},[b]),React.useEffect(()=>{var n,a,t,i;m.topViewSelectedChanged({}),(i=(t=(a=(n=e.topViewInstance)==null?void 0:n.toolInstance)==null?void 0:a.selection)==null?void 0:t.hardSetSelectedIDs)==null||i.call(t,e.selectedIDs)},[e.selectedIDs]),React.useEffect(()=>(window.addEventListener("keydown",A),()=>{window.removeEventListener("keydown",A)}),[]);const A=n=>{const{keyCode:a}=n;a===EKeyCode.Esc&&S()};return React.useEffect(()=>{var n,a,t;(t=(a=(n=e.topViewInstance)==null?void 0:n.pointCloud2dOperation)==null?void 0:a.setHighlightAttribute)==null||t.call(a,y)},[e.topViewInstance,y]),React__default.default.createElement(PointCloudLayout.PointCloudContainer,{className:dom.getClassName("point-cloud-container","top-view"),title:V?React__default.default.createElement("div",{style:{display:"flex",alignItems:"center",position:"relative"}},React__default.default.createElement(icons.LeftOutlined,{style:{cursor:"pointer",marginRight:"12px"},onClick:()=>{S()}}),React__default.default.createElement("span",null,k("TopView")),React__default.default.createElement(PointCloudInfos.BoxInfos,{checkMode:c,config:f,style:{display:"flex",position:"initial",margin:"0px 20px"}})):React__default.default.createElement(index$1,{title:k("TopView"),onClick:()=>{g(!0)}}),toolbar:React__default.default.createElement(TopViewToolbar,{currentData:o})},React__default.default.createElement("div",{style:{position:"relative",flex:1}},React__default.default.createElement("div",{style:{width:"100%",height:"100%"},ref:p},C==null?void 0:C(E)),!V&&React__default.default.createElement(PointCloudInfos.BoxInfos,{checkMode:c,config:f}),React__default.default.createElement(ZAxisSlider,{checkMode:c,zAxisLimit:b,setZAxisLimit:H}),React__default.default.createElement(PointCloudInfos.PointCloudValidity,null)))};var PointCloudTopView$1=reactRedux.connect(map.a2MapStateToProps,null,null,{context:ctx.LabelBeeContext})(PointCloudTopView);module.exports=PointCloudTopView$1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var React=require("react"),index=require("../../index.js");function _interopDefaultLegacy(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(r,e,t)=>e in r?__defProp(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,__spreadValues=(r,e)=>{for(var t in e||(e={}))__hasOwnProp.call(e,t)&&__defNormalProp(r,t,e[t]);if(__getOwnPropSymbols)for(var t of __getOwnPropSymbols(e))__propIsEnum.call(e,t)&&__defNormalProp(r,t,e[t]);return r},__spreadProps=(r,e)=>__defProps(r,__getOwnPropDescs(e)),OverallTagList=r=>{var e;const t=((e=r==null?void 0:r.inputList)==null?void 0:e.filter(a=>a==null?void 0:a.isOverall))||[];return React__default.default.createElement(index,__spreadProps(__spreadValues({},r),{inputList:t}))};module.exports=OverallTagList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var React=require("react"),index=require("../../index.js");function _interopDefaultLegacy(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(r,e,t)=>e in r?__defProp(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,__spreadValues=(r,e)=>{for(var t in e||(e={}))__hasOwnProp.call(e,t)&&__defNormalProp(r,t,e[t]);if(__getOwnPropSymbols)for(var t of __getOwnPropSymbols(e))__propIsEnum.call(e,t)&&__defNormalProp(r,t,e[t]);return r},__spreadProps=(r,e)=>__defProps(r,__getOwnPropDescs(e)),PortionTagList=r=>{var e;const t=((e=r==null?void 0:r.inputList)==null?void 0:e.filter(a=>!(a==null?void 0:a.isOverall)))||[];return React__default.default.createElement(index,__spreadProps(__spreadValues({},r),{inputList:t}))};module.exports=PortionTagList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var React=require("react"),antd=require("antd"),index_module=require("./index.module.scss.js"),index=require("../longText/index.js"),classNames=require("classnames");function _interopDefaultLegacy(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var React__default=_interopDefaultLegacy(React),classNames__default=_interopDefaultLegacy(classNames);const{CheckableTag}=antd.Tag,CheckBoxList=({tagItem:a,selectedTags:d,handleChange:c,disabeledAll:o})=>{var r;const s=o,{isMulti:u,subSelected:n=[],value:i}=a,t=i;return u?React__default.default.createElement(React__default.default.Fragment,null,n.map(e=>{var l,v;return React__default.default.createElement(CheckableTag,{key:e==null?void 0:e.value,checked:(l=d[t])==null?void 0:l.includes(e==null?void 0:e.value),onChange:m=>{s||c({key:t,tag:e==null?void 0:e.value,checked:m})},className:classNames__default.default({[`${index_module.disabled}`]:s,[`${index_module.active}`]:s&&((v=d[t])==null?void 0:v.includes(e==null?void 0:e.value))})},React__default.default.createElement("span",{className:index_module.tagItem},React__default.default.createElement(index,{text:e==null?void 0:e.key,openByText:!0})))})):React__default.default.createElement(antd.Radio.Group,{onChange:e=>{c({key:t,tag:e.target.value,checked:e.target.checked,isRadio:!0})},value:(r=d[t])==null?void 0:r[0]},n.map(e=>React__default.default.createElement(antd.Radio,{value:e==null?void 0:e.value,key:e==null?void 0:e.value,disabled:s},React__default.default.createElement("span",{className:index_module.tagItem},React__default.default.createElement(index,{text:e==null?void 0:e.key,openByText:!0})))))},TagList=a=>{const{selectedTags:d,updateValue:c,disabeledAll:o,inputList:r=[]}=a,s=u=>{const{key:n,checked:i,tag:t,isRadio:e}=u;let l=d[n]||[];if(e&&(l=[]),i){if(l==null?void 0:l.includes(t))return;l.push(t)}else!i&&(l==null?void 0:l.includes(t))&&(l=l.filter(m=>m!==t));c({key:n,value:l})};return(r==null?void 0:r.length)>0?React__default.default.createElement("div",{className:index_module.tagList},r.map((u,n)=>React__default.default.createElement(antd.Row,{key:n,className:index_module.content},React__default.default.createElement(antd.Col,{span:4,className:index_module.left},u==null?void 0:u.key),React__default.default.createElement(antd.Col,{span:20,className:index_module.right},React__default.default.createElement(CheckBoxList,{selectedTags:d,handleChange:s,tagItem:u,disabeledAll:o}))))):null};module.exports=TagList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var styles={tagList:"index-module_tagList__cvWor",content:"index-module_content__Jy4jf",left:"index-module_left__r1ebR",right:"index-module_right__RHSL5",tagItem:"index-module_tagItem__hicyz",disabled:"index-module_disabled__lpoBn",active:"index-module_active__8fZjL"};module.exports=styles;
|
package/dist/constant/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EStepType=void 0,function(o){o[o.Check=0]="Check",o[o.ANNOTATION=1]="ANNOTATION",o[o.QUALITY_INSPECTION=2]="QUALITY_INSPECTION",o[o.PRE_ANNOTATION=3]="PRE_ANNOTATION",o[o.MANUAL_CORRECTION=4]="MANUAL_CORRECTION"}(exports.EStepType||(exports.EStepType={})),exports.ESubmitType=void 0,function(o){o[o.Backward=1]="Backward",o[o.Forward=2]="Forward",o[o.Jump=3]="Jump",o[o.Quit=4]="Quit",o[o.Export=5]="Export",o[o.StepChanged=6]="StepChanged",o[o.Save=7]="Save",o[o.BatchUpdateTrackID=8]="BatchUpdateTrackID",o[o.BatchUpdateImgList=9]="BatchUpdateImgList",o[o.SyncImgList=10001]="SyncImgList",o[o.SyncCurrentPageData=10002]="SyncCurrentPageData"}(exports.ESubmitType||(exports.ESubmitType={}));const prefix="bee",componentCls=`${prefix}-component`;exports.EDataFormatType=void 0,function(o){o.Default="default",o.Markdown="markdown"}(exports.EDataFormatType||(exports.EDataFormatType={})),exports.ELLMDataType=void 0,function(o){o.Picture="picture",o.Text="text",o.None="none"}(exports.ELLMDataType||(exports.ELLMDataType={}))
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EStepType=void 0,function(o){o[o.Check=0]="Check",o[o.ANNOTATION=1]="ANNOTATION",o[o.QUALITY_INSPECTION=2]="QUALITY_INSPECTION",o[o.PRE_ANNOTATION=3]="PRE_ANNOTATION",o[o.MANUAL_CORRECTION=4]="MANUAL_CORRECTION"}(exports.EStepType||(exports.EStepType={})),exports.ESubmitType=void 0,function(o){o[o.Backward=1]="Backward",o[o.Forward=2]="Forward",o[o.Jump=3]="Jump",o[o.Quit=4]="Quit",o[o.Export=5]="Export",o[o.StepChanged=6]="StepChanged",o[o.Save=7]="Save",o[o.BatchUpdateTrackID=8]="BatchUpdateTrackID",o[o.BatchUpdateImgList=9]="BatchUpdateImgList",o[o.SyncImgList=10001]="SyncImgList",o[o.SyncCurrentPageData=10002]="SyncCurrentPageData"}(exports.ESubmitType||(exports.ESubmitType={}));const prefix="bee",componentCls=`${prefix}-component`;exports.EDataFormatType=void 0,function(o){o.Default="default",o.Markdown="markdown"}(exports.EDataFormatType||(exports.EDataFormatType={})),exports.ELLMDataType=void 0,function(o){o.Picture="picture",o.Text="text",o.None="none"}(exports.ELLMDataType||(exports.ELLMDataType={})),exports.componentCls=componentCls,exports.prefix=prefix;
|
package/dist/index.css
CHANGED
|
@@ -24,6 +24,39 @@
|
|
|
24
24
|
.index-module_imgView__wmxDk .index-module_item__-80YI .index-module_image__V49oW .ant-image {
|
|
25
25
|
display: flex;
|
|
26
26
|
}
|
|
27
|
+
.index-module_annotatedBox__gmg-f {
|
|
28
|
+
padding: 24px;
|
|
29
|
+
border-bottom: 1px solid #eee;
|
|
30
|
+
}
|
|
31
|
+
.index-module_annotatedBox__gmg-f .index-module_tag__wIcdd {
|
|
32
|
+
color: #666;
|
|
33
|
+
background-color: #f3f4ff;
|
|
34
|
+
border-color: transparent;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
position: relative;
|
|
37
|
+
}
|
|
38
|
+
.index-module_annotatedBox__gmg-f .index-module_tag__wIcdd.index-module_disabled__OuTHq {
|
|
39
|
+
color: #ccc;
|
|
40
|
+
background-color: #f5f5f5;
|
|
41
|
+
cursor: not-allowed;
|
|
42
|
+
}
|
|
43
|
+
.index-module_annotatedBox__gmg-f .index-module_tag__wIcdd.index-module_selected__UhwdY {
|
|
44
|
+
color: #fff;
|
|
45
|
+
background-color: #666fff;
|
|
46
|
+
}
|
|
47
|
+
.index-module_annotatedBox__gmg-f .index-module_tag__wIcdd .index-module_highlight__g25J2 {
|
|
48
|
+
position: absolute;
|
|
49
|
+
right: -5px;
|
|
50
|
+
top: -5px;
|
|
51
|
+
}
|
|
52
|
+
.index-module_container__RwV5P {
|
|
53
|
+
padding: 12px 20px;
|
|
54
|
+
}
|
|
55
|
+
.index-module_container__RwV5P .index-module_content__vHpS9 {
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
margin-top: 4px;
|
|
59
|
+
}
|
|
27
60
|
.index-module_latexEditor__0fK8G {
|
|
28
61
|
line-height: 32px;
|
|
29
62
|
background-color: #ededed;
|
|
@@ -99,6 +132,41 @@
|
|
|
99
132
|
.index-module_outputDisplay__5dS48 .index-module_content__Iml6l .markdown-body {
|
|
100
133
|
font-size: 14px;
|
|
101
134
|
}
|
|
135
|
+
.index-module_tagList__cvWor {
|
|
136
|
+
padding: 0px 16px 16px 16px;
|
|
137
|
+
}
|
|
138
|
+
.index-module_tagList__cvWor .index-module_content__Jy4jf {
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-wrap: nowrap;
|
|
141
|
+
margin-top: 16px;
|
|
142
|
+
}
|
|
143
|
+
.index-module_tagList__cvWor .index-module_left__r1ebR {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
}
|
|
147
|
+
.index-module_tagList__cvWor .index-module_right__RHSL5 {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-wrap: wrap;
|
|
150
|
+
}
|
|
151
|
+
.index-module_tagList__cvWor .index-module_right__RHSL5 .ant-tag-checkable {
|
|
152
|
+
border: 1px solid #D9D9D9;
|
|
153
|
+
margin: 4px;
|
|
154
|
+
display: flex;
|
|
155
|
+
}
|
|
156
|
+
.index-module_tagList__cvWor .index-module_right__RHSL5 .index-module_tagItem__hicyz {
|
|
157
|
+
display: flex;
|
|
158
|
+
max-width: 60px;
|
|
159
|
+
}
|
|
160
|
+
.index-module_tagList__cvWor .index-module_right__RHSL5 .index-module_disabled__lpoBn {
|
|
161
|
+
animation: none;
|
|
162
|
+
transition: none;
|
|
163
|
+
background: transparent;
|
|
164
|
+
}
|
|
165
|
+
.index-module_tagList__cvWor .index-module_right__RHSL5 .index-module_active__8fZjL {
|
|
166
|
+
background-color: #4689ff;
|
|
167
|
+
border-color: #4689ff;
|
|
168
|
+
color: #fff;
|
|
169
|
+
}
|
|
102
170
|
.index-module_form__rwjRm {
|
|
103
171
|
margin-bottom: 16px;
|
|
104
172
|
}
|
|
@@ -1363,7 +1431,6 @@
|
|
|
1363
1431
|
max-height: calc(100vh - 61px);
|
|
1364
1432
|
display: flex;
|
|
1365
1433
|
flex-direction: column;
|
|
1366
|
-
max-height: 300px;
|
|
1367
1434
|
overflow-y: auto;
|
|
1368
1435
|
}
|
|
1369
1436
|
.bee-sidebar .sensebee-radio-group .ant-radio-wrapper,
|
|
@@ -2805,6 +2872,7 @@
|
|
|
2805
2872
|
background-color: #ffffff;
|
|
2806
2873
|
overflow-y: auto;
|
|
2807
2874
|
flex: auto;
|
|
2875
|
+
position: relative;
|
|
2808
2876
|
}
|
|
2809
2877
|
.bee-LLMView .ant-layout {
|
|
2810
2878
|
flex: 1;
|
|
@@ -2827,7 +2895,7 @@
|
|
|
2827
2895
|
width: 100%;
|
|
2828
2896
|
}
|
|
2829
2897
|
.bee-LLMView .bee-LLMView-tag {
|
|
2830
|
-
color: #
|
|
2898
|
+
color: #666fff;
|
|
2831
2899
|
background: #eeefff;
|
|
2832
2900
|
height: 20px;
|
|
2833
2901
|
padding: 0px 8px;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var index$1=require("./components/AnnotationView/index.js"),pointCloudAnnotationView=require("./components/AnnotationView/pointCloudAnnotationView.js"),index$2=require("./components/LLMToolView/questionView/index.js"),index$3=require("./components/NLPToolView/textContent/index.js"),lbUtils=require("@labelbee/lb-utils"),React=require("react"),reactI18next=require("react-i18next"),reactRedux=require("react-redux"),App=require("./App.js"),configureStore=require("./configureStore.js"),actionCreators=require("./store/annotation/actionCreators.js"),TagToolInstanceAdaptorI18nProvider=require("./components/videoAnnotate/videoTagTool/TagToolInstanceAdaptorI18nProvider.js"),PointCloudContext=require("./components/pointCloudView/PointCloudContext.js"),ctx=require("./store/ctx.js"),index$5=require("./components/predictTracking/predictTrackingIcon/index.js"),index$4=require("./components/LLMToolView/index.js"),index$6=require("./views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js"),index$7=require("./components/measureCanvas/index.js"),index$8=require("./constant/index.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t));const store=configureStore(),OutputApp=(e,t)=>{const[r,a]=React.useState();return React.useImperativeHandle(t,()=>({toolInstance:r,annotationEngine:store.getState().annotation.annotationEngine,pageBackwardActions:()=>store.dispatch(actionCreators.PageBackward()),pageForwardActions:()=>store.dispatch(actionCreators.PageForward()),pageJump:o=>{const n=~~o-1;store.dispatch(actionCreators.PageJump(n))},hello:()=>alert("hello labelBee!!!")}),[r]),React__default.default.createElement(reactRedux.Provider,{store,context:ctx.LabelBeeContext},React__default.default.createElement(reactI18next.I18nextProvider,{i18n:lbUtils.i18n},React__default.default.createElement(PointCloudContext.PointCloudProvider,null,React__default.default.createElement(App,__spreadProps(__spreadValues({},e),{setToolInstance:o=>{var n;a(o),(n=e.onLoad)==null||n.call(e,{toolInstance:o})}})))))};var index=React__default.default.forwardRef(OutputApp);exports.AnnotationView=index$1,exports.PointCloudAnnotationView=pointCloudAnnotationView,exports.QuestionView=index$2.default,exports.TextContent=index$3,Object.defineProperty(exports,"i18n",{enumerable:!0,get:function(){return lbUtils.i18n}}),exports.VideoTagTool=TagToolInstanceAdaptorI18nProvider.VideoTagTool,exports.PredictTracking=index$5,exports.LLMToolView=index$4,exports.SwitchCuboidBoxIn2DView=index$6,exports.MeasureCanvas=index$7,Object.defineProperty(exports,"EDataFormatType",{enumerable:!0,get:function(){return index$
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var index$1=require("./components/AnnotationView/index.js"),pointCloudAnnotationView=require("./components/AnnotationView/pointCloudAnnotationView.js"),index$2=require("./components/LLMToolView/questionView/index.js"),index$3=require("./components/NLPToolView/textContent/index.js"),lbUtils=require("@labelbee/lb-utils"),React=require("react"),reactI18next=require("react-i18next"),reactRedux=require("react-redux"),App=require("./App.js"),configureStore=require("./configureStore.js"),actionCreators=require("./store/annotation/actionCreators.js"),TagToolInstanceAdaptorI18nProvider=require("./components/videoAnnotate/videoTagTool/TagToolInstanceAdaptorI18nProvider.js"),PointCloudContext=require("./components/pointCloudView/PointCloudContext.js"),ctx=require("./store/ctx.js"),index$5=require("./components/predictTracking/predictTrackingIcon/index.js"),index$4=require("./components/LLMToolView/index.js"),index$6=require("./views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js"),index$7=require("./components/measureCanvas/index.js"),index$8=require("./views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.js"),index$9=require("./views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.js"),index$a=require("./constant/index.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t));const store=configureStore(),OutputApp=(e,t)=>{const[r,a]=React.useState();return React.useImperativeHandle(t,()=>({toolInstance:r,annotationEngine:store.getState().annotation.annotationEngine,pageBackwardActions:()=>store.dispatch(actionCreators.PageBackward()),pageForwardActions:()=>store.dispatch(actionCreators.PageForward()),pageJump:o=>{const n=~~o-1;store.dispatch(actionCreators.PageJump(n))},hello:()=>alert("hello labelBee!!!")}),[r]),React__default.default.createElement(reactRedux.Provider,{store,context:ctx.LabelBeeContext},React__default.default.createElement(reactI18next.I18nextProvider,{i18n:lbUtils.i18n},React__default.default.createElement(PointCloudContext.PointCloudProvider,null,React__default.default.createElement(App,__spreadProps(__spreadValues({},e),{setToolInstance:o=>{var n;a(o),(n=e.onLoad)==null||n.call(e,{toolInstance:o})}})))))};var index=React__default.default.forwardRef(OutputApp);exports.AnnotationView=index$1,exports.PointCloudAnnotationView=pointCloudAnnotationView,exports.QuestionView=index$2.default,exports.TextContent=index$3,Object.defineProperty(exports,"i18n",{enumerable:!0,get:function(){return lbUtils.i18n}}),exports.VideoTagTool=TagToolInstanceAdaptorI18nProvider.VideoTagTool,exports.PredictTracking=index$5,exports.LLMToolView=index$4,exports.SwitchCuboidBoxIn2DView=index$6,exports.MeasureCanvas=index$7,exports.AnnotatedBox=index$8,exports.FindTrackIDIndex=index$9.FindTrackIDIndexInCheckMode,Object.defineProperty(exports,"EDataFormatType",{enumerable:!0,get:function(){return index$a.EDataFormatType}}),Object.defineProperty(exports,"ELLMDataType",{enumerable:!0,get:function(){return index$a.ELLMDataType}}),Object.defineProperty(exports,"EStepType",{enumerable:!0,get:function(){return index$a.EStepType}}),Object.defineProperty(exports,"ESubmitType",{enumerable:!0,get:function(){return index$a.ESubmitType}}),exports.componentCls=index$a.componentCls,exports.prefix=index$a.prefix,exports.default=index,exports.store=store;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var zustand=require("zustand");const useAnnotatedBoxStore=zustand.create(e=>({ptCtx:{},pointCloudBoxList:[],setPointCloudBoxList:t=>e(s=>({pointCloudBoxList:t})),highlightIDs:[],setHighlightIDs:t=>e(s=>({highlightIDs:t})),selectedIDs:[],setSelectedIDs:t=>e(s=>({selectedIDs:t})),setPtCtx:t=>e(s=>({ptCtx:t}))}));module.exports=useAnnotatedBoxStore;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { DrawLayerSlot } from '@/types/main';
|
|
2
3
|
interface IProps {
|
|
3
4
|
checkMode?: boolean;
|
|
4
5
|
annotation?: any;
|
|
5
6
|
showTips?: boolean;
|
|
6
7
|
tips?: string;
|
|
8
|
+
drawLayerSlot?: DrawLayerSlot;
|
|
7
9
|
}
|
|
8
10
|
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
9
11
|
children?: React.ReactNode;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ILLMToolConfig, IAnswerList } from '@/components/LLMToolView/types';
|
|
2
|
+
import { ILLMToolConfig, IAnswerList, IConfigUpdate } from '@/components/LLMToolView/types';
|
|
3
3
|
interface IProps {
|
|
4
4
|
list?: IAnswerList[];
|
|
5
|
-
|
|
5
|
+
disabeledAll?: boolean;
|
|
6
6
|
LLMConfig?: ILLMToolConfig;
|
|
7
|
-
updateValue: (
|
|
8
|
-
order: number;
|
|
9
|
-
value: number | string | {
|
|
10
|
-
key: string;
|
|
11
|
-
value: number | boolean;
|
|
12
|
-
};
|
|
13
|
-
key?: string;
|
|
14
|
-
}) => void;
|
|
7
|
+
updateValue: (value: IConfigUpdate) => void;
|
|
15
8
|
}
|
|
16
9
|
declare const AnswerList: (props: IProps) => React.JSX.Element;
|
|
17
10
|
export default AnswerList;
|
|
@@ -4,7 +4,7 @@ interface IProps {
|
|
|
4
4
|
setSortList: (value: IAnswerSort[][]) => void;
|
|
5
5
|
sortList: IAnswerSort[][];
|
|
6
6
|
waitSortList: IWaitAnswerSort[];
|
|
7
|
-
|
|
7
|
+
disabeledAll?: boolean;
|
|
8
8
|
}
|
|
9
9
|
declare const AnswerSort: (props: IProps) => React.JSX.Element;
|
|
10
10
|
export default AnswerSort;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ILLMToolConfig, ITextList } from '@/components/LLMToolView/types';
|
|
3
3
|
interface IProps {
|
|
4
4
|
textAttribute: ITextList[];
|
|
5
|
-
|
|
5
|
+
disabeledAll?: boolean;
|
|
6
6
|
LLMConfig?: ILLMToolConfig;
|
|
7
7
|
setText: (value: ITextList[]) => void;
|
|
8
8
|
}
|
|
@@ -4,7 +4,5 @@ interface IProps {
|
|
|
4
4
|
dispatch: any;
|
|
5
5
|
checkMode?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: import("react-redux").ConnectedComponent<React.
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
}, "annotation" | "dispatch">>;
|
|
7
|
+
declare const _default: import("react-redux").ConnectedComponent<(props: IProps) => React.JSX.Element, import("react-redux").Omit<IProps, "annotation" | "dispatch">>;
|
|
10
8
|
export default _default;
|
|
@@ -20,6 +20,7 @@ export interface IAnswerList {
|
|
|
20
20
|
};
|
|
21
21
|
newAnswer?: string;
|
|
22
22
|
url?: string;
|
|
23
|
+
tagList?: ISelectedTags;
|
|
23
24
|
}
|
|
24
25
|
export interface IModelAPIAnswer {
|
|
25
26
|
id: string;
|
|
@@ -52,6 +53,8 @@ export interface ILLMToolConfig {
|
|
|
52
53
|
};
|
|
53
54
|
isTextEdit: boolean;
|
|
54
55
|
textEdit: ITextList[];
|
|
56
|
+
tagInputListConfigurable: boolean;
|
|
57
|
+
inputList?: IInputList[];
|
|
55
58
|
}
|
|
56
59
|
export interface ITextList {
|
|
57
60
|
textId?: string;
|
|
@@ -89,5 +92,29 @@ export interface ILLMBoxResult {
|
|
|
89
92
|
id: number;
|
|
90
93
|
sort?: number[][];
|
|
91
94
|
textAttribute?: ITextList[];
|
|
95
|
+
valid: boolean;
|
|
96
|
+
tagList?: ISelectedTags;
|
|
97
|
+
}
|
|
98
|
+
export interface IInputList {
|
|
99
|
+
key: string;
|
|
100
|
+
value: string;
|
|
101
|
+
isMulti: boolean;
|
|
102
|
+
isOverall: boolean;
|
|
103
|
+
subSelected: Array<{
|
|
104
|
+
key: string;
|
|
105
|
+
value: string;
|
|
106
|
+
isDefault: boolean;
|
|
107
|
+
}>;
|
|
108
|
+
}
|
|
109
|
+
export interface ISelectedTags {
|
|
110
|
+
[key: string]: string[];
|
|
111
|
+
}
|
|
112
|
+
export interface IConfigUpdate {
|
|
113
|
+
order: number;
|
|
114
|
+
value: number | string | {
|
|
115
|
+
key: string;
|
|
116
|
+
value?: number | boolean | string[];
|
|
117
|
+
};
|
|
118
|
+
key?: string;
|
|
92
119
|
}
|
|
93
120
|
export {};
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
+
import { IAnswerList, IAnswerSort, ILLMBoxResult, ILLMToolConfig, IWaitAnswerSort, IInputList, ISelectedTags } from '../types';
|
|
1
2
|
export declare const getCurrentResultFromResultList: (result: string) => any;
|
|
2
3
|
export declare const formatSort: (sortList: any) => any;
|
|
4
|
+
export declare const getTagResult: (inputList: IInputList[], result?: ISelectedTags) => {};
|
|
5
|
+
export declare const getWaitSortList: (answerList: IAnswerList[], result?: ILLMBoxResult) => {
|
|
6
|
+
newSort: IAnswerSort[][];
|
|
7
|
+
waitSorts: IWaitAnswerSort[];
|
|
8
|
+
};
|
|
9
|
+
export declare const initAnswerList: (initValue: IAnswerList[], LLMConfig?: ILLMToolConfig) => IAnswerList[];
|
|
10
|
+
export declare const getRenderDataByResult: (LLMConfig?: ILLMToolConfig, result?: ILLMBoxResult) => {
|
|
11
|
+
newSort: IAnswerSort[][];
|
|
12
|
+
waitSorts: IWaitAnswerSort[];
|
|
13
|
+
answerList: IAnswerList[];
|
|
14
|
+
tagList: ISelectedTags;
|
|
15
|
+
textAttribute: import("../types").ITextList[] | undefined;
|
|
16
|
+
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IExtraLayer, ISelectText, IExtraData } from './types';
|
|
3
3
|
interface IProps {
|
|
4
|
-
activeToolPanel?: string;
|
|
5
4
|
checkMode?: boolean;
|
|
6
5
|
annotation?: any;
|
|
7
6
|
showTips?: boolean;
|
|
8
7
|
tips?: string;
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
extraLayer?: (value: IExtraLayer) => void;
|
|
9
|
+
extraData?: IExtraData;
|
|
10
|
+
onChangeAnnotation?: (v: ISelectText) => void;
|
|
11
|
+
customAnnotationData?: ISelectText;
|
|
11
12
|
}
|
|
12
13
|
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
13
14
|
children?: React.ReactNode;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file extra mask
|
|
3
|
+
* @author lixinghua <lixinghua_vendor@sensetime.com>
|
|
4
|
+
* @date 2024.01.30
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { IExtraData, IExtraInterval } from '../types';
|
|
8
|
+
declare const _default: ({ splitIntervals, extraData, }: {
|
|
9
|
+
splitIntervals: IExtraInterval[];
|
|
10
|
+
extraData?: IExtraData | undefined;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
|
+
export default _default;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { INLPToolConfig, ITextData, INLPTextAnnotation,
|
|
1
|
+
import React, { RefObject } from 'react';
|
|
2
|
+
import { INLPToolConfig, ITextData, INLPTextAnnotation, ISelectText, IExtraLayer, IExtraData } from '../types';
|
|
3
3
|
interface IProps {
|
|
4
4
|
highlightKey?: string;
|
|
5
5
|
textData: ITextData[];
|
|
6
6
|
textAnnotation: INLPTextAnnotation[];
|
|
7
7
|
lang?: string;
|
|
8
|
-
checkMode?: boolean;
|
|
9
8
|
NLPConfig?: INLPToolConfig;
|
|
10
9
|
answerHeaderSlot?: React.ReactDOM | string;
|
|
11
|
-
onSelectionChange?: (text: string) => void;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
activeToolPanel?: string;
|
|
10
|
+
onSelectionChange?: (contentRef: RefObject<HTMLDivElement>, text: string) => void;
|
|
11
|
+
extraLayer?: (values: IExtraLayer) => void;
|
|
12
|
+
extraData?: IExtraData;
|
|
13
|
+
customAnnotationData?: ISelectText;
|
|
16
14
|
}
|
|
17
15
|
declare const WrapQuestionView: (props: IProps) => React.JSX.Element;
|
|
18
16
|
export default WrapQuestionView;
|
|
@@ -48,28 +48,35 @@ export interface INLPInterval {
|
|
|
48
48
|
}
|
|
49
49
|
export interface ISelectText {
|
|
50
50
|
id?: string;
|
|
51
|
-
start
|
|
52
|
-
end
|
|
53
|
-
text
|
|
51
|
+
start: number;
|
|
52
|
+
end: number;
|
|
53
|
+
text: string;
|
|
54
|
+
endPosition?: React.CSSProperties;
|
|
54
55
|
}
|
|
55
|
-
export interface
|
|
56
|
+
export interface IExtraLayer {
|
|
56
57
|
style: React.CSSProperties | undefined;
|
|
57
58
|
onClose: () => void;
|
|
58
|
-
submitData
|
|
59
|
+
submitData?: ISelectText;
|
|
59
60
|
}
|
|
60
|
-
export interface
|
|
61
|
+
export interface IExtraInterval {
|
|
61
62
|
start: number;
|
|
62
63
|
end: number;
|
|
63
|
-
|
|
64
|
+
extraAnnotations?: IExtraInAnnotation[];
|
|
64
65
|
text: string;
|
|
65
66
|
attribute?: string;
|
|
66
67
|
id?: string;
|
|
67
68
|
}
|
|
68
|
-
export interface
|
|
69
|
-
auditID
|
|
69
|
+
export interface IExtraInAnnotation {
|
|
70
|
+
auditID?: number;
|
|
70
71
|
text: string;
|
|
71
|
-
id
|
|
72
|
+
id?: string;
|
|
72
73
|
start: number;
|
|
73
74
|
end: number;
|
|
74
|
-
uuid
|
|
75
|
+
uuid?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface IExtraData {
|
|
78
|
+
isShowRemark?: boolean;
|
|
79
|
+
hoverAuditID?: number;
|
|
80
|
+
editAuditID?: number;
|
|
81
|
+
displayRemarkList: IExtraInAnnotation[];
|
|
75
82
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Used to cover container and prompt
|
|
3
|
+
* @author lixinghua <lixinghua_vendor@sensetime.com>
|
|
4
|
+
* @date 2024.03.13
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
declare const _default: ({ message, style }: {
|
|
8
|
+
message: string;
|
|
9
|
+
style?: React.CSSProperties | undefined;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export default _default;
|
|
@@ -38,8 +38,11 @@ export interface IPointCloudContext extends IPointCloudContextInstances, IPointC
|
|
|
38
38
|
selectedPointCloudBox?: IPointCloudBox;
|
|
39
39
|
setPointCloudValid: (valid?: boolean) => void;
|
|
40
40
|
addSelectedID: (selectedID: string) => void;
|
|
41
|
+
addHighlightID: (highlightID: number) => void;
|
|
41
42
|
selectedAllBoxes: () => void;
|
|
42
43
|
selectedID: string;
|
|
44
|
+
highlightIDs: number[];
|
|
45
|
+
setHighlightIDs: (ids: number[]) => void;
|
|
43
46
|
addPointCloudBox: (boxParams: IPointCloudBox) => IPointCloudBox[];
|
|
44
47
|
addPointCloudSphere: (sphereParams: IPointCloudSphere) => IPointCloudSphere[];
|
|
45
48
|
polygonList: IPolygonData[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface IInputList {
|
|
2
|
+
key: string;
|
|
3
|
+
value: string;
|
|
4
|
+
isMulti: boolean;
|
|
5
|
+
isOverall: boolean;
|
|
6
|
+
subSelected: Array<{
|
|
7
|
+
key: string;
|
|
8
|
+
value: string;
|
|
9
|
+
isDefault: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
export interface ISelectedTags {
|
|
13
|
+
[key: string]: string[];
|
|
14
|
+
}
|
|
15
|
+
export interface ITagListProps {
|
|
16
|
+
updateValue: (value: {
|
|
17
|
+
key: string;
|
|
18
|
+
value: string[];
|
|
19
|
+
}) => void;
|
|
20
|
+
inputList?: IInputList[];
|
|
21
|
+
selectedTags: ISelectedTags;
|
|
22
|
+
disabeledAll?: boolean;
|
|
23
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -11,11 +11,13 @@ import PredictTracking from '@/components/predictTracking';
|
|
|
11
11
|
import LLMToolView from '@/components/LLMToolView';
|
|
12
12
|
import SwitchCuboidBoxIn2DView from '@/views/MainView/toolFooter/SwitchCuboidBoxIn2DView';
|
|
13
13
|
import MeasureCanvas from './components/measureCanvas';
|
|
14
|
+
import AnnotatedBox from './views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox';
|
|
15
|
+
import { FindTrackIDIndexInCheckMode as FindTrackIDIndex } from './views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex';
|
|
14
16
|
export declare const store: import("redux").Store<{}, import("redux").Action<any>> & {
|
|
15
17
|
dispatch: unknown;
|
|
16
18
|
};
|
|
17
19
|
declare const _default: React.ForwardRefExoticComponent<AppProps & React.RefAttributes<unknown>>;
|
|
18
20
|
export default _default;
|
|
19
|
-
export { AnnotationView, PointCloudAnnotationView, QuestionView, TextContent, LLMToolView, i18n, VideoTagTool, PredictTracking, SwitchCuboidBoxIn2DView, MeasureCanvas };
|
|
21
|
+
export { AnnotationView, PointCloudAnnotationView, QuestionView, TextContent, LLMToolView, i18n, VideoTagTool, PredictTracking, SwitchCuboidBoxIn2DView, MeasureCanvas, AnnotatedBox, FindTrackIDIndex, };
|
|
20
22
|
export * from './constant';
|
|
21
23
|
export * from './typeTem';
|