Packages

Bintreeviz renders binary tree structures to string. Out of the box it supports positioning using the WS algorithm and renders to ASCII.

Current section

Files

Jump to
bintreeviz lib renderer renderer.ex
Raw

lib/renderer/renderer.ex

defmodule Bintreeviz.Renderer do
@moduledoc """
Bintreeviz.Renderer describes the behaviour for implementing a renderer. Out of the box Bintreeviz will provide a ASCII renderer which will turn the provided graph into a stringified representation using configurable box drawing characters.
"""
@callback render(Node.t(), Bintreeviz.render_options()) :: String.t()
end