@thi.ng/math 5.0.6 → 5.1.1
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 +168 -171
- package/README.md +1 -1
- package/package.json +131 -126
package/CHANGELOG.md
CHANGED
|
@@ -1,268 +1,265 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## [5.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@5.0.5...@thi.ng/math@5.0.6) (2021-10-28)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @thi.ng/math
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [5.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@5.0.4...@thi.ng/math@5.0.5) (2021-10-28)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @thi.ng/math
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [5.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@5.0.3...@thi.ng/math@5.0.4) (2021-10-25)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @thi.ng/math
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
3
|
+
- **Last updated**: 2021-11-19T07:59:51Z
|
|
4
|
+
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
29
5
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @thi.ng/math
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
## [5.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@5.0.1...@thi.ng/math@5.0.2) (2021-10-15)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @thi.ng/math
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
## [5.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@5.0.0...@thi.ng/math@5.0.1) (2021-10-13)
|
|
47
|
-
|
|
48
|
-
**Note:** Version bump only for package @thi.ng/math
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
# [5.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@4.0.6...@thi.ng/math@5.0.0) (2021-10-12)
|
|
6
|
+
All notable changes to this project will be documented in this file.
|
|
7
|
+
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
55
8
|
|
|
9
|
+
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
|
+
and/or version bumps of transitive dependencies.
|
|
56
11
|
|
|
57
|
-
|
|
12
|
+
## [5.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.1.0) (2021-11-17)
|
|
58
13
|
|
|
59
|
-
|
|
14
|
+
#### 🚀 Features
|
|
60
15
|
|
|
16
|
+
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
17
|
+
Improving the overall build ergonomics
|
|
18
|
+
- introduced a tools workspaces
|
|
19
|
+
- imported it in all needed packages/examples
|
|
20
|
+
- inclusive project root
|
|
61
21
|
|
|
62
|
-
|
|
22
|
+
#### ♻️ Refactoring
|
|
63
23
|
|
|
64
|
-
|
|
24
|
+
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
25
|
+
this commit reverts (partly) changes made in:
|
|
26
|
+
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
27
|
+
overall purpose is better testament ergonomics:
|
|
28
|
+
instead of having to pass NODE_OPTIONS with every invocation
|
|
29
|
+
having a binary to handle this for us.
|
|
65
30
|
|
|
66
|
-
-
|
|
67
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
68
|
-
- i.e. launch NodeJS via:
|
|
69
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
70
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
71
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
31
|
+
### [5.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.0.1) (2021-10-13)
|
|
72
32
|
|
|
73
|
-
|
|
74
|
-
- normalize/restructure/reorg all package.json files
|
|
75
|
-
- cleanup all build scripts, remove obsolete
|
|
76
|
-
- switch from mocha to @thi.ng/testament for all tests
|
|
33
|
+
#### ♻️ Refactoring
|
|
77
34
|
|
|
35
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
36
|
+
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
37
|
+
- add .js suffix for all relative imports
|
|
78
38
|
|
|
39
|
+
# [5.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.0.0) (2021-10-12)
|
|
79
40
|
|
|
41
|
+
#### 🛑 Breaking changes
|
|
80
42
|
|
|
43
|
+
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
44
|
+
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
45
|
+
- only ESM modules will be published from now on
|
|
46
|
+
- CJS obsolete due to ESM support in recent versions of node:
|
|
47
|
+
- i.e. launch NodeJS via:
|
|
48
|
+
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
49
|
+
- in the node REPL use `await import(...)` instead of `require()`
|
|
50
|
+
- UMD obsolete due to widespread browser support for ESM
|
|
51
|
+
Also:
|
|
52
|
+
- normalize/restructure/reorg all package.json files
|
|
53
|
+
- cleanup all build scripts, remove obsolete
|
|
54
|
+
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
81
55
|
|
|
56
|
+
#### ♻️ Refactoring
|
|
82
57
|
|
|
83
|
-
|
|
58
|
+
- update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
|
|
59
|
+
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
60
|
+
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
84
61
|
|
|
85
|
-
###
|
|
62
|
+
### [4.0.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@4.0.6) (2021-09-03)
|
|
86
63
|
|
|
87
|
-
|
|
64
|
+
#### 🩹 Bug fixes
|
|
88
65
|
|
|
89
|
-
|
|
66
|
+
- removing deprecated eqDeltaFixed() ([1de245b](https://github.com/thi-ng/umbrella/commit/1de245b))
|
|
90
67
|
|
|
91
|
-
|
|
68
|
+
# [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@4.0.0) (2021-04-24)
|
|
92
69
|
|
|
93
|
-
|
|
94
|
-
- **math:** add/update modulo functions ([be7b02b](https://github.com/thi-ng/umbrella/commit/be7b02beaf4ab1ab1030597a5f4eb94d43e1469b))
|
|
70
|
+
#### 🛑 Breaking changes
|
|
95
71
|
|
|
96
|
-
|
|
72
|
+
- add/update modulo functions ([be7b02b](https://github.com/thi-ng/umbrella/commit/be7b02b))
|
|
73
|
+
- BREAKING CHANGE: Introduction of standard libc math functions causes
|
|
74
|
+
behavior change of existing `fmod()` function...
|
|
75
|
+
- rename `fmod()` => `mod()` to align w/ GLSL counterpart
|
|
76
|
+
- add new `fmod()` w/ standard libc behavior (same as JS % op)
|
|
77
|
+
- add `remainder()` w/ standard libc behavior
|
|
78
|
+
- update doc strings
|
|
97
79
|
|
|
98
|
-
|
|
99
|
-
- rename `fmod()` => `mod()` to align w/ GLSL counterpart
|
|
100
|
-
- add new `fmod()` w/ standard libc behavior (same as JS % op)
|
|
101
|
-
- add `remainder()` w/ standard libc behavior
|
|
102
|
-
- update doc strings
|
|
80
|
+
#### 🚀 Features
|
|
103
81
|
|
|
104
|
-
|
|
82
|
+
- add libc math fns ([28b41a8](https://github.com/thi-ng/umbrella/commit/28b41a8))
|
|
83
|
+
- add copysign()
|
|
84
|
+
- add exp2()
|
|
85
|
+
- add fdim()
|
|
86
|
+
- add fma()
|
|
87
|
+
- add frexp()
|
|
88
|
+
- add ldexp()
|
|
105
89
|
|
|
106
|
-
|
|
90
|
+
## [3.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.4.0) (2021-04-03)
|
|
107
91
|
|
|
108
|
-
|
|
92
|
+
#### 🚀 Features
|
|
109
93
|
|
|
110
|
-
|
|
94
|
+
- add lanczos(), fix/update/add sinc ([e661b7a](https://github.com/thi-ng/umbrella/commit/e661b7a))
|
|
95
|
+
- replace broken sinc() fn w/ non-normalized real sinc
|
|
96
|
+
- add sincNormalized()
|
|
97
|
+
- add lanczos()
|
|
111
98
|
|
|
112
|
-
|
|
99
|
+
#### 🩹 Bug fixes
|
|
113
100
|
|
|
114
|
-
|
|
101
|
+
- fix sigmoid01() signature ([378cb17](https://github.com/thi-ng/umbrella/commit/378cb17))
|
|
115
102
|
|
|
116
|
-
|
|
103
|
+
## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.3.0) (2021-03-17)
|
|
117
104
|
|
|
118
|
-
|
|
105
|
+
#### 🚀 Features
|
|
119
106
|
|
|
120
|
-
|
|
107
|
+
- add mixBicubic(), mixCubicHermiteFromPoints() ([30dda42](https://github.com/thi-ng/umbrella/commit/30dda42))
|
|
121
108
|
|
|
122
|
-
|
|
109
|
+
#### ⏱ Performance improvements
|
|
123
110
|
|
|
124
|
-
|
|
111
|
+
- replace mixBilinear() w/ inline impl ([bb16dc5](https://github.com/thi-ng/umbrella/commit/bb16dc5))
|
|
112
|
+
- new impl ~1.7x faster
|
|
125
113
|
|
|
126
|
-
|
|
114
|
+
## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.2.0) (2021-02-20)
|
|
127
115
|
|
|
128
|
-
|
|
116
|
+
#### 🚀 Features
|
|
129
117
|
|
|
130
|
-
|
|
118
|
+
- add clamp0() ([d18c869](https://github.com/thi-ng/umbrella/commit/d18c869))
|
|
131
119
|
|
|
132
|
-
|
|
120
|
+
## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.1.0) (2021-01-10)
|
|
133
121
|
|
|
134
|
-
|
|
122
|
+
#### 🚀 Features
|
|
135
123
|
|
|
136
|
-
|
|
124
|
+
- add floorTo/ceilTo() ([595fe83](https://github.com/thi-ng/umbrella/commit/595fe83))
|
|
137
125
|
|
|
138
|
-
|
|
126
|
+
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.0.0) (2020-12-22)
|
|
139
127
|
|
|
140
|
-
|
|
128
|
+
#### 🛑 Breaking changes
|
|
141
129
|
|
|
142
|
-
|
|
130
|
+
- fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([8f00375](https://github.com/thi-ng/umbrella/commit/8f00375))
|
|
131
|
+
- update comparison order in classifyCrossing()
|
|
132
|
+
- BREAKING CHANGE: replace Crossing enum w/ type alias
|
|
133
|
+
- update/fix sigmoid() behavior ([07a278f](https://github.com/thi-ng/umbrella/commit/07a278f))
|
|
134
|
+
- BREAKING CHANGE: add new bias arg for sigmoid() to satisfy more use cases.
|
|
135
|
+
Use sigmoid01() for old behavior.
|
|
136
|
+
- add/update docstrings
|
|
137
|
+
- add desmos links
|
|
143
138
|
|
|
144
|
-
|
|
139
|
+
#### 🚀 Features
|
|
145
140
|
|
|
146
|
-
|
|
141
|
+
- add more parametric T-norms ([38bd40e](https://github.com/thi-ng/umbrella/commit/38bd40e))
|
|
142
|
+
- add gaussian() ([138befe](https://github.com/thi-ng/umbrella/commit/138befe))
|
|
143
|
+
- add various T-norm functions ([ab4a810](https://github.com/thi-ng/umbrella/commit/ab4a810))
|
|
147
144
|
|
|
148
|
-
|
|
149
|
-
- **math:** add more parametric T-norms ([38bd40e](https://github.com/thi-ng/umbrella/commit/38bd40e1595e318c6472a526e03c8c8a06ebf396))
|
|
150
|
-
- **math:** add various T-norm functions ([ab4a810](https://github.com/thi-ng/umbrella/commit/ab4a810981c08c54365d5ea3212cd465d2589cf0))
|
|
145
|
+
### [2.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@2.2.2) (2020-12-07)
|
|
151
146
|
|
|
152
|
-
|
|
147
|
+
#### ♻️ Refactoring
|
|
153
148
|
|
|
154
|
-
-
|
|
155
|
-
- **math:** add new bias arg for sigmoid() to satisfy more use cases. Use sigmoid01() for old behavior.
|
|
156
|
-
- add/update docstrings
|
|
157
|
-
- add desmos links
|
|
149
|
+
- update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
|
|
158
150
|
|
|
159
|
-
|
|
151
|
+
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@2.2.0) (2020-11-24)
|
|
160
152
|
|
|
161
|
-
|
|
153
|
+
#### 🚀 Features
|
|
162
154
|
|
|
163
|
-
-
|
|
155
|
+
- add generalized schlick curve ([4b6eb84](https://github.com/thi-ng/umbrella/commit/4b6eb84))
|
|
164
156
|
|
|
165
|
-
|
|
157
|
+
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@2.1.0) (2020-09-13)
|
|
166
158
|
|
|
167
|
-
|
|
159
|
+
#### 🚀 Features
|
|
168
160
|
|
|
169
|
-
-
|
|
161
|
+
- add lens(), invCircular() interpolators ([56dce17](https://github.com/thi-ng/umbrella/commit/56dce17))
|
|
170
162
|
|
|
171
|
-
|
|
163
|
+
#### ♻️ Refactoring
|
|
172
164
|
|
|
173
|
-
|
|
165
|
+
- update deps, imports, use new Fn types ([a40840d](https://github.com/thi-ng/umbrella/commit/a40840d))
|
|
166
|
+
- use new function aliases, update deps ([dd0337f](https://github.com/thi-ng/umbrella/commit/dd0337f))
|
|
174
167
|
|
|
175
|
-
|
|
168
|
+
### [1.7.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.7.5) (2020-04-05)
|
|
176
169
|
|
|
177
|
-
|
|
170
|
+
#### ♻️ Refactoring
|
|
178
171
|
|
|
179
|
-
-
|
|
180
|
-
- this is essentially a revert to 5018009
|
|
181
|
-
- also keep, but deprecate `eqDeltaFixed()` (synonym for `eqDelta` now)
|
|
172
|
+
- switch to non-const enums ([783e5e3](https://github.com/thi-ng/umbrella/commit/783e5e3))
|
|
182
173
|
|
|
183
|
-
|
|
174
|
+
## [1.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.7.0) (2020-02-25)
|
|
184
175
|
|
|
185
|
-
|
|
176
|
+
#### 🚀 Features
|
|
186
177
|
|
|
187
|
-
-
|
|
188
|
-
-
|
|
178
|
+
- add minNonZero2/3() ([49c88d9](https://github.com/thi-ng/umbrella/commit/49c88d9))
|
|
179
|
+
- add safeDiv() (from @nkint PR [#206](https://github.com/thi-ng/umbrella/issues/206)) ([0567b93](https://github.com/thi-ng/umbrella/commit/0567b93))
|
|
189
180
|
|
|
190
|
-
|
|
181
|
+
## [1.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.6.0) (2020-01-24)
|
|
191
182
|
|
|
192
|
-
|
|
183
|
+
#### 🚀 Features
|
|
193
184
|
|
|
194
|
-
-
|
|
195
|
-
-
|
|
185
|
+
- add clamp05, update wrapOnce, wrap01, wrap11 ([19af252](https://github.com/thi-ng/umbrella/commit/19af252))
|
|
186
|
+
- add clamp05()
|
|
187
|
+
- wrap fns now consistently use *closed* intervals
|
|
188
|
+
- add expFactor(), update wrap/wrapOnce() ([bb07348](https://github.com/thi-ng/umbrella/commit/bb07348))
|
|
189
|
+
- rename wrap => wrapOnce()
|
|
190
|
+
- add new wrap() which wraps any value, regardless of
|
|
191
|
+
dist to interval border
|
|
192
|
+
- update docs
|
|
196
193
|
|
|
197
|
-
|
|
194
|
+
## [1.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.5.0) (2019-11-09)
|
|
198
195
|
|
|
199
|
-
|
|
196
|
+
#### 🚀 Features
|
|
200
197
|
|
|
201
|
-
-
|
|
198
|
+
- add mixCubicHermite & tangent fns ([d6b4b37](https://github.com/thi-ng/umbrella/commit/d6b4b37))
|
|
202
199
|
|
|
203
|
-
|
|
200
|
+
## [1.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.4.0) (2019-07-07)
|
|
204
201
|
|
|
205
|
-
|
|
202
|
+
#### 🚀 Features
|
|
206
203
|
|
|
207
|
-
-
|
|
204
|
+
- add signed/unsigned int math ops ([518d79a](https://github.com/thi-ng/umbrella/commit/518d79a))
|
|
208
205
|
|
|
209
|
-
|
|
206
|
+
## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.3.0) (2019-05-22)
|
|
210
207
|
|
|
211
|
-
|
|
208
|
+
#### 🚀 Features
|
|
212
209
|
|
|
213
|
-
-
|
|
214
|
-
-
|
|
210
|
+
- add sigmoid / sigmoid11 fns ([3f085a3](https://github.com/thi-ng/umbrella/commit/3f085a3))
|
|
211
|
+
- add extrema & crossing fns and Crossing enum ([e102f39](https://github.com/thi-ng/umbrella/commit/e102f39))
|
|
215
212
|
|
|
216
|
-
|
|
213
|
+
## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.2.0) (2019-03-18)
|
|
217
214
|
|
|
218
|
-
|
|
215
|
+
#### 🚀 Features
|
|
219
216
|
|
|
220
|
-
-
|
|
221
|
-
-
|
|
222
|
-
-
|
|
217
|
+
- add cos/sin approximations, loc(), add docstrings ([78ed751](https://github.com/thi-ng/umbrella/commit/78ed751))
|
|
218
|
+
- add consts ([28e9898](https://github.com/thi-ng/umbrella/commit/28e9898))
|
|
219
|
+
- more trigonometry ([b5e1c02](https://github.com/thi-ng/umbrella/commit/b5e1c02))
|
|
223
220
|
|
|
224
|
-
|
|
221
|
+
## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.1.0) (2019-02-05)
|
|
225
222
|
|
|
226
|
-
|
|
223
|
+
#### 🚀 Features
|
|
227
224
|
|
|
228
|
-
-
|
|
229
|
-
- **math:** add PHI const ([57d4488](https://github.com/thi-ng/umbrella/commit/57d4488))
|
|
230
|
-
- **math:** add simplifyRatio() ([31e369b](https://github.com/thi-ng/umbrella/commit/31e369b))
|
|
225
|
+
- add PHI const ([57d4488](https://github.com/thi-ng/umbrella/commit/57d4488))
|
|
231
226
|
|
|
232
|
-
#
|
|
227
|
+
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.0.0) (2019-01-21)
|
|
233
228
|
|
|
234
|
-
|
|
229
|
+
#### 🛑 Breaking changes
|
|
235
230
|
|
|
236
|
-
- update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
|
|
231
|
+
- update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
|
|
232
|
+
- BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
|
|
233
|
+
- build scripts now first build ES6 modules in package root, then call
|
|
234
|
+
`scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
|
|
235
|
+
- all imports MUST be updated to only refer to package level
|
|
236
|
+
(not individual files anymore). tree shaking in user land will get rid of
|
|
237
|
+
all unused imported symbols.
|
|
237
238
|
|
|
238
|
-
|
|
239
|
+
#### 🚀 Features
|
|
239
240
|
|
|
240
|
-
-
|
|
241
|
-
-
|
|
242
|
-
- **math:** add cossin(), add opt scale arg for sincos() ([0043fb5](https://github.com/thi-ng/umbrella/commit/0043fb5))
|
|
243
|
-
- **math:** update eqDelta w/ adaptive eps, rename old => eqDeltaFixed ([5018009](https://github.com/thi-ng/umbrella/commit/5018009))
|
|
241
|
+
- add absInnerAngle() ([a78bd87](https://github.com/thi-ng/umbrella/commit/a78bd87))
|
|
242
|
+
- update eqDelta w/ adaptive eps, rename old => eqDeltaFixed ([5018009](https://github.com/thi-ng/umbrella/commit/5018009))
|
|
244
243
|
|
|
245
|
-
|
|
244
|
+
#### ♻️ Refactoring
|
|
246
245
|
|
|
247
|
-
-
|
|
248
|
-
- build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
|
|
249
|
-
- all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.
|
|
246
|
+
- use arrow fns ([560207a](https://github.com/thi-ng/umbrella/commit/560207a))
|
|
250
247
|
|
|
251
|
-
|
|
248
|
+
### [0.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@0.2.1) (2018-11-20)
|
|
252
249
|
|
|
253
|
-
|
|
250
|
+
#### 🩹 Bug fixes
|
|
254
251
|
|
|
255
|
-
-
|
|
252
|
+
- fix [#60](https://github.com/thi-ng/umbrella/issues/60), add range check for norm() ([143c47c](https://github.com/thi-ng/umbrella/commit/143c47c))
|
|
256
253
|
|
|
257
|
-
|
|
254
|
+
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@0.2.0) (2018-10-21)
|
|
258
255
|
|
|
259
|
-
|
|
256
|
+
#### 🚀 Features
|
|
260
257
|
|
|
261
|
-
-
|
|
262
|
-
-
|
|
258
|
+
- migrate mixCubic()/mixQuadratic() from geom package ([4a47daa](https://github.com/thi-ng/umbrella/commit/4a47daa))
|
|
259
|
+
- add sincos() & roundEps() ([f891c41](https://github.com/thi-ng/umbrella/commit/f891c41))
|
|
263
260
|
|
|
264
|
-
|
|
261
|
+
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@0.1.0) (2018-10-17)
|
|
265
262
|
|
|
266
|
-
|
|
263
|
+
#### 🚀 Features
|
|
267
264
|
|
|
268
|
-
-
|
|
265
|
+
- extract maths fns from [@thi.ng/vectors](https://github.com/thi-ng/umbrella/tree/main/packages/vectors) as new package ([4af1fba](https://github.com/thi-ng/umbrella/commit/4af1fba))
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,127 +1,132 @@
|
|
|
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
|
-
|
|
127
|
-
}
|
|
2
|
+
"name": "@thi.ng/math",
|
|
3
|
+
"version": "5.1.1",
|
|
4
|
+
"description": "Assorted common math functions & utilities",
|
|
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://github.com/thi-ng/umbrella/tree/develop/packages/math#readme",
|
|
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
|
+
"author": "Karsten Schmidt <k+npm@thi.ng>",
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "yarn clean && tsc --declaration",
|
|
28
|
+
"clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
|
|
29
|
+
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
30
|
+
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
31
|
+
"doc:readme": "yarn doc:stats && tools:readme",
|
|
32
|
+
"doc:stats": "tools:module-stats",
|
|
33
|
+
"pub": "yarn npm publish --access public",
|
|
34
|
+
"test": "testament test"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@thi.ng/api": "^8.3.1"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@microsoft/api-extractor": "^7.18.19",
|
|
41
|
+
"@thi.ng/testament": "^0.2.1",
|
|
42
|
+
"rimraf": "^3.0.2",
|
|
43
|
+
"tools": "^0.0.1",
|
|
44
|
+
"typedoc": "^0.22.9",
|
|
45
|
+
"typescript": "^4.5.2"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"animation",
|
|
49
|
+
"bezier",
|
|
50
|
+
"cubic",
|
|
51
|
+
"hermite",
|
|
52
|
+
"interpolation",
|
|
53
|
+
"interval",
|
|
54
|
+
"math",
|
|
55
|
+
"quadratic",
|
|
56
|
+
"smooth",
|
|
57
|
+
"solver",
|
|
58
|
+
"t-norm",
|
|
59
|
+
"trigonometry",
|
|
60
|
+
"typescript"
|
|
61
|
+
],
|
|
62
|
+
"publishConfig": {
|
|
63
|
+
"access": "public"
|
|
64
|
+
},
|
|
65
|
+
"engines": {
|
|
66
|
+
"node": ">=12.7"
|
|
67
|
+
},
|
|
68
|
+
"files": [
|
|
69
|
+
"*.js",
|
|
70
|
+
"*.d.ts"
|
|
71
|
+
],
|
|
72
|
+
"exports": {
|
|
73
|
+
".": {
|
|
74
|
+
"import": "./index.js"
|
|
75
|
+
},
|
|
76
|
+
"./abs": {
|
|
77
|
+
"import": "./abs.js"
|
|
78
|
+
},
|
|
79
|
+
"./angle": {
|
|
80
|
+
"import": "./angle.js"
|
|
81
|
+
},
|
|
82
|
+
"./api": {
|
|
83
|
+
"import": "./api.js"
|
|
84
|
+
},
|
|
85
|
+
"./crossing": {
|
|
86
|
+
"import": "./crossing.js"
|
|
87
|
+
},
|
|
88
|
+
"./eqdelta": {
|
|
89
|
+
"import": "./eqdelta.js"
|
|
90
|
+
},
|
|
91
|
+
"./extrema": {
|
|
92
|
+
"import": "./extrema.js"
|
|
93
|
+
},
|
|
94
|
+
"./fit": {
|
|
95
|
+
"import": "./fit.js"
|
|
96
|
+
},
|
|
97
|
+
"./int": {
|
|
98
|
+
"import": "./int.js"
|
|
99
|
+
},
|
|
100
|
+
"./interval": {
|
|
101
|
+
"import": "./interval.js"
|
|
102
|
+
},
|
|
103
|
+
"./libc": {
|
|
104
|
+
"import": "./libc.js"
|
|
105
|
+
},
|
|
106
|
+
"./min-error": {
|
|
107
|
+
"import": "./min-error.js"
|
|
108
|
+
},
|
|
109
|
+
"./mix": {
|
|
110
|
+
"import": "./mix.js"
|
|
111
|
+
},
|
|
112
|
+
"./prec": {
|
|
113
|
+
"import": "./prec.js"
|
|
114
|
+
},
|
|
115
|
+
"./ratio": {
|
|
116
|
+
"import": "./ratio.js"
|
|
117
|
+
},
|
|
118
|
+
"./safe-div": {
|
|
119
|
+
"import": "./safe-div.js"
|
|
120
|
+
},
|
|
121
|
+
"./solve": {
|
|
122
|
+
"import": "./solve.js"
|
|
123
|
+
},
|
|
124
|
+
"./step": {
|
|
125
|
+
"import": "./step.js"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"thi.ng": {
|
|
129
|
+
"year": 2013
|
|
130
|
+
},
|
|
131
|
+
"gitHead": "8bd27c8bde0b770e7c001943f11c951cd345d668\n"
|
|
132
|
+
}
|