From 21487476293a77518e81c91ecdc0fbd4c4b74a25 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 27 Oct 2026 11:37:41 +0100 Subject: web: W2 — hill DB, metadata-driven viewpoint, markers and auto-fit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fetch gipfel.dat.gz at startup, gunzip (flate2, pure Rust) and load into a Panorama held in app state - image loads now also parse the gipfel JPEG comment / EXIF and set the viewpoint via apply_image_metadata (same path as desktop) - markers: click a visible-peak guide dot to mark it, drag to adjust, right-click to remove; refit (comp_params_with, distortion locked by default) after every change once >= 4 markers - sidebar: fit-distortion toggle, marker/zoom readout, fitted az/pitch/roll/scale line - canvas: guide dots for visible peaks, red crosses + shadowed labels - serve-here.sh: dev helper (cargo build --target wasm32 + wasm-bindgen + gzip the DB into the static dist dir) Verified: cargo check clean for wasm32; runtime to be confirmed in browser against a gipfel-saved photo (W2 acceptance: fit must match the desktop result on the same image). --- crates/gipfel-web/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/gipfel-web/Cargo.toml') diff --git a/crates/gipfel-web/Cargo.toml b/crates/gipfel-web/Cargo.toml index b53fdaa..4d846c1 100644 --- a/crates/gipfel-web/Cargo.toml +++ b/crates/gipfel-web/Cargo.toml @@ -7,6 +7,7 @@ description = "gipfel web — browser front end (WASM)" [dependencies] gipfel-core = { path = "../gipfel-core" } +flate2 = "1" js-sys = "0.3" wasm-bindgen = "0.2" wasm-bindgen-futures = "0.4" @@ -32,6 +33,8 @@ features = [ "ImageBitmap", "MouseEvent", "PointerEvent", + "Request", + "Response", "Window", "WheelEvent", ] -- cgit v1.2.3