feat: Refactor draw-relief-icons.ts to integrate with WebGL2LayerFramework

- Implemented registration of draw-relief-icons with WebGL2LayerFramework, removing module-level renderer state.
- Updated drawRelief, undrawRelief, and rerenderReliefIcons functions to utilize framework methods.
- Ensured SVG fallback path is preserved and functional.
- Added performance criteria for rendering relief icons.
- Created tests to verify fallback integration and visual parity with existing SVG output.

test: Add WebGL2 fallback integration verification

- Introduced new tests for WebGL2LayerFramework to ensure no-ops when fallback is active.
- Verified that drawRelief routes to SVG when WebGL2 is unavailable.
- Confirmed visual parity between SVG output and existing implementation.
- Ensured all tests pass with updated coverage metrics.
This commit is contained in:
Azgaar 2026-03-12 14:28:33 +01:00
parent 8c78fe2ec1
commit 30f74373b8
5 changed files with 1154 additions and 20 deletions

View file

@ -48,10 +48,10 @@ development_status:
epic-1-retrospective: optional
# Epic 2: Relief Icons Layer Migration
epic-2: backlog
2-1-verify-and-implement-per-icon-rotation-in-buildsetmesh: backlog
2-2-refactor-draw-relief-icons-ts-to-use-framework: backlog
2-3-webgl2-fallback-integration-verification: backlog
epic-2: in-progress
2-1-verify-and-implement-per-icon-rotation-in-buildsetmesh: ready-for-dev
2-2-refactor-draw-relief-icons-ts-to-use-framework: ready-for-dev
2-3-webgl2-fallback-integration-verification: ready-for-dev
epic-2-retrospective: optional
# Epic 3: Quality & Bundle Integrity