@chrtco/sdk 0.10.45 → 0.10.47
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 +35 -0
- package/README.md +29 -6
- package/dist/atlas/browser.cjs +478 -15
- package/dist/atlas/browser.cjs.map +1 -1
- package/dist/atlas/browser.d.cts +8 -3
- package/dist/atlas/browser.d.ts +8 -3
- package/dist/atlas/browser.js +478 -15
- package/dist/atlas/browser.js.map +1 -1
- package/dist/index.cjs +2293 -1603
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1272 -1045
- package/dist/index.d.ts +1272 -1045
- package/dist/index.js +2274 -1603
- package/dist/index.js.map +1 -1
- package/dist/symbol-families-De7sN-p5.d.cts +93 -0
- package/dist/symbol-families-De7sN-p5.d.ts +93 -0
- package/package.json +1 -1
- package/dist/symbol-families-D2Kx20HJ.d.cts +0 -47
- package/dist/symbol-families-D2Kx20HJ.d.ts +0 -47
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, j as SymbolFamily } from '../symbol-families-De7sN-p5.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Every style image a chart registers for one palette and symbol family, as
|
|
@@ -42,7 +42,7 @@ interface SymbolImageSpec {
|
|
|
42
42
|
*/
|
|
43
43
|
declare const BASE_PATTERN_GLYPHS: readonly string[];
|
|
44
44
|
|
|
45
|
-
/** The two world hatches, in this palette. */
|
|
45
|
+
/** The two world hatches, in this palette (coloured by `basePatternSvg`). */
|
|
46
46
|
declare function basePatternImageSpecs(palette: ColorTableName): SymbolImageSpec[];
|
|
47
47
|
/** The CHRT house glyphs (not the hatches, which `basePatternImageSpecs` owns). */
|
|
48
48
|
declare function chrtImageSpecs(palette: ColorTableName): SymbolImageSpec[];
|
|
@@ -217,7 +217,7 @@ declare function reloadS101SymbolImages(map: maplibregl.Map, colorTable: ColorTa
|
|
|
217
217
|
* NOTHING with no error anywhere (the crosshatch silently absent from the
|
|
218
218
|
* whole world map). Two images, loaded beside every family's loader.
|
|
219
219
|
*
|
|
220
|
-
* Themed per palette (`
|
|
220
|
+
* Themed per palette (`basePatternSvg`): the hatches cover the whole uncharted
|
|
221
221
|
* world, and at NIGHT they were the one grey-blue texture on a dark chart.
|
|
222
222
|
*/
|
|
223
223
|
declare function loadBasePatternImages(map: maplibregl.Map, colorTable?: ColorTableName): Promise<void>;
|
|
@@ -343,6 +343,8 @@ interface RethemeResult {
|
|
|
343
343
|
/**
|
|
344
344
|
* Register every spec the map does not already hold. A first load, so there is
|
|
345
345
|
* nothing to update in place; images the map already has are left alone.
|
|
346
|
+
*
|
|
347
|
+
* A map removed while a decode was out is left alone too — see `isMapLive`.
|
|
346
348
|
*/
|
|
347
349
|
declare function loadSymbolImageSpecs(map: maplibregl.Map, specs: readonly SymbolImageSpec[]): Promise<void>;
|
|
348
350
|
/**
|
|
@@ -352,6 +354,9 @@ declare function loadSymbolImageSpecs(map: maplibregl.Map, specs: readonly Symbo
|
|
|
352
354
|
* reload). One it does not hold, or holds at another size, is added — the
|
|
353
355
|
* slow path, which only a first load or a drifted spec should ever take, and
|
|
354
356
|
* `RethemeResult.added` says how often it did.
|
|
357
|
+
*
|
|
358
|
+
* A map removed part-way (`isMapLive`) ends the re-theme as `aborted`: there is
|
|
359
|
+
* nothing left to draw on, and whoever removed it is building the next one.
|
|
355
360
|
*/
|
|
356
361
|
declare function rethemeSymbolImages(map: maplibregl.Map, specs: readonly SymbolImageSpec[], opts?: RethemeOptions): Promise<RethemeResult>;
|
|
357
362
|
|
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, j as SymbolFamily } from '../symbol-families-De7sN-p5.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Every style image a chart registers for one palette and symbol family, as
|
|
@@ -42,7 +42,7 @@ interface SymbolImageSpec {
|
|
|
42
42
|
*/
|
|
43
43
|
declare const BASE_PATTERN_GLYPHS: readonly string[];
|
|
44
44
|
|
|
45
|
-
/** The two world hatches, in this palette. */
|
|
45
|
+
/** The two world hatches, in this palette (coloured by `basePatternSvg`). */
|
|
46
46
|
declare function basePatternImageSpecs(palette: ColorTableName): SymbolImageSpec[];
|
|
47
47
|
/** The CHRT house glyphs (not the hatches, which `basePatternImageSpecs` owns). */
|
|
48
48
|
declare function chrtImageSpecs(palette: ColorTableName): SymbolImageSpec[];
|
|
@@ -217,7 +217,7 @@ declare function reloadS101SymbolImages(map: maplibregl.Map, colorTable: ColorTa
|
|
|
217
217
|
* NOTHING with no error anywhere (the crosshatch silently absent from the
|
|
218
218
|
* whole world map). Two images, loaded beside every family's loader.
|
|
219
219
|
*
|
|
220
|
-
* Themed per palette (`
|
|
220
|
+
* Themed per palette (`basePatternSvg`): the hatches cover the whole uncharted
|
|
221
221
|
* world, and at NIGHT they were the one grey-blue texture on a dark chart.
|
|
222
222
|
*/
|
|
223
223
|
declare function loadBasePatternImages(map: maplibregl.Map, colorTable?: ColorTableName): Promise<void>;
|
|
@@ -343,6 +343,8 @@ interface RethemeResult {
|
|
|
343
343
|
/**
|
|
344
344
|
* Register every spec the map does not already hold. A first load, so there is
|
|
345
345
|
* nothing to update in place; images the map already has are left alone.
|
|
346
|
+
*
|
|
347
|
+
* A map removed while a decode was out is left alone too — see `isMapLive`.
|
|
346
348
|
*/
|
|
347
349
|
declare function loadSymbolImageSpecs(map: maplibregl.Map, specs: readonly SymbolImageSpec[]): Promise<void>;
|
|
348
350
|
/**
|
|
@@ -352,6 +354,9 @@ declare function loadSymbolImageSpecs(map: maplibregl.Map, specs: readonly Symbo
|
|
|
352
354
|
* reload). One it does not hold, or holds at another size, is added — the
|
|
353
355
|
* slow path, which only a first load or a drifted spec should ever take, and
|
|
354
356
|
* `RethemeResult.added` says how often it did.
|
|
357
|
+
*
|
|
358
|
+
* A map removed part-way (`isMapLive`) ends the re-theme as `aborted`: there is
|
|
359
|
+
* nothing left to draw on, and whoever removed it is building the next one.
|
|
355
360
|
*/
|
|
356
361
|
declare function rethemeSymbolImages(map: maplibregl.Map, specs: readonly SymbolImageSpec[], opts?: RethemeOptions): Promise<RethemeResult>;
|
|
357
362
|
|