New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sourcegraph/event-positions

Package Overview
Dependencies
Maintainers
15
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sourcegraph/event-positions

Finds the positons of mouse events in dom elements.

1.0.4
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
15
Weekly downloads
 
Created
Source

Event Positions

build codecov code style: prettier semantic-release

This is a small library used to determining the the positions that events happened at in code views.

Installation

npm install @sourcegraph/event-positions

Usage

It is currently exposed as an RxJs Operator

import { findPositionsFromEvents } from 'event-positions'

observableOfDomElements
  .pipe(
    findPositionsFromEvents({
      ...props,
    })
  )
  .subscribe(positionEvent => console.log(positionEvent)) // { line: ..., character: ..., token: ... }

FAQs

Package last updated on 07 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts