@tileflow/capture 0.1.0-alpha.32 → 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 (2) hide show
  1. package/dist/index.js +7 -0
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -351,6 +351,8 @@ 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;
354
356
  globalThis.__tileflowCreateThemeController = createTileflowThemeController;`;
355
357
  async function captureStandaloneTileflowScene(input) {
356
358
  if (input.scene.target.kind !== "map") {
@@ -1003,9 +1005,12 @@ window.__tileflowCaptureLoad = async function(input) {
1003
1005
  .map(([sourceId]) => sourceId);
1004
1006
  const map = new window.maplibregl.Map({
1005
1007
  attributionControl: false,
1008
+ // Multisampled like the interactive map, so thin 3D model edges capture without stipple.
1009
+ canvasContextAttributes: {antialias: true},
1006
1010
  container: "map",
1007
1011
  fadeDuration: 0,
1008
1012
  interactive: false,
1013
+ maxPitch: window.__tileflowMaxPitch,
1009
1014
  style: input.style
1010
1015
  });
1011
1016
  window.__tileflowMap = map;
@@ -1013,6 +1018,8 @@ window.__tileflowCaptureLoad = async function(input) {
1013
1018
  window.__tileflowAttachAtmosphere(map);
1014
1019
  // Notices such as "Not for navigation" are part of the map, so captured images keep them.
1015
1020
  window.__tileflowAttachNotices(map);
1021
+ // Capture prefers reduced motion, so Nautical lights stay steady and every image is stable.
1022
+ window.__tileflowAttachNauticalLights(map);
1016
1023
  return await waitForMapEvent(map, "load", input.mapEventTimeoutMs);
1017
1024
  } catch (error) {
1018
1025
  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.32",
3
+ "version": "0.1.0-alpha.33",
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.37 <0.1.0-beta.0",
52
- "@tileflow/dev": ">=0.1.0-alpha.34 <0.1.0-beta.0",
51
+ "@tileflow/core": ">=0.1.0-alpha.39 <0.1.0-beta.0",
52
+ "@tileflow/dev": ">=0.1.0-alpha.36 <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.3.8",
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.0.16",
68
+ "vite": "^8.3.4",
69
69
  "vue": "^3.5.43",
70
70
  "webpack": "5.108.3",
71
+ "@tileflow/maps": "0.1.0-alpha.13",
71
72
  "@tileflow/next": "0.1.0-alpha.25",
72
- "@tileflow/maps": "0.1.0-alpha.11",
73
- "@tileflow/react": "0.1.0-alpha.32",
74
- "@tileflow/svelte": "0.1.0-alpha.30",
73
+ "@tileflow/svelte": "0.1.0-alpha.32",
74
+ "@tileflow/react": "0.1.0-alpha.34",
75
75
  "@tileflow/vite": "0.1.0-alpha.25",
76
- "@tileflow/vue": "0.1.0-alpha.30",
76
+ "@tileflow/vue": "0.1.0-alpha.32",
77
77
  "@tileflow/webpack": "0.1.0-alpha.25"
78
78
  },
79
79
  "scripts": {