Page Index Toggle Pages: [1] 2  Send TopicPrint
Very Hot Topic (More than 25 Replies) Routed links different in silverlight and html5 (Read 6791 times)
Kannan Thirumal
Senior Member
****
Offline


I Love Mind Fusion Diagram
:-)

Posts: 270
Location: Bangalore, India
Joined: Jan 18th, 2019
Routed links different in silverlight and html5
May 19th, 2021 at 3:16pm
Print Post  
Hi,

I've attached the same diagram in silverlight and html5 but the link between Node # 1 and Node # 3 is different. May I know how to achieve the same silverlight linking in html5?

Regards,
Kannan
  

Silverlight_Diagram.png ( 34 KB | 86 Downloads )
Silverlight_Diagram.png
Html5_Diagram.png ( 54 KB | 91 Downloads )
Html5_Diagram.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Routed links different in silverlight and html5
Reply #1 - May 20th, 2021 at 5:20am
Print Post  
Hi,

Try diagram.setLinkRouter(new GridRouter()). The RoutingOptions values from Silverlight are properties of GridRouter in JavaScript version.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Kannan Thirumal
Senior Member
****
Offline


I Love Mind Fusion Diagram
:-)

Posts: 270
Location: Bangalore, India
Joined: Jan 18th, 2019
Re: Routed links different in silverlight and html5
Reply #2 - May 20th, 2021 at 6:01am
Print Post  
Hi,

I tried this but getting this error. May I know how to resolve this?

TypeError: Cannot read property 'routeMargin' of undefined
    at bv7.GridRouter.boW.Router (https://localhost:44395/vendor.js:321027:29)
    at Object.initializeBase (https://localhost:44395/vendor.js:144627:23)
    at new bv7.GridRouter (https://localhost:44395/vendor.js:321998:26)

Regards,
Kannan
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Routed links different in silverlight and html5
Reply #3 - May 20th, 2021 at 8:12am
Print Post  
Hi,

The constructor expects Diagram argument -  GridRouter(diagram)

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Kannan Thirumal
Senior Member
****
Offline


I Love Mind Fusion Diagram
:-)

Posts: 270
Location: Bangalore, India
Joined: Jan 18th, 2019
Re: Routed links different in silverlight and html5
Reply #4 - May 20th, 2021 at 3:39pm
Print Post  
It seems working fine. Thank you Smiley
  
Back to top
 
IP Logged
 
Kannan Thirumal
Senior Member
****
Offline


I Love Mind Fusion Diagram
:-)

Posts: 270
Location: Bangalore, India
Joined: Jan 18th, 2019
Re: Routed links different in silverlight and html5
Reply #5 - Jun 14th, 2021 at 8:39am
Print Post  
Hi,

After this change, when I drag and drop the element near the right side border, then getting the below exception. May I know why is this happening and how to fix it?

core.js:4002 ERROR TypeError: Cannot set property '62' of undefined
at eK.<computed>.set (MindFusion.Common.js:6)
at bup.<computed>.markObstacles (MindFusion.Diagramming.js:6)
at bup.<computed>.routeLinks (MindFusion.Diagramming.js:6)
at acO.<computed>.routeLinksAt (MindFusion.Diagramming.js:6)
at a6a.<computed>.endDrag (MindFusion.Diagramming.js:6)
at a1i.<computed>.commit (MindFusion.Diagramming.js:6)
at a2k.MouseInputDispatcher.onMouseUp (MindFusion.Diagramming.js:6)
at a1X.<computed>.onMouseUp (MindFusion.Diagramming.js:6)
at HTMLCanvasElement.cQ (MindFusion.Common.js:6)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)

I've attached the screen shot. I've dragged and dropped the element Decision-H2.

I've uploaded the sample here: https://drive.google.com/file/d/1j4hSvwRBjePdsVBmryWqRPNkToLaIwA-/view?usp=shari
ng

Regrads,
Kannan
  

Before_Drag_and_Drop.png ( 192 KB | 76 Downloads )
Before_Drag_and_Drop.png
After_Drag_and_Drop.png ( 239 KB | 80 Downloads )
After_Drag_and_Drop.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Routed links different in silverlight and html5
Reply #6 - Jun 15th, 2021 at 1:38pm
Print Post  
Hi,

