|
@@ -1,5 +1,5 @@
|
|
|
import { SBaseEditScene, SBasePipe,SBaseEquipment } from "./../big-edit";
|
|
|
-import { SGraphEdit, } from "./../edit";
|
|
|
+import { SGraphEdit, SGraphPropertyCommand, } from "./../edit";
|
|
|
import { SMouseEvent } from "@persagy-web/base/lib";
|
|
|
import { SGraphSelectContainer, SLineStyle } from "@persagy-web/graph";
|
|
|
import { SItemStatus } from "@persagy-web/big/lib/enums/SItemStatus";
|
|
@@ -148,6 +148,9 @@ export class PTopoScene extends SBaseEditScene {
|
|
|
if (item instanceof SGraphSelectContainer) {
|
|
|
return
|
|
|
}
|
|
|
+ const oldMsg = item[styletype];
|
|
|
+ const newMsg = styleValue;
|
|
|
+ this.undoStack.push(new SGraphPropertyCommand(this, item, styletype, oldMsg, newMsg));
|
|
|
item[styletype] = styleValue;
|
|
|
})
|
|
|
|