Wgraph:Tutorial node layout

From FollowTheScore
Jump to: navigation, search

node layout

  • Icons
    • when you specify 'iconfile' then 'bordercolor' will implicitly be set to 'white' and 'label' will be set to an empty string.
  • Node Geometry
    • when calling #wgraph you can set two scale factors, one for the image and one for the corresponding thumb image.
    • these scale factors can be understood as "dots per inch" measures.
    • scaling does not work with bitmap images
  • Colors
    • there are 31 pre-defined names
    • you can use #000000 .. #ffffff notation


{{#wgraph: thumb=40 | wgl | png | svg | gdl |

 node A {
   label       "This node demonstrates_"
               "the use of various_"
               "layout properties which ----"
               "can be used in WGL alone or together."
   textmode    left_justify
   url         Wgraph:Sample_3.wgl
   textwidth   20
   color       #ddccff
   textcolor   blue
   bordercolor green
   borderwidth 50
   borderstyle double
   width       250
   height      180
 }
 node B { 
   label       "in a ----special font"
   fontname    courBO18
 }
 edge from A to B { label . }
 node C { 
   label       "\n\n\n my image"
   scaling     2
   icon        user
 }
 edge from B to C { label . }
 label "node layout demo"

}}