Browse Source

'直线和图标微调'

zhangyu 5 years ago
parent
commit
539b827472
2 changed files with 3 additions and 3 deletions
  1. 1 1
      saga-web-big/src/items/SIconTextItem.ts
  2. 2 2
      saga-web-big/src/items/SLineItem.ts

+ 1 - 1
saga-web-big/src/items/SIconTextItem.ts

@@ -159,7 +159,7 @@ export class SIconTextItem extends SObjectItem {
       this.textItem.backgroundColor = SColor.White;
       this.textItem.backgroundColor = SColor.White;
       this.textItem.font.size = 12;
       this.textItem.font.size = 12;
       // 偏移二分之一文本高度
       // 偏移二分之一文本高度
-      this.textItem.moveTo(11, -(this.textItem.height * 0.5));
+      this.textItem.moveTo(17, -(this.textItem.height * 0.5));
       this.moveable = true;
       this.moveable = true;
       this.selectable = true;
       this.selectable = true;
       this.isTransform = false;
       this.isTransform = false;

+ 2 - 2
saga-web-big/src/items/SLineItem.ts

@@ -96,10 +96,10 @@ export class SLineItem extends SGraphItem {
     }
     }
 
 
     /** 拖动灵敏度   */
     /** 拖动灵敏度   */
-    dis: number = 10;
+    dis: number = 5;
 
 
     /** 拖动灵敏度   */
     /** 拖动灵敏度   */
-    sceneDis: number = 10;
+    private sceneDis: number = 5;
 
 
     /** 当前点索引   */
     /** 当前点索引   */
     curIndex: number = -1;
     curIndex: number = -1;