@tileflow/capture 0.1.0-alpha.32 → 0.1.0-alpha.34
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 +1 -1
- package/dist/index.js +9 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @tileflow/capture
|
|
2
2
|
|
|
3
|
-
For the complete CLI workflow, use `describe`, `inspect`, `capture`, `compare`, and
|
|
3
|
+
For the complete CLI workflow, use `describe`, `inspect`, `capture`, `compare`, and Inspector (`preview`)
|
|
4
4
|
as described in the [CLI guide](https://github.com/tileflow/tileflow-sdk/blob/main/packages/cli/README.md).
|
|
5
5
|
New still captures include their normalized `definition` for later review. The CLI stores immutable
|
|
6
6
|
capture IDs so `compare --before <id> --after <id>` can reuse evidence without rendering again.
|
package/dist/index.js
CHANGED
|
@@ -351,6 +351,9 @@ globalThis.__tileflowRegisterContourProtocol = registerTileflowContourProtocol;
|
|
|
351
351
|
globalThis.__tileflowRegisterPmtilesProtocol = registerTileflowPmtilesProtocol;
|
|
352
352
|
globalThis.__tileflowAttachAtmosphere = attachTileflowAtmosphere;
|
|
353
353
|
globalThis.__tileflowAttachNotices = attachTileflowNotices;
|
|
354
|
+
globalThis.__tileflowAttachNauticalLights = attachTileflowNauticalLights;
|
|
355
|
+
globalThis.__tileflowMaxPitch = tileflowMaxPitch;
|
|
356
|
+
globalThis.__tileflowAttachLabelPlacement = attachTileflowLabelPlacement;
|
|
354
357
|
globalThis.__tileflowCreateThemeController = createTileflowThemeController;`;
|
|
355
358
|
async function captureStandaloneTileflowScene(input) {
|
|
356
359
|
if (input.scene.target.kind !== "map") {
|
|
@@ -1003,9 +1006,12 @@ window.__tileflowCaptureLoad = async function(input) {
|
|
|
1003
1006
|
.map(([sourceId]) => sourceId);
|
|
1004
1007
|
const map = new window.maplibregl.Map({
|
|
1005
1008
|
attributionControl: false,
|
|
1009
|
+
// Multisampled like the interactive map, so thin 3D model edges capture without stipple.
|
|
1010
|
+
canvasContextAttributes: {antialias: true},
|
|
1006
1011
|
container: "map",
|
|
1007
1012
|
fadeDuration: 0,
|
|
1008
1013
|
interactive: false,
|
|
1014
|
+
maxPitch: window.__tileflowMaxPitch,
|
|
1009
1015
|
style: input.style
|
|
1010
1016
|
});
|
|
1011
1017
|
window.__tileflowMap = map;
|
|
@@ -1013,6 +1019,9 @@ window.__tileflowCaptureLoad = async function(input) {
|
|
|
1013
1019
|
window.__tileflowAttachAtmosphere(map);
|
|
1014
1020
|
// Notices such as "Not for navigation" are part of the map, so captured images keep them.
|
|
1015
1021
|
window.__tileflowAttachNotices(map);
|
|
1022
|
+
// Capture prefers reduced motion, so Nautical lights stay steady and every image is stable.
|
|
1023
|
+
window.__tileflowAttachNauticalLights(map);
|
|
1024
|
+
window.__tileflowAttachLabelPlacement(map);
|
|
1016
1025
|
return await waitForMapEvent(map, "load", input.mapEventTimeoutMs);
|
|
1017
1026
|
} catch (error) {
|
|
1018
1027
|
return {status: "failed", reason: "error", message: String(error?.message || error || "")};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tileflow/capture",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.34",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Deterministic local visual capture and comparison for Tileflow maps.",
|
|
6
6
|
"engines": {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@tileflow/core": ">=0.1.0-alpha.
|
|
52
|
-
"@tileflow/dev": ">=0.1.0-alpha.
|
|
51
|
+
"@tileflow/core": ">=0.1.0-alpha.40 <0.1.0-beta.0",
|
|
52
|
+
"@tileflow/dev": ">=0.1.0-alpha.37 <0.1.0-beta.0",
|
|
53
53
|
"maplibre-gl": "6.13.0",
|
|
54
54
|
"pixelmatch": "7.2.0",
|
|
55
55
|
"playwright": "1.62.1",
|
|
@@ -61,19 +61,19 @@
|
|
|
61
61
|
"@types/pngjs": "6.0.5",
|
|
62
62
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
63
63
|
"maplibre-gl-min": "npm:maplibre-gl@6.4.1",
|
|
64
|
-
"next": "16.
|
|
64
|
+
"next": "16.4.2",
|
|
65
65
|
"react": "^19.3.0",
|
|
66
66
|
"react-dom": "^19.3.0",
|
|
67
67
|
"svelte": "^5.57.2",
|
|
68
|
-
"vite": "^8.
|
|
68
|
+
"vite": "^8.3.4",
|
|
69
69
|
"vue": "^3.5.43",
|
|
70
70
|
"webpack": "5.108.3",
|
|
71
|
+
"@tileflow/maps": "0.1.0-alpha.14",
|
|
71
72
|
"@tileflow/next": "0.1.0-alpha.25",
|
|
72
|
-
"@tileflow/
|
|
73
|
-
"@tileflow/react": "0.1.0-alpha.32",
|
|
74
|
-
"@tileflow/svelte": "0.1.0-alpha.30",
|
|
73
|
+
"@tileflow/react": "0.1.0-alpha.35",
|
|
75
74
|
"@tileflow/vite": "0.1.0-alpha.25",
|
|
76
|
-
"@tileflow/vue": "0.1.0-alpha.
|
|
75
|
+
"@tileflow/vue": "0.1.0-alpha.33",
|
|
76
|
+
"@tileflow/svelte": "0.1.0-alpha.33",
|
|
77
77
|
"@tileflow/webpack": "0.1.0-alpha.25"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|