Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix arcs and do not throw when outlining - #302

#302
Merged
JimBobSquarePants merged 1 commit into
mainSixLabors/ImageSharp.Drawing:mainfrom
js/fix-arcs-plus-degenerate-outliningSixLabors/ImageSharp.Drawing:js/fix-arcs-plus-degenerate-outliningCopy head branch name to clipboard
Oct 25, 2023
Merged

Fix arcs and do not throw when outlining#302
JimBobSquarePants merged 1 commit into
mainSixLabors/ImageSharp.Drawing:mainfrom
js/fix-arcs-plus-degenerate-outliningSixLabors/ImageSharp.Drawing:js/fix-arcs-plus-degenerate-outliningCopy head branch name to clipboard

Conversation

@JimBobSquarePants

@JimBobSquarePants JimBobSquarePants commented Oct 25, 2023

Copy link
Copy Markdown
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

Fixes #299, #300

The way I was handling arc generation when the arc sweep represented a closed ellipse didn't take into consideration the start angle.

Fixing the issue meant that we threw during outlining when someone requested the short arc so I fixed the offsetter to return the unclipped path I also fixed the handling of paths containing a single point.

@JimBobSquarePants JimBobSquarePants added bug Something isn't working enhancement New feature or request area:shapes labels Oct 25, 2023
@codecov

codecov Bot commented Oct 25, 2023

Copy link
Copy Markdown

Codecov Report

Merging #302 (edb6db2) into main (dfae51c) will increase coverage by 0%.
The diff coverage is 92%.

@@         Coverage Diff         @@
##           main   #302   +/-   ##
===================================
  Coverage    80%    80%           
===================================
  Files        97     97           
  Lines      4937   4937           
  Branches    878    881    +3     
===================================
+ Hits       3975   3990   +15     
+ Misses      769    753   -16     
- Partials    193    194    +1     
Flag Coverage Δ
unittests 80% <92%> (+<1%) ⬆️

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

Files Coverage Δ
src/ImageSharp.Drawing/Shapes/ArcLineSegment.cs 96% <100%> (+<1%) ⬆️
...mageSharp.Drawing/Shapes/PolygonClipper/BoundsF.cs 28% <ø> (+28%) ⬆️
....Drawing/Shapes/PolygonClipper/PolygonOffsetter.cs 74% <60%> (+1%) ⬆️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tocsoft tocsoft left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me 👍

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

Labels

area:shapes bug Something isn't working enhancement New feature or request

Projects

None yet

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.