Browse Source

版本升级;修改children被parent遮盖bug

haojianlong 5 years ago
parent
commit
eb9af3163c
2 changed files with 2 additions and 3 deletions
  1. 1 1
      saga-web-graphy/package.json
  2. 1 2
      saga-web-graphy/src/SGraphyItem.ts

+ 1 - 1
saga-web-graphy/package.json

@@ -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",

+ 1 - 2
saga-web-graphy/src/SGraphyItem.ts

@@ -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()
 
     /**