mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-29 04:07:12 -06:00
Live Paint: the Live Paint tools and livePaint.fill skip hidden faces
A face hidden on its own (for example with Object > Hide after Live Paint Selection picks it) while its Live Paint group stays visible was still highlighted, selected by Live Paint Selection and filled by the Live Paint Bucket, and it kept the face of a group behind it from being picked. live_paint_at and lp_part_at now take the front-most face that is not hidden (visible_face_at). A point on a hidden face falls through to the visible face of a group behind it; where there is none, an edge pick takes the nearest visible edge as it does outside the faces. livePaint.fill also skips hidden faces. With group, a point on a hidden face is an error. With ids, it fills the face there of another Live Paint group among the objects, or else fails and does not merge the group. Docs: docs/mcp.md.
This commit is contained in:
@@ -1349,6 +1349,9 @@ already walks Image Trace. Short agent entry points:
|
||||
`livePaint.merge` keeps the bottom Live Paint group's id, name, lock, visibility, transparency, appearance, opacity
|
||||
mask and graphic style link. With a Live Paint group among the objects, `livePaint.make` adds the others to it as
|
||||
`livePaint.merge` does, and so does `livePaint.fill {ids}` when `point` is outside that group's faces.
|
||||
`livePaint.fill` does not fill a face that is hidden on its own. With `group`, a point on a hidden face is an
|
||||
error. With `ids`, at a point on a hidden face it fills the face there of another Live Paint group among the
|
||||
objects; otherwise it returns an error and does not merge the objects.
|
||||
|
||||
`brush.selectionArt {ids?|id?}` (a query) replies `{art}`: the object that `brush.new` given the same `ids` or `id`,
|
||||
or the same selection, takes as a new scatter or art brush's art and as a new pattern brush's side tile. Several
|
||||
|
||||
Reference in New Issue
Block a user