Changes between Version 52 and Version 53 of GraphvizPlugin


Ignore:
Timestamp:
Jan 12, 2017, 9:16:23 PM (7 years ago)
Author:
figaro
Comment:

Moved example to functional description

Legend:

Unmodified
Added
Removed
Modified
  • GraphvizPlugin

    v52 v53  
    99This is a plugin that allows the dynamic generation of diagrams by [http://www.graphviz.org/ Graphviz] programs. The text of a wiki page can contain the source text for Graphviz and the web browser will show the resulting image.
    1010
    11 For examples, see below.
     11For example, add the following lines to a wiki page:
     12
     13{{{
     14{{{
     15#!graphviz
     16digraph G {Hello->World->Graphviz->Rules}
     17}}}
     18}}}
     19
     20and that would produce an image as follows:
     21
     22[[Image(first-example.png)]]
     23
     24Note that you can insert TracLinks like this:
     25{{{ 
     26{{{
     27#!graphviz
     28  digraph G {
     29    rankdir = "LR"
     30    GraphvizPlugin [ URL=GraphvizPlugin ]
     31    Trac [
     32      URL="http://trac.edgewall.org/"   
     33      fontcolor=red
     34    ]
     35    GraphvizPlugin -> Trac
     36    }
     37}}}
     38}}}
     39
     40This produces an image like this, but with clickable nodes (note that nodes aren't actually clickable in this example):
     41
     42  [[Image(second-example.png)]]
     43
     44More examples at: http://www.graphviz.org/Gallery.php
    1245
    1346== Bugs/Feature Requests
     
    1952[/newticket?component=GraphvizPlugin new ticket].
    2053
    21 Be sure to mention which version of Trac and which version of the plugin you are using. If the version number ends with `dev`, then please also specify the ''changeset number'' corresponding to the version you are using.
     54When creating a new ticket, be sure to mention which version of Trac and which version of the plugin you are using. If the version number ends with `dev`, then please also specify the ''changeset number'' corresponding to the version you are using.
    2255
    2356[[TicketQuery(component=GraphvizPlugin&group=type,format=progress)]]
     
    2558== Download
    2659
    27 Or you can download the zipped source from [source:graphvizplugin here]. Note that this contains everything regarding the Graphviz plugin including tagged releases and branches. The 0.10 directory contains the latest released version of the code for Trac 0.10 and the 0.11 directory contains the latest code for Trac 0.11.
     60Or you can download the zipped source from [source:graphvizplugin here]. Note that this contains everything regarding the Graphviz plugin including tagged releases and branches.
     61
     62For '''older versions''', the 0.10 directory contains the latest released version of the code for Trac 0.10 and the 0.11 directory contains the latest code for Trac 0.11.
    2863 - [export:graphvizplugin/tags/0.11-0.7.5 download] latest stable version (0.7.5) for Trac 0.11.
    2964 - [export:graphvizplugin/tags/0.10 download] latest version for Trac 0.10.
    3065
    31 That version has some trouble with `rsvg` support for creating anti-aliased images. The upcoming version contains a few related fixes:
     66That version has some trouble with `rsvg` support for creating anti-aliased images.
     67
     68The '''upcoming versions''' contain a few related fixes:
    3269 - [export:graphvizplugin/trunk download] latest unstable version for Trac 0.11 and later.
    33  - [export:graphvizplugin/branches/1.0 download] latest unstable version for Trac 1.0
    34 If you want to have anti-aliased images, it might be a better option anyway to get/build a recent version of graphviz tools, which support producing anti-aliased images directly, through pangocairo support.
     70 - [export:graphvizplugin/branches/1.0 download] latest unstable version for Trac 1.0.
     71
     72If you want to have anti-aliased images, it might be a better option anyway to get and build a recent version of Graphviz tools. The recent versions support anti-aliasing directly, through pangocairo support.
    3573
    3674== Source
     
    70108 1. Configure your environment by modifying your `trac.ini` file.
    71109
    72 == Example
    73 
    74 Add the following lines to a wiki page:
    75 
    76 {{{
    77 {{{
    78 #!graphviz
    79 digraph G {Hello->World->Graphviz->Rules}
    80 }}}
    81 }}}
    82 
    83 and that would produce an image as follows:
    84 
    85 [[Image(first-example.png)]]
    86 
    87 Note that you can insert TracLinks like this:
    88 {{{ 
    89 {{{
    90 #!graphviz
    91   digraph G {
    92     rankdir = "LR"
    93     GraphvizPlugin [ URL=GraphvizPlugin ]
    94     Trac [
    95       URL="http://trac.edgewall.org/"   
    96       fontcolor=red
    97     ]
    98     GraphvizPlugin -> Trac
    99     }
    100 }}}
    101 }}}
    102 
    103 This produces an image like this, but with clickable nodes (note that nodes aren't actually clickable in this example):
    104 
    105   [[Image(second-example.png)]]
    106 
    107 More examples at: http://www.graphviz.org/Gallery.php
    108 
    109110== Recent Changes
    110111