Skip to content

Integrate PolygonClipper V2 - #431

Merged
JimBobSquarePants merged 5 commits into
mainfrom
js/polygonclipper-v2
Nov 24, 2026
Merged

JimBobSquarePants merged 5 commits into
mainfrom
js/polygonclipper-v2

Conversation

@JimBobSquarePants

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 the existing coding patterns and practices as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

Use SixLabors.PolygonClipper 2.0.0-alpha.0.2 from Feedz.

  • Pass fill rules to PolygonClipper. Preserve open contours on both sides of a clip and return isolated intersections as points.
  • Use the non-zero fill rule for path normalization.
  • Honor path closure in CPU and WebGPU strokes. Preserve short segments, match PolygonClipper point caps, and apply text contrast to outlined text.
  • Check clipping results and compare the stroke images with PolygonClipper outlines. This includes the dashed ellipse from PatternPen with a four-value pattern and LineJoin.Miter draws an EllipsePolygon almost solid #430.

Release tests on .NET 10 passed against the Feedz package. 2,105 passed, 7 skipped, and 0 failed.

@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.22034% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 80%. Comparing base (43cd8a2) to head (a46136b).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
...p.Drawing/PolygonGeometry/ClippedShapeGenerator.cs 80% 4 Missing and 1 partial ⚠️
src/ImageSharp.Drawing/ArcLineSegment.cs 60% 1 Missing and 1 partial ⚠️
...rc/ImageSharp.Drawing.WebGPU/WebGPUSceneEncoder.cs 96% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##            main    #431    +/-   ##
======================================
  Coverage     80%     80%            
======================================
  Files        439     439            
  Lines      49962   49890    -72     
  Branches    5908    5892    -16     
======================================
+ Hits       40257   40297    +40     
+ Misses      8104    7998   -106     
+ Partials    1601    1595     -6     
Flag Coverage Δ
unittests 80% <93%> (+<1%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JimBobSquarePants JimBobSquarePants added enhancement New feature or request dependencies Pull requests that update a dependency file labels Nov 24, 2026
@JimBobSquarePants
JimBobSquarePants merged commit abc450a into main Nov 24, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant