0

I am using jsPlumb with success since a few months. I connect some div's with straight lines with no problems. Now I want to connect arbitrary div's placed anywhere with vertical or horizontal lines. To achieve this objective, I place lines using anchors testing each time the correct values of X,Y for each endpoint.

My objective is to place dynamically vertical or horizontal lines without having to recalculate statically the X,Y anchor values each time. Is there any possibility? Are there better alternatives to jsPlumb to achieve this?

logoff
  • 3,347
  • 5
  • 41
  • 58

1 Answers1

0

jsPlumb has special 'flowchart' connectors that run in either horizontal or vertical directions.

Demo: http://www.jsplumb.org/jquery/flowchartConnectorsDemo.html

Docs: http://www.jsplumb.org/doc/content.html#connectors

jungos
  • 476
  • 5
  • 21
  • this demo shows corners, I want pure vertical lines, straight. – logoff Jan 09 '13 at 13:42
  • I think I am misunderstanding your question. Can you be a little more specific in what you're hoping to achieve? – jungos Jan 09 '13 at 18:54
  • I want straight lines, from one point to another, without corners. And these lines must be horizontal or vertical, not diagonal. – logoff Jan 30 '13 at 15:40