@twip/web
    Preparing search index...

    Interface Ruler

    The rulers of a mounted editor: the built-in rulers, and the model mapped to the viewport.

    interface Ruler {
        model(): RulerModel;
        setTabSelector(kind: TabSelector): Promise<void>;
        setUnit(unit: RulerUnit): Promise<void>;
        setVisible(
            rulers: { horizontal?: boolean; vertical?: boolean },
        ): Promise<void>;
        view(): RulerView;
    }

    Hierarchy (View Summary)

    Index
    • Shows or hides the built-in rulers.

      Parameters

      • rulers: { horizontal?: boolean; vertical?: boolean }

      Returns Promise<void>