Skip to content

Commit

Permalink
Merge pull request #19 from reckart/bugfix/18-Problem-rendering-conne…
Browse files Browse the repository at this point in the history
…ctions

Issue #18 - Problem rendering connections
  • Loading branch information
rsimon authored Nov 12, 2022
2 parents 1a0bf8f + c2f95aa commit ebd1c76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/NetworkNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ export default class NetworkNode {
}

// Merge all client-rects to one multi-polygon
return rects.length > 0 ? mergePolygons(rects.map(rect => {
return rects.length > 0 ? mergePolygons(rects
.filter(rect => rect.width > 0 && rect.height > 0)
.map(rect => {
const { x, y, width, height } = rect;

return new Polygon([
Expand Down

0 comments on commit ebd1c76

Please sign in to comment.