Skip to content

Rect-related

Rect

typescript
interface Rect {
  readonly x: number;
  readonly y: number;
  readonly width: number;
  readonly height: number;
}

SimplifiedRect

typescript
interface SimplifiedRect {
  readonly x: number;
  readonly y: number;
  readonly w: number;
  readonly h: number;
}

NestedBoundaryBox

typescript
interface NestedBoundaryBox {
  readonly guid: string;
  readonly name: string;
  readonly type: NodeType;
  readonly bbox: SimplifiedRect;
  readonly layers?: NestedBoundaryBox[];
}