@chrtco/sdk 0.9.0 → 0.9.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 +19 -0
- package/dist/atlas/browser.cjs +4311 -5
- package/dist/atlas/browser.cjs.map +1 -1
- package/dist/atlas/browser.d.cts +29 -1
- package/dist/atlas/browser.d.ts +29 -1
- package/dist/atlas/browser.js +4308 -5
- package/dist/atlas/browser.js.map +1 -1
- package/dist/index.cjs +5148 -266
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +483 -70
- package/dist/index.d.ts +483 -70
- package/dist/index.js +5125 -266
- package/dist/index.js.map +1 -1
- package/package.json +20 -3
package/dist/atlas/browser.d.cts
CHANGED
|
@@ -92,4 +92,32 @@ declare function loadSymbolImages(map: maplibregl.Map): Promise<void>;
|
|
|
92
92
|
*/
|
|
93
93
|
declare function loadThemedBridgeImages(map: maplibregl.Map, colorTable: ColorTableName): Promise<void>;
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
/**
|
|
96
|
+
* Browser-only S-101 symbol image loader. Registers the vendored official
|
|
97
|
+
* S-101 Portrayal Catalogue symbols on a MapLibre map under the `s101:`
|
|
98
|
+
* image namespace, themed through the OFFICIAL S-101 colour profiles.
|
|
99
|
+
* Mirrors the S-52 loader mechanics (supersampled raster + pixelRatio) so
|
|
100
|
+
* both sets can coexist on one map — a style switched with
|
|
101
|
+
* `applyS101SymbolSet()` finds every image it references.
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Load every vendored S-101 symbol into the map as `s101:{NAME}`.
|
|
106
|
+
* Individual image failures resolve silently (matching the S-52 loader) —
|
|
107
|
+
* a missing icon renders as a gap, never breaks the map.
|
|
108
|
+
*/
|
|
109
|
+
declare function loadS101SymbolImages(map: maplibregl.Map, colorTable?: ColorTableName): Promise<void>;
|
|
110
|
+
/** Reload the S-101 set with a new colour profile (theme switch). */
|
|
111
|
+
declare function reloadS101SymbolImages(map: maplibregl.Map, colorTable: ColorTableName): Promise<void>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Browser-only loader for the CHRT house ATON/LIGHTS glyphs. Registers
|
|
115
|
+
* every glyph under the `chrt:` image namespace; tintable bodies are
|
|
116
|
+
* registered as SDF so the style's `icon-color` expression colours them
|
|
117
|
+
* from the feature's COLOUR attribute (see chrt-style.ts).
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/** Load the house glyphs into the map as `chrt:{name}` images. */
|
|
121
|
+
declare function loadChrtSymbolImages(map: maplibregl.Map): Promise<void>;
|
|
122
|
+
|
|
123
|
+
export { type LoadCachedOptions, clearS52SymbolImageCache, getS52AtlasVersion, loadChrtSymbolImages, loadS101SymbolImages, loadS52SymbolImages, loadS52SymbolImagesCached, loadSymbolImages, loadThemedBridgeImages, reloadS101SymbolImages, reloadS52SymbolImages, reloadS52SymbolImagesCached };
|
package/dist/atlas/browser.d.ts
CHANGED
|
@@ -92,4 +92,32 @@ declare function loadSymbolImages(map: maplibregl.Map): Promise<void>;
|
|
|
92
92
|
*/
|
|
93
93
|
declare function loadThemedBridgeImages(map: maplibregl.Map, colorTable: ColorTableName): Promise<void>;
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
/**
|
|
96
|
+
* Browser-only S-101 symbol image loader. Registers the vendored official
|
|
97
|
+
* S-101 Portrayal Catalogue symbols on a MapLibre map under the `s101:`
|
|
98
|
+
* image namespace, themed through the OFFICIAL S-101 colour profiles.
|
|
99
|
+
* Mirrors the S-52 loader mechanics (supersampled raster + pixelRatio) so
|
|
100
|
+
* both sets can coexist on one map — a style switched with
|
|
101
|
+
* `applyS101SymbolSet()` finds every image it references.
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Load every vendored S-101 symbol into the map as `s101:{NAME}`.
|
|
106
|
+
* Individual image failures resolve silently (matching the S-52 loader) —
|
|
107
|
+
* a missing icon renders as a gap, never breaks the map.
|
|
108
|
+
*/
|
|
109
|
+
declare function loadS101SymbolImages(map: maplibregl.Map, colorTable?: ColorTableName): Promise<void>;
|
|
110
|
+
/** Reload the S-101 set with a new colour profile (theme switch). */
|
|
111
|
+
declare function reloadS101SymbolImages(map: maplibregl.Map, colorTable: ColorTableName): Promise<void>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Browser-only loader for the CHRT house ATON/LIGHTS glyphs. Registers
|
|
115
|
+
* every glyph under the `chrt:` image namespace; tintable bodies are
|
|
116
|
+
* registered as SDF so the style's `icon-color` expression colours them
|
|
117
|
+
* from the feature's COLOUR attribute (see chrt-style.ts).
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/** Load the house glyphs into the map as `chrt:{name}` images. */
|
|
121
|
+
declare function loadChrtSymbolImages(map: maplibregl.Map): Promise<void>;
|
|
122
|
+
|
|
123
|
+
export { type LoadCachedOptions, clearS52SymbolImageCache, getS52AtlasVersion, loadChrtSymbolImages, loadS101SymbolImages, loadS52SymbolImages, loadS52SymbolImagesCached, loadSymbolImages, loadThemedBridgeImages, reloadS101SymbolImages, reloadS52SymbolImages, reloadS52SymbolImagesCached };
|