@@ -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); |
+1
-1
| { | ||
| "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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1467145
0.1%34568
0.09%