The specific type of paint object (e.g., 'rectangle', 'line')
Readonly typeThe type identifier of the paint object (e.g., 'line', 'rectangle')
Readonly nameThe display name of the paint object
Gets the bounding rectangle of the object in canvas coordinates
Sets the bounding rectangle of the object
New bounding rectangle dimensions and position
Gets the end position (particularly relevant for line objects)
Sets the end position (particularly relevant for line objects)
New end position coordinates
Returns the additional padding (in pixels) required around the object to accommodate all visual elements like styled line caps. This is useful for properly sizing the canvas when rendering this object.
Renders the object to the specified canvas context
Primary drawing context
Main canvas context (for composite operations)
Background context (for layered rendering)
Optional params: PaintObjectParametersOptional rendering parameters
Retrieves a property value by name
The property value or undefined if not found
Type of the property name
Name of the property to retrieve
Updates a property value by name
True if the property was changed, false otherwise
Type of the property name
Name of the property to set
New value for the property
Core interface representing a paint object that can be rendered on canvas.