|
@@ -18,7 +18,7 @@
|
|
* ********************************************************************************************************************
|
|
* ********************************************************************************************************************
|
|
*/
|
|
*/
|
|
|
|
|
|
-import { SGraphyItem, SMouseEvent } from "@sybotan-web/graphy/lib";
|
|
|
|
|
|
+import { SGraphyItem } from "@sybotan-web/graphy/lib";
|
|
import {
|
|
import {
|
|
SColor,
|
|
SColor,
|
|
SPainter,
|
|
SPainter,
|
|
@@ -29,6 +29,7 @@ import {
|
|
} from "@sybotan-web/draw/lib";
|
|
} from "@sybotan-web/draw/lib";
|
|
import { Opt } from "../types/Opt";
|
|
import { Opt } from "../types/Opt";
|
|
import { Zone } from "../types/Zone";
|
|
import { Zone } from "../types/Zone";
|
|
|
|
+import { SMouseEvent } from "@sybotan-web/base/lib";
|
|
|
|
|
|
/**
|
|
/**
|
|
* 业务空间item
|
|
* 业务空间item
|
|
@@ -110,7 +111,6 @@ export class ZoneItem extends SGraphyItem {
|
|
);
|
|
);
|
|
} // Function boundingRect()
|
|
} // Function boundingRect()
|
|
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 鼠标单击事件
|
|
* 鼠标单击事件
|
|
*
|
|
*
|
|
@@ -160,13 +160,11 @@ export class ZoneItem extends SGraphyItem {
|
|
* @param rect 绘制区域
|
|
* @param rect 绘制区域
|
|
*/
|
|
*/
|
|
onDraw(painter: SPainter, rect?: SRect): void {
|
|
onDraw(painter: SPainter, rect?: SRect): void {
|
|
- if (this.visible) {
|
|
|
|
- painter.pen.color = SColor.Transparent;
|
|
|
|
- painter.brush.color = Opt.spaceColor;
|
|
|
|
- painter.pen.lineWidth = 200;
|
|
|
|
- this.pathList.map(t => {
|
|
|
|
- painter.drawPath(t);
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ painter.pen.color = SColor.Transparent;
|
|
|
|
+ painter.brush.color = this.data.Color;
|
|
|
|
+ painter.pen.lineWidth = 200;
|
|
|
|
+ this.pathList.map(t => {
|
|
|
|
+ painter.drawPath(t);
|
|
|
|
+ });
|
|
} // Function onDraw()
|
|
} // Function onDraw()
|
|
} // Class ZoneItem
|
|
} // Class ZoneItem
|