Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Dashed/Custom Link Style in Canvas mode (Read 2486 times)
choohj70
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Sep 23rd, 2008
Dashed/Custom Link Style in Canvas mode
Dec 29th, 2014 at 6:47pm
Print Post  
Is it possible to make a dashed link (or Custom Pattern) between shape nodes in Canvas mode?
I tried server-side: link.Pen.DashStyle and link.Style.StrokeDashStyle to no avail.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Dashed/Custom Link Style in Canvas mode
Reply #1 - Dec 30th, 2014 at 10:23am
Print Post  
Until recently only Chrome supported dashed lines in Canvas so we haven't implemented dashed pens yet. Now IE11 and newer Firefox versions seem to support that too so we'll implement it for next release.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Dashed/Custom Link Style in Canvas mode
Reply #2 - Jan 30th, 2015 at 12:42pm
Print Post  
This version of the script supports dashed links for browsers that have the canvas' setLineDash function:

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

Code
Select All
function onLinkCreated(diagram, e)
{
	var link = e.getLink();
	link.setStrokeDashStyle(MindFusion.Drawing.DashStyle.Dash);
} 



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