Browse Source

PATH FILL

haojianlong 4 years ago
parent
commit
00dd37b386

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

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

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

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

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

@@ -698,7 +698,9 @@ export class SCanvasPaintEngine extends SPaintEngine {
                 );
             }
         });
-        this._canvas.fill();
+        if (path.cmdList[path.cmdList.length - 1].command == 'Z') {
+            this._canvas.fill();
+        }
         this._canvas.stroke();
     }
 }