mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 14:06:09 +00:00
The Tangent Circle Tool (tangentCircle) joins the add-on's tools, in Object > Plug-ins > Path Precision Tools and the All Tools drawer. A click on a path segment picks it; a click on a second segment draws the circle that is tangent to the first segment at the point clicked and touches the second. The segments beside the second one count with it, and of the circles found the one touching them nearest the pointer is drawn. - Shift on the second click uses the tool's radius (36 pt to start, set in its options), anywhere along the first segment. - A drag from the second segment sets the radius to the drag's length; Shift steps it by 1, 2 or 5 times a power of 10 pt, at least 4 screen pixels, and Cmd/Ctrl pressed during the drag moves it by a tenth. - Before the click the circle shows with its center, its radii to the touch points and its radius, or a translated note says there is none. The preview follows a pan, a zoom or an edit under a still pointer. - The circle is drawn with shape.circleThroughPoints, so Align New Objects to Pixel Grid leaves it tangent; one undo step. A circle that its three points cannot give back in floating point is not drawn, and the first segment stays picked. Escape, an edit outside the tool or another document forgets the first segment. The geometry is circles_through and circles_of_radius in the pathops crate: the distance to the second segments is sampled along the first segment's normal (or along the segment, for a radius) and the places where it equals the radius are taken, including touches between samples. Part of #7178. Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md, ROADMAP.