🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

konva

Package Overview
Dependencies
Maintainers
1
Versions
240
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
10.2.1
to
10.2.3
+3
-0
lib/DragAndDrop.js

@@ -50,2 +50,5 @@ import { Konva } from "./Global.js";

nodesToFireEvents.forEach((node) => {
if (!node.getStage()) {
return;
}
node.fire('dragmove', {

@@ -52,0 +55,0 @@ type: 'dragmove',

+1
-1

@@ -16,3 +16,3 @@ const PI_OVER_180 = Math.PI / 180;

_global: glob,
version: '10.2.1',
version: '10.2.3',
isBrowser: detectBrowser(),

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

@@ -49,2 +49,3 @@ import { Transform } from '../Util.ts';

_cursorChange: boolean;
_elementsCreated: boolean;
static isTransforming: () => boolean;

@@ -96,2 +97,3 @@ constructor(config?: TransformerConfig);

destroy(): this;
add(...children: any[]): this;
toObject(): {

@@ -98,0 +100,0 @@ attrs: any;

@@ -149,2 +149,3 @@ import { Util, Transform } from "../Util.js";

this._transforming = false;
this._elementsCreated = false;
this._createElements();

@@ -369,2 +370,3 @@ this._handleMouseMove = this._handleMouseMove.bind(this);

this._createAnchor('rotater');
this._elementsCreated = true;
}

@@ -992,2 +994,9 @@ _createAnchor(name) {

}
add(...children) {
if (this._elementsCreated) {
Util.error('You cannot add external nodes to the Transformer. Use tr.nodes([node]) instead.');
return this;
}
return super.add(...children);
}
toObject() {

@@ -994,0 +1003,0 @@ return Node.prototype.toObject.call(this);

{
"name": "konva",
"version": "10.2.1",
"version": "10.2.3",
"description": "HTML5 2d canvas library.",

@@ -5,0 +5,0 @@ "author": "Anton Lavrenov",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display