react-avatar-editor
react-avatar-editor copied to clipboard
feat: add mask border
Adds new optional prop borderColor
([number, number, number, number?]
). If given, a border is drawn around the mask.
This helps to visually distinguish the mask area, especially when the image and mask colors are similar. The border color can be customized to improve visibility and user experience.
- Implement border drawing in the
paint
method - Add
borderColor
to Props interface - Update README with new prop documentation
- Add border color controls to demo app
Resolves https://github.com/mosch/react-avatar-editor/issues/259