Forráskód Böngészése

draw 绘制区域 掏洞bug

haojianlong 4 éve
szülő
commit
0b7f227433

+ 3 - 0
persagy-web-draw/README.md

@@ -6,6 +6,9 @@
     无特殊说明单版本为跟随依赖版本升级
     |
     |
+    |-- 2.2.13 修复绘制区域时掏洞bug,(现未知将fill移出去会导致的问题)
+    |
+    |
     |-- 2.2.12 view层增加滚轮抛出事件
     |
     |

+ 1 - 1
persagy-web-draw/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@persagy-web/draw",
-    "version": "2.2.12",
+    "version": "2.2.13",
     "description": "博锐尚格绘制引擎。",
     "main": "lib/index.js",
     "types": "lib/index.d.js",

+ 1 - 1
persagy-web-draw/src/engines/SCanvasPaintEngine.ts

@@ -648,7 +648,6 @@ export class SCanvasPaintEngine extends SPaintEngine {
             } else if (cmd.command == "Z") {
                 // 闭合路径
                 this._canvas.closePath();
-                this._canvas.fill();
             } else if (cmd.command == "Q") {
                 // 二次贝塞尔曲线
                 this._canvas.quadraticCurveTo(
@@ -699,6 +698,7 @@ export class SCanvasPaintEngine extends SPaintEngine {
                 );
             }
         });
+        this._canvas.fill();
         this._canvas.stroke();
     }
 }