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

feature request: Provide a way to get the scaled image without refs

Open devth opened this issue 1 year ago • 0 comments

Especially in a more dynamic context where there may be more than one <AvatarEditor /> in a component it'd be very nice to be able to handle an event, or pull the scaled image data out of the existing onImageChange event instead of messing with React refs.

Maybe something like this?

                    onImageChange={({ scaledImage }) => {
                      console.log("onImageChange", {
                        scaledImage
                      });
                    }}

devth avatar Apr 06 '23 15:04 devth