PixiRectangle
Unofficial
Rectangle object.
Import:
import type { PixiRectangle } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export class PixiRectangleProperties
| 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. |