This build should fix it -
https://mindfusion.eu/_temp/jsdiag_gridrouter.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Kannan Thirumal
Senior Member
****
Offline


I Love Mind Fusion Diagram
:-)

Posts: 270
Location: Bangalore, India
Joined: Jan 18th, 2019
Re: Routed links different in silverlight and html5
Reply #7 - Jun 15th, 2021 at 7:27pm
Print Post  
Hi,

This seems working fine. May I know when this will be released?

Regards,
Kannan
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Routed links different in silverlight and html5
Reply #8 - Jun 16th, 2021 at 4:44am
Print Post  
Hi,

We won't be releasing new 3.* versions anymore. Use the js files above, or we could publish them as a patch on the NPM registry if you prefer using the diagram-library package from there.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Kannan Thirumal
Senior Member
****
Offline


I Love Mind Fusion Diagram
:-)

Posts: 270
Location: Bangalore, India
Joined: Jan 18th, 2019
Re: Routed links different in silverlight and html5
Reply #9 - Jun 16th, 2021 at 7:55am
Print Post  
Hi,

We used to update our code using "npm install". If you publish this as a patch, will this work by doing "npm install"?

Regards,
Kannan
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Routed links different in silverlight and html5
Reply #10 - Jun 17th, 2021 at 5:46am
Print Post  
Hi,

We've published that build as v3.5.5 on npm -
https://www.npmjs.com/package/diagram-library

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Kannan Thirumal
Senior Member
****
Offline


I Love Mind Fusion Diagram
:-)

Posts: 270
Location: Bangalore, India
Joined: Jan 18th, 2019
Re: Routed links different in silverlight and html5
Reply #11 - Jun 17th, 2021 at 4:29pm
Print Post  
Hi,

I'm getting this error when moving the element over other element's link,

TypeError: Cannot read property 'length' of null
    at bz2.<computed>.segmentsFromPoints (https://localhost:44395/vendor.js:363536:38)
    at bz2.<computed>.pullLinksApart (https://localhost:44395/vendor.js:363562:44)
    at bz2.<computed>.routeLinks (https://localhost:44395/vendor.js:363417:24)
    at adH.<computed>.routeLinksAt (https://localhost:44395/vendor.js:345229:39)
    at a71.<computed>.endDrag (https://localhost:44395/vendor.js:336873:57)
    at a29.<computed>.commit (https://localhost:44395/vendor.js:339685:24)
    at a3b.<computed>.onMouseUp (https://localhost:44395/vendor.js:339915:50)
    at a2O.<computed>.onMouseUp (https://localhost:44395/vendor.js:339815:38)
    at HTMLCanvasElement.cQ (https://localhost:44395/vendor.js:189077:28)
    at ZoneDelegate.invokeTask (https://localhost:44395/polyfills.js:1233:173)

Regards,
Kannan
  

Error_on_Moving_Element_over_Links.png ( 288 KB | 89 Downloads )
Error_on_Moving_Element_over_Links.png
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Routed links different in silverlight and html5
Reply #12 - Jun 18th, 2021 at 8:36am
Print Post  
Hi,

Try with the new published 3.5.6 version on npm -
https://www.npmjs.com/package/diagram-library

Regards,
Lyubo
MindFusion
  
Back to top
 
IP Logged
 
Kannan Thirumal
Senior Member
****
Offline


I Love Mind Fusion Diagram
:-)

Posts: 270
Location: Bangalore, India
Joined: Jan 18th, 2019
Re: Routed links different in silverlight and html5
Reply #13 - Jul 1st, 2021 at 12:38pm
Print Post  
Hi,

The link between the Node # 1 and Node # 2 is not straight. Please check the attached screen shot. But, it is straight in silverlight (ie it passes through the label. please check previous post attachment)

Regards,
Kannan

Slavcho wrote on May 20th, 2021 at 5:20am:
Hi,

Try diagram.setLinkRouter(new GridRouter()). The RoutingOptions values from Silverlight are properties of GridRouter in JavaScript version.

Regards,
Slavcho
Mindfusion

  

Html5_Diagram_2.png ( 55 KB | 81 Downloads )
Html5_Diagram_2.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Routed links different in silverlight and html5
Reply #14 - Jul 1st, 2021 at 1:09pm
Print Post  
Hi,

If you use attached nodes to show labels, set the labels' Obstacle property to false.

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