clientIO / joint

A proven SVG-based JavaScript diagramming library powering exceptional UIs
https://jointjs.com
Mozilla Public License 2.0
4.73k stars 853 forks source link

fix(Vectorizer): fix normalizePathData() to support zero-length arc to curve #2598

Closed kumilingus closed 8 months ago

kumilingus commented 8 months ago

Description

A zero-length arc A was converted to an invalid curve command C (containing NaN values).

After this change, such arcs are converted to a point-like curve.

Fixes https://github.com/clientIO/joint/issues/2465.