mirror of
https://github.com/konvajs/konva.git
synced 2026-01-21 10:31:52 +08:00
build for
This commit is contained in:
19
konva.js
19
konva.js
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Konva JavaScript Framework v2.1.0
|
||||
* Konva JavaScript Framework v2.1.1
|
||||
* http://konvajs.github.io/
|
||||
* Licensed under the MIT
|
||||
* Date: Wed May 16 2018
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
var Konva = {
|
||||
// public
|
||||
version: '2.1.0',
|
||||
version: '2.1.1',
|
||||
|
||||
// private
|
||||
stages: [],
|
||||
@@ -18790,14 +18790,7 @@
|
||||
this._node = node;
|
||||
this._clearCache(NODE_RECT);
|
||||
|
||||
node.on(
|
||||
TRANSFORM_CHANGE_STR,
|
||||
function() {
|
||||
this._clearCache(NODE_RECT);
|
||||
this._clearCache('transform');
|
||||
this._clearSelfAndDescendantCache('absoluteTransform');
|
||||
}.bind(this)
|
||||
);
|
||||
node.on(TRANSFORM_CHANGE_STR, this._resetTransformCache.bind(this));
|
||||
|
||||
// TODO: why do we need this?
|
||||
var elementsCreated = !!this.findOne('.top-left');
|
||||
@@ -18824,6 +18817,10 @@
|
||||
this.getNode().off('.resizer');
|
||||
this._node = undefined;
|
||||
}
|
||||
this._resetTransformCache();
|
||||
},
|
||||
|
||||
_resetTransformCache: function() {
|
||||
this._clearCache(NODE_RECT);
|
||||
this._clearCache('transform');
|
||||
this._clearSelfAndDescendantCache('absoluteTransform');
|
||||
@@ -19241,7 +19238,7 @@
|
||||
* @memberof Konva.Transformer.prototype
|
||||
*/
|
||||
forceUpdate: function() {
|
||||
this._clearCache(NODE_RECT);
|
||||
this._resetTransformCache();
|
||||
this.update();
|
||||
},
|
||||
update: function() {
|
||||
|
||||
6
konva.min.js
vendored
6
konva.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user