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.0.2 to 9.1.0

2

lib/Animation.js

@@ -142,5 +142,5 @@ "use strict";

}
exports.Animation = Animation;
Animation.animations = [];
Animation.animIdCounter = 0;
Animation.animRunning = false;
exports.Animation = Animation;

@@ -19,3 +19,3 @@ "use strict";

_global: exports.glob,
version: '9.0.2',
version: '9.1.0',
isBrowser: detectBrowser(),

@@ -22,0 +22,0 @@ isUnminified: /param/.test(function (param) { }.toString()),

@@ -116,4 +116,5 @@ import { Transform } from '../Util.js';

anchorDragBoundFunc: GetSet<(oldPos: Vector2d, newPos: Vector2d, e: MouseEvent) => Vector2d, this>;
anchorStyleFunc: GetSet<null | ((Node: Rect) => void), this>;
shouldOverdrawWholeArea: GetSet<boolean, this>;
useSingleNodeRotation: GetSet<boolean, this>;
}

@@ -29,2 +29,3 @@ "use strict";

'ignoreStrokeChange',
'anchorStyleFuncChange',
]

@@ -815,3 +816,4 @@ .map((e) => e + `.${EVENTS_NAME}`)

var anchorSize = this.anchorSize();
this.find('._anchor').forEach((node) => {
const anchors = this.find('._anchor');
anchors.forEach((node) => {
node.setAttrs({

@@ -895,2 +897,8 @@ width: anchorSize,

});
const styleFunc = this.anchorStyleFunc();
if (styleFunc) {
anchors.forEach((node) => {
styleFunc(node);
});
}
(_a = this.getLayer()) === null || _a === void 0 ? void 0 : _a.batchDraw();

@@ -979,2 +987,3 @@ }

Factory_1.Factory.addGetterSetter(Transformer, 'anchorDragBoundFunc');
Factory_1.Factory.addGetterSetter(Transformer, 'anchorStyleFunc');
Factory_1.Factory.addGetterSetter(Transformer, 'shouldOverdrawWholeArea', false);

@@ -981,0 +990,0 @@ Factory_1.Factory.addGetterSetter(Transformer, 'useSingleNodeRotation', true);

@@ -361,5 +361,5 @@ "use strict";

}
exports.Tween = Tween;
Tween.attrs = {};
Tween.tweens = {};
exports.Tween = Tween;
Node_1.Node.prototype.to = function (params) {

@@ -366,0 +366,0 @@ var onFinish = params.onFinish;

@@ -25,2 +25,2 @@ "use strict";

KonvaNodeEvent["dragend"] = "dragend";
})(KonvaNodeEvent = exports.KonvaNodeEvent || (exports.KonvaNodeEvent = {}));
})(KonvaNodeEvent || (exports.KonvaNodeEvent = KonvaNodeEvent = {}));
{
"name": "konva",
"version": "9.0.2",
"version": "9.1.0",
"author": "Anton Lavrenov",

@@ -5,0 +5,0 @@ "files": [

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