|
@@ -240,7 +240,7 @@ export class SBaseEditScene extends SGraphEditScene {
|
|
|
* @return 新增的管道
|
|
|
*/
|
|
|
addBasePipe(event: SMouseEvent, legendObj: any): SBasePipe {
|
|
|
- const anc = this.isAdsorb ? this.clickIsAnchor(event) :null;
|
|
|
+ const anc = this.isAdsorb ? this.clickIsAnchor(event) : null;
|
|
|
// 锚点时否存在
|
|
|
if (anc) {
|
|
|
const p = anc.mapToScene(0, 0);
|
|
@@ -327,6 +327,8 @@ export class SBaseEditScene extends SGraphEditScene {
|
|
|
return [];
|
|
|
}
|
|
|
itemList = this.selectContainer.itemList;
|
|
|
+ }
|
|
|
+ if (itemList.length) {
|
|
|
this.undoStack.push(
|
|
|
new SGraphDeleteListCommand(this, [...itemList])
|
|
|
);
|
|
@@ -528,7 +530,6 @@ export class SBaseEditScene extends SGraphEditScene {
|
|
|
this.finishCreated(this.grabItem);
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
this.grabItem.onMouseDown(event);
|