@qrcommunication/gigapdf-lib 0.58.0 → 0.58.2

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
@@ -4,6 +4,41 @@ All notable changes to `@qrcommunication/gigapdf-lib` are documented here.
4
4
  The format follows [Keep a Changelog](https://keepachangelog.com/) and the
5
5
  project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [0.58.2] - 2026-06-21
8
+
9
+ ### Fixed
10
+
11
+ - **Named colour spaces (`/Separation`, `/ICCBased`, `/Indexed`, `/DeviceN`) are
12
+ now resolved when extracting vector paths (`elements()`, `vectorPaths()`).**
13
+ Previously the content-layer vector extractor carried its own simplistic
14
+ colour-space model (Device Gray/RGB/CMYK only): any *named* colour space set
15
+ via `cs`/`CS` fell back to `Unknown` and `sc`/`scn` operands were guessed by
16
+ arity, so a 1-component Separation tint was misread as grey — a blue spot/ICC
17
+ fill rendered **black/grey**, and unresolvable fills were **dropped entirely**.
18
+ Vector extraction now reuses the rasteriser's full colour pipeline
19
+ (`raster/colorspace.rs` tint-transform via the PDF function evaluator,
20
+ ICCBased by `/N`, Indexed palette lookup), resolving named spaces against the
21
+ page `/Resources/ColorSpace`. Separation `/Black` tint `1.0` → true black,
22
+ spot/ICC blues → their real RGB. The rasteriser path was already correct and
23
+ is unchanged.
24
+
25
+ ## [0.58.1] - 2026-06-21
26
+
27
+ ### Fixed
28
+
29
+ - **`reorderElement` now preserves the element's effective graphics state
30
+ (fill/stroke colour, line width, dash, font) so reordered shapes/text keep
31
+ their appearance.** Previously the moved op range was re-wrapped in a *bare*
32
+ `q … Q`, dropping the graphics state set *before* the element (fill colour via
33
+ `rg`/`g`/`k` or `cs`+`scn`, stroke colour via `RG`/`G`/`K` or `CS`+`SCN`, line
34
+ width `w`, dash `d`, caps/joins `J`/`j`/`M`, the active `/ExtGState` `gs`, and —
35
+ for text — the font `Tf`). A red shape brought to the front would render black,
36
+ etc. `reorderElement` now runs a last-write-wins scan over the operators
37
+ preceding the element (honouring the `q`/`Q` save/restore stack) and re-emits
38
+ the actually-set state operators inside the new `q … Q`, before the moved run,
39
+ so the element renders identically at its new position; the trailing `Q` still
40
+ restores, so neighbours are unaffected. Images (no colour state) are unchanged.
41
+
7
42
  ## [0.58.0] - 2026-06-21
8
43
 
9
44
  ### Added
package/gigapdf.wasm CHANGED
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrcommunication/gigapdf-lib",
3
- "version": "0.58.0",
3
+ "version": "0.58.2",
4
4
  "description": "TypeScript SDK for gigapdf-lib — a Rust→WASM document engine with no third-party PDF/Office/image library: read/edit/render, OCR, full-text search, AcroForm fields (read · fill · create), annotations, signing, encryption, PDF↔Office/HTML/RTF conversions, and a native HTML+CSS→PDF renderer with inline JavaScript (no headless browser). Cryptography uses audited RustCrypto; JavaScript uses the Boa engine; everything else is pure Rust. Single wasm-bindgen-free .wasm with one host import (entropy).",
5
5
  "license": "PolyForm-Noncommercial-1.0.0",
6
6
  "author": "Rony Licha / QR Communication",