Page Index Toggle Pages: 1 2 [3] 4 5 ... 21 Send TopicPrint
Locked Topic Link between two nodes (Read 175902 times)
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #30 - May 27th, 2014 at 12:04pm
 
Ok I will try your decision layout.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #31 - May 27th, 2014 at 12:10pm
 
suppose I am going to purchase license copy then length feature of connectors present in that or not?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #32 - May 27th, 2014 at 1:23pm
 
You will have to use SpringLayout if similar link lengths is your main concern. Only a small subset of graphs can be arranged with equal link lengths in the first place. Then when you apply additional appearance constraints such as arranging nodes in columns, avoiding link crossings, and keeping small number of bends, the disparity between link lengths will only grow. E.g. here is a simple example that can never have exactly same link lengths in 2D space:


If you try to arrange the nodes above in rows or columns without link crossings, obviously some links will have to become several times longer than others.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #33 - May 28th, 2014 at 6:18am
 
Can u send me pre release of your decision layout?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #34 - May 28th, 2014 at 7:50am
 
It will be available in a couple of days in ASP.NET version of the control. You can try it now in this test application made with our Windows Forms diagram control:
https://mindfusion.eu/_samples/dlayout.zip

You can load diagram XML files using the File menu, then run the layout from Layout menu or by hitting F7.

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 #35 - May 28th, 2014 at 8:08am
 
I am using your code given to remove double link problem and its working, but when i m exporting to PDF again some texts are shuffled and those are displaying proper in asp page .
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #36 - May 28th, 2014 at 10:15am
 
What do you mean by shuffled texts? Aren't they displayed at same locations as in the browser?
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #37 - May 28th, 2014 at 10:31am
 
yes, right.

Any solution on that.
« Last Edit: May 28th, 2014 at 11:46am by shrinivas »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #38 - May 28th, 2014 at 1:09pm
 
What ClientSideMode are you using?
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #39 - May 29th, 2014 at 4:30am
 
I am not getting what you mean?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #40 - May 29th, 2014 at 8:28am
 
What value have you assigned to DiagramView.ClientSideMode property? I have tried ImageMap and Canvas modes and in both the result in browser looks close enough to the exported PDF. E.g. this shows Canvas mode and the exported PDF using the diagram file we have from you:


You should get best results in ImageMap mode because it renders both the PDF and diagram image using the same GDI+ graphics API. In Canvas mode the Canvas' Context2D text measuring functions will generally return different results that the GDI+ ones we use on server, so text layout will have some differences, as seen in the #WRD-KEY1... node above.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #41 - May 29th, 2014 at 9:34am
 
I have tried ImageMap and Canvas modes

But still same problem, I have attached screen shots please check.
  

FC_TEMP__001.jpg (Attachment deleted)
FC_PDF.jpg (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 #42 - May 29th, 2014 at 11:47am
 
Is that the same diagram from the XML file? What does your PdfExporter setup code look like?
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #43 - May 29th, 2014 at 1:44pm
 
No Its different file.
MindFusion.Diagramming.Export.PdfExporter pdf = new MindFusion.Diagramming.Export.PdfExporter();
            DiagramView1.ClientSideMode = ClientSideMode.Canvas;
            string path = Server.MapPath(@"~\PDF\") + Session.SessionID + ".pdf";
            pdf.Export(DiagramView1.Diagram, path);

I have attached XML file please check It.
  

Test.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 #44 - May 29th, 2014 at 5:16pm
 
Please check the attached PDF we got from last diagram XML. The link texts appear at correct positions for us, we tried it on several systems with PDF Reader 9 and latest 11.0.07. Do they look correct at your side? If they do, then something goes wrong while exporting from your application. Are you handling any custom-drawing event handlers such as DrawLink or DrawBackground? Also could you attach your version of the PDF from same diagram so we can compare it with our results?
  

test2.zip (Attachment deleted)
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 4 5 ... 21
Send TopicPrint