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), )
Functions
pub fn decode_edge(
dyn: Dynamic,
) -> Result(Edge, List(DecodeError))