@qrcommunication/gigapdf-lib 0.58.0 → 0.58.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
@@ -4,6 +4,23 @@ 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.1] - 2026-06-21
8
+
9
+ ### Fixed
10
+
11
+ - **`reorderElement` now preserves the element's effective graphics state
12
+ (fill/stroke colour, line width, dash, font) so reordered shapes/text keep
13
+ their appearance.** Previously the moved op range was re-wrapped in a *bare*
14
+ `q … Q`, dropping the graphics state set *before* the element (fill colour via
15
+ `rg`/`g`/`k` or `cs`+`scn`, stroke colour via `RG`/`G`/`K` or `CS`+`SCN`, line
16
+ width `w`, dash `d`, caps/joins `J`/`j`/`M`, the active `/ExtGState` `gs`, and —
17
+ for text — the font `Tf`). A red shape brought to the front would render black,
18
+ etc. `reorderElement` now runs a last-write-wins scan over the operators
19
+ preceding the element (honouring the `q`/`Q` save/restore stack) and re-emits
20
+ the actually-set state operators inside the new `q … Q`, before the moved run,
21
+ so the element renders identically at its new position; the trailing `Q` still
22
+ restores, so neighbours are unaffected. Images (no colour state) are unchanged.
23
+
7
24
  ## [0.58.0] - 2026-06-21
8
25
 
9
26
  ### Added
package/gigapdf.wasm CHANGED
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.1",
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",