mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
Merge branch 'pronebird-patch-3'
This commit is contained in:
@@ -333,11 +333,14 @@
|
||||
|
||||
if (filters) {
|
||||
if (!this._filterUpToDate) {
|
||||
var ratio = sceneCanvas.pixelRatio;
|
||||
|
||||
try {
|
||||
len = filters.length;
|
||||
filterContext.clear();
|
||||
|
||||
// copy cached canvas onto filter context
|
||||
filterContext.drawImage(sceneCanvas._canvas, 0, 0);
|
||||
filterContext.drawImage(sceneCanvas._canvas, 0, 0, sceneCanvas.getWidth() / ratio, sceneCanvas.getHeight() / ratio);
|
||||
imageData = filterContext.getImageData(0, 0, filterCanvas.getWidth(), filterCanvas.getHeight());
|
||||
|
||||
// apply filters to filter context
|
||||
|
Reference in New Issue
Block a user