Browse Source

更新包

haojianlong 5 years ago
parent
commit
a7a7df6f61

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

@@ -1,6 +1,6 @@
 {
     "name": "@saga-web/base",
-    "version": "2.1.21",
+    "version": "2.1.22",
     "description": "上格云Web基础库。",
     "main": "lib/index.js",
     "types": "lib/index.d.js",

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

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

+ 20 - 10
saga-web-big/src/items/floor/SSpaceItem.ts

@@ -62,6 +62,14 @@ export class SSpaceItem extends SGraphItem {
         this._highLightFlag = value;
         this.update();
     } // Set highLightFlag
+    private _showBaseName: boolean = false;
+    get showBaseName(): boolean {
+        return this._showBaseName;
+    } // Get showBaseName
+    set showBaseName(value: boolean) {
+        this._showBaseName = value;
+        this.update();
+    } // Set showBaseName
 
     /**
      * 构造函数
@@ -188,16 +196,18 @@ export class SSpaceItem extends SGraphItem {
         painter.pen.lineWidth = painter.toPx(1);
         painter.drawPath(this.path);
 
-        if (this.data.Name && this.data.Name != "null") {
-            painter.brush.color = SColor.Black;
-            painter.font.size = painter.toPx(10);
-            // painter.font.size = 500;
-            painter.font.textAlign = STextAlign.Center;
-            painter.drawText(
-                this.data.Name,
-                this.data.Location.Points[0].X,
-                -this.data.Location.Points[0].Y
-            );
+        if (this.showBaseName) {
+            if (this.data.Name && this.data.Name != "null") {
+                painter.brush.color = SColor.Black;
+                painter.font.size = painter.toPx(10);
+                // painter.font.size = 500;
+                painter.font.textAlign = STextAlign.Center;
+                painter.drawText(
+                    this.data.Name,
+                    this.data.Location.Points[0].X,
+                    -this.data.Location.Points[0].Y
+                );
+            }
         }
     } // Function onDraw()
 } // Class SSpaceItem

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

@@ -1,6 +1,6 @@
 {
     "name": "@saga-web/draw",
-    "version": "2.1.97",
+    "version": "2.1.98",
     "description": "上格云绘制引擎。",
     "main": "lib/index.js",
     "types": "lib/index.d.js",
@@ -33,7 +33,7 @@
         "typescript": "^3.5.3"
     },
     "dependencies": {
-        "@saga-web/base": "^2.1.21"
+        "@saga-web/base": "^2.1.22"
     },
     "jest": {
         "setupFiles": [

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

@@ -1,6 +1,6 @@
 {
     "name": "@saga-web/graph",
-    "version": "2.1.90",
+    "version": "2.1.91",
     "description": "上格云二维图形引擎。",
     "main": "lib/index.js",
     "types": "lib/index.d.js",
@@ -41,6 +41,6 @@
         "typescript": "^3.5.3"
     },
     "dependencies": {
-        "@saga-web/draw": "2.1.97"
+        "@saga-web/draw": "2.1.98"
     }
 }