Added the feature to Remove annotation objects in a specified range of frames (#3617)
* Test Commit for Remove Range Test Commit for Remove Range * Remove annotations in range merged with remove annotations button merged Remove annotations in range merged with remove annotations button merged * Update annotation-reducer.ts * Update annotation-actions.ts * Update annotation-reducer.ts * Converting remove range component to hook based component Removed all the global states previously used and converted all the parameters to local state in annotation menu and remove range component. * Improved clear in cvat core and implemented remove range Added arguments of startframe and endframe to clear method in annotation-collection, and also added the updating of the states with payload on removeannotationsinrangeasync action in the reducer. * Matching only the needed parts There are few additional old files that were needed to be removed to be completely matched with develop branch of cvat * Delete out.json * Update annotations-collection.js * Added a checkbox to remove range modal Added a checkbox to remove range modal that can be used to select if only the keyframes should be deleted in tracks or the whole track * ESLint fixed All the updated files were formatted as per ESLint except one line in that even cvat base is also overlooking i.e. Row 162, Column 15: "JSX props should not use functions" in cvat\cvat-ui\src\components\annotation-page\top-bar\annotation-menu.tsx. * More ESLint and other updates Changed all the suggested changes and also removed unnecessary files in dist. Removed unnecessary explicit removals in objects and additional wrappers. * Update annotation-menu.tsx Fixed the mistake of wrong variable name. * Update remove-range-confirm.tsx Additional ESLint Issue fixed * Changed the approach of removeAnnotations modal Changed the approach of removeAnnotations modal so that it could match the implementation of all the other components * Added to changelog Fixed type annotations in the annotation-menu component for remove annotations, and updated cvat-ui and cvat-core npm versions.
Showing
想要评论请 注册 或 登录