浏览代码

Merge branch 'master' of http://39.106.8.246:3003/web/persagy_topo_editer

YaolongHan 4 年之前
父节点
当前提交
d606bb71d5

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

@@ -112,7 +112,7 @@ export class SBaseImageEdit extends SImageEdit {
    * @return  boolean
    */
     onDoubleClick(event: SMouseEvent): boolean {
-        super.onMouseDown(event)
+        super.onDoubleClick(event)
         return true;
     } // Function onMouseDown()
 

+ 11 - 2
src/components/editClass/edit/items/SImageEdit.ts

@@ -288,6 +288,15 @@ export class SImageEdit extends SGraphEdit {
     } // Function GetUrlRelativePath()
 
     /**
+     * 大小改变
+     */
+    resize(oldSize: SRect, newSize: SRect): void {
+        this.width = newSize.width;
+        this.height = newSize.height;
+        this.update()
+    }
+
+    /**
      * Item对象边界区域
      *
      * @return	SRect
@@ -296,8 +305,8 @@ export class SImageEdit extends SGraphEdit {
         return new SRect(
             -this.origin.x,
             -this.origin.y,
-            this.width,
-            this.height
+            this.width * 1,
+            this.height * 1
         );
     } // Function boundingRect()
 

+ 6 - 0
src/components/editClass/persagy-edit/PTopoScene.ts

@@ -408,6 +408,12 @@ export class PTopoScene extends SBaseEditScene {
      * @param itemList? SGraphEdit[] 如果不传入默认使用选择器中选中得item
      */
     updateStyle(styleType: string, changeStyle: any, itemList?: SGraphEdit[]): void {
+        console.log('------------>');
+        console.log(styleType);
+        console.log(changeStyle);
+        console.log(itemList);
+        console.log('------------>');
+        
         // 如果未传入需要修改样式的item,默认取选择器中的item
         let List = null;
         if (itemList && itemList.length) {