npm.io
0.1.0 • Published 8 years ago

get-selection-range

Licence
MIT
Version
0.1.0
Deps
0
Size
6 kB
Vulns
0
Weekly
0
Stars
1

get-selection-range NPM version Dependency Status

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