Skip to content

Support fill rule argument in Context2D clip() - #4011

Open
cycsmail wants to merge 1 commit into
parallax:masterfrom
cycsmail:context2d-clip-fill-rule-3408
Open

Support fill rule argument in Context2D clip()#4011
cycsmail wants to merge 1 commit into
parallax:masterfrom
cycsmail:context2d-clip-fill-rule-3408

Conversation

@cycsmail

@cycsmail cycsmail commented Aug 1, 2026

Copy link
Copy Markdown

clip() now accepts an optional fillRule ("nonzero" | "evenodd") and forwards it to the underlying clip operator, so an even-odd clip emits W* instead of always emitting W. Also updated the TypeScript type and added tests for the default and even-odd cases.

Fixes #3408

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.

Context2D does not implement clip() correctly

1 participant