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-public-latest';

Signature:

export interface CanvasRectEx

Properties

Property Type Description
cx number Center X coordinate of the rectangle.
cy number Center Y coordinate of the rectangle.
height number Height of the rectangle.
left number Left edge X coordinate of the rectangle.
maxX number Maximum X coordinate (right edge).
maxY number Maximum Y coordinate (bottom edge).
minX number Minimum X coordinate (left edge).
minY number Minimum Y coordinate (top edge).
top number Top edge Y coordinate of the rectangle.
width number Width of the rectangle.

Links to this page: