Files
vectorcraft/crates/tools
dotCooCoo bb56fd7d23 Fill Area: a click adds a path of the enclosed area and keeps the paths around it
A new Fill Area tool in the Live Paint Bucket's group adds a closed path of
the area under a click, with the current fill, stroke and stroke weight. The
paths that bound the area are not changed, and nothing needs to be selected:
visible, unlocked paths on every layer bound areas, open paths and the
overlap of filled shapes included. The area under the pointer is outlined in
red while the pointer is over it, and a click outside every area does nothing
and records no undo step. The path appears on the press and is kept on the
release; Escape or a canceled touch before the release takes it back.

The new path goes directly above the front-most object along the area. When
a group, Live Paint group or clipping group holds that object, the path goes
above the outermost group in its layer, not inside it.

The tool sends the new shapeBuilder.copyRegion command (point, ids, gap,
openFilledAsClosed, fill, stroke). It uses the Shape Builder's Gap Detection
and Consider Open Filled Paths as Closed, and a double-click opens the Shape
Builder Tool Options. The area search maps the paths near the point first and
widens the window a few times before it maps every path. When a window's
paths have more segments than one Shape Builder map takes, the paths with the
most segments are left out, and an area is taken only when none of them
reaches it. When all the paths together have more segments than that, only
an area the nearby paths enclose is found. In a document of more than 128
segments the hover search runs on another thread, and the outline of an area
goes when the document changes under a still pointer.

Docs: docs/mcp.md, docs/target-app-parity.md, cursors.toml and the regenerated
UI command catalog. Catalog rows for the tool, its undo step and its message.
2026-11-15 15:22:30 -08:00
..