# event-positions **Repository Path**: mirrors_sourcegraph/event-positions ## Basic Information - **Project Name**: event-positions - **Description**: Gets the positions of clicks and hovers in DOM elements - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2026-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Event Positions [![build](https://badge.buildkite.com/434abbf1e973ff68219e3b153d49c9354ebb2099fa368ee0e3.svg?branch=master)](https://buildkite.com/sourcegraph/event-positions) [![codecov](https://codecov.io/gh/sourcegraph/event-positions/branch/master/graph/badge.svg?token=QmvTu3ZEPp)](https://codecov.io/gh/sourcegraph/event-positions) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) ⚠️ **Archived because it's [unused](https://github.com/sourcegraph/codeintellify/pull/420)** ⚠️ This is a small library used to determining the the positions that events happened at in code views. ## Installation ```shell npm install @sourcegraph/event-positions ``` ## Usage It is currently exposed as an [RxJs Operator](http://reactivex.io/rxjs/manual/overview.html#operators) ```javascript import { findPositionsFromEvents } from 'event-positions' observableOfDomElements .pipe( findPositionsFromEvents({ ...props, }) ) .subscribe(positionEvent => console.log(positionEvent)) // { line: ..., character: ..., token: ... } ```