mirror of
https://github.com/konvajs/konva.git
synced 2025-12-17 18:01:15 +08:00
added counter pixel ratio method so that drawings aren't double scaled when using toDataUrl and toImage
This commit is contained in:
@@ -760,6 +760,8 @@
|
||||
}
|
||||
context = canvas.getContext();
|
||||
context.save();
|
||||
canvas._counterPixelRatio();
|
||||
|
||||
if(x || y) {
|
||||
context.translate(-1 * x, -1 * y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user