Merge pull request #236 from ewqazxc/main

Fix fitWindow not finding element id
This commit is contained in:
1ilit
2024-09-17 11:25:59 +04:00
committed by GitHub

View File

@@ -532,6 +532,7 @@ export default function Canvas() {
</svg> </svg>
)} )}
<svg <svg
id="diagram"
ref={canvasRef} ref={canvasRef}
onPointerMove={handlePointerMove} onPointerMove={handlePointerMove}
onPointerDown={handlePointerDown} onPointerDown={handlePointerDown}