@thi.ng/ramp 2.1.8 → 2.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/aramp.js +1 -2
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2022-
|
|
3
|
+
- **Last updated**: 2022-05-02T11:57:05Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,13 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [2.1.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/ramp@2.1.10) (2022-05-02)
|
|
13
|
+
|
|
14
|
+
#### 🩹 Bug fixes
|
|
15
|
+
|
|
16
|
+
- fix sort to be stable when time indexes are equal ([053107b](https://github.com/thi-ng/umbrella/commit/053107b))
|
|
17
|
+
Fixes Issue [#343](https://github.com/thi-ng/umbrella/issues/343)
|
|
18
|
+
|
|
12
19
|
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ramp@2.1.0) (2021-11-17)
|
|
13
20
|
|
|
14
21
|
#### 🚀 Features
|
package/aramp.js
CHANGED
|
@@ -2,7 +2,6 @@ import { binarySearch } from "@thi.ng/arrays/binary-search";
|
|
|
2
2
|
import { compareNumAsc } from "@thi.ng/compare/numeric";
|
|
3
3
|
import { absDiff } from "@thi.ng/math/abs";
|
|
4
4
|
import { clamp } from "@thi.ng/math/interval";
|
|
5
|
-
import { comparator2 } from "@thi.ng/vectors/compare";
|
|
6
5
|
export class ARamp {
|
|
7
6
|
constructor(stops = [
|
|
8
7
|
[0, 0],
|
|
@@ -60,7 +59,7 @@ export class ARamp {
|
|
|
60
59
|
: clamp(t, stops[i - 1][0] + eps, stops[i + 1][0] - eps);
|
|
61
60
|
}
|
|
62
61
|
sort() {
|
|
63
|
-
this.stops.sort(
|
|
62
|
+
this.stops.sort((a, b) => a[0] - b[0]);
|
|
64
63
|
}
|
|
65
64
|
uniform() {
|
|
66
65
|
const n = this.stops.length - 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/ramp",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.11",
|
|
4
4
|
"description": "Parametric interpolated 1D lookup tables for remapping values",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/arrays": "^2.2.
|
|
38
|
-
"@thi.ng/compare": "^2.1.
|
|
39
|
-
"@thi.ng/math": "^5.3.
|
|
40
|
-
"@thi.ng/transducers": "^8.3.
|
|
41
|
-
"@thi.ng/vectors": "^7.5.
|
|
37
|
+
"@thi.ng/arrays": "^2.2.1",
|
|
38
|
+
"@thi.ng/compare": "^2.1.5",
|
|
39
|
+
"@thi.ng/math": "^5.3.1",
|
|
40
|
+
"@thi.ng/transducers": "^8.3.1",
|
|
41
|
+
"@thi.ng/vectors": "^7.5.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@microsoft/api-extractor": "^7.19.4",
|
|
45
|
-
"@thi.ng/testament": "^0.2.
|
|
45
|
+
"@thi.ng/testament": "^0.2.5",
|
|
46
46
|
"rimraf": "^3.0.2",
|
|
47
47
|
"tools": "^0.0.1",
|
|
48
48
|
"typedoc": "^0.22.13",
|
|
@@ -74,23 +74,23 @@
|
|
|
74
74
|
],
|
|
75
75
|
"exports": {
|
|
76
76
|
".": {
|
|
77
|
-
"
|
|
77
|
+
"default": "./index.js"
|
|
78
78
|
},
|
|
79
79
|
"./api": {
|
|
80
|
-
"
|
|
80
|
+
"default": "./api.js"
|
|
81
81
|
},
|
|
82
82
|
"./aramp": {
|
|
83
|
-
"
|
|
83
|
+
"default": "./aramp.js"
|
|
84
84
|
},
|
|
85
85
|
"./hermite": {
|
|
86
|
-
"
|
|
86
|
+
"default": "./hermite.js"
|
|
87
87
|
},
|
|
88
88
|
"./linear": {
|
|
89
|
-
"
|
|
89
|
+
"default": "./linear.js"
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"thi.ng": {
|
|
93
93
|
"year": 2019
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "542bf14bd0c7a56b4e6297718189eea772a824b7\n"
|
|
96
96
|
}
|