| 1 |
Revision history for Perl extension GraphViz2. |
| 2 |
|
| 3 |
2.27 Tue Feb 11 13:40:00 2014 |
| 4 |
- Stop using bare word file handles (again). |
| 5 |
- Change sub BUILD() in all sub-classes to check whether or not a 'graph' parameter was supplied to new(). |
| 6 |
If so, use it rather than instantiating a new GraphViz2 object. |
| 7 |
This fixes a problem with those script/*.pl demos which use this feature. |
| 8 |
- Fiddle t/sample.recdescent.1.dat, since the original test data happened to look like HTML, |
| 9 |
and that stopped GraphViz2.stringify_attributes() adding double-quotes to protect the label. |
| 10 |
That in turn caused dot to issue a syntax error when the generated DOT data was read. |
| 11 |
|
| 12 |
2.26 Thu Jan 30 12:44:00 2014 |
| 13 |
- Stop using bare word file handles. |
| 14 |
- Remove these lines from GraphViz2.pm (because utf8 is global and the others are not needed): |
| 15 |
use utf8; |
| 16 |
use open qw(:std :utf8); # Undeclared streams in UTF-8. |
| 17 |
use charnames qw(:full :short); # Unneeded in v5.16. |
| 18 |
|
| 19 |
2.25 Mon Jan 6 17:06:00 2014 |
| 20 |
- Remove debug printing of the output of 'dot -T?' (a list of valid output formats). |
| 21 |
- Fix typos in output names in rank.sub.graph.1.pl and rank.sub.graph.2.pl. |
| 22 |
rank.sub.graph.1.pl was outputting to html/rank.sub.graph.2.svg and visa versa. |
| 23 |
|
| 24 |
2.24 Mon Dec 2 09:30:00 2013 |
| 25 |
- Rewrite scripts/extract.output.formats.pl, which used to download a page of documentation from graphviz.org, |
| 26 |
and parse it to build a list of output formats. The problems are: |
| 27 |
(1) Forgetting to run the script; (2) the on-line docs being out-of-date. |
| 28 |
So, as of this version, I now parse the output of 'dot -T?', which will not just be more accurate, |
| 29 |
but will also include the formats supported by locally-installed plugins. It's a win-win result. |
| 30 |
- Put that new logic into GraphViz2's load_valid_attributes() method. |
| 31 |
- Expand the FAQ to discuss the above operation. |
| 32 |
|
| 33 |
2.23 Sun Dec 1 09:42:00 2013 |
| 34 |
- Update lists of valid attibutes by running scripts/extract.*.pl, and incorporating the changes into |
| 35 |
the source code of GraphViz2.pm (at the end). I use Data::Section::Simple to read this data. |
| 36 |
These lists now correspond to Graphviz V 2.34. Changes: |
| 37 |
o Remove 'aspect' as an attribute 'graph'. |
| 38 |
o Add 'inputscale' as an attribute of 'graph'. |
| 39 |
o Add 'overlap_shrink' as an attribute of 'graph'. |
| 40 |
o Add 'star' as an attribute of 'node shape'. |
| 41 |
o Add 'underline' as an attribute of 'node shape'. |
| 42 |
o Add 'xdot1.2' as an attribute of 'output format'. |
| 43 |
o Add 'xdot1.4' as an attribute of 'output format'. |
| 44 |
See RT#91073. Many thanx for Kent Fredric for bringing this to my attention. |
| 45 |
- Add t/version.t, which uses Test::Version. |
| 46 |
- Update pre-reqs. |
| 47 |
- Add use strict/warnings to Build.PL and Makefile.PL. |
| 48 |
|
| 49 |
2.22 Fri Sep 6 16:03:00 2013 |
| 50 |
- Fix handling of graph attributes which are for clusters but not for subgraphs. |
| 51 |
See scripts/sub.graph.frames.pl for sample code. |
| 52 |
See the demo page for the output of that script. |
| 53 |
See the new FAQ item 'How do I specify attributes for clusters?' for details. |
| 54 |
Many thanx to Bill Hollingsworth (private email) for prompting me to investigate this bug. |
| 55 |
- Document method default_subgraph(). |
| 56 |
|
| 57 |
2.21 Fri Sep 6 13:00:00 2013 |
| 58 |
- Replace Path::Tiny with File::Spec, because the former's list of dependencies is soooo long :-(. |
| 59 |
Changed files: GraphViz2::Config, scripts/copy.config.pl, scripts/find.config.pl, Build.PL and Makefile.PL. |
| 60 |
See: RT#88435 (for Tree::DAG_Node) for an explanation. |
| 61 |
|
| 62 |
2.20 Tue Aug 27 16:22:00 2013 |
| 63 |
- In sub stringify_attributes(), remove leading and trailing whitespace from HTML tables like so: |
| 64 |
s/^\s+(<)/$1/ and s/(>)\s+$/$1/. This is formatting sugar, but it also affects the next regexp. |
| 65 |
- In the same sub, change a regexp from /^<.+>$/ to /^<.+>$/s. Note trailing 's'. |
| 66 |
This allows '.' to match newlines within HTML lables. This fixes a bug (not yet reported :-). |
| 67 |
- Both these changes allow HTML labels to be more nicely formatted in the source code of the module |
| 68 |
which uses GraphViz2 (such as MarpaX::Grammar::GraphViz2). |
| 69 |
- Split scripts/html.labels.pl into scripts/html.labels.1.pl and scripts/html.labels.2.pl. |
| 70 |
These demonstrate the 2 types of HTML labels. |
| 71 |
- Document sub escape_some_chars(). |
| 72 |
- Add an FAQ item on using whitespace in HTML labels. |
| 73 |
|
| 74 |
2.19 Tue Aug 20 10:44:00 2013 |
| 75 |
- Remove the global graph attribute 'record_orientation', as forewarned in V 2.10, in June. |
| 76 |
- Fix handling of some global attributes. |
| 77 |
Previously, some options mentioned in the call to new(...) were not set by that call. |
| 78 |
The options affected were: 'driver', 'format', 'strict', 'subgraph' and 'timeout'. |
| 79 |
The options 'driver', 'format', and 'timeout' could be set in the call to run(...), |
| 80 |
but in new(...), the value of 'format' was ignored, and the value of 'subgraph' generated an error |
| 81 |
referring to '... not a valid attribute ...'. |
| 82 |
Thanx to Larry Knibb for reporting this problem, for 'driver'. |
| 83 |
- Remove reference to GraphViz2::Parse::Marpa from scripts/pod2html.sh. See comment below for V 2.15. |
| 84 |
This module has been replaced by MarpaX::Grammar::GraphViz2, which depends on MarpaX::Grammar::Parser. |
| 85 |
|
| 86 |
2.18 Wed Aug 7 09:22:00 2013 |
| 87 |
- Remove print from sub BUILD() left over from debugging. |
| 88 |
- Update Build.PL and Makefile.PL to include bugtracker and license items. |
| 89 |
Also replace the Perl version checking code with a simple 'require 5.014.002; # For the utf8 stuff.'. |
| 90 |
|
| 91 |
2.17 Sat Aug 3 08:58:00 2013 |
| 92 |
- Fix handling of record shapes. E.g. label => [] ignored global default shape 'Mrecord'. |
| 93 |
Thanx to Kent Fredric for this report. See RT#87560. |
| 94 |
- Fix handling of the graph's default name. This is used in 'digraph $name {...}'. |
| 95 |
Previously, names like '' or '0' were ignored, and such values defaulted to 'Perl'. |
| 96 |
- Add scripts/record.4.pl to demonstrate setting record-style node attributes. |
| 97 |
- Fix names of html/utf8*.svg and png files, as output by scripts/utf8*.pl. |
| 98 |
- Fix scripts/generate.sh.pl which generates scripts/generate.(png,svg).sh. |
| 99 |
|
| 100 |
2.16 Fri Aug 2 10:54:00 2013 |
| 101 |
- Patch GraphViz2.pm to handle both SVG and (eg) PNG output. I failed to test this properly. |
| 102 |
Thanx to Kent Fredric for this report. See RT#87525. |
| 103 |
- Patch scripts/Heawood.pl to use font ArialMT instead of Arial when running under Darwin (OSX). Grrrr. |
| 104 |
Thanx to David Jack Olrik for this report. See RT#87478. |
| 105 |
- Remove special case code in scripts/jointed.edges.pl. It used png:gd instead of png, to work round |
| 106 |
an unknown Graphviz problem. Let's hope /your/ version of Graphviz is up-to-date. |
| 107 |
- Patch scripts/circo.pl: Add comment searched for by t/test.t, which is used to label html/index.html. |
| 108 |
- Add scripts/generate.sh.pl to generate scripts/generate.png.sh and scripts/generate.svg.sh. |
| 109 |
This adds 2 tests, and 2 images to the demo page, and fixes various typos in those *.sh files. |
| 110 |
- Switch from Hash::FieldHash to Moo. |
| 111 |
- Add config/.htgraphviz2 to help the author generate the demo. |
| 112 |
- Add GraphViz2::Config.pm, and split GraphViz2::Filer off from GraphViz2::Utils, which also helps |
| 113 |
generate the demo. |
| 114 |
- Switch from Hash::FieldHash to Moo. |
| 115 |
- Use File::Slurp except where I need Perl6::Slurp's utf8 option. I needed File::Slurp's write_file for |
| 116 |
the new script scripts/generate.sh.pl, so I decided to use it in most places. |
| 117 |
- Rename scripts/utf8.pl to scripts/utf8.1.pl. |
| 118 |
- Rename scripts/utf8.test.pl to scripts/utf8.2.pl. |
| 119 |
- Rename html/utf8.svg to html/utf8.1.svg. |
| 120 |
- Rename html/utf8.test.svg to html/utf8.2.svg. |
| 121 |
|
| 122 |
2.15 Mon Jul 29 14:42:00 2013 |
| 123 |
- Remove GraphViz2::Parse::Marpa, until it's re-written to use Jeffrey Kegler's code to dump a grammar. |
| 124 |
- Add scripts/circo.pl and it's output html/circo.svg. |
| 125 |
- For non-HTML labels, escape double-quotes if they are not already escaped. |
| 126 |
This allows pathological labels such as '\"'. |
| 127 |
- For all labels, escape '[' and ']' if they are not already escaped. |
| 128 |
The rationale for this is shrouded in the mists of time :-(. |
| 129 |
- Put author tests in xt/author. |
| 130 |
- Add Algorithm::Dependency::Source::HoA V 1.110 to the pre-reqs to keep my home-grown Build.PL and |
| 131 |
Makefile.PL checker a bit quieter. |
| 132 |
- Add Config V 0, channames V 0 and open V 0 to the pre-reqs. |
| 133 |
- Move t/pod.t to xt/author/. |
| 134 |
- Switch from IPC::Run to IPC::Run3. This after a discussion with Larry Knibb re the fact that his code is |
| 135 |
hanging under Apache (mod_cgi) on Windows. He suggested using qx//, but I've gone for IPC::Run3. |
| 136 |
The other reason to switch is the overly-long bug list for IPC::Run, including Larry's report RT#87397. |
| 137 |
I went thru the same issues with Lee when switching from system() to IPC::Run for V 2.02. See RT#76459. |
| 138 |
IPC::Run3 has the advantage of letting me set binmode on various file handles. |
| 139 |
- For all modules and some scripts, convert: |
| 140 |
use strict; |
| 141 |
use warnings; |
| 142 |
into: |
| 143 |
use strict; |
| 144 |
use utf8; |
| 145 |
use warnings; |
| 146 |
use warnings qw(FATAL utf8); # Fatalize encoding glitches. |
| 147 |
use open qw(:std :utf8); # Undeclared streams in UTF-8. |
| 148 |
use charnames qw(:full :short); # Unneeded in v5.16. |
| 149 |
|
| 150 |
2.14 Mon Jul 1 10:09:00 2013 |
| 151 |
- Patch push_subgraph() to correctly handle the case of an unnamed subgraph. |
| 152 |
The code was outputting 'subgraph "" {...}'. The extra "" are now suppressed. |
| 153 |
The code also handles the case of the name being undef. |
| 154 |
There are no doc changes because the docs described precisely what should have happened, thusly: |
| 155 |
So, without $name, 'subgraph {' is written to the output stream. |
| 156 |
With $name, 'subgraph "$name" {' is written to the output stream. |
| 157 |
Many thanx (again) to Larry Marso for reporting this, with sample code. |
| 158 |
- Add scripts/unnamed.sub.graph.pl. |
| 159 |
|
| 160 |
2.13 Fri Jun 28 12:02:00 2013 |
| 161 |
- Oops - Patch scripts/record.1.pl as was allegedly done for V 2.11. |
| 162 |
|
| 163 |
2.12 Thu Jun 27 14:40:00 2013 |
| 164 |
- Add scripts/plaintext.pl, which generates a 'Use of uninitialized value...' error under V 2.11 and, |
| 165 |
after the fix, does not do so under V 2.12. Many thanx to Larry Marso for the (private email) report. |
| 166 |
|
| 167 |
2.11 Thu Jun 27 09:21:00 2013 |
| 168 |
- Correct spelling of Kent Fredric's name below, with apologies. |
| 169 |
- Patch scripts/record.1.pl and scripts/record.2.pl to use '\\n' to get a literal '\n' in the output dot |
| 170 |
file. The original works my Debian machine, but needs fixing in case there's someone out there not |
| 171 |
using Debian :-). |
| 172 |
- Remove debug log message from add_edge(). |
| 173 |
|
| 174 |
2.10 Mon Jun 24 11:05:00 2013 |
| 175 |
- Overview: Re-work the label and port handing code. |
| 176 |
- Note: the global graph attribute 'record_orientation' no longer does anything. The new label syntax, |
| 177 |
(next, and in detail in the FAQ (https://metacpan.org/module/GraphViz2#How-labels-interact-with-ports) ), |
| 178 |
is now the recommended way of using labels to specify both ports and orientation. |
| 179 |
Using 'record_orientation' will not cause parameter validation to fail, it just won't have any effect. |
| 180 |
The attribute will be removed in a future version, so prepare now by deleting it from your code. |
| 181 |
- Labels can be a string, an arrayref of strings, or an arrayref of hashrefs. The latter alternative |
| 182 |
is new. The keys to the hashrefs are 'text' and 'port', with the latter being optional. |
| 183 |
See the FAQ topic mentioned above. See scripts/record.2.pl for sample code. |
| 184 |
Many thanx to Kent Fredric for the report (RT#85976), and the list of suggestions. |
| 185 |
- Add scripts/record.3.pl and add it to the demo generating code scripts/generate.*.sh. |
| 186 |
It demonstrates deeply nested record structures using a string as a label. The same effect could be |
| 187 |
achieved by using an arrayref of hashrefs, of course. scripts/record.2.pl shows how. |
| 188 |
- Stop escaping the 2 label characters { and }, since they are used to orient fields within records. |
| 189 |
On the demo page http://savage.net.au/Perl-modules/html/graphviz2/, see scripts/record.*.pl. |
| 190 |
Expand the FAQ discussion of escaping to cover this issue. |
| 191 |
- Remove restriction that port names in calls to add_edge() had to start with 'port'. |
| 192 |
This was due to my misreading of the Graphviz docs, where all examples used a 'port' prefix. |
| 193 |
The code also now checks for '*::*', in case the program is using Perl classes for node names, |
| 194 |
in which case we don't want the first ':' to be taken as the introduction for a port name. |
| 195 |
- Update words/tokens (arrow shapes etc) stored within the source code, by running scripts/extract.*.pl |
| 196 |
and storing the output in lib/GraphViz2.pm after the __DATA__ token. Yes, I know this is hard-coding. |
| 197 |
See the amazing module Data::Section::Simple for details. |
| 198 |
The set of words/tokens matches Graphviz 2.30.1, as of today, 2013-06-24. |
| 199 |
- Rename CHANGES to Changes as per CPAN::Changes::SPEC. |
| 200 |
- Reformat the POD in lib/GraphViz2.pm slightly. |
| 201 |
- Remove scripts/parse.marpa.pl and t/sample.marpa.1.dat, as a step in removing all Marpa-related material, |
| 202 |
because it uses the deprecated NAIF interface. All new Marpa work should use the scanless interface (SCIF). |
| 203 |
- Change Build.PL and Makefile.PL to check for Perl being at least V 5.14.0. If you are using an earlier |
| 204 |
version, you can forgo utf8 support by editing the files to relax this restriction. |
| 205 |
Some tests (utf8.pl, utf8.test.pl) will presumably fail as a consequence. |
| 206 |
Lastly, my attention has been drawn to Unicode::Semantics::up(), but I've chosen not to use it. |
| 207 |
|
| 208 |
2.09 Fri May 31 09:57:00 2013 |
| 209 |
- Re-write the code in Build.PL and Makefile.PL which checks for Graphviz (dot) being installed, |
| 210 |
since the previous code, using a pipe, was failing on some versions of Windows. |
| 211 |
- Assume Config.pm is installed, and hence remove it from the pre-reqs. |
| 212 |
This also stops a warning message generated because Config's version # is undef. |
| 213 |
- Likewise assume File::Spec and File::Temp are installed, and 'recent enough'. |
| 214 |
This is because the new code uses these 3 modules before specifying the pre-reqs. |
| 215 |
- Bump the pre-req for Perl from 5.10.0 to 5.14, since we 'use feature qw/unicode_strings/. |
| 216 |
- Re-write the code in Build.PL and Makefile.PL which checks for Perl being 'recent enough', |
| 217 |
since the previous code, using a pre-req of "perl => '5.10.0'" generates a warning message |
| 218 |
when using Makefile.PL (for my current Perl V 5.14.2). Now we analyze $Config{version}. |
| 219 |
- One CPAN Tester found tests failing even though Graphviz was installed. |
| 220 |
The problem was that the Times font was missing. The new code should fail during 'perl Build.PL', |
| 221 |
or 'perl Makefile.PL', rather than during testing, which is good. |
| 222 |
|
| 223 |
2.08 Thu Mar 21 13:16:00 2013 |
| 224 |
- Add $ENV{DBI_SCHEMA} to scripts/dbi.schema.pl. |
| 225 |
- For the MusicBrainz database, use DBI_SCHEMA=musicbrainz,cover_art_archive,report,statistics. |
| 226 |
See http://musicbrainz.org/doc/MusicBrainz_Database for details. |
| 227 |
Users of cpanm will want 'cpanm Carton' instead of 'sudo cpan Carton' in Perl dependencies. |
| 228 |
See https://github.com/metabrainz/musicbrainz-server/blob/master/INSTALL.md for details. |
| 229 |
|
| 230 |
2.07 Wed Mar 13 13:24:00 2013 |
| 231 |
- Extend GraphViz2::DBI to handle SQLite using pragma foreign_key_list($table_name). |
| 232 |
- Add scripts/sqlite.foreign.keys.pl to help analyze that pragma's output. |
| 233 |
- Remove the string 'App-Office-CMS' from scripts/dbi.schema.pl. That is, the create() method is |
| 234 |
called as $g -> create(name => ''). This has the effect of removing the global node from the |
| 235 |
resultant graph. All tables were descendents of this node, but with schemas of dozens or hundreds |
| 236 |
of tables, it became confusing. |
| 237 |
- Patch dbi.schema.pl to set the DBI connect attr sqlite_unicode and foreign_keys pragma if using SQLite. |
| 238 |
|
| 239 |
2.06 Thu Nov 8 12:38:00 2012 |
| 240 |
- No code changes. |
| 241 |
- For pre-reqs such as strict, warnings, etc, which ship with Perl, set the version # to 0. |
| 242 |
Reported as RT#80663 by Father Chrysostomos for Tree::DAG_Node. |
| 243 |
|
| 244 |
2.05 Tue Oct 2 10:20:00 2012 |
| 245 |
- No fundamental code changes, so no need to upgrade, unless you need the following new features. |
| 246 |
- After a request from Jack Maney, author of the Perl module Hypatia: |
| 247 |
o Document the mutator node_hash(), which returns a hashref keyed by node name. |
| 248 |
Use this to get a list of all nodes and their attributes. |
| 249 |
o Add a new mutator, edge_hash(), which also returns a hashref keyed by node name. |
| 250 |
The node is the one at the arrow/tail/ end of the edge, i.e. where the edge starts from. |
| 251 |
Use this to learn all sorts of things about the edge. |
| 252 |
o Add scripts/report.nodes.and.edges.pl (a version of scripts/html.labels.pl) to demonstrate |
| 253 |
how to access this data. |
| 254 |
o Update to POD to match. |
| 255 |
|
| 256 |
2.04 Fri Aug 17 10:48:00 2012 |
| 257 |
- Add Perl V 5.14.2 to the pre-reqs, for the utf8 stuff. |
| 258 |
- Re-write the subgraph handling code, which was broken up to V 2.03. |
| 259 |
Add samples, script/rank.sub.graph.[1234].pl, to demonstrate subgraph name effects and node rankings. |
| 260 |
script/rank.sub.graph.[12].pl use subgraphs to force a set of nodes to be horizontally aligned. |
| 261 |
script/rank.sub.graph.[34].pl show the effects of subgraph name changes on the same data. |
| 262 |
|
| 263 |
2.03 Mon Jun 18 9:47:00 2012 |
| 264 |
- Switch from double to single quotes in line 22 of GraphViz2::Parse::Regexp, so the resultant string, |
| 265 |
treated as Perl code, runs on Windows. Reported by Max Maischein as RT#77869. |
| 266 |
- Also, slightly reformat line 39 of that module. |
| 267 |
|
| 268 |
2.02 Thu Apr 19 11:51:00 2012 |
| 269 |
- Accept patch from Lee as in RT#76459, to replace the code which writes the dot input file to |
| 270 |
a file with binmode, and just pass the data to dot via IPC::Run. |
| 271 |
Happily, this allows me to eliminate 'use open qw/:encoding(UTF-8) :std/;' in t/test.t. |
| 272 |
- Update the pre-reqs in Build.PL and Makefile.PL. |
| 273 |
- Add scripts/utf8.test.pl to the list of scripts shipped with this module. |
| 274 |
- Add scripts/utf8* to scripts/generate.*.sh. |
| 275 |
- Make scripts/generate.*.sh emit a warning when DBI_DSN is not set. |
| 276 |
|
| 277 |
2.01 Wed Mar 7 08:50:00 2012 |
| 278 |
- I only tested V 2.00 by outputting to SVG (a text format), but outputting to a binary format such as PNG was broken. |
| 279 |
So, remove the 'use open qw/:encoding(UTF-8) :std/;', and restore binmode, in GraphViz2.pm. |
| 280 |
- Remove log to screen in utf8.pl, since Log::Handler doesn't accept utf8 as a logger option. |
| 281 |
- Copy scripts/utf8.pl to scripts/utf8.test.pl and edit to display just 5 delta characters. See html/utf8.test.svg. PNG is ok too. |
| 282 |
This demonstrates (hopefully) we can get the correct output on a binary format despite the 'Wide character in print...' message. |
| 283 |
- Add FAQ topic regarding this 'Wide character in print...' problem. |
| 284 |
|
| 285 |
2.00 Tue Mar 6 16:02:00 2012 |
| 286 |
- Support utf8 in labels. This required changes to GraphViz2.pm. See scripts/utf8.pl and html/utf8.svg. I'm using Perl V 5.14.2. |
| 287 |
Sample output is online at http://savage.net.au/Perl-modules/html/graphviz2/utf8.svg. |
| 288 |
- Add an item to the FAQ about how to write scripts using utf8. |
| 289 |
- Re-write GraphViz2::Parse::ISA to draw multiple class hierarchies on 1 graph. This means the API for that class has changed. |
| 290 |
Specifically, create() no longer exists. Call add() 1 or more times instead. Then, call generate_graph(). See the docs for details. |
| 291 |
Sample output is online at http://savage.net.au/Perl-modules/html/graphviz2/parse.isa.svg. |
| 292 |
|
| 293 |
1.13 Sun Dec 25 10:33:00 2011 |
| 294 |
- Change <img...> to <object...> in the demo creation code, to keep poor old FireFox happy. |
| 295 |
- Change various things in html/graphviz2.index.tx to we validate as XHTML 1.0 Strict. |
| 296 |
- Unreleased. |
| 297 |
|
| 298 |
1.12 Wed Dec 14 11:22:00 2011 |
| 299 |
- Add 5 scripts, scripts/macro.*.pl, to demonstrate using a Perl sub as a macro to generate both cluster and non-cluster sub-graphs. |
| 300 |
- Update the TODO in GraphViz2.pm, since it erroneously gave the impression the current code did not handle compound clusters. |
| 301 |
- Re-generate the demo. See: http://savage.net.au/Perl-modules/html/graphviz2/. |
| 302 |
- Adopt Flavio Poletti's suggestion of trying to pipe to dot, in Build.PL/Makefile.PL, rather than using File::Which, |
| 303 |
to see if dot (Graphviz) is installed. This (hopefully) solves the problem of using File::Which on systems where it is |
| 304 |
not installed, before Build.PL/Makefile.PL has a chance to tell the user that File::Which is required. See: RT#73077. |
| 305 |
- No code changes in *.pm files. |
| 306 |
|
| 307 |
1.11 Tue Nov 8 10:21:00 2011 |
| 308 |
- Fix bug where double quotes in HTML labels were being escaped and should not have been. |
| 309 |
Many thanx to Fitz Elliott for the report and initial patch. See https://rt.cpan.org/Ticket/Display.html?id=72259. |
| 310 |
- Patched scripts/html.labels.pl as per Fitz's suggested test code. |
| 311 |
- Rename t/lib/Parent.pm to t/lib/Adult.pm to avoid a reported problem with "use parent 'Parent';" under Windows. |
| 312 |
This affect various files. See https://rt.cpan.org/Public/Bug/Display.html?id=69076. |
| 313 |
|
| 314 |
1.10 Thu Sep 1 10:45:00 2011 |
| 315 |
- Fix bug in GraphViz in handling of nodes whose shape is none or plaintext, and whose label is HTML. |
| 316 |
- Fix bug in scripts/generate.png.sh to add png parameter to 'perl -Ilib scripts/generate.demo.pl png'. |
| 317 |
- HTML labels work without any code changes, so references to them not working have been removed from the docs. |
| 318 |
- GraphViz2 is called by the now-released Graph::Easy::Marpa, so remove that item from the TODO list. |
| 319 |
- Fix doc referring to scripts/generate.index.pl. It now refers to scripts/generate.demo.pl. |
| 320 |
- Add DOCTYPE and Content-type to html/graphviz.index.tx. Output by scripts/generate.demo.pl, html/index.html, now handles UTF-8 properly. |
| 321 |
- Add alt to the <img ...> tags output by scripts/generate.demo.pl. |
| 322 |
- Add scripts/html.labels.pl. This code includes a demo of using ports. |
| 323 |
- Reorder methods in GraphViz2::Utils to be in alphabetical order. |
| 324 |
|
| 325 |
1.09 Thu Jul 21 14:13:00 2011 |
| 326 |
- Patch parameter validation to allow for output image types such as png:gd etc. |
| 327 |
Only the prefix before the first ':' is validated. |
| 328 |
|
| 329 |
1.08 Thu Jul 21 11:53:00 2011 |
| 330 |
- Change the behaviour of sub log() in GraphViz.pm. Now if called with $level eq 'error', it dies with $message. |
| 331 |
- Change references to the color darkblue to blue, so it's compatible with both the X11 and SVG color schemes. |
| 332 |
- Likewise change chartreuse to lawngreen. |
| 333 |
- Rename scripts/generate.index.pl to scripts/generate.demo.pl, as a more meaningful name. |
| 334 |
- Patch scripts/generate.demo.pl to accept the output image type as a command line parameter. |
| 335 |
- Use this new feature to generate png files, and upload them to the demo site |
| 336 |
http://savage.net.au/Perl-modules/html/graphviz2/ even though png is often uglier than svg. |
| 337 |
I did this because Iceweasel (Firefox) V 3.5.16 was not displaying svgs within the index file, |
| 338 |
even though they are fine when displayed directly. |
| 339 |
- Add scripts/generate.png.sh. |
| 340 |
- Note: scripts/jointed.edges.pl must call dot with -Tpng:gd and not -Tpng, for unknown reasons. |
| 341 |
- Make both scripts/generate.png.sh and scripts/generate.svg.sh redirect their log files to /tmp, |
| 342 |
so that we don't have to ship the logs, and also so they don't keep changing and hence need checking in. |
| 343 |
- Remove ./dbi.schema.log from the distro. |
| 344 |
|
| 345 |
1.07 Mon Jul 4 15:46:00 2011 |
| 346 |
- Use Date::Format to add a date stamp at the end of html/index.html, as output by generate.index.pl. |
| 347 |
|
| 348 |
1.06 Tue Jun 28 11:10:00 2011 |
| 349 |
- Change usage of File::Temp -> newdir to fix problems testing on BSD-based systems. |
| 350 |
- Add scripts/jointed.edges.pl. |
| 351 |
This demo - in Graph::Easy syntax - ships with Graph::Easy::Marpa. |
| 352 |
- Re-write generate.index.pl to put all demo data (where available) and images on 1 page. |
| 353 |
- Upload demo to (new location) http://savage.net.au/Perl-modules/html/graphviz2/index.html. |
| 354 |
|
| 355 |
1.05 Fri Jun 24 12:40:00 2011 |
| 356 |
- Implement GraphViz2::Parse::Marpa, along with scripts/parse.marpa.pl and t/sample.marpa.1.dat. |
| 357 |
The output is html/parse.marpa.svg. |
| 358 |
- Implement GraphViz2::Parse::STT, along with scripts/parse.stt.pl and t/sample.stt.1.dat. |
| 359 |
The output is html/parse.stt.svg. |
| 360 |
- Add use File::Spec to t/test.t |
| 361 |
|
| 362 |
1.04 Wed Jun 22 9:36:00 2011 |
| 363 |
- Reduce required version of File::Basename to 2.77, which came with Perl 5.10.1. |
| 364 |
- Stop trying to write to t/html/, and use File::Temp for a directory instead. |
| 365 |
That way, it doesn't matter who owns t/html/, nor whether or not it's writable. |
| 366 |
|
| 367 |
1.03 Sun Jun 19 16:27:00 2011 |
| 368 |
- Tweak File::Temp -> new to be File::Temp ->new(EXLOCK => 0) for BSD-based systems. |
| 369 |
|
| 370 |
1.02 Fri Jun 17 8:36:00 2011 |
| 371 |
- Add the pre-requisite Log::Handler to Build.PL and Makefile.PL. |
| 372 |
- Release HTML::Entities::Interpolate V 1.04 and Set::Array V 0.23 to CPAN. |
| 373 |
- Add README file. |
| 374 |
- Clean up TODO list. |
| 375 |
|
| 376 |
1.01 Wed Jun 15 15:00:00 2011 |
| 377 |
- Quote cluster/subgraph names so they may contain weird characters. |
| 378 |
- Add method dependency(data => $depend) to GraphViz2.pm, which accepts an object of type |
| 379 |
Algorithm::Dependency. See scripts/dependency.pl and html/dependency.svg. |
| 380 |
- Add GraphViz2::Parse::ISA, and scripts/parse.isa.pl, and the t/lib/Parent hierarchy. |
| 381 |
|
| 382 |
1.00 Wed Jun 15 14:26:00 2011 |
| 383 |
- This is a re-write of GraphViz. The method parameter lists are incompatible. |
| 384 |
Sorry, but it now supports all options and attributes in Graphviz V 2.23.6. |
| 385 |
- Rewrite GraphViz, GraphViz::Data::Grapher, GraphViz::Parse::RecDescent, GraphViz::Parse::Yacc and GraphViz::Parse::Yapp. |
| 386 |
The core code of *::RecDescent, *::Yacc and *::Yapp has been copied from GraphViz, with tiny changes. |
| 387 |
- GraphViz2::Data::Grapher uses Tree::DAG_Node to hold information, before calling external plotting programs. |
| 388 |
The tree is available for you to process whether or not you actually plot the graph. |
| 389 |
- GraphViz::Regex renamed GraphViz2::Parse::Regexp. |
| 390 |
- GraphViz::XML renamed GraphViz2::Parse::XML. And it uses XML::Tiny by default. |
| 391 |
One demo shows how to use XML::Bare instead. |
| 392 |
- All new documentation. |
| 393 |
- All new demos, in scripts/*.pl. These are documented in GraphViz's POD. |
| 394 |
- All demo output included, in html/*.html and html/*.svg. |