Hello guys,

I am very new to mxGraph. Trying to build graph editor wherein user can drag and drop controls. I can able to drag n drop controls/images and connect them. But the connector edges are straight lines. I want to provide different connector options : horizontal connector or vertical connector like in this editor.

Can some one guide me on this ?

thanks

asked 31 Dec '12, 08:41

mahesh's gravatar image

mahesh
1
accept rate: 0%


You need to set the edgeStyle style of the edge to one of the available values:

mxConstants.EDGESTYLE_ELBOW
mxConstants.EDGESTYLE_ENTITY_RELATION
mxConstants.EDGESTYLE_LOOP
mxConstants.EDGESTYLE_SIDETOSIDE
mxConstants.EDGESTYLE_TOPTOBOTTOM
mxConstants.EDGESTYLE_ORTHOGONAL
mxConstants.EDGESTYLE_SEGMENT

If this post is old, it's worth checking the current version of mxStyleRegistry to see if there are any additional values.

link

answered 31 Dec '12, 15:28

David's gravatar image

David
4.9k21831
accept rate: 47%

edited 31 Dec '12, 15:33

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×228

Asked: 31 Dec '12, 08:41

Seen: 725 times

Last updated: 31 Dec '12, 15:33