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.


See figure:


alt text


This is best illustrated on nodes 1 and 3.

asked 04 Mar '12, 02:56

roald's gravatar image

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.


answered 04 Mar '12, 09:49

David's gravatar image

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



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



Asked: 04 Mar '12, 02:56

Seen: 852 times

Last updated: 04 Mar '12, 20:34