Comparing version 7.2.0 to 7.2.1
@@ -6,2 +6,7 @@ # Change Log | ||
## 7.2.1 | ||
* Fix correct rendering of `Konva.Label` when heigh of text is changed | ||
* Fix correct `transformstart` and `transformend` events when several nodes are attached with `Konva.Transformer` | ||
## 7.2.0 | ||
@@ -8,0 +13,0 @@ |
@@ -50,3 +50,3 @@ "use strict"; | ||
_global: exports.glob, | ||
version: '7.2.0', | ||
version: '7.2.1', | ||
isBrowser: detectBrowser(), | ||
@@ -53,0 +53,0 @@ isUnminified: /param/.test(function (param) { }.toString()), |
@@ -29,3 +29,4 @@ "use strict"; | ||
'text', | ||
'width' | ||
'width', | ||
'height', | ||
], CHANGE_KONVA = 'Change.konva', NONE = 'none', UP = 'up', RIGHT = 'right', DOWN = 'down', LEFT = 'left', attrChangeListLen = ATTR_CHANGE_LIST.length; | ||
@@ -95,7 +96,7 @@ var Label = (function (_super) { | ||
width: width, | ||
height: height | ||
height: height, | ||
}); | ||
text.setAttrs({ | ||
x: -1 * x, | ||
y: -1 * y | ||
y: -1 * y, | ||
}); | ||
@@ -183,3 +184,3 @@ } | ||
width: width, | ||
height: height | ||
height: height, | ||
}; | ||
@@ -186,0 +187,0 @@ }; |
@@ -478,3 +478,5 @@ "use strict"; | ||
this._fire('transformstart', { evt: e, target: this.getNode() }); | ||
this.getNode()._fire('transformstart', { evt: e, target: this.getNode() }); | ||
this._nodes.forEach(function (target) { | ||
target._fire('transformstart', { evt: e, target: target }); | ||
}); | ||
}; | ||
@@ -668,3 +670,5 @@ Transformer.prototype._handleMouseMove = function (e) { | ||
if (node) { | ||
node.fire('transformend', { evt: e, target: node }); | ||
this._nodes.forEach(function (target) { | ||
target._fire('transformend', { evt: e, target: target }); | ||
}); | ||
} | ||
@@ -671,0 +675,0 @@ this._movingAnchorName = null; |
{ | ||
"name": "konva", | ||
"version": "7.2.0", | ||
"version": "7.2.1", | ||
"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
1415878
32050