Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Questions about the LayeredLayout (Read 502 times)
jay youngblood
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 8
Location: Germany
Joined: Mar 11th, 2026
Re: Questions about the LayeredLayout
Reply #15 - Mar 13th, 2026 at 9:54am
Print Post  
The avoidOverlaps = false. Did the trick Smiley One last thing how can I get the Link.text to be displayed close the the destination node?
  

link-text.png ( 13 KB | 9 Downloads )
link-text.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3473
Joined: Oct 19th, 2005
Re: Questions about the LayeredLayout
Reply #16 - Mar 13th, 2026 at 10:53am
Print Post  
Try calling DiagramLink.addLabel and LinkLabel.setControlPointPosition(-1,dx,dy).

If you are already too invested in using DiagramLink.text property, you could instead implement custom drawing by replacing prototype.updateCanvasElements function as snippet here shows for nodes:

https://mindfusion.dev/Forum/YaBB.pl?num=1410270450/4#4

but for links modify the this.textRenderer.rectangles[0] to position it relatively to the target node. There could be more than one rectangles only if you use LinkTextStyle.Follow.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3473
Joined: Oct 19th, 2005
Re: Questions about the LayeredLayout
Reply #17 - Mar 24th, 2026 at 10:26am
Print Post  
Re triangles, we've ported ShapeNode.polygonalTextLayout property from our dotnet code, please find new scripts here:

https://mindfusion.dev/_beta/jsdiag_shape_txt.zip

You can now arrange text in shapes like this:



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint