Fix demo canvas (network visualization) — rendering broken after refactoring #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug Description
The demo canvas (network test/visualization block) stopped working after the last refactoring. Canvas
width/heightHTML attributes were removed, and the JS code no longer properly sets canvas dimensions.Root Cause Analysis
widthandheightattributes removed from HTML during refactoringgetCanvasSize()function does not handle zero-width container (returns0,0)Acceptance Criteria
getCanvasSize()handles zero-width container gracefullyFiles Likely Affected
js/demo.js— canvas dimension handling,getCanvasSize()index.html— canvas element attributes or data attributesHow to Verify