Skip to content

Conversation

@AS-MCMXCIX
Copy link

Description

Fixed a bug where PathItem.createPathData() doesn't parse Arc svg commands correctly. it Doesn't fix this case because it lacks moveTo() command at the beginning and ends up with this error (and it seems like it's acting as designed):

Uncaught Error: Use a moveTo() command first

but the path data is parsed correctly. this patch also solves the rest of the cases mentioned in the issue.

Related issues

Checklist

  • New tests added or existing tests modified to cover all changes
  • Code conforms with the JSHint rules (yarn run jshint passes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pathdata fails to instantiate at new paper.Path(...):TypeError: Cannot read property 'getDirectedAngle' of null

2 participants