polymorph icon indicating copy to clipboard operation
polymorph copied to clipboard

Getting NaN for specific shapes

Open davidwebca opened this issue 7 months ago • 0 comments

Hi!

I'm getting some NaN added between some points as soon as the animation starts. Unsure if it's related to the same issue in #58 so I opened a new one.

Here's a reproduction: https://codepen.io/davidwebca/pen/xbbLXMb

Don't mind the animation because I haven't finished reworking my points and paths so that they're properly ordered to smooth out the animation down the road.

As you can see, the animation still progresses but looking at the console and in the code, there's an error and the path seem to break because multiple NaN gets inserted between some points. I'm wondering if there's anything I can do to pre-work the paths to avoid this issue or if it's a proper bug like a division by zero or something. 🤔

davidwebca avatar Apr 27 '25 06:04 davidwebca