@tileflow/capture 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 (2) hide show
  1. package/dist/index.js +10 -0
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -350,6 +350,9 @@ var tileflowBrowserModule = `${readFileSync2(
350
350
  globalThis.__tileflowRegisterContourProtocol = registerTileflowContourProtocol;
351
351
  globalThis.__tileflowRegisterPmtilesProtocol = registerTileflowPmtilesProtocol;
352
352
  globalThis.__tileflowAttachAtmosphere = attachTileflowAtmosphere;
353
+ globalThis.__tileflowAttachNotices = attachTileflowNotices;
354
+ globalThis.__tileflowAttachNauticalLights = attachTileflowNauticalLights;
355
+ globalThis.__tileflowMaxPitch = tileflowMaxPitch;
353
356
  globalThis.__tileflowCreateThemeController = createTileflowThemeController;`;
354
357
  async function captureStandaloneTileflowScene(input) {
355
358
  if (input.scene.target.kind !== "map") {
@@ -1002,14 +1005,21 @@ window.__tileflowCaptureLoad = async function(input) {
1002
1005
  .map(([sourceId]) => sourceId);
1003
1006
  const map = new window.maplibregl.Map({
1004
1007
  attributionControl: false,
1008
+ // Multisampled like the interactive map, so thin 3D model edges capture without stipple.
1009
+ canvasContextAttributes: {antialias: true},
1005
1010
  container: "map",
1006
1011
  fadeDuration: 0,
1007
1012
  interactive: false,
1013
+ maxPitch: window.__tileflowMaxPitch,
1008
1014
  style: input.style
1009
1015
  });
1010
1016
  window.__tileflowMap = map;
1011
1017
  window.__tileflowCaptureStyle = input.style;
1012
1018
  window.__tileflowAttachAtmosphere(map);
1019
+ // Notices such as "Not for navigation" are part of the map, so captured images keep them.
1020
+ window.__tileflowAttachNotices(map);
1021
+ // Capture prefers reduced motion, so Nautical lights stay steady and every image is stable.
1022
+ window.__tileflowAttachNauticalLights(map);
1013
1023
  return await waitForMapEvent(map, "load", input.mapEventTimeoutMs);
1014
1024
  } catch (error) {
1015
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.31",
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.35 <0.1.0-beta.0",
52
- "@tileflow/dev": ">=0.1.0-alpha.32 <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/react": "0.1.0-alpha.30",
71
+ "@tileflow/maps": "0.1.0-alpha.13",
72
72
  "@tileflow/next": "0.1.0-alpha.25",
73
- "@tileflow/svelte": "0.1.0-alpha.29",
74
- "@tileflow/maps": "0.1.0-alpha.9",
75
- "@tileflow/vue": "0.1.0-alpha.29",
73
+ "@tileflow/svelte": "0.1.0-alpha.32",
74
+ "@tileflow/react": "0.1.0-alpha.34",
76
75
  "@tileflow/vite": "0.1.0-alpha.25",
76
+ "@tileflow/vue": "0.1.0-alpha.32",
77
77
  "@tileflow/webpack": "0.1.0-alpha.25"
78
78
  },
79
79
  "scripts": {