@tileflow/core 0.1.0-alpha.31 → 0.1.0-alpha.33

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 (40) hide show
  1. package/README.md +41 -2
  2. package/THIRD_PARTY_NOTICES.md +25 -2
  3. package/dist/browser.d.ts +1008 -16
  4. package/dist/browser.js +6661 -1392
  5. package/dist/build.d.ts +64 -56
  6. package/dist/build.js +702 -253
  7. package/dist/capture-shot-ChPQvPyi.d.ts +291 -0
  8. package/dist/capture.d.ts +1 -1
  9. package/dist/capture.js +230 -0
  10. package/dist/config-reference.json +1710 -1370
  11. package/dist/{icon-composition-BiOTwrvD.d.ts → icon-composition-CSnN2-Xt.d.ts} +169 -33
  12. package/dist/index.d.ts +57 -13
  13. package/dist/index.js +1684 -800
  14. package/dist/{manifest-types-CTT2eLbp.d.ts → manifest-types-E7m23eXL.d.ts} +18 -1
  15. package/dist/manifest.d.ts +2 -2
  16. package/dist/native-profile.d.ts +25 -11
  17. package/dist/native-profile.js +21 -1
  18. package/dist/native.js +1893 -1884
  19. package/dist/runtime.d.ts +1 -1
  20. package/docs/application-tile-reading.md +80 -0
  21. package/docs/authoring-model.md +16 -6
  22. package/docs/buildings-3d.md +168 -0
  23. package/docs/camera-moves-and-tile-cache.md +112 -0
  24. package/docs/capture-scenes.md +5 -1
  25. package/docs/capture-shots.md +173 -0
  26. package/docs/compiled-style-performance.md +4 -1
  27. package/docs/data-is-separate-from-design.md +103 -9
  28. package/docs/depth-markers.md +65 -0
  29. package/docs/dynamic-style-images.md +100 -0
  30. package/docs/native-artifact-profile.md +5 -3
  31. package/docs/public-api-and-browser-subpath.md +3 -3
  32. package/docs/route-drawing.md +191 -0
  33. package/docs/shared-visual-primitives.md +20 -0
  34. package/docs/street-lights.md +80 -0
  35. package/docs/style-states.md +73 -0
  36. package/docs/sun-and-light.md +125 -0
  37. package/docs/theme-transitions-and-blends.md +41 -2
  38. package/docs/themes-and-module-styles.md +7 -0
  39. package/package.json +4 -1
  40. package/dist/capture-scene-D6soWztE.d.ts +0 -161
package/README.md CHANGED
@@ -69,7 +69,7 @@ Omitted fields inherit, but declaring a field does not imply a recursive merge:
69
69
  - `fonts` and `glyphs` are mutually exclusive text providers. Declaring either replaces the inherited
70
70
  provider. `atmosphere`, `data`, `projection`, `terrain`, and `marine` are also atomic.
71
71
 
72
- Identity (`id`, `name`, `version`) and tooling `scenes` belong to the leaf map and do not inherit.
72
+ Identity (`id`, `name`, `version`) and tooling `scenes` and `shots` belong to the leaf map and do not inherit.
73
73
  Module object order does not determine rendering order. See the
