@thi.ng/text-canvas 2.6.30 → 2.6.31
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/image.d.ts +1 -1
- package/package.json +10 -10
- package/table.d.ts +2 -3
package/CHANGELOG.md
CHANGED
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.31",
|
|
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.
|
|
38
|
+
"@thi.ng/api": "^8.9.18",
|
|
39
|
+
"@thi.ng/arrays": "^2.7.15",
|
|
40
|
+
"@thi.ng/checks": "^3.4.18",
|
|
41
41
|
"@thi.ng/errors": "^2.4.11",
|
|
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.
|
|
42
|
+
"@thi.ng/geom-clip-line": "^2.3.58",
|
|
43
|
+
"@thi.ng/math": "^5.8.0",
|
|
44
|
+
"@thi.ng/strings": "^3.7.9",
|
|
45
|
+
"@thi.ng/text-format": "^2.0.5",
|
|
46
|
+
"@thi.ng/transducers": "^8.8.22"
|
|
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": "7426e2ae6fca5482c6eaf649872296fc89955374\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
|