@thi.ng/webgl-msdf 2.1.38 → 2.1.40
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 +1 -1
- package/README.md +8 -11
- package/api.d.ts +2 -2
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/webgl-msdf)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -20,7 +20,7 @@ This project is part of the
|
|
|
20
20
|
|
|
21
21
|
## About
|
|
22
22
|
|
|
23
|
-
Multi-channel SDF font rendering & basic text layout for WebGL
|
|
23
|
+
Multi-channel SDF font rendering & basic text layout for WebGL
|
|
24
24
|
|
|
25
25
|
This package provides [multi-channel SDF font
|
|
26
26
|
rendering](https://github.com/Chlumsky/msdfgen) capabilities for
|
|
@@ -57,14 +57,11 @@ ES module import:
|
|
|
57
57
|
|
|
58
58
|
For Node.js REPL:
|
|
59
59
|
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
node --experimental-repl-await
|
|
63
|
-
|
|
64
|
-
> const webglMsdf = await import("@thi.ng/webgl-msdf");
|
|
60
|
+
```js
|
|
61
|
+
const webglMsdf = await import("@thi.ng/webgl-msdf");
|
|
65
62
|
```
|
|
66
63
|
|
|
67
|
-
Package sizes (
|
|
64
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 1.56 KB
|
|
68
65
|
|
|
69
66
|
## Dependencies
|
|
70
67
|
|
|
@@ -95,7 +92,7 @@ TODO
|
|
|
95
92
|
|
|
96
93
|
## Authors
|
|
97
94
|
|
|
98
|
-
Karsten Schmidt
|
|
95
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
99
96
|
|
|
100
97
|
If this project contributes to an academic publication, please cite it as:
|
|
101
98
|
|
|
@@ -110,4 +107,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
110
107
|
|
|
111
108
|
## License
|
|
112
109
|
|
|
113
|
-
© 2019 - 2022 Karsten Schmidt // Apache
|
|
110
|
+
© 2019 - 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface MSDFFont {
|
|
|
45
45
|
* @param dir -
|
|
46
46
|
* @param line -
|
|
47
47
|
*/
|
|
48
|
-
export
|
|
48
|
+
export type TextAlign = Fn3<MSDFFont, Partial<TextOpts>, string, number>;
|
|
49
49
|
export interface TextOpts {
|
|
50
50
|
/**
|
|
51
51
|
* Text alignment function (individual per line).
|
|
@@ -77,5 +77,5 @@ export interface TextOpts {
|
|
|
77
77
|
*/
|
|
78
78
|
color: GLVec4;
|
|
79
79
|
}
|
|
80
|
-
export
|
|
80
|
+
export type ColorString = [GLVec4, string];
|
|
81
81
|
//# sourceMappingURL=api.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/webgl-msdf",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.40",
|
|
4
4
|
"description": "Multi-channel SDF font rendering & basic text layout for WebGL",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,21 +34,21 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/shader-ast": "^0.12.
|
|
39
|
-
"@thi.ng/transducers": "^8.3.
|
|
40
|
-
"@thi.ng/vector-pools": "^3.1.
|
|
41
|
-
"@thi.ng/vectors": "^7.5.
|
|
42
|
-
"@thi.ng/webgl": "^6.2.
|
|
37
|
+
"@thi.ng/api": "^8.6.0",
|
|
38
|
+
"@thi.ng/shader-ast": "^0.12.33",
|
|
39
|
+
"@thi.ng/transducers": "^8.3.26",
|
|
40
|
+
"@thi.ng/vector-pools": "^3.1.37",
|
|
41
|
+
"@thi.ng/vectors": "^7.5.27",
|
|
42
|
+
"@thi.ng/webgl": "^6.2.17"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@microsoft/api-extractor": "^7.33.
|
|
46
|
-
"@thi.ng/testament": "^0.3.
|
|
47
|
-
"@types/node": "^18.11.
|
|
45
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
46
|
+
"@thi.ng/testament": "^0.3.7",
|
|
47
|
+
"@types/node": "^18.11.13",
|
|
48
48
|
"rimraf": "^3.0.2",
|
|
49
49
|
"tools": "^0.0.1",
|
|
50
|
-
"typedoc": "^0.23.
|
|
51
|
-
"typescript": "^4.
|
|
50
|
+
"typedoc": "^0.23.22",
|
|
51
|
+
"typescript": "^4.9.4"
|
|
52
52
|
},
|
|
53
53
|
"keywords": [
|
|
54
54
|
"browser",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"parent": "@thi.ng/webgl",
|
|
95
95
|
"year": 2019
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
|
|
98
98
|
}
|