ソースを参照

场景点击空白取消选中;更新包

haojianlong 5 年 前
コミット
16292dbec0

+ 2 - 2
saga-web-big/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@saga-web/big",
-    "version": "1.0.88",
+    "version": "1.0.90",
     "description": "上格云建筑信息化库",
     "main": "lib/index.js",
     "types": "lib/index.d.js",
@@ -42,6 +42,6 @@
         "typescript": "^3.9.3"
     },
     "dependencies": {
-        "@saga-web/graph": "2.1.114"
+        "@saga-web/graph": "2.1.115"
     }
 }

+ 1 - 1
saga-web-graph/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@saga-web/graph",
-    "version": "2.1.114",
+    "version": "2.1.115",
     "description": "上格云二维图形引擎。",
     "main": "lib/index.js",
     "types": "lib/index.d.js",

+ 5 - 1
saga-web-graph/src/SGraphScene.ts

@@ -181,7 +181,11 @@ export class SGraphScene {
                 SGraphScene.toGrabItemMotionEvent(this.grabItem, event)
             );
         }
-        return this.root.onMouseDown(event);
+        const flag = this.root.onMouseDown(event);
+        if (!flag) {
+            this.selectContainer.clear();
+        }
+        return flag;
     } // Function onMouseDown()
 
     /**

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

@@ -1,6 +1,6 @@
 import { SObjectItem } from "./SObjectItem";
 import { SPainter, SRect, SSize, SColor } from "@saga-web/draw/lib";
-import { SImageShowType } from "../enums/SImageShowType";
+import { SImageShowType } from "..";
 import { SGraphItem } from "../SGraphItem";
 
 /**