@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-01-23T15:58:27Z
3
+ - **Last updated**: 2024-01-29T20:39:37Z
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.
package/README.md CHANGED
@@ -7,9 +7,13 @@
7
7
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/text-canvas.svg)
8
8
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
9
9
 
10
- This is a standalone project, maintained as part of the
11
- [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo and
12
- anti-framework.
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 imageCanvasBrailler}, but returns resulting canvas as plain
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.30",
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.17",
39
- "@thi.ng/arrays": "^2.7.14",
40
- "@thi.ng/checks": "^3.4.17",
41
- "@thi.ng/errors": "^2.4.11",
42
- "@thi.ng/geom-clip-line": "^2.3.57",
43
- "@thi.ng/math": "^5.7.12",
44
- "@thi.ng/strings": "^3.7.8",
45
- "@thi.ng/text-format": "^2.0.4",
46
- "@thi.ng/transducers": "^8.8.21"
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": "417b5a7ea7bd54a3b4f086fe0fc2ce8e8933c9b2\n"
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