@tileflow/core 0.1.0-alpha.20 → 0.1.0-alpha.21
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/GENERATED_OUTPUT_LICENSE.md +21 -0
- package/LICENSE +201 -0
- package/NOTICE +9 -0
- package/README.md +969 -142
- package/THIRD_PARTY_NOTICES.md +185 -0
- package/TRADEMARKS.md +10 -0
- package/dist/browser.d.ts +105 -2
- package/dist/browser.js +3135 -11
- package/dist/build.d.ts +195 -0
- package/dist/build.js +12254 -0
- package/dist/capture-scene-BK_0J2oR.d.ts +161 -0
- package/dist/capture.d.ts +9 -0
- package/dist/capture.js +206 -0
- package/dist/domains-CPSrdTik.d.ts +4 -0
- package/dist/index.d.ts +180 -182
- package/dist/index.js +12259 -4245
- package/dist/manifest.d.ts +3 -0
- package/dist/manifest.js +229 -0
- package/dist/recipe.d.ts +66 -0
- package/dist/recipe.js +577 -0
- package/dist/requirements-BV77ZVhR.d.ts +491 -0
- package/dist/runtime-C4MtSzkB.d.ts +223 -0
- package/dist/runtime.d.ts +3 -0
- package/dist/runtime.js +1117 -0
- package/dist/types-DlUGI6LC.d.ts +525 -0
- package/dist/visual-semantics-DTC-8Hsb.d.ts +479 -0
- package/package.json +40 -5
- package/dist/runtime-DroKDIuB.d.ts +0 -1069
package/dist/index.d.ts
CHANGED
|
@@ -1,170 +1,137 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { m as TileflowDerivedMap, n as TileflowMapScene, o as TileflowRootMap, T as TileflowMap, p as ResolveMapOptions, R as ResolvedTileflowMap } from './requirements-BV77ZVhR.js';
|
|
2
|
+
export { q as ResolvedBathymetry, r as ResolvedBathymetryRelief, s as ResolvedMarine, t as ResolvedMarineSource, u as ResolvedTileflowTheme, w as ResolvedTileflowThemeTokens, x as TileflowBathymetryConfig, y as TileflowBathymetryDemSourceIdentity, z as TileflowBathymetryDisplay, A as TileflowBathymetryOptions, B as TileflowBathymetryReliefConfig, e as TileflowDataCompatibilityIssue, f as TileflowDataFieldRequirement, g as TileflowDataFieldType, h as TileflowDataLayerRequirement, a as TileflowDataRequirementsV1, C as TileflowFontDirectory, D as TileflowGlyphs, E as TileflowHostedDelivery, F as TileflowIconDirectory, G as TileflowLocalDirectory, H as TileflowMapDelivery, I as TileflowMapDesign, J as TileflowMapIdentity, K as TileflowMapRoot, L as TileflowMapTooling, M as TileflowMarine, N as TileflowMarineConfig, O as TileflowMarineMode, P as TileflowMarineSourceConfig, Q as TileflowMarineSourceIdentity, i as TileflowObservedDataContractV1, S as TileflowPackageDirectory, U as TileflowRasterDemSourceRequirementV1, V as TileflowResolvedThemeSelection, b as TileflowSourceRequirementsV1, c as TileflowStyleOptions, W as TileflowTheme, X as TileflowThemeAuditContext, Y as TileflowThemeAuditDiagnostic, Z as TileflowThemeAuditEffectKind, _ as TileflowThemeAuditError, $ as TileflowThemeAuditScope, a0 as TileflowThemeColorScheme, a1 as TileflowThemeDefinition, a2 as TileflowThemeLighting, a3 as TileflowThemeName, a4 as TileflowThemeTokens, a5 as TileflowThemeTypography, a6 as TileflowThemeTypographyStyle, a7 as assertTileflowMapThemeValues, a8 as auditTileflowMapThemeValues, a9 as auditTileflowThemeValues, aa as bathymetry, ab as createStyle, ac as defineTheme, k as inferTileflowDataRequirements, l as inferTileflowSourceRequirements, ad as isTileflowLocalDirectory, ae as parseTileflowMap, af as resolveMarine, ag as resolveThemeSelection, ah as resolveThemeValues, ai as resolveTileflowTheme, aj as tileflowBathymetryDemSourceId, ak as tileflowBathymetrySourceId, al as tileflowBathymetryV1Schema, am as tileflowLocalDirectoryMaximumLength, an as tileflowLocalDirectoryMessage, ao as tileflowMapIdSchema, ap as tileflowNauticalSourceId, aq as tileflowNauticalV1Schema, v as validateTileflowDataCompatibility, ar as validateTileflowMap } from './requirements-BV77ZVhR.js';
|
|
3
|
+
import { n as ValidationMessage, M as MapLibreStyle, o as TileflowRoadsModuleOptions, p as TileflowRoadsModuleConfig, q as TileflowLabelsModuleOptions, r as TileflowLabelsModuleConfig, s as TileflowPoiModuleOptions, u as TileflowPoiModuleConfig } from './types-DlUGI6LC.js';
|
|
4
|
+
export { v as MapLibreSprite, w as TileflowAerodromeCodeDetail, x as TileflowAlignment, y as TileflowAreaStyle, z as TileflowBackgroundPaint, A as TileflowBackgroundStyle, B as TileflowCirclePaint, C as TileflowCircleStyle, D as TileflowColor, E as TileflowColorStyleValue, F as TileflowExpression, G as TileflowExtrusionPaint, H as TileflowExtrusionStyle, I as TileflowFillPaint, a as TileflowFillStyle, J as TileflowFilterExpression, K as TileflowFixedValue, L as TileflowIconAnchor, N as TileflowIconLayout, O as TileflowIconPaint, P as TileflowIconStyle, Q as TileflowIconTextFit, S as TileflowImageStyleValue, U as TileflowLabelDetail, W as TileflowLabelLanguage, X as TileflowLabelStyles, Y as TileflowLayerRange, k as TileflowLight, Z as TileflowLineCap, _ as TileflowLineHatchStyle, $ as TileflowLineJoin, a0 as TileflowLineLayout, a1 as TileflowLinePaint, a2 as TileflowLineStackStyle, b as TileflowLineStyle, a3 as TileflowMountainBikeScale, a4 as TileflowNumberInsetsStyleValue, a5 as TileflowNumberStyleValue, a6 as TileflowPlaceLabelClass, a7 as TileflowPoiCategory, a8 as TileflowPoiCategoryStyle, a9 as TileflowPoiColorMode, aa as TileflowPoiDensity, l as TileflowProjection, ab as TileflowRoadAreaStyle, ac as TileflowRoadClass, ad as TileflowRoadClassStyle, ae as TileflowRoadCrossingStyle, af as TileflowRoadDetail, ag as TileflowRoadExtras, ah as TileflowRoadHierarchy, ai as TileflowRoadLabelDetail, aj as TileflowRoadLayerStyle, ak as TileflowRoadModifier, al as TileflowRoadOutline, am as TileflowRoadRestriction, an as TileflowRoadRoundaboutStyle, ao as TileflowRoadServiceType, ap as TileflowRoadShieldDetail, aq as TileflowRoadShieldStyles, ar as TileflowRoadSidewalkStyle, as as TileflowRoadStructure, at as TileflowRoadTreatmentLayerStyle, au as TileflowRoadTreatmentLineStyle, av as TileflowRoadTreatmentStyle, aw as TileflowRoadWeight, ax as TileflowStringStyleValue, ay as TileflowStructuralStyleValue, az as TileflowStyleValue, aA as TileflowSymbolPlacement, aB as TileflowSymbolPlacementStyle, c as TileflowSymbolStyle, aC as TileflowSymbolZOrder, m as TileflowTerrain, aD as TileflowTerrainConfig, aE as TileflowTerrainContourLabelStyle, aF as TileflowTerrainContourLineStyle, aG as TileflowTerrainContoursConfig, e as TileflowTerrainEncoding, d as TileflowTerrainHillshadeStyle, aH as TileflowTerrainLayerRange, aI as TileflowTerrainMode, aJ as TileflowTextAnchor, aK as TileflowTextJustify, aL as TileflowTextLayout, aM as TileflowTextPaint, aN as TileflowTextStyle, aO as TileflowThemeColorAlpha, aP as TileflowThemeColorMix, aQ as TileflowThemeColorOperation, g as TileflowThemeColorValue, h as TileflowThemeFontValue, i as TileflowThemeImageValue, f as TileflowThemeNumberValue, aR as TileflowThemeTokenCategory, aS as TileflowThemeTokenReference, aT as TileflowThemeValue, T as TileflowViewConfig, aU as TileflowWaterLabelClass, aV as TileflowZoomInterpolation, aW as TileflowZoomValue, V as ValidationResult, aX as color, aY as expression, aZ as filter, a_ as fixed, a$ as tileflowPoiCategories, b0 as token, b1 as zoom } from './types-DlUGI6LC.js';
|
|
5
|
+
export { N as NormalizedTileflowCaptureScene, a as TileflowCaptureApplicationTarget, b as TileflowCaptureBoundsCamera, c as TileflowCaptureCamera, d as TileflowCaptureCenterCamera, e as TileflowCaptureMapTarget, T as TileflowCaptureScene, f as TileflowCaptureTarget, g as TileflowCaptureViewport, n as normalizeTileflowCaptureId, h as normalizeTileflowCaptureScene, t as tileflowCaptureApplicationTargetSchema, i as tileflowCaptureBoundsCameraSchema, j as tileflowCaptureCameraSchema, k as tileflowCaptureCenterCameraSchema, l as tileflowCaptureIdSchema, m as tileflowCaptureMapTargetSchema, o as tileflowCaptureSceneLimits, p as tileflowCaptureSceneNameSchema, q as tileflowCaptureSceneSchema, r as tileflowCaptureSceneSchemaVersion, s as tileflowCaptureTargetSchema, u as tileflowCaptureViewportSchema } from './capture-scene-BK_0J2oR.js';
|
|
6
|
+
export { tileflowPortableIdSchema, tileflowThemeNameSchema } from './capture.js';
|
|
7
|
+
export { T as TileflowAnalytics, f as TileflowManifestFetchOptions, g as TileflowManifestLoadOptions, h as TileflowMapMarker, i as TileflowMapMode, j as TileflowMapModeOptions, k as TileflowResolvedRuntimeTheme, l as TileflowRuntimeCenterLike, d as TileflowRuntimeColorScheme, e as TileflowRuntimeManifest, m as TileflowRuntimeManifestMap, n as TileflowRuntimeManifestMapEntry, o as TileflowRuntimeManifestTheme, p as TileflowRuntimeSource, q as TileflowRuntimeSourceValidation, b as TileflowRuntimeStyle, r as TileflowRuntimeStyleOptions, s as TileflowRuntimeSystemThemes, t as TileflowRuntimeViewOptions, c as TileflowSessionController, u as TileflowSessionGrantResponse, a as TileflowStyleFontFace, v as TileflowThemeSelection, w as assertValidTileflowRuntimeSource, x as clearTileflowManifestCache, y as createTileflowSessionController, z as createTileflowSessionId, A as defaultTileflowManifestUrl, B as defaultTileflowRuntimeView, C as getTileflowAnalyticsApiUrl, D as getTileflowStyleFontFaces, E as inferTileflowAnalyticsFromStyleUrl, F as loadTileflowManifest, G as mergeTileflowAnalytics, H as normalizeTileflowRuntimeCenter, I as normalizeTileflowStaticImageSize, J as normalizeTileflowUrl, K as parseTileflowRuntimeManifest, L as resolveTileflowAnalyticsRequestUrl, M as resolveTileflowManifestMap, N as resolveTileflowMapMode, O as resolveTileflowRuntimeStyle, P as resolveTileflowRuntimeTheme, Q as resolveTileflowRuntimeView, R as resolveTileflowStaticImageUrl, S as safeParseTileflowRuntimeManifest, U as shouldLoadTileflowManifest, V as startTileflowSession, W as tileflowRuntimeManifestLimits, X as tileflowRuntimeManifestSchema, Y as tileflowRuntimeManifestVersion, Z as tileflowStyleFontFaceLimits, _ as tileflowStyleFontFacesMetadataKey, $ as validateTileflowRuntimeSource, a0 as validateTileflowThemeSelection } from './runtime-C4MtSzkB.js';
|
|
8
|
+
export { O as OpenMapTilesFieldBindings, a as OpenMapTilesLayerBindings, f as OpenMapTilesSchema, g as OpenMapTilesSchemaOptions, P as ParkLayerSemantics, R as ResolvedTileflowData, h as TileflowAddressesModuleConfig, i as TileflowAddressesModuleOptions, j as TileflowAerowaysModuleConfig, k as TileflowAerowaysModuleOptions, l as TileflowBoundariesModuleConfig, m as TileflowBoundariesModuleOptions, n as TileflowBuildingMode, o as TileflowBuildingsModuleConfig, p as TileflowBuildingsModuleOptions, d as TileflowDataConfig, q as TileflowDataIdentity, r as TileflowLandModuleConfig, s as TileflowLandModuleOptions, t as TileflowLandcoverClass, u as TileflowLandformClass, v as TileflowLandformsModuleConfig, w as TileflowLandformsModuleOptions, x as TileflowLanduseClass, y as TileflowNauticalAreaLabelStyles, z as TileflowNauticalModuleConfig, A as TileflowNauticalModuleOptions, e as TileflowStreetsModules, B as TileflowTransitModuleConfig, C as TileflowTransitModuleOptions, D as TileflowTransitRailStyle, E as TileflowVegetationMode, F as TileflowVegetationModuleConfig, G as TileflowVegetationModuleOptions, H as TileflowVegetationThreeDimensionalStyle, b as TileflowVisualValueCategory, I as TileflowWaterModuleConfig, J as TileflowWaterModuleOptions, K as TileflowWaterwayClass, L as TileflowWorldData, M as TileflowWorldReleaseReference, N as TileflowWorldSelection, Q as TileflowWorldV1Schema, V as VectorTilesData, S as addresses, U as aeroways, W as boundaries, X as buildings, c as classifyTileflowVisualProperty, Y as isCanonicalOpenMapTilesSchema, Z as land, _ as landforms, $ as nautical, a0 as openMapTiles, a1 as openMapTilesContractVersion, a2 as resolveTileflowData, a3 as tileflowLandformClasses, a4 as tileflowPrimarySourceId, a5 as tileflowWorld, a6 as tileflowWorldGeneration, a7 as tileflowWorldTileJsonUrl, a8 as tileflowWorldV1Schema, a9 as transit, aa as validateTileflowWorldV1Tilejson, ab as vectorTiles, ac as vegetation, ad as water } from './visual-semantics-DTC-8Hsb.js';
|
|
3
9
|
import { z } from 'zod';
|
|
4
10
|
|
|
5
|
-
declare
|
|
11
|
+
declare const tileflowPortableIdMaximumLength: 64;
|
|
12
|
+
declare function isTileflowPortableId(value: unknown): value is string;
|
|
13
|
+
declare function isTileflowThemeName(value: unknown): value is string;
|
|
6
14
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
roadMajor: z.ZodOptional<z.ZodString>;
|
|
17
|
-
text: z.ZodOptional<z.ZodString>;
|
|
18
|
-
textHalo: z.ZodOptional<z.ZodString>;
|
|
19
|
-
textMuted: z.ZodOptional<z.ZodString>;
|
|
20
|
-
water: z.ZodOptional<z.ZodString>;
|
|
21
|
-
}, z.core.$strict>>;
|
|
22
|
-
extends: z.ZodOptional<z.ZodString>;
|
|
23
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
24
|
-
light: "light";
|
|
25
|
-
dark: "dark";
|
|
26
|
-
}>>;
|
|
27
|
-
modules: z.ZodOptional<z.ZodObject<{
|
|
28
|
-
boundaries: z.ZodOptional<z.ZodObject<{
|
|
29
|
-
major: z.ZodOptional<z.ZodString>;
|
|
30
|
-
disputed: z.ZodOptional<z.ZodString>;
|
|
31
|
-
admin: z.ZodOptional<z.ZodString>;
|
|
32
|
-
maritime: z.ZodOptional<z.ZodString>;
|
|
33
|
-
}, z.core.$strict>>;
|
|
34
|
-
buildings: z.ZodOptional<z.ZodObject<{
|
|
35
|
-
fill: z.ZodOptional<z.ZodString>;
|
|
36
|
-
outline: z.ZodOptional<z.ZodString>;
|
|
37
|
-
extrusion: z.ZodOptional<z.ZodString>;
|
|
38
|
-
highRise: z.ZodOptional<z.ZodString>;
|
|
39
|
-
highRiseOutline: z.ZodOptional<z.ZodString>;
|
|
40
|
-
lowRise: z.ZodOptional<z.ZodString>;
|
|
41
|
-
lowRiseOutline: z.ZodOptional<z.ZodString>;
|
|
42
|
-
}, z.core.$strict>>;
|
|
43
|
-
hydro: z.ZodOptional<z.ZodObject<{
|
|
44
|
-
water: z.ZodOptional<z.ZodString>;
|
|
45
|
-
waterway: z.ZodOptional<z.ZodString>;
|
|
46
|
-
ferry: z.ZodOptional<z.ZodString>;
|
|
47
|
-
label: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$strict>>;
|
|
49
|
-
labels: z.ZodOptional<z.ZodObject<{
|
|
50
|
-
water: z.ZodOptional<z.ZodString>;
|
|
51
|
-
road: z.ZodOptional<z.ZodString>;
|
|
52
|
-
poi: z.ZodOptional<z.ZodString>;
|
|
53
|
-
primary: z.ZodOptional<z.ZodString>;
|
|
54
|
-
country: z.ZodOptional<z.ZodString>;
|
|
55
|
-
neighborhood: z.ZodOptional<z.ZodString>;
|
|
56
|
-
halo: z.ZodOptional<z.ZodString>;
|
|
57
|
-
muted: z.ZodOptional<z.ZodString>;
|
|
58
|
-
settlement: z.ZodOptional<z.ZodString>;
|
|
59
|
-
}, z.core.$strict>>;
|
|
60
|
-
landcover: z.ZodOptional<z.ZodObject<{
|
|
61
|
-
park: z.ZodOptional<z.ZodString>;
|
|
62
|
-
grass: z.ZodOptional<z.ZodString>;
|
|
63
|
-
ice: z.ZodOptional<z.ZodString>;
|
|
64
|
-
protected: z.ZodOptional<z.ZodString>;
|
|
65
|
-
sand: z.ZodOptional<z.ZodString>;
|
|
66
|
-
wood: z.ZodOptional<z.ZodString>;
|
|
67
|
-
}, z.core.$strict>>;
|
|
68
|
-
landuse: z.ZodOptional<z.ZodObject<{
|
|
69
|
-
residential: z.ZodOptional<z.ZodString>;
|
|
70
|
-
cemetery: z.ZodOptional<z.ZodString>;
|
|
71
|
-
civic: z.ZodOptional<z.ZodString>;
|
|
72
|
-
commercial: z.ZodOptional<z.ZodString>;
|
|
73
|
-
industrial: z.ZodOptional<z.ZodString>;
|
|
74
|
-
}, z.core.$strict>>;
|
|
75
|
-
poi: z.ZodOptional<z.ZodObject<{
|
|
76
|
-
food: z.ZodOptional<z.ZodString>;
|
|
77
|
-
coffee: z.ZodOptional<z.ZodString>;
|
|
78
|
-
culture: z.ZodOptional<z.ZodString>;
|
|
79
|
-
transit: z.ZodOptional<z.ZodString>;
|
|
80
|
-
shopping: z.ZodOptional<z.ZodString>;
|
|
81
|
-
lodging: z.ZodOptional<z.ZodString>;
|
|
82
|
-
health: z.ZodOptional<z.ZodString>;
|
|
83
|
-
education: z.ZodOptional<z.ZodString>;
|
|
84
|
-
services: z.ZodOptional<z.ZodString>;
|
|
85
|
-
halo: z.ZodOptional<z.ZodString>;
|
|
86
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
87
|
-
label: z.ZodOptional<z.ZodString>;
|
|
88
|
-
}, z.core.$strict>>;
|
|
89
|
-
roads: z.ZodOptional<z.ZodObject<{
|
|
90
|
-
path: z.ZodOptional<z.ZodString>;
|
|
91
|
-
motorway: z.ZodOptional<z.ZodString>;
|
|
92
|
-
trunk: z.ZodOptional<z.ZodString>;
|
|
93
|
-
primary: z.ZodOptional<z.ZodString>;
|
|
94
|
-
secondary: z.ZodOptional<z.ZodString>;
|
|
95
|
-
minor: z.ZodOptional<z.ZodString>;
|
|
96
|
-
bridge: z.ZodOptional<z.ZodString>;
|
|
97
|
-
tunnel: z.ZodOptional<z.ZodString>;
|
|
98
|
-
casing: z.ZodOptional<z.ZodString>;
|
|
99
|
-
ferry: z.ZodOptional<z.ZodString>;
|
|
100
|
-
rail: z.ZodOptional<z.ZodString>;
|
|
101
|
-
}, z.core.$strict>>;
|
|
102
|
-
}, z.core.$strict>>;
|
|
103
|
-
typography: z.ZodOptional<z.ZodObject<{
|
|
104
|
-
font: z.ZodOptional<z.ZodString>;
|
|
105
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
106
|
-
bold: "bold";
|
|
107
|
-
regular: "regular";
|
|
108
|
-
medium: "medium";
|
|
109
|
-
semibold: "semibold";
|
|
110
|
-
}>>;
|
|
111
|
-
places: z.ZodOptional<z.ZodObject<{
|
|
112
|
-
font: z.ZodOptional<z.ZodString>;
|
|
113
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
114
|
-
bold: "bold";
|
|
115
|
-
regular: "regular";
|
|
116
|
-
medium: "medium";
|
|
117
|
-
semibold: "semibold";
|
|
118
|
-
}>>;
|
|
119
|
-
}, z.core.$strict>>;
|
|
120
|
-
poi: z.ZodOptional<z.ZodObject<{
|
|
121
|
-
font: z.ZodOptional<z.ZodString>;
|
|
122
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
123
|
-
bold: "bold";
|
|
124
|
-
regular: "regular";
|
|
125
|
-
medium: "medium";
|
|
126
|
-
semibold: "semibold";
|
|
127
|
-
}>>;
|
|
128
|
-
}, z.core.$strict>>;
|
|
129
|
-
roads: z.ZodOptional<z.ZodObject<{
|
|
130
|
-
font: z.ZodOptional<z.ZodString>;
|
|
131
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
132
|
-
bold: "bold";
|
|
133
|
-
regular: "regular";
|
|
134
|
-
medium: "medium";
|
|
135
|
-
semibold: "semibold";
|
|
136
|
-
}>>;
|
|
137
|
-
}, z.core.$strict>>;
|
|
138
|
-
water: z.ZodOptional<z.ZodObject<{
|
|
139
|
-
font: z.ZodOptional<z.ZodString>;
|
|
140
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
141
|
-
bold: "bold";
|
|
142
|
-
regular: "regular";
|
|
143
|
-
medium: "medium";
|
|
144
|
-
semibold: "semibold";
|
|
145
|
-
}>>;
|
|
146
|
-
}, z.core.$strict>>;
|
|
147
|
-
}, z.core.$strict>>;
|
|
148
|
-
}, z.core.$strict>;
|
|
149
|
-
declare const tileflowMapSchema: z.ZodType<TileflowConfig>;
|
|
150
|
-
declare const configSchema: z.ZodType<TileflowConfig>;
|
|
151
|
-
declare const tileflowProjectSchema: z.ZodType<TileflowProjectConfig>;
|
|
152
|
-
declare function parseTileflowMap(input: unknown): TileflowConfig;
|
|
153
|
-
declare function parseTileflowProject(input: unknown): TileflowProjectConfig;
|
|
154
|
-
declare function validateConfig(input: unknown): ValidationResult;
|
|
155
|
-
declare const validateTileflowConfig: typeof validateConfig;
|
|
15
|
+
/** Exact immutable release identity contract for the current World V1 product. */
|
|
16
|
+
declare const tileflowWorldReleaseIdMinimumLength: 12;
|
|
17
|
+
declare const tileflowWorldReleaseIdMaximumLength: 128;
|
|
18
|
+
declare const tileflowWorldReleaseIdPatternSource: "^world-v1-[a-z0-9][a-z0-9._-]*[a-z0-9]$";
|
|
19
|
+
declare const tileflowWorldReleaseIdPattern: RegExp;
|
|
20
|
+
/** Validate without trimming, lowercasing, or otherwise normalizing an immutable release ID. */
|
|
21
|
+
declare function isTileflowWorldReleaseId(value: unknown): value is string;
|
|
22
|
+
|
|
23
|
+
declare const tileflowWorldReleaseIdSchema: z.ZodString;
|
|
156
24
|
|
|
157
|
-
|
|
25
|
+
type ExactTileflowMap<TContract, TMap extends TContract> = TMap & Record<Exclude<keyof TMap, keyof TContract>, never>;
|
|
26
|
+
type ExactTileflowMapScenes<TMap> = TMap extends {
|
|
27
|
+
scenes: infer TScenes extends Record<string, TileflowMapScene>;
|
|
28
|
+
} ? {
|
|
29
|
+
scenes: {
|
|
30
|
+
[TName in keyof TScenes]: ExactTileflowMap<TileflowMapScene, TScenes[TName]>;
|
|
31
|
+
};
|
|
32
|
+
} : unknown;
|
|
33
|
+
/** Preserve the exact inferred type of a compiler-root map. */
|
|
34
|
+
declare function defineRootMap<const TMap extends TileflowRootMap>(map: ExactTileflowMap<TileflowRootMap, TMap> & ExactTileflowMapScenes<TMap>): TMap;
|
|
35
|
+
/** Preserve the exact inferred type of a map that extends another map object. */
|
|
36
|
+
declare function defineMap<const TMap extends TileflowDerivedMap>(map: ExactTileflowMap<TileflowDerivedMap, TMap> & ExactTileflowMapScenes<TMap>): TMap;
|
|
37
|
+
|
|
38
|
+
declare const tileflowMapDefaultMaxDepth = 64;
|
|
39
|
+
/** Resolve an imported map lineage to one standalone authoring map. */
|
|
40
|
+
declare function resolveMap(map: TileflowMap, options?: ResolveMapOptions): ResolvedTileflowMap;
|
|
41
|
+
|
|
42
|
+
/** Structured schema failure preserved for CLI/editor diagnostics. */
|
|
43
|
+
declare class TileflowResolvedMapValidationError extends Error {
|
|
44
|
+
readonly code: "CONFIG_INVALID";
|
|
45
|
+
readonly messages: ValidationMessage[];
|
|
46
|
+
readonly phase: "config-validation";
|
|
47
|
+
constructor(name: string, messages: ValidationMessage[]);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
type TileflowZoomPerformance = {
|
|
51
|
+
activeLayers: number;
|
|
52
|
+
/** @deprecated Use styleLayerFamilies. This is not a count of runtime tile buckets. */
|
|
53
|
+
estimatedBuckets: number;
|
|
54
|
+
sourceLayers: Record<string, number>;
|
|
55
|
+
styleLayerFamilies: number;
|
|
56
|
+
symbols: number;
|
|
57
|
+
zoom: number;
|
|
58
|
+
};
|
|
59
|
+
type TileflowStylePerformance = {
|
|
60
|
+
styleBytes: number;
|
|
61
|
+
totalLayers: number;
|
|
62
|
+
zooms: TileflowZoomPerformance[];
|
|
63
|
+
};
|
|
64
|
+
/** A deterministic, network-free structural sweep of a compiled style. */
|
|
65
|
+
declare function analyzeTileflowStylePerformance(style: MapLibreStyle, zooms?: readonly number[]): TileflowStylePerformance;
|
|
158
66
|
|
|
159
67
|
declare function roads(options?: TileflowRoadsModuleOptions): TileflowRoadsModuleConfig;
|
|
160
68
|
|
|
161
69
|
declare function labels(options?: TileflowLabelsModuleOptions): TileflowLabelsModuleConfig;
|
|
162
70
|
|
|
71
|
+
/**
|
|
72
|
+
* Stable built-in POI image convention. A theme token with the declared role
|
|
73
|
+
* takes precedence; `fallback` is the invariant sprite ID used when omitted.
|
|
74
|
+
*/
|
|
75
|
+
declare const tileflowPoiImageRoles: Readonly<{
|
|
76
|
+
readonly 'arts-entertainment': {
|
|
77
|
+
readonly fallback: "culture";
|
|
78
|
+
readonly token: "poi.arts-entertainment";
|
|
79
|
+
};
|
|
80
|
+
readonly education: {
|
|
81
|
+
readonly fallback: "education";
|
|
82
|
+
readonly token: "poi.education";
|
|
83
|
+
};
|
|
84
|
+
readonly 'food-drink': {
|
|
85
|
+
readonly fallback: "food";
|
|
86
|
+
readonly token: "poi.food-drink";
|
|
87
|
+
};
|
|
88
|
+
readonly landmark: {
|
|
89
|
+
readonly fallback: "culture";
|
|
90
|
+
readonly token: "poi.landmark";
|
|
91
|
+
};
|
|
92
|
+
readonly lodging: {
|
|
93
|
+
readonly fallback: "lodging";
|
|
94
|
+
readonly token: "poi.lodging";
|
|
95
|
+
};
|
|
96
|
+
readonly medical: {
|
|
97
|
+
readonly fallback: "health";
|
|
98
|
+
readonly token: "poi.medical";
|
|
99
|
+
};
|
|
100
|
+
readonly 'park-nature': {
|
|
101
|
+
readonly fallback: "services";
|
|
102
|
+
readonly token: "poi.park-nature";
|
|
103
|
+
};
|
|
104
|
+
readonly 'public-services': {
|
|
105
|
+
readonly fallback: "services";
|
|
106
|
+
readonly token: "poi.public-services";
|
|
107
|
+
};
|
|
108
|
+
readonly religion: {
|
|
109
|
+
readonly fallback: "culture";
|
|
110
|
+
readonly token: "poi.religion";
|
|
111
|
+
};
|
|
112
|
+
readonly retail: {
|
|
113
|
+
readonly fallback: "shopping";
|
|
114
|
+
readonly token: "poi.retail";
|
|
115
|
+
};
|
|
116
|
+
readonly 'sport-leisure': {
|
|
117
|
+
readonly fallback: "culture";
|
|
118
|
+
readonly token: "poi.sport-leisure";
|
|
119
|
+
};
|
|
120
|
+
readonly transport: {
|
|
121
|
+
readonly fallback: "major-transit";
|
|
122
|
+
readonly token: "poi.transport";
|
|
123
|
+
};
|
|
124
|
+
readonly 'visitor-amenity': {
|
|
125
|
+
readonly fallback: "services";
|
|
126
|
+
readonly token: "poi.visitor-amenity";
|
|
127
|
+
};
|
|
128
|
+
}>;
|
|
163
129
|
declare function poi(options?: TileflowPoiModuleOptions): TileflowPoiModuleConfig;
|
|
164
130
|
|
|
165
131
|
declare const tileflowIconPackageFileNames: readonly ["sprite.json", "sprite.png", "sprite@2x.json", "sprite@2x.png"];
|
|
166
132
|
type TileflowIconPackageFileName = (typeof tileflowIconPackageFileNames)[number];
|
|
167
|
-
|
|
133
|
+
/** Canonical sprite ID shared by authoring, generated manifests, diffs, and runtime indexes. */
|
|
134
|
+
declare const tileflowIconIdPattern: RegExp;
|
|
168
135
|
declare const tileflowIconPackageLimits: {
|
|
169
136
|
readonly decodeConcurrency: 4;
|
|
170
137
|
readonly maxAtlasDimension: 2048;
|
|
@@ -184,10 +151,10 @@ declare const tileflowHostedAlphaCompatibility: {
|
|
|
184
151
|
readonly maxGeneratedBytesPerProject: number;
|
|
185
152
|
readonly maxRetainedPerProject: 24;
|
|
186
153
|
};
|
|
187
|
-
readonly maxMapsPerDeploy:
|
|
154
|
+
readonly maxMapsPerDeploy: 20;
|
|
188
155
|
};
|
|
189
156
|
declare const tileflowIconPackageContentHashSchema: z.ZodString;
|
|
190
|
-
declare const
|
|
157
|
+
declare const tileflowIconIdSchema: z.ZodString;
|
|
191
158
|
declare const tileflowRenderedIconManifestEntrySchema: z.ZodObject<{
|
|
192
159
|
name: z.ZodString;
|
|
193
160
|
pixelSha256: z.ZodObject<{
|
|
@@ -262,6 +229,62 @@ declare function hashTileflowRenderedIconPixels(input: {
|
|
|
262
229
|
width: number;
|
|
263
230
|
}): Promise<string>;
|
|
264
231
|
|
|
232
|
+
declare const tileflowFontBundleLimits: {
|
|
233
|
+
readonly maxFaceCount: 16;
|
|
234
|
+
readonly maxFileCount: 32;
|
|
235
|
+
readonly maxFontFileBytes: number;
|
|
236
|
+
readonly maxLicenseFileBytes: number;
|
|
237
|
+
readonly maxManifestBytes: number;
|
|
238
|
+
readonly maxPackageBytes: number;
|
|
239
|
+
};
|
|
240
|
+
declare const tileflowFontBundleContentHashSchema: z.ZodString;
|
|
241
|
+
declare const tileflowFontBundleManifestSchema: z.ZodObject<{
|
|
242
|
+
files: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
243
|
+
byteLength: z.ZodNumber;
|
|
244
|
+
contentType: z.ZodEnum<{
|
|
245
|
+
"font/otf": "font/otf";
|
|
246
|
+
"font/ttf": "font/ttf";
|
|
247
|
+
"font/woff2": "font/woff2";
|
|
248
|
+
}>;
|
|
249
|
+
kind: z.ZodLiteral<"font">;
|
|
250
|
+
name: z.ZodString;
|
|
251
|
+
sha256: z.ZodString;
|
|
252
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
253
|
+
byteLength: z.ZodNumber;
|
|
254
|
+
contentType: z.ZodLiteral<"text/plain; charset=utf-8">;
|
|
255
|
+
kind: z.ZodLiteral<"license">;
|
|
256
|
+
name: z.ZodString;
|
|
257
|
+
sha256: z.ZodString;
|
|
258
|
+
}, z.core.$strict>], "kind">>;
|
|
259
|
+
fontFaces: z.ZodArray<z.ZodObject<{
|
|
260
|
+
family: z.ZodString;
|
|
261
|
+
file: z.ZodString;
|
|
262
|
+
licenseFile: z.ZodString;
|
|
263
|
+
style: z.ZodEnum<{
|
|
264
|
+
italic: "italic";
|
|
265
|
+
normal: "normal";
|
|
266
|
+
oblique: "oblique";
|
|
267
|
+
}>;
|
|
268
|
+
weight: z.ZodEnum<{
|
|
269
|
+
100: "100";
|
|
270
|
+
200: "200";
|
|
271
|
+
300: "300";
|
|
272
|
+
400: "400";
|
|
273
|
+
500: "500";
|
|
274
|
+
600: "600";
|
|
275
|
+
700: "700";
|
|
276
|
+
800: "800";
|
|
277
|
+
900: "900";
|
|
278
|
+
}>;
|
|
279
|
+
}, z.core.$strict>>;
|
|
280
|
+
format: z.ZodLiteral<"tileflow-font-bundle-v1">;
|
|
281
|
+
}, z.core.$strict>;
|
|
282
|
+
type TileflowFontBundleManifest = z.infer<typeof tileflowFontBundleManifestSchema>;
|
|
283
|
+
type TileflowFontBundleFile = TileflowFontBundleManifest['files'][number];
|
|
284
|
+
type TileflowFontBundleFontFace = TileflowFontBundleManifest['fontFaces'][number];
|
|
285
|
+
declare function serializeTileflowFontBundleManifest(input: TileflowFontBundleManifest): string;
|
|
286
|
+
declare function hashTileflowFontBundleManifest(input: TileflowFontBundleManifest): Promise<string>;
|
|
287
|
+
|
|
265
288
|
type TileflowIconManifestDiff = {
|
|
266
289
|
added: string[];
|
|
267
290
|
afterBytes: number;
|
|
@@ -270,31 +293,6 @@ type TileflowIconManifestDiff = {
|
|
|
270
293
|
removed: string[];
|
|
271
294
|
unchangedCount: number;
|
|
272
295
|
};
|
|
273
|
-
type TileflowIconMappingChange = {
|
|
274
|
-
after?: string;
|
|
275
|
-
before?: string;
|
|
276
|
-
key: string;
|
|
277
|
-
};
|
|
278
|
-
type TileflowIconMappingDiff = {
|
|
279
|
-
added: TileflowIconMappingChange[];
|
|
280
|
-
changed: TileflowIconMappingChange[];
|
|
281
|
-
removed: TileflowIconMappingChange[];
|
|
282
|
-
};
|
|
283
|
-
type TileflowIconReferenceAnalysis = {
|
|
284
|
-
analysisComplete: boolean;
|
|
285
|
-
dangling: Array<{
|
|
286
|
-
iconName: string;
|
|
287
|
-
kind: 'mapping' | 'style-override-literal';
|
|
288
|
-
path: string;
|
|
289
|
-
}>;
|
|
290
|
-
unanalyzable: Array<{
|
|
291
|
-
kind: 'style-override-expression';
|
|
292
|
-
path: string;
|
|
293
|
-
}>;
|
|
294
|
-
};
|
|
295
296
|
declare function diffTileflowIconPackageManifests(before: TileflowIconPackageManifest | null, after: TileflowIconPackageManifest | null): TileflowIconManifestDiff;
|
|
296
|
-
declare function diffTileflowIconMappings(before: Record<string, string> | null, after: Record<string, string> | null): TileflowIconMappingDiff;
|
|
297
|
-
declare function inspectTileflowIconReferences(project: TileflowProjectConfig, mapName: string, availableIconNames: readonly string[]): TileflowIconReferenceAnalysis;
|
|
298
|
-
declare function resolveTileflowIconMapping(project: TileflowProjectConfig, mapName: string): Record<string, string>;
|
|
299
297
|
|
|
300
|
-
export {
|
|
298
|
+
export { MapLibreStyle, ResolveMapOptions, ResolvedTileflowMap, TileflowDerivedMap, type TileflowFontBundleFile, type TileflowFontBundleFontFace, type TileflowFontBundleManifest, type TileflowIconManifestDiff, type TileflowIconPackageFileName, type TileflowIconPackageManifest, TileflowLabelsModuleConfig, TileflowLabelsModuleOptions, TileflowMap, TileflowMapScene, TileflowPoiModuleConfig, TileflowPoiModuleOptions, type TileflowRenderedIconManifestEntry, TileflowResolvedMapValidationError, TileflowRoadsModuleConfig, TileflowRoadsModuleOptions, type TileflowStylePerformance, type TileflowZoomPerformance, ValidationMessage, analyzeTileflowStylePerformance, compareCodeUnits, defineMap, defineRootMap, diffTileflowIconPackageManifests, hashTileflowFontBundleManifest, hashTileflowIconPackageManifest, hashTileflowRenderedIconPixels, isTileflowPortableId, isTileflowThemeName, isTileflowWorldReleaseId, labels, poi, resolveMap, roads, serializeCanonicalJson, serializeTileflowFontBundleManifest, serializeTileflowIconPackageManifest, sha256Hex, tileflowFontBundleContentHashSchema, tileflowFontBundleLimits, tileflowFontBundleManifestSchema, tileflowHostedAlphaCompatibility, tileflowIconIdPattern, tileflowIconIdSchema, tileflowIconPackageContentHashSchema, tileflowIconPackageFileNames, tileflowIconPackageLabelSchema, tileflowIconPackageLimits, tileflowIconPackageManifestSchema, tileflowMapDefaultMaxDepth, tileflowPoiImageRoles, tileflowPortableIdMaximumLength, tileflowRenderedIconManifestEntrySchema, tileflowWorldReleaseIdMaximumLength, tileflowWorldReleaseIdMinimumLength, tileflowWorldReleaseIdPattern, tileflowWorldReleaseIdPatternSource, tileflowWorldReleaseIdSchema };
|