@thi.ng/text-canvas 3.0.92 → 3.0.97

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.
Files changed (2) hide show
  1. package/package.json +152 -152
  2. package/CHANGELOG.md +0 -100
package/package.json CHANGED
@@ -1,153 +1,153 @@
1
1
  {
2
- "name": "@thi.ng/text-canvas",
3
- "version": "3.0.92",
4
- "description": "Text based canvas, drawing, plotting, tables with arbitrary formatting (incl. ANSI/HTML)",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
12
- },
13
- "homepage": "https://thi.ng/text-canvas",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- },
23
- {
24
- "type": "liberapay",
25
- "url": "https://liberapay.com/thi.ng"
26
- }
27
- ],
28
- "author": "Karsten Schmidt (https://thi.ng)",
29
- "license": "Apache-2.0",
30
- "scripts": {
31
- "build": "yarn build:esbuild && yarn build:decl",
32
- "build:decl": "tsc --declaration --emitDeclarationOnly",
33
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
- "clean": "bun ../../tools/src/clean-package.ts",
35
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
- "pub": "yarn npm publish --access public",
38
- "test": "bun test",
39
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
- },
41
- "dependencies": {
42
- "@thi.ng/api": "^8.12.2",
43
- "@thi.ng/arrays": "^2.13.11",
44
- "@thi.ng/checks": "^3.7.18",
45
- "@thi.ng/errors": "^2.5.42",
46
- "@thi.ng/geom-clip-line": "^2.3.152",
47
- "@thi.ng/math": "^5.12.0",
48
- "@thi.ng/strings": "^3.9.22",
49
- "@thi.ng/text-format": "^2.2.41",
50
- "@thi.ng/transducers": "^9.6.10"
51
- },
52
- "devDependencies": {
53
- "esbuild": "^0.25.9",
54
- "typedoc": "^0.28.12",
55
- "typescript": "^5.9.2"
56
- },
57
- "keywords": [
58
- "16bit",
59
- "24bit",
60
- "4bit",
61
- "8bit",
62
- "ansi",
63
- "area",
64
- "array",
65
- "ascii",
66
- "bar",
67
- "binary",
68
- "bitmap",
69
- "blit",
70
- "braille",
71
- "canvas",
72
- "circle",
73
- "clipping",
74
- "color",
75
- "datastructure",
76
- "dataviz",
77
- "drawing",
78
- "format",
79
- "image",
80
- "line",
81
- "plot",
82
- "rect",
83
- "rgb",
84
- "shape",
85
- "table",
86
- "text",
87
- "theme",
88
- "typescript",
89
- "visualization",
90
- "wordwrap"
91
- ],
92
- "publishConfig": {
93
- "access": "public"
94
- },
95
- "engines": {
96
- "node": ">=18"
97
- },
98
- "files": [
99
- "./*.js",
100
- "./*.d.ts"
101
- ],
102
- "exports": {
103
- ".": {
104
- "default": "./index.js"
105
- },
106
- "./api": {
107
- "default": "./api.js"
108
- },
109
- "./bars": {
110
- "default": "./bars.js"
111
- },
112
- "./canvas": {
113
- "default": "./canvas.js"
114
- },
115
- "./circle": {
116
- "default": "./circle.js"
117
- },
118
- "./format": {
119
- "default": "./format.js"
120
- },
121
- "./hvline": {
122
- "default": "./hvline.js"
123
- },
124
- "./image": {
125
- "default": "./image.js"
126
- },
127
- "./line": {
128
- "default": "./line.js"
129
- },
130
- "./plot": {
131
- "default": "./plot.js"
132
- },
133
- "./rect": {
134
- "default": "./rect.js"
135
- },
136
- "./style": {
137
- "default": "./style.js"
138
- },
139
- "./table": {
140
- "default": "./table.js"
141
- },
142
- "./text": {
143
- "default": "./text.js"
144
- }
145
- },
146
- "thi.ng": {
147
- "related": [
148
- "text-format"
149
- ],
150
- "year": 2020
151
- },
152
- "gitHead": "b7ede4f099767e0175ea8e09257208f73970b220\n"
153
- }
2
+ "name": "@thi.ng/text-canvas",
3
+ "version": "3.0.97",
4
+ "description": "Text based canvas, drawing, plotting, tables with arbitrary formatting (incl. ANSI/HTML)",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://thi.ng/text-canvas",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
18
+ },
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ },
23
+ {
24
+ "type": "liberapay",
25
+ "url": "https://liberapay.com/thi.ng"
26
+ }
27
+ ],
28
+ "author": "Karsten Schmidt (https://thi.ng)",
29
+ "license": "Apache-2.0",
30
+ "scripts": {
31
+ "build": "yarn build:esbuild && yarn build:decl",
32
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
33
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
+ "clean": "bun ../../tools/src/clean-package.ts",
35
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
+ "pub": "npm publish --access public",
38
+ "test": "bun test",
39
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
+ },
41
+ "dependencies": {
42
+ "@thi.ng/api": "^8.12.7",
43
+ "@thi.ng/arrays": "^2.13.16",
44
+ "@thi.ng/checks": "^3.7.23",
45
+ "@thi.ng/errors": "^2.5.47",
46
+ "@thi.ng/geom-clip-line": "^2.3.157",
47
+ "@thi.ng/math": "^5.13.4",
48
+ "@thi.ng/strings": "^3.9.27",
49
+ "@thi.ng/text-format": "^2.2.46",
50
+ "@thi.ng/transducers": "^9.6.15"
51
+ },
52
+ "devDependencies": {
53
+ "esbuild": "^0.25.11",
54
+ "typedoc": "^0.28.14",
55
+ "typescript": "^5.9.3"
56
+ },
57
+ "keywords": [
58
+ "16bit",
59
+ "24bit",
60
+ "4bit",
61
+ "8bit",
62
+ "ansi",
63
+ "area",
64
+ "array",
65
+ "ascii",
66
+ "bar",
67
+ "binary",
68
+ "bitmap",
69
+ "blit",
70
+ "braille",
71
+ "canvas",
72
+ "circle",
73
+ "clipping",
74
+ "color",
75
+ "datastructure",
76
+ "dataviz",
77
+ "drawing",
78
+ "format",
79
+ "image",
80
+ "line",
81
+ "plot",
82
+ "rect",
83
+ "rgb",
84
+ "shape",
85
+ "table",
86
+ "text",
87
+ "theme",
88
+ "typescript",
89
+ "visualization",
90
+ "wordwrap"
91
+ ],
92
+ "publishConfig": {
93
+ "access": "public"
94
+ },
95
+ "engines": {
96
+ "node": ">=18"
97
+ },
98
+ "files": [
99
+ "./*.js",
100
+ "./*.d.ts"
101
+ ],
102
+ "exports": {
103
+ ".": {
104
+ "default": "./index.js"
105
+ },
106
+ "./api": {
107
+ "default": "./api.js"
108
+ },
109
+ "./bars": {
110
+ "default": "./bars.js"
111
+ },
112
+ "./canvas": {
113
+ "default": "./canvas.js"
114
+ },
115
+ "./circle": {
116
+ "default": "./circle.js"
117
+ },
118
+ "./format": {
119
+ "default": "./format.js"
120
+ },
121
+ "./hvline": {
122
+ "default": "./hvline.js"
123
+ },
124
+ "./image": {
125
+ "default": "./image.js"
126
+ },
127
+ "./line": {
128
+ "default": "./line.js"
129
+ },
130
+ "./plot": {
131
+ "default": "./plot.js"
132
+ },
133
+ "./rect": {
134
+ "default": "./rect.js"
135
+ },
136
+ "./style": {
137
+ "default": "./style.js"
138
+ },
139
+ "./table": {
140
+ "default": "./table.js"
141
+ },
142
+ "./text": {
143
+ "default": "./text.js"
144
+ }
145
+ },
146
+ "thi.ng": {
147
+ "related": [
148
+ "text-format"
149
+ ],
150
+ "year": 2020
151
+ },
152
+ "gitHead": "d977f819bcafdcb2b24c45f8d01a167fe29fc85a\n"
153
+ }
package/CHANGELOG.md DELETED
@@ -1,100 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-01T16:38:35Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- ### [3.0.24](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@3.0.24) (2024-06-21)
15
-
16
- #### ♻️ Refactoring
17
-
18
- - enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
19
-
20
- ### [3.0.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@3.0.3) (2024-02-22)
21
-
22
- #### ♻️ Refactoring
23
-
24
- - update object destructuring in all pkgs & examples ([f36aeb0](https://github.com/thi-ng/umbrella/commit/f36aeb0))
25
-
26
- # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@3.0.0) (2024-02-19)
27
-
28
- #### 🛑 Breaking changes
29
-
30
- - add plotting, additive blending/blitting, refactor bar chart fns ([7cd6d41](https://github.com/thi-ng/umbrella/commit/7cd6d41))
31
- - BREAKING CHANGE: swap naming of barChartH/V fns, update args for blit()/blitMask()
32
- - swap naming of barChartH/V fns:
33
- - barChartHLines/Str() <=> barChartVLines/Str()
34
- - add plotBarsV() multi-plot function
35
- - add blitBarsV() fn w/ support for custom blending fns
36
- - add blendBarsVAdd() additive blending fn
37
- - add BLEND_ADD lookup table for additive blending using ANSI16 colors
38
- - update arg order of blit()/blitMask() fns
39
- - add Canvas.empty(), Canvas.clear() fns
40
-
41
- #### ♻️ Refactoring
42
-
43
- - unify plotting function naming ([cb275ae](https://github.com/thi-ng/umbrella/commit/cb275ae))
44
- - plotBarsV() => plotBarChartV()
45
- - lineChart() => plotLineChart()
46
- - migrate line chart fns to plot.ts
47
-
48
- ### [2.6.17](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.6.17) (2023-11-09)
49
-
50
- #### ♻️ Refactoring
51
-
52
- - update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
53
-
54
- ## [2.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.6.0) (2023-08-24)
55
-
56
- #### 🚀 Features
57
-
58
- - add lineChart() & lineChartStr() ([097e00c](https://github.com/thi-ng/umbrella/commit/097e00c))
59
-
60
- #### ♻️ Refactoring
61
-
62
- - update bar chart min/max handling ([e45247d](https://github.com/thi-ng/umbrella/commit/e45247d))
63
- - auto-compute value range if not specified
64
-
65
- ## [2.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.5.0) (2023-08-14)
66
-
67
- #### 🚀 Features
68
-
69
- - add imageRawFmtOnly() ([1042a40](https://github.com/thi-ng/umbrella/commit/1042a40))
70
-
71
- ### [2.4.40](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.4.40) (2023-03-27)
72
-
73
- #### ♻️ Refactoring
74
-
75
- - update remaining type imports (TS5.0) in various pkgs ([e0edf26](https://github.com/thi-ng/umbrella/commit/e0edf26))
76
-
77
- ## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.4.0) (2022-07-08)
78
-
79
- #### 🚀 Features
80
-
81
- - add blitMask() & docs ([a6cf74a](https://github.com/thi-ng/umbrella/commit/a6cf74a))
82
- - add clearFormat() ([83f04cc](https://github.com/thi-ng/umbrella/commit/83f04cc))
83
- - add canvasFromText(), update Canvas ([e8baa0b](https://github.com/thi-ng/umbrella/commit/e8baa0b))
84
- - update deps
85
- - add canvasFromText() factory fn
86
- - add ICopy impl for Canvas
87
-
88
- ### [2.3.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.3.8) (2022-06-28)
89
-
90
- #### ♻️ Refactoring
91
-
92
- - update/simplify formatCanvas() ([e2f3ab9](https://github.com/thi-ng/umbrella/commit/e2f3ab9))
93
- - re-use new single-line formatting fns from [@thi.ng/text-format](https://github.com/thi-ng/umbrella/tree/main/packages/text-format)
94
-
95
- ## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.3.0) (2022-04-07)
96
-
97
- #### 🚀 Features
98
-
99
- - update Canvas.setAt() ([7df033f](https://github.com/thi-ng/umbrella/commit/7df033f))
100
- - allow pixel value to be number or string