Page Index Toggle Pages: 1 ... 7 8 [9] 10 11 ... 21 Send TopicPrint
Locked Topic Link between two nodes (Read 157366 times)
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #120 - Jun 27th, 2014 at 2:43pm
 
please reply ASAP to my last post.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #121 - Jun 30th, 2014 at 4:03am
 
I have created attached XML and loaded using diagram object so its not displaying 'container node', Please check..
  

s2tadmin_ProgramFlow_Vidp1x_27Jun2014_030440PM.txt (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #122 - Jun 30th, 2014 at 5:03am
 
Quote:
No its not working with layered layout, please see attached image


Set LayeredLayout.NodeDistance larger than your nodes.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #123 - Jun 30th, 2014 at 6:24am
 
Quote:
its not displaying 'container node', Please check..


The container element must by a child of the Nodes element in XML. The group object only references it by ID.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #124 - Jul 1st, 2014 at 5:33am
 
Can u tell me how to apply soft bends to connectors (LINK).
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #125 - Jul 1st, 2014 at 7:45am
 
Set RoundedLinks and RoundedLinksRadius properties of diagram.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #126 - Jul 1st, 2014 at 8:15am
 

Following is code for loading XML and viewing diagram, As per your last comment i have applied riundedlinks and roundedlinkradius but still there is no change in diagram.

sFileName = Request.QueryString[0];
            DiagramView1.Diagram = new Diagram();
            DiagramView1.LoadFromXml(Server.MapPath(sFileName));
            DiagramView1.Diagram.RoundedLinks = true;
            DiagramView1.Diagram.RoundedLinksRadius = 10;
            MindFusion.Diagramming.Layout.LayeredLayout dl = new MindFusion.Diagramming.Layout.LayeredLayout();
            dl.Orientation = MindFusion.Diagramming.Layout.Orientation.Vertical;
            dl.EnforceLinkFlow = true;
            dl.LayerDistance = 10;
            dl.NodeDistance = 70;   
            DiagramView1.CanvasVirtualScroll = true;
            dl.Arrange(DiagramView1.Diagram);
            DiagramView1.Diagram.ResizeToFitItems(10);
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #127 - Jul 1st, 2014 at 9:09am
 
How did you decide link between 2 nodes is from center of 2 nodes or at left side or at bottom side, what data you need for that.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #128 - Jul 1st, 2014 at 10:18am
 
I am using following code but its not reflecting as I want, It means no change in linking there is no presence of Jump.

            DiagramView1.Diagram.RoundedLinks = true;
            DiagramView1.Diagram.RoundedLinksRadius = 2;
            DiagramView1.Diagram.LinkCrossings = LinkCrossings.Arcs;
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #129 - Jul 1st, 2014 at 10:21am
 
Quote:
but still there is no change in diagram


You will see a change only if the links contained any bends with the old code. With LayeredLayout links between adjacent layers are always straight lines and do not contain any bends; in that case you will see rounded bends only for links that are at least three-layers long, where their segments meet in intermediate layers.

Quote:
How did you decide link between 2 nodes is from center of 2 nodes or at left side or at bottom side, what data you need for that.


You could control that via node.AnchorPattern property. Set it to TopInBottomOut for example to center all in/out links at respective node side.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #130 - Jul 1st, 2014 at 10:23am
 
Both RoundedLinks and LinkCrossings were implemented in a recent release for Canvas mode:
http://mindfusion.eu/Forum/YaBB.pl?num=1396253277

Verify if you are using latest version of the diagramming.js file.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #131 - Jul 1st, 2014 at 11:18am
 
Js file is latest, Please check attached file.
  

MindFusion_Diagramming_js.zip ( 583 KB | 57 Downloads )
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #132 - Jul 1st, 2014 at 11:22am
 

Quote:
You could control that via node.AnchorPattern property. Set it to TopInBottomOut for example to center all in/out links at respective node side.


Can you tell me its XML representation so that i can add those tags to XML.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #133 - Jul 2nd, 2014 at 7:47am
 
Quote:
Js file is latest, Please check attached file.


Here's what I'm seeing with following code:

Code
Select All
diagram.RoundedLinks = true;
diagram.RoundedLinksRadius = 5;
diagram.LinkCrossings = LinkCrossings.Arcs;

var n = diagram.Nodes;
for (int i = 0; i < 10; i++)
{
	diagram.Factory.CreateShapeNode(0, 0, 10, 10);
	for (int j = 0; j < i; j++)
		diagram.Factory.CreateDiagramLink(n[j], n[i]);
}
new LayeredLayout().Arrange(diagram); 





If it does not show bridges and rounded bends for you, maybe your browser loads an older diagramming.js from cache. Try clearing the browser cache and run again to verify. Also your script file is a few days older than the one from our last official release, I suppose you are using some pre-release build. Try the official 5.2 version from http://mindfusion.eu/Forum/YaBB.pl?num=1403100114

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #134 - Jul 3rd, 2014 at 4:40am
 
I am applying white color to diagram background using backbrush property still its nt white when exported to PDF format.


<ndiag:DiagramView ID="DiagramView1" runat="server" Height="550px" Width="1150px"
                ClientIDMode="AutoID"  ClientSideMode="Canvas" Behavior="Modify"
                 BackColor="White" OverviewFitAll="True">
                <Diagram ShapeBrush="s:#FFFFFFFF" BackBrush="s:#FFFFFFFF" />
</ndiag:DiagramView>
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 7 8 [9] 10 11 ... 21
Send TopicPrint