Giter Site home page Giter Site logo

yasukitanabe / dot2svg Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 10.77 MB

Automatically exported from code.google.com/p/dot2svg

License: GNU General Public License v3.0

Python 1.20% Shell 0.01% HTML 94.97% JavaScript 2.38% CSS 0.17% XSLT 0.33% Java 0.93%

dot2svg's Introduction

DOT to SVN
==========

This is a simple utility to convert a DOT file into SVN or PNG.
It also adds some shadows to the boxes and lines to make it a little
nicer looking.

Links
-----
DOT: http://www.graphviz.org/
SVG: http://en.wikipedia.org/wiki/Scalable_Vector_Graphics
Batik SVG to PNG: http://xmlgraphics.apache.org/batik/tools/rasterizer.html
Inkscape: http://www.inkscape.org/

Install
-------

# python setup.py install

or

# easy_install.py dot2svg

Prerequesites
-------------

Requires Python 2.3 or greater
Requires Batik's converter for creating png files.

License
-------

GNU GPL http://www.gnu.org/copyleft/gpl.html

dot2svg's People

Contributors

scottkirkwood avatar

dot2svg's Issues

Can't disable shadows

I needed this patch to get rid of the shadows:

Index: dot2svg/dot2svg.py
===================================================================
--- dot2svg/dot2svg.py  (revision 15)
+++ dot2svg/dot2svg.py  (working copy)
@@ -171,7 +171,7 @@
   text = FixFont(text)
   text = PolygonToRect(text, rounded)
   text = AddShadows(text, shadow)
-  text = AddArrowShadows(text)
+  text = AddArrowShadows(text, shadow)
   text = PreserveWhitespace(text)

   return text

Original issue reported on code.google.com by [email protected] on 28 Dec 2008 at 12:05

Erroneous XML output

Can’t give you a repro, but it generates erroneous XML with repeated 
attributes:

<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 400)">
<title>GG</title>
<polygon fill="#999999" stroke="#999999" stroke-width="1" 
transform="translate(2, 2)" style="opacity:0.75;filter:url(#filterBlur)" 
fill="white" stroke="white" points="-4,5 -4,-400 6816,-400 6816,5 -4,5"/>
<polygon fill="white" stroke="white" points="-4,5 -4,-400 6816,-400 6816,5 
-4,5"/>
<!-- node24 —>

Note how fill and stroke are repeated in a single element

Original issue reported on code.google.com by [email protected] on 4 Apr 2013 at 9:43

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.