The specific type of paint object (e.g., 'rectangle', 'line')
Renders the object to the specified canvas context
Primary drawing context
Main canvas context (for composite operations)
Background context (for layered rendering)
Optionalparams: PaintObjectParametersOptional rendering parameters
Calculates the content dimensions of the object
Canvas context used for measurements (e.g., text metrics)
Size object containing width and height
Retrieves a property value by name
Type of the property name
Name of the property to retrieve
The property value or undefined if not found
Updates a property value by name
Type of the property name
Name of the property to set
New value for the property
True if the property was changed, false otherwise
Resets all user-modified properties of the object back to their registered factory default values.
ReadonlytypeThe type identifier of the paint object (e.g., 'line', 'rectangle')
ReadonlynameThe display name of the paint object
ReadonlyboundsGets the bounding rectangle of the object in canvas coordinates
ReadonlystartGets the end position (particularly relevant for line objects)
ReadonlyendGets the end position (particularly relevant for line objects)
ReadonlycanvasReturns 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.
Core interface representing a paint object that can be rendered on canvas.