@thi.ng/text-canvas 2.6.0 → 2.6.2

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**: 2023-08-24T05:28:47Z
3
+ - **Last updated**: 2023-08-27T11:20:59Z
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
@@ -68,7 +68,7 @@ For Node.js REPL:
68
68
  const textCanvas = await import("@thi.ng/text-canvas");
69
69
  ```
70
70
 
71
- Package sizes (brotli'd, pre-treeshake): ESM: 5.12 KB
71
+ Package sizes (brotli'd, pre-treeshake): ESM: 5.41 KB
72
72
 
73
73
  ## Dependencies
74
74
 
package/canvas.js CHANGED
@@ -11,7 +11,7 @@ import { max } from "@thi.ng/transducers/max";
11
11
  import { transduce } from "@thi.ng/transducers/transduce";
12
12
  import { STYLE_ASCII } from "./api.js";
13
13
  import { charCode, intersectRect } from "./utils.js";
14
- export let Canvas = Canvas_1 = class Canvas {
14
+ let Canvas = Canvas_1 = class Canvas {
15
15
  constructor(width, height, format = NONE, style = STYLE_ASCII) {
16
16
  this.size = [width, height];
17
17
  this.stride = [1, this.width];
@@ -69,6 +69,7 @@ __decorate([
69
69
  Canvas = Canvas_1 = __decorate([
70
70
  IGrid2DMixin
71
71
  ], Canvas);
72
+ export { Canvas };
72
73
  export const canvas = (width, height, format, style) => new Canvas(width, height, format, style);
73
74
  /**
74
75
  * Creates and returns a new {@link Canvas} from given string/lines array and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/text-canvas",
3
- "version": "2.6.0",
3
+ "version": "2.6.2",
4
4
  "description": "Text based canvas, drawing, tables with arbitrary formatting (incl. ANSI/HTML)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,24 +34,24 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.9.4",
38
- "@thi.ng/arrays": "^2.5.20",
39
- "@thi.ng/checks": "^3.4.4",
40
- "@thi.ng/errors": "^2.3.4",
41
- "@thi.ng/geom-clip-line": "^2.3.27",
42
- "@thi.ng/math": "^5.6.0",
43
- "@thi.ng/strings": "^3.4.12",
44
- "@thi.ng/text-format": "^1.4.12",
45
- "@thi.ng/transducers": "^8.6.1"
37
+ "@thi.ng/api": "^8.9.5",
38
+ "@thi.ng/arrays": "^2.5.21",
39
+ "@thi.ng/checks": "^3.4.5",
40
+ "@thi.ng/errors": "^2.3.5",
41
+ "@thi.ng/geom-clip-line": "^2.3.29",
42
+ "@thi.ng/math": "^5.6.1",
43
+ "@thi.ng/strings": "^3.4.13",
44
+ "@thi.ng/text-format": "^1.4.13",
45
+ "@thi.ng/transducers": "^8.6.3"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@microsoft/api-extractor": "^7.36.4",
49
- "@thi.ng/testament": "^0.3.22",
49
+ "@thi.ng/testament": "^0.3.23",
50
50
  "rimraf": "^5.0.1",
51
51
  "tools": "^0.0.1",
52
- "tslib": "^2.6.1",
53
- "typedoc": "^0.24.8",
54
- "typescript": "^5.1.6"
52
+ "tslib": "^2.6.2",
53
+ "typedoc": "^0.25.0",
54
+ "typescript": "^5.2.2"
55
55
  },
56
56
  "keywords": [
57
57
  "4bit",
@@ -139,5 +139,5 @@
139
139
  ],
140
140
  "year": 2020
141
141
  },
142
- "gitHead": "04f545c7be1811ed24be1a6824d867b1ea9bded1\n"
142
+ "gitHead": "9dec130cc636c1da0bc4f2baa0d995579d3b7629\n"
143
143
  }