mirror of
https://github.com/konvajs/konva.git
synced 2025-10-08 00:14:23 +08:00
update CHANGELOG with new version
This commit is contained in:
@@ -5,23 +5,23 @@ function equal(val1, val2, message) {
|
||||
}
|
||||
|
||||
// try to import only core
|
||||
import Konva from 'konva';
|
||||
// import Konva from '../';
|
||||
|
||||
// no external shapes
|
||||
// equal(Konva.Rect, undefined, 'no external shapes');
|
||||
// // no external shapes
|
||||
// // equal(Konva.Rect, undefined, 'no external shapes');
|
||||
|
||||
import { Rect } from 'konva/lib/shapes/Rect';
|
||||
// import { Rect } from '../lib/shapes/Rect';
|
||||
|
||||
equal(Rect !== undefined, true, 'Rect is defined');
|
||||
// equal(Rect !== undefined, true, 'Rect is defined');
|
||||
|
||||
equal(Konva.Rect, Rect, 'Rect is injected');
|
||||
// equal(Konva.Rect, Rect, 'Rect is injected');
|
||||
|
||||
import Konva2 from 'konva';
|
||||
// import Konva2 from '../';
|
||||
|
||||
equal(Konva2.Rect, Rect, 'Rect is injected');
|
||||
// equal(Konva2.Rect, Rect, 'Rect is injected');
|
||||
|
||||
equal(Konva2, Konva, 'Same Konva');
|
||||
// equal(Konva2, Konva, 'Same Konva');
|
||||
|
||||
// just do a simple action
|
||||
const stage = new Konva.Stage();
|
||||
stage.toDataURL();
|
||||
// // just do a simple action
|
||||
// const stage = new Konva.Stage();
|
||||
// stage.toDataURL();
|
||||
|
Reference in New Issue
Block a user