mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
update CHANGELOG with new version
This commit is contained in:
parent
41576cfa81
commit
a9ea5a54f6
@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## [new version][unreleased]
|
## [new version][unreleased]
|
||||||
|
|
||||||
|
## [2.1.8][2018-08-01]
|
||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
|
|
||||||
* Some `Konva.Transformer` fixes
|
* Some `Konva.Transformer` fixes
|
||||||
|
17
konva.js
17
konva.js
@ -2,7 +2,7 @@
|
|||||||
* Konva JavaScript Framework v2.1.7
|
* Konva JavaScript Framework v2.1.7
|
||||||
* http://konvajs.github.io/
|
* http://konvajs.github.io/
|
||||||
* Licensed under the MIT
|
* Licensed under the MIT
|
||||||
* Date: Tue Jul 24 2018
|
* Date: Wed Aug 01 2018
|
||||||
*
|
*
|
||||||
* 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)
|
||||||
@ -3425,7 +3425,7 @@
|
|||||||
// func with this because it will be the only node
|
// func with this because it will be the only node
|
||||||
if (top && top._id === this._id) {
|
if (top && top._id === this._id) {
|
||||||
func(this);
|
func(this);
|
||||||
return true;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
family.unshift(this);
|
family.unshift(this);
|
||||||
@ -3955,17 +3955,16 @@
|
|||||||
_toKonvaCanvas: function(config) {
|
_toKonvaCanvas: function(config) {
|
||||||
config = config || {};
|
config = config || {};
|
||||||
|
|
||||||
|
var box = this.getClientRect();
|
||||||
|
|
||||||
var stage = this.getStage(),
|
var stage = this.getStage(),
|
||||||
x = config.x || 0,
|
x = config.x || box.x,
|
||||||
y = config.y || 0,
|
y = config.y || box.y,
|
||||||
pixelRatio = config.pixelRatio || 1,
|
pixelRatio = config.pixelRatio || 1,
|
||||||
canvas = new Konva.SceneCanvas({
|
canvas = new Konva.SceneCanvas({
|
||||||
width:
|
width: config.width || box.width || (stage ? stage.getWidth() : 0),
|
||||||
config.width || this.getWidth() || (stage ? stage.getWidth() : 0),
|
|
||||||
height:
|
height:
|
||||||
config.height ||
|
config.height || box.height || (stage ? stage.getHeight() : 0),
|
||||||
this.getHeight() ||
|
|
||||||
(stage ? stage.getHeight() : 0),
|
|
||||||
pixelRatio: pixelRatio
|
pixelRatio: pixelRatio
|
||||||
}),
|
}),
|
||||||
context = canvas.getContext();
|
context = canvas.getContext();
|
||||||
|
4
konva.min.js
vendored
4
konva.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user