Skip to content

ElementRect

A rectangle as the renderer reports it, in CSS pixels.

Import:

import type { ElementRect } from 'obsidian-integration-testing';

Signature:

export interface ElementRect

Properties

PropertyTypeDescription
heightnumberThe rectangle's height.
leftnumberThe distance from the viewport's left edge.
topnumberThe distance from the viewport's top edge.
widthnumberThe rectangle's width.

Links to this page: