@tileflow/core 0.1.0-alpha.41 → 0.1.0-alpha.43

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.
Files changed (51) hide show
  1. package/README.md +51 -69
  2. package/THIRD_PARTY_NOTICES.md +1 -1
  3. package/dist/{3d-CzLTD0RK.d.ts → 3d-CW5Ls0An.d.ts} +32 -2
  4. package/dist/3d.d.ts +1 -1
  5. package/dist/3d.js +337 -34
  6. package/dist/browser.d.ts +119 -7
  7. package/dist/browser.js +754 -61
  8. package/dist/build.d.ts +8 -4
  9. package/dist/build.js +284 -4
  10. package/dist/config-reference.json +4005 -2284
  11. package/dist/{icon-composition-HUh_Lj8Z.d.ts → icon-composition-Bbw9umUA.d.ts} +46 -3
  12. package/dist/index.d.ts +22 -5
  13. package/dist/index.js +254 -6
  14. package/dist/{manifest-types-DnhSJjCM.d.ts → manifest-types-CwjHd4qc.d.ts} +10 -0
  15. package/dist/manifest.d.ts +2 -2
  16. package/dist/native-profile.d.ts +4 -0
  17. package/dist/native-profile.js +2 -0
  18. package/dist/native.d.ts +87 -1
  19. package/dist/native.js +980 -460
  20. package/dist/runtime.d.ts +1 -1
  21. package/dist/worker/camera-tile-worker.global.js +2 -2
  22. package/package.json +4 -5
  23. package/docs/application-tile-reading.md +0 -86
  24. package/docs/authoring-model.md +0 -269
  25. package/docs/boundary-areas-and-choropleths.md +0 -217
  26. package/docs/buildings-3d.md +0 -608
  27. package/docs/camera-moves-and-tile-cache.md +0 -112
  28. package/docs/capture-scenes.md +0 -40
  29. package/docs/capture-shots.md +0 -173
  30. package/docs/cartographic-defaults.md +0 -210
  31. package/docs/compiled-style-performance.md +0 -286
  32. package/docs/data-is-separate-from-design.md +0 -610
  33. package/docs/depth-markers.md +0 -65
  34. package/docs/dynamic-style-images.md +0 -100
  35. package/docs/globe-atmosphere.md +0 -113
  36. package/docs/hosted-session-authorization.md +0 -106
  37. package/docs/map-and-terrain-examples.md +0 -156
  38. package/docs/map-emphasis.md +0 -89
  39. package/docs/native-artifact-profile.md +0 -152
  40. package/docs/native-resource-urls.md +0 -369
  41. package/docs/nautical-marks.md +0 -308
  42. package/docs/public-api-and-browser-subpath.md +0 -101
  43. package/docs/route-drawing.md +0 -191
  44. package/docs/shared-visual-primitives.md +0 -101
  45. package/docs/street-lights.md +0 -127
  46. package/docs/street-sky.md +0 -156
  47. package/docs/style-states.md +0 -73
  48. package/docs/sun-and-light.md +0 -167
  49. package/docs/theme-transitions-and-blends.md +0 -317
  50. package/docs/themes-and-module-styles.md +0 -156
  51. package/docs/trees-3d.md +0 -295
