map-number
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -0,1 +1,5 @@ | ||
# 1.0.6 | ||
* improved documentation | ||
# 1.0.5 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "map-number", | ||
"version": "1.0.5", | ||
"description": "processing/p5.js map like function, including floating point numbers", | ||
"version": "1.0.6", | ||
"description": "processing/p5.js map like function, including floating point numbers support", | ||
"main": "dist/map.cjs.js", | ||
@@ -6,0 +6,0 @@ "module": "dist/map.es.js", |
@@ -5,3 +5,3 @@ # map-number | ||
[processing](https://processing.org/reference/map_.html)/[p5.js](http://p5js.org/reference/#/p5/map) map like function, including floating point numbers | ||
[processing](https://processing.org/reference/map_.html)/[p5.js](http://p5js.org/reference/#/p5/map) map like function, including floating point numbers support | ||
@@ -15,3 +15,3 @@ > :warning: this `map` function has nothing to do with `Array.prototype.map` method. | ||
```bash | ||
> npm install map-number | ||
npm install map-number | ||
``` | ||
@@ -103,2 +103,2 @@ | ||
[MIT License](LICENSE) | ||
[MIT](LICENSE) :copyright: Manuel Fernández |
@@ -0,0 +0,0 @@ type MapFunction = (num: number, inMin: number, inMax: number, outMin: number, outMax: number) => number; |
@@ -0,0 +0,0 @@ import map from "./map"; |
@@ -0,0 +0,0 @@ export { default as map } from "./map"; |
@@ -0,0 +0,0 @@ import map from "./map"; |
@@ -0,0 +0,0 @@ function map(num: number, inMin: number, inMax: number, outMin: number, outMax: number): number { |
const { min, max } = Math; | ||
export { min, max }; |
@@ -0,0 +0,0 @@ import map from "./map"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20038