|
@@ -62,7 +62,7 @@ export class EditScence extends SGraphScene {
|
|
|
itemType = 'pipeline'
|
|
|
} else if (obj.itemList[0] instanceof SImgTextItem) {
|
|
|
itemType = 'equipment'
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
itemType = ''
|
|
|
};
|
|
|
if (obj.itemList.length == 1) {
|
|
@@ -188,7 +188,7 @@ export class EditScence extends SGraphScene {
|
|
|
if (this.focusItem) {
|
|
|
const old = this.focusItem.text;
|
|
|
this.focusItem.text = str;
|
|
|
- this.undoStack.push(new SGraphPropertyCommand(this, this.focusItem, "text", old, str));
|
|
|
+ // this.undoStack.push(new SGraphPropertyCommand(this, this.focusItem, "text", old, str));
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -202,7 +202,7 @@ export class EditScence extends SGraphScene {
|
|
|
let font = new SFont(this.focusItem.font);
|
|
|
font.size = size;
|
|
|
this.focusItem.font = font;
|
|
|
- this.undoStack.push(new SGraphPropertyCommand(this, this.focusItem, "font", old, font));
|
|
|
+ // this.undoStack.push(new SGraphPropertyCommand(this, this.focusItem, "font", old, font));
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -229,9 +229,35 @@ export class EditScence extends SGraphScene {
|
|
|
if (this.focusItem.color) {
|
|
|
let old = this.focusItem.color;
|
|
|
this.focusItem.color = color;
|
|
|
- this.undoStack.push(new SGraphPropertyCommand(this, this.focusItem, "color", old, color));
|
|
|
+ // this.undoStack.push(new SGraphPropertyCommand(this, this.focusItem, "color", old, color));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更改item宽
|
|
|
+ * @param width number 颜色
|
|
|
+ */
|
|
|
+
|
|
|
+ updatedWidth(width: number): void {
|
|
|
+ if (this.focusItem) {
|
|
|
+ // let old = this.focusItem.width;
|
|
|
+ this.focusItem.width = width;
|
|
|
+ // this.undoStack.push(new SGraphPropertyCommand(this, this.focusItem, "color", old, color));
|
|
|
}
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 更改item高
|
|
|
+ * @param height number 颜色
|
|
|
+ */
|
|
|
+
|
|
|
+ updatedHeight(height: number): void {
|
|
|
+ if (this.focusItem) {
|
|
|
+ // let old = this.focusItem.width;
|
|
|
+ this.focusItem.height = height;
|
|
|
+ // this.undoStack.push(new SGraphPropertyCommand(this, this.focusItem, "color", old, color));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 删除指定item
|