@chrtco/sdk 0.10.54 → 0.10.55

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,34 @@ All notable changes to `@chrtco/sdk` will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ### Changed
8
+ - **The paper-chart symbol family is `int1`, "INT-1"**, after the standard it draws (IHO INT 1);
9
+ it was `raster`, "CHRTraster". `SymbolFamily` is `"s52" | "s101" | "chrt" | "int1"` and
10
+ `SYMBOL_FAMILIES` lists `int1`. The style records `chrt:symbol-set: "int1"` and is named
11
+ `CHRT INT-1 …`; its sprite is still the published `raster-{palette}` sheet.
12
+
13
+ ### Added
14
+ - **Decorative looks: `generateStyle("DAY", { look })`**, `"paper"` (the U.S. paper chart as last
15
+ printed), `"engraved"` (the 1860s Coast Survey engraving) and `"handcolored"` (the engraving
16
+ with the colourist's wash, laid as flat tints). Applied last; drawn over DAY only (another palette
17
+ throws). Moved from CHRTpaper, which draws the same looks: `withLook`, `lookImages`,
18
+ `CHART_LOOKS`, `parseChartLook`, `styleLook`, `LOOK_TONES`, `LOOK_FONTS`, `WASH_TONES`,
19
+ `WASH_TINTS`. Their images are painted, not on a sprite sheet yet: register them with
20
+ `provideChartLookImages(map)` from `@chrtco/sdk/atlas/browser`.
21
+ - **Symbol family `uschart1`, "U.S. Chart No. 1"**: INT-1 with the aids as U.S. Chart No. 1's NOAA
22
+ column draws them (diamond buoys with the shape in the label, filled daybeacons, magenta discs and
23
+ flares). By day and on e-ink by day; INT-1's artwork at dusk and night. Moved from CHRTpaper's
24
+ Classic Paper set: `withClassicMarks`, `classicInkFor`, `classicIconExpression`,
25
+ `classicMarkImages`, `usChart1ImageSpecs`. Declares INT-1's `raster-*` sheet until it has its own.
26
+ - **`STYLE_CATALOGUE`** — every theme (`STYLE_THEMES`: day, dusk, night and the three e-ink
27
+ palettes), look (`STYLE_LOOKS`) and symbol family, with labels, in presentation order.
28
+
29
+ ### Deprecated
30
+ - **`raster` as a symbol family id.** Still accepted wherever it was — `generateStyle({ symbolSet })`,
31
+ `parseSymbolFamily` — and means exactly `int1`. `LEGACY_SYMBOL_FAMILY_ALIASES`,
32
+ `normalizeSymbolFamily`, `SymbolFamilyInput`. The served Style API's `symbols` still takes
33
+ `raster` only, until the tile worker accepts `int1`.
34
+
7
35
  ### Added
8
36
  - **`generateStyle({ dangerDepthRounding: 'down' })`** — the depth beside a rock, wreck or
9
37
  obstruction rounded toward the shallower figure (ADR 0047): whole feet floored in a feet style,
package/README.md CHANGED
@@ -212,10 +212,23 @@ await chrt.styleUrl({ symbols: 's101' }); // served — symbols, theme: 'day
212
212
  | `s52` (default) | IHO S-52 Presentation Library — spec-exact ATON/LIGHTS selection |
213
213
  | `s101` | official IHO S-101 Portrayal Catalogue artwork |
214
214
  | `chrt` | CHRT house set — colour-true silhouettes, capability badges |
215
- | `raster` | raster symbol set |
215
+ | `int1` | INT-1 — the IHO INT 1 symbols, as paper charts draw them (local `symbolSet`; the served `symbols` still takes its old id, `raster`) |
216
216
 
217
- `s101` and `chrt` need their images loaded at runtime via `loadS101SymbolImages` /
218
- `loadChrtSymbolImages` from `@chrtco/sdk/atlas/browser`.
217
+ | `uschart1` | U.S. Chart No. 1 — INT-1 with diamond buoys and filled daybeacons, as U.S. paper charts drew them (local only for now) |
218
+
219
+ `raster` is INT-1's id before 2026-11 and is still accepted everywhere it was, meaning `int1`.
220
+
221
+ ### Looks
222
+
223
+ `chrt.style({ look: 'paper' | 'engraved' | 'handcolored' })` restyles the day chart as a period
224
+ chart: the U.S. paper chart as last printed, the 1860s Coast Survey engraving, or the engraving
225
+ hand-coloured. Every danger, aid, light and sounding still draws. A look is drawn over the DAY
226
+ palette only. Its images (and U.S. Chart No. 1's marks) are painted on demand: call
227
+ `provideChartLookImages(map)` from `@chrtco/sdk/atlas/browser` once per map. `STYLE_CATALOGUE`
228
+ lists the themes (e-ink included), looks and symbol families with their labels.
229
+
230
+ `s101`, `chrt` and `int1` need their images loaded at runtime via `loadS101SymbolImages` /
231
+ `loadChrtSymbolImages` / `loadChrtRasterSymbolImages` from `@chrtco/sdk/atlas/browser`.
219
232
 
220
233
  ### Custom styles
221
234