From 7cdee566eb724384fa550a25807c2da9d064db18 Mon Sep 17 00:00:00 2001 From: meleki Date: Tue, 22 Sep 2026 15:38:17 +0200 Subject: [PATCH] Architecture: a pan only moves the camera - Architecture names moveCamera and when a pan still takes the full redraw. - Development: check total 1285. Co-Authored-By: Claude Opus 5 --- Architecture.md | 4 +++- Development.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Architecture.md b/Architecture.md index f8a5314..c52761b 100644 --- a/Architecture.md +++ b/Architecture.md @@ -152,7 +152,9 @@ src/editor/plugins/ startPlugins (list, import, host; runs before the first p running plugins match what the project asks for, order, checks, what became of each file), pluginApi (API v1, the per-plugin scope), PluginsPane (the Plugins tab), NodeBoard (api.ui) src/editor/viewport/ WorldViewport base → FreeViewport (a camera of its own: fit, pan, wheel zoom) → SceneViewport, PreviewCanvas; - GameViewport follows the game's camera instead — editing tools, hence not in src/viewport/ + GameViewport follows the game's camera instead — editing tools, hence not in src/viewport/. + A pan only moves the world and redraws the screen-space overlays (`moveCamera`); a full + `redraw()` follows only when an object crosses the edge of the view src/editor/inspector/ Inspector panel, host (what a section builds into), field factory, previewHandlers (scrub → preview → command), valueSpecs (where a value lives — shared with the List tab), one section per selection kind (asset/object/node/frame/shape), variableRows (one row shape for diff --git a/Development.md b/Development.md index f389fb8..3a91256 100644 --- a/Development.md +++ b/Development.md @@ -13,7 +13,7 @@ npm run check # typecheck + lint + format:check + tests, the gate CI runs npm run build # writes dist/ and regenerates index.html ./build.sh # the same under `set -o pipefail`, for callers that pipe the output php tools/make-user.php # an account; every tool signs in (see Accounts) -node tools/seed-e2e.mjs && node tools/e2e.mjs # 1282 editor checks, screenshots in /tmp/gm-e2e-*.png +node tools/seed-e2e.mjs && node tools/e2e.mjs # 1285 editor checks, screenshots in /tmp/gm-e2e-*.png GM_STEPS=20 node tools/e2e.mjs # or 1-12, or 6,20 — a subset while working on one step ./e2e.sh start [GM_STEPS] # the same run detached, see below ./e2e.sh status # live progress, or the last run's result