This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21835 - <canvas>: Path object should have a way to add paths keeping only the union given a fill rule
Summary: <canvas>: Path object should have a way to add paths keeping only the union g...
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 enhancement
Target Milestone: 2016 Q1
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-26 00:49 UTC by Ian 'Hixie' Hickson
Modified: 2016-04-21 19:30 UTC (History)
3 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2013-04-26 00:49:11 UTC
We should add an API on Path that takes the existing path, fills it with a given fill rule, takes a given Path, fills _that_ with a given fill rule, overlaps them, then adds all the segments of both Paths together into one Path (replacing the original Path), and removes all subsegments of that Path that are filled on both sides in the combined fill.

There's probably something else we need to do to make sure that the resulting path would fill in the same way, though, especially if we want to make sure it fills in the same way regardless of the fill rule.
Comment 1 Justin Novosad 2016-04-21 19:30:09 UTC
Closing issue due to lack of implementer and web developer interest.
To re-open, please enter a new issue at https://github.com/whatwg/html/issues