clientIO / joint

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

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

Closed kumilingus closed 1 month ago

kumilingus commented 1 month 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.