From 83848de0d3d08c56b92c3a7233886a739ec697ff Mon Sep 17 00:00:00 2001 From: Caleb Evans Date: Tue, 23 Apr 2024 12:13:22 -0700 Subject: [PATCH] Fix masking for SVG paths drawn with drawPath() --- src/jcanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jcanvas.js b/src/jcanvas.js index c60b4ef..9003355 100644 --- a/src/jcanvas.js +++ b/src/jcanvas.js @@ -391,7 +391,7 @@ function _closePath(canvas, ctx, params, path) { if (params.mask) { // Retrieve canvas data data = _getCanvasData(canvas); - _enableMasking(ctx, data, params); + _enableMasking(ctx, data, params, path); } }