1.0.6 • Published 4 months ago

gsdot-svg v1.0.6

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
4 months ago

Converts Graph Stack Text dot model to SVG

ES module that exports a single function, gsdot_svg.

Pass Dot lines, header, and ID of div to layout and draw SVG.

Dot lines are just Graphviz lines formatted with classes via model_to_dots. The header can include Graphviz options for nodes, edges, and graph. If "default" is passed as a value, this value is used:

digraph {
    esep=".20"
    overlap=false
    splines=true
    charset="utf-8"
    graph [fontname="Arial"]
    edge [penwidth="2" arrowsize="0.5" arrowtail="vee" arrowhead="vee" color="#bbbbbb" fontname="Arial"]
    node [penwidth="2" margin=".1,0" fontname="Arial"]

gsdot_svg returns the svg in addtion to setting the div

Licenses for D3 and hpcc-js/wasm-graphviz are in dist

Color scheme is from Paul Tol

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago