Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

konva

Package Overview
Dependencies
Maintainers
1
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

konva - npm Package Compare versions

Comparing version 9.2.2 to 9.2.3

2

lib/Global.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc