Handbook
Glossary
preview ( graph -- )
Rendering Graphviz output
Prev:
graphviz* ( graph path format -- )
Next:
preview-window ( graph -- )
Vocabulary
graphviz
.
render
Inputs
graph
a
graph
Outputs
None
Word description
Renders
graph
to a temporary file using
preview-format
and
default-layout
. Then, using
image.
, displays the image in the UI listener before deleting the temporary file.
Errors
Throws an
unsupported-preview-format
error if
preview-format
is not supported by
images
.
loader
.
If the Graphviz process encounters an error, its output will be captured and thrown as an
output-process-error
by Factor.
Throws an
unsupported-encoding
error if
graph-encoding
isn't one of
utf8
or
latin1
.
See also
preview-window
Definition
USING:
graphviz.render.private
images.viewer
;
IN:
graphviz.render
:
preview
( graph -- )
[
image.
]
with-preview
;