mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
✨ Import text-editor code into the repository
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Indicates the direction of the selection.
|
||||
*
|
||||
* @readonly
|
||||
* @enum {number}
|
||||
*/
|
||||
export const SelectionDirection = {
|
||||
/** The anchorNode is behind the focusNode */
|
||||
FORWARD: 1,
|
||||
/** The focusNode and the anchorNode are collapsed */
|
||||
NONE: 0,
|
||||
/** The focusNode is behind the anchorNode */
|
||||
BACKWARD: -1,
|
||||
};
|
||||
|
||||
export default SelectionDirection;
|
||||
Reference in New Issue
Block a user