@tileflow/core 0.1.0-alpha.21 → 0.1.0-alpha.22
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/README.md +197 -72
- package/THIRD_PARTY_NOTICES.md +60 -2
- package/dist/browser.d.ts +82 -16
- package/dist/browser.js +1234 -267
- package/dist/build.d.ts +19 -56
- package/dist/build.js +10915 -8333
- package/dist/config-reference.json +31882 -0
- package/dist/index.d.ts +476 -13
- package/dist/index.js +12409 -8832
- package/dist/{types-DlUGI6LC.d.ts → manifest-B5GKVMFE.d.ts} +252 -20
- package/dist/manifest.d.ts +1 -2
- package/dist/manifest.js +18 -2
- package/dist/map-BHL_0Mkx.d.ts +1145 -0
- package/dist/runtime.d.ts +1 -2
- package/dist/runtime.js +60 -5
- package/package.json +5 -8
- package/dist/domains-CPSrdTik.d.ts +0 -4
- package/dist/recipe.d.ts +0 -66
- package/dist/recipe.js +0 -577
- package/dist/requirements-BV77ZVhR.d.ts +0 -491
- package/dist/runtime-C4MtSzkB.d.ts +0 -223
- package/dist/visual-semantics-DTC-8Hsb.d.ts +0 -479
package/dist/build.d.ts
CHANGED
|
@@ -1,48 +1,8 @@
|
|
|
1
1
|
import { T as TileflowCaptureScene } from './capture-scene-BK_0J2oR.js';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
import {
|
|
5
|
-
import { M as MapLibreStyle } from './types-DlUGI6LC.js';
|
|
6
|
-
import { T as TileflowLayerDomain } from './domains-CPSrdTik.js';
|
|
2
|
+
import { R as ResolvedTileflowMap, T as TileflowDataRequirementsV1, a as TileflowSourceRequirementsV1, b as TileflowMap, c as TileflowStyleOptions, d as TileflowInspectedStyle, e as TileflowPreparedMapAssets } from './map-BHL_0Mkx.js';
|
|
3
|
+
export { f as TileflowDataCompatibilityIssue, g as TileflowDataFieldRequirement, h as TileflowDataFieldType, i as TileflowDataLayerRequirement, j as TileflowObservedDataContractV1, k as TileflowStyleInspection, l as TileflowStyleInspectionContribution, m as TileflowStyleInspectionLayer, n as TileflowStyleInspectionRenderOperation, o as collectMapLineage, p as inferTileflowDataRequirements, q as inferTileflowSourceRequirements, t as tileflowStyleInspectionSchemaVersion, v as validateTileflowDataCompatibility } from './map-BHL_0Mkx.js';
|
|
4
|
+
import { M as MapLibreStyle, T as TileflowRuntimeManifest } from './manifest-B5GKVMFE.js';
|
|
7
5
|
import 'zod';
|
|
8
|
-
import './visual-semantics-DTC-8Hsb.js';
|
|
9
|
-
|
|
10
|
-
declare const tileflowLayerSlots: readonly ["background", "land", "terrain", "hydro", "building-areas", "transport-areas", "transport-tunnel-shadow", "transport-tunnel-casing", "transport-tunnel-fill", "transport-pedestrian-areas", "aeroways", "transport-surface-shadow", "transport-surface-casing", "transport-surface-fill", "transport-bridge-shadow", "transport-bridge-casing", "transport-bridge-fill", "transport-symbols", "boundaries", "buildings", "vegetation", "symbols"];
|
|
11
|
-
type TileflowLayerSlot = (typeof tileflowLayerSlots)[number];
|
|
12
|
-
|
|
13
|
-
/** Version of the build-only style inspection sidecar. */
|
|
14
|
-
declare const tileflowStyleInspectionSchemaVersion: 1;
|
|
15
|
-
type TileflowStyleInspectionEffect = {
|
|
16
|
-
readonly kind: 'add' | 'patch';
|
|
17
|
-
readonly owner: TileflowLayerDomain;
|
|
18
|
-
readonly target: string;
|
|
19
|
-
};
|
|
20
|
-
/** One semantic contribution represented by a compiled physical style layer. */
|
|
21
|
-
type TileflowStyleInspectionContribution = {
|
|
22
|
-
readonly owner: TileflowLayerDomain;
|
|
23
|
-
readonly slot: TileflowLayerSlot;
|
|
24
|
-
readonly target: string;
|
|
25
|
-
/** Ordered module-effect chain applied before physical-layer optimization. */
|
|
26
|
-
readonly effects: readonly TileflowStyleInspectionEffect[];
|
|
27
|
-
};
|
|
28
|
-
type TileflowStyleInspectionLayer = {
|
|
29
|
-
readonly id: string;
|
|
30
|
-
readonly index: number;
|
|
31
|
-
readonly type: string;
|
|
32
|
-
/** Multiple entries are expected when the optimizer combines semantic layers. */
|
|
33
|
-
readonly contributions: readonly TileflowStyleInspectionContribution[];
|
|
34
|
-
};
|
|
35
|
-
/** Build-only cartographic provenance. This object is never embedded in Style JSON. */
|
|
36
|
-
type TileflowStyleInspection = {
|
|
37
|
-
readonly schemaVersion: typeof tileflowStyleInspectionSchemaVersion;
|
|
38
|
-
readonly map: string;
|
|
39
|
-
readonly theme: string;
|
|
40
|
-
readonly layers: readonly TileflowStyleInspectionLayer[];
|
|
41
|
-
};
|
|
42
|
-
type TileflowInspectedStyle = {
|
|
43
|
-
readonly style: MapLibreStyle;
|
|
44
|
-
readonly inspection: TileflowStyleInspection;
|
|
45
|
-
};
|
|
46
6
|
|
|
47
7
|
declare const tileflowMapRevisionSchemaVersion: 1;
|
|
48
8
|
declare const tileflowMapRevisionCanonicalization: "tileflow-canonical-json-v1";
|
|
@@ -86,7 +46,8 @@ type TileflowMapBuildLineageEntry = {
|
|
|
86
46
|
type TileflowMapBuildInput = {
|
|
87
47
|
assets: readonly TileflowHashableBuildAsset[];
|
|
88
48
|
lineage: readonly TileflowMapBuildLineageEntry[];
|
|
89
|
-
|
|
49
|
+
/** Validated, inheritance-free semantic compiler input. */
|
|
50
|
+
map: ResolvedTileflowMap;
|
|
90
51
|
sourceAssets: TileflowEffectiveMapSourceAssets;
|
|
91
52
|
styles: Readonly<Record<string, MapLibreStyle>>;
|
|
92
53
|
};
|
|
@@ -104,9 +65,9 @@ type TileflowMapBuildManifestEntryV1 = {
|
|
|
104
65
|
lineage: readonly TileflowMapBuildLineageEntry[];
|
|
105
66
|
mapRevisionSha256: string;
|
|
106
67
|
mapVersion: number;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
68
|
+
semanticCompiler: {
|
|
69
|
+
name: 'tileflow-semantic';
|
|
70
|
+
version: number;
|
|
110
71
|
};
|
|
111
72
|
sourceAssets: TileflowEffectiveMapSourceAssets;
|
|
112
73
|
systemThemes?: {
|
|
@@ -139,7 +100,7 @@ type TileflowMapBuildManifestV1 = {
|
|
|
139
100
|
* Create the portable map build identity document.
|
|
140
101
|
*
|
|
141
102
|
* `mapRevisionSha256` identifies the effective cartographic definition and effective source
|
|
142
|
-
* icon/font bytes. Editorial identity, default view, capture scenes,
|
|
103
|
+
* icon/font bytes. Editorial identity, default view, capture scenes, package
|
|
143
104
|
* versions, compiler ABI versions, compiled Style JSON, generated sprite/font outputs, filesystem
|
|
144
105
|
* paths, and a concrete resolution of a floating World selector are outside that hash. They have
|
|
145
106
|
* their own identities or remain tooling/delivery state.
|
|
@@ -148,7 +109,7 @@ declare function createTileflowMapBuildManifest(maps: Readonly<Record<string, Ti
|
|
|
148
109
|
provenance?: TileflowMapBuildProvenanceV1;
|
|
149
110
|
}): Promise<TileflowMapBuildManifestV1>;
|
|
150
111
|
/** Hash a resolved map definition with the versioned, domain-separated revision contract. */
|
|
151
|
-
declare function hashTileflowMapRevision(input:
|
|
112
|
+
declare function hashTileflowMapRevision(input: ResolvedTileflowMap, sourceAssets: TileflowEffectiveMapSourceAssets): Promise<string>;
|
|
152
113
|
/** Hash the exact compiled resources bound to one map, independently from its Style JSON. */
|
|
153
114
|
declare function hashTileflowAssetSet(input: readonly TileflowHashableBuildAsset[]): Promise<string>;
|
|
154
115
|
/**
|
|
@@ -160,23 +121,25 @@ declare function hashTileflowAssetSet(input: readonly TileflowHashableBuildAsset
|
|
|
160
121
|
declare function hashTileflowAssetSetIdentities(input: readonly TileflowBuildAssetIdentity[]): Promise<string>;
|
|
161
122
|
|
|
162
123
|
/**
|
|
163
|
-
* Compile the ordinary MapLibre Style and a separate
|
|
164
|
-
*
|
|
124
|
+
* Compile the ordinary MapLibre Style and a separate read-only physical-output sidecar.
|
|
125
|
+
* Its physical IDs are diagnostic observations, never authoring targets. The sidecar never enters
|
|
126
|
+
* the Style object or runtime manifest.
|
|
165
127
|
*/
|
|
166
128
|
declare function createStyleWithInspection(config: TileflowMap, options?: TileflowStyleOptions): TileflowInspectedStyle;
|
|
167
129
|
|
|
168
|
-
type TileflowCompiledMapMetadata = Pick<ResolvedTileflowMap, 'id' | '
|
|
130
|
+
type TileflowCompiledMapMetadata = Pick<ResolvedTileflowMap, 'id' | 'version'> & {
|
|
169
131
|
lineage: readonly TileflowMapBuildLineageEntry[];
|
|
170
132
|
};
|
|
171
133
|
/** Multi-map intermediate representation owned by Node build tooling. */
|
|
172
134
|
type TileflowBuildCatalog = {
|
|
173
|
-
|
|
135
|
+
/** Validated, inheritance-free compiler inputs. Authoring definitions live outside the catalog. */
|
|
136
|
+
maps: Record<string, ResolvedTileflowMap>;
|
|
174
137
|
mapMetadata?: Record<string, TileflowCompiledMapMetadata>;
|
|
175
138
|
scenes?: Record<string, TileflowCaptureScene>;
|
|
176
139
|
};
|
|
177
140
|
/** Complete compiled style family, addressed first by logical map and then by theme name. */
|
|
178
141
|
type TileflowBuildStyles = Record<string, Record<string, MapLibreStyle>>;
|
|
179
|
-
/**
|
|
142
|
+
/** Style family plus opt-in, read-only, non-addressable physical-output diagnostics. */
|
|
180
143
|
type TileflowBuildInspectedStyles = Record<string, Record<string, TileflowInspectedStyle>>;
|
|
181
144
|
declare function createStyleFromCatalog<const TCatalog extends TileflowBuildCatalog, const TMapName extends keyof TCatalog['maps'] & string>(catalog: TCatalog, mapName: TMapName, options?: TileflowStyleOptions): MapLibreStyle;
|
|
182
145
|
declare function createStyleFromCatalogWithInspection<const TCatalog extends TileflowBuildCatalog, const TMapName extends keyof TCatalog['maps'] & string>(catalog: TCatalog, mapName: TMapName, options?: TileflowStyleOptions): TileflowInspectedStyle;
|
|
@@ -184,7 +147,7 @@ declare function createStyleFromCatalogWithInspection<const TCatalog extends Til
|
|
|
184
147
|
declare function createStylesFromCatalog(catalog: TileflowBuildCatalog, options?: Omit<TileflowStyleOptions, 'preparedAssets' | 'theme'> & {
|
|
185
148
|
mapAssets?: Readonly<Record<string, TileflowPreparedMapAssets>>;
|
|
186
149
|
}): TileflowBuildStyles;
|
|
187
|
-
/** Compile every declared theme with a separate
|
|
150
|
+
/** Compile every declared theme with a separate read-only physical-output diagnostic sidecar. */
|
|
188
151
|
declare function createStylesFromCatalogWithInspection(catalog: TileflowBuildCatalog, options?: Omit<TileflowStyleOptions, 'preparedAssets' | 'theme'> & {
|
|
189
152
|
mapAssets?: Readonly<Record<string, TileflowPreparedMapAssets>>;
|
|
190
153
|
}): TileflowBuildInspectedStyles;
|
|
@@ -192,4 +155,4 @@ declare function createManifest(catalog: TileflowBuildCatalog, options?: {
|
|
|
192
155
|
styleBaseUrl?: string;
|
|
193
156
|
}): TileflowRuntimeManifest;
|
|
194
157
|
|
|
195
|
-
export { type TileflowBuildAssetIdentity, type TileflowBuildCatalog, type TileflowBuildInspectedStyles, type TileflowBuildStyles, type TileflowCompiledMapMetadata, TileflowDataRequirementsV1, type TileflowEffectiveFontSourceIdentity, type TileflowEffectiveIconSourceIdentity, type TileflowEffectiveMapSourceAssets, type TileflowHashableBuildAsset,
|
|
158
|
+
export { type TileflowBuildAssetIdentity, type TileflowBuildCatalog, type TileflowBuildInspectedStyles, type TileflowBuildStyles, type TileflowCompiledMapMetadata, TileflowDataRequirementsV1, type TileflowEffectiveFontSourceIdentity, type TileflowEffectiveIconSourceIdentity, type TileflowEffectiveMapSourceAssets, type TileflowHashableBuildAsset, TileflowInspectedStyle, type TileflowMapBuildInput, type TileflowMapBuildLineageEntry, type TileflowMapBuildManifestEntryV1, type TileflowMapBuildManifestV1, type TileflowMapBuildProvenanceV1, TileflowPreparedMapAssets, TileflowSourceRequirementsV1, type TileflowThemeBuildManifestEntryV1, collectTileflowMapBuildLineage, createManifest, createStyleFromCatalog, createStyleFromCatalogWithInspection, createStyleWithInspection, createStylesFromCatalog, createStylesFromCatalogWithInspection, createTileflowMapBuildManifest, hashTileflowAssetSet, hashTileflowAssetSetIdentities, hashTileflowMapRevision, tileflowMapBuildManifestFileName, tileflowMapBuildManifestSchemaVersion, tileflowMapRevisionCanonicalization, tileflowMapRevisionSchemaVersion };
|