@thi.ng/text-canvas 2.4.39 → 2.4.41

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-03-14T13:27:20Z
3
+ - **Last updated**: 2023-04-08T11:09:50Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [2.4.40](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.4.40) (2023-03-27)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update remaining type imports (TS5.0) in various pkgs ([e0edf26](https://github.com/thi-ng/umbrella/commit/e0edf26))
17
+
12
18
  ## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.4.0) (2022-07-08)
13
19
 
14
20
  #### 🚀 Features
package/canvas.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Fn0, ICopy, IGrid2D, NumOrString } from "@thi.ng/api";
2
- import { ClipRect, StrokeStyle } from "./api.js";
1
+ import { type Fn0, type ICopy, type IGrid2D, type NumOrString } from "@thi.ng/api";
2
+ import { type ClipRect, type StrokeStyle } from "./api.js";
3
3
  export declare class Canvas implements ICopy<Canvas>, IGrid2D<Uint32Array, number> {
4
4
  data: Uint32Array;
5
5
  size: [number, number];
package/canvas.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var Canvas_1;
2
2
  import { __decorate } from "tslib";
3
- import { nomixin } from "@thi.ng/api";
3
+ import { nomixin, } from "@thi.ng/api";
4
4
  import { IGrid2DMixin } from "@thi.ng/api/mixins/igrid";
5
5
  import { peek } from "@thi.ng/arrays/peek";
6
6
  import { assert } from "@thi.ng/errors/assert";
package/image.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { NumOrString, UIntArray } from "@thi.ng/api";
2
- import { ImageOpts } from "./api.js";
2
+ import { type ImageOpts } from "./api.js";
3
3
  import { Canvas } from "./canvas.js";
4
4
  export declare const blit: (dest: Canvas, x: number, y: number, src: Canvas) => void;
5
5
  /**
package/image.js CHANGED
@@ -4,7 +4,7 @@ import { isNumber } from "@thi.ng/checks/is-number";
4
4
  import { clamp0 } from "@thi.ng/math/interval";
5
5
  import { FMT_ANSI565 } from "@thi.ng/text-format/ansi";
6
6
  import { SHADES_BLOCK } from "./api.js";
7
- import { canvas, Canvas } from "./canvas.js";
7
+ import { Canvas, canvas } from "./canvas.js";
8
8
  import { formatCanvas } from "./format.js";
9
9
  import { charCode, intersectRect } from "./utils.js";
10
10
  export const blit = (dest, x, y, src) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/text-canvas",
3
- "version": "2.4.39",
3
+ "version": "2.4.41",
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.7.4",
38
- "@thi.ng/arrays": "^2.5.8",
39
- "@thi.ng/checks": "^3.3.10",
40
- "@thi.ng/errors": "^2.2.13",
41
- "@thi.ng/geom-clip-line": "^2.3.11",
42
- "@thi.ng/math": "^5.4.5",
43
- "@thi.ng/strings": "^3.4.2",
44
- "@thi.ng/text-format": "^1.4.1",
45
- "@thi.ng/transducers": "^8.4.0"
37
+ "@thi.ng/api": "^8.7.6",
38
+ "@thi.ng/arrays": "^2.5.10",
39
+ "@thi.ng/checks": "^3.3.12",
40
+ "@thi.ng/errors": "^2.2.15",
41
+ "@thi.ng/geom-clip-line": "^2.3.13",
42
+ "@thi.ng/math": "^5.4.7",
43
+ "@thi.ng/strings": "^3.4.4",
44
+ "@thi.ng/text-format": "^1.4.3",
45
+ "@thi.ng/transducers": "^8.4.2"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@microsoft/api-extractor": "^7.34.4",
49
- "@thi.ng/testament": "^0.3.13",
50
- "rimraf": "^4.4.0",
49
+ "@thi.ng/testament": "^0.3.15",
50
+ "rimraf": "^4.4.1",
51
51
  "tools": "^0.0.1",
52
52
  "tslib": "^2.5.0",
53
- "typedoc": "^0.23.26",
54
- "typescript": "^4.9.5"
53
+ "typedoc": "^0.23.28",
54
+ "typescript": "^5.0.4"
55
55
  },
56
56
  "keywords": [
57
57
  "4bit",
@@ -139,5 +139,5 @@
139
139
  ],
140
140
  "year": 2020
141
141
  },
142
- "gitHead": "51a3361eb4b4e906ff6dfc114049f1ea9cd97d0e\n"
142
+ "gitHead": "abcedd9e4e06a4b631f363610eec572f79b571c1\n"
143
143
  }
package/table.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Border, TableOpts } from "./api.js";
2
- import { Canvas } from "./canvas.js";
1
+ import { Border, type TableOpts } from "./api.js";
2
+ import { type Canvas } from "./canvas.js";
3
3
  type RawCell = {
4
4
  body: string;
5
5
  format?: number;
package/text.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { TextBoxOpts } from "./api.js";
2
- import { Canvas } from "./canvas.js";
2
+ import { type Canvas } from "./canvas.js";
3
3
  /**
4
4
  * Writes given string at position `x`,`y`, taking the current clip rect
5
5
  * and format into account. The string MUST not include linebreaks or
package/text.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { peek } from "@thi.ng/arrays/peek";
2
2
  import { clamp0 } from "@thi.ng/math/interval";
3
3
  import { wordWrapLines } from "@thi.ng/strings/word-wrap";
4
- import { beginClip, beginStyle, endClip, endStyle } from "./canvas.js";
4
+ import { beginClip, beginStyle, endClip, endStyle, } from "./canvas.js";
5
5
  import { fillRect, strokeRect } from "./rect.js";
6
6
  /**
7
7
  * Writes given string at position `x`,`y`, taking the current clip rect