Comparing version 9.2.2 to 9.2.3
@@ -19,3 +19,3 @@ "use strict"; | ||
_global: exports.glob, | ||
version: '9.2.2', | ||
version: '9.2.3', | ||
isBrowser: detectBrowser(), | ||
@@ -22,0 +22,0 @@ isUnminified: /param/.test(function (param) { }.toString()), |
@@ -691,3 +691,2 @@ "use strict"; | ||
} | ||
const allowNegativeScale = this.flipEnabled(); | ||
var t = new Util_1.Transform(); | ||
@@ -708,6 +707,2 @@ t.rotate(Global_1.Konva.getAngle(this.rotation())); | ||
this._anchorDragOffset.y -= offset.y; | ||
if (!allowNegativeScale) { | ||
this.update(); | ||
return; | ||
} | ||
} | ||
@@ -725,6 +720,2 @@ else if (this._movingAnchorName && | ||
newAttrs.width += this.padding() * 2; | ||
if (!allowNegativeScale) { | ||
this.update(); | ||
return; | ||
} | ||
} | ||
@@ -744,6 +735,2 @@ if (this._movingAnchorName && | ||
newAttrs.height += this.padding() * 2; | ||
if (!allowNegativeScale) { | ||
this.update(); | ||
return; | ||
} | ||
} | ||
@@ -761,6 +748,2 @@ else if (this._movingAnchorName && | ||
newAttrs.height += this.padding() * 2; | ||
if (!allowNegativeScale) { | ||
this.update(); | ||
return; | ||
} | ||
} | ||
@@ -782,5 +765,15 @@ if (this.boundBoxFunc()) { | ||
const newTr = new Util_1.Transform(); | ||
newTr.translate(newAttrs.x, newAttrs.y); | ||
newTr.rotate(newAttrs.rotation); | ||
newTr.scale(newAttrs.width / baseSize, newAttrs.height / baseSize); | ||
const newScaleX = newAttrs.width / baseSize; | ||
const newScaleY = newAttrs.height / baseSize; | ||
if (this.flipEnabled() === false) { | ||
newTr.translate(newAttrs.x, newAttrs.y); | ||
newTr.rotate(newAttrs.rotation); | ||
newTr.translate(newAttrs.width < 0 ? newAttrs.width : 0, newAttrs.height < 0 ? newAttrs.height : 0); | ||
newTr.scale(Math.abs(newScaleX), Math.abs(newScaleY)); | ||
} | ||
else { | ||
newTr.translate(newAttrs.x, newAttrs.y); | ||
newTr.rotate(newAttrs.rotation); | ||
newTr.scale(newScaleX, newScaleY); | ||
} | ||
const delta = newTr.multiply(oldTr.invert()); | ||
@@ -787,0 +780,0 @@ this._nodes.forEach((node) => { |
{ | ||
"name": "konva", | ||
"version": "9.2.2", | ||
"version": "9.2.3", | ||
"author": "Anton Lavrenov", | ||
@@ -62,7 +62,7 @@ "files": [ | ||
"devDependencies": { | ||
"@parcel/transformer-image": "2.9.3", | ||
"@size-limit/preset-big-lib": "^8.2.6", | ||
"@types/mocha": "^10.0.1", | ||
"@parcel/transformer-image": "2.10.1", | ||
"@size-limit/preset-big-lib": "^10.0.1", | ||
"@types/mocha": "^10.0.3", | ||
"canvas": "^2.11.2", | ||
"chai": "4.3.8", | ||
"chai": "4.3.10", | ||
"filehound": "^1.17.6", | ||
@@ -82,10 +82,10 @@ "gulp": "^4.0.2", | ||
"mocha-headless-chrome": "^4.0.0", | ||
"parcel": "2.9.3", | ||
"parcel": "2.10.1", | ||
"process": "^0.11.10", | ||
"rollup": "^3.28.1", | ||
"rollup": "^4.2.0", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-sourcemaps": "^0.6.3", | ||
"rollup-plugin-typescript2": "^0.35.0", | ||
"size-limit": "^8.2.6", | ||
"rollup-plugin-typescript2": "^0.36.0", | ||
"size-limit": "^10.0.1", | ||
"ts-mocha": "^10.0.0", | ||
@@ -92,0 +92,0 @@ "ts-node": "^10.9.1", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1393205
32478