You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
checked I'm up to date with the latest version of the project
When calling SVGPathData.aToC() on a parsed string with an Arc command that as either rX, rY, or both set to 0, I'd expect that the Arc command is ignored, but currently an Error is thrown.
The issue is that const partCount = Math.ceil(deltaPhi / 90 ); will be NaN.
A simple fix would be to do something like new Array(partCount || 0);, but it might require more investigation if other invalid values could make it there as well (e.g Infinity?).
The text was updated successfully, but these errors were encountered:
Issue
I'm a gentledev i:
When calling
SVGPathData.aToC()
on a parsed string with an Arc command that as eitherrX
,rY
, or both set to0
, I'd expect that the Arc command is ignored, but currently an Error is thrown.The issue is that
const partCount = Math.ceil(deltaPhi / 90 );
will beNaN
.A simple fix would be to do something like
new Array(partCount || 0);
, but it might require more investigation if other invalid values could make it there as well (e.g Infinity?).The text was updated successfully, but these errors were encountered: