clientIO / JointJS_plus

JointJS+ support
4 stars 9 forks source link

Connections that jump and auto-layout #15

Closed joelreymont closed 9 years ago

joelreymont commented 10 years ago

Consider this diagram drawn in the Rappid sample app:

https://www.evernote.com/shard/s2/sh/3f061232-71a7-4c60-af2c-8294d396638c/6ea21cea397264fa6c429ee7a5bb8046

How do I make the connection from state to ISA "jump" over the connections that it's crossing? I'm talking about forming a semicircular bridge at the crossing point.

Also, how do I prevent auto-layout from drawing the line into the shape, e.g. from the circle with 3 dots to port in2 of the purple model rectangle?

joelreymont commented 10 years ago

You can see the kind of connection crossing I'm talking about here:

http://gojs.net/latest/intro/links.html

Please scroll to the bottom to Link.JumpOver and Link.JumpGap.

kumilingus commented 9 years ago

You can use joint.routers.manhattan.js and joint.connectors.jumpover.js to do this now.