Handbook
Glossary
preview-window ( graph -- )
Rendering Graphviz output
Prev:
preview ( graph -- )
Next:
default-layout
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-window
, opens a new window displaying the image 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
Definition
USING:
graphviz.render.private
images.viewer
;
IN:
graphviz.render
:
preview-window
( graph -- )
[
image-window
]
with-preview
;