🎥 Make videos programmatically with React
fix path regression in last release
Jonny Burger00f3ea9fdeb6
diff --git a/packages/paths/src/reverse-path.ts b/packages/paths/src/reverse-path.tsindex e63e98a4af..abb870c63b 100644--- a/packages/paths/src/reverse-path.ts+++ b/packages/paths/src/reverse-path.ts@@ -57,12 +57,16 @@ function reverseNormalizedPath(instructions: Instruction[]) {// Do nothing} else if (term.type === 'M') {// Do nothing+ } else if (term.type === 'Z') {+ // Do nothing} else {throw new Error('unnormalized instruction ' + term.type);}- nextX = term.x;- nextY = term.y;+ if (term.type !== 'Z') {+ nextX = term.x;+ nextY = term.y;+ }}reversed.unshift({