mxGraph Reloaded Examples

See also the GitHub repo

Anchors

This example demonstrates defining fixed connection points for all shapes.
show source

Edge tolerance

This example demonstrates increasing the tolerance for hit detection on edges.
show source

Fixed points

This example demonstrates using fixed connection points for connecting edges to vertices.
show source

Hello Port

This example demonstrates using the isPort hook for visually connecting to another cell.
show source

Orthogonal

This example demonstrates the use of port constraints and orthogonal edge styles and handlers.
show source

Port References Example

This example demonstrates referencing connection points by ID. The main difference to the implementation where the connection point is stored in the connecting edge is that changes to the original port will be reflected in all existing connections since they reference that port.
show source