Browse Source

editer:<perf>npm 包替换优化代码

YaolongHan 4 years ago
parent
commit
985a1dd2b9

+ 2 - 1
package.json

@@ -19,6 +19,7 @@
     "@persagy-web/big": "2.2.19",
     "@persagy-web/draw": "2.2.8",
     "@persagy-web/graph": "2.2.23",
+    "@persagy-web/edit": "2.2.2",
     "@types/uuid": "^8.0.0",
     "ant-design-vue": "^1.6.5",
     "axios": "^0.20.0",
@@ -56,4 +57,4 @@
     "typescript": "~3.9.3",
     "vue-template-compiler": "^2.6.11"
   }
-}
+}

BIN
src/assets/images/recycle.png


+ 1 - 1
src/components/editClass/big-edit/BigEditFactory.ts

@@ -31,7 +31,7 @@ import {
     SBasePolygonEdit,
     SBaseRectEdit,
     SBaseTextEdit
-} from "./../edit/";
+} from "@persagy-web/edit";
 import { Marker, SBaseArrow, SBaseExpainEdit, SBaseArrowPolyEdit, SBaseEquipment, SBasePipe, Legend, Relation } from "./"
 import { SItemFactory } from "@persagy-web/big"
 

+ 1 - 1
src/components/editClass/big-edit/SBaseEditScene.ts

@@ -24,7 +24,7 @@
  * *********************************************************************************************************************
  */
 
-import { SGraphDeleteListCommand, SGraphEditScene, SGraphEdit } from "./../edit/"
+import { SGraphDeleteListCommand, SGraphEditScene, SGraphEdit } from "@persagy-web/edit"
 import { SMouseEvent } from "@persagy-web/base/lib";
 import { SArrowStyleType, SPoint, SRect } from '@persagy-web/draw';
 import { SItemStatus, SRectSelectItem } from '@persagy-web/big/lib';

+ 1 - 1
src/components/editClass/big-edit/items/SBaseArrow.ts

@@ -25,7 +25,7 @@
  */
 
 import { SColor, SFont, SPainter, SArrowStyleType } from "@persagy-web/draw/";
-import { SBasePolylineEdit } from './../../edit/';
+import { SBasePolylineEdit } from "@persagy-web/edit";
 import { SGraphItem, SLineStyle } from "@persagy-web/graph/lib";
 import { Marker } from "./../types/Marker";
 import { SMouseEvent } from "@persagy-web/base/lib";

+ 1 - 1
src/components/editClass/big-edit/items/SBaseArrowPolyEdit.ts

@@ -26,7 +26,7 @@
 
 import { SMathUtil } from "@persagy-web/graph/lib/utils/SMathUtil";
 import { SColor, SLine, SPainter, SPoint } from '@persagy-web/draw/lib';
-import { SBaseLineEdit } from '../../edit';
+import { SBaseLineEdit } from "@persagy-web/edit";
 import { SItemStatus } from '@persagy-web/big/lib';
 import { Marker } from '..';
 import { SGraphItem } from '@persagy-web/graph/lib';

+ 1 - 1
src/components/editClass/big-edit/items/SBaseEquipment.ts

@@ -26,7 +26,7 @@
 
 import { SGraphItem, SAnchorItem } from "@persagy-web/graph/lib";
 import { Legend } from "./../types/Legend";
-import { SBaseIconTextEdit, SBaseTextEdit } from './../../edit/';
+import { SBaseIconTextEdit, SBaseTextEdit } from "@persagy-web/edit";
 import { SColor } from '@persagy-web/draw/lib';
 import { svgTobase64, uuid } from "./../until"
 /**

+ 1 - 1
src/components/editClass/big-edit/items/SBaseExpainEdit.ts

@@ -24,7 +24,7 @@
 * *********************************************************************************************************************
 */
 
-import {SBaseTextEdit} from './../../edit/';
+import {SBaseTextEdit} from "@persagy-web/edit";
 import {SGraphItem} from "@persagy-web/graph/lib";
 import {Marker} from "./../types/Marker";
 import {SMouseEvent} from "@persagy-web/base/lib";

+ 1 - 1
src/components/editClass/big-edit/items/SBasePipe.ts

@@ -24,7 +24,7 @@
  * *********************************************************************************************************************
  */
 
-import { SBasePolylineEdit } from './../../edit/';
+import { SBasePolylineEdit } from "@persagy-web/edit";
 import { SGraphItem, SAnchorItem } from "@persagy-web/graph/lib/";
 import { Relation } from "./../types/Relation";
 import { SMouseEvent, } from "@persagy-web/base/lib";

+ 1 - 1
src/components/editClass/big-edit/items/SBasePipeUninTool.ts

@@ -24,7 +24,7 @@
  * *********************************************************************************************************************
  */
 
-import {SBaseImageEdit} from './../../edit/';
+import {SBaseImageEdit} from "@persagy-web/edit";
 import {SGraphItem} from "@persagy-web/graph/lib";
 import {Marker} from "./../types/Marker";
 import {SMouseEvent} from "@persagy-web/base/lib";

+ 1 - 1
src/components/editClass/big-edit/types/Anchor.ts

@@ -24,7 +24,7 @@
  * *********************************************************************************************************************
  */
 
-import { Point } from "./../../edit/type/Point";
+import { Point } from "@persagy-web/edit/lib/type/Point";
 
 /**
  * 锚点 item 接口

+ 1 - 1
src/components/editClass/big-edit/types/Legend.ts

@@ -25,7 +25,7 @@
  */
 
 import { Anchor } from "./Anchor";
-import { Point } from "./../../edit/type/Point";
+import { Point } from "@persagy-web/edit/lib/type/Point";
 import { Size } from "@persagy-web/big/lib/types/Size";
 import { SPoint } from '@persagy-web/draw/';
 

+ 1 - 1
src/components/editClass/big-edit/types/Marker.ts

@@ -24,7 +24,7 @@
  * *********************************************************************************************************************
  */
 
-import { Point } from "./../../edit/type/Point";
+import { Point } from "@persagy-web/edit/lib/type/Point";
 import { Size } from "@persagy-web/big/lib/types/Size";
 
 /**

+ 1 - 1
src/components/editClass/big-edit/types/Relation.ts

@@ -25,7 +25,7 @@
  */
 
 import { SRelationDir } from "@persagy-web/big/lib/enums/SRelationDir";
-import { Point } from "./../../edit/type/Point";
+import { Point } from "@persagy-web/edit/lib/type/Point";
 
 /**
  * 管线对象关系接口