Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagram Links (Read 442 times)
PeteWhite
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 13
Joined: Apr 7th, 2020
Diagram Links
Dec 28th, 2023 at 2:23pm
Print Post  
Hi,

A couple of questions regarding DiagramLinks...

1. is there a way to add a custom shape (SVG) for the base, head and intermediate shapes?
2. is there a way to prevent the BaseShape, HeadShape, or IntermediateShape from rotating with the link?

Cheers,

Pete
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3223
Joined: Oct 19th, 2005
Re: Diagram Links
Reply #1 - Dec 28th, 2023 at 4:34pm
Print Post  
Hi,

1. You can set these only to Shape objects. If it's only the arrowhead geometry you need imported from SVG, try using the Shape.FromSvg result. If you need to show more elaborate SVG drawings, you could call SvgContent.Draw from DrawLink event handler.

2. There isn't out of the box. You could try drawing arrowheads yourself by calling DiagramLink.DrawArrowhead static method from DrawLink handler.

Set link's CustomDraw property to get DrawLink raised.

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