@thi.ng/text-canvas 2.4.20 → 2.4.22
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 +7 -10
- package/package.json +16 -16
- package/table.d.ts +2 -2
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/text-canvas)
|
|
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.
|
|
@@ -35,7 +35,7 @@ This project is part of the
|
|
|
35
35
|
|
|
36
36
|
## About
|
|
37
37
|
|
|
38
|
-
Text based canvas, drawing, tables with arbitrary formatting (incl. ANSI/HTML)
|
|
38
|
+
Text based canvas, drawing, tables with arbitrary formatting (incl. ANSI/HTML)
|
|
39
39
|
|
|
40
40
|
## Status
|
|
41
41
|
|
|
@@ -63,11 +63,8 @@ ES module import:
|
|
|
63
63
|
|
|
64
64
|
For Node.js REPL:
|
|
65
65
|
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
node --experimental-repl-await
|
|
69
|
-
|
|
70
|
-
> const textCanvas = await import("@thi.ng/text-canvas");
|
|
66
|
+
```js
|
|
67
|
+
const textCanvas = await import("@thi.ng/text-canvas");
|
|
71
68
|
```
|
|
72
69
|
|
|
73
70
|
Package sizes (brotli'd, pre-treeshake): ESM: 5.06 KB
|
|
@@ -490,7 +487,7 @@ setInterval(() => {
|
|
|
490
487
|
|
|
491
488
|
## Authors
|
|
492
489
|
|
|
493
|
-
Karsten Schmidt
|
|
490
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
494
491
|
|
|
495
492
|
If this project contributes to an academic publication, please cite it as:
|
|
496
493
|
|
|
@@ -505,4 +502,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
505
502
|
|
|
506
503
|
## License
|
|
507
504
|
|
|
508
|
-
© 2020 - 2022 Karsten Schmidt // Apache
|
|
505
|
+
© 2020 - 2022 Karsten Schmidt // Apache License 2.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/text-canvas",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.22",
|
|
4
4
|
"description": "Text based canvas, drawing, tables with arbitrary formatting (incl. ANSI/HTML)",
|
|
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,24 +34,24 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/arrays": "^2.4.
|
|
39
|
-
"@thi.ng/checks": "^3.3.
|
|
40
|
-
"@thi.ng/errors": "^2.2.
|
|
41
|
-
"@thi.ng/geom-clip-line": "^2.2.
|
|
42
|
-
"@thi.ng/math": "^5.3.
|
|
43
|
-
"@thi.ng/strings": "^3.3.
|
|
44
|
-
"@thi.ng/text-format": "^1.2.
|
|
45
|
-
"@thi.ng/transducers": "^8.3.
|
|
37
|
+
"@thi.ng/api": "^8.6.1",
|
|
38
|
+
"@thi.ng/arrays": "^2.4.6",
|
|
39
|
+
"@thi.ng/checks": "^3.3.5",
|
|
40
|
+
"@thi.ng/errors": "^2.2.6",
|
|
41
|
+
"@thi.ng/geom-clip-line": "^2.2.2",
|
|
42
|
+
"@thi.ng/math": "^5.3.17",
|
|
43
|
+
"@thi.ng/strings": "^3.3.21",
|
|
44
|
+
"@thi.ng/text-format": "^1.2.13",
|
|
45
|
+
"@thi.ng/transducers": "^8.3.27"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@microsoft/api-extractor": "^7.33.
|
|
49
|
-
"@thi.ng/testament": "^0.3.
|
|
48
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
49
|
+
"@thi.ng/testament": "^0.3.7",
|
|
50
50
|
"rimraf": "^3.0.2",
|
|
51
51
|
"tools": "^0.0.1",
|
|
52
52
|
"tslib": "^2.4.1",
|
|
53
|
-
"typedoc": "^0.23.
|
|
54
|
-
"typescript": "^4.
|
|
53
|
+
"typedoc": "^0.23.22",
|
|
54
|
+
"typescript": "^4.9.4"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|
|
57
57
|
"4bit",
|
|
@@ -139,5 +139,5 @@
|
|
|
139
139
|
],
|
|
140
140
|
"year": 2020
|
|
141
141
|
},
|
|
142
|
-
"gitHead": "
|
|
142
|
+
"gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
|
|
143
143
|
}
|
package/table.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Border, TableOpts } from "./api.js";
|
|
2
2
|
import { Canvas } from "./canvas.js";
|
|
3
|
-
|
|
3
|
+
type RawCell = {
|
|
4
4
|
body: string;
|
|
5
5
|
format?: number;
|
|
6
6
|
height?: number;
|
|
7
7
|
hard?: boolean;
|
|
8
8
|
wrap?: boolean;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type Cell = {
|
|
11
11
|
body: string[];
|
|
12
12
|
format?: number;
|
|
13
13
|
height?: number;
|