@qrcommunication/gigapdf-lib 0.121.0 → 0.122.0

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 CHANGED
@@ -6,6 +6,50 @@ project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.122.0] - 2026-10-28
10
+
11
+ ### Added
12
+
13
+ - **1:1 element metadata, fully typed** (all keys always present):
14
+ - `TextElementInfo`: `fillAlpha`, `blendMode: string | null`,
15
+ `strokeColor`, `renderingMode: TextRenderingMode` (`0`–`7`),
16
+ `scaleX`/`scaleY`/`skewX`/`skewY`; text rise (`Ts`) is honoured.
17
+ - `TextSegment`: `wordSpacing`, `charSpacing`, `totalKerning`.
18
+ - `ImageElementInfo`: `blendMode`, `scaleX`/`scaleY`/`skewX`/`skewY`,
19
+ `clipBounds: [x0, y0, x1, y1] | null`.
20
+ - `VectorPathInfo`: `blendMode`, `fillRule: PathFillRule`,
21
+ `lineCap: PathLineCap`, `lineJoin: PathLineJoin`, `miterLimit`.
22
+ - The transform is decomposed as `rotate · scale · skewX`, Fabric.js's
23
+ `qrDecompose` convention: feeding the values back rebuilds the exact
24
+ matrix. `scaleY` is negative for a mirrored transform, and `skewY` is
25
+ always `0`.
26
+
27
+ ### Changed
28
+
29
+ - Text elements gain `fontResolved: boolean`: `false` when the run's font
30
+ could not be resolved. `fontFamily` then stays `"Helvetica"` (the standard
31
+ viewer substitution), so it remains a usable family name; hosts that need to
32
+ tell a real Helvetica run from an unresolved one read the flag.
33
+ - Numeric fields of the text-elements JSON are rounded to 3 decimals.
34
+
35
+ ### Fixed
36
+
37
+ - **PNG output is compressed** (`renderPage()` and every PNG the engine
38
+ writes): adaptive per-row
39
+ PNG filtering + zlib, instead of uncompressed stored blocks — a blank
40
+ 1224×1584 page shrinks from 7.7 MB to well under 1 % of that.
41
+ - **Markdown / EPUB exports no longer wrap every run in an inline black
42
+ colour** (`<span style="color:#000000">`, `color:#000000`); real colours are
43
+ kept. In EPUB this restores the reader's dark/sepia themes.
44
+ - **EPUB navigation title follows the publication language** (`Table des
45
+ matières`, `Inhaltsverzeichnis`, …; English fallback).
46
+ - The PDF-supplied blend-mode name is JSON-escaped in the text-elements JSON
47
+ (a crafted `/BM` could inject keys into the parsed object).
48
+ - `imageElements()` now reports the `blendMode` of the graphics state the
49
+ image was painted in (it was always `null`).
50
+ - `fillRule` follows the painting operator (`f*`/`B*`/`b*` = even-odd); it was
51
+ wrongly taken from the clip operator (`W*`), leaking into later paths.
52
+
9
53
  ## [0.121.0] - 2026-07-06
10
54
 
11
55
  ### Fixed