@tileflow/capture 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @tileflow/capture
2
2
 
3
- For the complete CLI workflow, use `describe`, `inspect`, `capture`, `compare`, and Map DevTools (`preview`)
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.
@@ -25,6 +25,9 @@ and a system Chrome installation is not a substitute. `allowBrowserInstall: true
25
25
  first-use download. Provision the matching shell and system libraries ahead of time in restricted
26
26
  CI environments; never assume that installing the npm package installed the browser.
27
27
 
28
+ On Windows, Capture disables Chromium's TCP port randomization to avoid intermittent loopback
29
+ connection failures, preserving Playwright's other launch defaults and sandboxing.
30
+
28
31
  Local capture needs no Tileflow API key. Configs are executable trusted code; remote tiles, fonts,
29
32
  and sprites may still require network access and their own permissions.
30
33
 
package/dist/index.js CHANGED
@@ -204,9 +204,32 @@ var TileflowCaptureBrowserManager = class {
204
204
  }
205
205
  }
206
206
  };
207
+ var windowsChromiumDisabledFeatures = [
208
+ "AvoidUnnecessaryBeforeUnloadCheckSync",
209
+ "BoundaryEventDispatchTracksNodeRemoval",
210
+ "DestroyProfileOnBrowserClose",
211
+ "DialMediaRouteProvider",
212
+ "GlobalMediaControls",
213
+ "HttpsUpgrades",
214
+ "LensOverlay",
215
+ "MediaRouter",
216
+ "PaintHolding",
217
+ "ThirdPartyStoragePartitioning",
218
+ "BlockOriginHeaderModificationOnRedirect",
219
+ "Translate",
220
+ "AutoDeElevate",
221
+ "OptimizationHints",
222
+ "msForceBrowserSignIn",
223
+ "msEdgeUpdateLaunchServicesPreferredVersion",
224
+ // Avoid intermittent Windows loopback failures: https://issues.chromium.org/issues/572515601.
225
+ "TcpPortRandomizationWin"
226
+ ];
207
227
  function launchPinnedBrowser() {
208
228
  return chromium.launch({
209
- args: ["--disable-dev-shm-usage"],
229
+ args: [
230
+ "--disable-dev-shm-usage",
231
+ ...process.platform === "win32" ? [`--disable-features=${windowsChromiumDisabledFeatures.join(",")}`] : []
232
+ ],
210
233
  chromiumSandbox: true,
211
234
  env: createTileflowCaptureBrowserEnvironment(),
212
235
  handleSIGHUP: false,
@@ -353,6 +376,7 @@ globalThis.__tileflowAttachAtmosphere = attachTileflowAtmosphere;
353
376
  globalThis.__tileflowAttachNotices = attachTileflowNotices;
354
377
  globalThis.__tileflowAttachNauticalLights = attachTileflowNauticalLights;
355
378
  globalThis.__tileflowMaxPitch = tileflowMaxPitch;
379
+ globalThis.__tileflowAttachLabelPlacement = attachTileflowLabelPlacement;
356
380
  globalThis.__tileflowCreateThemeController = createTileflowThemeController;`;
357
381
  async function captureStandaloneTileflowScene(input) {
358
382
  if (input.scene.target.kind !== "map") {
@@ -1020,6 +1044,7 @@ window.__tileflowCaptureLoad = async function(input) {
1020
1044
  window.__tileflowAttachNotices(map);
1021
1045
  // Capture prefers reduced motion, so Nautical lights stay steady and every image is stable.
1022
1046
  window.__tileflowAttachNauticalLights(map);
1047
+ window.__tileflowAttachLabelPlacement(map);
1023
1048
  return await waitForMapEvent(map, "load", input.mapEventTimeoutMs);
1024
1049
  } catch (error) {
1025
1050
  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.33",
3
+ "version": "0.1.0-alpha.35",
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.39 <0.1.0-beta.0",
52
- "@tileflow/dev": ">=0.1.0-alpha.36 <0.1.0-beta.0",
51
+ "@tileflow/core": ">=0.1.0-alpha.41 <0.1.0-beta.0",
52
+ "@tileflow/dev": ">=0.1.0-alpha.38 <0.1.0-beta.0",
53
53
  "maplibre-gl": "6.13.0",
54
54
  "pixelmatch": "7.2.0",
55
55
  "playwright": "1.62.1",
@@ -68,12 +68,12 @@
68
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
+ "@tileflow/maps": "0.1.0-alpha.15",
72
72
  "@tileflow/next": "0.1.0-alpha.25",
73
- "@tileflow/svelte": "0.1.0-alpha.32",
74
- "@tileflow/react": "0.1.0-alpha.34",
73
+ "@tileflow/react": "0.1.0-alpha.35",
74
+ "@tileflow/svelte": "0.1.0-alpha.33",
75
75
  "@tileflow/vite": "0.1.0-alpha.25",
76
- "@tileflow/vue": "0.1.0-alpha.32",
76
+ "@tileflow/vue": "0.1.0-alpha.33",
77
77
  "@tileflow/webpack": "0.1.0-alpha.25"
78
78
  },
79
79
  "scripts": {