nengo / nengo-gui

Nengo interactive visualizer
Other
95 stars 38 forks source link

Fix bounding box computation for connections #1015

Closed astoeckel closed 5 years ago

astoeckel commented 5 years ago

Since connections no longer use SVG the 'line' object but a generic 'path' instead, the attributes 'x1', 'y1', 'x2', 'y2' no longer exist.

Instead of trying to parse the SVG attributes, just ask the browser for the correct bounding box.

Fixes #1014

tcstewar commented 5 years ago

Thank you for this quick fix!