Difference between revisions of "Block Editor"

From Open Source Controls Wiki
Jump to navigation Jump to search
Line 1: Line 1:


<iframe key="wiki" align="right" width="100%" height="1500" level="" path="/gojs/samples/wikiBlockEditor.html" />
<iframe key="wiki" align="right" width="100%" height="1500" level="" path="/gojs/samples/wikiBlockEditor.html" />
<pre>
{ "class": "GraphLinksModel",
  "nodeDataArray": [
{"text":"Block 1","key":-1,"loc":"210 -120"},
{"text":"Buffer Store","key":-2,"loc":"-160 -30","figure":"Cylinder1","size":"60 140"},
{"text":"Pump","key":-3,"loc":"-10 -30","figure":"Ellipse","size":"60 60"},
{"text":"Block 2","key":-4,"loc":"210 10"},
{"text":"Boiler 1","key":-5,"loc":"-430 -80","figure":"Procedure","size":"80 80"},
{"text":"Boiler 2","key":-6,"loc":"-430 20","figure":"Procedure","size":"80 80"}
],
  "linkDataArray": [
{"from":-2,"to":-3,"points":[-130,-30,-120,-30,-85,-30,-85,-30,-50,-30,-40,-30]},
{"from":-3,"to":-1,"points":[20,-40,30,-40,85,-40,85,-120,140,-120,150,-120]},
{"from":-3,"to":-4,"points":[20,-20,30,-20,85,-20,85,10,140,10,150,10]},
{"from":-5,"to":-2,"points":[-390,-80,-380,-80,-290,-80,-290,-53.33333333333333,-200,-53.33333333333333,-190,-53.33333333333333]},
{"from":-6,"to":-2,"points":[-390,20,-380,20,-290,20,-290,-6.666666666666664,-200,-6.666666666666664,-190,-6.666666666666664]}
]}
</pre>


<iframe key="wiki" align="right" width="100%" height="500" level="" path="/gojs/samples/wikiBlockEditorFrame.html" />
<iframe key="wiki" align="right" width="100%" height="500" level="" path="/gojs/samples/wikiBlockEditorFrame.html" />


[[Category:Calculators]]
[[Category:Calculators]]

Revision as of 20:54, 9 June 2022

{ "class": "GraphLinksModel",
  "nodeDataArray": [
{"text":"Block 1","key":-1,"loc":"210 -120"},
{"text":"Buffer Store","key":-2,"loc":"-160 -30","figure":"Cylinder1","size":"60 140"},
{"text":"Pump","key":-3,"loc":"-10 -30","figure":"Ellipse","size":"60 60"},
{"text":"Block 2","key":-4,"loc":"210 10"},
{"text":"Boiler 1","key":-5,"loc":"-430 -80","figure":"Procedure","size":"80 80"},
{"text":"Boiler 2","key":-6,"loc":"-430 20","figure":"Procedure","size":"80 80"}
],
  "linkDataArray": [
{"from":-2,"to":-3,"points":[-130,-30,-120,-30,-85,-30,-85,-30,-50,-30,-40,-30]},
{"from":-3,"to":-1,"points":[20,-40,30,-40,85,-40,85,-120,140,-120,150,-120]},
{"from":-3,"to":-4,"points":[20,-20,30,-20,85,-20,85,10,140,10,150,10]},
{"from":-5,"to":-2,"points":[-390,-80,-380,-80,-290,-80,-290,-53.33333333333333,-200,-53.33333333333333,-190,-53.33333333333333]},
{"from":-6,"to":-2,"points":[-390,20,-380,20,-290,20,-290,-6.666666666666664,-200,-6.666666666666664,-190,-6.666666666666664]}
]}