revert stroke slicing hack for knot

This commit is contained in:
Ryan Di 2025-04-07 23:48:50 +10:00
parent e48b63a0ae
commit 5cf18b5926

View file

@ -191,11 +191,7 @@ export class AnimatedTrail implements Trail {
}); });
const stroke = this.trailAnimation const stroke = this.trailAnimation
? _stroke.slice( ? _stroke.slice(0, _stroke.length / 2)
// slicing from 6th point to get rid of the initial notch type of thing
Math.min(_stroke.length, 6),
_stroke.length / 2,
)
: _stroke; : _stroke;
return getSvgPathFromStroke(stroke, true); return getSvgPathFromStroke(stroke, true);