74
74
  [map inheritance contract](https://github.com/tileflow/tileflow-sdk/blob/main/docs/contracts/map-inheritance.md)
75
75
  for the complete merge rules.
@@ -144,6 +144,27 @@ show a continuous blend of them on the same MapLibre instance, with no extra req
144
144
  [theme transitions and blends](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/theme-transitions-and-blends.md).
145
145
  The same controller can make chosen modules recede and the map's labels fade so an application's
146
146
  own content reads first; see [map emphasis](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/map-emphasis.md).
147
+ It also sets the style-wide states that themes read with `expr.globalState`, easing numbers so the
148
+ values a theme interpolates on them move smoothly; see
149
+ [style states](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/style-states.md).
150
+ For application-drawn RGBA symbols, it also manages fixed-size
151
+ [dynamic style images](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/dynamic-style-images.md),
152
+ including state refresh, theme changes and restoration without changing layer placement.
153
+ Applications draw their own routes in the theme's inks, read with `getRouteInks()`, and draw them
154
+ on with `createTileflowLineProgress`. `createTileflowGroundLayers` keeps them under 3D buildings,
155
+ which hide them where they stand in front, and can show the hidden stretches faintly; see
156
+ [route drawing](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/route-drawing.md).
157
+ A theme can describe its sun and sky light (`lighting.sun`, `lighting.ambient`); the controller
158
+ returns the sun the map shows with `getSun()`, mixed during a blend, for an application's own 3D
159
+ layers, and `setSun()` places it by direction or by the real sun of a date and place; see
160
+ [sun and light](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/sun-and-light.md).
161
+ `createTileflowBuildings3D` raises the map's buildings round the camera and lights them from that
162
+ sun, with shadows on the buildings and the flat map, contact shadow and night light from the places
163
+ they hold; it shows, hides and grows them without laying out any source; see
164
+ [3D buildings](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/buildings-3d.md).
165
+ `createTileflowStreetLights` lights the streets as the sun sets, from the lamps and lit streets the
166
+ map's data holds; see
167
+ [street lights](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/street-lights.md).
147
168
 
148
169
  The semantic domains are `land`, `water`, `nautical`, `roads`, `buildings`, `boundaries`, `labels`,
149
170
  `poi`, `aeroways`, `transit`, `vegetation`, `addresses`, and `landforms`. Style stable geographic
@@ -237,9 +258,18 @@ standalone capture apply the browser effect automatically. Direct MapLibre integ
237
258
  `attachTileflowAtmosphere(map)` from `@tileflow/core/browser`. See
238
259
  [globe atmosphere](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/globe-atmosphere.md).
239
260
 
261
+ Applications that need the map's data themselves, such as streets to route over or the place
262
+ under the camera, read chosen layers of a vector source for an area at a fixed zoom with
263
+ `createTileflowTileReader` from `@tileflow/core/browser`, which also runs in a module worker. See
264
+ [application tile reading](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/application-tile-reading.md).
265
+
266
+ In a 3D scene, `createTileflowDepthMarkers` from `@tileflow/core/browser` draws application markers
267
+ that nearer buildings hide, facing the viewer or lying on the ground. See
268
+ [depth markers](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/depth-markers.md).
269
+
240
270
  A map with text must declare exactly one text provider. Streets, Ferraris, Härad, Soundings,
241
271
  and Blueprint use URL glyph providers. Baedeker and Siegfried use packaged Cormorant
242
- fonts; Cyberpunk and Matrix use packaged Oxanium fonts. Hosted deployment currently rejects
272
+ fonts, and Cívica uses its packaged lettering. Hosted deployment currently rejects
243
273
  package/local font bundles; use self-hosted output or explicitly replace the provider with compatible
244
274
  public glyphs. Tile URLs and font providers do not establish redistribution rights.
245
275
 
@@ -262,12 +292,21 @@ revision; prefer the installed copy when working with an older release.
262
292
  - [Authoring model](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/authoring-model.md)
263
293
  - [Shared visual primitives](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/shared-visual-primitives.md)
264
294
  - [Compiled-style performance](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/compiled-style-performance.md)
295
+ - [Camera moves and the tile cache](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/camera-moves-and-tile-cache.md)
265
296
  - [Themes and module styles](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/themes-and-module-styles.md)
266
297
  - [Theme transitions and blends](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/theme-transitions-and-blends.md)
267
298
  - [Map emphasis](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/map-emphasis.md)
299
+ - [Style states](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/style-states.md)
300
+ - [Route drawing](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/route-drawing.md)
301
+ - [Sun and light](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/sun-and-light.md)
302
+ - [3D buildings](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/buildings-3d.md)
303
+ - [Street lights](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/street-lights.md)
268
304
  - [Data is separate from design](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/data-is-separate-from-design.md)
269
305
  - [Capture scenes](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/capture-scenes.md)
306
+ - [Capture shots](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/capture-shots.md)
270
307
  - [Public API and browser subpath](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/public-api-and-browser-subpath.md)
308
+ - [Application tile reading](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/application-tile-reading.md)
309
+ - [Depth markers](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/depth-markers.md)
271
310
  - [Hosted session authorization](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/hosted-session-authorization.md)
272
311
  - [Native resource URLs](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/native-resource-urls.md)
273
312
  - [Native artifact profile](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/native-artifact-profile.md)
@@ -1,7 +1,7 @@
1
1
  # Third-party notices
2
2
 
3
- `@tileflow/core/browser` embeds `maplibre-contour` 0.1.0, `PMTiles` 4.4.0, and `fflate` 0.8.3 so
4
- contour and local archive rendering remain self-contained. The complete upstream licenses follow.
3
+ `@tileflow/core/browser` embeds `maplibre-contour` 0.1.0, `PMTiles` 4.4.0, `fflate` 0.8.3, and
4
+ `earcut` 3.2.4 so contour, local archive, and 3D building rendering remain self-contained. The complete upstream licenses follow.
5
5
 
6
6
  ## maplibre-contour 0.1.0
7
7
 
@@ -203,6 +203,29 @@ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
203
203
 
204
204
  ---
205
205
 
206
+ ## earcut 3.2.4
207
+
208
+ Polygon triangulation for the 3D buildings renderer, bundled in `dist/browser.js`.
209
+ <https://github.com/mapbox/earcut>
210
+
211
+ ```text
212
+ ISC License
213
+
214
+ Copyright (c) 2026, Mapbox
215
+
216
+ Permission to use, copy, modify, and/or distribute this software for any purpose
217
+ with or without fee is hereby granted, provided that the above copyright notice
218
+ and this permission notice appear in all copies.
219
+
220
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
221
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
222
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
223
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
224
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
225
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
226
+ THIS SOFTWARE.
227
+ ```
228
+
206
229
  ## fflate 0.8.3
207
230
 
208
231
  MIT License