mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-22 19:52:57 -05:00
The drag preview was a 1 px axis-aligned rectangle for every shape tool, which read as no preview at all against most comps. Draw the tool's own path instead (rectangle, rounded rectangle, ellipse, polygon, star), from the engine's own geometry, filled with the Tools bar's Fill and outlined in its Stroke, with a caption saying where the shape lands — a mask on the selected layer, into the selected shape layer, or a new shape layer. The ghost and the released shape go through one normalisation, so the drag shows exactly what it commits: Alt (Option) draws from the press point and Shift squares the box, both live. The drag also starts at the press point now, not where the 6 px drag threshold was crossed, so the shape is drawn from where the button went down, as in After Effects.