mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
object.setLiveShape rewrote only the path after a new Rectangle, Ellipse or Polygon Angle, Polygon Radius, Side Length, Make Sides Equal, Line Length or Line Angle, so a linked opacity mask, placed gradients and pattern tiles stayed where they were. The edit now applies the transform between the old and new shape to the object, as object.scale and object.rotate do, and then sets the new shape. Scale Strokes & Effects and Transform Patterns come from the new `strokes` and `patterns` params or the preferences. Corner radii in the mask keep their size, an object named twice moves once, and the bounding box keeps its angle. Transform Patterns is now noted in the journal when only the art of a linked opacity mask uses a pattern, so a replay of object.move, object.scale and the other transforms moves those tiles alike.