When drawing an edge without end styles (i.e. with endStyle=none), the edge ends aren't always drawn correctly. They do not connect with the nodes.

\n

See figure:

\n

alt text

\n

This is best illustrated on nodes 1 and 3.

asked 04 Mar '12, 02:56

roald's gravatar image

roald
5318
accept rate: 0%


They are connecting with the perimeter of the rectangular bounds of the vertex. Clearly, the drawing and perimeter of a shape are two different calculations, if you use a non-rectangular shape you need a corresponding perimeter calculation to meet the bounds of the shape exactly.

link

answered 04 Mar '12, 09:49

David's gravatar image

David
4.9k21831
accept rate: 47%

Excellent!\nFor my particular needs, this was then solved by adding "perimeter=ellipsePerimeter" to the style for my nodes (since they were already defined as ellipses).\nThanks!

(04 Mar '12, 20:32) roald
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:

×100
×50

Asked: 04 Mar '12, 02:56

Seen: 852 times

Last updated: 04 Mar '12, 20:34