Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic data source of diagram for js (Read 4078 times)
danyfeng2012
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 8
Joined: Dec 26th, 2014
data source of diagram for js
Dec 26th, 2014 at 3:41am
Print Post  
    I am from china,want to use this js control, but want to know something about data source of   diagram for js , as i know diagram for silverlight which contain the method named
LoadFromstring(xmlStr),   Do diagram for js  contais the same js method like : LoadFromstring(jsonStr);
   thanks waiting for answers
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: data source of diagram for js
Reply #1 - Dec 26th, 2014 at 8:22am
Print Post  
Hi,

There are the Diagram.toJson and Diagram.fromJson methods letting you save and load the diagram to/from string.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
danyfeng2012
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 8
Joined: Dec 26th, 2014
Re: data source of diagram for js
Reply #2 - Dec 26th, 2014 at 8:54am
Print Post  
Stoyo wrote on Dec 26th, 2014 at 8:22am:
Hi,

There are the Diagram.toJson and Diagram.fromJson methods letting you save and load the diagram to/from string.

I hope that helps,
Stoyan




thanks ,i got it.....
a  new question :i draw a shapeNode, diagram's bouds is
(0,0,2000,2000),and then i  set bounds(140,50,165,36) for the shapeNode, but the shapeNode shows too bigger,i want to know whether render unit is different. and i find the property  "measuerUnit" ,maybe There are relations with it?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: data source of diagram for js
Reply #3 - Dec 26th, 2014 at 9:08am
Print Post  
Right, the default MeasureUnit is millimeter, you could set it to pixel but then you will have to change other property values too, such as AdjustmentHandlesSize and font sizes.
  
Back to top
 
IP Logged
 
danyfeng2012
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 8
Joined: Dec 26th, 2014
Re: data source of diagram for js
Reply #4 - Dec 26th, 2014 at 9:16am
Print Post  
it is so complicated,i should change all the text fontsize!!!
  
Back to top
 
IP Logged
 
danyfeng2012
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 8
Joined: Dec 26th, 2014
Re: data source of diagram for js
Reply #5 - Dec 31st, 2014 at 1:19am
Print Post  
Stoyo wrote on Dec 26th, 2014 at 9:08am:
Right, the default MeasureUnit is millimeter, you could set it to pixel but then you will have to change other property values too, such as AdjustmentHandlesSize and font sizes.



in reality,change the property measureUnit is enough
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint