@thi.ng/fuzzy-viz 2.1.8 → 2.1.9
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 +7 -1
- package/package.json +14 -14
- package/strategy.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2022-
|
|
3
|
+
- **Last updated**: 2022-04-07T14:17:30Z
|
|
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,12 @@ 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.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/fuzzy-viz@2.1.9) (2022-04-07)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- replace deprecated .substr() w/ .substring() ([0710509](https://github.com/thi-ng/umbrella/commit/0710509))
|
|
17
|
+
|
|
12
18
|
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/fuzzy-viz@2.1.0) (2021-11-17)
|
|
13
19
|
|
|
14
20
|
#### 🚀 Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/fuzzy-viz",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.9",
|
|
4
4
|
"description": "Visualization, instrumentation & introspection utils for @thi.ng/fuzzy",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.3.
|
|
38
|
-
"@thi.ng/fuzzy": "^2.1.
|
|
39
|
-
"@thi.ng/hiccup": "^4.2.
|
|
40
|
-
"@thi.ng/hiccup-svg": "^4.2.
|
|
41
|
-
"@thi.ng/math": "^5.3.
|
|
42
|
-
"@thi.ng/strings": "^3.3.
|
|
43
|
-
"@thi.ng/text-canvas": "^2.
|
|
37
|
+
"@thi.ng/api": "^8.3.5",
|
|
38
|
+
"@thi.ng/fuzzy": "^2.1.5",
|
|
39
|
+
"@thi.ng/hiccup": "^4.2.6",
|
|
40
|
+
"@thi.ng/hiccup-svg": "^4.2.9",
|
|
41
|
+
"@thi.ng/math": "^5.3.1",
|
|
42
|
+
"@thi.ng/strings": "^3.3.3",
|
|
43
|
+
"@thi.ng/text-canvas": "^2.3.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@microsoft/api-extractor": "^7.19.4",
|
|
47
|
-
"@thi.ng/testament": "^0.2.
|
|
47
|
+
"@thi.ng/testament": "^0.2.5",
|
|
48
48
|
"rimraf": "^3.0.2",
|
|
49
49
|
"tools": "^0.0.1",
|
|
50
50
|
"typedoc": "^0.22.13",
|
|
@@ -75,21 +75,21 @@
|
|
|
75
75
|
],
|
|
76
76
|
"exports": {
|
|
77
77
|
".": {
|
|
78
|
-
"
|
|
78
|
+
"default": "./index.js"
|
|
79
79
|
},
|
|
80
80
|
"./api": {
|
|
81
|
-
"
|
|
81
|
+
"default": "./api.js"
|
|
82
82
|
},
|
|
83
83
|
"./strategy": {
|
|
84
|
-
"
|
|
84
|
+
"default": "./strategy.js"
|
|
85
85
|
},
|
|
86
86
|
"./var": {
|
|
87
|
-
"
|
|
87
|
+
"default": "./var.js"
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
"thi.ng": {
|
|
91
91
|
"parent": "@thi.ng/fuzzy",
|
|
92
92
|
"year": 2020
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "5ee1feb590dd935593b1dd4e7f38a3ed3ba64765\n"
|
|
95
95
|
}
|
package/strategy.js
CHANGED
|
@@ -102,7 +102,7 @@ export const fuzzySetToAscii = (opts) => (fn, domain, res) => {
|
|
|
102
102
|
}
|
|
103
103
|
const index = Math.round(fit(res, min, max, 0, vals.length));
|
|
104
104
|
let chart = barChartHLines(height, vals, 0, 1)
|
|
105
|
-
.map((line) => line.
|
|
105
|
+
.map((line) => line.substring(0, index) + "|" + line.substring(index + 1))
|
|
106
106
|
.join("\n")
|
|
107
107
|
.replace(/ /g, empty);
|
|
108
108
|
const legend = repeat(" ", index) + "^ " + res.toFixed(2);
|