@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 +12 -0
- package/dist/atlas/browser.cjs +802 -566
- package/dist/atlas/browser.cjs.map +1 -1
- package/dist/atlas/browser.d.cts +229 -9
- package/dist/atlas/browser.d.ts +229 -9
- package/dist/atlas/browser.js +791 -565
- package/dist/atlas/browser.js.map +1 -1
- package/dist/index.cjs +294 -117
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +108 -37
- package/dist/index.d.ts +108 -37
- package/dist/index.js +278 -117
- package/dist/index.js.map +1 -1
- package/dist/symbol-families-D2Kx20HJ.d.cts +47 -0
- package/dist/symbol-families-D2Kx20HJ.d.ts +47 -0
- package/package.json +1 -1
- package/dist/s52-colors-CdVzqt2K.d.cts +0 -17
- package/dist/s52-colors-CdVzqt2K.d.ts +0 -17
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
|