https://github.com/kieler/klayjs-svg-cli
https://github.com/kieler/klayjs-svg-cli
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kieler/klayjs-svg-cli
- Owner: kieler
- License: mit
- Created: 2016-09-11T17:46:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-22T10:17:22.000Z (almost 9 years ago)
- Last Synced: 2025-06-09T13:07:24.641Z (7 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
klayjs-svg-cli
===
Command line interface for [klayjs-svg](https://github.com/OpenKieler/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 `path`s are created instead of `polyline`s.