|
@@ -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);
|