Dynamic SVG marker definitions for LiveFlow edges.
Generates unique <marker> elements based on edge marker configurations,
supporting custom colors, sizes, and shapes (arrow, circle, diamond).
Summary
Functions
Collects all unique marker configurations from a list of edges.
Returns a list of {marker_id, marker_config} tuples.
Renders all collected marker definitions inside an SVG <defs> block.
Generates a deterministic marker ID from a marker configuration.
Identical configs produce the same ID so they share one SVG <marker> def.
Returns the SVG url(#id) reference for a marker, or nil.
Functions
Collects all unique marker configurations from a list of edges.
Returns a list of {marker_id, marker_config} tuples.
Renders all collected marker definitions inside an SVG <defs> block.
Attributes
markers(:list) (required)
Generates a deterministic marker ID from a marker configuration.
Identical configs produce the same ID so they share one SVG <marker> def.
Returns the SVG url(#id) reference for a marker, or nil.