Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Can I setup the connection text in Javascript graph diagrams? (Read 5623 times)
lofti
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 19th, 2020
Can I setup the connection text in Javascript graph diagrams?
Nov 18th, 2020 at 9:02pm
Print Post  
Can I setup the connection text in Javascript graph diagrams? For Spring Layout or Hierarchical Layout as example?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: Can I setup the connection text in Javascript graph diagrams?
Reply #1 - Nov 19th, 2020 at 6:58am
Print Post  
Try DiagramLink.setText or DiagramLink.addLabel methods.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
lofti
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 19th, 2020
Re: Can I setup the connection text in Javascript graph diagrams?
Reply #2 - Nov 19th, 2020 at 12:30pm
Print Post  
Thankyou!
  
Back to top
 
IP Logged
 
lofti
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 19th, 2020
Re: Can I setup the connection text in Javascript graph diagrams?
Reply #3 - Nov 19th, 2020 at 2:55pm
Print Post  
Slavcho wrote on Nov 19th, 2020 at 6:58am:
Try DiagramLink.setText or DiagramLink.addLabel methods.

Regards,
Slavcho
Mindfusion


sorry for offtop, how can I test your JS library? Can I install it using npm or yarn?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: Can I setup the connection text in Javascript graph diagrams?
Reply #4 - Nov 19th, 2020 at 5:45pm
Print Post  
You could unzip https://mindfusion.eu/JsDiagramTrial.zip and play with the sample projects, or install from https://www.npmjs.com/package/diagram-library

Regards,
Slavcho
  
Back to top
 
IP Logged
 
lofti
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 19th, 2020
Re: Can I setup the connection text in Javascript graph diagrams?
Reply #5 - Nov 21st, 2020 at 5:10am
Print Post  
Thank you! Super!
  
Back to top
 
IP Logged
 
lofti
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 19th, 2020
Re: Can I setup the connection text in Javascript graph diagrams?
Reply #6 - Nov 22nd, 2020 at 7:08am
Print Post  
Slavcho wrote on Nov 19th, 2020 at 5:45pm:
You could unzip https://mindfusion.eu/JsDiagramTrial.zip and play with the sample projects, or install from https://www.npmjs.com/package/diagram-library

Regards,
Slavcho


I tried this tutorial https://www.mindfusion.eu/onlinehelp/jsdiagram/index.htm?CC_Tutorial_1__Loading_... , however getting such an error (launching inside Electron):
http://joxi.ru/5mdNO1Du3BnPYA
http://joxi.ru/Q2KDRgwIL8a3GA

Any ideas how I can fix that?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: Can I setup the connection text in Javascript graph diagrams?
Reply #7 - Nov 23rd, 2020 at 7:39am
Print Post  
Here's an Electron test app we have -
https://mindfusion.eu/_samples/FirstApp.zip

You don't have the mindfusion* scripts in your root folder judging from second screenshot, but src in first screenshot tries to load from there. If you have installed through NPM, you will have to set src to location in npm_modules, or otherwise use some module loader that is configured to load from npm_modules instead of including directly through script tag.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
lofti
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 19th, 2020
Re: Can I setup the connection text in Javascript graph diagrams?
Reply #8 - Nov 23rd, 2020 at 6:37pm
Print Post  
Thank you very much! I made several changes in my original project (following your recommendations) and it worked fine!!! What are the demo restrictions for js diagramming library, except of this caption: http://joxi.ru/DmB1Qg9sJoQ8Zr ?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: Can I setup the connection text in Javascript graph diagrams?
Reply #9 - Nov 24th, 2020 at 8:27am
Print Post  
Hi,

There aren't any other demo restrictions.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
lofti
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 19th, 2020
Re: Can I setup the connection text in Javascript graph diagrams?
Reply #10 - Nov 24th, 2020 at 9:13am
Print Post  
Slavcho wrote on Nov 24th, 2020 at 8:27am:
Hi,

There aren't any other demo restrictions.

Regards,
Slavcho


thank you cool!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint