🎥 Make videos programmatically with React
fix fn
Jonny Burgerd60892f35c36
diff --git a/packages/example/src/WarpText/demo2.tsx b/packages/example/src/WarpText/demo2.tsxindex ddbaf2c692..67fb686046 100644--- a/packages/example/src/WarpText/demo2.tsx+++ b/packages/example/src/WarpText/demo2.tsx@@ -72,9 +72,7 @@ export const WarpDemo2 = () => {};};- const warped = warpPath(reset, warpPathFn, {- interpolationThreshold: 0.3,- });+ const warped = warpPath(reset, warpPathFn);const box = getBoundingBox(warped);const {x1, x2, y1, y2} = box;diff --git a/packages/paths/src/warp-path/index.ts b/packages/paths/src/warp-path/index.tsindex 0690994771..2f4bffcedf 100644--- a/packages/paths/src/warp-path/index.ts+++ b/packages/paths/src/warp-path/index.ts@@ -31,7 +31,11 @@ export const warpPath = (const reduced = reduceInstructions(parsePath(path));const withZFix = fixZInstruction(reduced);- const interpolated = svgPathInterpolate(withZFix, options?.interpolationThreshold ?? getDefaultInterpolationThreshold(withZFix)));+ const interpolated = svgPathInterpolate(+ withZFix,+ options?.interpolationThreshold ??+ getDefaultInterpolationThreshold(withZFix)+ );return serializeInstructions(warpTransform(interpolated, transformer));};