浏览代码

透明度修改

haojianlong 4 年之前
父节点
当前提交
5e75a93148
共有 3 个文件被更改,包括 9 次插入9 次删除
  1. 3 3
      src/lib/items/SFHFQZoneLegendItem.ts
  2. 3 3
      src/lib/items/SSCPZZoneLegendItem.ts
  3. 3 3
      src/lib/items/SZoneLegendItem.ts

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

@@ -231,12 +231,12 @@ export class SFHFQZoneLegendItem extends SPolygonItem {
     onDraw(painter: SPainter) {
         if (this.maskFlag && this.status == SItemStatus.Normal) {
             let color = new SColor(this.strokeColor)
-            color.alpha = color.alpha / 2
+            color.alpha = color.alpha / 5
             let brushcolor = new SColor(this.fillColor)
-            brushcolor.alpha = brushcolor.alpha / 2
+            brushcolor.alpha = brushcolor.alpha / 5
             painter.pen.color = color
             painter.pen.lineCapStyle = SLineCapStyle.Square
-            painter.pen.lineWidth = painter.toPx(this._lineWidth)
+            painter.pen.lineWidth = painter.toPx(this.lineWidth)
             painter.brush.color = brushcolor
             if (this.selected) {
                 painter.pen.lineWidth = painter.toPx(this.lineWidth * 2);

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

@@ -239,12 +239,12 @@ export class SSCPZZoneLegendItem extends SPolygonItem {
     onDraw(painter: SPainter) {
         if (this.maskFlag && this.status == SItemStatus.Normal) {
             let color = new SColor(this.strokeColor)
-            color.alpha = color.alpha / 2
+            color.alpha = color.alpha / 5
             let brushcolor = new SColor(this.fillColor)
-            brushcolor.alpha = brushcolor.alpha / 2
+            brushcolor.alpha = brushcolor.alpha / 5
             painter.pen.color = color
             painter.pen.lineCapStyle = SLineCapStyle.Square
-            painter.pen.lineWidth = painter.toPx(this._lineWidth)
+            painter.pen.lineWidth = painter.toPx(this.lineWidth)
             painter.brush.color = brushcolor
             if (this.selected) {
                 painter.pen.lineWidth = painter.toPx(this.lineWidth * 2);

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

@@ -232,12 +232,12 @@ export class SZoneLegendItem extends SPolygonItem {
     onDraw(painter: SPainter) {
         if (this.maskFlag && this.status == SItemStatus.Normal) {
             let color = new SColor(this.strokeColor)
-            color.alpha = color.alpha / 2
+            color.alpha = color.alpha / 5
             let brushcolor = new SColor(this.fillColor)
-            brushcolor.alpha = brushcolor.alpha / 2
+            brushcolor.alpha = brushcolor.alpha / 5
             painter.pen.color = color
             painter.pen.lineCapStyle = SLineCapStyle.Square
-            painter.pen.lineWidth = painter.toPx(this._lineWidth)
+            painter.pen.lineWidth = painter.toPx(this.lineWidth)
             painter.brush.color = brushcolor
             if (this.selected) {
                 painter.pen.lineWidth = painter.toPx(this.lineWidth * 2);