From 26ab9e3aa441a57eb02e4c8cb0f8c04f0ca92e9f Mon Sep 17 00:00:00 2001 From: Erik Demaine Date: Thu, 25 Jul 2019 13:16:25 -0400 Subject: [PATCH] Add support for 'z' command in SVG paths (#12) --- js/pattern.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/js/pattern.js b/js/pattern.js index 6541aee..eea274b 100755 --- a/js/pattern.js +++ b/js/pattern.js @@ -195,6 +195,7 @@ function initPattern(globals){ console.warn("path parser not supported"); return; } + var startVertex = null; var segments = path.getPathData(); for (var j=0;j