@thi.ng/ramp 3.3.58 → 3.3.62
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/package.json +125 -125
- package/CHANGELOG.md +0 -98
package/package.json
CHANGED
|
@@ -1,126 +1,126 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
2
|
+
"name": "@thi.ng/ramp",
|
|
3
|
+
"version": "3.3.62",
|
|
4
|
+
"description": "Extensible keyframe interpolation/tweening of arbitrary, nested types",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"typings": "./index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://thi.ng/ramp",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "liberapay",
|
|
25
|
+
"url": "https://liberapay.com/thi.ng"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "yarn build:esbuild && yarn build:decl",
|
|
32
|
+
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
33
|
+
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
34
|
+
"clean": "bun ../../tools/src/clean-package.ts",
|
|
35
|
+
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
36
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
37
|
+
"pub": "npm publish --access public",
|
|
38
|
+
"test": "bun test",
|
|
39
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@thi.ng/api": "^8.12.6",
|
|
43
|
+
"@thi.ng/arrays": "^2.13.15",
|
|
44
|
+
"@thi.ng/compare": "^2.4.32",
|
|
45
|
+
"@thi.ng/errors": "^2.5.46",
|
|
46
|
+
"@thi.ng/math": "^5.13.3",
|
|
47
|
+
"@thi.ng/transducers": "^9.6.14",
|
|
48
|
+
"@thi.ng/vectors": "^8.6.10"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"esbuild": "^0.25.11",
|
|
52
|
+
"typedoc": "^0.28.14",
|
|
53
|
+
"typescript": "^5.9.3"
|
|
54
|
+
},
|
|
55
|
+
"keywords": [
|
|
56
|
+
"1d",
|
|
57
|
+
"2d",
|
|
58
|
+
"3d",
|
|
59
|
+
"4d",
|
|
60
|
+
"animation",
|
|
61
|
+
"cubic",
|
|
62
|
+
"curve",
|
|
63
|
+
"datastructure",
|
|
64
|
+
"envelope",
|
|
65
|
+
"hermite",
|
|
66
|
+
"interpolation",
|
|
67
|
+
"interval",
|
|
68
|
+
"keyframe",
|
|
69
|
+
"linear",
|
|
70
|
+
"lut",
|
|
71
|
+
"nd",
|
|
72
|
+
"nested",
|
|
73
|
+
"object",
|
|
74
|
+
"ramp",
|
|
75
|
+
"spline",
|
|
76
|
+
"timeline",
|
|
77
|
+
"tween",
|
|
78
|
+
"typescript"
|
|
79
|
+
],
|
|
80
|
+
"publishConfig": {
|
|
81
|
+
"access": "public"
|
|
82
|
+
},
|
|
83
|
+
"engines": {
|
|
84
|
+
"node": ">=18"
|
|
85
|
+
},
|
|
86
|
+
"files": [
|
|
87
|
+
"./*.js",
|
|
88
|
+
"./*.d.ts"
|
|
89
|
+
],
|
|
90
|
+
"exports": {
|
|
91
|
+
".": {
|
|
92
|
+
"default": "./index.js"
|
|
93
|
+
},
|
|
94
|
+
"./api": {
|
|
95
|
+
"default": "./api.js"
|
|
96
|
+
},
|
|
97
|
+
"./domain": {
|
|
98
|
+
"default": "./domain.js"
|
|
99
|
+
},
|
|
100
|
+
"./easing": {
|
|
101
|
+
"default": "./easing.js"
|
|
102
|
+
},
|
|
103
|
+
"./group": {
|
|
104
|
+
"default": "./group.js"
|
|
105
|
+
},
|
|
106
|
+
"./hermite": {
|
|
107
|
+
"default": "./hermite.js"
|
|
108
|
+
},
|
|
109
|
+
"./linear": {
|
|
110
|
+
"default": "./linear.js"
|
|
111
|
+
},
|
|
112
|
+
"./nested": {
|
|
113
|
+
"default": "./nested.js"
|
|
114
|
+
},
|
|
115
|
+
"./ramp": {
|
|
116
|
+
"default": "./ramp.js"
|
|
117
|
+
},
|
|
118
|
+
"./vector": {
|
|
119
|
+
"default": "./vector.js"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"thi.ng": {
|
|
123
|
+
"year": 2019
|
|
124
|
+
},
|
|
125
|
+
"gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
|
|
126
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
- **Last updated**: 2025-09-01T16:38:35Z
|
|
4
|
-
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
-
|
|
6
|
-
All notable changes to this project will be documented in this file.
|
|
7
|
-
Only versions published since **2022-01-01** are listed here.
|
|
8
|
-
Please consult the Git history for older version information.
|
|
9
|
-
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
10
|
-
|
|
11
|
-
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
|
-
and/or version bumps of transitive dependencies.
|
|
13
|
-
|
|
14
|
-
### [3.3.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/ramp@3.3.12) (2024-12-13)
|
|
15
|
-
|
|
16
|
-
#### 🩹 Bug fixes
|
|
17
|
-
|
|
18
|
-
- fix [#494](https://github.com/thi-ng/umbrella/issues/494), update time index search ([39a504b](https://github.com/thi-ng/umbrella/commit/39a504b))
|
|
19
|
-
- update `Ramp.timeIndex()`
|
|
20
|
-
- add tests
|
|
21
|
-
- thanks to @robertoranon for reporting
|
|
22
|
-
|
|
23
|
-
## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ramp@3.3.0) (2024-09-05)
|
|
24
|
-
|
|
25
|
-
#### 🚀 Features
|
|
26
|
-
|
|
27
|
-
- add easing ramp implementations ([1e23b61](https://github.com/thi-ng/umbrella/commit/1e23b61))
|
|
28
|
-
- add `easing()`
|
|
29
|
-
- add `EASING_N` / `EASING_V`
|
|
30
|
-
- update pkg exports
|
|
31
|
-
|
|
32
|
-
## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ramp@3.2.0) (2024-08-28)
|
|
33
|
-
|
|
34
|
-
#### 🚀 Features
|
|
35
|
-
|
|
36
|
-
- add IRamp.removeStopAtIndex() ([05c965f](https://github.com/thi-ng/umbrella/commit/05c965f))
|
|
37
|
-
|
|
38
|
-
### [3.1.24](https://github.com/thi-ng/umbrella/tree/@thi.ng/ramp@3.1.24) (2024-06-21)
|
|
39
|
-
|
|
40
|
-
#### ♻️ Refactoring
|
|
41
|
-
|
|
42
|
-
- dedupe samples() impls ([85515e1](https://github.com/thi-ng/umbrella/commit/85515e1))
|
|
43
|
-
- extract common impl as internal helper
|
|
44
|
-
- update Group.samples() & Ramp.samples()
|
|
45
|
-
- dedupe nested() min/max impls ([02e1479](https://github.com/thi-ng/umbrella/commit/02e1479))
|
|
46
|
-
|
|
47
|
-
## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ramp@3.1.0) (2024-02-19)
|
|
48
|
-
|
|
49
|
-
#### 🚀 Features
|
|
50
|
-
|
|
51
|
-
- add minimal API presets for vector interpolations ([6dcb4b6](https://github.com/thi-ng/umbrella/commit/6dcb4b6))
|
|
52
|
-
- add VEC, VEC2/3/4 API presets
|
|
53
|
-
- add VecAPI interface
|
|
54
|
-
- update docs
|
|
55
|
-
- update pkg exports
|
|
56
|
-
|
|
57
|
-
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ramp@3.0.0) (2024-02-12)
|
|
58
|
-
|
|
59
|
-
#### 🛑 Breaking changes
|
|
60
|
-
|
|
61
|
-
- add support for arbitrary value types ([08e12c3](https://github.com/thi-ng/umbrella/commit/08e12c3))
|
|
62
|
-
- BREAKING CHANGE: add support for arbitrary value types, package restructure
|
|
63
|
-
- add unified Ramp class, remove obsolete ARamp, LinearRamp, HermiteRamp
|
|
64
|
-
- add interpolation presets to be used with generic Ramp
|
|
65
|
-
- LINEAR_N, LINEAR_V (numeric/vector valued)
|
|
66
|
-
- HERMITE_N, HERMITE_V
|
|
67
|
-
- update `linear()` & `hermite()` factory fns
|
|
68
|
-
- update Ramp ctor to ensure min. 2 keyframes/stops are provided
|
|
69
|
-
- add new types
|
|
70
|
-
- update/extend readme
|
|
71
|
-
- update pkg meta
|
|
72
|
-
- add nested type support, simplify RampImpl ([0daa663](https://github.com/thi-ng/umbrella/commit/0daa663))
|
|
73
|
-
- BREAKING CHANGE: rename interpolatedPoints() => samples()
|
|
74
|
-
- add nested() RampImpl
|
|
75
|
-
- update IRamp interface
|
|
76
|
-
- simplify RampImpl interface
|
|
77
|
-
|
|
78
|
-
#### 🚀 Features
|
|
79
|
-
|
|
80
|
-
- add time domain fns, grouped ramps, update API ([62c01d1](https://github.com/thi-ng/umbrella/commit/62c01d1))
|
|
81
|
-
- add time domain functions
|
|
82
|
-
- add group() ramp for nested, independent ramps
|
|
83
|
-
- add RampOpts
|
|
84
|
-
- extract IReadonlyRamp, update IRamp
|
|
85
|
-
- update/fix IRamp.addStopAt() to .setStopAt()
|
|
86
|
-
|
|
87
|
-
### [2.1.83](https://github.com/thi-ng/umbrella/tree/@thi.ng/ramp@2.1.83) (2023-11-09)
|
|
88
|
-
|
|
89
|
-
#### ♻️ Refactoring
|
|
90
|
-
|
|
91
|
-
- update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
|
|
92
|
-
|
|
93
|
-
### [2.1.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/ramp@2.1.10) (2022-05-02)
|
|
94
|
-
|
|
95
|
-
#### 🩹 Bug fixes
|
|
96
|
-
|
|
97
|
-
- fix sort to be stable when time indexes are equal ([053107b](https://github.com/thi-ng/umbrella/commit/053107b))
|
|
98
|
-
Fixes Issue [#343](https://github.com/thi-ng/umbrella/issues/343)
|