update CHANGELOG with new version

This commit is contained in:
Anton Lavrenov 2020-11-10 09:01:00 -05:00
parent c17cba6ff5
commit cac47ed03b
3 changed files with 20 additions and 12 deletions

View File

@ -3,6 +3,11 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/). This project adheres to [Semantic Versioning](http://semver.org/).
## 7.1.5
* Performance fixes for dragging many nodes with `Konva.Transformer`.
* Documentation updates
## 7.1.4 ## 7.1.4
* Perf fixes * Perf fixes

View File

@ -8710,7 +8710,6 @@
* var group = layer.getIntersection({x: 50, y: 50}, 'Group'); * var group = layer.getIntersection({x: 50, y: 50}, 'Group');
*/ */
Layer.prototype.getIntersection = function (pos, selector) { Layer.prototype.getIntersection = function (pos, selector) {
var obj, i, intersectionOffset, shape;
if (!this.isListening() || !this.isVisible()) { if (!this.isListening() || !this.isVisible()) {
return null; return null;
} }
@ -8719,13 +8718,13 @@
var spiralSearchDistance = 1; var spiralSearchDistance = 1;
var continueSearch = false; var continueSearch = false;
while (true) { while (true) {
for (i = 0; i < INTERSECTION_OFFSETS_LEN; i++) { for (var i = 0; i < INTERSECTION_OFFSETS_LEN; i++) {
intersectionOffset = INTERSECTION_OFFSETS[i]; var intersectionOffset = INTERSECTION_OFFSETS[i];
obj = this._getIntersection({ var obj = this._getIntersection({
x: pos.x + intersectionOffset.x * spiralSearchDistance, x: pos.x + intersectionOffset.x * spiralSearchDistance,
y: pos.y + intersectionOffset.y * spiralSearchDistance, y: pos.y + intersectionOffset.y * spiralSearchDistance,
}); });
shape = obj.shape; var shape = obj.shape;
if (shape && selector) { if (shape && selector) {
return shape.findAncestor(selector, true); return shape.findAncestor(selector, true);
} }
@ -8751,11 +8750,12 @@
}; };
Layer.prototype._getIntersection = function (pos) { Layer.prototype._getIntersection = function (pos) {
var ratio = this.hitCanvas.pixelRatio; var ratio = this.hitCanvas.pixelRatio;
var p = this.hitCanvas.context.getImageData(Math.round(pos.x * ratio), Math.round(pos.y * ratio), 1, 1).data, p3 = p[3], colorKey, shape; var p = this.hitCanvas.context.getImageData(Math.round(pos.x * ratio), Math.round(pos.y * ratio), 1, 1).data;
var p3 = p[3];
// fully opaque pixel // fully opaque pixel
if (p3 === 255) { if (p3 === 255) {
colorKey = Util._rgbToHex(p[0], p[1], p[2]); var colorKey = Util._rgbToHex(p[0], p[1], p[2]);
shape = shapes[HASH$1 + colorKey]; var shape = shapes[HASH$1 + colorKey];
if (shape) { if (shape) {
return { return {
shape: shape, shape: shape,
@ -11056,10 +11056,13 @@
return _super.prototype._useBufferCanvas.call(this, true); return _super.prototype._useBufferCanvas.call(this, true);
}; };
Image.prototype._sceneFunc = function (context) { Image.prototype._sceneFunc = function (context) {
var width = this.getWidth(), height = this.getHeight(), image = this.attrs.image, cropWidth, cropHeight, params; var width = this.getWidth();
var height = this.getHeight();
var image = this.attrs.image;
var params;
if (image) { if (image) {
cropWidth = this.attrs.cropWidth; var cropWidth = this.attrs.cropWidth;
cropHeight = this.attrs.cropHeight; var cropHeight = this.attrs.cropHeight;
if (cropWidth && cropHeight) { if (cropWidth && cropHeight) {
params = [ params = [
image, image,

2
konva.min.js vendored

File diff suppressed because one or more lines are too long