mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 18:54:31 +01:00
While the pointer is within 5 px of a Live Corners widget (the distance within which a press picks the widget), the canvas draws the cut of the corner that widget controls in a 2 px line of the layer color, under the widgets. It works with every tool that shows the widgets: Selection, Direct Selection and the shape tools. Round, inverted round and chamfer corners are highlighted; a square corner has no cut, so nothing is drawn. No line is drawn while a mouse button is down (a press on the widget or a pan), or where a widget is hidden. CornerWidgets::hovered_cut finds the widget under the pointer and takes its corner's segment from the path as drawn, through the corner sources LiveCorners keeps, so a live rectangle, a live polygon and a plain path with Live Corners all highlight the segment they draw. Docs: docs/mcp.md (Live Corners) and the docs/target-app-parity.md evidence list. Part of #1232, reported by XTRECY-BD.