@twip/web
    Preparing search index...

    Interface MountedElements

    Elements on a mounted editor: adds drop targets and hit testing.

    interface MountedElements {
        boxes(id: ElementId): Promise<ClientRect[]>;
        dragLeave(): void;
        dragOver(at: ClientPoint): void;
        drop(at: ClientPoint, op: Op): Promise<void>;
        get(id: ElementId): Promise<ElementDetail>;
        hitTest(
            at: ClientPoint,
        ): Promise<{ editable: boolean; element: ElementId | null }>;
        list(
            filter?: {
                kind?: ControlKind | "field";
                match?: { in: "title" | "code" | "tag"; text: string };
                story?:
                    | "textBox"
                    | "header"
                    | "footer"
                    | "body"
                    | "footnote"
                    | "endnote"
                    | "subTemplate";
                subTemplate?: string;
            },
        ): Promise<ElementInfo[]>;
        select(id: ElementId, options?: { reveal?: boolean }): Promise<void>;
        structure(options?: { depth?: number; root?: ElementId }): Promise<Block[]>;
    }

    Hierarchy (View Summary)

    Index
    • The elements, in document order.

      Parameters

      • Optionalfilter: {
            kind?: ControlKind | "field";
            match?: { in: "title" | "code" | "tag"; text: string };
            story?:
                | "textBox"
                | "header"
                | "footer"
                | "body"
                | "footnote"
                | "endnote"
                | "subTemplate";
            subTemplate?: string;
        }
        • Optionalkind?: ControlKind | "field"
        • Optionalmatch?: { in: "title" | "code" | "tag"; text: string }
        • Optionalstory?:
              | "textBox"
              | "header"
              | "footer"
              | "body"
              | "footnote"
              | "endnote"
              | "subTemplate"
        • OptionalsubTemplate?: string

          Only the elements in this sub-template's body.

      Returns Promise<ElementInfo[]>