Skip to content

kieler/klayjs-svg-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

klayjs-svg-cli

Command line interface for klayjs-svg.

Usage

npm install klayjs-svg-cli
Usage: klayjs-svg input.json [...options]
       klayjs-svg [...options] [STDIN]

Options:
  -a, --arrows        Add arrow heads to the edges                     [boolean]
  -c, --centerLabels  Centers node labels within their nodes (if not specified
                      differently)                                     [boolean]
  -d, --defs          Definitions to be added to the svg                 [array]
  -n, --noLayout      Does not lay out the input graph, useful if the graph
                      already has been laid out                        [boolean]
  -o, --output        The output file                                   [string]
  -p, --pretty        Pretty prints the svg output                     [boolean]
  -s, --styles        Style to be used                                   [array]
  --help              Show help                                        [boolean]

Layout Options

If global layout options have been used (or should be used) for layout, wrap the input graph and the options in a common object:

{
  options: { ... },
  graph: { ... }
}

The options may be required to create the correct rendering. For instance, if the edgeRouting is set to SPLINES, svg paths are created instead of polylines.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published