AshDiagram.Flowchart.Node (AshDiagram v0.2.1)

View Source

Represents a node in a flowchart with various shapes and labels.

Summary

Functions

Composes the Mermaid syntax for a node.

Types

shape()

@type shape() ::
  :lean_left
  | :lean_right
  | :subroutine
  | :cylindrical
  | :database
  | :trapezoid_alt
  | :trapezoid
  | :parallelogram_alt
  | :parallelogram
  | :hexagon
  | :stadium
  | :rounded
  | :rhombus
  | :rectangle
  | :circle
  | :flag

t()

@type t() :: %AshDiagram.Flowchart.Node{
  id: iodata(),
  label: iodata() | nil,
  shape: shape() | nil
}

Functions

compose(node)

@spec compose(t()) :: iodata()

Composes the Mermaid syntax for a node.