LiveFlow.Components.Edge (LiveFlow v0.2.3)

Copy Markdown View Source

Edge function component for LiveFlow.

Renders edges as SVG paths connecting nodes. Supports multiple path types (bezier, straight, step, smoothstep).

Summary

Functions

Renders the connection line during edge creation.

Renders an edge between two nodes.

Functions

connection_line(assigns)

Renders the connection line during edge creation.

Attributes

  • from_x (:float) (required)
  • from_y (:float) (required)
  • to_x (:float) (required)
  • to_y (:float) (required)
  • from_position (:atom) - Defaults to :right.
  • type (:atom) - Defaults to :bezier.

edge(assigns)

Renders an edge between two nodes.

Attributes

Examples

<.edge edge={edge} source_node={source} target_node={target} />

Attributes