step 5: add stable pan zoom and view commands
This commit is contained in:
19
AGENTS.md
19
AGENTS.md
@@ -2,7 +2,7 @@
|
||||
|
||||
## Current status
|
||||
|
||||
Step 4 complete.
|
||||
Step 5 complete.
|
||||
|
||||
## Completed steps
|
||||
|
||||
@@ -10,10 +10,11 @@ Step 1 - Public API contract and pure core.
|
||||
Step 2 - Thread-safe state, commands, overlays, and cache model.
|
||||
Step 3 - Widget shell, sizing system, and GUI-thread frame pump.
|
||||
Step 4 - Tile manager, persistent cache, and asynchronous loading.
|
||||
Step 5 - Interaction: pan, zoom, and view commands.
|
||||
|
||||
## Current step
|
||||
|
||||
Step 5 - Interaction: pan, zoom, and view commands.
|
||||
Step 6 - Overlay rendering and runtime update stress tests.
|
||||
|
||||
## Design decisions
|
||||
|
||||
@@ -68,7 +69,19 @@ None yet.
|
||||
- Ran `uv run ruff format --check .`.
|
||||
- Ran `uv run pyright`.
|
||||
- Ran a Dear PyGui context smoke check for `map_widget` child-window/drawlist/texture-registry creation.
|
||||
- Implemented left mouse drag panning using the measured drawlist rectangle.
|
||||
- Implemented mouse wheel zoom around the cursor.
|
||||
- Implemented projection-backed `screen_to_latlon`, `latlon_to_screen`, and zoom-fitting `fit_bounds`.
|
||||
- Attached Dear PyGui mouse handlers through the map handler registry.
|
||||
- Added interaction debug state for active drag and last mouse position.
|
||||
- Added Step 5 tests for pan, cursor zoom, view conversion, bounds fitting, and overlay/view isolation.
|
||||
- Added Pyright virtualenv settings so `uv run pyright` resolves installed dependencies.
|
||||
- Ran `uv run pytest`.
|
||||
- Ran `uv run ruff check .`.
|
||||
- Ran `uv run ruff format --check .`.
|
||||
- Ran `uv run pyright`.
|
||||
- Ran a Dear PyGui context smoke check for `map_widget` child-window/drawlist/texture-registry/handler-registry creation.
|
||||
|
||||
## Next action
|
||||
|
||||
Implement Step 5.
|
||||
Implement Step 6.
|
||||
|
||||
Reference in New Issue
Block a user