# ph-drag

> drag bk util

Latest version **1.0.0** (published 2021-08-26) · 0 weekly downloads

## Install

```sh
npm install ph-drag
pnpm add ph-drag
yarn add ph-drag
bun add ph-drag
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-08-26 |
| First published | 2021-08-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | phoeon |

## Links

- npm: https://www.npmjs.com/package/ph-drag
- npm.io page: https://npm.io/package/ph-drag

## Dependencies (1)

- [ph-util](https://npm.io/package/ph-util.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2021-08-26
- 1.0.0-beta.0 (beta) — 2021-08-26

## README

# 🚀 Welcome to your new awesome project!

This project has been created using **webpack-cli**, you can now run

```
npm i ph-drag
```

usage

```
import PhDrag from 'ph-drag'
new PhDrag(dom:HTMEElement,callback:(e:MouseEvent|TouchEvent,pos:{x:number,y:number})=>{
    //??? 
    dom.style.transform = `translate(${x}px,${y}px)`
})
```

---
_Source: https://npm.io/package/ph-drag · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
