SixLabors / ImageSharp.Drawing

:pen: Extensions to ImageSharp containing a cross-platform 2D polygon manipulation API and drawing operations.
https://sixlabors.com/products/imagesharp-drawing/
Other
285 stars 38 forks source link

Parse Svg Path #217

Closed tocsoft closed 2 years ago

tocsoft commented 2 years ago

Prerequisites

Description

Adds Path.TryParseSvgPath This API converts a path in the SVG path syntax into an IPath instance.

tocsoft commented 2 years ago

~This still has an issue currently in the handling of a T command (failing to calculate the correct additional point.)~ now working

codecov[bot] commented 2 years ago

Codecov Report

Merging #217 (bc53f7d) into main (f3f1edf) will increase coverage by 0%. The diff coverage is 77%.

@@         Coverage Diff          @@
##           main   #217    +/-   ##
====================================
  Coverage    71%    71%            
====================================
  Files        87     87            
  Lines      5176   5307   +131     
  Branches   1069   1089    +20     
====================================
+ Hits       3694   3797   +103     
- Misses     1273   1297    +24     
- Partials    209    213     +4     
Flag Coverage Δ
unittests 71% <77%> (+<1%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/ImageSharp.Drawing/Shapes/Path.cs 77% <76%> (-2%) :arrow_down:
src/ImageSharp.Drawing/Shapes/PathBuilder.cs 89% <100%> (+<1%) :arrow_up:
src/ImageSharp.Drawing/Shapes/ArcLineSegment.cs 96% <0%> (+1%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f3f1edf...bc53f7d. Read the comment docs.

JimBobSquarePants commented 2 years ago

StandingOvationGIF