update CHANGELOG with new version

This commit is contained in:
Anton Lavrenov 2020-01-08 08:15:12 -05:00
parent dd3cdd44e0
commit 1263ac9396
4 changed files with 15 additions and 7 deletions

View File

@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## Not released: ## Not released:
## 4.1.2 - 2020-01-08
* Fix possible `NaN` in content calculations
## 4.1.1 - 2020-01-07 ## 4.1.1 - 2020-01-07
* Add ability to use `width = 0` and `height = 0` for `Konva.Image`. * Add ability to use `width = 0` and `height = 0` for `Konva.Image`.

View File

@ -8,7 +8,7 @@
* Konva JavaScript Framework v4.1.1 * Konva JavaScript Framework v4.1.1
* http://konvajs.org/ * http://konvajs.org/
* Licensed under the MIT * Licensed under the MIT
* Date: Tue Jan 07 2020 * Date: Wed Jan 08 2020
* *
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS) * Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva) * Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
@ -6528,8 +6528,10 @@
return { return {
top: rect.top, top: rect.top,
left: rect.left, left: rect.left,
scaleX: rect.width / this.content.clientWidth, // sometimes clientWidth can be equals to 0
scaleY: rect.height / this.content.clientHeight, // i saw it in react-konva test, looks like it is because of hidden testing element
scaleX: rect.width / this.content.clientWidth || 1,
scaleY: rect.height / this.content.clientHeight || 1,
}; };
}; };
Stage.prototype._buildDOM = function () { Stage.prototype._buildDOM = function () {

4
konva.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1005,8 +1005,10 @@ export class Stage extends Container<BaseLayer> {
return { return {
top: rect.top, top: rect.top,
left: rect.left, left: rect.left,
scaleX: rect.width / this.content.clientWidth, // sometimes clientWidth can be equals to 0
scaleY: rect.height / this.content.clientHeight, // i saw it in react-konva test, looks like it is because of hidden testing element
scaleX: rect.width / this.content.clientWidth || 1,
scaleY: rect.height / this.content.clientHeight || 1,
}; };
} }
_buildDOM() { _buildDOM() {