@tileflow/vue 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.
- package/README.md +5 -1
- package/dist/index.js +11 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -94,7 +94,8 @@ Maps without this capability ignore the option; omitting it keeps the selected t
|
|
|
94
94
|
Changing it uses the existing theme transition. `themeBlend` takes precedence. See the
|
|
95
95
|
[authoring contract](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/README.md#style-with-themes-and-semantic-modules).
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
Theme and `time-of-day` changes cross-fade over 450 ms by default, respecting reduced motion.
|
|
98
|
+
`:theme-transition="{duration: 700}"` customizes the duration; use `duration: 0` for an immediate change.
|
|
98
99
|
`:theme-blend="{themes: ['night', 'dusk', 'day'], position}"` shows a continuous blend of the
|
|
99
100
|
map's themes instead of `theme`: position 0 is the first theme and 1.5 is halfway from the second to
|
|
100
101
|
the third. Moving the position updates the map at once. See
|
|
@@ -116,6 +117,9 @@ priority over those options, then the published view, then shared defaults. `Til
|
|
|
116
117
|
selects a Tileflow map through its manifest; it has no renderer discriminator or direct-style mode.
|
|
117
118
|
Tileflow's styles are validated when they are compiled, so `validateStyle` defaults to `false`; pass
|
|
118
119
|
`true` to validate them again in the browser.
|
|
120
|
+
The map canvas is multisampled by default (`canvasContextAttributes.antialias` is `true`) so the
|
|
121
|
+
thin edges of 3D models stay continuous; other context attributes you pass are kept, and
|
|
122
|
+
`canvasContextAttributes: {antialias: false}` trades that smoothing for lower GPU cost.
|
|
119
123
|
The obsolete source fields `kind` and `style` are rejected. For a completely unmanaged map, use
|
|
120
124
|
`maplibre-gl` directly rather than a Tileflow component.
|
|
121
125
|
|
package/dist/index.js
CHANGED
|
@@ -16,8 +16,10 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
attachTileflowAtmosphere,
|
|
18
18
|
attachTileflowFairUseNotice,
|
|
19
|
+
attachTileflowLabelPlacement,
|
|
19
20
|
attachTileflowMap3D,
|
|
20
21
|
attachTileflowMapLifecycle,
|
|
22
|
+
attachTileflowNauticalLights,
|
|
21
23
|
attachTileflowNotices,
|
|
22
24
|
createTileflowSessionStarter,
|
|
23
25
|
createTileflowThemeController,
|
|
@@ -27,7 +29,9 @@ import {
|
|
|
27
29
|
registerTileflowContourProtocol,
|
|
28
30
|
registerTileflowPmtilesProtocol,
|
|
29
31
|
registerTileflowWorldRequestBridge,
|
|
30
|
-
subscribeTileflowSystemColorScheme
|
|
32
|
+
subscribeTileflowSystemColorScheme,
|
|
33
|
+
tileflowCanvasContextAttributes,
|
|
34
|
+
tileflowMaxPitch
|
|
31
35
|
} from "@tileflow/core/browser";
|
|
32
36
|
import { normalizeTileflowCaptureId } from "@tileflow/core/capture";
|
|
33
37
|
import {
|
|
@@ -794,11 +798,15 @@ var TileflowMap = defineComponent({
|
|
|
794
798
|
});
|
|
795
799
|
const map = new maplibregl.Map({
|
|
796
800
|
...props.mapOptions,
|
|
801
|
+
canvasContextAttributes: tileflowCanvasContextAttributes(
|
|
802
|
+
props.mapOptions?.canvasContextAttributes
|
|
803
|
+
),
|
|
797
804
|
attributionControl: props.mapOptions?.attributionControl ?? {
|
|
798
805
|
compact: true
|
|
799
806
|
},
|
|
800
807
|
// Tileflow's compiled styles are validated when they are built.
|
|
801
808
|
validateStyle: props.mapOptions?.validateStyle ?? false,
|
|
809
|
+
maxPitch: props.mapOptions?.maxPitch ?? tileflowMaxPitch,
|
|
802
810
|
bearing: resolvedBearing.value,
|
|
803
811
|
center: resolvedCenter.value,
|
|
804
812
|
container,
|
|
@@ -817,6 +825,8 @@ var TileflowMap = defineComponent({
|
|
|
817
825
|
mapRef.value = map;
|
|
818
826
|
attachTileflowAtmosphere(map);
|
|
819
827
|
attachTileflowNotices(map);
|
|
828
|
+
attachTileflowNauticalLights(map);
|
|
829
|
+
attachTileflowLabelPlacement(map);
|
|
820
830
|
themeController = runtime.theme === void 0 ? null : createTileflowThemeController({
|
|
821
831
|
initial: runtime,
|
|
822
832
|
map,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tileflow/vue",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.33",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Vue component for rendering Tileflow maps with MapLibre.",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@tileflow/core": ">=0.1.0-alpha.
|
|
41
|
+
"@tileflow/core": ">=0.1.0-alpha.40 <0.1.0-beta.0",
|
|
42
42
|
"@tileflow/interactions": ">=0.1.0-alpha.6 <0.1.0-beta.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|