draw

package
v0.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: BSD-3-Clause Imports: 12 Imported by: 1

Documentation

Overview

Package draw provides methods for graphical representations of a placetypes specification

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawPlacetypesGraph

func DrawPlacetypesGraph(spec *placetypes.WOFPlacetypeSpecification) (image.Image, error)

DrawPlacetypesGraph will derive a Graphviz "dot" representation of 'spec' and render it as an `image.Image` instance.

func DrawPlacetypesGraphToFile

func DrawPlacetypesGraphToFile(spec *placetypes.WOFPlacetypeSpecification, path string) error

DrawPlacetypesGraphToWriter will derive a Graphviz "dot" representation of 'spec' and render it as an image written to 'path'. Valid image formats (derived from 'path' 's file extension) are: jpeg (jpg) and png.

func DrawPlacetypesGraphToWriter

func DrawPlacetypesGraphToWriter(spec *placetypes.WOFPlacetypeSpecification, format string, wr io.Writer) error

DrawPlacetypesGraphToWriter will derive a Graphviz "dot" representation of 'spec' and render it as an image written to 'wr'. Valid image formats (defined by the 'format' argument) are: jpeg (jpg) and png.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL