@chrtco/sdk 0.10.42 → 0.10.44

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
@@ -14,6 +14,18 @@ All notable changes to `@chrtco/sdk` will be documented in this file.
14
14
  source themselves, such as the tile-worker's TileJSON.
15
15
 
16
16
  ### Fixed
17
+ - **A palette switch held the map's tile answers behind its own SVG decodes.**
18
+ `rethemeSymbolImages` decoded every symbol as its own SVG `<img>`, and each
19
+ is a whole browser document whose many small main-thread tasks queued ahead
20
+ of MapLibre's worker messages. A tile reload started by the switch's
21
+ data-driven paint (two-shade soundings, light circles) landed only after
22
+ them, and until it did those kept their previous palette's colours. Symbols
23
+ are now decoded up to 32 to a document, and each is
24
+ drawn from its sheet shifted onto a canvas its own size. The pixels are
25
+ byte-identical to the per-symbol path for every family and palette. A
26
+ symbol that cannot safely share a document (a prolog, styles, a reference
27
+ to an id it does not define) still gets its own, as does every symbol of a
28
+ sheet that fails to decode. `loadSymbolImageSpecs` is unchanged.
17
29
  - **`offline.download()` left a second copy of every pack in a browser's HTTP
18
30
  cache.** In a browser, an Electron renderer or Electron `net.fetch`, the
19
31
  bundle GET was stored in the profile's disk cache as well as written through