@qrcommunication/gigapdf-lib 0.121.0 → 0.122.1

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