Commit 413709b
committed
fix(graph): balance the Gravity slider across the full 0..400 range
The Ledger Gravity slider (loose <-> tight) floored the loose end at setting 24 and used a 2x linear response mapping that saturated at 200, so a large part of the slider travel produced identical output. Drags through multiple intermediate events also ended at a different layout than a direct drag (path dependence).
Engine (engraphis/dashboard_assets/engraphis-graph.js): galaxyBlackHoleGravitySetting and galaxyStellarGravitySetting now clamp 1:1 to 0..400 with no floors; preserveGalaxyPhaseOnResume is armed before inner render, outer render, and the synchronous physics reheat; schedulePhysicsUpdate arms the phase-preserve flag for its rAF reheat in galaxy mode so the post-burst frame does not re-run path-dependent contact corrections.
Slider mapping (engraphis/dashboard_assets/ledger.js): graphSliderResponseValue maps the Gravity slider 1:1 (clamped identity) instead of the 2x linear gain that saturated at 200.
Assets: cache version bumped to 20260831-galaxy-floor-fix-2 across dashboard_assets/index.html, ledger.js, both dashboard.js mirrors, and the classic/static index.html cache busters.
Tests: tests/test_galaxy_gravity_floor.py pins loose >= tight * 1.5 across full travel; tests/test_galaxy_gravity_slider_no_dead_zone.py pins strict monotonicity of the engine constant across 0..400; tests/test_slider_response.py pins the shipped ledger.js mapping (401 unique strictly increasing effective values); tests/test_galaxy_gravity_slider.py updated for the full-travel contract; tests/e2e/graph-engine.spec.js adds burst path-independence and no-dead-zone sweep with canvas hash diffs; tests/test_graph_engine_asset.py version pins updated (file reflowed to CRLF by editor save; AST-verified no logic change beyond version pins).1 parent 439aec4 commit 413709b
15 files changed
Lines changed: 13204 additions & 11819 deletions
File tree
- engraphis
- classic_assets
- dashboard_assets
- static
- tests
- e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
711 | | - | |
| 711 | + | |
712 | 712 | | |
713 | 713 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| |||
2437 | 2437 | | |
2438 | 2438 | | |
2439 | 2439 | | |
2440 | | - | |
2441 | | - | |
2442 | | - | |
2443 | | - | |
2444 | | - | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
2445 | 2447 | | |
2446 | 2448 | | |
2447 | 2449 | | |
| |||
2454 | 2456 | | |
2455 | 2457 | | |
2456 | 2458 | | |
2457 | | - | |
2458 | 2459 | | |
2459 | 2460 | | |
2460 | | - | |
2461 | | - | |
2462 | | - | |
| 2461 | + | |
| 2462 | + | |
2463 | 2463 | | |
2464 | 2464 | | |
2465 | 2465 | | |
2466 | 2466 | | |
2467 | 2467 | | |
2468 | 2468 | | |
2469 | 2469 | | |
2470 | | - | |
2471 | | - | |
2472 | | - | |
2473 | | - | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
2474 | 2473 | | |
2475 | 2474 | | |
2476 | 2475 | | |
| |||
0 commit comments