@@ -1,6 +1,6 @@
{
"name": "@saga-web/graphy",
- "version": "2.1.44",
+ "version": "2.1.45",
"description": "上格云二维图形引擎。",
"main": "lib/index.js",
"types": "lib/index.d.js",
@@ -147,6 +147,7 @@ export class SGraphyItem extends SObject {
* @param rect 绘制区域
*/
onPaint(painter: SPainter, rect: SRect): void {
+ this.onDraw(painter);
for (let item of this.children) {
// 如果item不可见
if (!item.visible) {
@@ -172,8 +173,6 @@ export class SGraphyItem extends SObject {
// 恢复画布状态
painter.restore();
}
-
- this.onDraw(painter);
} // Function onPaint()
/**