@twin.org/image 0.0.1-next.9 → 0.0.2-next.10

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.
@@ -219,7 +219,6 @@ class Color {
219
219
  // SPDX-License-Identifier: Apache-2.0.
220
220
  /* eslint-disable no-bitwise */
221
221
  /* eslint-disable no-mixed-operators */
222
- /* eslint-disable array-bracket-newline */
223
222
  /**
224
223
  * JPEG Encoder.
225
224
  * Based on JPEG encoder ported to JavaScript and optimized by Andreas Ritter.
@@ -961,7 +960,6 @@ class JpegEncoder {
961
960
  /* eslint-disable no-bitwise */
962
961
  /* eslint-disable no-mixed-operators */
963
962
  /* eslint-disable no-continue */
964
- /* eslint-disable unicorn/prefer-math-trunc */
965
963
  /**
966
964
  * PNG Encoder.
967
965
  * Based on https://github.com/photopea/UPNG.js.
@@ -217,7 +217,6 @@ class Color {
217
217
  // SPDX-License-Identifier: Apache-2.0.
218
218
  /* eslint-disable no-bitwise */
219
219
  /* eslint-disable no-mixed-operators */
220
- /* eslint-disable array-bracket-newline */
221
220
  /**
222
221
  * JPEG Encoder.
223
222
  * Based on JPEG encoder ported to JavaScript and optimized by Andreas Ritter.
@@ -959,7 +958,6 @@ class JpegEncoder {
959
958
  /* eslint-disable no-bitwise */
960
959
  /* eslint-disable no-mixed-operators */
961
960
  /* eslint-disable no-continue */
962
- /* eslint-disable unicorn/prefer-math-trunc */
963
961
  /**
964
962
  * PNG Encoder.
965
963
  * Based on https://github.com/photopea/UPNG.js.
package/docs/changelog.md CHANGED
@@ -1,5 +1,524 @@
1
1
  # @twin.org/image - Changelog
2
2
 
3
- ## 0.0.1-next.9
3
+ ## [0.0.2-next.10](https://github.com/twinfoundation/framework/compare/image-v0.0.2-next.9...image-v0.0.2-next.10) (2025-09-11)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **image:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/core bumped from 0.0.2-next.9 to 0.0.2-next.10
16
+ * @twin.org/nameof bumped from 0.0.2-next.9 to 0.0.2-next.10
17
+ * devDependencies
18
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.9 to 0.0.2-next.10
19
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.9 to 0.0.2-next.10
20
+
21
+ ## [0.0.2-next.9](https://github.com/twinfoundation/framework/compare/image-v0.0.2-next.8...image-v0.0.2-next.9) (2025-09-08)
22
+
23
+
24
+ ### Miscellaneous Chores
25
+
26
+ * **image:** Synchronize repo versions
27
+
28
+
29
+ ### Dependencies
30
+
31
+ * The following workspace dependencies were updated
32
+ * dependencies
33
+ * @twin.org/core bumped from 0.0.2-next.8 to 0.0.2-next.9
34
+ * @twin.org/nameof bumped from 0.0.2-next.8 to 0.0.2-next.9
35
+ * devDependencies
36
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.8 to 0.0.2-next.9
37
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.8 to 0.0.2-next.9
38
+
39
+ ## [0.0.2-next.8](https://github.com/twinfoundation/framework/compare/image-v0.0.2-next.7...image-v0.0.2-next.8) (2025-09-05)
40
+
41
+
42
+ ### Miscellaneous Chores
43
+
44
+ * **image:** Synchronize repo versions
45
+
46
+
47
+ ### Dependencies
48
+
49
+ * The following workspace dependencies were updated
50
+ * dependencies
51
+ * @twin.org/core bumped from 0.0.2-next.7 to 0.0.2-next.8
52
+ * @twin.org/nameof bumped from 0.0.2-next.7 to 0.0.2-next.8
53
+ * devDependencies
54
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.7 to 0.0.2-next.8
55
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.7 to 0.0.2-next.8
56
+
57
+ ## [0.0.2-next.7](https://github.com/twinfoundation/framework/compare/image-v0.0.2-next.6...image-v0.0.2-next.7) (2025-08-29)
58
+
59
+
60
+ ### Features
61
+
62
+ * eslint migration to flat config ([74427d7](https://github.com/twinfoundation/framework/commit/74427d78d342167f7850e49ab87269326355befe))
63
+
64
+
65
+ ### Dependencies
66
+
67
+ * The following workspace dependencies were updated
68
+ * dependencies
69
+ * @twin.org/core bumped from 0.0.2-next.6 to 0.0.2-next.7
70
+ * @twin.org/nameof bumped from 0.0.2-next.6 to 0.0.2-next.7
71
+ * devDependencies
72
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.6 to 0.0.2-next.7
73
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.6 to 0.0.2-next.7
74
+
75
+ ## [0.0.2-next.6](https://github.com/twinfoundation/framework/compare/image-v0.0.2-next.5...image-v0.0.2-next.6) (2025-08-27)
76
+
77
+
78
+ ### Miscellaneous Chores
79
+
80
+ * **image:** Synchronize repo versions
81
+
82
+
83
+ ### Dependencies
84
+
85
+ * The following workspace dependencies were updated
86
+ * dependencies
87
+ * @twin.org/core bumped from 0.0.2-next.5 to 0.0.2-next.6
88
+ * @twin.org/nameof bumped from 0.0.2-next.5 to 0.0.2-next.6
89
+ * devDependencies
90
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.5 to 0.0.2-next.6
91
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.5 to 0.0.2-next.6
92
+
93
+ ## [0.0.2-next.5](https://github.com/twinfoundation/framework/compare/image-v0.0.2-next.4...image-v0.0.2-next.5) (2025-08-19)
94
+
95
+
96
+ ### Features
97
+
98
+ * use cause instead of inner for errors ([1f4acc4](https://github.com/twinfoundation/framework/commit/1f4acc4d7a6b71a134d9547da9bf40de1e1e49da))
99
+
100
+
101
+ ### Dependencies
102
+
103
+ * The following workspace dependencies were updated
104
+ * dependencies
105
+ * @twin.org/core bumped from 0.0.2-next.4 to 0.0.2-next.5
106
+ * @twin.org/nameof bumped from 0.0.2-next.4 to 0.0.2-next.5
107
+ * devDependencies
108
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.4 to 0.0.2-next.5
109
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.4 to 0.0.2-next.5
110
+
111
+ ## [0.0.2-next.4](https://github.com/twinfoundation/framework/compare/image-v0.0.2-next.3...image-v0.0.2-next.4) (2025-08-15)
112
+
113
+
114
+ ### Miscellaneous Chores
115
+
116
+ * **image:** Synchronize repo versions
117
+
118
+
119
+ ### Dependencies
120
+
121
+ * The following workspace dependencies were updated
122
+ * dependencies
123
+ * @twin.org/core bumped from 0.0.2-next.3 to 0.0.2-next.4
124
+ * @twin.org/nameof bumped from 0.0.2-next.3 to 0.0.2-next.4
125
+ * devDependencies
126
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.3 to 0.0.2-next.4
127
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.3 to 0.0.2-next.4
128
+
129
+ ## [0.0.2-next.3](https://github.com/twinfoundation/framework/compare/image-v0.0.2-next.2...image-v0.0.2-next.3) (2025-08-06)
130
+
131
+
132
+ ### Features
133
+
134
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
135
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
136
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
137
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
138
+
139
+
140
+ ### Dependencies
141
+
142
+ * The following workspace dependencies were updated
143
+ * dependencies
144
+ * @twin.org/core bumped from 0.0.2-next.2 to 0.0.2-next.3
145
+ * @twin.org/nameof bumped from 0.0.2-next.2 to 0.0.2-next.3
146
+ * devDependencies
147
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.2 to 0.0.2-next.3
148
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.2 to 0.0.2-next.3
149
+
150
+ ## [0.0.2-next.2](https://github.com/twinfoundation/framework/compare/image-v0.0.2-next.1...image-v0.0.2-next.2) (2025-08-06)
151
+
152
+
153
+ ### Features
154
+
155
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
156
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
157
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
158
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
159
+
160
+
161
+ ### Dependencies
162
+
163
+ * The following workspace dependencies were updated
164
+ * dependencies
165
+ * @twin.org/core bumped from 0.0.2-next.1 to 0.0.2-next.2
166
+ * @twin.org/nameof bumped from 0.0.2-next.1 to 0.0.2-next.2
167
+ * devDependencies
168
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.1 to 0.0.2-next.2
169
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.1 to 0.0.2-next.2
170
+
171
+ ## [0.0.2-next.1](https://github.com/twinfoundation/framework/compare/image-v0.0.2-next.0...image-v0.0.2-next.1) (2025-08-06)
172
+
173
+
174
+ ### Features
175
+
176
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
177
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
178
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
179
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
180
+
181
+
182
+ ### Dependencies
183
+
184
+ * The following workspace dependencies were updated
185
+ * dependencies
186
+ * @twin.org/core bumped from 0.0.2-next.0 to 0.0.2-next.1
187
+ * @twin.org/nameof bumped from 0.0.2-next.0 to 0.0.2-next.1
188
+ * devDependencies
189
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.0 to 0.0.2-next.1
190
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.0 to 0.0.2-next.1
191
+
192
+ ## 0.0.1 (2025-07-03)
193
+
194
+
195
+ ### Features
196
+
197
+ * release to production ([829d53d](https://github.com/twinfoundation/framework/commit/829d53d3953b1e1b40b0243c04cfdfd3842aac7b))
198
+ * release to production ([5cf3a76](https://github.com/twinfoundation/framework/commit/5cf3a76a09eff2e6414d0cba846c7c37400a11d6))
199
+
200
+
201
+ ### Dependencies
202
+
203
+ * The following workspace dependencies were updated
204
+ * dependencies
205
+ * @twin.org/core bumped from ^0.0.0 to ^0.0.1
206
+ * @twin.org/nameof bumped from ^0.0.0 to ^0.0.1
207
+ * devDependencies
208
+ * @twin.org/nameof-transformer bumped from ^0.0.0 to ^0.0.1
209
+ * @twin.org/nameof-vitest-plugin bumped from ^0.0.0 to ^0.0.1
210
+
211
+ ## [0.0.1-next.70](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.69...image-v0.0.1-next.70) (2025-07-02)
212
+
213
+
214
+ ### Features
215
+
216
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
217
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
218
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
219
+
220
+
221
+ ### Dependencies
222
+
223
+ * The following workspace dependencies were updated
224
+ * dependencies
225
+ * @twin.org/core bumped from 0.0.1-next.69 to 0.0.1-next.70
226
+ * @twin.org/nameof bumped from 0.0.1-next.69 to 0.0.1-next.70
227
+ * devDependencies
228
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.69 to 0.0.1-next.70
229
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.69 to 0.0.1-next.70
230
+
231
+ ## [0.0.1-next.69](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.68...image-v0.0.1-next.69) (2025-07-02)
232
+
233
+
234
+ ### Features
235
+
236
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
237
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
238
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
239
+
240
+
241
+ ### Dependencies
242
+
243
+ * The following workspace dependencies were updated
244
+ * dependencies
245
+ * @twin.org/core bumped from 0.0.1-next.68 to 0.0.1-next.69
246
+ * @twin.org/nameof bumped from 0.0.1-next.68 to 0.0.1-next.69
247
+ * devDependencies
248
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.68 to 0.0.1-next.69
249
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.68 to 0.0.1-next.69
250
+
251
+ ## [0.0.1-next.68](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.67...image-v0.0.1-next.68) (2025-07-02)
252
+
253
+
254
+ ### Features
255
+
256
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
257
+
258
+
259
+ ### Dependencies
260
+
261
+ * The following workspace dependencies were updated
262
+ * dependencies
263
+ * @twin.org/core bumped from 0.0.1-next.67 to 0.0.1-next.68
264
+ * @twin.org/nameof bumped from 0.0.1-next.67 to 0.0.1-next.68
265
+ * devDependencies
266
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.67 to 0.0.1-next.68
267
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.67 to 0.0.1-next.68
268
+
269
+ ## [0.0.1-next.67](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.66...image-v0.0.1-next.67) (2025-06-26)
270
+
271
+
272
+ ### Miscellaneous Chores
273
+
274
+ * **image:** Synchronize repo versions
275
+
276
+
277
+ ### Dependencies
278
+
279
+ * The following workspace dependencies were updated
280
+ * dependencies
281
+ * @twin.org/core bumped from 0.0.1-next.66 to 0.0.1-next.67
282
+
283
+ ## [0.0.1-next.66](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.65...image-v0.0.1-next.66) (2025-06-26)
284
+
285
+
286
+ ### Miscellaneous Chores
287
+
288
+ * **image:** Synchronize repo versions
289
+
290
+
291
+ ### Dependencies
292
+
293
+ * The following workspace dependencies were updated
294
+ * dependencies
295
+ * @twin.org/core bumped from 0.0.1-next.65 to 0.0.1-next.66
296
+
297
+ ## [0.0.1-next.65](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.64...image-v0.0.1-next.65) (2025-06-19)
298
+
299
+
300
+ ### Miscellaneous Chores
301
+
302
+ * **image:** Synchronize repo versions
303
+
304
+
305
+ ### Dependencies
306
+
307
+ * The following workspace dependencies were updated
308
+ * dependencies
309
+ * @twin.org/core bumped from 0.0.1-next.64 to 0.0.1-next.65
310
+
311
+ ## [0.0.1-next.64](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.63...image-v0.0.1-next.64) (2025-06-19)
312
+
313
+
314
+ ### Miscellaneous Chores
315
+
316
+ * **image:** Synchronize repo versions
317
+
318
+
319
+ ### Dependencies
320
+
321
+ * The following workspace dependencies were updated
322
+ * dependencies
323
+ * @twin.org/core bumped from 0.0.1-next.63 to 0.0.1-next.64
324
+
325
+ ## [0.0.1-next.63](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.62...image-v0.0.1-next.63) (2025-06-18)
326
+
327
+
328
+ ### Miscellaneous Chores
329
+
330
+ * **image:** Synchronize repo versions
331
+
332
+
333
+ ### Dependencies
334
+
335
+ * The following workspace dependencies were updated
336
+ * dependencies
337
+ * @twin.org/core bumped from 0.0.1-next.62 to 0.0.1-next.63
338
+
339
+ ## [0.0.1-next.62](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.61...image-v0.0.1-next.62) (2025-06-17)
340
+
341
+
342
+ ### Features
343
+
344
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
345
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
346
+
347
+
348
+ ### Dependencies
349
+
350
+ * The following workspace dependencies were updated
351
+ * dependencies
352
+ * @twin.org/core bumped from 0.0.1-next.61 to 0.0.1-next.62
353
+
354
+ ## [0.0.1-next.61](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.60...image-v0.0.1-next.61) (2025-06-17)
355
+
356
+
357
+ ### Miscellaneous Chores
358
+
359
+ * **image:** Synchronize repo versions
360
+
361
+
362
+ ### Dependencies
363
+
364
+ * The following workspace dependencies were updated
365
+ * dependencies
366
+ * @twin.org/core bumped from 0.0.1-next.60 to 0.0.1-next.61
367
+
368
+ ## [0.0.1-next.60](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.59...image-v0.0.1-next.60) (2025-06-17)
369
+
370
+
371
+ ### Miscellaneous Chores
372
+
373
+ * **image:** Synchronize repo versions
374
+
375
+
376
+ ### Dependencies
377
+
378
+ * The following workspace dependencies were updated
379
+ * dependencies
380
+ * @twin.org/core bumped from 0.0.1-next.59 to 0.0.1-next.60
381
+
382
+ ## [0.0.1-next.59](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.58...image-v0.0.1-next.59) (2025-06-17)
383
+
384
+
385
+ ### Miscellaneous Chores
386
+
387
+ * **image:** Synchronize repo versions
388
+
389
+
390
+ ### Dependencies
391
+
392
+ * The following workspace dependencies were updated
393
+ * dependencies
394
+ * @twin.org/core bumped from 0.0.1-next.58 to 0.0.1-next.59
395
+
396
+ ## [0.0.1-next.58](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.57...image-v0.0.1-next.58) (2025-06-13)
397
+
398
+
399
+ ### Miscellaneous Chores
400
+
401
+ * **image:** Synchronize repo versions
402
+
403
+
404
+ ### Dependencies
405
+
406
+ * The following workspace dependencies were updated
407
+ * dependencies
408
+ * @twin.org/core bumped from 0.0.1-next.57 to 0.0.1-next.58
409
+
410
+ ## [0.0.1-next.57](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.56...image-v0.0.1-next.57) (2025-06-10)
411
+
412
+
413
+ ### Features
414
+
415
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
416
+
417
+
418
+ ### Dependencies
419
+
420
+ * The following workspace dependencies were updated
421
+ * dependencies
422
+ * @twin.org/core bumped from 0.0.1-next.56 to 0.0.1-next.57
423
+
424
+ ## [0.0.1-next.56](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.55...image-v0.0.1-next.56) (2025-05-08)
425
+
426
+
427
+ ### Miscellaneous Chores
428
+
429
+ * **image:** Synchronize repo versions
430
+
431
+
432
+ ### Dependencies
433
+
434
+ * The following workspace dependencies were updated
435
+ * dependencies
436
+ * @twin.org/core bumped from 0.0.1-next.55 to 0.0.1-next.56
437
+
438
+ ## [0.0.1-next.55](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.54...image-v0.0.1-next.55) (2025-05-07)
439
+
440
+
441
+ ### Miscellaneous Chores
442
+
443
+ * **image:** Synchronize repo versions
444
+
445
+
446
+ ### Dependencies
447
+
448
+ * The following workspace dependencies were updated
449
+ * dependencies
450
+ * @twin.org/core bumped from 0.0.1-next.54 to 0.0.1-next.55
451
+
452
+ ## [0.0.1-next.54](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.53...image-v0.0.1-next.54) (2025-05-06)
453
+
454
+
455
+ ### Miscellaneous Chores
456
+
457
+ * **image:** Synchronize repo versions
458
+
459
+
460
+ ### Dependencies
461
+
462
+ * The following workspace dependencies were updated
463
+ * dependencies
464
+ * @twin.org/core bumped from 0.0.1-next.53 to 0.0.1-next.54
465
+
466
+ ## [0.0.1-next.53](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.52...image-v0.0.1-next.53) (2025-05-01)
467
+
468
+
469
+ ### Miscellaneous Chores
470
+
471
+ * **image:** Synchronize repo versions
472
+
473
+
474
+ ### Dependencies
475
+
476
+ * The following workspace dependencies were updated
477
+ * dependencies
478
+ * @twin.org/core bumped from 0.0.1-next.52 to 0.0.1-next.53
479
+
480
+ ## [0.0.1-next.52](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.51...image-v0.0.1-next.52) (2025-04-17)
481
+
482
+
483
+ ### Features
484
+
485
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
486
+
487
+
488
+ ### Dependencies
489
+
490
+ * The following workspace dependencies were updated
491
+ * dependencies
492
+ * @twin.org/core bumped from 0.0.1-next.51 to 0.0.1-next.52
493
+
494
+ ## [0.0.1-next.51](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.50...image-v0.0.1-next.51) (2025-03-27)
495
+
496
+
497
+ ### Miscellaneous Chores
498
+
499
+ * **image:** Synchronize repo versions
500
+
501
+
502
+ ### Dependencies
503
+
504
+ * The following workspace dependencies were updated
505
+ * dependencies
506
+ * @twin.org/core bumped from 0.0.1-next.50 to 0.0.1-next.51
507
+
508
+ ## [0.0.1-next.50](https://github.com/twinfoundation/framework/compare/image-v0.0.1-next.49...image-v0.0.1-next.50) (2025-03-26)
509
+
510
+
511
+ ### Miscellaneous Chores
512
+
513
+ * **image:** Synchronize repo versions
514
+
515
+
516
+ ### Dependencies
517
+
518
+ * The following workspace dependencies were updated
519
+ * dependencies
520
+ * @twin.org/core bumped from 0.0.1-next.49 to 0.0.1-next.50
521
+
522
+ ## 0.0.1-next.49
4
523
 
5
524
  - Initial Release
@@ -4,51 +4,61 @@ Class to represent a color.
4
4
 
5
5
  ## Constructors
6
6
 
7
- ### new Color()
7
+ ### Constructor
8
8
 
9
- > **new Color**(`alpha`, `red`, `green`, `blue`): [`Color`](Color.md)
9
+ > **new Color**(`alpha`, `red`, `green`, `blue`): `Color`
10
10
 
11
11
  Create a new instance of color.
12
12
 
13
13
  #### Parameters
14
14
 
15
- **alpha**: `number`
15
+ ##### alpha
16
+
17
+ `number`
16
18
 
17
19
  The alpha element of the color.
18
20
 
19
- **red**: `number`
21
+ ##### red
22
+
23
+ `number`
20
24
 
21
25
  The red element of the color.
22
26
 
23
- **green**: `number`
27
+ ##### green
28
+
29
+ `number`
24
30
 
25
31
  The green element of the color.
26
32
 
27
- **blue**: `number`
33
+ ##### blue
34
+
35
+ `number`
28
36
 
29
37
  The blue element of the color.
30
38
 
31
39
  #### Returns
32
40
 
33
- [`Color`](Color.md)
41
+ `Color`
34
42
 
35
43
  ## Methods
36
44
 
37
45
  ### fromHex()
38
46
 
39
- > `static` **fromHex**(`hex`): [`Color`](Color.md)
47
+ > `static` **fromHex**(`hex`): `Color`
40
48
 
41
49
  Construct a color from a hex string.
42
50
 
43
51
  #### Parameters
44
52
 
45
- **hex**: `string`
53
+ ##### hex
54
+
55
+ `string`
46
56
 
47
57
  The hex string to parse.
48
58
 
49
59
  #### Returns
50
60
 
51
- [`Color`](Color.md)
61
+ `Color`
52
62
 
53
63
  The color.
54
64
 
@@ -60,19 +70,21 @@ Error if the format is incorrect.
60
70
 
61
71
  ### coerce()
62
72
 
63
- > `static` **coerce**(`value`): `undefined` \| [`Color`](Color.md)
73
+ > `static` **coerce**(`value`): `undefined` \| `Color`
64
74
 
65
75
  Coerce an unknown type to a color.
66
76
 
67
77
  #### Parameters
68
78
 
69
- **value**: `unknown`
79
+ ##### value
80
+
81
+ `unknown`
70
82
 
71
83
  The value to try and convert.
72
84
 
73
85
  #### Returns
74
86
 
75
- `undefined` \| [`Color`](Color.md)
87
+ `undefined` \| `Color`
76
88
 
77
89
  The color if one can be created.
78
90
 
@@ -5,15 +5,15 @@ Based on JPEG encoder ported to JavaScript and optimized by Andreas Ritter.
5
5
 
6
6
  ## Constructors
7
7
 
8
- ### new JpegEncoder()
8
+ ### Constructor
9
9
 
10
- > **new JpegEncoder**(): [`JpegEncoder`](JpegEncoder.md)
10
+ > **new JpegEncoder**(): `JpegEncoder`
11
11
 
12
12
  Create a new instance of JpegEncoder.
13
13
 
14
14
  #### Returns
15
15
 
16
- [`JpegEncoder`](JpegEncoder.md)
16
+ `JpegEncoder`
17
17
 
18
18
  ## Methods
19
19
 
@@ -25,19 +25,27 @@ Encode the image with the given quality.
25
25
 
26
26
  #### Parameters
27
27
 
28
- **width**: `number`
28
+ ##### width
29
+
30
+ `number`
29
31
 
30
32
  The width of the image to encode.
31
33
 
32
- **height**: `number`
34
+ ##### height
35
+
36
+ `number`
33
37
 
34
38
  The height of the image to encode.
35
39
 
36
- **imageData**: `Uint8Array`
40
+ ##### imageData
41
+
42
+ `Uint8Array`
37
43
 
38
44
  The data for the image.
39
45
 
40
- **quality**: `number`
46
+ ##### quality
47
+
48
+ `number`
41
49
 
42
50
  The quality to encode the image at.
43
51
 
@@ -5,38 +5,44 @@ Based on https://github.com/photopea/UPNG.js.
5
5
 
6
6
  ## Constructors
7
7
 
8
- ### new PngEncoder()
8
+ ### Constructor
9
9
 
10
- > **new PngEncoder**(): [`PngEncoder`](PngEncoder.md)
10
+ > **new PngEncoder**(): `PngEncoder`
11
11
 
12
12
  #### Returns
13
13
 
14
- [`PngEncoder`](PngEncoder.md)
14
+ `PngEncoder`
15
15
 
16
16
  ## Methods
17
17
 
18
18
  ### encode()
19
19
 
20
- > **encode**(`buffers`, `w`, `h`): `Promise`\<`Uint8Array`\>
20
+ > **encode**(`buffers`, `w`, `h`): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
21
21
 
22
22
  Encode the image frames to png.
23
23
 
24
24
  #### Parameters
25
25
 
26
- **buffers**: `ArrayBuffer`[]
26
+ ##### buffers
27
+
28
+ `ArrayBuffer`[]
27
29
 
28
30
  The frame buffers to encode.
29
31
 
30
- **w**: `number`
32
+ ##### w
33
+
34
+ `number`
31
35
 
32
36
  The image width.
33
37
 
34
- **h**: `number`
38
+ ##### h
39
+
40
+ `number`
35
41
 
36
42
  The image height.
37
43
 
38
44
  #### Returns
39
45
 
40
- `Promise`\<`Uint8Array`\>
46
+ `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
41
47
 
42
48
  The data for the image.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/image",
3
- "version": "0.0.1-next.9",
3
+ "version": "0.0.2-next.10",
4
4
  "description": "Classes for image manipulation",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,17 +14,17 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/core": "0.0.1-next.9",
18
- "@twin.org/nameof": "next"
17
+ "@twin.org/core": "0.0.2-next.10",
18
+ "@twin.org/nameof": "0.0.2-next.10"
19
19
  },
20
20
  "main": "./dist/cjs/index.cjs",
21
21
  "module": "./dist/esm/index.mjs",
22
22
  "types": "./dist/types/index.d.ts",
23
23
  "exports": {
24
24
  ".": {
25
+ "types": "./dist/types/index.d.ts",
25
26
  "require": "./dist/cjs/index.cjs",
26
- "import": "./dist/esm/index.mjs",
27
- "types": "./dist/types/index.d.ts"
27
+ "import": "./dist/esm/index.mjs"
28
28
  }
29
29
  },
30
30
  "files": [