keirbowden / sigcapapp

Signature Capture Samples
MIT License
9 stars 5 forks source link

The ability to resize the signature and access the canvas elements. #11

Closed kannayash closed 4 years ago

kannayash commented 6 years ago

Hi, We have a business use case to resize the signature. So, we are trying to access the canvas elements and resize it. But because of the locker service we are not able to access the canvas elements from the managed package. We like to know if you can develop a feature to resize the signature or make the canvas elements available to access.

Thanks, Yash.

kannayash commented 6 years ago

Hi, Good Morning. Did someone get a chance to address this feature request? Do we have a scope do develop this feature anytime soon?

Thanks, Yash.

keirbowden commented 6 years ago

Hi Yash,

I won't be able to give you access to the canvas element due to the locker service so this would be a larger change.

Signature capture is a free app that I maintain in my spare time, and at the moment I can't tell you when I'll get a chance to look at it. I doubt it will be until after Dreamforce as I have a number of things to prepare for that.

Cheers

Keir

keirbowden commented 6 years ago

Hi Yash,

The Lightning application event that is fired when the signature is captured includes the data URI from the canvas, with the "data:image/png;base64" bit stripped off, which is the contents of the image file. You should be able to apply this to a canvas element of your own to resize the image.

keirbowden commented 4 years ago

Closing this as no response for over a year.