Преглед изворни кода

配合说明书 添加属性控制高亮

haojianlong пре 4 година
родитељ
комит
61e2844025

+ 1 - 1
package.json

@@ -11,7 +11,7 @@
     "@saga-web/base": "2.1.22",
     "@saga-web/big": "1.0.73",
     "@saga-web/draw": "2.1.100",
-    "@saga-web/feng-map": "1.0.20",
+    "@saga-web/feng-map": "1.0.22",
     "@saga-web/graph": "2.1.105",
     "ant-design-vue": "^1.6.0",
     "core-js": "^3.6.4",

+ 6 - 6
src/lib/items/SFHFQZoneLegendItem.ts

@@ -204,13 +204,13 @@ export class SFHFQZoneLegendItem extends SPolygonItem {
     onDraw(painter: SPainter) {
         if (this.maskFlag && this.status == SItemStatus.Normal) {
             let color = new SColor(this.strokeColor)
-            color.alpha = 100;
+            color.alpha = color.alpha / 2
             let brushcolor = new SColor(this.fillColor)
-            brushcolor.alpha = 100;
-            painter.pen.color = color;
-            painter.pen.lineCapStyle = SLineCapStyle.Square;
-            painter.pen.lineWidth = painter.toPx(this._lineWidth);
-            painter.brush.color = brushcolor;
+            brushcolor.alpha = brushcolor.alpha / 2
+            painter.pen.color = color
+            painter.pen.lineCapStyle = SLineCapStyle.Square
+            painter.pen.lineWidth = painter.toPx(this._lineWidth)
+            painter.brush.color = brushcolor
             // @ts-ignore
             painter.drawPolygon([...this.pointList]);
         } else {

+ 6 - 6
src/lib/items/SSCPZZoneLegendItem.ts

@@ -212,13 +212,13 @@ export class SSCPZZoneLegendItem extends SPolygonItem {
     onDraw(painter: SPainter) {
         if (this.maskFlag && this.status == SItemStatus.Normal) {
             let color = new SColor(this.strokeColor)
-            color.alpha = 100;
+            color.alpha = color.alpha / 2
             let brushcolor = new SColor(this.fillColor)
-            brushcolor.alpha = 100;
-            painter.pen.color = color;
-            painter.pen.lineCapStyle = SLineCapStyle.Square;
-            painter.pen.lineWidth = painter.toPx(this._lineWidth);
-            painter.brush.color = brushcolor;
+            brushcolor.alpha = brushcolor.alpha / 2
+            painter.pen.color = color
+            painter.pen.lineCapStyle = SLineCapStyle.Square
+            painter.pen.lineWidth = painter.toPx(this._lineWidth)
+            painter.brush.color = brushcolor
             // @ts-ignore
             painter.drawPolygon([...this.pointList]);
         } else {

+ 6 - 6
src/lib/items/SZoneLegendItem.ts

@@ -205,13 +205,13 @@ export class SZoneLegendItem extends SPolygonItem {
     onDraw(painter: SPainter) {
         if (this.maskFlag && this.status == SItemStatus.Normal) {
             let color = new SColor(this.strokeColor)
-            color.alpha = 100;
+            color.alpha = color.alpha / 2
             let brushcolor = new SColor(this.fillColor)
-            brushcolor.alpha = 100;
-            painter.pen.color = color;
-            painter.pen.lineCapStyle = SLineCapStyle.Square;
-            painter.pen.lineWidth = painter.toPx(this._lineWidth);
-            painter.brush.color = brushcolor;
+            brushcolor.alpha = brushcolor.alpha / 2
+            painter.pen.color = color
+            painter.pen.lineCapStyle = SLineCapStyle.Square
+            painter.pen.lineWidth = painter.toPx(this._lineWidth)
+            painter.brush.color = brushcolor
             // @ts-ignore
             painter.drawPolygon([...this.pointList]);
         } else {

+ 1 - 1
src/lib/items/TipelineItem.ts

@@ -161,7 +161,7 @@ export class TipelineItem extends SPolylineItem {
   onDraw(painter: SPainter) {
     if (this.maskFlag && this.status == SItemStatus.Normal) {
       let color = new SColor(this.strokeColor)
-      color.alpha = 100;
+      color.alpha = color.alpha / 2
       painter.pen.color = color;
       painter.drawPolyline(this.pointList);
     } else {