Add Transform to Konva default exports. So Konva.Transform is available now. close #820

This commit is contained in:
Anton Lavrenov 2020-01-07 08:31:28 -05:00
parent aab7bf1c0f
commit f097fe7b2f
5 changed files with 13 additions and 4 deletions

View File

@ -5,8 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## Not released:
## 4.1.1 - 2020-01-07
* Add ability to use `width = 0` and `height = 0` for `Konva.Image`.
* Fix `cache()` method of `Konva.Arrow()`
* Add `Transform` to `Konva` default exports. So `Konva.Transform` is available now.
## 4.1.0 - 2019-12-23

View File

@ -8,7 +8,7 @@
* Konva JavaScript Framework v4.1.0
* http://konvajs.org/
* Licensed under the MIT
* Date: Fri Jan 03 2020
* Date: Tue Jan 07 2020
*
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
@ -9794,6 +9794,7 @@
var Konva$1 = Util._assign(Konva, {
Collection: Collection,
Util: Util,
Transform: Transform,
Node: Node,
ids: ids,
names: names,

4
konva.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
// what is core parts of Konva?
import { Konva as Global } from './Global';
import { Collection, Util } from './Util';
import { Collection, Util, Transform } from './Util';
import { Node, ids, names } from './Node';
import { Container } from './Container';
@ -25,6 +25,7 @@ import { Canvas } from './Canvas';
export const Konva = Util._assign(Global, {
Collection,
Util,
Transform,
Node,
ids,
names,

View File

@ -48,4 +48,8 @@ suite('Util', function() {
a: 1
});
});
test('make sure Transform is exported', () => {
assert.equal(!!Konva.Transform, true);
})
});