Skip to content

🎥 Make videos programmatically with React

handle Z

Jonny Burger37718626b7db
diff --git a/packages/paths/src/unarc.ts b/packages/paths/src/unarc.ts
index 04319fc2b0..638f5f989c 100644
--- a/packages/paths/src/unarc.ts
+++ b/packages/paths/src/unarc.ts
@@ -187,6 +187,10 @@ export const unarc = (d: string) => {
return [s];
}
+ case 'Z': {
+ return [s];
+ }
+
default:
throw new Error(`Unexpected instruction ${s[0]}`);
}
diff --git a/packages/paths/src/unshort.ts b/packages/paths/src/unshort.ts
index bc87fb17eb..d8a39ff7b9 100644
--- a/packages/paths/src/unshort.ts
+++ b/packages/paths/src/unshort.ts
@@ -25,14 +25,12 @@ export const unshort = function (segments: Instruction[]): Instruction[] {
case 'V': {
y = s[1];
- newSegments[i] = s;
break;
}
case 'H': {
x = s[1];
- newSegments[i] = s;
break;
}
@@ -40,7 +38,6 @@ export const unshort = function (segments: Instruction[]): Instruction[] {
x = s[5];
y = s[6];
- newSegments[i] = s;
break;
}
@@ -48,10 +45,12 @@ export const unshort = function (segments: Instruction[]): Instruction[] {
x = s[3];
y = s[4];
- newSegments[i] = s;
break;
}
+ case 'Z':
+ break;
+
default:
throw new Error('Unexpected command: ' + s[0]);
}