Search Docs
Loading...
Skip to content

Interface: ExportArea

A rectangle of a block to export, in design units.

The rectangle is in the block’s own space, before rotation. (0, 0) is the block’s top-left corner. For a scene, the rectangle is in scene coordinates. The export composes the rectangle like a full export of the block. The rectangle may reach outside the block. The block’s margin, stroke and allowTextOverhang do not enlarge it.

The output has the aspect ratio of the rectangle, at the export resolution of the scene. targetWidth and targetHeight scale the rectangle. An output smaller than 1 px is an error. The export skips most blocks on a page whose drawing, with its stroke, shadow and blur, stays outside the rectangle. It does not wait for such a block, and the block’s load error does not fail it. Some blocks still draw and load, for example text and the source of a matte.

Properties#

Property Type Description
x number Left edge of the area, in design units.
y number Top edge of the area, in design units.
width number Width of the area, in design units. Must be greater than 0.
height number Height of the area, in design units. Must be greater than 0.