Feature/contrast adjustment and image zoom issue #8800
Motivation and context
How has this been tested?
Checklist
-
I submit my changes into the developbranch -
I have created a changelog fragment -
I have updated the documentation accordingly -
I have added tests to cover my changes -
I have linked related issues (see GitHub docs) -
I have increased versions of npm packages if it is necessary (cvat-canvas, cvat-core, cvat-data and cvat-ui)
License
-
I submit my code changes under the same MIT License that covers the project. Feel free to contact the maintainers if that's a concern.
Summary by CodeRabbit
-
New Features
- Added fullscreen functionality for the ContextImage component.
- Introduced dynamic brightness and contrast adjustments based on mouse movements in the CanvasWrapper.
- Added a new custom hook,
useCanvasControl, for managing canvas interactions.
-
Bug Fixes
- Improved cleanup of event listeners in the CanvasWrapper component.
-
Style
- Enhanced styles for the ContextImage component, including new styles for buttons and layout adjustments.