Skip to content

CanvasRectEx

Unofficial

Extended rectangle representation for the canvas, providing both min/max and position/size properties.

Import:

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

Signature:

export interface CanvasRectEx

Properties

PropertyTypeDescription
cxnumberCenter X coordinate of the rectangle.
cynumberCenter Y coordinate of the rectangle.
heightnumberHeight of the rectangle.
leftnumberLeft edge X coordinate of the rectangle.
maxXnumberMaximum X coordinate (right edge).
maxYnumberMaximum Y coordinate (bottom edge).
minXnumberMinimum X coordinate (left edge).
minYnumberMinimum Y coordinate (top edge).
topnumberTop edge Y coordinate of the rectangle.
widthnumberWidth of the rectangle.

Links to this page: