Open Design

Interface IBitmap

Identification Methods

getBitmapAssetName
getBitmapAssetName(): null | string

Returns the bitmap asset identifier.

This is currently always an absolute URL.

returns null | string

Data Methods

getBitmapBounds
getBitmapBounds(): null | { bottom: number; height: number; left: number; right: number; top: number; width: number }

Returns the area in the coordinate system of the artboard to which the bitmap should be rendered.

This does not have to reflect the actual natural dimensions of the bitmap image file.

returns null | { bottom: number; height: number; left: number; right: number; top: number; width: number }