mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 16:33:22 -06:00
M3.89: a clipping path's fill paints behind the clipped art, its stroke over it
Paint given to a clipping path (paint commands with its id) now shows: its fill paints inside the clip behind the clipped art and its stroke over the art, unclipped, on the canvas and in SVG and PDF. Node::clip_paint splits the clipping path into its fills and its strokes (type: its characters' too) for all three outputs; the renderer caches the parts per clipping path. Clip group visual bounds take in the stroke. Make Clipping Mask still leaves the clipping path unpainted, as the reference app does; Ungroup no longer wipes a painted clipping path's appearance (Release already kept it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
799b507564
commit
3b2f46137a
+4
-1
@@ -239,7 +239,10 @@ like the mask view: the grid shows behind the artboards of the documents that tu
|
||||
`object.clippingMask.make` clips the selected objects by the topmost one, which may be a path, a compound path or a
|
||||
text object (it loses its paint). Compound holes, even-odd fills, glyph outlines and the union of a group's members
|
||||
clip alike on screen, in raster export and in SVG and PDF. `object.clippingMask.release` turns the clip group into a
|
||||
plain group and keeps the clipping path, unpainted.
|
||||
plain group and keeps the clipping path with whatever paint it has.
|
||||
|
||||
A clipping path can be painted after Make (`paint.setFill`, `paint.setStroke`, `stroke.set` with its `ids`): its fill
|
||||
paints behind the clipped art and its stroke over it, not clipped, on screen and in SVG and PDF.
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"select.set","params":{"ids":[12,15]}}}
|
||||
|
||||
Reference in New Issue
Block a user