From 5efa137837a7f210628ab1607f873d4c82d95224 Mon Sep 17 00:00:00 2001 From: dwelle <5153846+dwelle@users.noreply.github.com> Date: Thu, 3 Apr 2025 19:17:23 +0200 Subject: [PATCH] slice points to remove notch --- packages/excalidraw/animated-trail.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/excalidraw/animated-trail.ts b/packages/excalidraw/animated-trail.ts index af6162e99..0ffec7cf5 100644 --- a/packages/excalidraw/animated-trail.ts +++ b/packages/excalidraw/animated-trail.ts @@ -191,7 +191,11 @@ export class AnimatedTrail implements Trail { }); const stroke = this.trailAnimation - ? _stroke.slice(0, _stroke.length / 2) + ? _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; return getSvgPathFromStroke(stroke, true);