2.0.1 • Published 3 years ago

bipolar v2.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

about

Helps detect change.

setup

Download from the npm registry:

# Add to package.json
npm install bipolar

Source from an import map to use with Deno or in-browser directly:

{
  "imports": {
    "bipolar": "https://cdn.jsdelivr.net/npm/bipolar@latest/main.js"
  }
}

usage

Instantiate with a pair of start values, then call repeatedly. For example,

import bipolar from "bipolar"

const filter = bipolar(0, 0)

// Log differences in position between clicks
document.addEventListener("click", ({ x, y }) => {
  console.log(filter(x, y))
})

see also

2.0.1

3 years ago

1.0.1

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago