Unique identifier of each art
String containing user-editable board name
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
Removes module from modulesActive
and modulesInactive
List of user-activated modules on a board
List of user-inactivated modules on a board
Opacity of an art
Value is automatically used by ArtShell when rendering
Note: only works on 2D arts
Object rotation
Translation vector of art
Position of bottom left corner of art (absolute including shift
)
Value is used mostly when making selection
Getter for getting element size.
Needs to be overridden if art has "size"
among AcceptedAttributes
Getter for changing element size.
Needs to be overridden if art has "size"
among AcceptedAttributes
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
Function determining, whether a point is near the art
Default implementation uses square bounding box
Add a module among user-activated modules on board
Add a module among user-deactivated modules on board
Move art to by vector (= relative)
Function called when object needs to be rendered on screen
Move art to certain vector (= absolute)
Cornerstone holds all informations about a particular board, such as board name, active and inactive modules.
Every board contains exactly one CornerstoneArt and it cannot be deleted.
Cornerstone for a current board can be obtained through
MaterialArtVersioningSystem.cornerstoneArts.value