mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
introduced new Context class. I've bumped up the next release to v4.7.0 because this is a relatively big mind shift in how the framework works, and it's a big enough API change to warrant a minor update. This is the first step towards enabling context tracing for stellar unit testing
This commit is contained in:
@@ -1009,16 +1009,16 @@
|
||||
height: config.height || stage.getHeight(),
|
||||
pixelRatio: 1
|
||||
}),
|
||||
context = canvas.getContext();
|
||||
_context = canvas.getContext()._context;
|
||||
|
||||
context.save();
|
||||
_context.save();
|
||||
|
||||
if(x || y) {
|
||||
context.translate(-1 * x, -1 * y);
|
||||
_context.translate(-1 * x, -1 * y);
|
||||
}
|
||||
|
||||
this.drawScene(canvas);
|
||||
context.restore();
|
||||
_context.restore();
|
||||
|
||||
return canvas.toDataURL(mimeType, quality);
|
||||
},
|
||||
|
Reference in New Issue
Block a user