mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 13:09:16 +00:00
A selected warp envelope now shows the points of its surface on a 4x4 grid (8x8 or 16x16 where 4x4 strays more than 0.1% of the warp's diagonal from it). object.mesh.movePoint, movePoints, addLine, deletePoint and object.envelope.setMeshPoint accept a warp: the first edit turns it into a mesh envelope on that grid and applies the edit as one undo step, so Undo or Escape gives the warp back with its style and bend. An edit that moves no point leaves the warp and adds no undo step. A warp that no such grid follows (some version 0 maps) shows no points and its edits fail without changing anything. movePoints and setPointColor on a gradient mesh record no undo step when they change no point.