You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is normal, because a Path item stores its geometry in its Segment objects (Path#segments). Once you scale the path to 0, all Segment points will be on the same position, and the path will be empty.
You can set Item#applyMatrix to false, or use a Shape instead of a Path item.
var squareSize = new paper.Size(100, 100);
var square = new paper.Path.Rectangle(centre, squareSize);
square.fillColor = 'black';
if I set:
square.scale(0)
and then
square.scale(1)
square disappear
How I can resize square?
The text was updated successfully, but these errors were encountered: