Skip to content

PixiRectangle

Unofficial

Rectangle object.

Import:

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

Signature:

export class PixiRectangle

Properties

PropertyTypeDescription
heightnumberHeight of the rectangle.
widthnumberWidth of the rectangle.
xnumberX coordinate of the upper-left corner.
ynumberY coordinate of the upper-left corner.

Methods

MethodReturnsDescription
contains(x, y)booleanChecks whether the given point is inside the rectangle.