pure-canvas
Advanced tools
Comparing version 0.6.8 to 0.6.9
@@ -37,2 +37,3 @@ "use strict"; | ||
else { | ||
const { minX, minY, maxX, maxY } = this.getBounds(); | ||
if (!this.cache) { | ||
@@ -43,4 +44,5 @@ this.caching = true; | ||
} | ||
const { minX, minY, maxX, maxY } = this.getBounds(); | ||
context.drawImage(this.cache, minX, minY, maxX - minX, maxY - minY); | ||
else if (maxX - minX > 0 && maxY - minY > 0) { | ||
context.drawImage(this.cache, minX, minY, maxX - minX, maxY - minY); | ||
} | ||
} | ||
@@ -47,0 +49,0 @@ } |
{ | ||
"name": "pure-canvas", | ||
"version": "0.6.8", | ||
"version": "0.6.9", | ||
"description": "TODO", | ||
@@ -5,0 +5,0 @@ "main": "lib/Stage.js", |
@@ -51,2 +51,3 @@ import Node, {Point, Bounds} from './Node'; | ||
} else { | ||
const {minX, minY, maxX, maxY} = this.getBounds(); | ||
if (!this.cache) { | ||
@@ -56,5 +57,5 @@ this.caching = true; | ||
this.caching = false; | ||
} else if (maxX - minX > 0 && maxY - minY > 0) { | ||
context.drawImage(this.cache, minX, minY, maxX - minX, maxY - minY); | ||
} | ||
const {minX, minY, maxX, maxY} = this.getBounds(); | ||
context.drawImage(this.cache, minX, minY, maxX - minX, maxY - minY); | ||
} | ||
@@ -61,0 +62,0 @@ } |
Sorry, the diff of this file is not supported yet
238822
3157