ソースを参照

锚点灵敏度;折线item双击修改

haojianlong 5 年 前
コミット
55e63b6111

+ 3 - 1
saga-web-big/src/items/SPolylineItem.ts

@@ -263,7 +263,9 @@ export class SPolylineItem extends SGraphItem {
             this.status = SItemStatus.Normal;
             this.releaseItem();
         } else if (this.status == SItemStatus.Create) {
-            this.status = SItemStatus.Edit;
+            this.status = SItemStatus.Normal;
+            this.releaseItem();
+            this.$emit("finishCreated");
         }
         this.$emit("onDoubleClick", event);
         return true;

+ 1 - 1
saga-web-graph/src/items/SAnchorItem.ts

@@ -14,7 +14,7 @@ export class SAnchorItem extends SGraphItem {
     /** 是否被连接   */
     isConnected: boolean = false;
     /** 全局灵敏度   */
-    dis: number = 30;
+    dis: number = 3;
     /** 灵敏度转换为场景长度  */
     sceneDis: number = 10;