0.1.0 • Published 6 years ago

get-selection-range v0.1.0

Weekly downloads
1,969
License
MIT
Repository
github
Last release
6 years ago

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