@chrtco/sdk 0.10.53 → 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 +28 -0
- package/README.md +16 -3
- package/dist/atlas/browser.cjs +673 -17
- package/dist/atlas/browser.cjs.map +1 -1
- package/dist/atlas/browser.d.cts +36 -2
- package/dist/atlas/browser.d.ts +36 -2
- package/dist/atlas/browser.js +670 -16
- package/dist/atlas/browser.js.map +1 -1
- package/dist/index.cjs +1593 -159
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +338 -8
- package/dist/index.d.ts +338 -8
- package/dist/index.js +1559 -159
- package/dist/index.js.map +1 -1
- package/dist/{symbol-families-De7sN-p5.d.cts → symbol-family-ids-elOgiCo8.d.cts} +27 -25
- package/dist/{symbol-families-De7sN-p5.d.ts → symbol-family-ids-elOgiCo8.d.ts} +27 -25
- package/package.json +1 -1
package/dist/atlas/browser.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import maplibregl from 'maplibre-gl';
|
|
2
|
-
import { C as ColorTableName,
|
|
2
|
+
import { C as ColorTableName, a as SymbolFamily } from '../symbol-family-ids-elOgiCo8.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Every style image a chart registers for one palette and symbol family, as
|
|
@@ -50,6 +50,18 @@ declare function chrtImageSpecs(palette: ColorTableName): SymbolImageSpec[];
|
|
|
50
50
|
declare function rasterImageSpecs(palette: ColorTableName): SymbolImageSpec[];
|
|
51
51
|
/** The vendored S-101 symbols (`s101:` namespace). */
|
|
52
52
|
declare function s101ImageSpecs(palette: ColorTableName): SymbolImageSpec[];
|
|
53
|
+
/**
|
|
54
|
+
* U.S. Chart No. 1's marks on a palette (uschart1-marks.ts): the paper chart's
|
|
55
|
+
* diamond buoys, dayboards, discs and flares, in the palette's ink, the Black &
|
|
56
|
+
* white sheet's greys on mono e-ink and the colours on every other page.
|
|
57
|
+
*
|
|
58
|
+
* Registered on every palette, though the style draws them by day only
|
|
59
|
+
* (classicInkFor; INT-1's artwork at dusk and night): the same ids at the same
|
|
60
|
+
* sizes on every screen palette is what lets a palette switch update the images
|
|
61
|
+
* in place rather than add and remove them. A style that doesn't name a mark
|
|
62
|
+
* never draws it.
|
|
63
|
+
*/
|
|
64
|
+
declare function usChart1ImageSpecs(palette: ColorTableName): SymbolImageSpec[];
|
|
53
65
|
/**
|
|
54
66
|
* Everything a chart in `family` registers, in registration order: the S-52
|
|
55
67
|
* set, the world hatches, then the family's own set. This is what
|
|
@@ -247,6 +259,28 @@ declare function loadChrtRasterSymbolImages(map: maplibregl.Map, colorTable?: Co
|
|
|
247
259
|
*/
|
|
248
260
|
declare function reloadChrtRasterSymbolImages(map: maplibregl.Map, colorTable: ColorTableName): Promise<void>;
|
|
249
261
|
|
|
262
|
+
/**
|
|
263
|
+
* The images a decorative look (`generateStyle({ look })`) and U.S. Chart No. 1's
|
|
264
|
+
* marks draw with, given to a map when its style first asks for one.
|
|
265
|
+
*
|
|
266
|
+
* Neither is on a sprite sheet yet: they are painted (chart-look.ts lookImages,
|
|
267
|
+
* uschart1-marks.ts classicMarkImage), the same pixels in every client and in
|
|
268
|
+
* CHRTpaper's print. A mark's id is built by its layer's expression from the
|
|
269
|
+
* feature's colours, so the set a chart needs isn't known ahead: the map asks
|
|
270
|
+
* (`styleimagemissing`) and this answers. A mark is painted alone when first
|
|
271
|
+
* asked for (there are a few hundred; a chart draws a handful); a look's
|
|
272
|
+
* patterns and symbols are painted together, once.
|
|
273
|
+
*
|
|
274
|
+
* Lifted from CHRTpaper's editor (src/paper/look-preview.tsx provideLookImages).
|
|
275
|
+
*/
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Give `map` a look's pattern or symbol image, or a U.S. Chart No. 1 mark,
|
|
279
|
+
* whenever its style asks for one it lacks. Call once per map; images of any
|
|
280
|
+
* other kind are left to their own loaders.
|
|
281
|
+
*/
|
|
282
|
+
declare function provideChartLookImages(map: maplibregl.Map): void;
|
|
283
|
+
|
|
250
284
|
/**
|
|
251
285
|
* Browser-only: turn `SymbolImageSpec`s into MapLibre style images.
|
|
252
286
|
*
|
|
@@ -360,4 +394,4 @@ declare function loadSymbolImageSpecs(map: maplibregl.Map, specs: readonly Symbo
|
|
|
360
394
|
*/
|
|
361
395
|
declare function rethemeSymbolImages(map: maplibregl.Map, specs: readonly SymbolImageSpec[], opts?: RethemeOptions): Promise<RethemeResult>;
|
|
362
396
|
|
|
363
|
-
export { BASE_PATTERN_GLYPHS, type LoadCachedOptions, type RethemeOptions, type RethemeResult, type StyleImageIds, type SymbolImageProgress, type SymbolImageSpec, basePatternImageSpecs, chrtImageSpecs, clearS52SymbolImageCache, getS52AtlasVersion, loadBasePatternImages, loadChrtRasterSymbolImages, loadChrtSymbolImages, loadS101SymbolImages, loadS52SymbolImages, loadS52SymbolImagesCached, loadSymbolImageSpecs, loadSymbolImages, loadThemedBridgeImages, rasterImageSpecs, reloadChrtRasterSymbolImages, reloadS101SymbolImages, reloadS52SymbolImages, reloadS52SymbolImagesCached, rethemeSymbolImages, s101ImageSpecs, s52ImageSpecs, styleImageIds, symbolImageSpecs };
|
|
397
|
+
export { BASE_PATTERN_GLYPHS, type LoadCachedOptions, type RethemeOptions, type RethemeResult, type StyleImageIds, type SymbolImageProgress, type SymbolImageSpec, basePatternImageSpecs, chrtImageSpecs, clearS52SymbolImageCache, getS52AtlasVersion, loadBasePatternImages, loadChrtRasterSymbolImages, loadChrtSymbolImages, loadS101SymbolImages, loadS52SymbolImages, loadS52SymbolImagesCached, loadSymbolImageSpecs, loadSymbolImages, loadThemedBridgeImages, provideChartLookImages, rasterImageSpecs, reloadChrtRasterSymbolImages, reloadS101SymbolImages, reloadS52SymbolImages, reloadS52SymbolImagesCached, rethemeSymbolImages, s101ImageSpecs, s52ImageSpecs, styleImageIds, symbolImageSpecs, usChart1ImageSpecs };
|
package/dist/atlas/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import maplibregl from 'maplibre-gl';
|
|
2
|
-
import { C as ColorTableName,
|
|
2
|
+
import { C as ColorTableName, a as SymbolFamily } from '../symbol-family-ids-elOgiCo8.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Every style image a chart registers for one palette and symbol family, as
|
|
@@ -50,6 +50,18 @@ declare function chrtImageSpecs(palette: ColorTableName): SymbolImageSpec[];
|
|
|
50
50
|
declare function rasterImageSpecs(palette: ColorTableName): SymbolImageSpec[];
|
|
51
51
|
/** The vendored S-101 symbols (`s101:` namespace). */
|
|
52
52
|
declare function s101ImageSpecs(palette: ColorTableName): SymbolImageSpec[];
|
|
53
|
+
/**
|
|
54
|
+
* U.S. Chart No. 1's marks on a palette (uschart1-marks.ts): the paper chart's
|
|
55
|
+
* diamond buoys, dayboards, discs and flares, in the palette's ink, the Black &
|
|
56
|
+
* white sheet's greys on mono e-ink and the colours on every other page.
|
|
57
|
+
*
|
|
58
|
+
* Registered on every palette, though the style draws them by day only
|
|
59
|
+
* (classicInkFor; INT-1's artwork at dusk and night): the same ids at the same
|
|
60
|
+
* sizes on every screen palette is what lets a palette switch update the images
|
|
61
|
+
* in place rather than add and remove them. A style that doesn't name a mark
|
|
62
|
+
* never draws it.
|
|
63
|
+
*/
|
|
64
|
+
declare function usChart1ImageSpecs(palette: ColorTableName): SymbolImageSpec[];
|
|
53
65
|
/**
|
|
54
66
|
* Everything a chart in `family` registers, in registration order: the S-52
|
|
55
67
|
* set, the world hatches, then the family's own set. This is what
|
|
@@ -247,6 +259,28 @@ declare function loadChrtRasterSymbolImages(map: maplibregl.Map, colorTable?: Co
|
|
|
247
259
|
*/
|
|
248
260
|
declare function reloadChrtRasterSymbolImages(map: maplibregl.Map, colorTable: ColorTableName): Promise<void>;
|
|
249
261
|
|
|
262
|
+
/**
|
|
263
|
+
* The images a decorative look (`generateStyle({ look })`) and U.S. Chart No. 1's
|
|
264
|
+
* marks draw with, given to a map when its style first asks for one.
|
|
265
|
+
*
|
|
266
|
+
* Neither is on a sprite sheet yet: they are painted (chart-look.ts lookImages,
|
|
267
|
+
* uschart1-marks.ts classicMarkImage), the same pixels in every client and in
|
|
268
|
+
* CHRTpaper's print. A mark's id is built by its layer's expression from the
|
|
269
|
+
* feature's colours, so the set a chart needs isn't known ahead: the map asks
|
|
270
|
+
* (`styleimagemissing`) and this answers. A mark is painted alone when first
|
|
271
|
+
* asked for (there are a few hundred; a chart draws a handful); a look's
|
|
272
|
+
* patterns and symbols are painted together, once.
|
|
273
|
+
*
|
|
274
|
+
* Lifted from CHRTpaper's editor (src/paper/look-preview.tsx provideLookImages).
|
|
275
|
+
*/
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Give `map` a look's pattern or symbol image, or a U.S. Chart No. 1 mark,
|
|
279
|
+
* whenever its style asks for one it lacks. Call once per map; images of any
|
|
280
|
+
* other kind are left to their own loaders.
|
|
281
|
+
*/
|
|
282
|
+
declare function provideChartLookImages(map: maplibregl.Map): void;
|
|
283
|
+
|
|
250
284
|
/**
|
|
251
285
|
* Browser-only: turn `SymbolImageSpec`s into MapLibre style images.
|
|
252
286
|
*
|
|
@@ -360,4 +394,4 @@ declare function loadSymbolImageSpecs(map: maplibregl.Map, specs: readonly Symbo
|
|
|
360
394
|
*/
|
|
361
395
|
declare function rethemeSymbolImages(map: maplibregl.Map, specs: readonly SymbolImageSpec[], opts?: RethemeOptions): Promise<RethemeResult>;
|
|
362
396
|
|
|
363
|
-
export { BASE_PATTERN_GLYPHS, type LoadCachedOptions, type RethemeOptions, type RethemeResult, type StyleImageIds, type SymbolImageProgress, type SymbolImageSpec, basePatternImageSpecs, chrtImageSpecs, clearS52SymbolImageCache, getS52AtlasVersion, loadBasePatternImages, loadChrtRasterSymbolImages, loadChrtSymbolImages, loadS101SymbolImages, loadS52SymbolImages, loadS52SymbolImagesCached, loadSymbolImageSpecs, loadSymbolImages, loadThemedBridgeImages, rasterImageSpecs, reloadChrtRasterSymbolImages, reloadS101SymbolImages, reloadS52SymbolImages, reloadS52SymbolImagesCached, rethemeSymbolImages, s101ImageSpecs, s52ImageSpecs, styleImageIds, symbolImageSpecs };
|
|
397
|
+
export { BASE_PATTERN_GLYPHS, type LoadCachedOptions, type RethemeOptions, type RethemeResult, type StyleImageIds, type SymbolImageProgress, type SymbolImageSpec, basePatternImageSpecs, chrtImageSpecs, clearS52SymbolImageCache, getS52AtlasVersion, loadBasePatternImages, loadChrtRasterSymbolImages, loadChrtSymbolImages, loadS101SymbolImages, loadS52SymbolImages, loadS52SymbolImagesCached, loadSymbolImageSpecs, loadSymbolImages, loadThemedBridgeImages, provideChartLookImages, rasterImageSpecs, reloadChrtRasterSymbolImages, reloadS101SymbolImages, reloadS52SymbolImages, reloadS52SymbolImagesCached, rethemeSymbolImages, s101ImageSpecs, s52ImageSpecs, styleImageIds, symbolImageSpecs, usChart1ImageSpecs };
|