@chrtco/sdk 0.10.6 → 0.10.8
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 +16 -0
- package/dist/atlas/browser.cjs +12 -1
- package/dist/atlas/browser.cjs.map +1 -1
- package/dist/atlas/browser.js +12 -1
- package/dist/atlas/browser.js.map +1 -1
- package/dist/index.cjs +1222 -542
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +141 -8
- package/dist/index.d.ts +141 -8
- package/dist/index.js +1216 -542
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1380,6 +1380,25 @@ interface StyleUrlOptions {
|
|
|
1380
1380
|
* `CHRT_STYLE_MODES`). The served document echoes the resolved mode in
|
|
1381
1381
|
* `metadata["chrt:render-mode"]` and the `X-Style-Mode` header. */
|
|
1382
1382
|
mode?: ChrtStyleMode;
|
|
1383
|
+
/** Draw the CHRTland land base under the chart (default off). Adds the
|
|
1384
|
+
* `CHRT_LAND` source and a dozen `chrtland-*` layers, all beneath every
|
|
1385
|
+
* S-57 class so land can never occlude a portrayal.
|
|
1386
|
+
*
|
|
1387
|
+
* **CHRTland is not chart data and does not come from a hydrographic
|
|
1388
|
+
* office** — never present its shoreline to a mariner as charted.
|
|
1389
|
+
*
|
|
1390
|
+
* Needs `CHRT_LAND` on the tile token, which follows the chart sources
|
|
1391
|
+
* your key holds; without it the style request is a 403
|
|
1392
|
+
* `region_not_licensed` rather than a document with dead sources. */
|
|
1393
|
+
land?: boolean;
|
|
1394
|
+
/** Add CHRTland's terrarium hillshade (default off). Separately opt-in
|
|
1395
|
+
* from {@link land} and requires it — `relief` alone is a 400
|
|
1396
|
+
* `relief_requires_land`.
|
|
1397
|
+
*
|
|
1398
|
+
* It also needs a `CHRT_RELIEF` grant that no chart source issues yet,
|
|
1399
|
+
* so this currently returns 403 for every key. It will start working
|
|
1400
|
+
* with no SDK change once that grant ships. */
|
|
1401
|
+
relief?: boolean;
|
|
1383
1402
|
}
|
|
1384
1403
|
interface FetchStyleOptions extends StyleUrlOptions {
|
|
1385
1404
|
signal?: AbortSignal;
|
|
@@ -2708,7 +2727,12 @@ declare function buildLabelLayer(layerId: string, sourceId: string, config: Labe
|
|
|
2708
2727
|
declare function preprocessSoundings(fc: GeoJSON.FeatureCollection): GeoJSON.FeatureCollection;
|
|
2709
2728
|
/**
|
|
2710
2729
|
* Pre-process LIGHTS GeoJSON to derive compact light characteristic labels.
|
|
2711
|
-
* Adds `_lightLabel` property (e.g., "Fl
|
|
2730
|
+
* Adds `_lightLabel` property (e.g., "Fl(2) WR 4s 5M").
|
|
2731
|
+
*
|
|
2732
|
+
* KEEP IN STEP WITH `buildLightLabelExpression()` in layer-builder.ts — that
|
|
2733
|
+
* is the same label built as a GL expression for the tile path, which has no
|
|
2734
|
+
* JS preprocessing step. `light-label-parity.test.ts` asserts the two agree
|
|
2735
|
+
* on real tile features; if you change one, change both.
|
|
2712
2736
|
*/
|
|
2713
2737
|
declare function preprocessLights(fc: GeoJSON.FeatureCollection): GeoJSON.FeatureCollection;
|
|
2714
2738
|
/** List of layers that have labels */
|
|
@@ -2984,7 +3008,26 @@ interface PmtilesVectorSource {
|
|
|
2984
3008
|
minzoom: number;
|
|
2985
3009
|
maxzoom: number;
|
|
2986
3010
|
}
|
|
3011
|
+
/**
|
|
3012
|
+
* Terrarium elevation, served as PNG from `CHRT_RELIEF`. Separate from the
|
|
3013
|
+
* vector shapes because MapLibre needs `type: "raster-dem"` and an explicit
|
|
3014
|
+
* `encoding` — a raster-dem source read as a plain raster renders the encoded
|
|
3015
|
+
* RGB as a garish false-colour image rather than as elevation.
|
|
3016
|
+
*/
|
|
3017
|
+
interface RasterDemSource {
|
|
3018
|
+
type: "raster-dem";
|
|
3019
|
+
tiles: string[];
|
|
3020
|
+
encoding: "terrarium";
|
|
3021
|
+
tileSize: number;
|
|
3022
|
+
minzoom: number;
|
|
3023
|
+
maxzoom: number;
|
|
3024
|
+
}
|
|
2987
3025
|
type VectorSourceSpec = MapboxVectorSource | PmtilesVectorSource;
|
|
3026
|
+
type AnySourceSpec = VectorSourceSpec | RasterDemSource;
|
|
3027
|
+
/** CHRTland's vector land base. ADR 0023: its own archive, never chart data. */
|
|
3028
|
+
declare const LAND_REGION = "CHRT_LAND";
|
|
3029
|
+
/** CHRTland's terrarium relief. */
|
|
3030
|
+
declare const RELIEF_REGION = "CHRT_RELIEF";
|
|
2988
3031
|
type SourceMode = "mapbox" | "pmtiles";
|
|
2989
3032
|
/** Canonical source id used in `generateStyle()` — matches the region name
|
|
2990
3033
|
* of the one consolidated PMTiles served by the tile-worker for this region. */
|
|
@@ -3001,6 +3044,17 @@ interface BuildSourcesOptions {
|
|
|
3001
3044
|
buildTag?: string;
|
|
3002
3045
|
/** Override tile-worker origin (e.g. staging). Default: DEFAULT_TILE_BASE_URL. */
|
|
3003
3046
|
tileBaseUrl?: string;
|
|
3047
|
+
/**
|
|
3048
|
+
* Emit the CHRTland vector land base as a second source (ADR 0023). Off by
|
|
3049
|
+
* default: it costs a source, and the region must be granted on the token.
|
|
3050
|
+
*/
|
|
3051
|
+
land?: boolean;
|
|
3052
|
+
/**
|
|
3053
|
+
* Emit CHRTland's terrarium relief as a raster-dem source. Separate from
|
|
3054
|
+
* `land` because relief needs a raster-capable worker AND a grant that
|
|
3055
|
+
* `land-regions.ts` still withholds.
|
|
3056
|
+
*/
|
|
3057
|
+
relief?: boolean;
|
|
3004
3058
|
}
|
|
3005
3059
|
/**
|
|
3006
3060
|
* Build the "sources" block for a CHRT style.
|
|
@@ -3010,7 +3064,7 @@ interface BuildSourcesOptions {
|
|
|
3010
3064
|
* routed by the Worker to the one consolidated PMTiles:
|
|
3011
3065
|
* `${tileBaseUrl}/v1/tiles/{region}/{z}/{x}/{y}.mvt`
|
|
3012
3066
|
*/
|
|
3013
|
-
declare function buildSources(opts?: BuildSourcesOptions): Record<string,
|
|
3067
|
+
declare function buildSources(opts?: BuildSourcesOptions): Record<string, AnySourceSpec>;
|
|
3014
3068
|
|
|
3015
3069
|
/**
|
|
3016
3070
|
* Builds Mapbox GL Style layer specs from S-52 lookup entries.
|
|
@@ -3248,7 +3302,32 @@ declare const S101_SOURCE_COMMIT = "05063500e898544c90078ab78a61efc72b7e62f3";
|
|
|
3248
3302
|
declare const S101_ICON_PREFIX = "s101:";
|
|
3249
3303
|
/** All vendored S-101 symbol names (unprefixed). */
|
|
3250
3304
|
declare const S101_SYMBOL_NAMES: ReadonlySet<string>;
|
|
3251
|
-
/**
|
|
3305
|
+
/**
|
|
3306
|
+
* Symbols the generated style references that have **no official S-101
|
|
3307
|
+
* counterpart** in the Portrayal Catalogue, and therefore keep their S-52
|
|
3308
|
+
* artwork under `?symbols=s101`.
|
|
3309
|
+
*
|
|
3310
|
+
* These are deliberate, not gaps in the vendoring: the catalogue at the
|
|
3311
|
+
* pinned commit defines no symbol of the same name, and inventing an
|
|
3312
|
+
* equivalence (e.g. SISTAT02 → SISTAT03, WATTUR01 → WATTUR02) would be a
|
|
3313
|
+
* portrayal judgement, not a direct replica of the standard. The S-101
|
|
3314
|
+
* rule engine (the later 7c phase) is what will resolve these properly —
|
|
3315
|
+
* it selects symbols by rule rather than by S-52 name identity.
|
|
3316
|
+
*
|
|
3317
|
+
* DNGCIR01 / LNDMRK18 / LNDMRK19 / RADRFL03 — the catalogue defines no
|
|
3318
|
+
* DNGCIR, LNDMRK or RADRFL symbols at all. (RETRFL01/02 *are* defined,
|
|
3319
|
+
* so the retroreflector class needs no exemption.)
|
|
3320
|
+
* UWTROC01 / SISTAT02 / WATTUR01 — only differently-numbered siblings
|
|
3321
|
+
* exist (UWTROC03/04, SISTAT03, WATTUR02); the number encodes a
|
|
3322
|
+
* different portrayal case.
|
|
3323
|
+
* LIGHTHOUSE01 — a CHRT-local symbol name with no PresLib/S-101 analogue.
|
|
3324
|
+
*
|
|
3325
|
+
* Pinned by `s101-style.test.ts` so the set can only shrink deliberately
|
|
3326
|
+
* (e.g. when re-pinned to an in-force catalogue edition that adds them).
|
|
3327
|
+
*/
|
|
3328
|
+
declare const S101_NO_OFFICIAL_COUNTERPART: ReadonlySet<string>;
|
|
3329
|
+
/** Resolve an S-101 colour token via the official profile for `table`.
|
|
3330
|
+
* An unknown token warns (see `reportUnresolvedToken`) before falling back. */
|
|
3252
3331
|
declare function resolveS101Color(token: string, table?: ColorTableName): string;
|
|
3253
3332
|
/**
|
|
3254
3333
|
* Get an S-101 symbol SVG with its colour tokens resolved through the
|
|
@@ -3256,10 +3335,64 @@ declare function resolveS101Color(token: string, table?: ColorTableName): string
|
|
|
3256
3335
|
*/
|
|
3257
3336
|
declare function getThemedS101Svg(symbolName: string, table?: ColorTableName): string | null;
|
|
3258
3337
|
/**
|
|
3259
|
-
*
|
|
3260
|
-
*
|
|
3261
|
-
*
|
|
3262
|
-
*
|
|
3338
|
+
* Where a symbol's artwork actually comes from under `?symbols=s101`.
|
|
3339
|
+
*
|
|
3340
|
+
* - `official` — the vendored IHO S-101 Portrayal Catalogue file.
|
|
3341
|
+
* - `s52-substitute`— the catalogue defines no symbol of this name, so S-52
|
|
3342
|
+
* artwork is drawn instead (the pinned exemption set).
|
|
3343
|
+
* - `chrt-drawn` — neither; a CHRT-authored approximation. `S101_NEW_SYMBOLS`
|
|
3344
|
+
* in `s101-symbols.ts` is this, and it is NOT official
|
|
3345
|
+
* artwork despite living under an S-101 name.
|
|
3346
|
+
*
|
|
3347
|
+
* Exported because any surface that *displays* S-101 symbology has to be able
|
|
3348
|
+
* to say which of the three it is showing. Presenting a substitute or an
|
|
3349
|
+
* approximation as catalogue artwork is the same silent-fallback defect as a
|
|
3350
|
+
* chart quietly dropping a symbol — see the parity audit.
|
|
3351
|
+
*/
|
|
3352
|
+
type S101ArtworkProvenance = "official" | "s52-substitute" | "chrt-drawn";
|
|
3353
|
+
/** Classify a symbol name's artwork provenance. `symbolName` is the S-52
|
|
3354
|
+
* PresLib name (e.g. `BOYCAN01`), which is how every set here is keyed.
|
|
3355
|
+
*
|
|
3356
|
+
* The `s52-substitute` test is "does real S-52 artwork exist for this name",
|
|
3357
|
+
* NOT "is it in the pinned exemption set" — that set only covers names the
|
|
3358
|
+
* generated style references, and a display surface (the Atlas) shows many
|
|
3359
|
+
* that it does not. Keying off the exemption set alone would misreport every
|
|
3360
|
+
* one of those as a CHRT drawing. */
|
|
3361
|
+
declare function s101ArtworkProvenance(symbolName: string | undefined): S101ArtworkProvenance;
|
|
3362
|
+
/**
|
|
3363
|
+
* Official S-101 **area fill** names available to the rewrite below.
|
|
3364
|
+
*
|
|
3365
|
+
* **Empty, and that is the finding — not an oversight in this file.** The
|
|
3366
|
+
* upstream `PortrayalCatalog/` ships `AreaFills/` and `LineStyles/` alongside
|
|
3367
|
+
* `Symbols/`, but `PROVENANCE.md` records that only `Symbols/` was ever
|
|
3368
|
+
* vendored, and `gen-s101-svgs.ts` reads that one directory. So every area
|
|
3369
|
+
* fill and complex line under `?symbols=s101` is still S-52 artwork:
|
|
3370
|
+
* `AP:CBLARE01`, `AP:MARSHES1`, `AP:PIPARE01`, `AP:VEGATN03`, `AP:VEGATN04`,
|
|
3371
|
+
* `LC:CBLARE51`, `LC:CBLSUB06`, `LC:PIPSOL05`, `LC:PIPSOL06`.
|
|
3372
|
+
*
|
|
3373
|
+
* These sets are declared rather than assumed so the omission is *typed and
|
|
3374
|
+
* measurable* instead of invisible: `applyS101SymbolSet` now walks pattern
|
|
3375
|
+
* references too, the coverage metadata below reports the real ratio, and
|
|
3376
|
+
* `s101-parity.test.ts` pins it at 0. Vendor the two directories, populate
|
|
3377
|
+
* these sets, and every count moves on its own — no other change required.
|
|
3378
|
+
*/
|
|
3379
|
+
declare const S101_AREA_FILL_NAMES: ReadonlySet<string>;
|
|
3380
|
+
/** Official S-101 **line style** names available to the rewrite. Empty for the
|
|
3381
|
+
* same reason as `S101_AREA_FILL_NAMES` — see that doc comment. */
|
|
3382
|
+
declare const S101_LINE_STYLE_NAMES: ReadonlySet<string>;
|
|
3383
|
+
/**
|
|
3384
|
+
* Switch a generated style document to the S-101 symbol set.
|
|
3385
|
+
*
|
|
3386
|
+
* Covers all three ways a GL style names an image — `icon-image`,
|
|
3387
|
+
* `fill-pattern` and `line-pattern`. Names without official S-101 artwork keep
|
|
3388
|
+
* their S-52 image (both sets are loaded by `loadChartSymbolImages`), so
|
|
3389
|
+
* coverage can only grow as the catalogue is vendored further.
|
|
3390
|
+
*
|
|
3391
|
+
* Emits `chrt:s101-coverage` so a consumer can tell *how* S-101 the document
|
|
3392
|
+
* it just fetched actually is. Before this existed the answer was
|
|
3393
|
+
* unobtainable without decoding the style yourself, which is how "s101" read
|
|
3394
|
+
* as complete when its areas and lines were entirely S-52.
|
|
3395
|
+
* Returns the same style object (mutated), for chaining.
|
|
3263
3396
|
*/
|
|
3264
3397
|
declare function applyS101SymbolSet(style: MapboxStyle): MapboxStyle;
|
|
3265
3398
|
|
|
@@ -4172,4 +4305,4 @@ declare class Chrt {
|
|
|
4172
4305
|
warmTiles(region?: string): Promise<void>;
|
|
4173
4306
|
}
|
|
4174
4307
|
|
|
4175
|
-
export { ALL_NAV_AID_LAYERS, ALL_WATER_BODY_LAYERS, AREA_QUERY_LAYERS, ATON_EXPRESSION_CLASSES, type AheadCoverageCell, type AheadFeatureProperties, type AheadOptions, type AheadResponse, type AlongRouteFeatureProperties, type AlongRouteOptions, type AlongRouteResponse, type AreaInspectResult, type AtlasStyle, type AttachOptions, BAND_DRAW_ORDER, BAND_PRIORITY_RANGES, type BBox, BRIDGE_QUERY_LAYERS, BUILD_MAXZOOM, BUILD_MINZOOM, type BandCode, type BandPriorityRange, type BridgeInspectResult, type BuildOfflineStyleOptions, type BuildSourcesOptions, CHART_BAND_CODES, CHART_CASCADE_CODES, CHART_SECTIONS, CHRTRASTER_REF_CROPS, CHRTRASTER_SVGS, CHRT_ATON_COLORS, CHRT_GLYPH_NAMES, CHRT_GLYPH_SVGS, CHRT_ICON_EXPRESSIONS, CHRT_ICON_PREFIX, CHRT_SDF_GLYPHS, CHRT_STYLE_MODES, type CandidateQueryOptions, type CandidatesEventContext, type CellDeletedEvent, type CellDetail, type CellEventData, type CellNewEvent, type CellUpdatedData, type CellUpdatedEvent, type CellsOptions, type CellsResponse, type ChartSection, Chrt, type ChrtConfig, ChrtError, type ChrtStyleMode, type ChrtStyleOptions, type ChrtStyleTheme, type ChrtSymbolSet, type ClickAnchor, ColorTableName, type CoverageOptions, type CoverageResponse, type CoverageRouteCell, type CoverageRouteOptions, type CoverageRouteResponse, type CoverageSource, type CustomStyleConfig, DEFAULT_CLICK_TOLERANCE, DEFAULT_CUSTOM_STYLE_CONFIG, DEFAULT_INSPECT_CLASS_RANK, DEFAULT_LABEL_SETTINGS, DEFAULT_NAV_AID_SETTINGS, DEFAULT_REGION, DEFAULT_SAFETY_CONTOUR_M, DEFAULT_SOUNDING_SETTINGS, DEFAULT_TILE_BASE_URL, DEFAULT_TILE_REGION, DEFAULT_WATER_BODY_SETTINGS, type DecodedAreaFeature, type DecodedBridge, type DecodedNavAid, type DecodedProperty, type DisplayCategory, type DisplayMode, type FeatureCollection, type FeaturesOptions, type FetchStyleOptions, FileSystemAdapter, type FlashPattern, type FlashPhase, type GenerateCustomStyleOptions, type GeneratedCustomStyle, type GeoJsonFeature, type GeoJsonGeometry, type GeomType, INSPECT_CLASS_RANK, INSPECT_RANK_DEVIATIONS, type InspectCandidate, type InspectCandidateSet, type InspectEnrichment, type InspectEventContext, type InspectNotice, type InspectOptions, type InspectResult, type InspectTargetClass, type InspectableFeature, InteractClient, type InteractEntitlement, InteractError, type InteractErrorCode, type InteractHandle, type InteractMapLike, type InteractMapMouseEvent, LABELED_LAYERS, LABEL_BEHAVIOR, LABEL_LAYER_GROUPS, LABEL_PRIORITY, type LabelBehavior, type LabelConfigOptions, type LabelLayerConfig, type LabelSettings, type LookupEntry, type MapLibreStyle, type MapboxStyle, type MapboxVectorSource, type MarineAlert, type MarineAlertsOptions, type MarineAlertsResponse, type MarineConditionsOptions, type MarineConditionsResponse, type MarineForecastOptions, type MarineForecastPeriod, type MarineForecastResponse, type MarineSeas, type MarineStation, type MarineSwellTrain, type MarineWind, type MarineZoneRef, NAUTICAL_SYMBOLS, NAV_AID_LAYER_GROUPS, NAV_AID_QUERY_LAYERS, NON_SOLAS_DISCLAIMER, NON_SOLAS_DISCLAIMER_SHORT, type NauticalCategory, type NauticalSymbol, type NavAidInspectResult, type NavAidSettings, type NearbyMarineStation, type OfflineBundleResponse, type OfflineDownloadOptions, type OfflineDownloadProgress, type OfflineDownloadResult, OfflineError, type OfflineErrorCode, type OfflineFetchStyleOptions, type OfflineHeartbeatOptions, type OfflineRegionSummary, type OfflineRemoveOptions, OfflineStyleError, type OfflineStylePlatform, type OfflineStyleResponse, type PmtilesVectorSource, type QueryFeatureProperties, type QueryOptions, type QueryResponse, RASTER_ATON_CLASSES, RASTER_GLYPH_NAMES, RASTER_ICON_PREFIX, type ResolvedStyle, type ResolvedTheme, type S101Feature, S101_CHART_SECTIONS, S101_FEATURES, S101_ICON_PREFIX, S101_NEW_SYMBOLS, S101_SOURCE_COMMIT, S101_SYMBOL_GROUPS, S101_SYMBOL_NAMES, S52_ATON_LOOKUPS, S52_ATON_LOOKUPS_PAPER, S52_DRAW_ORDER, S52_LOOKUP, S52_PATTERN_SPRITE_PREFIX, SOUNDING_LAYERS, SYMBOL_FAMILIES, SYMBOL_FAMILY_META, SYMBOL_GROUPS, SYMBOL_MAP, type ScaleBand, type SearchCoverageNotice, type SearchHit, type SearchOptions, type SearchResponse, type SectorArcFeature, type SectorArcFeatureCollection, type SectorInfo, type SoundingSettings, type SourceMode, type StyleGeneratorOptions, type StyleLayer, type StyleUrlOptions, type SymbolFamily, type SymbolFamilyMeta, type SymbolGroup, TileAuth, type TileGroup, type TileGroupsResponse, TileTokenError, type TileTokenErrorCode, type TileTokenResponse, type TransformRequest, type TransformedRequest, type VectorSourceSpec, type VesselProfile, WATER_BODY_LAYER_GROUPS, type WaterBodySettings, WeatherEndpoint, type WeatherReading, type WebhookEvent, type WebhookEventType, type WebhookPayload, applyChrtSymbolSet, applyColorTheme, applyCustomStyleSettings, applyRasterSymbolSet, applyS101SymbolSet, atonIconExpression, bandFilterExpression, buildFlashPattern, buildLabelLayer, buildLayersForClass, buildOfflineStyle, buildSectorArcGeoJSON, buildSectorArcsFC, buildSectorsFromFeatures, buildSources, candidateRank, chrtAtonTintExpression, chrtLightTintExpression, collectCandidates, collectClickCandidates, combineWithBandFilter, daymarkColor, decimateFeatures, decodeAreaFeatureProps, decodeBridgeProps, decodeCandidate, decodeNavAidProps, depareColor, depareFillExpression, deriveMarinerName, extractNavAidDesignation, featureIdentity, generateCustomStyle, generateSpriteManifest, generateSpriteSheet, generateStyle, generateStyleJSON, getAvailableLineSymbols, getAvailablePatterns, getAvailablePointSymbols, getCollisionSettings, getDrawPriority, getGridSizeForZoom, getIconExpression, getLabelBehavior, getLabelConfig, getLabelPriority, getLookupEntry, getMaxCellsForZoom, getOrderedClasses, getRasterSvg, getS52SvgString, getS52SymbolStats, getStyleStats, getSymbolSvgString, getThemedS101Svg, getThemedS52Svg, getTopmarkMeaning, hazardColor, hazardFillExpression, iconExpressionForFamily, isLabelLayerVisible, isNavAidLayer, isNavAidLayerVisible, isSoundingLayerVisible, isVisibleInMode, isWaterBodyLayerVisible, labelSortKey, lateralColor, lateralFillExpression, lightColor, lightFillExpression, lightsIconExpression, normalizeStyleMode, normalizeTheme, paginate, parseListCodes, parseSymbolFamily, parseWebhook, patternSpriteId, preprocessLights, preprocessNavAids, preprocessSoundings, preprocessWaterBodies, rasterAtonIconExpression, resolveCustomTheme, resolveRasterImage, resolveS101Color, resolveStyle, resolveTargetClass, sanitizeCustomStyleConfig, scaleSizeValue, scaminToMinZoom, styleModeBand, withinBboxFilter, worldMinusBboxPolygon };
|
|
4308
|
+
export { ALL_NAV_AID_LAYERS, ALL_WATER_BODY_LAYERS, AREA_QUERY_LAYERS, ATON_EXPRESSION_CLASSES, type AheadCoverageCell, type AheadFeatureProperties, type AheadOptions, type AheadResponse, type AlongRouteFeatureProperties, type AlongRouteOptions, type AlongRouteResponse, type AreaInspectResult, type AtlasStyle, type AttachOptions, BAND_DRAW_ORDER, BAND_PRIORITY_RANGES, type BBox, BRIDGE_QUERY_LAYERS, BUILD_MAXZOOM, BUILD_MINZOOM, type BandCode, type BandPriorityRange, type BridgeInspectResult, type BuildOfflineStyleOptions, type BuildSourcesOptions, CHART_BAND_CODES, CHART_CASCADE_CODES, CHART_SECTIONS, CHRTRASTER_REF_CROPS, CHRTRASTER_SVGS, CHRT_ATON_COLORS, CHRT_GLYPH_NAMES, CHRT_GLYPH_SVGS, CHRT_ICON_EXPRESSIONS, CHRT_ICON_PREFIX, CHRT_SDF_GLYPHS, CHRT_STYLE_MODES, type CandidateQueryOptions, type CandidatesEventContext, type CellDeletedEvent, type CellDetail, type CellEventData, type CellNewEvent, type CellUpdatedData, type CellUpdatedEvent, type CellsOptions, type CellsResponse, type ChartSection, Chrt, type ChrtConfig, ChrtError, type ChrtStyleMode, type ChrtStyleOptions, type ChrtStyleTheme, type ChrtSymbolSet, type ClickAnchor, ColorTableName, type CoverageOptions, type CoverageResponse, type CoverageRouteCell, type CoverageRouteOptions, type CoverageRouteResponse, type CoverageSource, type CustomStyleConfig, DEFAULT_CLICK_TOLERANCE, DEFAULT_CUSTOM_STYLE_CONFIG, DEFAULT_INSPECT_CLASS_RANK, DEFAULT_LABEL_SETTINGS, DEFAULT_NAV_AID_SETTINGS, DEFAULT_REGION, DEFAULT_SAFETY_CONTOUR_M, DEFAULT_SOUNDING_SETTINGS, DEFAULT_TILE_BASE_URL, DEFAULT_TILE_REGION, DEFAULT_WATER_BODY_SETTINGS, type DecodedAreaFeature, type DecodedBridge, type DecodedNavAid, type DecodedProperty, type DisplayCategory, type DisplayMode, type FeatureCollection, type FeaturesOptions, type FetchStyleOptions, FileSystemAdapter, type FlashPattern, type FlashPhase, type GenerateCustomStyleOptions, type GeneratedCustomStyle, type GeoJsonFeature, type GeoJsonGeometry, type GeomType, INSPECT_CLASS_RANK, INSPECT_RANK_DEVIATIONS, type InspectCandidate, type InspectCandidateSet, type InspectEnrichment, type InspectEventContext, type InspectNotice, type InspectOptions, type InspectResult, type InspectTargetClass, type InspectableFeature, InteractClient, type InteractEntitlement, InteractError, type InteractErrorCode, type InteractHandle, type InteractMapLike, type InteractMapMouseEvent, LABELED_LAYERS, LABEL_BEHAVIOR, LABEL_LAYER_GROUPS, LABEL_PRIORITY, LAND_REGION, type LabelBehavior, type LabelConfigOptions, type LabelLayerConfig, type LabelSettings, type LookupEntry, type MapLibreStyle, type MapboxStyle, type MapboxVectorSource, type MarineAlert, type MarineAlertsOptions, type MarineAlertsResponse, type MarineConditionsOptions, type MarineConditionsResponse, type MarineForecastOptions, type MarineForecastPeriod, type MarineForecastResponse, type MarineSeas, type MarineStation, type MarineSwellTrain, type MarineWind, type MarineZoneRef, NAUTICAL_SYMBOLS, NAV_AID_LAYER_GROUPS, NAV_AID_QUERY_LAYERS, NON_SOLAS_DISCLAIMER, NON_SOLAS_DISCLAIMER_SHORT, type NauticalCategory, type NauticalSymbol, type NavAidInspectResult, type NavAidSettings, type NearbyMarineStation, type OfflineBundleResponse, type OfflineDownloadOptions, type OfflineDownloadProgress, type OfflineDownloadResult, OfflineError, type OfflineErrorCode, type OfflineFetchStyleOptions, type OfflineHeartbeatOptions, type OfflineRegionSummary, type OfflineRemoveOptions, OfflineStyleError, type OfflineStylePlatform, type OfflineStyleResponse, type PmtilesVectorSource, type QueryFeatureProperties, type QueryOptions, type QueryResponse, RASTER_ATON_CLASSES, RASTER_GLYPH_NAMES, RASTER_ICON_PREFIX, RELIEF_REGION, type ResolvedStyle, type ResolvedTheme, type S101ArtworkProvenance, type S101Feature, S101_AREA_FILL_NAMES, S101_CHART_SECTIONS, S101_FEATURES, S101_ICON_PREFIX, S101_LINE_STYLE_NAMES, S101_NEW_SYMBOLS, S101_NO_OFFICIAL_COUNTERPART, S101_SOURCE_COMMIT, S101_SYMBOL_GROUPS, S101_SYMBOL_NAMES, S52_ATON_LOOKUPS, S52_ATON_LOOKUPS_PAPER, S52_DRAW_ORDER, S52_LOOKUP, S52_PATTERN_SPRITE_PREFIX, SOUNDING_LAYERS, SYMBOL_FAMILIES, SYMBOL_FAMILY_META, SYMBOL_GROUPS, SYMBOL_MAP, type ScaleBand, type SearchCoverageNotice, type SearchHit, type SearchOptions, type SearchResponse, type SectorArcFeature, type SectorArcFeatureCollection, type SectorInfo, type SoundingSettings, type SourceMode, type StyleGeneratorOptions, type StyleLayer, type StyleUrlOptions, type SymbolFamily, type SymbolFamilyMeta, type SymbolGroup, TileAuth, type TileGroup, type TileGroupsResponse, TileTokenError, type TileTokenErrorCode, type TileTokenResponse, type TransformRequest, type TransformedRequest, type VectorSourceSpec, type VesselProfile, WATER_BODY_LAYER_GROUPS, type WaterBodySettings, WeatherEndpoint, type WeatherReading, type WebhookEvent, type WebhookEventType, type WebhookPayload, applyChrtSymbolSet, applyColorTheme, applyCustomStyleSettings, applyRasterSymbolSet, applyS101SymbolSet, atonIconExpression, bandFilterExpression, buildFlashPattern, buildLabelLayer, buildLayersForClass, buildOfflineStyle, buildSectorArcGeoJSON, buildSectorArcsFC, buildSectorsFromFeatures, buildSources, candidateRank, chrtAtonTintExpression, chrtLightTintExpression, collectCandidates, collectClickCandidates, combineWithBandFilter, daymarkColor, decimateFeatures, decodeAreaFeatureProps, decodeBridgeProps, decodeCandidate, decodeNavAidProps, depareColor, depareFillExpression, deriveMarinerName, extractNavAidDesignation, featureIdentity, generateCustomStyle, generateSpriteManifest, generateSpriteSheet, generateStyle, generateStyleJSON, getAvailableLineSymbols, getAvailablePatterns, getAvailablePointSymbols, getCollisionSettings, getDrawPriority, getGridSizeForZoom, getIconExpression, getLabelBehavior, getLabelConfig, getLabelPriority, getLookupEntry, getMaxCellsForZoom, getOrderedClasses, getRasterSvg, getS52SvgString, getS52SymbolStats, getStyleStats, getSymbolSvgString, getThemedS101Svg, getThemedS52Svg, getTopmarkMeaning, hazardColor, hazardFillExpression, iconExpressionForFamily, isLabelLayerVisible, isNavAidLayer, isNavAidLayerVisible, isSoundingLayerVisible, isVisibleInMode, isWaterBodyLayerVisible, labelSortKey, lateralColor, lateralFillExpression, lightColor, lightFillExpression, lightsIconExpression, normalizeStyleMode, normalizeTheme, paginate, parseListCodes, parseSymbolFamily, parseWebhook, patternSpriteId, preprocessLights, preprocessNavAids, preprocessSoundings, preprocessWaterBodies, rasterAtonIconExpression, resolveCustomTheme, resolveRasterImage, resolveS101Color, resolveStyle, resolveTargetClass, s101ArtworkProvenance, sanitizeCustomStyleConfig, scaleSizeValue, scaminToMinZoom, styleModeBand, withinBboxFilter, worldMinusBboxPolygon };
|
package/dist/index.d.ts
CHANGED
|
@@ -1380,6 +1380,25 @@ interface StyleUrlOptions {
|
|
|
1380
1380
|
* `CHRT_STYLE_MODES`). The served document echoes the resolved mode in
|
|
1381
1381
|
* `metadata["chrt:render-mode"]` and the `X-Style-Mode` header. */
|
|
1382
1382
|
mode?: ChrtStyleMode;
|
|
1383
|
+
/** Draw the CHRTland land base under the chart (default off). Adds the
|
|
1384
|
+
* `CHRT_LAND` source and a dozen `chrtland-*` layers, all beneath every
|
|
1385
|
+
* S-57 class so land can never occlude a portrayal.
|
|
1386
|
+
*
|
|
1387
|
+
* **CHRTland is not chart data and does not come from a hydrographic
|
|
1388
|
+
* office** — never present its shoreline to a mariner as charted.
|
|
1389
|
+
*
|
|
1390
|
+
* Needs `CHRT_LAND` on the tile token, which follows the chart sources
|
|
1391
|
+
* your key holds; without it the style request is a 403
|
|
1392
|
+
* `region_not_licensed` rather than a document with dead sources. */
|
|
1393
|
+
land?: boolean;
|
|
1394
|
+
/** Add CHRTland's terrarium hillshade (default off). Separately opt-in
|
|
1395
|
+
* from {@link land} and requires it — `relief` alone is a 400
|
|
1396
|
+
* `relief_requires_land`.
|
|
1397
|
+
*
|
|
1398
|
+
* It also needs a `CHRT_RELIEF` grant that no chart source issues yet,
|
|
1399
|
+
* so this currently returns 403 for every key. It will start working
|
|
1400
|
+
* with no SDK change once that grant ships. */
|
|
1401
|
+
relief?: boolean;
|
|
1383
1402
|
}
|
|
1384
1403
|
interface FetchStyleOptions extends StyleUrlOptions {
|
|
1385
1404
|
signal?: AbortSignal;
|
|
@@ -2708,7 +2727,12 @@ declare function buildLabelLayer(layerId: string, sourceId: string, config: Labe
|
|
|
2708
2727
|
declare function preprocessSoundings(fc: GeoJSON.FeatureCollection): GeoJSON.FeatureCollection;
|
|
2709
2728
|
/**
|
|
2710
2729
|
* Pre-process LIGHTS GeoJSON to derive compact light characteristic labels.
|
|
2711
|
-
* Adds `_lightLabel` property (e.g., "Fl
|
|
2730
|
+
* Adds `_lightLabel` property (e.g., "Fl(2) WR 4s 5M").
|
|
2731
|
+
*
|
|
2732
|
+
* KEEP IN STEP WITH `buildLightLabelExpression()` in layer-builder.ts — that
|
|
2733
|
+
* is the same label built as a GL expression for the tile path, which has no
|
|
2734
|
+
* JS preprocessing step. `light-label-parity.test.ts` asserts the two agree
|
|
2735
|
+
* on real tile features; if you change one, change both.
|
|
2712
2736
|
*/
|
|
2713
2737
|
declare function preprocessLights(fc: GeoJSON.FeatureCollection): GeoJSON.FeatureCollection;
|
|
2714
2738
|
/** List of layers that have labels */
|
|
@@ -2984,7 +3008,26 @@ interface PmtilesVectorSource {
|
|
|
2984
3008
|
minzoom: number;
|
|
2985
3009
|
maxzoom: number;
|
|
2986
3010
|
}
|
|
3011
|
+
/**
|
|
3012
|
+
* Terrarium elevation, served as PNG from `CHRT_RELIEF`. Separate from the
|
|
3013
|
+
* vector shapes because MapLibre needs `type: "raster-dem"` and an explicit
|
|
3014
|
+
* `encoding` — a raster-dem source read as a plain raster renders the encoded
|
|
3015
|
+
* RGB as a garish false-colour image rather than as elevation.
|
|
3016
|
+
*/
|
|
3017
|
+
interface RasterDemSource {
|
|
3018
|
+
type: "raster-dem";
|
|
3019
|
+
tiles: string[];
|
|
3020
|
+
encoding: "terrarium";
|
|
3021
|
+
tileSize: number;
|
|
3022
|
+
minzoom: number;
|
|
3023
|
+
maxzoom: number;
|
|
3024
|
+
}
|
|
2987
3025
|
type VectorSourceSpec = MapboxVectorSource | PmtilesVectorSource;
|
|
3026
|
+
type AnySourceSpec = VectorSourceSpec | RasterDemSource;
|
|
3027
|
+
/** CHRTland's vector land base. ADR 0023: its own archive, never chart data. */
|
|
3028
|
+
declare const LAND_REGION = "CHRT_LAND";
|
|
3029
|
+
/** CHRTland's terrarium relief. */
|
|
3030
|
+
declare const RELIEF_REGION = "CHRT_RELIEF";
|
|
2988
3031
|
type SourceMode = "mapbox" | "pmtiles";
|
|
2989
3032
|
/** Canonical source id used in `generateStyle()` — matches the region name
|
|
2990
3033
|
* of the one consolidated PMTiles served by the tile-worker for this region. */
|
|
@@ -3001,6 +3044,17 @@ interface BuildSourcesOptions {
|
|
|
3001
3044
|
buildTag?: string;
|
|
3002
3045
|
/** Override tile-worker origin (e.g. staging). Default: DEFAULT_TILE_BASE_URL. */
|
|
3003
3046
|
tileBaseUrl?: string;
|
|
3047
|
+
/**
|
|
3048
|
+
* Emit the CHRTland vector land base as a second source (ADR 0023). Off by
|
|
3049
|
+
* default: it costs a source, and the region must be granted on the token.
|
|
3050
|
+
*/
|
|
3051
|
+
land?: boolean;
|
|
3052
|
+
/**
|
|
3053
|
+
* Emit CHRTland's terrarium relief as a raster-dem source. Separate from
|
|
3054
|
+
* `land` because relief needs a raster-capable worker AND a grant that
|
|
3055
|
+
* `land-regions.ts` still withholds.
|
|
3056
|
+
*/
|
|
3057
|
+
relief?: boolean;
|
|
3004
3058
|
}
|
|
3005
3059
|
/**
|
|
3006
3060
|
* Build the "sources" block for a CHRT style.
|
|
@@ -3010,7 +3064,7 @@ interface BuildSourcesOptions {
|
|
|
3010
3064
|
* routed by the Worker to the one consolidated PMTiles:
|
|
3011
3065
|
* `${tileBaseUrl}/v1/tiles/{region}/{z}/{x}/{y}.mvt`
|
|
3012
3066
|
*/
|
|
3013
|
-
declare function buildSources(opts?: BuildSourcesOptions): Record<string,
|
|
3067
|
+
declare function buildSources(opts?: BuildSourcesOptions): Record<string, AnySourceSpec>;
|
|
3014
3068
|
|
|
3015
3069
|
/**
|
|
3016
3070
|
* Builds Mapbox GL Style layer specs from S-52 lookup entries.
|
|
@@ -3248,7 +3302,32 @@ declare const S101_SOURCE_COMMIT = "05063500e898544c90078ab78a61efc72b7e62f3";
|
|
|
3248
3302
|
declare const S101_ICON_PREFIX = "s101:";
|
|
3249
3303
|
/** All vendored S-101 symbol names (unprefixed). */
|
|
3250
3304
|
declare const S101_SYMBOL_NAMES: ReadonlySet<string>;
|
|
3251
|
-
/**
|
|
3305
|
+
/**
|
|
3306
|
+
* Symbols the generated style references that have **no official S-101
|
|
3307
|
+
* counterpart** in the Portrayal Catalogue, and therefore keep their S-52
|
|
3308
|
+
* artwork under `?symbols=s101`.
|
|
3309
|
+
*
|
|
3310
|
+
* These are deliberate, not gaps in the vendoring: the catalogue at the
|
|
3311
|
+
* pinned commit defines no symbol of the same name, and inventing an
|
|
3312
|
+
* equivalence (e.g. SISTAT02 → SISTAT03, WATTUR01 → WATTUR02) would be a
|
|
3313
|
+
* portrayal judgement, not a direct replica of the standard. The S-101
|
|
3314
|
+
* rule engine (the later 7c phase) is what will resolve these properly —
|
|
3315
|
+
* it selects symbols by rule rather than by S-52 name identity.
|
|
3316
|
+
*
|
|
3317
|
+
* DNGCIR01 / LNDMRK18 / LNDMRK19 / RADRFL03 — the catalogue defines no
|
|
3318
|
+
* DNGCIR, LNDMRK or RADRFL symbols at all. (RETRFL01/02 *are* defined,
|
|
3319
|
+
* so the retroreflector class needs no exemption.)
|
|
3320
|
+
* UWTROC01 / SISTAT02 / WATTUR01 — only differently-numbered siblings
|
|
3321
|
+
* exist (UWTROC03/04, SISTAT03, WATTUR02); the number encodes a
|
|
3322
|
+
* different portrayal case.
|
|
3323
|
+
* LIGHTHOUSE01 — a CHRT-local symbol name with no PresLib/S-101 analogue.
|
|
3324
|
+
*
|
|
3325
|
+
* Pinned by `s101-style.test.ts` so the set can only shrink deliberately
|
|
3326
|
+
* (e.g. when re-pinned to an in-force catalogue edition that adds them).
|
|
3327
|
+
*/
|
|
3328
|
+
declare const S101_NO_OFFICIAL_COUNTERPART: ReadonlySet<string>;
|
|
3329
|
+
/** Resolve an S-101 colour token via the official profile for `table`.
|
|
3330
|
+
* An unknown token warns (see `reportUnresolvedToken`) before falling back. */
|
|
3252
3331
|
declare function resolveS101Color(token: string, table?: ColorTableName): string;
|
|
3253
3332
|
/**
|
|
3254
3333
|
* Get an S-101 symbol SVG with its colour tokens resolved through the
|
|
@@ -3256,10 +3335,64 @@ declare function resolveS101Color(token: string, table?: ColorTableName): string
|
|
|
3256
3335
|
*/
|
|
3257
3336
|
declare function getThemedS101Svg(symbolName: string, table?: ColorTableName): string | null;
|
|
3258
3337
|
/**
|
|
3259
|
-
*
|
|
3260
|
-
*
|
|
3261
|
-
*
|
|
3262
|
-
*
|
|
3338
|
+
* Where a symbol's artwork actually comes from under `?symbols=s101`.
|
|
3339
|
+
*
|
|
3340
|
+
* - `official` — the vendored IHO S-101 Portrayal Catalogue file.
|
|
3341
|
+
* - `s52-substitute`— the catalogue defines no symbol of this name, so S-52
|
|
3342
|
+
* artwork is drawn instead (the pinned exemption set).
|
|
3343
|
+
* - `chrt-drawn` — neither; a CHRT-authored approximation. `S101_NEW_SYMBOLS`
|
|
3344
|
+
* in `s101-symbols.ts` is this, and it is NOT official
|
|
3345
|
+
* artwork despite living under an S-101 name.
|
|
3346
|
+
*
|
|
3347
|
+
* Exported because any surface that *displays* S-101 symbology has to be able
|
|
3348
|
+
* to say which of the three it is showing. Presenting a substitute or an
|
|
3349
|
+
* approximation as catalogue artwork is the same silent-fallback defect as a
|
|
3350
|
+
* chart quietly dropping a symbol — see the parity audit.
|
|
3351
|
+
*/
|
|
3352
|
+
type S101ArtworkProvenance = "official" | "s52-substitute" | "chrt-drawn";
|
|
3353
|
+
/** Classify a symbol name's artwork provenance. `symbolName` is the S-52
|
|
3354
|
+
* PresLib name (e.g. `BOYCAN01`), which is how every set here is keyed.
|
|
3355
|
+
*
|
|
3356
|
+
* The `s52-substitute` test is "does real S-52 artwork exist for this name",
|
|
3357
|
+
* NOT "is it in the pinned exemption set" — that set only covers names the
|
|
3358
|
+
* generated style references, and a display surface (the Atlas) shows many
|
|
3359
|
+
* that it does not. Keying off the exemption set alone would misreport every
|
|
3360
|
+
* one of those as a CHRT drawing. */
|
|
3361
|
+
declare function s101ArtworkProvenance(symbolName: string | undefined): S101ArtworkProvenance;
|
|
3362
|
+
/**
|
|
3363
|
+
* Official S-101 **area fill** names available to the rewrite below.
|
|
3364
|
+
*
|
|
3365
|
+
* **Empty, and that is the finding — not an oversight in this file.** The
|
|
3366
|
+
* upstream `PortrayalCatalog/` ships `AreaFills/` and `LineStyles/` alongside
|
|
3367
|
+
* `Symbols/`, but `PROVENANCE.md` records that only `Symbols/` was ever
|
|
3368
|
+
* vendored, and `gen-s101-svgs.ts` reads that one directory. So every area
|
|
3369
|
+
* fill and complex line under `?symbols=s101` is still S-52 artwork:
|
|
3370
|
+
* `AP:CBLARE01`, `AP:MARSHES1`, `AP:PIPARE01`, `AP:VEGATN03`, `AP:VEGATN04`,
|
|
3371
|
+
* `LC:CBLARE51`, `LC:CBLSUB06`, `LC:PIPSOL05`, `LC:PIPSOL06`.
|
|
3372
|
+
*
|
|
3373
|
+
* These sets are declared rather than assumed so the omission is *typed and
|
|
3374
|
+
* measurable* instead of invisible: `applyS101SymbolSet` now walks pattern
|
|
3375
|
+
* references too, the coverage metadata below reports the real ratio, and
|
|
3376
|
+
* `s101-parity.test.ts` pins it at 0. Vendor the two directories, populate
|
|
3377
|
+
* these sets, and every count moves on its own — no other change required.
|
|
3378
|
+
*/
|
|
3379
|
+
declare const S101_AREA_FILL_NAMES: ReadonlySet<string>;
|
|
3380
|
+
/** Official S-101 **line style** names available to the rewrite. Empty for the
|
|
3381
|
+
* same reason as `S101_AREA_FILL_NAMES` — see that doc comment. */
|
|
3382
|
+
declare const S101_LINE_STYLE_NAMES: ReadonlySet<string>;
|
|
3383
|
+
/**
|
|
3384
|
+
* Switch a generated style document to the S-101 symbol set.
|
|
3385
|
+
*
|
|
3386
|
+
* Covers all three ways a GL style names an image — `icon-image`,
|
|
3387
|
+
* `fill-pattern` and `line-pattern`. Names without official S-101 artwork keep
|
|
3388
|
+
* their S-52 image (both sets are loaded by `loadChartSymbolImages`), so
|
|
3389
|
+
* coverage can only grow as the catalogue is vendored further.
|
|
3390
|
+
*
|
|
3391
|
+
* Emits `chrt:s101-coverage` so a consumer can tell *how* S-101 the document
|
|
3392
|
+
* it just fetched actually is. Before this existed the answer was
|
|
3393
|
+
* unobtainable without decoding the style yourself, which is how "s101" read
|
|
3394
|
+
* as complete when its areas and lines were entirely S-52.
|
|
3395
|
+
* Returns the same style object (mutated), for chaining.
|
|
3263
3396
|
*/
|
|
3264
3397
|
declare function applyS101SymbolSet(style: MapboxStyle): MapboxStyle;
|
|
3265
3398
|
|
|
@@ -4172,4 +4305,4 @@ declare class Chrt {
|
|
|
4172
4305
|
warmTiles(region?: string): Promise<void>;
|
|
4173
4306
|
}
|
|
4174
4307
|
|
|
4175
|
-
export { ALL_NAV_AID_LAYERS, ALL_WATER_BODY_LAYERS, AREA_QUERY_LAYERS, ATON_EXPRESSION_CLASSES, type AheadCoverageCell, type AheadFeatureProperties, type AheadOptions, type AheadResponse, type AlongRouteFeatureProperties, type AlongRouteOptions, type AlongRouteResponse, type AreaInspectResult, type AtlasStyle, type AttachOptions, BAND_DRAW_ORDER, BAND_PRIORITY_RANGES, type BBox, BRIDGE_QUERY_LAYERS, BUILD_MAXZOOM, BUILD_MINZOOM, type BandCode, type BandPriorityRange, type BridgeInspectResult, type BuildOfflineStyleOptions, type BuildSourcesOptions, CHART_BAND_CODES, CHART_CASCADE_CODES, CHART_SECTIONS, CHRTRASTER_REF_CROPS, CHRTRASTER_SVGS, CHRT_ATON_COLORS, CHRT_GLYPH_NAMES, CHRT_GLYPH_SVGS, CHRT_ICON_EXPRESSIONS, CHRT_ICON_PREFIX, CHRT_SDF_GLYPHS, CHRT_STYLE_MODES, type CandidateQueryOptions, type CandidatesEventContext, type CellDeletedEvent, type CellDetail, type CellEventData, type CellNewEvent, type CellUpdatedData, type CellUpdatedEvent, type CellsOptions, type CellsResponse, type ChartSection, Chrt, type ChrtConfig, ChrtError, type ChrtStyleMode, type ChrtStyleOptions, type ChrtStyleTheme, type ChrtSymbolSet, type ClickAnchor, ColorTableName, type CoverageOptions, type CoverageResponse, type CoverageRouteCell, type CoverageRouteOptions, type CoverageRouteResponse, type CoverageSource, type CustomStyleConfig, DEFAULT_CLICK_TOLERANCE, DEFAULT_CUSTOM_STYLE_CONFIG, DEFAULT_INSPECT_CLASS_RANK, DEFAULT_LABEL_SETTINGS, DEFAULT_NAV_AID_SETTINGS, DEFAULT_REGION, DEFAULT_SAFETY_CONTOUR_M, DEFAULT_SOUNDING_SETTINGS, DEFAULT_TILE_BASE_URL, DEFAULT_TILE_REGION, DEFAULT_WATER_BODY_SETTINGS, type DecodedAreaFeature, type DecodedBridge, type DecodedNavAid, type DecodedProperty, type DisplayCategory, type DisplayMode, type FeatureCollection, type FeaturesOptions, type FetchStyleOptions, FileSystemAdapter, type FlashPattern, type FlashPhase, type GenerateCustomStyleOptions, type GeneratedCustomStyle, type GeoJsonFeature, type GeoJsonGeometry, type GeomType, INSPECT_CLASS_RANK, INSPECT_RANK_DEVIATIONS, type InspectCandidate, type InspectCandidateSet, type InspectEnrichment, type InspectEventContext, type InspectNotice, type InspectOptions, type InspectResult, type InspectTargetClass, type InspectableFeature, InteractClient, type InteractEntitlement, InteractError, type InteractErrorCode, type InteractHandle, type InteractMapLike, type InteractMapMouseEvent, LABELED_LAYERS, LABEL_BEHAVIOR, LABEL_LAYER_GROUPS, LABEL_PRIORITY, type LabelBehavior, type LabelConfigOptions, type LabelLayerConfig, type LabelSettings, type LookupEntry, type MapLibreStyle, type MapboxStyle, type MapboxVectorSource, type MarineAlert, type MarineAlertsOptions, type MarineAlertsResponse, type MarineConditionsOptions, type MarineConditionsResponse, type MarineForecastOptions, type MarineForecastPeriod, type MarineForecastResponse, type MarineSeas, type MarineStation, type MarineSwellTrain, type MarineWind, type MarineZoneRef, NAUTICAL_SYMBOLS, NAV_AID_LAYER_GROUPS, NAV_AID_QUERY_LAYERS, NON_SOLAS_DISCLAIMER, NON_SOLAS_DISCLAIMER_SHORT, type NauticalCategory, type NauticalSymbol, type NavAidInspectResult, type NavAidSettings, type NearbyMarineStation, type OfflineBundleResponse, type OfflineDownloadOptions, type OfflineDownloadProgress, type OfflineDownloadResult, OfflineError, type OfflineErrorCode, type OfflineFetchStyleOptions, type OfflineHeartbeatOptions, type OfflineRegionSummary, type OfflineRemoveOptions, OfflineStyleError, type OfflineStylePlatform, type OfflineStyleResponse, type PmtilesVectorSource, type QueryFeatureProperties, type QueryOptions, type QueryResponse, RASTER_ATON_CLASSES, RASTER_GLYPH_NAMES, RASTER_ICON_PREFIX, type ResolvedStyle, type ResolvedTheme, type S101Feature, S101_CHART_SECTIONS, S101_FEATURES, S101_ICON_PREFIX, S101_NEW_SYMBOLS, S101_SOURCE_COMMIT, S101_SYMBOL_GROUPS, S101_SYMBOL_NAMES, S52_ATON_LOOKUPS, S52_ATON_LOOKUPS_PAPER, S52_DRAW_ORDER, S52_LOOKUP, S52_PATTERN_SPRITE_PREFIX, SOUNDING_LAYERS, SYMBOL_FAMILIES, SYMBOL_FAMILY_META, SYMBOL_GROUPS, SYMBOL_MAP, type ScaleBand, type SearchCoverageNotice, type SearchHit, type SearchOptions, type SearchResponse, type SectorArcFeature, type SectorArcFeatureCollection, type SectorInfo, type SoundingSettings, type SourceMode, type StyleGeneratorOptions, type StyleLayer, type StyleUrlOptions, type SymbolFamily, type SymbolFamilyMeta, type SymbolGroup, TileAuth, type TileGroup, type TileGroupsResponse, TileTokenError, type TileTokenErrorCode, type TileTokenResponse, type TransformRequest, type TransformedRequest, type VectorSourceSpec, type VesselProfile, WATER_BODY_LAYER_GROUPS, type WaterBodySettings, WeatherEndpoint, type WeatherReading, type WebhookEvent, type WebhookEventType, type WebhookPayload, applyChrtSymbolSet, applyColorTheme, applyCustomStyleSettings, applyRasterSymbolSet, applyS101SymbolSet, atonIconExpression, bandFilterExpression, buildFlashPattern, buildLabelLayer, buildLayersForClass, buildOfflineStyle, buildSectorArcGeoJSON, buildSectorArcsFC, buildSectorsFromFeatures, buildSources, candidateRank, chrtAtonTintExpression, chrtLightTintExpression, collectCandidates, collectClickCandidates, combineWithBandFilter, daymarkColor, decimateFeatures, decodeAreaFeatureProps, decodeBridgeProps, decodeCandidate, decodeNavAidProps, depareColor, depareFillExpression, deriveMarinerName, extractNavAidDesignation, featureIdentity, generateCustomStyle, generateSpriteManifest, generateSpriteSheet, generateStyle, generateStyleJSON, getAvailableLineSymbols, getAvailablePatterns, getAvailablePointSymbols, getCollisionSettings, getDrawPriority, getGridSizeForZoom, getIconExpression, getLabelBehavior, getLabelConfig, getLabelPriority, getLookupEntry, getMaxCellsForZoom, getOrderedClasses, getRasterSvg, getS52SvgString, getS52SymbolStats, getStyleStats, getSymbolSvgString, getThemedS101Svg, getThemedS52Svg, getTopmarkMeaning, hazardColor, hazardFillExpression, iconExpressionForFamily, isLabelLayerVisible, isNavAidLayer, isNavAidLayerVisible, isSoundingLayerVisible, isVisibleInMode, isWaterBodyLayerVisible, labelSortKey, lateralColor, lateralFillExpression, lightColor, lightFillExpression, lightsIconExpression, normalizeStyleMode, normalizeTheme, paginate, parseListCodes, parseSymbolFamily, parseWebhook, patternSpriteId, preprocessLights, preprocessNavAids, preprocessSoundings, preprocessWaterBodies, rasterAtonIconExpression, resolveCustomTheme, resolveRasterImage, resolveS101Color, resolveStyle, resolveTargetClass, sanitizeCustomStyleConfig, scaleSizeValue, scaminToMinZoom, styleModeBand, withinBboxFilter, worldMinusBboxPolygon };
|
|
4308
|
+
export { ALL_NAV_AID_LAYERS, ALL_WATER_BODY_LAYERS, AREA_QUERY_LAYERS, ATON_EXPRESSION_CLASSES, type AheadCoverageCell, type AheadFeatureProperties, type AheadOptions, type AheadResponse, type AlongRouteFeatureProperties, type AlongRouteOptions, type AlongRouteResponse, type AreaInspectResult, type AtlasStyle, type AttachOptions, BAND_DRAW_ORDER, BAND_PRIORITY_RANGES, type BBox, BRIDGE_QUERY_LAYERS, BUILD_MAXZOOM, BUILD_MINZOOM, type BandCode, type BandPriorityRange, type BridgeInspectResult, type BuildOfflineStyleOptions, type BuildSourcesOptions, CHART_BAND_CODES, CHART_CASCADE_CODES, CHART_SECTIONS, CHRTRASTER_REF_CROPS, CHRTRASTER_SVGS, CHRT_ATON_COLORS, CHRT_GLYPH_NAMES, CHRT_GLYPH_SVGS, CHRT_ICON_EXPRESSIONS, CHRT_ICON_PREFIX, CHRT_SDF_GLYPHS, CHRT_STYLE_MODES, type CandidateQueryOptions, type CandidatesEventContext, type CellDeletedEvent, type CellDetail, type CellEventData, type CellNewEvent, type CellUpdatedData, type CellUpdatedEvent, type CellsOptions, type CellsResponse, type ChartSection, Chrt, type ChrtConfig, ChrtError, type ChrtStyleMode, type ChrtStyleOptions, type ChrtStyleTheme, type ChrtSymbolSet, type ClickAnchor, ColorTableName, type CoverageOptions, type CoverageResponse, type CoverageRouteCell, type CoverageRouteOptions, type CoverageRouteResponse, type CoverageSource, type CustomStyleConfig, DEFAULT_CLICK_TOLERANCE, DEFAULT_CUSTOM_STYLE_CONFIG, DEFAULT_INSPECT_CLASS_RANK, DEFAULT_LABEL_SETTINGS, DEFAULT_NAV_AID_SETTINGS, DEFAULT_REGION, DEFAULT_SAFETY_CONTOUR_M, DEFAULT_SOUNDING_SETTINGS, DEFAULT_TILE_BASE_URL, DEFAULT_TILE_REGION, DEFAULT_WATER_BODY_SETTINGS, type DecodedAreaFeature, type DecodedBridge, type DecodedNavAid, type DecodedProperty, type DisplayCategory, type DisplayMode, type FeatureCollection, type FeaturesOptions, type FetchStyleOptions, FileSystemAdapter, type FlashPattern, type FlashPhase, type GenerateCustomStyleOptions, type GeneratedCustomStyle, type GeoJsonFeature, type GeoJsonGeometry, type GeomType, INSPECT_CLASS_RANK, INSPECT_RANK_DEVIATIONS, type InspectCandidate, type InspectCandidateSet, type InspectEnrichment, type InspectEventContext, type InspectNotice, type InspectOptions, type InspectResult, type InspectTargetClass, type InspectableFeature, InteractClient, type InteractEntitlement, InteractError, type InteractErrorCode, type InteractHandle, type InteractMapLike, type InteractMapMouseEvent, LABELED_LAYERS, LABEL_BEHAVIOR, LABEL_LAYER_GROUPS, LABEL_PRIORITY, LAND_REGION, type LabelBehavior, type LabelConfigOptions, type LabelLayerConfig, type LabelSettings, type LookupEntry, type MapLibreStyle, type MapboxStyle, type MapboxVectorSource, type MarineAlert, type MarineAlertsOptions, type MarineAlertsResponse, type MarineConditionsOptions, type MarineConditionsResponse, type MarineForecastOptions, type MarineForecastPeriod, type MarineForecastResponse, type MarineSeas, type MarineStation, type MarineSwellTrain, type MarineWind, type MarineZoneRef, NAUTICAL_SYMBOLS, NAV_AID_LAYER_GROUPS, NAV_AID_QUERY_LAYERS, NON_SOLAS_DISCLAIMER, NON_SOLAS_DISCLAIMER_SHORT, type NauticalCategory, type NauticalSymbol, type NavAidInspectResult, type NavAidSettings, type NearbyMarineStation, type OfflineBundleResponse, type OfflineDownloadOptions, type OfflineDownloadProgress, type OfflineDownloadResult, OfflineError, type OfflineErrorCode, type OfflineFetchStyleOptions, type OfflineHeartbeatOptions, type OfflineRegionSummary, type OfflineRemoveOptions, OfflineStyleError, type OfflineStylePlatform, type OfflineStyleResponse, type PmtilesVectorSource, type QueryFeatureProperties, type QueryOptions, type QueryResponse, RASTER_ATON_CLASSES, RASTER_GLYPH_NAMES, RASTER_ICON_PREFIX, RELIEF_REGION, type ResolvedStyle, type ResolvedTheme, type S101ArtworkProvenance, type S101Feature, S101_AREA_FILL_NAMES, S101_CHART_SECTIONS, S101_FEATURES, S101_ICON_PREFIX, S101_LINE_STYLE_NAMES, S101_NEW_SYMBOLS, S101_NO_OFFICIAL_COUNTERPART, S101_SOURCE_COMMIT, S101_SYMBOL_GROUPS, S101_SYMBOL_NAMES, S52_ATON_LOOKUPS, S52_ATON_LOOKUPS_PAPER, S52_DRAW_ORDER, S52_LOOKUP, S52_PATTERN_SPRITE_PREFIX, SOUNDING_LAYERS, SYMBOL_FAMILIES, SYMBOL_FAMILY_META, SYMBOL_GROUPS, SYMBOL_MAP, type ScaleBand, type SearchCoverageNotice, type SearchHit, type SearchOptions, type SearchResponse, type SectorArcFeature, type SectorArcFeatureCollection, type SectorInfo, type SoundingSettings, type SourceMode, type StyleGeneratorOptions, type StyleLayer, type StyleUrlOptions, type SymbolFamily, type SymbolFamilyMeta, type SymbolGroup, TileAuth, type TileGroup, type TileGroupsResponse, TileTokenError, type TileTokenErrorCode, type TileTokenResponse, type TransformRequest, type TransformedRequest, type VectorSourceSpec, type VesselProfile, WATER_BODY_LAYER_GROUPS, type WaterBodySettings, WeatherEndpoint, type WeatherReading, type WebhookEvent, type WebhookEventType, type WebhookPayload, applyChrtSymbolSet, applyColorTheme, applyCustomStyleSettings, applyRasterSymbolSet, applyS101SymbolSet, atonIconExpression, bandFilterExpression, buildFlashPattern, buildLabelLayer, buildLayersForClass, buildOfflineStyle, buildSectorArcGeoJSON, buildSectorArcsFC, buildSectorsFromFeatures, buildSources, candidateRank, chrtAtonTintExpression, chrtLightTintExpression, collectCandidates, collectClickCandidates, combineWithBandFilter, daymarkColor, decimateFeatures, decodeAreaFeatureProps, decodeBridgeProps, decodeCandidate, decodeNavAidProps, depareColor, depareFillExpression, deriveMarinerName, extractNavAidDesignation, featureIdentity, generateCustomStyle, generateSpriteManifest, generateSpriteSheet, generateStyle, generateStyleJSON, getAvailableLineSymbols, getAvailablePatterns, getAvailablePointSymbols, getCollisionSettings, getDrawPriority, getGridSizeForZoom, getIconExpression, getLabelBehavior, getLabelConfig, getLabelPriority, getLookupEntry, getMaxCellsForZoom, getOrderedClasses, getRasterSvg, getS52SvgString, getS52SymbolStats, getStyleStats, getSymbolSvgString, getThemedS101Svg, getThemedS52Svg, getTopmarkMeaning, hazardColor, hazardFillExpression, iconExpressionForFamily, isLabelLayerVisible, isNavAidLayer, isNavAidLayerVisible, isSoundingLayerVisible, isVisibleInMode, isWaterBodyLayerVisible, labelSortKey, lateralColor, lateralFillExpression, lightColor, lightFillExpression, lightsIconExpression, normalizeStyleMode, normalizeTheme, paginate, parseListCodes, parseSymbolFamily, parseWebhook, patternSpriteId, preprocessLights, preprocessNavAids, preprocessSoundings, preprocessWaterBodies, rasterAtonIconExpression, resolveCustomTheme, resolveRasterImage, resolveS101Color, resolveStyle, resolveTargetClass, s101ArtworkProvenance, sanitizeCustomStyleConfig, scaleSizeValue, scaminToMinZoom, styleModeBand, withinBboxFilter, worldMinusBboxPolygon };
|