json_canvas/edge

Types

pub type Edge {
  Edge(
    id: EdgeId,
    from_node: NodeId,
    from_side: Option(Side),
    from_end: EndpointShape,
    to_node: NodeId,
    to_side: Option(Side),
    to_end: EndpointShape,
    color: Option(Color),
    label: Option(EdgeLabel),
  )
}

Constructors

  • Edge(
      id: EdgeId,
      from_node: NodeId,
      from_side: Option(Side),
      from_end: EndpointShape,
      to_node: NodeId,
      to_side: Option(Side),
      to_end: EndpointShape,
      color: Option(Color),
      label: Option(EdgeLabel),
    )
pub type EdgeId {
  EdgeId(String)
}

Constructors

  • EdgeId(String)
pub type EdgeLabel {
  EdgeLabel(String)
}

Constructors

  • EdgeLabel(String)

Functions

pub fn decode_edge(
  dyn: Dynamic,
) -> Result(Edge, List(DecodeError))
Search Document