What colors and textures are applied to the art
Unique identifier of each art
Default z-index of art
Needs to be between 1-9 (including), otherwise it can lead to undefined behavior.
When locked, decreases by one.
Note: This will be replaced with proper object ordering in the near future, however it is highly suggested to override use property until then.
Marks, whether art is locked
TODO: [✨] Maybe add is prefix
Opacity of an art
Value is automatically used by ArtShell when rendering
Note: only works on 2D arts
Object rotation
How the art looks inside without the colors and textures This will be different for each art Class
Translation vector of art
Position of bottom left corner of art (absolute including shift
)
Value is used mostly when making selection
Get the color
Set the color
Position of top right corner of art (absolute including shift
)
Value is used mostly when making selection
Get the transform which is created from a deprecated shift
Set the transform which is converted and saved as a deprecated shift
Get the weight
Set the weight
Function determining, whether a point is near the art
Default implementation uses square bounding box
Move art to by vector (= relative)
Renders the art
Note: This can be called many times a second when user is scrolling or not at all when art is out of screen so do not do a heavy stuff here
JSX.Element which can be in Promise
This render should contain:
- Root element must be
Move art to certain vector (= absolute)
Universal polygon art with N points Polygon is always closed - there is always last edge from last point back to the first point