Cannot get SVG data url after getTrimmedCanvas()
#101
Labels
kind: support
Asking for support with something or a specific use case
scope: upstream
Issue in upstream dependency
solution: duplicate
solution: native canvas behavior
This is not a bug and is just how the native canvas element works.
Hi,
I have a problem with the
getTrimmedCanvas()
function. After calling it, callingtoDataUrl('image/svg+xml')
on the trimmed canvas does not work as expected.During debugging, I noticed that this is because the function returns
HTMLCanvasElement
instead ofReactSignatureCanvas
orSignaturePad
. The short way to put it is that calling thegetTrimmedCanvas()
function involves losing access to all the functions/variables provided byReactSignatureCanvas
.The text was updated successfully, but these errors were encountered: