Skip to content

Add SVG clipping support for wipeouts and spatial filters#1112

Draft
chui-xelleron wants to merge 2 commits into
DomCR:masterfrom
chui-xelleron:fix/svg-clipping
Draft

Add SVG clipping support for wipeouts and spatial filters#1112
chui-xelleron wants to merge 2 commits into
DomCR:masterfrom
chui-xelleron:fix/svg-clipping

Conversation

@chui-xelleron

@chui-xelleron chui-xelleron commented Jun 9, 2026

Copy link
Copy Markdown

Adds SVG output for wipeouts and spatial filter clips (with regression test).

This may be a breaking change for consumers that currently rely on wipeouts rendering as invisible, because the new output makes them visible as opaque white cover polygons.

For wipeouts, I was not sure whether the right SVG representation should be a true clipPath or an opaque cover polygon. I implemented the opaque polygon approach for now because wipeouts behave like visibility masks in DWG, and SVG does not have a direct retroactive masking equivalent for already-rendered content.

Is the opaque fallback acceptable here, or would you prefer a different SVG strategy for wipeouts?

Spatial filters still emit a clip path for clipped content, and when DisplayBoundary is enabled the boundary is drawn as a red outline as a visual aid.

@chui-xelleron
chui-xelleron marked this pull request as draft June 9, 2026 22:54
@chui-xelleron
chui-xelleron force-pushed the fix/svg-clipping branch 3 times, most recently from 0125fea to 0b3caf6 Compare June 9, 2026 23:34
@chui-xelleron
chui-xelleron force-pushed the fix/svg-clipping branch 2 times, most recently from 10e67da to 1240dc0 Compare June 10, 2026 00:10
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.

2 participants