get-selection-range

> Get cursor's selection range.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
get-selection-range
0.1.06 years ago6 years agoMinified + gzip package size for get-selection-range in KB

Readme

Get cursor's selection range.

Installation

$ npm install --save get-selection-range

Usage

var getSelectionRange = require('get-selection-range');

// get visible selection range
getSelectionRange.getVisibleSelectionRect();

// get collpase selection range
getSelectionRange.getCollapsedClientRect()

License

MIT © chilijung()