|
@@ -31,6 +31,7 @@ import { Zone } from "../types/Zone";
|
|
import { SMouseEvent } from "@saga-web/base/lib";
|
|
import { SMouseEvent } from "@saga-web/base/lib";
|
|
import { ItemOrder } from "../types/ItemOrder";
|
|
import { ItemOrder } from "../types/ItemOrder";
|
|
import { Opt } from "../types/Opt";
|
|
import { Opt } from "../types/Opt";
|
|
|
|
+import { Transparency } from "../types/Transparency";
|
|
|
|
|
|
/**
|
|
/**
|
|
* 业务空间item
|
|
* 业务空间item
|
|
@@ -66,6 +67,8 @@ export class ZoneItem extends SGraphyItem {
|
|
set highLightFlag(value: boolean) {
|
|
set highLightFlag(value: boolean) {
|
|
this._highLightFlag = value;
|
|
this._highLightFlag = value;
|
|
} // Set highLightFlag
|
|
} // Set highLightFlag
|
|
|
|
+ /** 透明度 */
|
|
|
|
+ transparency: number = 20;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 构造函数
|
|
* 构造函数
|
|
@@ -77,6 +80,8 @@ export class ZoneItem extends SGraphyItem {
|
|
super(parent);
|
|
super(parent);
|
|
this.data = data;
|
|
this.data = data;
|
|
this.zOrder = ItemOrder.zoneOrder;
|
|
this.zOrder = ItemOrder.zoneOrder;
|
|
|
|
+ this.highLightFlag = data.HighLightFlag || false;
|
|
|
|
+ this.transparency = data.Transparency || 20;
|
|
if (
|
|
if (
|
|
this.data.OutLine.length &&
|
|
this.data.OutLine.length &&
|
|
this.data.OutLine[0] &&
|
|
this.data.OutLine[0] &&
|
|
@@ -193,7 +198,9 @@ export class ZoneItem extends SGraphyItem {
|
|
} else if (this.highLightFlag) {
|
|
} else if (this.highLightFlag) {
|
|
painter.brush.color = new SColor(this.data.Color);
|
|
painter.brush.color = new SColor(this.data.Color);
|
|
} else {
|
|
} else {
|
|
- painter.brush.color = new SColor(`${this.data.Color}33`);
|
|
|
|
|
|
+ painter.brush.color = new SColor(
|
|
|
|
+ `${this.data.Color}${Transparency[this.transparency]}`
|
|
|
|
+ );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
painter.pen.lineWidth = 200;
|
|
painter.pen.lineWidth = 200;
|