advanced-cropper
Advanced tools
Comparing version 0.17.0 to 0.17.1
@@ -54,3 +54,3 @@ import { __assign } from 'tslib'; | ||
var offsetY = coordinates.top < 0 ? -coordinates.top : 0; | ||
ctx.drawImage(source, coordinates.left + offsetX, coordinates.top + offsetY, coordinates.width, coordinates.height, offsetX, offsetY, canvas.width, canvas.height); | ||
ctx.drawImage(source, coordinates.left + offsetX, coordinates.top + offsetY, coordinates.width, coordinates.height, offsetX * (canvas.width / coordinates.width), offsetY * (canvas.height / coordinates.height), canvas.width, canvas.height); | ||
} | ||
@@ -57,0 +57,0 @@ return canvas; |
@@ -58,3 +58,3 @@ 'use strict'; | ||
var offsetY = coordinates.top < 0 ? -coordinates.top : 0; | ||
ctx.drawImage(source, coordinates.left + offsetX, coordinates.top + offsetY, coordinates.width, coordinates.height, offsetX, offsetY, canvas.width, canvas.height); | ||
ctx.drawImage(source, coordinates.left + offsetX, coordinates.top + offsetY, coordinates.width, coordinates.height, offsetX * (canvas.width / coordinates.width), offsetY * (canvas.height / coordinates.height), canvas.width, canvas.height); | ||
} | ||
@@ -61,0 +61,0 @@ return canvas; |
{ | ||
"name": "advanced-cropper", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"description": "The core of the advanced cropper libraries family", | ||
@@ -5,0 +5,0 @@ "author": "Norserium", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
480391