I'm currently evaluating this framework for a custom workflow builder. Do you know if there is a feature to add additional points on edges? \nBy additional points I mean a guide on the edge that can allow you to drag it to modify the path of the edge.\nSo I would like something like:

\n

editor.graph.insertEdge(editor.graph.getDefaultParent(), null,'label',edge1,edge2);

asked 23 Mar '11, 02:26

gargamel25's gravatar image

gargamel25
517
accept rate: 0%

edited 24 Mar '11, 01:19

David's gravatar image

David ♦♦
4.8k624


You can add waypoints as follows for a given edge:

\n

edge.getGeometry().points = [new mxPoint(x, y)];

\n

Here is an example that does this (lines 347 and 353).

\n

See also: mxConstants.STYLE_EDGE

link

answered 23 Mar '11, 13:19

Gaudenz's gravatar image

Gaudenz ♦♦
9.9k127
accept rate: 38%

I tested it. It's exactly what I was looking for. Thank you!!!

(24 Mar '11, 01:09) gargamel25
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:

×452
×40
×11
×10
×4

Asked: 23 Mar '11, 02:26

Seen: 1,389 times

Last updated: 24 Mar '11, 01:19

powered by BitNami OSQA