From 5cf18b59262cb9ad78cc1e07afabbab31bf5e0ca Mon Sep 17 00:00:00 2001 From: Ryan Di Date: Mon, 7 Apr 2025 23:48:50 +1000 Subject: [PATCH] revert stroke slicing hack for knot --- packages/excalidraw/animated-trail.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/excalidraw/animated-trail.ts b/packages/excalidraw/animated-trail.ts index 0ffec7cf5..af6162e99 100644 --- a/packages/excalidraw/animated-trail.ts +++ b/packages/excalidraw/animated-trail.ts @@ -191,11 +191,7 @@ export class AnimatedTrail implements Trail { }); const stroke = this.trailAnimation - ? _stroke.slice( - // slicing from 6th point to get rid of the initial notch type of thing - Math.min(_stroke.length, 6), - _stroke.length / 2, - ) + ? _stroke.slice(0, _stroke.length / 2) : _stroke; return getSvgPathFromStroke(stroke, true);