API Documentation for Rect

NoPoDoFo Rect

A Rect (rectangle) represents coordinates (x, y), and width and height of a section on a Page

class Rect {
  new(): Rect
  new(left: number, bottom: number, width: number, height: number): Rect

  left: number
  bottom: number
  width: number
  height: number
  intersect(rect: Rect): void
}

Constructors


new(): Rect

Create a new instance of a NoPoDoFo Rect with left, bottom, width and height set to 0

new(left: number, bottom: number, width: number, height: number): Rect

Create a new instance of a NoPoDoFo Rect with values provided in constructor.

Properties


left

Rectable left value

bottom

Rectangle bottom value

width

Rectangle width

height

Rectangle height

Methods


intersect

intersect(rect: Rect): void

Intersect with another Rect.

results matching ""

    No results matching ""