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
Current section
Files
lib/positioner/positioner.ex
defmodule Bintreeviz.Positioner do
@moduledoc """
Bintreeviz.Positioner describes the behaviour for implementing a positioner. Out of the box Bintreeviz will provide the WS implementation. Implementing another positioner is as easy as providing a module with a `position/1` function which will take the root node and returns the fully positioned root node.
"""
@callback position(Node.t()) :: Node.t()
end