@thi.ng/text-canvas 3.0.53 → 3.0.55

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 (3) hide show
  1. package/CHANGELOG.md +3 -246
  2. package/README.md +1 -1
  3. package/package.json +12 -14
package/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-21T15:46:53Z
3
+ - **Last updated**: 2025-01-29T16:25:48Z
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.
7
+ Only versions published since **2022-01-01** are listed here.
8
+ Please consult the Git history for older version information.
7
9
  See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
8
10
 
9
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
@@ -96,248 +98,3 @@ and/or version bumps of transitive dependencies.
96
98
 
97
99
  - update Canvas.setAt() ([7df033f](https://github.com/thi-ng/umbrella/commit/7df033f))
98
100
  - allow pixel value to be number or string
99
-
100
- ## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.2.0) (2021-11-17)
101
-
102
- #### 🚀 Features
103
-
104
- - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
105
- Improving the overall build ergonomics
106
- - introduced a tools workspaces
107
- - imported it in all needed packages/examples
108
- - inclusive project root
109
-
110
- #### ♻️ Refactoring
111
-
112
- - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
113
- this commit reverts (partly) changes made in:
114
- ef346d7a8753590dc9094108a3d861a8dbd5dd2c
115
- overall purpose is better testament ergonomics:
116
- instead of having to pass NODE_OPTIONS with every invocation
117
- having a binary to handle this for us.
118
-
119
- ### [2.1.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.1.2) (2021-11-10)
120
-
121
- #### ♻️ Refactoring
122
-
123
- - add IGrid2DMixin impl ([b20f99f](https://github.com/thi-ng/umbrella/commit/b20f99f))
124
- - update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
125
-
126
- ### [2.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.1.1) (2021-11-04)
127
-
128
- #### ♻️ Refactoring
129
-
130
- - apply [@thi.ng/pixel](https://github.com/thi-ng/umbrella/tree/main/packages/pixel) changes ([abf29c1](https://github.com/thi-ng/umbrella/commit/abf29c1))
131
-
132
- ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.1.0) (2021-11-03)
133
-
134
- #### 🚀 Features
135
-
136
- - add IGrid2D impl, minor updates ([6e51c11](https://github.com/thi-ng/umbrella/commit/6e51c11))
137
-
138
- ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.0.1) (2021-10-13)
139
-
140
- #### ♻️ Refactoring
141
-
142
- - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
143
- - add .js suffix for all relative imports
144
- - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
145
-
146
- # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.0.0) (2021-10-12)
147
-
148
- #### 🛑 Breaking changes
149
-
150
- - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
151
- - BREAKING CHANGE: discontinue CommonJS & UMD versions
152
- - only ESM modules will be published from now on
153
- - CJS obsolete due to ESM support in recent versions of node:
154
- - i.e. launch NodeJS via:
155
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
156
- - in the node REPL use `await import(...)` instead of `require()`
157
- - UMD obsolete due to widespread browser support for ESM
158
- Also:
159
- - normalize/restructure/reorg all package.json files
160
- - cleanup all build scripts, remove obsolete
161
- - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
162
- - 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))
163
- - BREAKING CHANGE: migrate formatting consts/functions to new pkg
164
- - see [8c28655d1](https://github.com/thi-ng/umbrella/commit/8c28655d1) for details
165
- - rename `toString()` => `formatCanvas()`
166
- - update dependencies
167
-
168
- #### ♻️ Refactoring
169
-
170
- - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
171
- - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
172
- - update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
173
- - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
174
- - update imports (transducers) ([a5a1b2d](https://github.com/thi-ng/umbrella/commit/a5a1b2d))
175
- - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
176
- - largely related to recent updates/restructuring of these packages:
177
- - api
178
- - defmulti
179
- - errors
180
- - logger
181
- - minor pkg restructure ([7eb054a](https://github.com/thi-ng/umbrella/commit/7eb054a))
182
-
183
- ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@1.1.0) (2021-08-13)
184
-
185
- #### 🚀 Features
186
-
187
- - add image -> braille functions ([8201ad2](https://github.com/thi-ng/umbrella/commit/8201ad2))
188
-
189
- ### [0.7.14](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.7.14) (2021-08-07)
190
-
191
- #### 🩹 Bug fixes
192
-
193
- - fix ImageOpts.chars type ([0ae7855](https://github.com/thi-ng/umbrella/commit/0ae7855))
194
-
195
- ### [0.7.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.7.4) (2021-03-30)
196
-
197
- #### 🩹 Bug fixes
198
-
199
- - fix FMT_NONE suffix, export format preset types ([e7a9ff7](https://github.com/thi-ng/umbrella/commit/e7a9ff7))
200
-
201
- ## [0.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.7.0) (2021-03-26)
202
-
203
- #### 🚀 Features
204
-
205
- - update table cell wordwrap handling ([f19f925](https://github.com/thi-ng/umbrella/commit/f19f925))
206
- - add per-cell option to disable word wrapping
207
- (useful for when table cell contains a chart/image)
208
-
209
- ## [0.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.6.0) (2021-03-24)
210
-
211
- #### 🚀 Features
212
-
213
- - add FMT_ANSI565, update StringFormat ([3bf5b47](https://github.com/thi-ng/umbrella/commit/3bf5b47))
214
- - add `FMT_ANSI565` (16bit RGB565) string formatter and supporting functions
215
- - merge ansi.ts & html.ts => format.ts
216
- - add `StringFormat.zero` to indicate if a zero format ID should NOT
217
- be skipped during formatting
218
- - update/fix `toString()` to consider new `zero` setting
219
- - update `FMT_ANSI256`, `FMT_HTML565`
220
- - add imageCanvas/String565() fns ([6e254eb](https://github.com/thi-ng/umbrella/commit/6e254eb))
221
-
222
- #### 🩹 Bug fixes
223
-
224
- - fix format start/end handling in toString() ([5100222](https://github.com/thi-ng/umbrella/commit/5100222))
225
-
226
- ### [0.5.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.5.1) (2021-03-24)
227
-
228
- #### ♻️ Refactoring
229
-
230
- - add barChart[HV]Lines() fns ([44959ea](https://github.com/thi-ng/umbrella/commit/44959ea))
231
- - expose fns which return string[], useful as interim results
232
-
233
- ## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.5.0) (2021-03-24)
234
-
235
- #### 🚀 Features
236
-
237
- - add hardwrapped text support ([4e171db](https://github.com/thi-ng/umbrella/commit/4e171db))
238
- - update table & textBox, textColumn, wordWrappedLines
239
- - update TableOpts, RawCell
240
- - add FMT_NONE dummy formatter ([0b1f3bd](https://github.com/thi-ng/umbrella/commit/0b1f3bd))
241
-
242
- #### ♻️ Refactoring
243
-
244
- - replace word wrapping fns ([ce124de](https://github.com/thi-ng/umbrella/commit/ce124de))
245
- - remove recently added word wrapping fns again, favor re-using
246
- the new & improved fns from [@thi.ng/strings](https://github.com/thi-ng/umbrella/tree/main/packages/strings) pkg
247
- - simplify `textColumn()`
248
-
249
- ### [0.4.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.4.5) (2021-02-20)
250
-
251
- #### ♻️ Refactoring
252
-
253
- - use clamp0() ([940d90b](https://github.com/thi-ng/umbrella/commit/940d90b))
254
-
255
- ### [0.4.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.4.1) (2021-01-10)
256
-
257
- #### 🩹 Bug fixes
258
-
259
- - fix FMT_ANSI256 bg bitshift ([b50a0f9](https://github.com/thi-ng/umbrella/commit/b50a0f9))
260
-
261
- ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.4.0) (2021-01-05)
262
-
263
- #### 🚀 Features
264
-
265
- - add formatter fns/utils ([fb4470d](https://github.com/thi-ng/umbrella/commit/fb4470d))
266
-
267
- ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.3.0) (2021-01-02)
268
-
269
- #### 🚀 Features
270
-
271
- - add ANSI256 & HTML_565 formatters ([1f2d35b](https://github.com/thi-ng/umbrella/commit/1f2d35b))
272
- - add imageRaw(), update image() ([34037ad](https://github.com/thi-ng/umbrella/commit/34037ad))
273
- - add imageRaw() for direct use of pixels as format data (e.g. for FMT_HTML_565)
274
- - update ImageOpts.format to allow functions
275
- - update Canvas ctor, initial clear value to include format
276
-
277
- #### ♻️ Refactoring
278
-
279
- - extract imgRect() helper ([ea59f57](https://github.com/thi-ng/umbrella/commit/ea59f57))
280
-
281
- ### [0.2.35](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.2.35) (2020-12-07)
282
-
283
- #### ♻️ Refactoring
284
-
285
- - update type-only imports ([2ffdedf](https://github.com/thi-ng/umbrella/commit/2ffdedf))
286
-
287
- ### [0.2.30](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.2.30) (2020-09-13)
288
-
289
- #### ♻️ Refactoring
290
-
291
- - update deps, imports, use new Fn types ([d311d5d](https://github.com/thi-ng/umbrella/commit/d311d5d))
292
-
293
- ### [0.2.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.2.3) (2020-04-05)
294
-
295
- #### ♻️ Refactoring
296
-
297
- - switch to non-const enums ([a9a7bbc](https://github.com/thi-ng/umbrella/commit/a9a7bbc))
298
-
299
- ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.2.0) (2020-03-01)
300
-
301
- #### 🚀 Features
302
-
303
- - add tableCanvas() ([13ee370](https://github.com/thi-ng/umbrella/commit/13ee370))
304
-
305
- ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.1.0) (2020-02-25)
306
-
307
- #### 🚀 Features
308
-
309
- - initial import as new pkg ([fd084bf](https://github.com/thi-ng/umbrella/commit/fd084bf))
310
- - add wrappedText(), update draw fns & clip rect handling ([ba66aee](https://github.com/thi-ng/umbrella/commit/ba66aee))
311
- - beginClip() forms intersection rect with curr clip rect
312
- - consider clip rect for all draw fns
313
- - extract _line() fn for hline/vline()
314
- - update StrokeStyle ([d5bdcc8](https://github.com/thi-ng/umbrella/commit/d5bdcc8))
315
- - add bresenham line & circle fns, force int coords ([0587a66](https://github.com/thi-ng/umbrella/commit/0587a66))
316
- - major update/rewrite, format support ([57a7487](https://github.com/thi-ng/umbrella/commit/57a7487))
317
- - use Uint32Array as backing buffer
318
- - add support for arbitrary format IDs (highest 16bit)
319
- - add configurable string formatting
320
- - add ANSI & HTML format presets
321
- - add color & format constants
322
- - re-org source files
323
- - add textBox, update format enums & handling ([c922e14](https://github.com/thi-ng/umbrella/commit/c922e14))
324
- - add withClip/Format/Style() HOFs ([369909c](https://github.com/thi-ng/umbrella/commit/369909c))
325
- - add textLines(), wordWrappedLines() ([0f13fe2](https://github.com/thi-ng/umbrella/commit/0f13fe2))
326
- - add derived style fns (horizontalOnly, verticalOnly) ([dc1cb05](https://github.com/thi-ng/umbrella/commit/dc1cb05))
327
- - add table support & options ([8983ad6](https://github.com/thi-ng/umbrella/commit/8983ad6))
328
- - add support for table cell format overrides ([8909ce0](https://github.com/thi-ng/umbrella/commit/8909ce0))
329
- - add bar chart & image fns ([3130fe4](https://github.com/thi-ng/umbrella/commit/3130fe4))
330
- - add blit(), getAt(), fix table() arg type ([b5c9eb4](https://github.com/thi-ng/umbrella/commit/b5c9eb4))
331
- - add more border consts ([05247a0](https://github.com/thi-ng/umbrella/commit/05247a0))
332
- - add canvas() factory fn ([3baeb31](https://github.com/thi-ng/umbrella/commit/3baeb31))
333
- - add opt cell height config support ([d162a1c](https://github.com/thi-ng/umbrella/commit/d162a1c))
334
- - add ImageOpts, update image(), add resize(), extract() ([73f941a](https://github.com/thi-ng/umbrella/commit/73f941a))
335
- - add/update/rename consts, toString() ([254f3d7](https://github.com/thi-ng/umbrella/commit/254f3d7))
336
- - merge toString()/toFormattedString(), remove latter
337
- - add inverted image draw opt ([08cb56a](https://github.com/thi-ng/umbrella/commit/08cb56a))
338
- - add scrollV() ([135258e](https://github.com/thi-ng/umbrella/commit/135258e))
339
-
340
- #### ♻️ Refactoring
341
-
342
- - update/add style presets ([8609e8c](https://github.com/thi-ng/umbrella/commit/8609e8c))
343
- - update imports ([4f87d2c](https://github.com/thi-ng/umbrella/commit/4f87d2c))
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 200 standalone projects, maintained as part
10
+ > This is one of 201 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/text-canvas",
3
- "version": "3.0.53",
3
+ "version": "3.0.55",
4
4
  "description": "Text based canvas, drawing, plotting, tables with arbitrary formatting (incl. ANSI/HTML)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -33,29 +33,27 @@
33
33
  "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
34
  "clean": "bun ../../tools/src/clean-package.ts",
35
35
  "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
37
36
  "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
38
37
  "pub": "yarn npm publish --access public",
39
38
  "test": "bun test",
40
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
40
  },
42
41
  "dependencies": {
43
- "@thi.ng/api": "^8.11.17",
44
- "@thi.ng/arrays": "^2.10.12",
45
- "@thi.ng/checks": "^3.6.20",
46
- "@thi.ng/errors": "^2.5.23",
47
- "@thi.ng/geom-clip-line": "^2.3.119",
48
- "@thi.ng/math": "^5.11.17",
49
- "@thi.ng/strings": "^3.9.2",
50
- "@thi.ng/text-format": "^2.2.22",
51
- "@thi.ng/transducers": "^9.2.15"
42
+ "@thi.ng/api": "^8.11.19",
43
+ "@thi.ng/arrays": "^2.10.14",
44
+ "@thi.ng/checks": "^3.6.22",
45
+ "@thi.ng/errors": "^2.5.25",
46
+ "@thi.ng/geom-clip-line": "^2.3.121",
47
+ "@thi.ng/math": "^5.11.19",
48
+ "@thi.ng/strings": "^3.9.4",
49
+ "@thi.ng/text-format": "^2.2.24",
50
+ "@thi.ng/transducers": "^9.2.17"
52
51
  },
53
52
  "devDependencies": {
54
- "@microsoft/api-extractor": "^7.48.1",
55
53
  "esbuild": "^0.24.2",
56
54
  "tslib": "^2.8.1",
57
55
  "typedoc": "^0.27.6",
58
- "typescript": "^5.7.2"
56
+ "typescript": "^5.7.3"
59
57
  },
60
58
  "keywords": [
61
59
  "16bit",
@@ -152,5 +150,5 @@
152
150
  ],
153
151
  "year": 2020
154
152
  },
155
- "gitHead": "22f6d518aed5951bb37b406c8ae85a6c3e6be517\n"
153
+ "gitHead": "fc1d498e8d4b690db873c30cc594352a804e7a65\n"
156
154
  }