From 262f9e88658ffe09622655b83f3cfddeb1ae1f6d Mon Sep 17 00:00:00 2001 From: Jakob Guddas Date: Sun, 24 Dec 2023 13:28:53 +0100 Subject: [PATCH] fix: made cp1 in preview absolute for smooth curves (#1739) --- docs/.vitepress/lib/SvgPreview/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/.vitepress/lib/SvgPreview/utils.ts b/docs/.vitepress/lib/SvgPreview/utils.ts index 76c9999bd..2a9974a91 100644 --- a/docs/.vitepress/lib/SvgPreview/utils.ts +++ b/docs/.vitepress/lib/SvgPreview/utils.ts @@ -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 }, } );