Shape represents a union of various shape types used in the Penpot project.
This type allows for different shapes to be handled under a single type umbrella.
Example
letshape: Shape; if (penpot.utils.types.isRectangle(shape)) { console.log(shape.type); }
Shape represents a union of various shape types used in the Penpot project. This type allows for different shapes to be handled under a single type umbrella.