package/dist/native.d.ts CHANGED
@@ -362,4 +362,90 @@ declare function planTileflowThemeBlend(styles: readonly MapLibreStyle[], option
362
362
  /** Fills one blend template for a position. Plain values pass through unchanged. */
363
363
  declare function fillTileflowThemeBlendTemplate(template: unknown, position: number): unknown;
364
364
 
365
- export { type TileflowNativeAbortSignal, type TileflowNativeInitialView, type TileflowNativeInitialViewOptions, type TileflowNativeManifestAcquire, type TileflowNativeManifestLoadOptions, type TileflowNativeManifestOperation, type TileflowNativeManifestReader, type TileflowNativeManifestResponse, type TileflowNativeManifestResult, type TileflowNativeNetworkOptions, type TileflowNativeResourceUrlOptions, type TileflowNativeSource, type TileflowNativeSourceController, TileflowNativeSourceError, type TileflowNativeSourceErrorCode, type TileflowNativeSourceErrorField, type TileflowNativeSourceOptions, type TileflowNativeSourceState, TileflowNativeUrlError, type TileflowNativeUrlErrorCode, type TileflowNativeUrlField, type TileflowThemeBlendClock, TileflowThemeBlendError, type TileflowThemeBlendImage, type TileflowThemeBlendOptions, type TileflowThemeBlendPaint, type TileflowThemeBlendPlan, type TileflowThemeBlendSelection, type TileflowThemeBlendSwitch, type TileflowTimeOfDay, type TileflowTimeOfDayVariants, createTileflowNativeSourceController, fillTileflowThemeBlendTemplate, loadTileflowNativeManifest, nearestTileflowBlendTheme, planTileflowThemeBlend, resolveTileflowNativeInitialView, resolveTileflowNativeManifestUrl, resolveTileflowNativeResourceUrl, tileflowNativeManifestLimits, tileflowNativeUrlLimits, tileflowThemeBlendLimits, validateTileflowThemeBlendSelection };
365
+ /**
366
+ * Boundaries families. Each one has its own license, attribution, TileJSON path and style source
367
+ * ID; families are never merged.
368
+ */
369
+ declare const tileflowBoundaryFamilies: Readonly<{
370
+ boundaries: Readonly<{
371
+ attribution: "© OpenStreetMap contributors";
372
+ license: "ODbL-1.0";
373
+ path: "/tiles/boundaries/tiles.json";
374
+ sourceId: "tileflow-boundaries";
375
+ }>;
376
+ }>;
377
+ type TileflowBoundaryFamily = keyof typeof tileflowBoundaryFamilies;
378
+
379
+ /** A value a choropleth can colour: a number for scales, a string for categories. */
380
+ type TileflowBoundaryValue = number | string;
381
+ /** One row of an application's data, keyed by a registry ID or an official code. */
382
+ type TileflowBoundaryRow = Readonly<{
383
+ key: number | string;
384
+ /** `null` leaves the area without a value. */
385
+ value: TileflowBoundaryValue | null;
386
+ }>;
387
+ /** Keys present on every `boundary_area` polygon, usable without the lookup table. */
388
+ type TileflowBoundaryFeatureKey = 'id' | 'iso_3166_1' | 'ref';
389
+ /** Rows joined to areas by one polygon key. */
390
+ type TileflowBoundaryValues = Readonly<{
391
+ joinBy: TileflowBoundaryFeatureKey;
392
+ rows: readonly TileflowBoundaryRow[];
393
+ }>;
394
+
395
+ type FeatureTarget = {
396
+ id?: number | string;
397
+ source: string;
398
+ sourceLayer?: string;
399
+ };
400
+ /** The part of a MapLibre map the controller uses. */
401
+ type TileflowFeatureStateMap = {
402
+ getSource(id: string): unknown;
403
+ getStyle?(): {
404
+ sources?: Record<string, unknown>;
405
+ } | undefined;
406
+ off(type: 'styledata', listener: () => void): unknown;
407
+ on(type: 'styledata', listener: () => void): unknown;
408
+ removeFeatureState(target: FeatureTarget, key?: string): void;
409
+ setFeatureState(target: FeatureTarget & {
410
+ id: number | string;
411
+ }, state: Record<string, unknown>): void;
412
+ };
413
+ type CreateBoundaryFeatureStateOptions = Readonly<{
414
+ /** Defaults to `boundaries`. */
415
+ family?: TileflowBoundaryFamily;
416
+ /** Also set the values on `boundary_label` points, for labels styled by value. */
417
+ labels?: boolean;
418
+ /** Feature-state key; it must match the choropleth's `state`. Defaults to `value`. */
419
+ state?: string;
420
+ }>;
421
+ type TileflowBoundaryFeatureState = Readonly<{
422
+ /** Remove every value this controller set. */
423
+ clear: () => void;
424
+ /** Remove the values and stop following style reloads. */
425
+ dispose: () => void;
426
+ /**
427
+ * Replace the values. Rows must be keyed by the source's feature ID: `id` by default, or `ref`
428
+ * when the map declares `promoteId: 'ref'`. Rows with a `null` value are removed.
429
+ */
430
+ set: (values: TileflowBoundaryValues) => void;
431
+ }>;
432
+ /**
433
+ * Keep Boundaries feature-state in sync with application rows. Values survive a style reload: the
434
+ * controller sets them again once the source is back.
435
+ */
436
+ declare function createBoundaryFeatureState(map: TileflowFeatureStateMap, options?: CreateBoundaryFeatureStateOptions): TileflowBoundaryFeatureState;
437
+
438
+ /** Public selectors only; authority is acquired separately for each protected resource. */
439
+ type TileflowMobileDiscovery = Readonly<{
440
+ version: 1;
441
+ mapId: string;
442
+ deploymentVersion: number;
443
+ representations: Readonly<Partial<Record<'native-v1' | 'webview-v1', Readonly<{
444
+ manifestUrl: string;
445
+ }>>>>;
446
+ }>;
447
+ declare const tileflowMobileDiscoveryMaximumBytes = 4096;
448
+ /** Bind every advertised representation to the exact Hosted origin and Map being requested. */
449
+ declare function parseTileflowMobileDiscovery(value: unknown, discoveryUrl: string): TileflowMobileDiscovery;
450
+
451
+ export { type CreateBoundaryFeatureStateOptions, type TileflowBoundaryFamily, type TileflowBoundaryFeatureState, type TileflowBoundaryRow, type TileflowBoundaryValues, type TileflowFeatureStateMap, type TileflowMobileDiscovery, type TileflowNativeAbortSignal, type TileflowNativeInitialView, type TileflowNativeInitialViewOptions, type TileflowNativeManifestAcquire, type TileflowNativeManifestLoadOptions, type TileflowNativeManifestOperation, type TileflowNativeManifestReader, type TileflowNativeManifestResponse, type TileflowNativeManifestResult, type TileflowNativeNetworkOptions, type TileflowNativeResourceUrlOptions, type TileflowNativeSource, type TileflowNativeSourceController, TileflowNativeSourceError, type TileflowNativeSourceErrorCode, type TileflowNativeSourceErrorField, type TileflowNativeSourceOptions, type TileflowNativeSourceState, TileflowNativeUrlError, type TileflowNativeUrlErrorCode, type TileflowNativeUrlField, type TileflowThemeBlendClock, TileflowThemeBlendError, type TileflowThemeBlendImage, type TileflowThemeBlendOptions, type TileflowThemeBlendPaint, type TileflowThemeBlendPlan, type TileflowThemeBlendSelection, type TileflowThemeBlendSwitch, type TileflowTimeOfDay, type TileflowTimeOfDayVariants, createBoundaryFeatureState, createTileflowNativeSourceController, fillTileflowThemeBlendTemplate, loadTileflowNativeManifest, nearestTileflowBlendTheme, parseTileflowMobileDiscovery, planTileflowThemeBlend, resolveTileflowNativeInitialView, resolveTileflowNativeManifestUrl, resolveTileflowNativeResourceUrl, tileflowBoundaryFamilies, tileflowMobileDiscoveryMaximumBytes, tileflowNativeManifestLimits, tileflowNativeUrlLimits, tileflowThemeBlendLimits, validateTileflowThemeBlendSelection };