You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the current behavior?
When downloading a canvas with toSVG() method, its ratio is incorrect, which leads to cutting off part of the image.
What is the expected behavior?
Developer can pass devicePixelRatio to toSVG() method as paramter, in order to capture whole canvas independent of its size.
The window.devicePixelRatio on my device is 2. That is why the image is cropped. If I set it to 1 through console, the image is correct.
Which versions of SignaturePad, and which browser / device are affected by this issue? Did this work in previous versions of SignaturePad?
Signature pad: 4.1.4
Chrome 107.0.5304.110
MacBook Pro 16' 2021
Repro:
open attached minimal Angular project
npm install
npm run start
draw on canvas and press "save"
downloaded SVG is cropped and part of image is cut off because of wrong ratio
What is the current behavior?
When downloading a canvas with
toSVG()
method, its ratio is incorrect, which leads to cutting off part of the image.What is the expected behavior?
Developer can pass devicePixelRatio to
toSVG()
method as paramter, in order to capture whole canvas independent of its size.The
window.devicePixelRatio
on my device is 2. That is why the image is cropped. If I set it to 1 through console, the image is correct.Which versions of SignaturePad, and which browser / device are affected by this issue? Did this work in previous versions of SignaturePad?
Signature pad: 4.1.4
Chrome 107.0.5304.110
MacBook Pro 16' 2021
Repro:
untitled.zip
Video with repro:
toSvg.mov
The text was updated successfully, but these errors were encountered: