Skip to content

PixiRectangle

Unofficial

Rectangle object.

Import:

import type { PixiRectangle } from '@obsidian-typings/obsidian-public-latest';

Signature:

export class PixiRectangle

Properties

Property Type Description
height number Height of the rectangle.
width number Width of the rectangle.
x number X coordinate of the upper-left corner.
y number Y coordinate of the upper-left corner.

Methods

Method Returns Description
contains(x, y) boolean Checks whether the given point is inside the rectangle.