@aptoma/aoi-smart-crop
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -52,9 +52,7 @@ 'use strict'; | ||
if (actions.crop) { | ||
if (actions.crop.height) { | ||
actions.crop.height = Math.ceil(actions.crop.height); | ||
} | ||
if (actions.crop.width) { | ||
actions.crop.width = Math.ceil(actions.crop.width); | ||
} | ||
actions.crop.x = Math.round(actions.crop.x); | ||
actions.crop.y = Math.round(actions.crop.y); | ||
actions.crop.height = Math.ceil(actions.crop.height); | ||
actions.crop.width = Math.ceil(actions.crop.width); | ||
} | ||
} |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Helper library for doing smart crops of images based on area of interest data", | ||
@@ -10,0 +10,0 @@ "main": "lib/index.js", |
21810
570