Browse Source

版本更新

haojianlong 4 năm trước cách đây
mục cha
commit
3116da8d74

+ 1 - 1
persagy-web-big/package.json

@@ -41,6 +41,6 @@
         "typescript": "^3.9.3"
     },
     "dependencies": {
-        "@persagy-web/graph": "2.2.9"
+        "@persagy-web/graph": "2.2.10"
     }
 }

+ 1 - 1
persagy-web-edit/src/enums/STextOrigin.ts

@@ -33,5 +33,5 @@ export enum STextOrigin {
   /** 左上点    */
   LeftTop,
   /** 中心点    */
-  Centrum,
+  Center,
 } // Enum STextOrigin

+ 2 - 2
persagy-web-edit/src/items/TextEdit.ts

@@ -236,7 +236,7 @@ export class TextEdit extends SObjectItem {
             this.width = textMaxWidth;
             this.height = fontSize * 1.25 * this._textArr.length + fontSize / 8;
             // 设置原点位置(默认左上角)
-            if (this.originPosition == STextOrigin.Centrum) {
+            if (this.originPosition == STextOrigin.Center) {
                 this.origin = new SPoint(this.width / 2, this.height / 2);
             }
             this._painter.restore();
@@ -255,4 +255,4 @@ export class TextEdit extends SObjectItem {
         }
         this.drawShowText(painter);
     } // Function onDraw()
-} // Class STextItem
+} // Class STextItem

+ 5 - 5
persagy-web-graph/package.json

@@ -5,10 +5,10 @@
     "main": "lib/index.js",
     "types": "lib/index.d.js",
     "remote": {
-        "host": "47.94.89.44",
-        "path": "/opt/tomcat9/webapps/api/web/graph",
-        "user": "user1",
-        "password": "@)!^sagacloud",
+        "host": "47.93.22.124",
+        "path": "/opt/web/doc/api/web/graph",
+        "user": "doc",
+        "password": "saga2020(^cloud==",
         "local": "api"
     },
     "scripts": {
@@ -40,7 +40,7 @@
         "typescript": "^3.5.3"
     },
     "dependencies": {
-        "@persagy-web/draw": "2.2.5",
+        "@persagy-web/draw": "2.2.6",
         "@types/uuid": "^8.0.0"
     }
 }

+ 1 - 1
persagy-web-graph/src/SGraphSelectContainer.ts

@@ -638,7 +638,7 @@ export class SGraphSelectContainer extends SGraphItem {
      * @param   prop    属性
      * @param   flag    默认正序
      * */
-    private compare(prop: string, flag: boolean) {
+    private compare(prop: string, flag: boolean): any {
         const f = flag ? 1 : -1;
         // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
         return (a: any, b: any) => {

+ 4 - 4
persagy-web-graph/src/enums/STextOrigin.ts

@@ -30,8 +30,8 @@
  * @author  张宇
  */
 export enum STextOrigin {
-  /** 左上点    */
-  LeftTop,
-  /** 中心点    */
-  Centrum,
+    /** 左上点    */
+    LeftTop,
+    /** 中心点    */
+    Center
 } // Enum STextOrigin

+ 1 - 1
persagy-web-graph/src/items/SImageItem.ts

@@ -174,7 +174,7 @@ export class SImageItem extends SObjectItem {
             this.imgWidth = width;
             this.imgHeight = height;
             // 设置原点位置(默认左上角)
-            if (this.originPosition == STextOrigin.Centrum) {
+            if (this.originPosition == STextOrigin.Center) {
                 this.origin = new SPoint(this.width / 2, this.height / 2);
             }
         }

+ 1 - 1
persagy-web-graph/src/items/STextItem.ts

@@ -222,7 +222,7 @@ export class STextItem extends SObjectItem {
             this.width = textMaxWidth;
             this.height = fontSize * 1.25 * this._textArr.length + fontSize / 8;
             // 设置原点位置(默认左上角)
-            if (this.originPosition == STextOrigin.Centrum) {
+            if (this.originPosition == STextOrigin.Center) {
                 this.origin = new SPoint(this.width / 2, this.height / 2);
             }
             this._painter.restore();

+ 0 - 29
persagy-web-graph/src/types/SRectShowType.ts

@@ -1,29 +0,0 @@
-/*
- * *********************************************************************************************************************
- *
- *          !!
- *        .F88X
- *        X8888Y
- *      .}888888N;
- *        i888888N;        .:!              .I$WI:
- *          R888888I      .'N88~            i8}+8Y&8"l8i$8>8W~'>W8}8]KW+8IIN"8&
- *          .R888888I    .;N8888~          .X8'  "8I.!,/8"  !%NY8`"8I8~~8>,88I
- *            +888888N;  .8888888Y                                  "&&8Y.}8,
- *            ./888888N;  .R888888Y        .'}~    .>}'.`+>  i}!    "i'  +/'  .'i~  !11,.:">,  .~]!  .i}i
- *              ~888888%:  .I888888l      .]88~`1/iY88Ii+1'.R$8$8]"888888888>  Y8$  W8E  X8E  W8888'188Il}Y88$*
- *              18888888    E8888881    .]W%8$`R8X'&8%++N8i,8N%N8+l8%`  .}8N:.R$RE%N88N%N$K$R  188,FE$8%~Y88I
- *            .E888888I  .i8888888'      .:$8I;88+`E8R:/8N,.>881.`$8E/1/]N8X.Y8N`"KF&&FK!'88*."88K./$88%RN888+~
- *            8888888I  .,N888888~        ~88i"8W,!N8*.I88.}888%F,i$88"F88"  888:E8X.>88!i88>`888*.}Fl1]*}1YKi'
- *          i888888N'      I888Y          ]88;/EX*IFKFK88X  K8R  .l8W  88Y  ~88}'88E&%8W.X8N``]88!.$8K  .:W8I
- *        .i888888N;        I8Y          .&8$  .X88!  i881.:%888>I88  ;88]  +88+.';;;;:.Y88X  18N.,88l  .+88/
- *      .:R888888I
- *      .&888888I                                          Copyright (c) 2009-2020.  博锐尚格科技股份有限公司
- *        ~8888'
- *        .!88~                                                                     All rights reserved.
- *
- * *********************************************************************************************************************
- */
-
-export interface SRectShowType {
-
-} // I