Browse Source

字段修改 旋转

haojianlong 3 years ago
parent
commit
0700f2438a

+ 2 - 2
persagy-web-big-edit/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@persagy-web/big-edit",
-    "version": "2.2.30",
+    "version": "2.2.34",
     "description": "博锐尚格二维图形编辑器。",
     "main": "lib/index.js",
     "types": "lib/index.d.js",
@@ -40,7 +40,7 @@
         "typescript": "^3.5.3"
     },
     "dependencies": {
-        "@persagy-web/edit": "2.2.27",
+        "@persagy-web/edit": "2.2.28",
         "@types/uuid": "^8.0.0",
         "crypto-js": "^4.0.0",
         "axios": "^0.20.0"

+ 8 - 1
persagy-web-big-edit/src/items/SBasePipe.ts

@@ -112,10 +112,11 @@ export class SBasePipe extends SBaseCirclePolylineEdit {
      */
     constructor(parent: SGraphItem | null, data: Relation) {
         super(parent);
-        this.relationData = data;
+        this.radius = 0;
         this.zOrder = 9700;
         // 求掉选中框
         this.showSelect = false;
+        this.relationData = data;
     }
 
     /**
@@ -172,6 +173,11 @@ export class SBasePipe extends SBaseCirclePolylineEdit {
             if (data.style.default.lineWidth) {
                 this.lineWidth = data.style.default.lineWidth;
             }
+
+            // 拐角半径
+            if (data.style.default.radius) {
+                this.radius = data.style.default.radius;
+            }
         }
     }
 
@@ -237,6 +243,7 @@ export class SBasePipe extends SBaseCirclePolylineEdit {
         data.style.default.strokeColor = this.strokeColor.value;
         data.style.default.lineWidth = this.lineWidth;
         data.style.default.lineStyle = this.lineStyle;
+        data.style.default.radius = this.radius;
         return data;
     }
 }

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

@@ -1,6 +1,6 @@
 {
     "name": "@persagy-web/edit",
-    "version": "2.2.27",
+    "version": "2.2.28",
     "description": "博锐尚格二维图形编辑器。",
     "main": "lib/index.js",
     "types": "lib/index.d.js",