Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to add license (Read 4386 times)
Shafi
Full Member
***
Offline


I Love MindFusion!

Posts: 109
Joined: Nov 8th, 2016
How to add license
Aug 17th, 2017 at 12:35pm
Print Post  
I am looking at the Mindfusion Diagramming API. The documentation states that I should either set the LicenseKey property in Mindfusion.Diagramming or call the method MindFusion.Licensing.LicenseManager.AddLicense to set the license key.

But both these APIs are missing in the typescript definitions. Can you please tell me what is the correct way to add license using typescript definitions?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: How to add license
Reply #1 - Aug 17th, 2017 at 1:02pm
Print Post  
That sounds like our .NET diagramming API. You can find JavaScript version here -
https://www.mindfusion.eu/onlinehelp/jsdiagram/index.htm?Licensing_2.htm

Copy your key into diagram_lic.txt file and deploy it in same folder as the html, or in a different location specified using diagram.setLicenseLocation(url). Alternatively set the key directly by calling diagram.setLicenseKey(key).

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Shafi
Full Member
***
Offline


I Love MindFusion!

Posts: 109
Joined: Nov 8th, 2016
Re: How to add license
Reply #2 - Aug 18th, 2017 at 7:33am
Print Post  
The methods setLicenseLocation and setLicenseKey are missing in the type definitions. Could you please provide me updated type definitions?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: How to add license
Reply #3 - Aug 18th, 2017 at 7:53am
Print Post  
I can see them in the d.ts file defined in base Canvas class which the Diagram inherits, see attached screenshot.
  

Untitled_004.png ( 94 KB | 199 Downloads )
Untitled_004.png
Back to top
 
IP Logged
 
Shafi
Full Member
***
Offline


I Love MindFusion!

Posts: 109
Joined: Nov 8th, 2016
Re: How to add license
Reply #4 - Aug 18th, 2017 at 8:04am
Print Post  
You are right. They are available on Canvas in the d.ts file. But I cannot access them via diagram.
See image.
  

diag_api.png ( 24 KB | 171 Downloads )
diag_api.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: How to add license
Reply #5 - Aug 18th, 2017 at 8:35am
Print Post  
It could be your IDE does not show auto-complete info from base classes. Visual Studio shows the methods for me. Try typing the method name without completion and it should compile anyway.
  

IMG_18082017_111902_0.png ( 16 KB | 133 Downloads )
IMG_18082017_111902_0.png
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint