mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Add Transform
to Konva
default exports. So Konva.Transform
is available now. close #820
This commit is contained in:
parent
aab7bf1c0f
commit
f097fe7b2f
@ -5,8 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## Not released:
|
## Not released:
|
||||||
|
|
||||||
|
## 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`.
|
||||||
* Fix `cache()` method of `Konva.Arrow()`
|
* Fix `cache()` method of `Konva.Arrow()`
|
||||||
|
* Add `Transform` to `Konva` default exports. So `Konva.Transform` is available now.
|
||||||
|
|
||||||
## 4.1.0 - 2019-12-23
|
## 4.1.0 - 2019-12-23
|
||||||
|
|
||||||
|
3
konva.js
3
konva.js
@ -8,7 +8,7 @@
|
|||||||
* Konva JavaScript Framework v4.1.0
|
* Konva JavaScript Framework v4.1.0
|
||||||
* http://konvajs.org/
|
* http://konvajs.org/
|
||||||
* Licensed under the MIT
|
* Licensed under the MIT
|
||||||
* Date: Fri Jan 03 2020
|
* Date: Tue Jan 07 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)
|
||||||
@ -9794,6 +9794,7 @@
|
|||||||
var Konva$1 = Util._assign(Konva, {
|
var Konva$1 = Util._assign(Konva, {
|
||||||
Collection: Collection,
|
Collection: Collection,
|
||||||
Util: Util,
|
Util: Util,
|
||||||
|
Transform: Transform,
|
||||||
Node: Node,
|
Node: Node,
|
||||||
ids: ids,
|
ids: ids,
|
||||||
names: names,
|
names: names,
|
||||||
|
4
konva.min.js
vendored
4
konva.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
// what is core parts of Konva?
|
// what is core parts of Konva?
|
||||||
import { Konva as Global } from './Global';
|
import { Konva as Global } from './Global';
|
||||||
|
|
||||||
import { Collection, Util } from './Util';
|
import { Collection, Util, Transform } from './Util';
|
||||||
import { Node, ids, names } from './Node';
|
import { Node, ids, names } from './Node';
|
||||||
import { Container } from './Container';
|
import { Container } from './Container';
|
||||||
|
|
||||||
@ -25,6 +25,7 @@ import { Canvas } from './Canvas';
|
|||||||
export const Konva = Util._assign(Global, {
|
export const Konva = Util._assign(Global, {
|
||||||
Collection,
|
Collection,
|
||||||
Util,
|
Util,
|
||||||
|
Transform,
|
||||||
Node,
|
Node,
|
||||||
ids,
|
ids,
|
||||||
names,
|
names,
|
||||||
|
@ -48,4 +48,8 @@ suite('Util', function() {
|
|||||||
a: 1
|
a: 1
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('make sure Transform is exported', () => {
|
||||||
|
assert.equal(!!Konva.Transform, true);
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user