@thi.ng/text-canvas 2.4.16 → 2.4.18
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 +43 -43
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2022-
|
|
3
|
+
- **Last updated**: 2022-11-23T22:46:54Z
|
|
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.
|
|
@@ -13,12 +13,12 @@ and/or version bumps of transitive dependencies.
|
|
|
13
13
|
|
|
14
14
|
#### 🚀 Features
|
|
15
15
|
|
|
16
|
+
- add blitMask() & docs ([a6cf74a](https://github.com/thi-ng/umbrella/commit/a6cf74a))
|
|
17
|
+
- add clearFormat() ([83f04cc](https://github.com/thi-ng/umbrella/commit/83f04cc))
|
|
16
18
|
- add canvasFromText(), update Canvas ([e8baa0b](https://github.com/thi-ng/umbrella/commit/e8baa0b))
|
|
17
19
|
- update deps
|
|
18
20
|
- add canvasFromText() factory fn
|
|
19
21
|
- add ICopy impl for Canvas
|
|
20
|
-
- add clearFormat() ([83f04cc](https://github.com/thi-ng/umbrella/commit/83f04cc))
|
|
21
|
-
- add blitMask() & docs ([a6cf74a](https://github.com/thi-ng/umbrella/commit/a6cf74a))
|
|
22
22
|
|
|
23
23
|
### [2.3.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.3.8) (2022-06-28)
|
|
24
24
|
|
|
@@ -57,8 +57,8 @@ and/or version bumps of transitive dependencies.
|
|
|
57
57
|
|
|
58
58
|
#### ♻️ Refactoring
|
|
59
59
|
|
|
60
|
-
- update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
|
|
61
60
|
- add IGrid2DMixin impl ([b20f99f](https://github.com/thi-ng/umbrella/commit/b20f99f))
|
|
61
|
+
- update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
|
|
62
62
|
|
|
63
63
|
### [2.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.1.1) (2021-11-04)
|
|
64
64
|
|
|
@@ -76,19 +76,14 @@ and/or version bumps of transitive dependencies.
|
|
|
76
76
|
|
|
77
77
|
#### ♻️ Refactoring
|
|
78
78
|
|
|
79
|
-
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
80
79
|
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
81
80
|
- add .js suffix for all relative imports
|
|
81
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
82
82
|
|
|
83
83
|
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.0.0) (2021-10-12)
|
|
84
84
|
|
|
85
85
|
#### 🛑 Breaking changes
|
|
86
86
|
|
|
87
|
-
- update to use [@thi.ng/text-format](https://github.com/thi-ng/umbrella/tree/main/packages/text-format) ([aa67a5a](https://github.com/thi-ng/umbrella/commit/aa67a5a))
|
|
88
|
-
- BREAKING CHANGE: migrate formatting consts/functions to new pkg
|
|
89
|
-
- see [8c28655d1](https://github.com/thi-ng/umbrella/commit/8c28655d1) for details
|
|
90
|
-
- rename `toString()` => `formatCanvas()`
|
|
91
|
-
- update dependencies
|
|
92
87
|
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
93
88
|
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
94
89
|
- only ESM modules will be published from now on
|
|
@@ -101,21 +96,26 @@ and/or version bumps of transitive dependencies.
|
|
|
101
96
|
- normalize/restructure/reorg all package.json files
|
|
102
97
|
- cleanup all build scripts, remove obsolete
|
|
103
98
|
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
99
|
+
- update to use [@thi.ng/text-format](https://github.com/thi-ng/umbrella/tree/main/packages/text-format) ([aa67a5a](https://github.com/thi-ng/umbrella/commit/aa67a5a))
|
|
100
|
+
- BREAKING CHANGE: migrate formatting consts/functions to new pkg
|
|
101
|
+
- see [8c28655d1](https://github.com/thi-ng/umbrella/commit/8c28655d1) for details
|
|
102
|
+
- rename `toString()` => `formatCanvas()`
|
|
103
|
+
- update dependencies
|
|
104
104
|
|
|
105
105
|
#### ♻️ Refactoring
|
|
106
106
|
|
|
107
|
-
-
|
|
107
|
+
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
108
|
+
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
109
|
+
- update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
|
|
110
|
+
- update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
|
|
111
|
+
- update imports (transducers) ([a5a1b2d](https://github.com/thi-ng/umbrella/commit/a5a1b2d))
|
|
108
112
|
- update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
|
|
109
113
|
- largely related to recent updates/restructuring of these packages:
|
|
110
114
|
- api
|
|
111
115
|
- defmulti
|
|
112
116
|
- errors
|
|
113
117
|
- logger
|
|
114
|
-
-
|
|
115
|
-
- update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
|
|
116
|
-
- update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
|
|
117
|
-
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
118
|
-
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
118
|
+
- minor pkg restructure ([7eb054a](https://github.com/thi-ng/umbrella/commit/7eb054a))
|
|
119
119
|
|
|
120
120
|
## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@1.1.0) (2021-08-13)
|
|
121
121
|
|
|
@@ -147,7 +147,6 @@ and/or version bumps of transitive dependencies.
|
|
|
147
147
|
|
|
148
148
|
#### 🚀 Features
|
|
149
149
|
|
|
150
|
-
- add imageCanvas/String565() fns ([6e254eb](https://github.com/thi-ng/umbrella/commit/6e254eb))
|
|
151
150
|
- add FMT_ANSI565, update StringFormat ([3bf5b47](https://github.com/thi-ng/umbrella/commit/3bf5b47))
|
|
152
151
|
- add `FMT_ANSI565` (16bit RGB565) string formatter and supporting functions
|
|
153
152
|
- merge ansi.ts & html.ts => format.ts
|
|
@@ -155,6 +154,7 @@ and/or version bumps of transitive dependencies.
|
|
|
155
154
|
be skipped during formatting
|
|
156
155
|
- update/fix `toString()` to consider new `zero` setting
|
|
157
156
|
- update `FMT_ANSI256`, `FMT_HTML565`
|
|
157
|
+
- add imageCanvas/String565() fns ([6e254eb](https://github.com/thi-ng/umbrella/commit/6e254eb))
|
|
158
158
|
|
|
159
159
|
#### 🩹 Bug fixes
|
|
160
160
|
|
|
@@ -171,10 +171,10 @@ and/or version bumps of transitive dependencies.
|
|
|
171
171
|
|
|
172
172
|
#### 🚀 Features
|
|
173
173
|
|
|
174
|
-
- add FMT_NONE dummy formatter ([0b1f3bd](https://github.com/thi-ng/umbrella/commit/0b1f3bd))
|
|
175
174
|
- add hardwrapped text support ([4e171db](https://github.com/thi-ng/umbrella/commit/4e171db))
|
|
176
175
|
- update table & textBox, textColumn, wordWrappedLines
|
|
177
176
|
- update TableOpts, RawCell
|
|
177
|
+
- add FMT_NONE dummy formatter ([0b1f3bd](https://github.com/thi-ng/umbrella/commit/0b1f3bd))
|
|
178
178
|
|
|
179
179
|
#### ♻️ Refactoring
|
|
180
180
|
|
|
@@ -205,11 +205,11 @@ and/or version bumps of transitive dependencies.
|
|
|
205
205
|
|
|
206
206
|
#### 🚀 Features
|
|
207
207
|
|
|
208
|
+
- add ANSI256 & HTML_565 formatters ([1f2d35b](https://github.com/thi-ng/umbrella/commit/1f2d35b))
|
|
208
209
|
- add imageRaw(), update image() ([34037ad](https://github.com/thi-ng/umbrella/commit/34037ad))
|
|
209
210
|
- add imageRaw() for direct use of pixels as format data (e.g. for FMT_HTML_565)
|
|
210
211
|
- update ImageOpts.format to allow functions
|
|
211
212
|
- update Canvas ctor, initial clear value to include format
|
|
212
|
-
- add ANSI256 & HTML_565 formatters ([1f2d35b](https://github.com/thi-ng/umbrella/commit/1f2d35b))
|
|
213
213
|
|
|
214
214
|
#### ♻️ Refactoring
|
|
215
215
|
|
|
@@ -243,22 +243,13 @@ and/or version bumps of transitive dependencies.
|
|
|
243
243
|
|
|
244
244
|
#### 🚀 Features
|
|
245
245
|
|
|
246
|
-
-
|
|
247
|
-
- add
|
|
248
|
-
-
|
|
249
|
-
-
|
|
250
|
-
-
|
|
251
|
-
-
|
|
252
|
-
- add
|
|
253
|
-
- add more border consts ([05247a0](https://github.com/thi-ng/umbrella/commit/05247a0))
|
|
254
|
-
- add blit(), getAt(), fix table() arg type ([b5c9eb4](https://github.com/thi-ng/umbrella/commit/b5c9eb4))
|
|
255
|
-
- add bar chart & image fns ([3130fe4](https://github.com/thi-ng/umbrella/commit/3130fe4))
|
|
256
|
-
- add support for table cell format overrides ([8909ce0](https://github.com/thi-ng/umbrella/commit/8909ce0))
|
|
257
|
-
- add table support & options ([8983ad6](https://github.com/thi-ng/umbrella/commit/8983ad6))
|
|
258
|
-
- add derived style fns (horizontalOnly, verticalOnly) ([dc1cb05](https://github.com/thi-ng/umbrella/commit/dc1cb05))
|
|
259
|
-
- add textLines(), wordWrappedLines() ([0f13fe2](https://github.com/thi-ng/umbrella/commit/0f13fe2))
|
|
260
|
-
- add withClip/Format/Style() HOFs ([369909c](https://github.com/thi-ng/umbrella/commit/369909c))
|
|
261
|
-
- add textBox, update format enums & handling ([c922e14](https://github.com/thi-ng/umbrella/commit/c922e14))
|
|
246
|
+
- initial import as new pkg ([fd084bf](https://github.com/thi-ng/umbrella/commit/fd084bf))
|
|
247
|
+
- add wrappedText(), update draw fns & clip rect handling ([ba66aee](https://github.com/thi-ng/umbrella/commit/ba66aee))
|
|
248
|
+
- beginClip() forms intersection rect with curr clip rect
|
|
249
|
+
- consider clip rect for all draw fns
|
|
250
|
+
- extract _line() fn for hline/vline()
|
|
251
|
+
- update StrokeStyle ([d5bdcc8](https://github.com/thi-ng/umbrella/commit/d5bdcc8))
|
|
252
|
+
- add bresenham line & circle fns, force int coords ([0587a66](https://github.com/thi-ng/umbrella/commit/0587a66))
|
|
262
253
|
- major update/rewrite, format support ([57a7487](https://github.com/thi-ng/umbrella/commit/57a7487))
|
|
263
254
|
- use Uint32Array as backing buffer
|
|
264
255
|
- add support for arbitrary format IDs (highest 16bit)
|
|
@@ -266,15 +257,24 @@ and/or version bumps of transitive dependencies.
|
|
|
266
257
|
- add ANSI & HTML format presets
|
|
267
258
|
- add color & format constants
|
|
268
259
|
- re-org source files
|
|
269
|
-
- add
|
|
270
|
-
-
|
|
271
|
-
- add
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
-
|
|
260
|
+
- add textBox, update format enums & handling ([c922e14](https://github.com/thi-ng/umbrella/commit/c922e14))
|
|
261
|
+
- add withClip/Format/Style() HOFs ([369909c](https://github.com/thi-ng/umbrella/commit/369909c))
|
|
262
|
+
- add textLines(), wordWrappedLines() ([0f13fe2](https://github.com/thi-ng/umbrella/commit/0f13fe2))
|
|
263
|
+
- add derived style fns (horizontalOnly, verticalOnly) ([dc1cb05](https://github.com/thi-ng/umbrella/commit/dc1cb05))
|
|
264
|
+
- add table support & options ([8983ad6](https://github.com/thi-ng/umbrella/commit/8983ad6))
|
|
265
|
+
- add support for table cell format overrides ([8909ce0](https://github.com/thi-ng/umbrella/commit/8909ce0))
|
|
266
|
+
- add bar chart & image fns ([3130fe4](https://github.com/thi-ng/umbrella/commit/3130fe4))
|
|
267
|
+
- add blit(), getAt(), fix table() arg type ([b5c9eb4](https://github.com/thi-ng/umbrella/commit/b5c9eb4))
|
|
268
|
+
- add more border consts ([05247a0](https://github.com/thi-ng/umbrella/commit/05247a0))
|
|
269
|
+
- add canvas() factory fn ([3baeb31](https://github.com/thi-ng/umbrella/commit/3baeb31))
|
|
270
|
+
- add opt cell height config support ([d162a1c](https://github.com/thi-ng/umbrella/commit/d162a1c))
|
|
271
|
+
- add ImageOpts, update image(), add resize(), extract() ([73f941a](https://github.com/thi-ng/umbrella/commit/73f941a))
|
|
272
|
+
- add/update/rename consts, toString() ([254f3d7](https://github.com/thi-ng/umbrella/commit/254f3d7))
|
|
273
|
+
- merge toString()/toFormattedString(), remove latter
|
|
274
|
+
- add inverted image draw opt ([08cb56a](https://github.com/thi-ng/umbrella/commit/08cb56a))
|
|
275
|
+
- add scrollV() ([135258e](https://github.com/thi-ng/umbrella/commit/135258e))
|
|
276
276
|
|
|
277
277
|
#### ♻️ Refactoring
|
|
278
278
|
|
|
279
|
-
- update imports ([4f87d2c](https://github.com/thi-ng/umbrella/commit/4f87d2c))
|
|
280
279
|
- update/add style presets ([8609e8c](https://github.com/thi-ng/umbrella/commit/8609e8c))
|
|
280
|
+
- update imports ([4f87d2c](https://github.com/thi-ng/umbrella/commit/4f87d2c))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/text-canvas",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.18",
|
|
4
4
|
"description": "Text based canvas, drawing, tables with arbitrary formatting (incl. ANSI/HTML)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,23 +34,23 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/arrays": "^2.4.
|
|
39
|
-
"@thi.ng/checks": "^3.3.
|
|
40
|
-
"@thi.ng/errors": "^2.2.
|
|
41
|
-
"@thi.ng/geom-clip-line": "^2.1.
|
|
42
|
-
"@thi.ng/math": "^5.3.
|
|
43
|
-
"@thi.ng/strings": "^3.3.
|
|
44
|
-
"@thi.ng/text-format": "^1.2.
|
|
45
|
-
"@thi.ng/transducers": "^8.3.
|
|
37
|
+
"@thi.ng/api": "^8.5.0",
|
|
38
|
+
"@thi.ng/arrays": "^2.4.3",
|
|
39
|
+
"@thi.ng/checks": "^3.3.3",
|
|
40
|
+
"@thi.ng/errors": "^2.2.4",
|
|
41
|
+
"@thi.ng/geom-clip-line": "^2.1.36",
|
|
42
|
+
"@thi.ng/math": "^5.3.14",
|
|
43
|
+
"@thi.ng/strings": "^3.3.18",
|
|
44
|
+
"@thi.ng/text-format": "^1.2.10",
|
|
45
|
+
"@thi.ng/transducers": "^8.3.24"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@microsoft/api-extractor": "^7.33.5",
|
|
49
|
-
"@thi.ng/testament": "^0.3.
|
|
49
|
+
"@thi.ng/testament": "^0.3.5",
|
|
50
50
|
"rimraf": "^3.0.2",
|
|
51
51
|
"tools": "^0.0.1",
|
|
52
|
-
"tslib": "^2.4.
|
|
53
|
-
"typedoc": "^0.23.
|
|
52
|
+
"tslib": "^2.4.1",
|
|
53
|
+
"typedoc": "^0.23.20",
|
|
54
54
|
"typescript": "^4.8.4"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"node": ">=12.7"
|
|
90
90
|
},
|
|
91
91
|
"files": [
|
|
92
|
-
"
|
|
93
|
-
"
|
|
92
|
+
"./*.js",
|
|
93
|
+
"./*.d.ts"
|
|
94
94
|
],
|
|
95
95
|
"exports": {
|
|
96
96
|
".": {
|
|
@@ -139,5 +139,5 @@
|
|
|
139
139
|
],
|
|
140
140
|
"year": 2020
|
|
141
141
|
},
|
|
142
|
-
"gitHead": "
|
|
142
|
+
"gitHead": "75ec32ff7f1b7b5e72e7a04ace24732cd5d6c774\n"
|
|
143
143
|
}
|