UNPKG

wed

Version:

Wed is a schema-aware editor for XML documents.

34 lines (33 loc) 872 B
/** * Facilities for managing the selection mode. * * @author Louis-Dominique Dubeau * @license MPL 2.0 * @copyright Mangalam Research Center for Buddhist Languages */ export declare enum SelectionMode { /** The span mode allows creating selections character-by-character. */ SPAN = 0, /** * The unit mode restricts selections to entire units. Like an entire element, * or an entire attribute. */ UNIT = 1, } export declare namespace SelectionMode { /** * Get the selection mode that follows another mode. * * @param mode A selection mode. * * @returns The mode that follows `mode`. */ function next(mode: SelectionMode): SelectionMode; } /** * An event notifying of a selection mode change. */ export interface SelectionModeChange { name: "SelectionModeChange"; value: SelectionMode; }