Skip to content

API reference / Common / Engine types / PaintRelativeRect

Interface: PaintRelativeRect ​

A relative rectangle (CT_RelativeRect): each edge an inset expressed as a fraction of the bounding box (1.0 = 100%).

The same type is reused under several element names — a:srcRect (crop a source image), a:fillRect (place a stretched fill), a:tileRect / a:fillToRect (bound a gradient).

Properties ​

PropertyDescription
left
number
@l — left inset.
top
number
@t — top inset.
right
number
@r — right inset.
bottom
number
@b — bottom inset.