@thi.ng/text-canvas 2.1.2 → 2.2.3
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 +186 -59
- package/package.json +133 -127
package/CHANGELOG.md
CHANGED
|
@@ -1,128 +1,255 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
- **Last updated**: 2021-11-21T17:09:28Z
|
|
4
|
+
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
+
|
|
3
6
|
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
|
+
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
8
|
+
|
|
9
|
+
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
|
+
and/or version bumps of transitive dependencies.
|
|
11
|
+
|
|
12
|
+
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.2.0) (2021-11-17)
|
|
13
|
+
|
|
14
|
+
#### 🚀 Features
|
|
15
|
+
|
|
16
|
+
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
17
|
+
Improving the overall build ergonomics
|
|
18
|
+
- introduced a tools workspaces
|
|
19
|
+
- imported it in all needed packages/examples
|
|
20
|
+
- inclusive project root
|
|
21
|
+
|
|
22
|
+
#### ♻️ Refactoring
|
|
23
|
+
|
|
24
|
+
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
25
|
+
this commit reverts (partly) changes made in:
|
|
26
|
+
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
27
|
+
overall purpose is better testament ergonomics:
|
|
28
|
+
instead of having to pass NODE_OPTIONS with every invocation
|
|
29
|
+
having a binary to handle this for us.
|
|
30
|
+
|
|
31
|
+
### [2.1.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.1.2) (2021-11-10)
|
|
32
|
+
|
|
33
|
+
#### ♻️ Refactoring
|
|
34
|
+
|
|
35
|
+
- update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
|
|
36
|
+
- add IGrid2DMixin impl ([b20f99f](https://github.com/thi-ng/umbrella/commit/b20f99f))
|
|
37
|
+
|
|
38
|
+
### [2.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.1.1) (2021-11-04)
|
|
39
|
+
|
|
40
|
+
#### ♻️ Refactoring
|
|
41
|
+
|
|
42
|
+
- apply [@thi.ng/pixel](https://github.com/thi-ng/umbrella/tree/main/packages/pixel) changes ([abf29c1](https://github.com/thi-ng/umbrella/commit/abf29c1))
|
|
43
|
+
|
|
44
|
+
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.1.0) (2021-11-03)
|
|
5
45
|
|
|
6
|
-
|
|
46
|
+
#### 🚀 Features
|
|
7
47
|
|
|
8
|
-
|
|
48
|
+
- add IGrid2D impl, minor updates ([6e51c11](https://github.com/thi-ng/umbrella/commit/6e51c11))
|
|
9
49
|
|
|
50
|
+
### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.0.1) (2021-10-13)
|
|
10
51
|
|
|
52
|
+
#### ♻️ Refactoring
|
|
11
53
|
|
|
54
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
55
|
+
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
56
|
+
- add .js suffix for all relative imports
|
|
12
57
|
|
|
58
|
+
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@2.0.0) (2021-10-12)
|
|
13
59
|
|
|
14
|
-
|
|
60
|
+
#### 🛑 Breaking changes
|
|
15
61
|
|
|
16
|
-
|
|
62
|
+
- 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))
|
|
63
|
+
- BREAKING CHANGE: migrate formatting consts/functions to new pkg
|
|
64
|
+
- see [8c28655d1](https://github.com/thi-ng/umbrella/commit/8c28655d1) for details
|
|
65
|
+
- rename `toString()` => `formatCanvas()`
|
|
66
|
+
- update dependencies
|
|
67
|
+
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
68
|
+
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
69
|
+
- only ESM modules will be published from now on
|
|
70
|
+
- CJS obsolete due to ESM support in recent versions of node:
|
|
71
|
+
- i.e. launch NodeJS via:
|
|
72
|
+
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
73
|
+
- in the node REPL use `await import(...)` instead of `require()`
|
|
74
|
+
- UMD obsolete due to widespread browser support for ESM
|
|
75
|
+
Also:
|
|
76
|
+
- normalize/restructure/reorg all package.json files
|
|
77
|
+
- cleanup all build scripts, remove obsolete
|
|
78
|
+
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
17
79
|
|
|
80
|
+
#### ♻️ Refactoring
|
|
18
81
|
|
|
82
|
+
- minor pkg restructure ([7eb054a](https://github.com/thi-ng/umbrella/commit/7eb054a))
|
|
83
|
+
- update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
|
|
84
|
+
- largely related to recent updates/restructuring of these packages:
|
|
85
|
+
- api
|
|
86
|
+
- defmulti
|
|
87
|
+
- errors
|
|
88
|
+
- logger
|
|
89
|
+
- update imports (transducers) ([a5a1b2d](https://github.com/thi-ng/umbrella/commit/a5a1b2d))
|
|
90
|
+
- update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
|
|
91
|
+
- update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
|
|
92
|
+
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
93
|
+
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
19
94
|
|
|
95
|
+
## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@1.1.0) (2021-08-13)
|
|
20
96
|
|
|
97
|
+
#### 🚀 Features
|
|
21
98
|
|
|
22
|
-
|
|
99
|
+
- add image -> braille functions ([8201ad2](https://github.com/thi-ng/umbrella/commit/8201ad2))
|
|
23
100
|
|
|
101
|
+
### [0.7.14](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.7.14) (2021-08-07)
|
|
24
102
|
|
|
25
|
-
|
|
103
|
+
#### 🩹 Bug fixes
|
|
26
104
|
|
|
27
|
-
|
|
105
|
+
- fix ImageOpts.chars type ([0ae7855](https://github.com/thi-ng/umbrella/commit/0ae7855))
|
|
28
106
|
|
|
107
|
+
### [0.7.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.7.4) (2021-03-30)
|
|
29
108
|
|
|
109
|
+
#### 🩹 Bug fixes
|
|
30
110
|
|
|
111
|
+
- fix FMT_NONE suffix, export format preset types ([e7a9ff7](https://github.com/thi-ng/umbrella/commit/e7a9ff7))
|
|
31
112
|
|
|
113
|
+
## [0.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.7.0) (2021-03-26)
|
|
32
114
|
|
|
33
|
-
|
|
115
|
+
#### 🚀 Features
|
|
34
116
|
|
|
117
|
+
- update table cell wordwrap handling ([f19f925](https://github.com/thi-ng/umbrella/commit/f19f925))
|
|
118
|
+
- add per-cell option to disable word wrapping
|
|
119
|
+
(useful for when table cell contains a chart/image)
|
|
35
120
|
|
|
36
|
-
|
|
121
|
+
## [0.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.6.0) (2021-03-24)
|
|
37
122
|
|
|
38
|
-
|
|
123
|
+
#### 🚀 Features
|
|
39
124
|
|
|
125
|
+
- add imageCanvas/String565() fns ([6e254eb](https://github.com/thi-ng/umbrella/commit/6e254eb))
|
|
126
|
+
- add FMT_ANSI565, update StringFormat ([3bf5b47](https://github.com/thi-ng/umbrella/commit/3bf5b47))
|
|
127
|
+
- add `FMT_ANSI565` (16bit RGB565) string formatter and supporting functions
|
|
128
|
+
- merge ansi.ts & html.ts => format.ts
|
|
129
|
+
- add `StringFormat.zero` to indicate if a zero format ID should NOT
|
|
130
|
+
be skipped during formatting
|
|
131
|
+
- update/fix `toString()` to consider new `zero` setting
|
|
132
|
+
- update `FMT_ANSI256`, `FMT_HTML565`
|
|
40
133
|
|
|
41
|
-
|
|
134
|
+
#### 🩹 Bug fixes
|
|
42
135
|
|
|
43
|
-
|
|
136
|
+
- fix format start/end handling in toString() ([5100222](https://github.com/thi-ng/umbrella/commit/5100222))
|
|
44
137
|
|
|
138
|
+
### [0.5.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.5.1) (2021-03-24)
|
|
45
139
|
|
|
46
|
-
|
|
140
|
+
#### ♻️ Refactoring
|
|
47
141
|
|
|
48
|
-
|
|
142
|
+
- add barChart[HV]Lines() fns ([44959ea](https://github.com/thi-ng/umbrella/commit/44959ea))
|
|
143
|
+
- expose fns which return string[], useful as interim results
|
|
49
144
|
|
|
50
|
-
-
|
|
51
|
-
- rename `toString()` => `formatCanvas()`
|
|
52
|
-
- update dependencies
|
|
53
|
-
* discontinue CommonJS & UMD versions
|
|
145
|
+
## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.5.0) (2021-03-24)
|
|
54
146
|
|
|
55
|
-
|
|
56
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
57
|
-
- i.e. launch NodeJS via:
|
|
58
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
59
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
60
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
147
|
+
#### 🚀 Features
|
|
61
148
|
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
149
|
+
- add FMT_NONE dummy formatter ([0b1f3bd](https://github.com/thi-ng/umbrella/commit/0b1f3bd))
|
|
150
|
+
- add hardwrapped text support ([4e171db](https://github.com/thi-ng/umbrella/commit/4e171db))
|
|
151
|
+
- update table & textBox, textColumn, wordWrappedLines
|
|
152
|
+
- update TableOpts, RawCell
|
|
66
153
|
|
|
154
|
+
#### ♻️ Refactoring
|
|
67
155
|
|
|
156
|
+
- replace word wrapping fns ([ce124de](https://github.com/thi-ng/umbrella/commit/ce124de))
|
|
157
|
+
- remove recently added word wrapping fns again, favor re-using
|
|
158
|
+
the new & improved fns from [@thi.ng/strings](https://github.com/thi-ng/umbrella/tree/main/packages/strings) pkg
|
|
159
|
+
- simplify `textColumn()`
|
|
68
160
|
|
|
161
|
+
### [0.4.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.4.5) (2021-02-20)
|
|
69
162
|
|
|
163
|
+
#### ♻️ Refactoring
|
|
70
164
|
|
|
165
|
+
- use clamp0() ([940d90b](https://github.com/thi-ng/umbrella/commit/940d90b))
|
|
71
166
|
|
|
72
|
-
|
|
167
|
+
### [0.4.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.4.1) (2021-01-10)
|
|
73
168
|
|
|
74
|
-
|
|
169
|
+
#### 🩹 Bug fixes
|
|
75
170
|
|
|
76
|
-
-
|
|
171
|
+
- fix FMT_ANSI256 bg bitshift ([b50a0f9](https://github.com/thi-ng/umbrella/commit/b50a0f9))
|
|
77
172
|
|
|
78
|
-
##
|
|
173
|
+
## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.4.0) (2021-01-05)
|
|
79
174
|
|
|
80
|
-
|
|
175
|
+
#### 🚀 Features
|
|
81
176
|
|
|
82
|
-
-
|
|
177
|
+
- add formatter fns/utils ([fb4470d](https://github.com/thi-ng/umbrella/commit/fb4470d))
|
|
83
178
|
|
|
84
|
-
##
|
|
179
|
+
## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.3.0) (2021-01-02)
|
|
85
180
|
|
|
86
|
-
|
|
181
|
+
#### 🚀 Features
|
|
87
182
|
|
|
88
|
-
-
|
|
183
|
+
- add imageRaw(), update image() ([34037ad](https://github.com/thi-ng/umbrella/commit/34037ad))
|
|
184
|
+
- add imageRaw() for direct use of pixels as format data (e.g. for FMT_HTML_565)
|
|
185
|
+
- update ImageOpts.format to allow functions
|
|
186
|
+
- update Canvas ctor, initial clear value to include format
|
|
187
|
+
- add ANSI256 & HTML_565 formatters ([1f2d35b](https://github.com/thi-ng/umbrella/commit/1f2d35b))
|
|
89
188
|
|
|
90
|
-
|
|
189
|
+
#### ♻️ Refactoring
|
|
91
190
|
|
|
92
|
-
|
|
191
|
+
- extract imgRect() helper ([ea59f57](https://github.com/thi-ng/umbrella/commit/ea59f57))
|
|
93
192
|
|
|
94
|
-
|
|
193
|
+
### [0.2.35](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.2.35) (2020-12-07)
|
|
95
194
|
|
|
96
|
-
|
|
195
|
+
#### ♻️ Refactoring
|
|
97
196
|
|
|
98
|
-
|
|
197
|
+
- update type-only imports ([2ffdedf](https://github.com/thi-ng/umbrella/commit/2ffdedf))
|
|
99
198
|
|
|
100
|
-
|
|
199
|
+
### [0.2.30](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.2.30) (2020-09-13)
|
|
101
200
|
|
|
102
|
-
|
|
201
|
+
#### ♻️ Refactoring
|
|
103
202
|
|
|
104
|
-
-
|
|
105
|
-
- **text-canvas:** add imageCanvas/String565() fns ([6e254eb](https://github.com/thi-ng/umbrella/commit/6e254ebf7acf6520551caf99aef3a0b93d06a519))
|
|
203
|
+
- update deps, imports, use new Fn types ([d311d5d](https://github.com/thi-ng/umbrella/commit/d311d5d))
|
|
106
204
|
|
|
107
|
-
|
|
205
|
+
### [0.2.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.2.3) (2020-04-05)
|
|
108
206
|
|
|
109
|
-
|
|
207
|
+
#### ♻️ Refactoring
|
|
110
208
|
|
|
111
|
-
-
|
|
112
|
-
- **text-canvas:** add hardwrapped text support ([4e171db](https://github.com/thi-ng/umbrella/commit/4e171db1e77269604578495170b05a5e0bfcbc95))
|
|
209
|
+
- switch to non-const enums ([a9a7bbc](https://github.com/thi-ng/umbrella/commit/a9a7bbc))
|
|
113
210
|
|
|
114
|
-
## [0.
|
|
211
|
+
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.2.0) (2020-03-01)
|
|
115
212
|
|
|
116
|
-
|
|
213
|
+
#### 🚀 Features
|
|
117
214
|
|
|
118
|
-
-
|
|
215
|
+
- add tableCanvas() ([13ee370](https://github.com/thi-ng/umbrella/commit/13ee370))
|
|
119
216
|
|
|
120
|
-
|
|
217
|
+
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.1.0) (2020-02-25)
|
|
121
218
|
|
|
122
|
-
|
|
219
|
+
#### 🚀 Features
|
|
123
220
|
|
|
124
|
-
-
|
|
221
|
+
- add scrollV() ([135258e](https://github.com/thi-ng/umbrella/commit/135258e))
|
|
222
|
+
- add inverted image draw opt ([08cb56a](https://github.com/thi-ng/umbrella/commit/08cb56a))
|
|
223
|
+
- add/update/rename consts, toString() ([254f3d7](https://github.com/thi-ng/umbrella/commit/254f3d7))
|
|
224
|
+
- merge toString()/toFormattedString(), remove latter
|
|
225
|
+
- add ImageOpts, update image(), add resize(), extract() ([73f941a](https://github.com/thi-ng/umbrella/commit/73f941a))
|
|
226
|
+
- add opt cell height config support ([d162a1c](https://github.com/thi-ng/umbrella/commit/d162a1c))
|
|
227
|
+
- add canvas() factory fn ([3baeb31](https://github.com/thi-ng/umbrella/commit/3baeb31))
|
|
228
|
+
- add more border consts ([05247a0](https://github.com/thi-ng/umbrella/commit/05247a0))
|
|
229
|
+
- add blit(), getAt(), fix table() arg type ([b5c9eb4](https://github.com/thi-ng/umbrella/commit/b5c9eb4))
|
|
230
|
+
- add bar chart & image fns ([3130fe4](https://github.com/thi-ng/umbrella/commit/3130fe4))
|
|
231
|
+
- add support for table cell format overrides ([8909ce0](https://github.com/thi-ng/umbrella/commit/8909ce0))
|
|
232
|
+
- add table support & options ([8983ad6](https://github.com/thi-ng/umbrella/commit/8983ad6))
|
|
233
|
+
- add derived style fns (horizontalOnly, verticalOnly) ([dc1cb05](https://github.com/thi-ng/umbrella/commit/dc1cb05))
|
|
234
|
+
- add textLines(), wordWrappedLines() ([0f13fe2](https://github.com/thi-ng/umbrella/commit/0f13fe2))
|
|
235
|
+
- add withClip/Format/Style() HOFs ([369909c](https://github.com/thi-ng/umbrella/commit/369909c))
|
|
236
|
+
- add textBox, update format enums & handling ([c922e14](https://github.com/thi-ng/umbrella/commit/c922e14))
|
|
237
|
+
- major update/rewrite, format support ([57a7487](https://github.com/thi-ng/umbrella/commit/57a7487))
|
|
238
|
+
- use Uint32Array as backing buffer
|
|
239
|
+
- add support for arbitrary format IDs (highest 16bit)
|
|
240
|
+
- add configurable string formatting
|
|
241
|
+
- add ANSI & HTML format presets
|
|
242
|
+
- add color & format constants
|
|
243
|
+
- re-org source files
|
|
244
|
+
- add bresenham line & circle fns, force int coords ([0587a66](https://github.com/thi-ng/umbrella/commit/0587a66))
|
|
245
|
+
- update StrokeStyle ([d5bdcc8](https://github.com/thi-ng/umbrella/commit/d5bdcc8))
|
|
246
|
+
- add wrappedText(), update draw fns & clip rect handling ([ba66aee](https://github.com/thi-ng/umbrella/commit/ba66aee))
|
|
247
|
+
- beginClip() forms intersection rect with curr clip rect
|
|
248
|
+
- consider clip rect for all draw fns
|
|
249
|
+
- extract _line() fn for hline/vline()
|
|
250
|
+
- initial import as new pkg ([fd084bf](https://github.com/thi-ng/umbrella/commit/fd084bf))
|
|
125
251
|
|
|
126
|
-
|
|
252
|
+
#### ♻️ Refactoring
|
|
127
253
|
|
|
128
|
-
|
|
254
|
+
- update imports ([4f87d2c](https://github.com/thi-ng/umbrella/commit/4f87d2c))
|
|
255
|
+
- update/add style presets ([8609e8c](https://github.com/thi-ng/umbrella/commit/8609e8c))
|
package/package.json
CHANGED
|
@@ -1,136 +1,142 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"name": "@thi.ng/text-canvas",
|
|
3
|
+
"version": "2.2.3",
|
|
4
|
+
"description": "Text based canvas, drawing, 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://github.com/thi-ng/umbrella/tree/develop/packages/text-canvas#readme",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
12
18
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"author": "Karsten Schmidt <k+npm@thi.ng>",
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "yarn clean && tsc --declaration",
|
|
28
|
+
"clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
|
|
29
|
+
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
30
|
+
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
31
|
+
"doc:readme": "yarn doc:stats && tools:readme",
|
|
32
|
+
"doc:stats": "tools:module-stats",
|
|
33
|
+
"pub": "yarn npm publish --access public",
|
|
34
|
+
"test": "testament test"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@thi.ng/api": "^8.3.2",
|
|
38
|
+
"@thi.ng/arrays": "^2.1.2",
|
|
39
|
+
"@thi.ng/checks": "^3.1.2",
|
|
40
|
+
"@thi.ng/geom-clip-line": "^2.1.3",
|
|
41
|
+
"@thi.ng/math": "^5.1.2",
|
|
42
|
+
"@thi.ng/strings": "^3.2.2",
|
|
43
|
+
"@thi.ng/text-format": "^1.1.2",
|
|
44
|
+
"@thi.ng/transducers": "^8.1.2"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@microsoft/api-extractor": "^7.18.19",
|
|
48
|
+
"@thi.ng/testament": "^0.2.2",
|
|
49
|
+
"rimraf": "^3.0.2",
|
|
50
|
+
"tools": "^0.0.1",
|
|
51
|
+
"tslib": "^2.3.1",
|
|
52
|
+
"typedoc": "^0.22.9",
|
|
53
|
+
"typescript": "^4.5.2"
|
|
54
|
+
},
|
|
55
|
+
"keywords": [
|
|
56
|
+
"4bit",
|
|
57
|
+
"8bit",
|
|
58
|
+
"16bit",
|
|
59
|
+
"24bit",
|
|
60
|
+
"ansi",
|
|
61
|
+
"array",
|
|
62
|
+
"ascii",
|
|
63
|
+
"bars",
|
|
64
|
+
"binary",
|
|
65
|
+
"bitmap",
|
|
66
|
+
"blit",
|
|
67
|
+
"braille",
|
|
68
|
+
"canvas",
|
|
69
|
+
"circle",
|
|
70
|
+
"color",
|
|
71
|
+
"datastructure",
|
|
72
|
+
"drawing",
|
|
73
|
+
"format",
|
|
74
|
+
"image",
|
|
75
|
+
"line",
|
|
76
|
+
"rect",
|
|
77
|
+
"rgb",
|
|
78
|
+
"table",
|
|
79
|
+
"text",
|
|
80
|
+
"theme",
|
|
81
|
+
"typescript",
|
|
82
|
+
"wordwrap"
|
|
83
|
+
],
|
|
84
|
+
"publishConfig": {
|
|
85
|
+
"access": "public"
|
|
86
|
+
},
|
|
87
|
+
"engines": {
|
|
88
|
+
"node": ">=12.7"
|
|
89
|
+
},
|
|
90
|
+
"files": [
|
|
91
|
+
"*.js",
|
|
92
|
+
"*.d.ts"
|
|
93
|
+
],
|
|
94
|
+
"exports": {
|
|
95
|
+
".": {
|
|
96
|
+
"import": "./index.js"
|
|
35
97
|
},
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
"@thi.ng/arrays": "^2.0.8",
|
|
39
|
-
"@thi.ng/checks": "^3.0.7",
|
|
40
|
-
"@thi.ng/geom-clip-line": "^2.0.9",
|
|
41
|
-
"@thi.ng/math": "^5.0.8",
|
|
42
|
-
"@thi.ng/strings": "^3.1.4",
|
|
43
|
-
"@thi.ng/text-format": "^1.0.8",
|
|
44
|
-
"@thi.ng/transducers": "^8.0.8"
|
|
98
|
+
"./api": {
|
|
99
|
+
"import": "./api.js"
|
|
45
100
|
},
|
|
46
|
-
"
|
|
47
|
-
|
|
101
|
+
"./bars": {
|
|
102
|
+
"import": "./bars.js"
|
|
48
103
|
},
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
"8bit",
|
|
52
|
-
"16bit",
|
|
53
|
-
"24bit",
|
|
54
|
-
"ansi",
|
|
55
|
-
"array",
|
|
56
|
-
"ascii",
|
|
57
|
-
"bars",
|
|
58
|
-
"binary",
|
|
59
|
-
"bitmap",
|
|
60
|
-
"blit",
|
|
61
|
-
"braille",
|
|
62
|
-
"canvas",
|
|
63
|
-
"circle",
|
|
64
|
-
"color",
|
|
65
|
-
"datastructure",
|
|
66
|
-
"drawing",
|
|
67
|
-
"format",
|
|
68
|
-
"image",
|
|
69
|
-
"line",
|
|
70
|
-
"rect",
|
|
71
|
-
"rgb",
|
|
72
|
-
"table",
|
|
73
|
-
"text",
|
|
74
|
-
"theme",
|
|
75
|
-
"typescript",
|
|
76
|
-
"wordwrap"
|
|
77
|
-
],
|
|
78
|
-
"publishConfig": {
|
|
79
|
-
"access": "public"
|
|
104
|
+
"./canvas": {
|
|
105
|
+
"import": "./canvas.js"
|
|
80
106
|
},
|
|
81
|
-
"
|
|
82
|
-
|
|
107
|
+
"./circle": {
|
|
108
|
+
"import": "./circle.js"
|
|
83
109
|
},
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"./api": {
|
|
93
|
-
"import": "./api.js"
|
|
94
|
-
},
|
|
95
|
-
"./bars": {
|
|
96
|
-
"import": "./bars.js"
|
|
97
|
-
},
|
|
98
|
-
"./canvas": {
|
|
99
|
-
"import": "./canvas.js"
|
|
100
|
-
},
|
|
101
|
-
"./circle": {
|
|
102
|
-
"import": "./circle.js"
|
|
103
|
-
},
|
|
104
|
-
"./format": {
|
|
105
|
-
"import": "./format.js"
|
|
106
|
-
},
|
|
107
|
-
"./hvline": {
|
|
108
|
-
"import": "./hvline.js"
|
|
109
|
-
},
|
|
110
|
-
"./image": {
|
|
111
|
-
"import": "./image.js"
|
|
112
|
-
},
|
|
113
|
-
"./line": {
|
|
114
|
-
"import": "./line.js"
|
|
115
|
-
},
|
|
116
|
-
"./rect": {
|
|
117
|
-
"import": "./rect.js"
|
|
118
|
-
},
|
|
119
|
-
"./style": {
|
|
120
|
-
"import": "./style.js"
|
|
121
|
-
},
|
|
122
|
-
"./table": {
|
|
123
|
-
"import": "./table.js"
|
|
124
|
-
},
|
|
125
|
-
"./text": {
|
|
126
|
-
"import": "./text.js"
|
|
127
|
-
}
|
|
110
|
+
"./format": {
|
|
111
|
+
"import": "./format.js"
|
|
112
|
+
},
|
|
113
|
+
"./hvline": {
|
|
114
|
+
"import": "./hvline.js"
|
|
115
|
+
},
|
|
116
|
+
"./image": {
|
|
117
|
+
"import": "./image.js"
|
|
128
118
|
},
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
"text-format"
|
|
132
|
-
],
|
|
133
|
-
"year": 2020
|
|
119
|
+
"./line": {
|
|
120
|
+
"import": "./line.js"
|
|
134
121
|
},
|
|
135
|
-
"
|
|
136
|
-
|
|
122
|
+
"./rect": {
|
|
123
|
+
"import": "./rect.js"
|
|
124
|
+
},
|
|
125
|
+
"./style": {
|
|
126
|
+
"import": "./style.js"
|
|
127
|
+
},
|
|
128
|
+
"./table": {
|
|
129
|
+
"import": "./table.js"
|
|
130
|
+
},
|
|
131
|
+
"./text": {
|
|
132
|
+
"import": "./text.js"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"thi.ng": {
|
|
136
|
+
"related": [
|
|
137
|
+
"text-format"
|
|
138
|
+
],
|
|
139
|
+
"year": 2020
|
|
140
|
+
},
|
|
141
|
+
"gitHead": "d777b58d7bec4496d38166cdabda4ffb78b0dc47\n"
|
|
142
|
+
}
|