get-selection-range

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i get-selection-range

Weekly Downloads

439

Version

0.1.0

License

MIT

Unpacked Size

6.2 kB

Total Files

4

Last publish

Collaborators

  • chilijung