|
@@ -147,6 +147,7 @@ export class SGraphyItem extends SObject {
|
|
* @param rect 绘制区域
|
|
* @param rect 绘制区域
|
|
*/
|
|
*/
|
|
onPaint(painter: SPainter, rect: SRect): void {
|
|
onPaint(painter: SPainter, rect: SRect): void {
|
|
|
|
+ this.onDraw(painter);
|
|
for (let item of this.children) {
|
|
for (let item of this.children) {
|
|
// 如果item不可见
|
|
// 如果item不可见
|
|
if (!item.visible) {
|
|
if (!item.visible) {
|
|
@@ -172,8 +173,6 @@ export class SGraphyItem extends SObject {
|
|
// 恢复画布状态
|
|
// 恢复画布状态
|
|
painter.restore();
|
|
painter.restore();
|
|
}
|
|
}
|
|
-
|
|
|
|
- this.onDraw(painter);
|
|
|
|
} // Function onPaint()
|
|
} // Function onPaint()
|
|
|
|
|
|
/**
|
|
/**
|