SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface CaretRect

    A minimal, DOMRect-shaped result (all eight box fields + toJSON). We build our own instead of new DOMRect(...) so the pure composeCaretRect math stays usable in a non-DOM (node) test env, and so the result can be handed directly to a float virtual anchor ({ getBoundingClientRect(): DOMRect }) — a plain rect satisfies that contract at runtime.

    interface CaretRect {
        bottom: number;
        height: number;
        left: number;
        right: number;
        top: number;
        width: number;
        x: number;
        y: number;
        toJSON(): unknown;
    }
    Index
    bottom: number
    height: number
    left: number
    right: number
    top: number
    width: number
    x: number
    y: number
    • Returns unknown