You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
825 B
20 lines
825 B
|
2 years ago
|
import { Editor, Location, Point, Range } from '..';
|
||
|
|
export interface SelectionTransforms {
|
||
|
|
collapse: (editor: Editor, options?: {
|
||
|
|
edge?: 'anchor' | 'focus' | 'start' | 'end';
|
||
|
|
}) => void;
|
||
|
|
deselect: (editor: Editor) => void;
|
||
|
|
move: (editor: Editor, options?: {
|
||
|
|
distance?: number;
|
||
|
|
unit?: 'offset' | 'character' | 'word' | 'line';
|
||
|
|
reverse?: boolean;
|
||
|
|
edge?: 'anchor' | 'focus' | 'start' | 'end';
|
||
|
|
}) => void;
|
||
|
|
select: (editor: Editor, target: Location) => void;
|
||
|
|
setPoint: (editor: Editor, props: Partial<Point>, options?: {
|
||
|
|
edge?: 'anchor' | 'focus' | 'start' | 'end';
|
||
|
|
}) => void;
|
||
|
|
setSelection: (editor: Editor, props: Partial<Range>) => void;
|
||
|
|
}
|
||
|
|
export declare const SelectionTransforms: SelectionTransforms;
|
||
|
|
//# sourceMappingURL=selection.d.ts.map
|