Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Link Styling (Read 2789 times)
PhillipJones
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Feb 28th, 2012
Link Styling
May 21st, 2013 at 5:40am
Print Post  
I am trying to style the link line which is drawn as I would like to have different colour links based on the state and purpose of the link i.e. I want to colour the Yes links in green and the No Links in green.

I have gone through all the various options for styling a link line and am unable to find a one which has the desired effect. I am able to set the arrow shape and the arrow colour but not the line itself it always stays black.

Thanks
Phil
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link Styling
Reply #1 - May 21st, 2013 at 8:34am
Print Post  
There is a HeadPen property in our controls for other platforms but we haven't implemented it in JavaScript yet, and apparently arrowhead lines are always painted black. Our developer will make arrowheads use the standard stroke properties for the current 1.6 release; we'll update the beta version in a few hours. We'll add HeadPen for next release.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link Styling
Reply #2 - May 21st, 2013 at 10:08am
Print Post  
Setting link's Stroke with this version should now also set the arrowheads' stroke color -

https://mindfusion.eu/_beta/JsDiagram16.zip

Code
Select All
function onLinkCreated(diagram, args)
{
	var link = args.getLink();
	link.setStroke("red");
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint