slice points to remove notch

This commit is contained in:
dwelle 2025-04-03 19:17:23 +02:00
parent 63520afee9
commit 5efa137837

View file

@ -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);