Skip to content

Instantly share code, notes, and snippets.

View famuyiwadayo's full-sized avatar
🏠
Working from home

Famuyiwa Dayo famuyiwadayo

🏠
Working from home
View GitHub Profile
@jose-mdz
jose-mdz / README.md
Last active October 12, 2024 23:08
Orthogonal Diagram Connector

Orthogonal Connectors

This algorithm returns the points that form an orthogonal path between two rectangles.

How to Use

// Define shapes
const shapeA = {left: 50,  top: 50, width: 100, height: 100};
const shapeB = {left: 200, top: 200, width: 50, height: 100};