Helpers.rectEdges()
The four edges of a
Rect, as a PDF file stores them.static methodGeometrysince 1.0.0
Signature
rectEdges(rect: Rect): RectEdges
Parameters
| Parameter | Type | Description |
|---|---|---|
| rect | Rect | A rectangle in page space. |
Returns
RectEdges { left, bottom, right, top }.
Example
TypeScript
if (annotation.rect) { const { left, bottom, right, top } = rectEdges(annotation.rect); }