fix: made cp1 in preview absolute for smooth curves (#1739)

This commit is contained in:
Jakob Guddas
2023-12-24 13:28:53 +01:00
committed by GitHub
parent 7af26002a0
commit 262f9e8865
+1 -1
View File
@@ -151,7 +151,7 @@ export const getPaths = (src: string) => {
y2: c.y2,
})}`,
{
cp1: reflectedCp1,
cp1: { x: prev.x - reflectedCp1.x, y: prev.y - reflectedCp1.y },
cp2: { x: c.x2, y: c.y2 },
}
);