|
@@ -19,14 +19,14 @@
|
|
|
class RectItem extends SGraphItem {
|
|
|
width = 100;
|
|
|
height = 100;
|
|
|
- id = new Date().getTime()
|
|
|
+ id = new Date().getTime() + '';
|
|
|
constructor(parent: SGraphItem | null) {
|
|
|
super(parent);
|
|
|
this.moveable = true;
|
|
|
this.selectable = true;
|
|
|
this.selected = true;
|
|
|
this.isTransform = true;
|
|
|
- this.rolate = 60;
|
|
|
+ this.rotate = 60;
|
|
|
}
|
|
|
|
|
|
boundingRect(): SRect {
|
|
@@ -43,7 +43,7 @@
|
|
|
|
|
|
class CircleItem extends SGraphItem {
|
|
|
r = 50;
|
|
|
- id = new Date().getTime()
|
|
|
+ id = new Date().getTime()+""
|
|
|
|
|
|
constructor(parent: SGraphItem | null) {
|
|
|
super(parent);
|
|
@@ -111,8 +111,8 @@
|
|
|
}
|
|
|
|
|
|
class TestView extends SGraphView {
|
|
|
- constructor() {
|
|
|
- super("undoFrame");
|
|
|
+ constructor(undoFrame) {
|
|
|
+ super(undoFrame);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -123,7 +123,7 @@
|
|
|
}
|
|
|
},
|
|
|
mounted(): void {
|
|
|
- let view = new TestView();
|
|
|
+ let view = new TestView('undoFrame');
|
|
|
view.scene = this.scene;//new SScene(); //this.data.scene;
|
|
|
},
|
|
|
methods: {
|