|
@@ -31,7 +31,6 @@ import { SItemStatus, SRectSelectItem } from '@persagy-web/big/lib';
|
|
|
import { SGraphItem, SGraphSelectContainer, SOrderSetType } from "@persagy-web/graph/lib/";
|
|
|
import { uuid } from "./until";
|
|
|
import { SBaseArrow, SBaseEquipment, SBaseExpainEdit, SBasePipeUninTool, SBasePipe } from "./"
|
|
|
-import { PTopoParser } from "./../persagy-edit/"
|
|
|
import { SBaseArrowPolyEdit } from './items/SBaseArrowPolyEdit';
|
|
|
import { SGraphAddListCommand } from '../edit/commands/SGraphAddListCommand';
|
|
|
|
|
@@ -486,28 +485,7 @@ export class SBaseEditScene extends SGraphEditScene {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 粘贴
|
|
|
- */
|
|
|
- paste(): void {
|
|
|
- const copyList = JSON.parse(JSON.stringify(this.copyString));
|
|
|
- const parserData = new PTopoParser();
|
|
|
- const graphItemList: SGraphEdit[] = [];
|
|
|
- parserData.parseData(copyList);
|
|
|
- parserData.markers.forEach((item: SGraphEdit) => {
|
|
|
- item.selectable = true;
|
|
|
- item.moveable = true;
|
|
|
- if (this.view) {
|
|
|
- item.pos.x += 10 / this.view.scale
|
|
|
- item.pos.y += 10 / this.view.scale
|
|
|
- }
|
|
|
- this.addItem(item);
|
|
|
- graphItemList.push(item);
|
|
|
- });
|
|
|
|
|
|
- this.addListCommand(graphItemList);
|
|
|
- this.view ? this.view.update() : '';
|
|
|
- }
|
|
|
|
|
|
/**
|
|
|
* 添加多个item命令
|