@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.
Files changed (2) hide show
  1. package/CHANGELOG.md +186 -59
  2. 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
- ## [2.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@2.1.1...@thi.ng/text-canvas@2.1.2) (2021-11-10)
46
+ #### 🚀 Features
7
47
 
8
- **Note:** Version bump only for package @thi.ng/text-canvas
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
- ## [2.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@2.1.0...@thi.ng/text-canvas@2.1.1) (2021-11-04)
60
+ #### 🛑 Breaking changes
15
61
 
16
- **Note:** Version bump only for package @thi.ng/text-canvas
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
- # [2.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@2.0.6...@thi.ng/text-canvas@2.1.0) (2021-11-03)
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
- ### Features
103
+ #### 🩹 Bug fixes
26
104
 
27
- * **text-canvas:** add IGrid2D impl, minor updates ([6e51c11](https://github.com/thi-ng/umbrella/commit/6e51c11bba65829ccedd6a6351565d4c8541f7dd))
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
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@1.1.4...@thi.ng/text-canvas@2.0.0) (2021-10-12)
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
- ### Build System
121
+ ## [0.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.6.0) (2021-03-24)
37
122
 
38
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
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
- ### Code Refactoring
134
+ #### 🩹 Bug fixes
42
135
 
43
- * **text-canvas:** update to use thi.ng/text-format ([aa67a5a](https://github.com/thi-ng/umbrella/commit/aa67a5a27197b4c751bb5959cdcd2a238af2a825))
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
- ### BREAKING CHANGES
140
+ #### ♻️ Refactoring
47
141
 
48
- * **text-canvas:** migrate formatting consts/functions to new pkg
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
- - see 8c28655d1 for details
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
- - only ESM modules will be published from now on
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
- Also:
63
- - normalize/restructure/reorg all package.json files
64
- - cleanup all build scripts, remove obsolete
65
- - switch from mocha to @thi.ng/testament for all tests
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
- # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@1.0.3...@thi.ng/text-canvas@1.1.0) (2021-08-13)
167
+ ### [0.4.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.4.1) (2021-01-10)
73
168
 
74
- ### Features
169
+ #### 🩹 Bug fixes
75
170
 
76
- - **text-canvas:** add image -> braille functions ([8201ad2](https://github.com/thi-ng/umbrella/commit/8201ad2c83f32522fcb6fbf0d3d46925491aacc8))
171
+ - fix FMT_ANSI256 bg bitshift ([b50a0f9](https://github.com/thi-ng/umbrella/commit/b50a0f9))
77
172
 
78
- ## [0.7.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.7.13...@thi.ng/text-canvas@0.7.14) (2021-08-07)
173
+ ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.4.0) (2021-01-05)
79
174
 
80
- ### Bug Fixes
175
+ #### 🚀 Features
81
176
 
82
- - **text-canvas:** fix ImageOpts.chars type ([0ae7855](https://github.com/thi-ng/umbrella/commit/0ae78552be39f543e98f8716dc239c3ce9c50b7b))
177
+ - add formatter fns/utils ([fb4470d](https://github.com/thi-ng/umbrella/commit/fb4470d))
83
178
 
84
- ## [0.7.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.7.3...@thi.ng/text-canvas@0.7.4) (2021-03-30)
179
+ ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.3.0) (2021-01-02)
85
180
 
86
- ### Bug Fixes
181
+ #### 🚀 Features
87
182
 
88
- - **text-canvas:** fix FMT_NONE suffix, export format preset types ([e7a9ff7](https://github.com/thi-ng/umbrella/commit/e7a9ff7391b2d30ead4b40fced9b76a089be632e))
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
- # [0.7.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.6.0...@thi.ng/text-canvas@0.7.0) (2021-03-26)
189
+ #### ♻️ Refactoring
91
190
 
92
- ### Features
191
+ - extract imgRect() helper ([ea59f57](https://github.com/thi-ng/umbrella/commit/ea59f57))
93
192
 
94
- - **text-canvas:** update table cell wordwrap handling ([f19f925](https://github.com/thi-ng/umbrella/commit/f19f9251443bc609a28fe5776399c162bc75b9b8))
193
+ ### [0.2.35](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.2.35) (2020-12-07)
95
194
 
96
- # [0.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.5.1...@thi.ng/text-canvas@0.6.0) (2021-03-24)
195
+ #### ♻️ Refactoring
97
196
 
98
- ### Bug Fixes
197
+ - update type-only imports ([2ffdedf](https://github.com/thi-ng/umbrella/commit/2ffdedf))
99
198
 
100
- - **text-canvas:** fix format start/end handling in toString() ([5100222](https://github.com/thi-ng/umbrella/commit/5100222a874ce57ef1cd6892bf4e51faebf62dd1))
199
+ ### [0.2.30](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.2.30) (2020-09-13)
101
200
 
102
- ### Features
201
+ #### ♻️ Refactoring
103
202
 
104
- - **text-canvas:** add FMT_ANSI565, update StringFormat ([3bf5b47](https://github.com/thi-ng/umbrella/commit/3bf5b475cd75c9046804c81fb80b5f9e6d056fd0))
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
- # [0.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.4.12...@thi.ng/text-canvas@0.5.0) (2021-03-24)
205
+ ### [0.2.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.2.3) (2020-04-05)
108
206
 
109
- ### Features
207
+ #### ♻️ Refactoring
110
208
 
111
- - **text-canvas:** add FMT_NONE dummy formatter ([0b1f3bd](https://github.com/thi-ng/umbrella/commit/0b1f3bd88405aa89fdf344513bb43f7ac8a95e84))
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.4.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.4.0...@thi.ng/text-canvas@0.4.1) (2021-01-10)
211
+ ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.2.0) (2020-03-01)
115
212
 
116
- ### Bug Fixes
213
+ #### 🚀 Features
117
214
 
118
- - **text-canvas:** fix FMT_ANSI256 bg bitshift ([b50a0f9](https://github.com/thi-ng/umbrella/commit/b50a0f9c0464774f3b62888d718da89381b3014c))
215
+ - add tableCanvas() ([13ee370](https://github.com/thi-ng/umbrella/commit/13ee370))
119
216
 
120
- # [0.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.3.0...@thi.ng/text-canvas@0.4.0) (2021-01-05)
217
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/text-canvas@0.1.0) (2020-02-25)
121
218
 
122
- ### Features
219
+ #### 🚀 Features
123
220
 
124
- - **text-canvas:** add formatter fns/utils ([fb4470d](https://github.com/thi-ng/umbrella/commit/fb4470d5a708e3d1f700bab5274463f754489940))
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
- # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.2.36...@thi.ng/text-canvas@0.3.0) (2021-01-02)
252
+ #### ♻️ Refactoring
127
253
 
128
- ### Features
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
- "name": "@thi.ng/text-canvas",
3
- "version": "2.1.2",
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"
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
- "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"
18
- },
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 && node_modules/.bin/api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
- "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
- "pub": "yarn build && yarn publish --access public",
34
- "test": "testament test"
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
- "dependencies": {
37
- "@thi.ng/api": "^8.2.0",
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
- "devDependencies": {
47
- "@thi.ng/testament": "^0.1.6"
101
+ "./bars": {
102
+ "import": "./bars.js"
48
103
  },
49
- "keywords": [
50
- "4bit",
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
- "engines": {
82
- "node": ">=12.7"
107
+ "./circle": {
108
+ "import": "./circle.js"
83
109
  },
84
- "files": [
85
- "*.js",
86
- "*.d.ts"
87
- ],
88
- "exports": {
89
- ".": {
90
- "import": "./index.js"
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
- "thi.ng": {
130
- "related": [
131
- "text-format"
132
- ],
133
- "year": 2020
119
+ "./line": {
120
+ "import": "./line.js"
134
121
  },
135
- "gitHead": "5fe52419af63984ebe53032201b2a6174b9cb159"
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
+ }