Comparing version 9.0.2 to 9.1.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1387673
33155