konva 10.0.4 → 10.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/konva.js +8 -8
- package/konva.min.js +3 -3
- package/lib/Container.d.ts +1 -1
- package/lib/DragAndDrop.d.ts +1 -27
- package/lib/Global.js +1 -1
- package/lib/Layer.d.ts +1 -1
- package/lib/Node.d.ts +7 -110
- package/lib/Node.js +1 -1
- package/lib/PointerEvents.d.ts +1 -1
- package/lib/Shape.d.ts +1 -1
- package/lib/Stage.d.ts +2 -2
- package/lib/_CoreInternals.d.ts +2 -28
- package/lib/_FullInternals.d.ts +2 -28
- package/lib/shapes/Image.d.ts +1 -1
- package/lib/shapes/Image.js +4 -4
- package/lib/shapes/Rect.d.ts +2 -2
- package/lib/shapes/Transformer.d.ts +2 -54
- package/package.json +1 -1
package/konva.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
})(this, (function () { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
* Konva JavaScript Framework v10.0.
|
|
8
|
+
* Konva JavaScript Framework v10.0.6
|
|
9
9
|
* http://konvajs.org/
|
|
10
10
|
* Licensed under the MIT
|
|
11
|
-
* Date:
|
|
11
|
+
* Date: Wed Oct 22 2025
|
|
12
12
|
*
|
|
13
13
|
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
|
14
14
|
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
: {};
|
|
36
36
|
const Konva$2 = {
|
|
37
37
|
_global: glob,
|
|
38
|
-
version: '10.0.
|
|
38
|
+
version: '10.0.6',
|
|
39
39
|
isBrowser: detectBrowser(),
|
|
40
40
|
isUnminified: /param/.test(function (param) { }.toString()),
|
|
41
41
|
dblClickWindow: 400,
|
|
@@ -3430,7 +3430,7 @@ js: import "konva/skia-backend";
|
|
|
3430
3430
|
* @returns {Object}
|
|
3431
3431
|
*/
|
|
3432
3432
|
getAttrs() {
|
|
3433
|
-
return
|
|
3433
|
+
return this.attrs || {};
|
|
3434
3434
|
}
|
|
3435
3435
|
/**
|
|
3436
3436
|
* set multiple attrs at once using an object literal
|
|
@@ -13124,12 +13124,12 @@ js: import "konva/skia-backend";
|
|
|
13124
13124
|
context.fillStrokeShape(this);
|
|
13125
13125
|
}
|
|
13126
13126
|
getWidth() {
|
|
13127
|
-
var _a, _b;
|
|
13128
|
-
return (_a = this.attrs.width) !== null && _a !== void 0 ? _a : (_b = this.image()) === null || _b === void 0 ? void 0 : _b.width;
|
|
13127
|
+
var _a, _b, _c;
|
|
13128
|
+
return (_c = (_a = this.attrs.width) !== null && _a !== void 0 ? _a : (_b = this.image()) === null || _b === void 0 ? void 0 : _b.width) !== null && _c !== void 0 ? _c : 0;
|
|
13129
13129
|
}
|
|
13130
13130
|
getHeight() {
|
|
13131
|
-
var _a, _b;
|
|
13132
|
-
return (_a = this.attrs.height) !== null && _a !== void 0 ? _a : (_b = this.image()) === null || _b === void 0 ? void 0 : _b.height;
|
|
13131
|
+
var _a, _b, _c;
|
|
13132
|
+
return (_c = (_a = this.attrs.height) !== null && _a !== void 0 ? _a : (_b = this.image()) === null || _b === void 0 ? void 0 : _b.height) !== null && _c !== void 0 ? _c : 0;
|
|
13133
13133
|
}
|
|
13134
13134
|
/**
|
|
13135
13135
|
* load image from given url and create `Konva.Image` instance
|