react-avatar-editor icon indicating copy to clipboard operation
react-avatar-editor copied to clipboard

feat: add mask border

Open pekq opened this issue 6 months ago • 0 comments

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

image image

pekq avatar Jul 29 '24 15:07 pekq