@qrcommunication/gigapdf-lib 0.111.0 → 0.113.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 +42 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js.map +1 -1
- package/gigapdf.wasm +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,48 @@ project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.113.0] - 2026-07-01
|
|
10
|
+
|
|
11
|
+
### Added — every form-field widget placement (`FieldInfo.widgets`)
|
|
12
|
+
|
|
13
|
+
`fields()` now returns, for each AcroForm field, a **`widgets`** array listing
|
|
14
|
+
EVERY on-page widget of that field — not just the first. A field can have several:
|
|
15
|
+
the same field repeated on a duplicate page (an official form's carbon copy — fill
|
|
16
|
+
it once and it shows on both pages), or one widget per button of a radio group.
|
|
17
|
+
Each `WidgetPlacement` carries its `page`, its top-left `bounds`, and — for a button
|
|
18
|
+
— its on-state `export` (which radio button it is / the value stored when selected).
|
|
19
|
+
The flat `page`/`bounds` stay the first widget for backward compatibility.
|
|
20
|
+
|
|
21
|
+
Redundant or near-coincident widgets (a merged field also listed under `/Kids`, a
|
|
22
|
+
duplicate `/Kids` ref) are de-duplicated by (page, ~2pt bounds). A host renders one
|
|
23
|
+
field overlay per widget, so nothing is missing on page 2 and every radio button is
|
|
24
|
+
placed with the correct checked state.
|
|
25
|
+
|
|
26
|
+
## [0.112.0] - 2026-07-01
|
|
27
|
+
|
|
28
|
+
### Fixed — per-word tiling for space-justified & `Td`-positioned runs (footers now overlay-faithful)
|
|
29
|
+
|
|
30
|
+
`run_layout` previously split a run into positioned `segments` only at large `TJ`
|
|
31
|
+
kern jumps. A run justified by **word spacing** (`Tw`) or **wide space glyphs** —
|
|
32
|
+
or one whose words are placed by separate `Td` moves with wide leading gaps (a
|
|
33
|
+
CERFA-style legal footer) — stayed a single long box, so a host painting one
|
|
34
|
+
editable box per run rendered its glyphs at the browser's natural (non-justified)
|
|
35
|
+
advance: the text drifted and collided with the neighbouring runs.
|
|
36
|
+
|
|
37
|
+
Now **any positioned run** — one carrying a real `TJ` jump **or** a space wider
|
|
38
|
+
than half an em — is split at **word boundaries**, each word tiling at its exact
|
|
39
|
+
rasterizer pen `x`. Every space (a normal one or a wide justification gap) tiles
|
|
40
|
+
as an inter-segment **gap**, never inside a word box, and a **leading** gap is
|
|
41
|
+
folded so a lone word after it (e.g. a footer's `" financière"`) lands at its true
|
|
42
|
+
pen `x` instead of drifting left. Single-word positioned runs now emit their one
|
|
43
|
+
fragment too (the run box alone would sit at the pre-gap pen). Whitespace is
|
|
44
|
+
detected by the decoded glyph, so a font whose space isn't byte `0x20` still tiles
|
|
45
|
+
per word. Plain natural-flow runs (no jump, only normal spaces) stay a single
|
|
46
|
+
inline-editable box — byte-identical.
|
|
47
|
+
|
|
48
|
+
Result: a justified small-print legal footer reproduces the rasterizer
|
|
49
|
+
word-for-word in an editable overlay.
|
|
50
|
+
|
|
9
51
|
## [0.111.0] - 2026-07-01
|
|
10
52
|
|
|
11
53
|
### Added — per-run text `segments` for pixel-faithful editable overlays (`TextElementInfo.segments`)
|