Options for rendering animations
This class provides functionality for rendering diagrams and animations
This class provides functionality for rendering diagrams and animations
It can be used in two ways:
render
methods;render
calls on the diagrams/animations themselves.Usage examples:
import reftree.diagram.Diagram import org.scalajs.dom val renderer = Renderer( renderingOptions = RenderingOptions(density = 75) ) // Conventional usage renderer .tweakRendering(_.withVerticalSpacing(2)) .render(dom.document.body, Diagram(List(1))) // Sweet sugar, recommended import renderer._ Diagram(List(1)) .render(dom.document.body, _.withVerticalSpacing(2))
Options for rendering static diagrams
Options for rendering static diagrams
vertical spacing to set for Graphviz
a sequence of colors to be used
the font for text rendering
the desired image density, in pixels per inch
An interface to https://github.com/mdaines/viz.js/
An interface to https://github.com/mdaines/viz.js/
Options for rendering animations
the duration for key frames
the duration for interpolation segments between the key frames set to
Duration.Zero
to disable interpolationthe rate to use for interpolation (ignored when interpolation is off)
whether the animation should be looped infinitely
set to a positive number
n
to addn
previous frames to each frame, with reduced opacity