@twip/web
    Preparing search index...

    Interface MountedReview

    Review on a mounted editor: adds the markup pane and balloons.

    interface MountedReview {
        balloonLayer: HTMLElement;
        anchors(): CommentAnchor[];
        attachBalloon(thread: CommentId, card: HTMLElement): () => void;
        comments(): Promise<CommentThread[]>;
        people(): Promise<Person[]>;
        revisions(): Promise<RevisionInfo[]>;
        setMarkupPaneWidth(width: number): Promise<void>;
        stackBalloons(
            anchors: readonly CommentAnchor[],
            heights: readonly number[],
            options?: { gap?: number },
        ): number[];
    }

    Hierarchy (View Summary)

    Index
    balloonLayer: HTMLElement

    An SDK-owned element inside the scrolling content, in ContentPoint coordinates. Put cards and leader lines here. It has pointer-events: none: a card placed here needs pointer-events: auto to be clickable.

    • Places card beside its thread, stacked with the others, and keeps it there through scroll, zoom and edits.

      Parameters

      Returns () => void

    • Room beside the pages for balloons, CSS px. 0 (the default) removes it.

      Parameters

      • width: number

      Returns Promise<void>

    • Card tops that don't overlap: heights[i] is the card height for anchors[i]. Pure and synchronous.

      Parameters

      • anchors: readonly CommentAnchor[]
      • heights: readonly number[]
      • Optionaloptions: { gap?: number }

      Returns number[]