From 00e7bdf243d1d98a3e284a8974dc6379500ac96c Mon Sep 17 00:00:00 2001 From: Leslie Owusu-Appiah Date: Sun, 8 Nov 2026 14:15:59 +0100 Subject: [PATCH] fix(example): BENCH_FIXTURE_DIR is a plain path, not a file:// URI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit resolveFileUri adds file:// to the basePath it is given, so a file:// folder became file://file:///… and every fixture image failed to load. Co-Authored-By: Claude Opus 5.5 --- example/shared/benchConfig.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/shared/benchConfig.ts b/example/shared/benchConfig.ts index 2d11afa..0897eb6 100644 --- a/example/shared/benchConfig.ts +++ b/example/shared/benchConfig.ts @@ -9,7 +9,8 @@ export const BENCH_REMOUNTS = 0; export const BENCH_SIZES = [500, 2000, 5000, 10000]; /** - * A folder (a file:// URI ending in `/`) holding workspace-fixtures' + * A folder, as a plain path (no `file://`: it's the canvas's basePath, which + * resolveFileUri turns into a URI), holding workspace-fixtures' * Fixtures/canvas images (`portraits/`, `drawings/shapes.svg`), to measure * big-10000.canvas as well: the 10,000-node canvas with those images in place * of the web ones, which is what that fixture is (scripts/big-canvas.mts).