@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
|
-
import
|
|
1
|
+
import m,{useState as p,useRef as v,useEffect as L}from"react";import{connect as A}from"react-redux";import S from"../../../../components/attributeList/index.js";import g from"../../../../utils/StepUtils.js";import{jsonParser as I}from"../../../../utils/index.js";import{useTranslation as h}from"react-i18next";import{EToolName as x}from"../../../../data/enums/ToolType.js";import{LabelBeeContext as T}from"../../../../store/ctx.js";const _=e=>{var r;const[a,l]=p(0),u=v(null),{toolInstance:t}=e,{t:f}=h(),b=o=>{t==null||t.setAttributeLockList(o)};if(L(()=>(t&&t.singleOn("changeAttributeSidebar",o=>{var s;l(n=>n+1),!!u.current&&((s=u.current.children[o])==null||s.scrollIntoView({block:"center"}))}),()=>{t==null||t.unbindAll("changeAttributeSidebar")}),[t,u]),!e.stepInfo)return null;const i=I(e.stepInfo.config),c=e.stepInfo.tool===x.ScribbleTool;if(i.attributeConfigurable!==!0&&!c)return null;if((i.attributeConfigurable===!0||c)&&(i==null?void 0:i.attributeList)){const o=i.attributeList.map(n=>({label:n.key,value:n.value,color:n==null?void 0:n.color}));c||o.unshift({label:f("NoAttribute"),value:""});const s=n=>{t&&(t.setDefaultAttribute(n),l(d=>d+1))};return m.createElement(S,{list:o,attributeChanged:s,selectedAttribute:(r=t==null?void 0:t.defaultAttribute)!=null?r:"",ref:u,attributeLockChange:b})}return null},j=e=>{var r,a;const l=g.getCurrentStepInfo((r=e.annotation)==null?void 0:r.step,(a=e.annotation)==null?void 0:a.stepList);return{toolInstance:e.annotation.toolInstance,stepInfo:l}};var C=A(j,null,null,{context:T})(_);export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{TEXT_ATTRIBUTE_MAX_LENGTH as m}from"../../../../data/enums/ToolType.js";import{TextUtils as C}from"../../../../utils/TextUtils.js";import{Tooltip as
|
|
1
|
+
import{TEXT_ATTRIBUTE_MAX_LENGTH as m}from"../../../../data/enums/ToolType.js";import{TextUtils as C}from"../../../../utils/TextUtils.js";import{Tooltip as _,message as i,Input as k}from"antd/es";import t,{useState as r,useEffect as E}from"react";import A from"../../../../assets/annotation/common/icon_clearSmall_a.svg.js";import I from"../../../../assets/annotation/common/icon_clearSmall.svg.js";import{classnames as T}from"../../../../utils/index.js";import{useTranslation as F}from"react-i18next";const L=v=>{const{t:n}=F(),{onChange:o,textValue:a,checkString:u,textCheckType:d}=v,[p,s]=r(0),[l,c]=r(!1),[g,x]=r(!1),[h,f]=r(!1),y=t.createElement("a",null,t.createElement(_,{placement:"bottom",title:n("EmptyTextInput")},t.createElement("img",{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),style:{marginLeft:6},src:h?A:I,onClick:e=>{e.stopPropagation(),o("")}}))),N=e=>{e.stopPropagation()};E(()=>{a&&s(a.length)},[]),E(()=>{var e;if(a===void 0||a==="")c(!1);else try{a&&c(!new RegExp(u).test(a))}catch(j){c(!0),i.destroy(),i.error(n("RegularExpIncorrectly"))}s((e=a==null?void 0:a.length)!=null?e:0)},[a]);const w=e=>{if(l||!new RegExp(u).test(e.target.value))return o(""),i.error(C.getErrorNotice(d)),!0;o(e.target.value,!0)};return t.createElement("div",{className:"textInputContainer"},t.createElement("div",{className:"label"},n("TextInput"),y),t.createElement("div",{className:T({textareaContainer:!0,focus:g})},t.createElement("div",{className:T({toolTextAreaBox:!0,toolTextAreaBoxFocus:g})},t.createElement(k.TextArea,{style:{resize:"none",height:120,wordBreak:"break-all"},maxLength:m,onKeyDownCapture:e=>{e.stopPropagation()},onKeyUpCapture:e=>{e.stopPropagation()},onChange:e=>{o(e.target.value),s(e.target.value.length)},onFocus:e=>x(!0),onBlur:e=>{w(e),x(!1)},value:a,onKeyDown:N,className:l?"warning":""}),t.createElement("div",{className:"textAreaFooter"},t.createElement("span",{className:"wordCount"},t.createElement("span",{className:p>m||l?"warning":""},p),"/",t.createElement("span",null,m))))))};export{L as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o,{useState as u,useEffect as h,useRef as I}from"react";import{connect as M}from"react-redux";import{cloneDeep as z}from"lodash";import{classnames as S}from"../../../../utils/index.js";import{Switch as W,Input as J}from"antd/es";import{cKeyCode as G,cTool as H}from"@labelbee/lb-annotation";import{PageForward as Q}from"../../../../store/annotation/actionCreators.js";import{ConfigUtils as X}from"../../../../utils/ConfigUtils.js";import{useTranslation as A}from"react-i18next";import{LabelBeeContext as Y}from"../../../../store/ctx.js";var Z=Object.defineProperty,K=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,$=(e,t,r)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ne=(e,t)=>{for(var r in t||(t={}))ee.call(t,r)&&$(e,r,t[r]);if(K)for(var r of K(t))te.call(t,r)&&$(e,r,t[r]);return e};const j=G.default,{EVideoToolName:oe}=H,V=e=>{e.stopPropagation(),e.nativeEvent.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},D=e=>{const{textareaProps:t,footer:r}=e;return o.createElement(o.Fragment,null,o.createElement(J.TextArea,ne({key:`${t.id}-${t.defaultValue}`,bordered:!1,rows:6,onKeyDown:V,onKeyUp:V},t)),o.createElement("div",{className:S({textAreaLength:!0})},r))},q=e=>{var t;const r=I(null),[E,
|
|
1
|
+
import o,{useState as u,useEffect as h,useRef as I}from"react";import{connect as M}from"react-redux";import{cloneDeep as z}from"lodash";import{classnames as S}from"../../../../utils/index.js";import{Switch as W,Input as J}from"antd/es";import{cKeyCode as G,cTool as H}from"@labelbee/lb-annotation";import{PageForward as Q}from"../../../../store/annotation/actionCreators.js";import{ConfigUtils as X}from"../../../../utils/ConfigUtils.js";import{useTranslation as A}from"react-i18next";import{LabelBeeContext as Y}from"../../../../store/ctx.js";var Z=Object.defineProperty,K=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,$=(e,t,r)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ne=(e,t)=>{for(var r in t||(t={}))ee.call(t,r)&&$(e,r,t[r]);if(K)for(var r of K(t))te.call(t,r)&&$(e,r,t[r]);return e};const j=G.default,{EVideoToolName:oe}=H,V=e=>{e.stopPropagation(),e.nativeEvent.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},D=e=>{const{textareaProps:t,footer:r}=e;return o.createElement(o.Fragment,null,o.createElement(J.TextArea,ne({key:`${t.id}-${t.defaultValue}`,bordered:!1,rows:6,onKeyDown:V,onKeyUp:V},t)),o.createElement("div",{className:S({textAreaLength:!0})},r))},q=e=>{var t;const r=I(null),[E,f]=u(!1),[N,P]=u(!1),{t:w}=A(),{disabled:s,config:i,result:m,updateText:p,index:d,switchToNextTextarea:y,hasMultiple:L,onNext:b}=e,{maxLength:g}=i,c=m?m[i.key]:"",[_,C]=u((t=c==null?void 0:c.length)!=null?t:0);h(()=>{var n;C((n=c==null?void 0:c.length)!=null?n:0)},[c]);const v=(n,T)=>{p&&(p(n,i.key,T),i.required&&P(!n))},x=L&&y,k={id:`textInput-${d}`,ref:r,disabled:s,defaultValue:c,maxLength:g,autoSize:{minRows:2,maxRows:6},onChange:n=>{const T=n.target.value;C(n.target.value.length),v(T,!1)},onFocus:()=>{f(!0)},onBlur:n=>{f(!1),v(n.target.value,!0),i.required&&P(!n.target.value)},style:{resize:"none",wordBreak:"break-all"},onKeyDownCapture:n=>{n.ctrlKey&&n.keyCode===j.Enter&&(b&&b(),n.preventDefault()),n.keyCode===j.Tab&&x&&(n.preventDefault(),n.nativeEvent.stopImmediatePropagation(),y(d)),n.nativeEvent.stopPropagation()}},F=o.createElement("div",{className:"textAreaFooter"},o.createElement("div",{className:"hotkeyTip"},x&&o.createElement("span",null,`[${w("Switch")}]Tab`),o.createElement("span",null,`[${w("TurnPage")}]Ctrl+Enter`)),o.createElement("div",{className:"wordCount"},o.createElement("span",{className:_>=g?"warning":""},_),"/",o.createElement("span",null,g)));return h(()=>{s&&f(!1)},[s]),o.createElement("div",{className:"textField"},o.createElement("div",{className:"label"},o.createElement("span",{className:S({required:i.required})},i.label),o.createElement("i",{className:S({clearText:!0,disabled:s}),onClick:()=>{s||v("",!0)}})),o.createElement("div",{className:S({disabled:s,"textarea-outline":!0,"ant-input-focused":E,textareaContainer:!0,focus:E,invalid:N})},o.createElement(D,{footer:F,textareaProps:k})))},ae=({toolInstance:e,imgIndex:t,dispatch:r,triggerEventAfterIndexChanged:E,step:f,stepList:N,basicResultList:P,disabled:w})=>{var s,i,m,p;const[d,y]=u([]),[L,b]=u(0),[g,c]=u(!0),[,_]=u(0),{t:C}=A(),v=a=>{const l=(a+1)%d.length;x(l)},x=a=>{setTimeout(()=>{const l=document.getElementById(`textInput-${a}`);l&&(b(a),l.focus(),l.select(),l.scrollIntoView({behavior:"smooth",block:"center"}))})};h(()=>{e&&e.singleOn("valueUpdated",()=>{_(a=>a+1)})},[e]),h(()=>{var a;e&&y(z((a=e==null?void 0:e.config)==null?void 0:a.configList))},[JSON.stringify((s=e==null?void 0:e.config)==null?void 0:s.configList)]);const k=(p=(m=(i=e==null?void 0:e.textList)==null?void 0:i[0])==null?void 0:m.value)!=null?p:{},F=(a,l,U=!1)=>{var O,R;(R=e==null?void 0:e.updateTextValue)==null||R.call(e,l,a,U,(O=e==null?void 0:e.textList)==null?void 0:O[0])};h(()=>{t>-1&&E&&x(0)},[t]);const n=()=>{r(Q(!0))},T=a=>{c(a),e==null||e.toggleShowText(a)},B=X.getStepConfig(N,f).tool===oe.VideoTextTool;return e&&o.createElement("div",{className:"textToolOperationMenu"},d.map((a,l)=>o.createElement(q,{config:a,key:a.key,index:l,result:k,updateText:F,switchToNextTextarea:v,hasMultiple:d.length>1,focus:L===l,onNext:n,disabled:w})),B&&o.createElement("div",{className:"textToolSwitchItem"},C("toggleShowText"),o.createElement(W,{style:{alignSelf:"center"},checked:g,onChange:a=>{T(a)}})))};function re(e){return{toolInstance:e.annotation.toolInstance,imgIndex:e.annotation.imgIndex,step:e.annotation.step,basicResultList:e.annotation.basicResultList,stepList:e.annotation.stepList,triggerEventAfterIndexChanged:e.annotation.triggerEventAfterIndexChanged}}var le=M(re,null,null,{context:Y})(ae);export{q as SingleTextInput,D as TextareaWithFooter,le as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EToolName as e}from"../../../data/enums/ToolType.js";import t from"react";import{sidebarCls as s}from"./index.js";import p from"../../../assets/annotation/lineTool/icon_line.svg.js";import
|
|
1
|
+
import{EToolName as e}from"../../../data/enums/ToolType.js";import t from"react";import{sidebarCls as s}from"./index.js";import p from"../../../assets/annotation/lineTool/icon_line.svg.js";import _ from"../../../assets/annotation/lineTool/icon_line_a.svg.js";import v from"../../../assets/annotation/pointTool/icon_point.svg.js";import d from"../../../assets/annotation/pointTool/icon_point_a.svg.js";import u from"../../../assets/annotation/polygonTool/icon_polygon_a.svg.js";import N from"../../../assets/annotation/polygonTool/icon_polygon.svg.js";import T from"../../../assets/annotation/rectTool/icon_rect.svg.js";import f from"../../../assets/annotation/rectTool/icon_rect_a.svg.js";import{cTool as S}from"@labelbee/lb-annotation";import $ from"classnames";import{useTranslation as j}from"react-i18next";const{EPointCloudName:E,TOOL_NAME:y,TOOL_NAME_EN:O}=S,m=[{toolName:e.Rect,commonSvg:T,selectedSvg:f},{toolName:e.Polygon,commonSvg:N,selectedSvg:u},{toolName:e.Line,commonSvg:p,selectedSvg:_},{toolName:e.Point,commonSvg:v,selectedSvg:d}],P=n=>n==="en"?O:y,L=({toolName:n,selectedToolName:r,onChange:l})=>{const{i18n:c}=j(),i=m==null?void 0:m.filter(o=>n===E.PointCloud?[e.Polygon,e.Rect,e.Point,e.Line].includes(o==null?void 0:o.toolName):(o==null?void 0:o.toolName)===n),g=i.length>1;return t.createElement("div",{className:`${s}__level`},i.map(o=>{const a=g&&r===o.toolName;return t.createElement("span",{className:`${s}__toolOption`,key:o.toolName,onClick:()=>l==null?void 0:l(o.toolName)},t.createElement("img",{className:`${s}__singleTool`,src:a?o==null?void 0:o.selectedSvg:o==null?void 0:o.commonSvg}),t.createElement("span",{className:$({[`${s}__toolOption__selected`]:a})},P(c.language)[o.toolName]))}))};export{L as ToolIcons};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{prefix as M}from"../../../constant/index.js";import{EToolName as o}from"../../../data/enums/ToolType.js";import R from"../../../utils/StepUtils.js";import{Collapse as d}from"antd/es";import e,{useState as z}from"react";import{useTranslation as D}from"react-i18next";import G from"./AnnotationText/index.js";import U from"./ClearIcon/index.js";import q,{PointCloudOperation as
|
|
1
|
+
import{prefix as M}from"../../../constant/index.js";import{EToolName as o}from"../../../data/enums/ToolType.js";import R from"../../../utils/StepUtils.js";import{Collapse as d}from"antd/es";import e,{useState as z}from"react";import{useTranslation as D}from"react-i18next";import G from"./AnnotationText/index.js";import U from"./ClearIcon/index.js";import q,{PointCloudOperation as _}from"./GeneralOperation/index.js";import H from"./ImgAttributeInfo/index.js";import J from"./SwitchAttributeList/index.js";import u,{expandIconFuc as L}from"./TagSidebar/index.js";import p from"./TextToolSidebar/index.js";import $ from"./PointCloudToolSidebar/index.js";import Q from"./ToolStyle/index.js";import{cTool as W}from"@labelbee/lb-annotation";import X from"./ScribbleSidebar/index.js";import{ToolIcons as Y}from"./ToolIcons.js";import{useSelector as Z}from"../../../store/ctx.js";import{Tabs as I}from"antd";import{classnames as ee}from"../../../utils/index.js";import P from"../../../assets/annotation/common/icon_menu_fold.svg.js";import te from"../../../components/LLMToolView/sidebar/index.js";import ne from"./NLPSidebar/index.js";import oe from"../../../components/videoAnnotate/videoClipTool/components/annotatedList/index.js";const{EVideoToolName:f,EPointCloudName:re}=W,{Panel:A}=d,t=`${M}-sidebar`,ie=({sider:l,enableColorPicker:w,setSiderWidth:E,propsSiderWidth:le,checkMode:b})=>{const x=Z(r=>R.getCurrentStepInfo(r.annotation.step,r.annotation.stepList)),[c,V]=z(!0),n=x==null?void 0:x.tool,{t:S}=D();if(!n)return null;const k=r=>{const s=e.createElement(Q,null);return e.createElement(A,{header:S("Style"),className:"panel",key:r},s)},T=e.createElement(Y,{toolName:n,onChange:()=>{}}),a=e.createElement(J,null),g=e.createElement(G,null),N=e.createElement(d,{defaultActiveKey:["1","imgAttribute"],bordered:!1,expandIconPosition:"right",className:`${t}__content`,expandIcon:L},k("1")),v=e.createElement(d,{defaultActiveKey:["1","imgAttribute"],bordered:!1,expandIconPosition:"right",className:`${t}__content`,expandIcon:L},e.createElement(A,{header:e.createElement("div",null,S("Adjust"),e.createElement(U,null)),className:"panel",key:"imgAttribute"},e.createElement(H,null))),i=e.createElement(q,null),B=e.createElement(u,null),O=r=>e.createElement(p,{disabled:r}),h=e.createElement(X,{onChange:(r,s)=>{}}),C=e.createElement(oe,null),y=e.createElement(te,{checkMode:b}),j=e.createElement(ne,{checkMode:b}),m=e.createElement("div",{className:`${t}__horizontal`}),F=e.createElement($,{enableColorPicker:w}),K=e.createElement(_,null);if(l)return typeof l=="function"?e.createElement("div",{className:`${t}`},l({toolIcon:T,attributeList:a,annotationText:g,toolStyle:N,imageAttributeInfo:v,operation:i,tagToolSideBar:B,textToolSideBar:O,horizontal:m,pointCloudToolSidebar:F,pointCloudOperation:K,scribbleSidebar:h,LLMSidebar:y,videoClipSidebar:C,NLPSidebar:j})):l;if([o.Rect,o.Point,o.Line,o.Rect,o.Polygon,o.Cuboid].includes(n))return e.createElement("div",{className:`${t}`},T,m,a,g,m,e.createElement("div",{className:`${t}__content`},N,v),i);if(n===o.Tag)return e.createElement("div",{className:`${t}`},e.createElement(u,null));if(n===f.VideoClipTool)return e.createElement("div",{className:`${t}`},e.createElement("div",{className:`${t}__content`},C,a),i);if(n===f.VideoTagTool)return e.createElement("div",{className:`${t}`},e.createElement("div",{className:`${t}__content`},e.createElement(u,null)),i);if(n===f.VideoTextTool)return e.createElement("div",{className:`${t}`},e.createElement(p,null));if(n===o.Text)return e.createElement("div",{className:`${t}`},"s",e.createElement(p,null));if(n===re.PointCloud){const r=()=>{V(!c),E&&E(c?48:void 0)},s=e.createElement("div",{style:{width:"48px",height:"100%",display:"flex",justifyContent:"center",background:"#ffffff"}},e.createElement("span",{onClick:()=>r()},e.createElement("img",{style:{width:"16px",height:"16px",marginTop:"18px",cursor:"pointer",transform:"rotate(180deg)"},src:P})));return c?e.createElement(I,{type:"card",activeKey:"1",className:ee({[`${t}`]:!0,[`${t}__pointCloud`]:!0}),tabBarExtraContent:{left:e.createElement("span",{onClick:()=>r(),style:{padding:"0px 4px"}},e.createElement("img",{style:{width:"16px",height:"16px",marginLeft:"4px",cursor:"pointer"},src:P}))}},e.createElement(I.TabPane,{tab:"\u5DE5\u5177\u9762\u677F",key:"1",style:{height:"100%",display:"flex",flexDirection:"column"}},e.createElement("div",{className:`${t}__content`},e.createElement($,null)),e.createElement(_,null))):s}return n===o.ScribbleTool?e.createElement("div",{className:`${t}`},e.createElement("div",{className:`${t}__content`},h,a),i):n===o.LLM?y:n===o.NLP?j:null};export{ie as default,t as sidebarCls};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PointCloudContext as f}from"../../../../components/pointCloudView/PointCloudContext.js";import{Modal as z}from"antd";import t,{useContext as g,useMemo as k,useState as J}from"react";import{stepConfigSelector as Q}from"../../../../store/annotation/selectors.js";import{useSelector as F}from"../../../../store/ctx.js";import{i18n as
|
|
1
|
+
import{PointCloudContext as f}from"../../../../components/pointCloudView/PointCloudContext.js";import{Modal as z}from"antd";import t,{useContext as g,useMemo as k,useState as J}from"react";import{stepConfigSelector as Q}from"../../../../store/annotation/selectors.js";import{useSelector as F}from"../../../../store/ctx.js";import{i18n as _}from"@labelbee/lb-utils";import{UnorderedListOutlined as j,PushpinFilled as A,EyeInvisibleFilled as X,EyeFilled as Y,CaretDownFilled as Z,DeleteOutlined as tt}from"@ant-design/icons";import{useHistory as et}from"../../../../components/pointCloudView/hooks/useHistory.js";import{getClassName as u}from"../../../../utils/dom.js";import nt from"../../../../utils/StepUtils.js";import{EPointCloudName as ot}from"@labelbee/lb-annotation";import{useTranslation as N}from"react-i18next";import rt from"../FooterPopover.js";import lt from"../../../../components/longText/index.js";var it=Object.defineProperty,at=Object.defineProperties,st=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,R=(e,o,n)=>o in e?it(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,B=(e,o)=>{for(var n in o||(o={}))ct.call(o,n)&&R(e,n,o[n]);if(I)for(var n of I(o))ut.call(o,n)&&R(e,n,o[n]);return e},D=(e,o)=>at(e,st(o));const mt=({attribute:e})=>{const o=g(f),{pointCloudBoxList:n,pointCloudSphereList:i,hideAttributes:m,toggleAttributesVisible:p,polygonList:d,setPolygonList:y,lineList:s,setLineList:C,setPointCloudResult:L,setPointCloudSphereList:c,reRender:T,selectSpecAttr:H,segmentation:w,setSegmentation:V}=o,[E,$]=J(!0),{pushHistoryWithList:G}=et(),O=[...n,...d,...i,...s,...w].filter(r=>r.attribute===e.value),S=()=>{p(e.value)},U=m.includes(e.value),M=({trackID:r,order:l})=>r||l,K=({trackID:r,order:l})=>r?`trackID_${r}`:`order_${l}`,W=r=>{if(O.length===0)return;const l=d.filter(a=>r!==a.attribute),P=n.filter(a=>r!==a.attribute),b=s.filter(a=>r!==a.attribute),h=i.filter(a=>r!==a.attribute),x=w.filter(a=>r!==a.attribute);T(P,l,h,b,x),y(l),L(P),c(h),C(b),V(x),G({pointCloudBoxList:P,polygonList:l,lineList:b,pointCloudSphereList:h,segmentation:x})},q=r=>{z.confirm({content:_.t("onDeleteGraphByAttr",{attribute:r.key}),onOk:()=>{W(r.value)},okText:_.t("Confirm"),cancelText:_.t("Cancel")})};return t.createElement(t.Fragment,null,t.createElement("div",{className:u("annotated-attribute","item")},U?t.createElement(X,{onClick:S}):t.createElement(Y,{onClick:S}),t.createElement(Z,{rotate:E?0:270,onClick:()=>{$(!E)}}),t.createElement("span",{className:u("annotated-attribute","item","text"),style:{width:"100%",overflow:"hidden"},onClick:()=>{H(e.value)}},t.createElement(lt,{text:e.key,openByText:!0})),t.createElement(tt,{onClick:()=>q(e)})),E&&O.map((r,l)=>t.createElement("div",{key:K(D(B({},r),{order:l})),style:{paddingLeft:54}},`${M(D(B({},r),{order:l}))}.${e.key}`)))},v=()=>{const e=F(Q),{attrPanelLayout:o,setAttrPanelLayout:n,pointCloudBoxList:i,pointCloudSphereList:m,polygonList:p,lineList:d,segmentation:y}=g(f),{t:s}=N(),C=k(()=>[...i,...m,...p,...d,...y].map(c=>c.attribute),[i,m,p,d,y]),L=k(()=>e.attributeList.filter(c=>C.includes(c.value)),[C]);return t.createElement("div",{className:u("annotated-attribute")},o?t.createElement("div",{className:u("annotated-attribute","text")},t.createElement("span",null,s("AnnotatedResult")),t.createElement("span",{className:u("annotated-attribute","pin"),onClick:()=>{n("")}},t.createElement(A,null),s("CancelFixed"))):t.createElement("div",{className:u("annotated-attribute","text")},t.createElement("span",{onClick:()=>{n("left")},className:u("annotated-attribute","pin")},t.createElement(A,null),s("FixedOnLeft")),t.createElement("span",{onClick:()=>{n("right")},className:u("annotated-attribute","pin")},t.createElement(A,null),s("FixedOnRight"))),t.createElement("div",null,L.length>0?L.map(c=>t.createElement(mt,{attribute:c,key:c.value})):t.createElement("div",{style:{textAlign:"center",height:200,lineHeight:"200px"}},s("NoData"))))},pt=()=>{const{attrPanelLayout:e}=g(f);return e==="left"?t.createElement(v,null):null},dt=()=>{const{attrPanelLayout:e}=g(f);return e==="right"?t.createElement(v,null):null},ft=()=>{const{attrPanelLayout:e}=g(f),{t:o}=N(),n=F(i=>{var m,p;return nt.getCurrentStepInfo((m=i==null?void 0:i.annotation)==null?void 0:m.step,(p=i.annotation)==null?void 0:p.stepList)});return(n==null?void 0:n.tool)!==ot.PointCloud||e?null:t.createElement(rt,{hoverIcon:t.createElement(j,{style:{marginRight:4}}),icon:t.createElement(j,{style:{marginRight:4}}),title:o("AnnotatedList"),content:t.createElement(v,null)})};export{ft as AnnotatedAttributesIcon,v as AnnotatedAttributesPanel,pt as AnnotatedAttributesPanelFixedLeft,dt as AnnotatedAttributesPanelFixedRight};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t,{useState as c}from"react";import{Popover as p}from"antd";const i=({source:e})=>typeof e=="string"?t.createElement("img",{src:e,width:14,height:14,style:{marginRight:4}}):e,u=({hoverIcon:e,icon:s,containerStyle:a,content:r,title:
|
|
1
|
+
import t,{useState as c}from"react";import{Popover as p}from"antd";const i=({source:e})=>typeof e=="string"?t.createElement("img",{src:e,width:14,height:14,style:{marginRight:4}}):e,u=({hoverIcon:e,icon:s,containerStyle:a,content:r,title:l})=>{const[n,o]=c(!1),m=t.createElement(i,{source:n&&e!=null?e:s});return t.createElement(p,{placement:"topLeft",content:r,onMouseMove:()=>{o(!0)},onMouseLeave:()=>{o(!1)},overlayClassName:"tool-hotkeys-popover",className:"tipsBar"},t.createElement("div",{className:"shortCutTitle",onMouseMove:()=>o(!0),onMouseLeave:()=>o(!1),style:a},t.createElement("a",{className:"svg"},m,l)))};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{setValid as t,backward as r,forward as n}from"../common/index.js";import a from"../../../../../../assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js";const o={name:"Save",icon:a,shortCut:["Ctrl","Enter"]},e=[t,r,n,o];export{e as default,o as forwardWithEnter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import s from"../../../../../../assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js";import i from"../../../../../../assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js";import a from"../../../../../../assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js";import c from"../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js";import r from"../../../../../../assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js";import m from"../../../../../../assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js";import g from"../../../../../../assets/annotation/toolHotKeyIcon/setValid.svg.js";import l from"../../../../../../assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js";import u from"../../../../../../assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js";import t from"../../../../../../assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js";import n from"../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js";import o from"../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js";import f from"../../../../../../assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js";import p from"../../../../../../assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js";import j from"../../../../../../assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js";import h from"../../../../../../assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js";import _ from"../../../../../../assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js";import e from"../../../../../../assets/annotation/toolHotKeyIcon/icon_eyeLock_kj.svg.js";import C from"../../../../../../assets/annotation/toolHotKeyIcon/icon_playPause.svg.js";import v from"../../../../../../assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js";import d from"../../../../../../assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js";import k from"../../../../../../assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js";import I from"../../../../../../assets/annotation/audio/tag.svg.js";import y from"../../../../../../assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js";import H from"../../../../../../assets/annotation/video/icon_clip.svg.js";import S from"../../../../../../assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js";import $ from"../../../../../../assets/annotation/toolHotKeyIcon/deleteRemark.svg.js";import K from"../../../../../../assets/annotation/toolHotKeyIcon/preRemark.svg.js";import b from"../../../../../../assets/annotation/toolHotKeyIcon/nextRemark.svg.js";const R={name:"Undo",icon:s,shortCut:["Ctrl","Z"]},T={name:"Redo",icon:i,shortCut:["Ctrl","Shift","Z"]},w={name:"Scale",icon:a,shortCut:[c]},L={name:"Fullscreen",icon:r,shortCut:["F11"]},P={name:"Rotate",icon:m,shortCut:["R"],noticeInfo:"ToOriginalStep"},D={name:"ToggleEffectiveness",icon:g,shortCut:["Y"]},x={name:"PreviousImage",icon:l,shortCut:["A"]},A={name:"NextImage",icon:u,shortCut:["D"]},F={name:"Drag",icon:t,shortCut:[n],noticeInfo:"Press"},B={name:"Drag",icon:t,shortCut:["Space",o]},U={name:"SpecifiedAttributesOnly",icon:e,shortCut:["Shift","Number"]},E={name:"SpecifiedAttributesOnly",icon:e,shortCut:["Shift",o]},N={name:"ToggleSelected",icon:f,shortCut:["Tab"]},O={name:"ToggleSelectedReverse",icon:p,shortCut:["Shift","Tab"]},V={name:"HideGraphics",icon:_,noticeInfo:"",shortCut:["Z"]},Z={name:"ToggleLineParticularity",icon:h,noticeInfo:"ToSide",shortCut:["Shift",o]},M={name:"Save",icon:j,shortCut:["Ctrl","S"]},W={name:"Speed",icon:k,shortCut:["↑","↓"],shortCutUseHtml:!0},q={name:"PlayPause",icon:C,shortCut:["Space"]},G={name:"FastForward",icon:v,shortCut:["→"],shortCutUseHtml:!0},X={name:"Rewind",icon:d,shortCut:["←"],shortCutUseHtml:!0},Y={name:"SwitchTagMode",icon:I,shortCut:["L"]},z={name:"\u6253\u6807\u7B7E",icon:y,shortCut:[o],noticeInfo:"LeftClick"},J={name:"\u622A\u53D6\u7247\u6BB5",icon:H,noticeInfo:"\u4E24\u6B21",shortCut:["X"]},Q={name:"ClipSelect",icon:S,shortCut:[n],noticeInfo:"RightClick"},oo={name:"DeleteComment",icon:$,shortCut:["Delete"],noticeInfo:"SelectedStatus"},to={name:"NextComment",icon:b,shortCut:["Tab"]},no={name:"PreviousComment",icon:K,shortCut:["Shift","Tab"]};export{E as attributeClickLock,U as attributeLock,x as backward,Z as changeSpecialLine,Q as clipSelected,B as dargWithLeftClick,F as dargWithRightClick,oo as deleteRemark,A as forward,G as forwardForward,L as fullScreen,V as hidden,to as nextRemark,J as period,q as playPause,no as preRemark,T as restore,R as revoke,X as rewind,P as rotate,M as saveResult,w as scale,D as setValid,W as speed,N as tabChangeSelected,O as tabReverseChangeSelected,z as tag,Y as toggleTagMode};
|
|
1
|
+
import s from"../../../../../../assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js";import i from"../../../../../../assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js";import a from"../../../../../../assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js";import c from"../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js";import r from"../../../../../../assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js";import m from"../../../../../../assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js";import g from"../../../../../../assets/annotation/toolHotKeyIcon/setValid.svg.js";import l from"../../../../../../assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js";import u from"../../../../../../assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js";import t from"../../../../../../assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js";import n from"../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js";import o from"../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js";import"react";import f from"../../../../../../assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js";import p from"../../../../../../assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js";import j from"../../../../../../assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js";import h from"../../../../../../assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js";import _ from"../../../../../../assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js";import e from"../../../../../../assets/annotation/toolHotKeyIcon/icon_eyeLock_kj.svg.js";import C from"../../../../../../assets/annotation/toolHotKeyIcon/icon_playPause.svg.js";import v from"../../../../../../assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js";import d from"../../../../../../assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js";import k from"../../../../../../assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js";import I from"../../../../../../assets/annotation/audio/tag.svg.js";import y from"../../../../../../assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js";import H from"../../../../../../assets/annotation/video/icon_clip.svg.js";import S from"../../../../../../assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js";import $ from"../../../../../../assets/annotation/toolHotKeyIcon/deleteRemark.svg.js";import K from"../../../../../../assets/annotation/toolHotKeyIcon/preRemark.svg.js";import b from"../../../../../../assets/annotation/toolHotKeyIcon/nextRemark.svg.js";const R={name:"Undo",icon:s,shortCut:["Ctrl","Z"]},T={name:"Redo",icon:i,shortCut:["Ctrl","Shift","Z"]},w={name:"Scale",icon:a,shortCut:[c]},L={name:"Fullscreen",icon:r,shortCut:["F11"]},P={name:"Rotate",icon:m,shortCut:["R"],noticeInfo:"ToOriginalStep"},D={name:"ToggleEffectiveness",icon:g,shortCut:["Y"]},x={name:"PreviousImage",icon:l,shortCut:["A"]},A={name:"NextImage",icon:u,shortCut:["D"]},F={name:"Drag",icon:t,shortCut:[n],noticeInfo:"Press"},B={name:"Drag",icon:t,shortCut:["Space",o]},U={name:"SpecifiedAttributesOnly",icon:e,shortCut:["Shift","Number"]},E={name:"SpecifiedAttributesOnly",icon:e,shortCut:["Shift",o]},N={name:"ToggleSelected",icon:f,shortCut:["Tab"]},O={name:"ToggleSelectedReverse",icon:p,shortCut:["Shift","Tab"]},V={name:"HideGraphics",icon:_,noticeInfo:"",shortCut:["Z"]},Z={name:"ToggleLineParticularity",icon:h,noticeInfo:"ToSide",shortCut:["Shift",o]},M={name:"Save",icon:j,shortCut:["Ctrl","S"]},W={name:"Speed",icon:k,shortCut:["↑","↓"],shortCutUseHtml:!0},q={name:"PlayPause",icon:C,shortCut:["Space"]},G={name:"FastForward",icon:v,shortCut:["→"],shortCutUseHtml:!0},X={name:"Rewind",icon:d,shortCut:["←"],shortCutUseHtml:!0},Y={name:"SwitchTagMode",icon:I,shortCut:["L"]},z={name:"\u6253\u6807\u7B7E",icon:y,shortCut:[o],noticeInfo:"LeftClick"},J={name:"\u622A\u53D6\u7247\u6BB5",icon:H,noticeInfo:"\u4E24\u6B21",shortCut:["X"]},Q={name:"ClipSelect",icon:S,shortCut:[n],noticeInfo:"RightClick"},oo={name:"DeleteComment",icon:$,shortCut:["Delete"],noticeInfo:"SelectedStatus"},to={name:"NextComment",icon:b,shortCut:["Tab"]},no={name:"PreviousComment",icon:K,shortCut:["Shift","Tab"]};export{E as attributeClickLock,U as attributeLock,x as backward,Z as changeSpecialLine,Q as clipSelected,B as dargWithLeftClick,F as dargWithRightClick,oo as deleteRemark,A as forward,G as forwardForward,L as fullScreen,V as hidden,to as nextRemark,J as period,q as playPause,no as preRemark,T as restore,R as revoke,X as rewind,P as rotate,M as saveResult,w as scale,D as setValid,W as speed,N as tabChangeSelected,O as tabReverseChangeSelected,z as tag,Y as toggleTagMode};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{backward as n,forward as e,scale as a,fullScreen as u}from"../common/index.js";import s from"../../../../../../assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js";import C from"../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js";import o from"../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js";import d from"../../../../../../assets/annotation/pointCloudTool/changePointCloudValid.svg.js";import l from"../../../../../../assets/annotation/pointCloudTool/copy.svg.js";import p from"../../../../../../assets/annotation/pointCloudTool/nextBox.svg.js";import h from"../../../../../../assets/annotation/pointCloudTool/patse.svg.js";import f from"../../../../../../assets/annotation/pointCloudTool/prevBox.svg.js";import S from"../../../../../../assets/annotation/pointCloudTool/rotate180_black.svg.js";import v from"../../../../../../assets/annotation/pointCloudTool/selectAll.svg.js";import P from"../../../../../../assets/annotation/pointCloudTool/selectMultiple.svg.js";import j from"../../../../../../assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js";import T from"../../../../../../assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js";import y from"../../../../../../assets/annotation/pointCloudTool/lassoSelector.svg.js";import x from"../../../../../../assets/annotation/rectTool/icon_rect.svg.js";import R from"../../../../../../assets/annotation/pointCloudTool/circleSelector.svg.js";import
|
|
1
|
+
import{backward as n,forward as e,scale as a,fullScreen as u}from"../common/index.js";import s from"../../../../../../assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js";import C from"../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js";import o from"../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js";import d from"../../../../../../assets/annotation/pointCloudTool/changePointCloudValid.svg.js";import l from"../../../../../../assets/annotation/pointCloudTool/copy.svg.js";import p from"../../../../../../assets/annotation/pointCloudTool/nextBox.svg.js";import h from"../../../../../../assets/annotation/pointCloudTool/patse.svg.js";import f from"../../../../../../assets/annotation/pointCloudTool/prevBox.svg.js";import S from"../../../../../../assets/annotation/pointCloudTool/rotate180_black.svg.js";import v from"../../../../../../assets/annotation/pointCloudTool/selectAll.svg.js";import P from"../../../../../../assets/annotation/pointCloudTool/selectMultiple.svg.js";import j from"../../../../../../assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js";import T from"../../../../../../assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js";import y from"../../../../../../assets/annotation/pointCloudTool/lassoSelector.svg.js";import x from"../../../../../../assets/annotation/rectTool/icon_rect.svg.js";import R from"../../../../../../assets/annotation/pointCloudTool/circleSelector.svg.js";import _ from"../../../../../../assets/annotation/pointCloudTool/addSvg.svg.js";import $ from"../../../../../../assets/annotation/pointCloudTool/clearSvg.svg.js";import t from"react";import{ReloadOutlined as I,RotateLeftOutlined as B,RotateRightOutlined as b}from"@ant-design/icons";import{polygon as D,invalidPolygon as k,selectedPolygon as A,changePolygonAttribute as V,deletePolygon as M,insertPolygonPoint as O,deletePolygonPoint as w}from"../polygon/index.js";const r={name:"PointThickness",icon:t.createElement("span",{style:{display:" inline-block",width:14,height:14,borderRadius:"50%",border:"1px solid"}}),shortCut:["+","-"],linkSymbol:""},i={name:"RotateAroundCenterPoint",icon:t.createElement(I,null),shortCut:[C],noticeInfo:"DragOperation"},c={name:"PointCloudViewTranslate",icon:s,shortCut:[o],noticeInfo:"Drag"},m={name:"TopViewTranslate",icon:s,shortCut:[o]},g={name:"ChangePointCloudValid",icon:d,shortCut:["V"]},E={name:"CopyBox",icon:l,shortCut:["Ctrl","C"]},H={name:"PasteBox",icon:h,shortCut:["Ctrl","V"]},K={name:"RotateLeft",icon:t.createElement(B,null),shortCut:["Q"]},L={name:"RotateRight",icon:t.createElement(b,null),shortCut:["E"]},G={name:"PreviousBox",icon:f,shortCut:["Shift","Tab"]},N={name:"NextBox",icon:p,shortCut:["Tab"]},z={name:"Rotate180",icon:S,shortCut:["G"],noticeInfo:"SelectedStatus"},F={name:"CopyPrevPage",icon:l,shortCut:["Alt","C"]},J={name:"ChangeBoxValid",icon:j,shortCut:["F"],noticeInfo:"SelectedStatus"},Q={name:"MultiSelect",icon:P,shortCut:["Ctrl",o]},U={name:"SelectAllBox",icon:v,shortCut:["Ctrl","A"]},Y={name:"Delete",icon:T,shortCut:["Del"],noticeInfo:"SelectedStatus"},q={name:"LassoSelector",icon:y,shortCut:["H"],noticeInfo:"SelectorMsg"},W={name:"RectSelector",icon:x,shortCut:["J"],noticeInfo:"SelectorMsg"},X={name:"CircleSelector",icon:R,shortCut:["K"],noticeInfo:"SelectorMsg"},Z={name:"PointCloudViewTranslate",icon:s,shortCut:["space",o]},oo={name:"AddPoint",icon:_,shortCut:["U"]},to={name:"DeletePoint",icon:$,shortCut:["I"]},no=[{name:"GeneralOperation"},n,e,r,a,i,c,m,g,{name:"RectPattern"},E,H,K,L,G,N,z,F,J,Y,Q,U,u],eo=[{name:"GeneralOperation"},n,e,r,a,i,c,m,g,{name:"PolygonPattern"},D,k,A,V,M,O,w],so=[n,e,i,Z,q,W,X,oo,to];export{no as default,eo as pointCloudShortCutTable_POLYGON,so as pointCloudShortCutTable_SEGMENT};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import f from"../../../../../../assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js";import C from"../../../../../../assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js";import _ from"../../../../../../assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js";import j from"../../../../../../assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js";import t from"../../../../../../assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js";import o from"../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js";import n from"../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js";import u from"../../../../../../assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js";import h from"../../../../../../assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js";import I from"../../../../../../assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js";import v from"../../../../../../assets/annotation/toolHotKeyIcon/icon_segment.svg.js";import k from"../../../../../../assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js";import{revoke as d,restore as P,rotate as A,scale as b,backward as H,forward as K,setValid as $,dargWithRightClick as S,dargWithLeftClick as D,tabChangeSelected as T,tabReverseChangeSelected as L}from"../common/index.js";const e={name:"AnnotatePolygon",icon:f,shortCut:[o]},s={name:"AnnotateInvalidPolygon",icon:C,shortCut:["Ctrl",o]},i={name:"SelectPolygon",icon:_,shortCut:[n],noticeInfo:"RightClick"},a={name:"TogglePolygonEffectiveness",icon:j,shortCut:["F"]},c={name:"DeletePolygon",icon:t,shortCut:["Del"]},l={name:"ContinueToLabel",icon:u,shortCut:["Space"]},r={name:"InsertPoint",icon:h,noticeInfo:"SelectAndDoubleClick",shortCut:[o]},g={name:"DeletePoint",icon:t,noticeInfo:"SelectAndDoubleClick",shortCut:[n]},m={name:"StopAdsorption",icon:I,noticeInfo:"Press",shortCut:["Alt"]},p={name:"CropOverlapArea",icon:v,noticeInfo:"",shortCut:["ALT","X"]},y={name:"CombineOverlapArea",icon:k,noticeInfo:"",shortCut:["Alt","Z"]},R=[e,s,i,a,c,l,r,g,m,d,P,A,b,H,K,$,S,D,T,L,y,p];export{a as changePolygonAttribute,y as combinePolygon,R as default,c as deletePolygon,g as deletePolygonPoint,r as insertPolygonPoint,s as invalidPolygon,l as keepLine,e as polygon,i as selectedPolygon,p as splitPolygon,m as suspendAbsorption};
|
|
1
|
+
import f from"../../../../../../assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js";import C from"../../../../../../assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js";import _ from"../../../../../../assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js";import j from"../../../../../../assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js";import t from"../../../../../../assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js";import o from"../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js";import n from"../../../../../../assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js";import u from"../../../../../../assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js";import h from"../../../../../../assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js";import I from"../../../../../../assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js";import"react";import v from"../../../../../../assets/annotation/toolHotKeyIcon/icon_segment.svg.js";import k from"../../../../../../assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js";import{revoke as d,restore as P,rotate as A,scale as b,backward as H,forward as K,setValid as $,dargWithRightClick as S,dargWithLeftClick as D,tabChangeSelected as T,tabReverseChangeSelected as L}from"../common/index.js";const e={name:"AnnotatePolygon",icon:f,shortCut:[o]},s={name:"AnnotateInvalidPolygon",icon:C,shortCut:["Ctrl",o]},i={name:"SelectPolygon",icon:_,shortCut:[n],noticeInfo:"RightClick"},a={name:"TogglePolygonEffectiveness",icon:j,shortCut:["F"]},c={name:"DeletePolygon",icon:t,shortCut:["Del"]},l={name:"ContinueToLabel",icon:u,shortCut:["Space"]},r={name:"InsertPoint",icon:h,noticeInfo:"SelectAndDoubleClick",shortCut:[o]},g={name:"DeletePoint",icon:t,noticeInfo:"SelectAndDoubleClick",shortCut:[n]},m={name:"StopAdsorption",icon:I,noticeInfo:"Press",shortCut:["Alt"]},p={name:"CropOverlapArea",icon:v,noticeInfo:"",shortCut:["ALT","X"]},y={name:"CombineOverlapArea",icon:k,noticeInfo:"",shortCut:["Alt","Z"]},R=[e,s,i,a,c,l,r,g,m,d,P,A,b,H,K,$,S,D,T,L,y,p];export{a as changePolygonAttribute,y as combinePolygon,R as default,c as deletePolygon,g as deletePolygonPoint,r as insertPolygonPoint,s as invalidPolygon,l as keepLine,e as polygon,i as selectedPolygon,p as splitPolygon,m as suspendAbsorption};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import l from"react";import n from"./ToolHotKey/index.js";import i from"../../../../utils/StepUtils.js";import{useSelector as s}from"../../../../store/ctx.js";const p=()=>{const t=s(o=>{var e,r;return i.getCurrentStepInfo((e=o==null?void 0:o.annotation)==null?void 0:e.step,(r=o.annotation)==null?void 0:r.stepList)});return l.createElement(n,{toolName:t==null?void 0:t.tool})};export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import n,{useState as i,useEffect as s}from"react";import{connect as
|
|
1
|
+
import n,{useState as i,useEffect as s}from"react";import{connect as l}from"react-redux";import{Divider as c}from"antd/es";import{useTranslation as d}from"react-i18next";import{LabelBeeContext as u}from"../../../../store/ctx.js";const f=e=>{const{toolInstance:t}=e,[x,o]=i(0),{t:r}=d();return s(()=>{t&&t.singleOn("hiddenChange",()=>{o(a=>a+1)})},[t]),t&&t.isHidden?n.createElement("span",null,r("HideDrawnAnnotation"),n.createElement(c,{type:"vertical",style:{background:"rgba(153, 153, 153, 1)",height:"16px"}})):null},m=e=>{var t;return{toolInstance:(t=e.annotation)==null?void 0:t.toolInstance}};var p=l(m,null,null,{context:u})(f);export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import l,{useState as p,useContext as d,useEffect as f}from"react";import{connect as g}from"react-redux";import{Divider as b}from"antd/es";import{useTranslation as x}from"react-i18next";import{LabelBeeContext as P}from"../../../../store/ctx.js";import{PointCloudContext as C}from"../../../../components/pointCloudView/PointCloudContext.js";import{EPointCloudPattern as v}from"@labelbee/lb-utils";const h=n=>{var e,o;const{toolInstance:t}=n,[
|
|
1
|
+
import l,{useState as p,useContext as d,useEffect as f}from"react";import{connect as g}from"react-redux";import{Divider as b}from"antd/es";import{useTranslation as x}from"react-i18next";import{LabelBeeContext as P}from"../../../../store/ctx.js";import{PointCloudContext as C}from"../../../../components/pointCloudView/PointCloudContext.js";import{EPointCloudPattern as v}from"@labelbee/lb-utils";const h=n=>{var e,o;const{toolInstance:t}=n,[I,a]=p(0),{pointCloudBoxList:u,segmentation:i,globalPattern:s}=d(C),{t:c}=x();if(f(()=>{t&&t.singleOn("updatePageNumber",()=>{a(m=>m+1)})},[t]),!t)return null;const r=(o=(e=t==null?void 0:t.currentPageResult)==null?void 0:e.length)!=null?o:s===v.Detection?u.length:i.length;return r>=0?l.createElement("span",null,`${c("ItemsOfThisPage")}: ${r}`,l.createElement(b,{type:"vertical",style:{background:"rgba(153, 153, 153, 1)",height:"16px"}})):null},_=n=>{var e;return{toolInstance:(e=n.annotation)==null?void 0:e.toolInstance}};var E=g(_,null,null,{context:P})(h);export{E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getClassName as d}from"../../../utils/dom.js";import{StepForwardFilled as _,RightOutlined as f,StepBackwardFilled as P,LeftOutlined as E}from"@ant-design/icons";import{Input as v}from"antd";import r,{useState as w,useRef as h,useEffect as O}from"react";var y=Object.defineProperty,m=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,p=(e,n,t)=>n in e?y(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,
|
|
1
|
+
import{getClassName as d}from"../../../utils/dom.js";import{StepForwardFilled as _,RightOutlined as f,StepBackwardFilled as P,LeftOutlined as E}from"@ant-design/icons";import{Input as v}from"antd";import r,{useState as w,useRef as h,useEffect as O}from"react";var y=Object.defineProperty,m=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,p=(e,n,t)=>n in e?y(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,c=(e,n)=>{for(var t in n||(n={}))N.call(n,t)&&p(e,t,n[t]);if(m)for(var t of m(n))S.call(n,t)&&p(e,t,n[t]);return e};const u=e=>{const{jumpSkip:n,imgIndex:t}=e,[s,i]=w(t),l=h(null);O(()=>{i(t+1)},[t]);const a=o=>{/^\d*$/.test(o.target.value)&&i(o.target.value)},g=o=>{o.keyCode===13&&n(o.target.value)};return r.createElement(v,{className:d("page-input"),ref:l,onChange:a,value:s,onKeyDown:g})},I=e=>e.isVideo?r.createElement(_,c({},e.iconProps)):r.createElement(f,c({},e.iconProps)),j=e=>e.isVideo?r.createElement(P,c({},e.iconProps)):r.createElement(E,c({},e.iconProps)),k=({pageBackward:e,imgIndex:n,pageJump:t,totalPage:s,pageForward:i,isVideo:l,footerCls:a})=>r.createElement("div",{className:`${a}__pagination`},r.createElement(j,{isVideo:l,iconProps:{className:`${a}__highlight`,onClick:e}}),r.createElement(u,{imgIndex:n,jumpSkip:t}),"/",r.createElement("span",{className:`${a}__pageAll`},s),r.createElement(I,{isVideo:l,iconProps:{className:`${a}__highlight`,onClick:i}}));export{u as PageInput,k as Pagination};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Switch as s}from"antd";import t,{useContext as a}from"react";import{useTranslation as u}from"react-i18next";import{PointCloudContext as
|
|
1
|
+
import{Switch as s}from"antd";import t,{useContext as a}from"react";import{useTranslation as u}from"react-i18next";import{PointCloudContext as l}from"../../../../components/pointCloudView/PointCloudContext.js";import{useStatus as m}from"../../../../components/pointCloudView/hooks/useStatus.js";const d=()=>{const{cuboidBoxIn2DView:o,setCuboidBoxIn2DView:n}=a(l),{t:e}=u(),{isPointCloudSegmentationPattern:i}=m(),r=c=>{n(c)};return i?null:t.createElement(t.Fragment,null,t.createElement("span",{style:{marginRight:10}},e("ImageLabels")),t.createElement(s,{checkedChildren:e("3DRect"),unCheckedChildren:e("2DRect"),checked:o,onChange:r}))};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import c from"../../../../assets/annotation/common/icon_adapt.svg.js";import i from"../../../../assets/annotation/common/icon_adapt_black.svg.js";import{MinusOutlined as d,PlusOutlined as u}from"@ant-design/icons";import{connect as g}from"react-redux";import p from"./ZoomLevel/index.js";import{footerCls as a}from"../index.js";import{LabelBeeContext as f}from"../../../../store/ctx.js";const m=({mode:e,initialPosition:t,zoomOut:n,zoomIn:l,zoom:r})=>{const s=e==="light"?c:i;return o.createElement("div",null,o.createElement("span",{className:`${a}__zoomController`},o.createElement(d,{className:`${a}__highlight`,onClick:()=>{n==null||n()}}),o.createElement("span",{className:`${a}__zoomText`,onClick:()=>{t==null||t()}},o.createElement("img",{src:s,className:"adaptIcon"}),o.createElement(p,{zoom:r})),o.createElement(u,{className:`${a}__highlight`,onClick:()=>{l==null||l()}})))},
|
|
1
|
+
import o from"react";import c from"../../../../assets/annotation/common/icon_adapt.svg.js";import i from"../../../../assets/annotation/common/icon_adapt_black.svg.js";import{MinusOutlined as d,PlusOutlined as u}from"@ant-design/icons";import{connect as g}from"react-redux";import p from"./ZoomLevel/index.js";import{footerCls as a}from"../index.js";import{LabelBeeContext as f}from"../../../../store/ctx.js";const m=({mode:e,initialPosition:t,zoomOut:n,zoomIn:l,zoom:r})=>{const s=e==="light"?c:i;return o.createElement("div",null,o.createElement("span",{className:`${a}__zoomController`},o.createElement(d,{className:`${a}__highlight`,onClick:()=>{n==null||n()}}),o.createElement("span",{className:`${a}__zoomText`,onClick:()=>{t==null||t()}},o.createElement("img",{src:s,className:"adaptIcon"}),o.createElement(p,{zoom:r})),o.createElement(u,{className:`${a}__highlight`,onClick:()=>{l==null||l()}})))},_=({toolInstance:e})=>{const t=()=>{e.initImgPos()},n=()=>{e.zoomChanged(!1)},l=()=>{e.zoomChanged(!0)};return o.createElement(m,{initialPosition:t,zoomIn:l,zoomOut:n})};var C=g(e=>({toolInstance:e.annotation.toolInstance}),null,null,{context:f})(_);export{m as ZoomController,C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{prefix as B}from"../../../constant/index.js";import{PageBackward as g,PageForward as x,PageJump as b}from"../../../store/annotation/actionCreators.js";import{getTotalPage as L}from"../../../store/annotation/reducer.js";import{Divider as N}from"antd/es";import e from"react";import{useTranslation as S}from"react-i18next";import{connect as k}from"react-redux";import{LabelBeeContext as D,useDispatch as A}from"../../../store/ctx.js";import T from"./FooterTips/index.js";import H from"./HiddenTips/index.js";import R from"./PageNumber/index.js";import $ from"./ZoomController/index.js";import
|
|
1
|
+
import{prefix as B}from"../../../constant/index.js";import{PageBackward as g,PageForward as x,PageJump as b}from"../../../store/annotation/actionCreators.js";import{getTotalPage as L}from"../../../store/annotation/reducer.js";import{Divider as N}from"antd/es";import e from"react";import{useTranslation as S}from"react-i18next";import{connect as k}from"react-redux";import{LabelBeeContext as D,useDispatch as A}from"../../../store/ctx.js";import T from"./FooterTips/index.js";import H from"./HiddenTips/index.js";import R from"./PageNumber/index.js";import $ from"./ZoomController/index.js";import _ from"./SwitchCuboidBoxIn2DView/index.js";import{Pagination as J}from"./Pagination.js";import{AnnotatedAttributesIcon as E}from"./AnnotatedAttributes/index.js";import{cTool as K}from"@labelbee/lb-annotation";import{shortCutTable as V,ToolHotKeyCom as Z}from"./FooterTips/ToolHotKey/index.js";const{EPointCloudName:z}=K,l=`${B}-footer`,P=()=>e.createElement(N,{type:"vertical",style:{background:"rgba(153, 153, 153, 1)",height:"16px"}}),I=({footerTips:t,hiddenTips:a,pageNumber:s,pagination:m,zoomController:i,curItems:c,footerDivider:u,annotateAttrList:o})=>e.createElement(e.Fragment,null,t,o,e.createElement("div",{style:{flex:1}}),a,s,m,c,u,i),q=t=>{var a;const{stepList:s,step:m,basicResultList:i,basicIndex:c,mode:u="light",footer:o=I,skipBeforePageTurning:n}=t,r=A(),{t:h}=S(),d=(a=s[m-1])!=null?a:{},j=!!d.dataSourceStep,C=()=>{if(n){n(()=>r(g()));return}r(g())},y=()=>{if(n){n(()=>r(x()));return}r(x())},v=w=>{const f=~~w-1;if(n){n(()=>r(b(f)));return}r(b(f))},p=e.createElement(J,{imgIndex:t.imgIndex,totalPage:t.totalPage,pageJump:v,pageBackward:C,pageForward:y,footerCls:l}),F=j&&i.length>0?e.createElement("span",null,h("curItems",{current:c+1,total:i.length})):null;return typeof o=="function"?o===I&&d.tool===z.PointCloud?e.createElement("div",{className:`${l}`,style:t.style},e.createElement(T,null),e.createElement(E,null),e.createElement("div",{style:{flex:1}}),e.createElement(_,null),p):e.createElement("div",{className:`${l}`,style:t.style},o({footerTips:e.createElement(T,null),hiddenTips:e.createElement(H,null),pageNumber:e.createElement(R,null),annotateAttrList:e.createElement(E,null),pagination:p,zoomController:e.createElement($,{mode:u}),curItems:F,footerDivider:e.createElement(P,null),shortCutTable:V,ToolHotKeyCom:Z})):o},G=t=>({totalPage:L(t.annotation),imgIndex:t.annotation.imgIndex,stepList:t.annotation.stepList,step:t.annotation.step,basicIndex:t.annotation.basicIndex,basicResultList:t.annotation.basicResultList,skipBeforePageTurning:t.annotation.skipBeforePageTurning});var M=k(G,null,null,{context:D})(q);export{P as FooterDivider,M as default,l as footerCls};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from"react";import{Button as i}from"antd/es";import{connect as m}from"react-redux";import{ANNOTATION_ACTIONS as s}from"../../../../store/Actions.js";import{ESubmitType as c}from"../../../../constant/index.js";import{useTranslation as p}from"react-i18next";import{LabelBeeContext as l}from"../../../../store/ctx.js";const u=({imgList:t,dispatch:n,onSubmit:T,exportData:o})=>{const{t:r}=p();if(!o)return null;const e=()=>{n({type:s.SUBMIT_FILE_DATA,payload:{submitType:c.Export}}),o&&o(t)};return a.createElement(i,{style:{marginLeft:20},onClick:e},r("Export"))},f=t=>({toolInstance:t.annotation.toolInstance,imgList:t.annotation.imgList,onSubmit:t.annotation.onSubmit});var x=m(f,null,null,{context:l})(u);export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Dropdown as p}from"antd/es";import{OrderedListOutlined as c,CaretDownOutlined as m}from"@ant-design/icons";import t from"react";import{connect as l}from"react-redux";import{LabelBeeContext as d,useDispatch as f}from"../../../../store/ctx.js";import
|
|
1
|
+
import{Dropdown as p}from"antd/es";import{OrderedListOutlined as c,CaretDownOutlined as m}from"@ant-design/icons";import t from"react";import{connect as l}from"react-redux";import{LabelBeeContext as d,useDispatch as f}from"../../../../store/ctx.js";import u from"../../../../components/customAntd/IconWithText/index.js";import{prefix as x}from"../../../../constant/index.js";import S from"../../../../components/annotationStepPopover/index.js";import{UpdateProcessingStep as h}from"../../../../store/annotation/actionCreators.js";import{useTranslation as j}from"react-i18next";const E=({stepProgress:e,step:o,stepList:n})=>{const r=f(),{t:s}=j(),a=i=>{r(h(i))};return t.createElement("span",{className:`${x}`},t.createElement(p,{overlay:t.createElement(S,{stepList:n,updateStep:a,currentStep:o})},t.createElement(u,{text:s("Steps"),Icon:c,iconChildren:t.createElement(m,{style:{fontSize:8}})})))},P=e=>({stepList:e.annotation.stepList,step:e.annotation.step});var v=l(P,null,null,{context:d})(E);export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o,{useContext as g}from"react";import{EPointCloudName as x}from"@labelbee/lb-annotation";import{EPointCloudPattern as a}from"@labelbee/lb-utils";import{Button as m,Tooltip as w}from"antd";import{connect as D}from"react-redux";import{LabelBeeContext as E}from"../../../../store/ctx.js";import{PointCloudContext as I}from"../../../../components/pointCloudView/PointCloudContext.js";import{useTranslation as y}from"react-i18next";const V=({toolName:n,forbidSegmentationText:t=""})=>{const{t:e}=y(),{globalPattern:i,setGlobalPattern:l,setTopViewInstance:d,setSideViewInstance:p,setBackViewInstance:u,setMainViewInstance:C,ptSegmentInstance:r,setSelectedIDs:S}=g(I);if(n!==x.PointCloud)return null;const b=()=>{S([]),d(void 0),p(void 0),u(void 0),C(void 0)},P=()=>{r==null||r.emit("clearStash")},
|
|
1
|
+
import o,{useContext as g}from"react";import{EPointCloudName as x}from"@labelbee/lb-annotation";import{EPointCloudPattern as a}from"@labelbee/lb-utils";import{Button as m,Tooltip as w}from"antd";import{connect as D}from"react-redux";import{LabelBeeContext as E}from"../../../../store/ctx.js";import{PointCloudContext as I}from"../../../../components/pointCloudView/PointCloudContext.js";import{useTranslation as y}from"react-i18next";const V=({toolName:n,forbidSegmentationText:t=""})=>{const{t:e}=y(),{globalPattern:i,setGlobalPattern:l,setTopViewInstance:d,setSideViewInstance:p,setBackViewInstance:u,setMainViewInstance:C,ptSegmentInstance:r,setSelectedIDs:S}=g(I);if(n!==x.PointCloud)return null;const b=()=>{S([]),d(void 0),p(void 0),u(void 0),C(void 0)},P=()=>{r==null||r.emit("clearStash")},f=()=>{P(),l(a.Detection)},v=()=>{b(),l(a.Segmentation)},c=t!=="",s=o.createElement(m,{type:i===a.Segmentation?"primary":void 0,onClick:v,disabled:c},e("SegmentationMode"));return o.createElement("span",{style:{margin:"0 10px"}},o.createElement(m,{type:i===a.Detection?"primary":void 0,onClick:f},e("DetectionMode")),c?o.createElement(w,{title:t},s):s)},B=n=>{var t,e;return{toolName:(e=(t=n.annotation.stepList[n.annotation.step-1])==null?void 0:t.tool)!=null?e:""}};var _=D(B,null,null,{context:E})(V);export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r,{useState as j,useContext as k,useCallback as d}from"react";import{useDispatch as
|
|
1
|
+
import r,{useState as j,useContext as k,useCallback as d}from"react";import{useDispatch as _,useSelector as h}from"../../../../store/ctx.js";import E from"../../../../assets/annotation/common/icon_r.svg.js";import A from"../../../../assets/annotation/common/icon_next.svg.js";import H from"../../../../assets/annotation/common/icon_back.svg.js";import P from"../../../../assets/annotation/common/icon_rA.svg.js";import $ from"../../../../assets/annotation/common/icon_nextA.svg.js";import w from"../../../../assets/annotation/common/icon_backA.svg.js";import R from"../../../../assets/annotation/common/icon_save.svg.js";import V from"../../../../assets/annotation/common/icon_saveA.svg.js";import{prefix as z}from"../../../../constant/index.js";import{EToolName as B}from"../../../../data/enums/ToolType.js";import{ChangeSave as D}from"../../../../store/annotation/actionCreators.js";import{useTranslation as I}from"react-i18next";import{EAudioToolName as L,cTool as M}from"@labelbee/lb-annotation";import{PointCloudContext as O}from"../../../../components/pointCloudView/PointCloudContext.js";import{EPointCloudPattern as v}from"@labelbee/lb-utils";const{EVideoToolName:g,EPointCloudName:K}=M;var e;(function(i){i.Hover="#666fff",i.Normal="#999999"})(e||(e={}));const U=i=>{const[l,c]=j(""),{stepInfo:t}=i,p=_(),{annotation:{toolInstance:n,onSave:f}}=h(o=>({annotation:o.annotation,imgAttribute:o.imgAttribute})),{globalPattern:S}=k(O),{t:N}=I(),m=[B.Tag,g.VideoTagTool].includes(t==null?void 0:t.tool),u=[g.VideoTagTool].includes(t==null?void 0:t.tool),T=[K.PointCloud].includes(t==null?void 0:t.tool),x=[L.AudioTextTool].includes(t==null?void 0:t.tool),a=i.isBegin||m,b=()=>{t.dataSourceStep!==0&&t.dataSourceStep!==void 0||n==null||n.updateRotate()},y=d(()=>{n==null||n.undo()},[n]),C=d(()=>{n==null||n.redo()},[n]);let s=[{toolName:"save",title:"Save",show:!!f,commonSvg:R,selectedSvg:V,click:()=>{p(D)},style:{fontSize:"12px",color:!a&&l==="save"?e.Hover:e.Normal}},{toolName:"revocation",title:"Undo",show:!0,commonSvg:H,selectedSvg:w,click:()=>{m||y()},style:{opacity:a===!0?.4:1,fontSize:"12px",color:!a&&l==="revocation"?e.Hover:e.Normal}},{toolName:"restore",title:"Redo",show:!0,commonSvg:A,selectedSvg:$,click:()=>{m||C()},style:{opacity:a===!0?.4:1,fontSize:"12px",color:!a&&l==="restore"?e.Hover:e.Normal}},{toolName:"rotate",title:"Rotate",show:!0,selectedSvg:P,commonSvg:E,click:()=>{u||b()},style:{opacity:u===!0?.4:1,fontSize:"12px",color:!a&&l==="rotate"?e.Hover:e.Normal}}];if(T)switch(S){case v.Segmentation:s=s.slice(0,1);break;case v.Detection:s=s.slice(0,3);break}return x&&(s=s.slice(0,1)),r.createElement("div",{className:`${z}-header__hotKey`},s.map(o=>o.show&&r.createElement("div",{key:o.toolName,className:"item",onMouseEnter:()=>c(o.toolName),onMouseLeave:()=>c("")},r.createElement("a",{className:"item",onClick:o.click},r.createElement("img",{className:"singleTool",src:l===o.toolName?o.selectedSvg:o.commonSvg,style:o.style}),r.createElement("div",{style:o.style},N(o.title))))))};export{U as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{prefix as n,ESubmitType as R}from"../../../constant/index.js";import A from"../../../hooks/useSize.js";import{ToSubmitFileData as B,ToNextStep as
|
|
1
|
+
import{prefix as n,ESubmitType as R}from"../../../constant/index.js";import A from"../../../hooks/useSize.js";import{ToSubmitFileData as B,ToNextStep as v,loadImgList as Q}from"../../../store/annotation/actionCreators.js";import{LeftOutlined as U}from"@ant-design/icons";import{i18n as $}from"@labelbee/lb-utils";import{Tooltip as W,Button as q}from"antd/es";import L from"classnames";import{last as G}from"lodash";import e,{useReducer as J,useRef as K}from"react";import{useTranslation as T}from"react-i18next";import{connect as M}from"react-redux";import{LabelBeeContext as V,useDispatch as X}from"../../../store/ctx.js";import{store as Y}from"../../../index.js";import Z from"./ExportData/index.js";import ee from"./headerOption/index.js";import te from"./StepSwitch/index.js";import ne from"../../../components/predictTracking/predictTrackingIcon/index.js";import j from"./SwitchPattern/index.js";const w=({disabled:t,imgList:r})=>{const{t:o}=T(),i=()=>{const{dispatch:a,getState:s}=Y;r[0]?a(v(0)):Q(a,s,0).then(l=>{l&&a(v(0))})};return e.createElement(q,{type:"primary",style:{marginLeft:10},onClick:i,disabled:t},o("NextStep"))},oe=({step:t,stepProgress:r,stepList:o,imgList:i})=>{var a;const{t:s}=T(),l=(a=G(o))==null?void 0:a.step;if(o.length<2||t===l)return null;const c=r<1;return c?e.createElement(W,{title:s("StepNotFinishedNotify")},e.createElement("span",null,e.createElement(w,{disabled:c,imgList:i}))):e.createElement(w,{disabled:c,imgList:i})},ae=({goBack:t,exportData:r,header:o,headerName:i,imgList:a,stepProgress:s,stepInfo:l,stepList:c,step:b,annotationEngine:d,hasLangNode:k,hasHeaderOption:C,hasPredictTrackingIcon:P})=>{var u;const y=X(),[,D]=J(m=>m+1,0),p=K(null),f=A(p),O=e.createElement(Z,{exportData:r}),F=()=>{y(B(R.Quit)),t&&t(a)},E=m=>{$.changeLanguage(m),d==null||d.setLang(m),D()},N=$.language,I=(u=f==null?void 0:f.width)!=null?u:window.innerWidth,h=e.createElement(U,{className:`${n}-header__icon`,onClick:F}),g=i?e.createElement("span",{className:`${n}-header__name`},i):"",x=c.length>1&&e.createElement(e.Fragment,null,e.createElement(te,{stepProgress:s}),e.createElement(oe,{step:b,stepProgress:s,stepList:c,imgList:a})),_=C?e.createElement(ee,{stepInfo:l}):null,z=j,H=e.createElement("div",{className:`${n}-header__lang`},e.createElement("span",{className:`${n}-langCN ${N==="cn"?"active":""}`,onClick:()=>E("cn")},"\u4E2D\u6587")," / ",e.createElement("span",{className:`${n}-langEN ${N==="en"?"active":""}`,onClick:()=>E("en")},"En")),S=e.createElement(e.Fragment,null,P&&e.createElement(ne,null),k&&H);return o?typeof o=="function"?e.createElement("div",{className:L(`${n}-header`),ref:p},e.createElement("div",{className:`${n}-header__title`},o({backNode:h,headerNameNode:g,stepListNode:x,headerOptionNode:_,langNode:S,PointCloudSwitchPattern:z}))):o:e.createElement("div",{className:L(`${n}-header`),ref:p},e.createElement("div",{className:`${n}-header__title`},h,g,x,O,e.createElement("div",{id:"operationNode",className:`${n}-header__operationNode`,style:{left:I/2-174/2}},_),e.createElement("div",{className:`${n}-header__titlePlacement`}),e.createElement(j,null),S))},re=t=>{var r;return{imgList:t.annotation.imgList,annotationEngine:t.annotation.annotationEngine,stepProgress:t.annotation.stepProgress,toolName:(r=t.annotation.stepList[t.annotation.step-1])==null?void 0:r.tool,stepList:t.annotation.stepList,stepInfo:t.annotation.stepList[t.annotation.step-1],step:t.annotation.step}};var ie=M(re,null,null,{context:V})(ae);export{ie as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@labelbee/lb-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0-alpha.1",
|
|
4
4
|
"description": "Provide a complete library of annotation components",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"es": "./es/index.js",
|
|
@@ -43,14 +43,15 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@ant-design/icons": "^4.6.2",
|
|
46
|
-
"@labelbee/lb-annotation": "1.
|
|
47
|
-
"@labelbee/lb-utils": "1.
|
|
46
|
+
"@labelbee/lb-annotation": "1.27.0-alpha.1",
|
|
47
|
+
"@labelbee/lb-utils": "1.19.0-alpha.1",
|
|
48
48
|
"@labelbee/wavesurfer": "1.0.0",
|
|
49
49
|
"@types/react-dom": "^18.2.7",
|
|
50
50
|
"@types/react-transition-group": "^4.4.9",
|
|
51
51
|
"ahooks": "^3.4.0",
|
|
52
52
|
"classnames": "^2.3.0",
|
|
53
53
|
"decimal.js": "^10.4.3",
|
|
54
|
+
"diff-match-patch": "^1.0.5",
|
|
54
55
|
"github-markdown-css": "^5.2.0",
|
|
55
56
|
"lodash": "^4.17.21",
|
|
56
57
|
"postcss-url": "^10.1.3",
|
|
@@ -65,10 +66,10 @@
|
|
|
65
66
|
"redux-actions": "^2.6.5",
|
|
66
67
|
"redux-thunk": "^2.3.0",
|
|
67
68
|
"rehype-katex": "^6.0.3",
|
|
68
|
-
"diff-match-patch": "^1.0.5",
|
|
69
|
-
"remark-math": "^5.1.1",
|
|
70
69
|
"remark-gfm": "^3.0.1",
|
|
71
|
-
"
|
|
70
|
+
"remark-math": "^5.1.1",
|
|
71
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
72
|
+
"zustand": "^4.5.0"
|
|
72
73
|
},
|
|
73
74
|
"peerDependencies": {
|
|
74
75
|
"antd": ">=4.15.0",
|
|
@@ -82,6 +83,8 @@
|
|
|
82
83
|
"@rollup/plugin-eslint": "^8.0.1",
|
|
83
84
|
"@rollup/plugin-image": "^2.0.6",
|
|
84
85
|
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
86
|
+
"@svgr/core": "^8.1.0",
|
|
87
|
+
"@svgr/rollup": "^8.1.0",
|
|
85
88
|
"@types/diff-match-patch": "^1.0.36",
|
|
86
89
|
"@types/lodash": "^4.14.168",
|
|
87
90
|
"@types/react": "^16.13.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var _=require("lodash"),React=require("react");function _interopDefaultLegacy(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var ___default=_interopDefaultLegacy(_),React__default=_interopDefaultLegacy(React),RemarkMask=({remarkSplitIntervals:t,remark:o})=>React__default.default.createElement("div",{style:{position:"absolute",top:0,left:0,backgroundColor:"transparent",color:"transparent"}},t.map((e,r)=>{var l;const a=___default.default.last(e.remarkAnnotations);let n=`2px solid ${((l=e==null?void 0:e.remarkAnnotations)==null?void 0:l.find(d=>(d==null?void 0:d.auditID)===o.hoverAuditID))?"#ffc60a":"#fcdf7e"}`;return(o==null?void 0:o.isShowRemark)||(n=""),a?React__default.default.createElement("span",{style:{borderBottom:n,padding:"2px 0px"},id:a==null?void 0:a.id,key:r},e.text):React__default.default.createElement("span",{key:r},e.text)}));module.exports=RemarkMask;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file remark mask
|
|
3
|
-
* @author lixinghua <lixinghua_vendor@sensetime.com>
|
|
4
|
-
* @date 2024.01.30
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { IRemarkInterval } from '../types';
|
|
8
|
-
declare const _default: ({ remarkSplitIntervals, remark, }: {
|
|
9
|
-
remarkSplitIntervals: IRemarkInterval[];
|
|
10
|
-
remark?: any;
|
|
11
|
-
}) => React.JSX.Element;
|
|
12
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import s from"lodash";import r from"react";var c=({remarkSplitIntervals:d,remark:o})=>r.createElement("div",{style:{position:"absolute",top:0,left:0,backgroundColor:"transparent",color:"transparent"}},d.map((t,n)=>{var a;const e=s.last(t.remarkAnnotations);let l=`2px solid ${((a=t==null?void 0:t.remarkAnnotations)==null?void 0:a.find(i=>(i==null?void 0:i.auditID)===o.hoverAuditID))?"#ffc60a":"#fcdf7e"}`;return(o==null?void 0:o.isShowRemark)||(l=""),e?r.createElement("span",{style:{borderBottom:l,padding:"2px 0px"},id:e==null?void 0:e.id,key:n},t.text):r.createElement("span",{key:n},t.text)}));export{c as default};
|