This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Renderer
mattt edited this page Jan 7, 2021
·
2 revisions
A GraphViz renderer.
public class Renderer
Creates a renderer for the specified layout algorithm.
public init(layout: LayoutAlgorithm, options: Options = [])
CocoaError
if the corresponding GraphViz tool isn't available.
The layout algorithm used.
var layout: LayoutAlgorithm
The rendering options.
var options: Options = []
Renders a graph to the specified output format.
public func render(graph: Graph, to format: Format) throws -> Data
- graph: The graph to be rendered.
- format: The output format.
Error
if GraphViz is unable to render.
Renders a DOT-encoded string to the specified output format.
public func render(dot: String, to format: Format) throws -> Data
- dot: A DOT-encoded string to be rendered.
- format: The output format.
Error
if GraphViz is unable to render.
Generated at 2021-01-07T20:25:50+0000 using swift-doc 1.0.0-beta.5.
Types
- AspectRatio
- Attribute
- Color
- Color.GradientStyle
- Color.Name
- DOTEncoder
- DOTEncoder.Delimiter
- Edge
- Edge.Arrow
- Edge.Arrow.Shape
- Edge.Arrow.Side
- Edge.Attributes
- Edge.Direction
- Edge.Port
- Edge.Style
- Error
- Format
- Graph
- Graph.Attributes
- Graph.ClusterMode
- Graph.FontNamingConvention
- Graph.InitialNodeLayoutStrategy
- Graph.LabelScheme
- Graph.Mode
- Graph.Orientation
- Graph.OutputOrder
- Graph.PackingMode
- Graph.PageDirection
- Graph.QuadtreeScheme
- Graph.RankDirection
- Graph.Smoothing
- Graph.Spline
- Graph.Viewport
- Graph.Viewport.Center
- GraphBuilder
- LayoutAlgorithm
- Location
- Node
- Node.Attributes
- Node.FixedSize
- Node.ImagePosition
- Node.Shape
- Node.Style
- Ordering
- Point
- Position
- Rectangle
- Renderer
- Renderer.Options
- Size
- Subgraph
- Subgraph.Attributes
- Subgraph.Rank
- Subgraph.Style
- SubgraphBuilder