@thi.ng/text-canvas 2.6.30 → 2.6.32
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 -3
- package/image.d.ts +1 -1
- package/package.json +11 -11
- package/table.d.ts +2 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -7,9 +7,13 @@
|
|
|
7
7
|

|
|
8
8
|
[](https://mastodon.thi.ng/@toxi)
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
> [!NOTE]
|
|
11
|
+
> This is one of 189 standalone projects, maintained as part
|
|
12
|
+
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
13
|
+
> and anti-framework.
|
|
14
|
+
>
|
|
15
|
+
> 🚀 Help me to work full-time on these projects by [sponsoring me on
|
|
16
|
+
> GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
|
|
13
17
|
|
|
14
18
|
- [About](#about)
|
|
15
19
|
- [Status](#status)
|
package/image.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ export declare const imageCanvasBraille: (src: {
|
|
|
135
135
|
data: UIntArray;
|
|
136
136
|
}, thresh: number, format?: number) => Canvas;
|
|
137
137
|
/**
|
|
138
|
-
* Same as {@link
|
|
138
|
+
* Same as {@link imageCanvasBraille}, but returns resulting canvas as plain
|
|
139
139
|
* string (of Unicode Braille characters).
|
|
140
140
|
*
|
|
141
141
|
* @param src -
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/text-canvas",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.32",
|
|
4
4
|
"description": "Text based canvas, drawing, tables with arbitrary formatting (incl. ANSI/HTML)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"test": "bun test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.9.
|
|
39
|
-
"@thi.ng/arrays": "^2.7.
|
|
40
|
-
"@thi.ng/checks": "^3.4.
|
|
41
|
-
"@thi.ng/errors": "^2.4.
|
|
42
|
-
"@thi.ng/geom-clip-line": "^2.3.
|
|
43
|
-
"@thi.ng/math": "^5.
|
|
44
|
-
"@thi.ng/strings": "^3.7.
|
|
45
|
-
"@thi.ng/text-format": "^2.0.
|
|
46
|
-
"@thi.ng/transducers": "^8.8.
|
|
38
|
+
"@thi.ng/api": "^8.9.19",
|
|
39
|
+
"@thi.ng/arrays": "^2.7.16",
|
|
40
|
+
"@thi.ng/checks": "^3.4.19",
|
|
41
|
+
"@thi.ng/errors": "^2.4.12",
|
|
42
|
+
"@thi.ng/geom-clip-line": "^2.3.59",
|
|
43
|
+
"@thi.ng/math": "^5.8.1",
|
|
44
|
+
"@thi.ng/strings": "^3.7.10",
|
|
45
|
+
"@thi.ng/text-format": "^2.0.6",
|
|
46
|
+
"@thi.ng/transducers": "^8.8.23"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@microsoft/api-extractor": "^7.39.0",
|
|
@@ -139,5 +139,5 @@
|
|
|
139
139
|
],
|
|
140
140
|
"year": 2020
|
|
141
141
|
},
|
|
142
|
-
"gitHead": "
|
|
142
|
+
"gitHead": "20909ffc46f23f61ec7647e8d27ed17752ce9828\n"
|
|
143
143
|
}
|
package/table.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Border, type TableOpts } from "./api.js";
|
|
2
2
|
import { type Canvas } from "./canvas.js";
|
|
3
|
-
type RawCell = {
|
|
3
|
+
export 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
|
-
type Cell = {
|
|
10
|
+
export type Cell = {
|
|
11
11
|
body: string[];
|
|
12
12
|
format?: number;
|
|
13
13
|
height?: number;
|
|
@@ -43,5 +43,4 @@ export declare const table: (canvas: Canvas, x: number, y: number, opts: TableOp
|
|
|
43
43
|
* @param cells - table cells (row major)
|
|
44
44
|
*/
|
|
45
45
|
export declare const tableCanvas: (opts: TableOpts, cells: (string | RawCell)[][]) => Canvas;
|
|
46
|
-
export {};
|
|
47
46
|
//# sourceMappingURL=table.d.ts.map
|