@tileflow/core 0.1.0-alpha.33 → 0.1.0-alpha.35
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 +14 -9
- package/THIRD_PARTY_NOTICES.md +100 -6
- package/dist/browser.d.ts +687 -162
- package/dist/browser.js +9188 -4321
- package/dist/build.d.ts +16 -4
- package/dist/build.js +1753 -525
- package/dist/capture.js +1 -0
- package/dist/config-reference.json +3144 -928
- package/dist/{icon-composition-CSnN2-Xt.d.ts → icon-composition-DSjIKmrK.d.ts} +279 -6
- package/dist/index.d.ts +302 -12
- package/dist/index.js +3237 -566
- package/dist/{manifest-types-E7m23eXL.d.ts → manifest-types-Bzxon3dx.d.ts} +68 -8
- package/dist/manifest.d.ts +2 -2
- package/dist/manifest.js +80 -2
- package/dist/native-profile.js +1 -0
- package/dist/native.d.ts +13 -3
- package/dist/native.js +714 -318
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +124 -6
- package/docs/application-tile-reading.md +3 -0
- package/docs/authoring-model.md +6 -1
- package/docs/buildings-3d.md +237 -84
- package/docs/compiled-style-performance.md +14 -3
- package/docs/data-is-separate-from-design.md +137 -5
- package/docs/native-artifact-profile.md +5 -0
- package/docs/native-resource-urls.md +5 -3
- package/docs/street-lights.md +32 -5
- package/docs/theme-transitions-and-blends.md +50 -0
- package/docs/trees-3d.md +270 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ Omitted fields inherit, but declaring a field does not imply a recursive merge:
|
|
|
60
60
|
- `modules` merges by domain. Declaring `roads(...)` replaces that domain's inherited request and
|
|
61
61
|
render contributions. Use `refine(...)` to patch it, `disable()` to remove it, and `reset()` for
|
|
62
62
|
an explicit reset inside a supported patch.
|
|
63
|
-
- `themes` replaces the complete collection and clears
|
|
63
|
+
- `themes` replaces the complete collection and clears inherited `systemThemes` and `timeOfDay` mappings.
|
|
64
64
|
`defaultTheme` can select an inherited concrete theme; `systemThemes` replaces its complete mapping.
|
|
65
65
|
- `icons` replaces the ordered contributor list. Omission inherits it; `[]` disables it. Local and
|
|
66
66
|
package directories can be combined with explicit locked `iconSet('@team/set')` descriptors.
|
|
@@ -141,7 +141,7 @@ receipts must use a concrete theme such as `light` or `dark`.
|
|
|
141
141
|
|
|
142
142
|
Because every theme of a map shares one structure, a browser map can cross-fade between themes or
|
|
143
143
|
show a continuous blend of them on the same MapLibre instance, with no extra requests. See
|
|
144
|
-
[theme transitions and blends](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/theme-transitions-and-blends.md).
|
|
144
|
+
[theme transitions, time-of-day presets 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
147
|
It also sets the style-wide states that themes read with `expr.globalState`, easing numbers so the
|
|
@@ -158,13 +158,15 @@ A theme can describe its sun and sky light (`lighting.sun`, `lighting.ambient`);
|
|
|
158
158
|
returns the sun the map shows with `getSun()`, mixed during a blend, for an application's own 3D
|
|
159
159
|
layers, and `setSun()` places it by direction or by the real sun of a date and place; see
|
|
160
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
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
`createTileflowBuildings3D` raises the map's buildings with their authored colours and native
|
|
162
|
+
extrusion lighting. Height changes are immediate by default; scene sun lighting, shadows,
|
|
163
|
+
illuminated edges, colour variation, night lights and animation are explicit options; see
|
|
164
164
|
[3D buildings](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/buildings-3d.md).
|
|
165
165
|
`createTileflowStreetLights` lights the streets as the sun sets, from the lamps and lit streets the
|
|
166
166
|
map's data holds; see
|
|
167
167
|
[street lights](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/street-lights.md).
|
|
168
|
+
`createTileflowVegetation` controls all trees using the map's `3d`, `flat` or `auto` policy; see
|
|
169
|
+
[vegetation controls and 3D trees](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/trees-3d.md).
|
|
168
170
|
|
|
169
171
|
The semantic domains are `land`, `water`, `nautical`, `roads`, `buildings`, `boundaries`, `labels`,
|
|
170
172
|
`poi`, `aeroways`, `transit`, `vegetation`, `addresses`, and `landforms`. Style stable geographic
|
|
@@ -236,10 +238,12 @@ package uses this contract for its mounted Map; it is not yet published.
|
|
|
236
238
|
|
|
237
239
|
## Data, terrain, and browser resources
|
|
238
240
|
|
|
239
|
-
Tileflow World is the hosted primary
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
Tileflow World is the hosted primary source. `vectorTiles()` with `openMapTiles()` supports
|
|
242
|
+
external local/self-hosted data; hosted eligibility is separate. `hostedTileset()` and semantic
|
|
243
|
+
overlays add named sources. Local PMTiles inputs are tooling-only.
|
|
244
|
+
|
|
245
|
+
`bathymetry({vectorLayers: {...}})` declares compatible contour/name layers; omission retains
|
|
246
|
+
legacy band geometry.
|
|
243
247
|
|
|
244
248
|
World attribution links to Tileflow's source notice, OpenMapTiles, and OpenStreetMap. External
|
|
245
249
|
vector data retains the attribution supplied by its owner.
|
|
@@ -301,6 +305,7 @@ revision; prefer the installed copy when working with an older release.
|
|
|
301
305
|
- [Sun and light](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/sun-and-light.md)
|
|
302
306
|
- [3D buildings](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/buildings-3d.md)
|
|
303
307
|
- [Street lights](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/street-lights.md)
|
|
308
|
+
- [3D trees](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/trees-3d.md)
|
|
304
309
|
- [Data is separate from design](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/data-is-separate-from-design.md)
|
|
305
310
|
- [Capture scenes](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/capture-scenes.md)
|
|
306
311
|
- [Capture shots](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/capture-shots.md)
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
|
-
`@tileflow/core/browser` embeds `maplibre-contour` 0.1.0, `PMTiles` 4.
|
|
4
|
-
`earcut` 3.2.4 so contour, local archive, and 3D building rendering remain self-contained.
|
|
3
|
+
`@tileflow/core/browser` embeds `maplibre-contour` 0.1.0, `PMTiles` 4.5.0, `fflate` 0.8.3, and
|
|
4
|
+
`earcut` 3.2.4 so contour, local archive, and 3D building rendering remain self-contained.
|
|
5
|
+
`@tileflow/core` and `@tileflow/core/browser` embed the decoder of `meshoptimizer` 1.3.0, loaded
|
|
6
|
+
only to read a compressed 3D model file. The complete upstream licenses follow.
|
|
5
7
|
|
|
6
8
|
## maplibre-contour 0.1.0
|
|
7
9
|
|
|
@@ -168,7 +170,7 @@ See <https://github.com/nodejs/node/blob/main/LICENSE> for more information.
|
|
|
168
170
|
|
|
169
171
|
---
|
|
170
172
|
|
|
171
|
-
## PMTiles 4.
|
|
173
|
+
## PMTiles 4.5.0
|
|
172
174
|
|
|
173
175
|
The below license (BSD-3) applies to the reference implementations in this repository.
|
|
174
176
|
|
|
@@ -249,6 +251,32 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
|
|
|
249
251
|
|
|
250
252
|
---
|
|
251
253
|
|
|
254
|
+
## meshoptimizer 1.3.0
|
|
255
|
+
|
|
256
|
+
MIT License
|
|
257
|
+
|
|
258
|
+
Copyright (c) 2016-2026 Arseny Kapoulkine
|
|
259
|
+
|
|
260
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
261
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
262
|
+
in the Software without restriction, including without limitation the rights
|
|
263
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
264
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
265
|
+
furnished to do so, subject to the following conditions:
|
|
266
|
+
|
|
267
|
+
The above copyright notice and this permission notice shall be included in all
|
|
268
|
+
copies or substantial portions of the Software.
|
|
269
|
+
|
|
270
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
271
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
272
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
273
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
274
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
275
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
276
|
+
SOFTWARE.
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
252
280
|
## TypeScript helper code
|
|
253
281
|
|
|
254
282
|
The bundled browser entry retains TypeScript helper code and its complete upstream notice:
|
|
@@ -267,11 +295,11 @@ OF THIS SOFTWARE.
|
|
|
267
295
|
|
|
268
296
|
---
|
|
269
297
|
|
|
270
|
-
## whatwg-url
|
|
298
|
+
## whatwg-url 17.2.0 and tr46 7.0.0
|
|
271
299
|
|
|
272
300
|
The native entry embeds the low-level `whatwg-url` parser and `tr46` IDNA processing. During the
|
|
273
|
-
native build only, the parser's
|
|
274
|
-
codec. No upstream package is patched on disk and no global codec is installed. Both components
|
|
301
|
+
native build only, the parser's encoding and query-encoding imports use Tileflow's private UTF-8
|
|
302
|
+
codec; the legacy encoding bootstrap is replaced by that side-effect-free module. No upstream package is patched on disk and no global codec is installed. Both components
|
|
275
303
|
are MIT-licensed:
|
|
276
304
|
|
|
277
305
|
The MIT License (MIT)
|
|
@@ -348,3 +376,69 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
348
376
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
349
377
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
350
378
|
SOFTWARE.
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
382
|
+
## MapLibre GL JS 6.13.0 extrusion lighting
|
|
383
|
+
|
|
384
|
+
The style-lighting shader in `buildings-3d-shaders.ts` adapts the native fill-extrusion
|
|
385
|
+
lighting equations. The applicable upstream notices follow.
|
|
386
|
+
|
|
387
|
+
Copyright (c) 2023, MapLibre contributors
|
|
388
|
+
|
|
389
|
+
All rights reserved.
|
|
390
|
+
|
|
391
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
392
|
+
are permitted provided that the following conditions are met:
|
|
393
|
+
|
|
394
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
395
|
+
this list of conditions and the following disclaimer.
|
|
396
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
397
|
+
this list of conditions and the following disclaimer in the documentation
|
|
398
|
+
and/or other materials provided with the distribution.
|
|
399
|
+
* Neither the name of MapLibre GL JS nor the names of its contributors
|
|
400
|
+
may be used to endorse or promote products derived from this software
|
|
401
|
+
without specific prior written permission.
|
|
402
|
+
|
|
403
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
404
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
405
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
406
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
407
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
408
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
409
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
410
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
411
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
412
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
413
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
414
|
+
|
|
415
|
+
---
|
|
416
|
+
|
|
417
|
+
Contains code from mapbox-gl-js v1.13 and earlier
|
|
418
|
+
|
|
419
|
+
Version v1.13 of mapbox-gl-js and earlier are licensed under a BSD-3-Clause license
|
|
420
|
+
|
|
421
|
+
Copyright (c) 2020, Mapbox
|
|
422
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
423
|
+
are permitted provided that the following conditions are met:
|
|
424
|
+
|
|
425
|
+
- Redistributions of source code must retain the above copyright notice,
|
|
426
|
+
this list of conditions and the following disclaimer.
|
|
427
|
+
- Redistributions in binary form must reproduce the above copyright notice,
|
|
428
|
+
this list of conditions and the following disclaimer in the documentation
|
|
429
|
+
and/or other materials provided with the distribution.
|
|
430
|
+
- Neither the name of Mapbox GL JS nor the names of its contributors
|
|
431
|
+
may be used to endorse or promote products derived from this software
|
|
432
|
+
without specific prior written permission.
|
|
433
|
+
|
|
434
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
435
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
436
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
437
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
438
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
439
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
440
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
441
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
442
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
443
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
444
|
+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|