pure-canvas
Advanced tools
Comparing version 0.5.6 to 0.5.7
@@ -70,3 +70,3 @@ "use strict"; | ||
var height = maxY - minY; | ||
if (width > 0 && height > 0) { | ||
if (Math.floor(width) > 0 && Math.floor(height) > 0) { | ||
if (!this.cache) { | ||
@@ -73,0 +73,0 @@ this.cache = document.createElement('canvas'); |
{ | ||
"name": "pure-canvas", | ||
"version": "0.5.6", | ||
"version": "0.5.7", | ||
"description": "TODO", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -82,3 +82,3 @@ import Node, {Bounds, Point} from './Node'; | ||
if (width > 0 && height > 0) { | ||
if (Math.floor(width) > 0 && Math.floor(height) > 0) { | ||
if (!this.cache) { | ||
@@ -85,0 +85,0 @@ this.cache = document.createElement('canvas'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
212087