EdgeCurve Enum

How the line of an edge goes through the points the layout gives it, as the curves of d3 that Mermaid uses.

public enum EdgeCurve

Fields

NameValueDescription
Basis0A B-spline: a smooth curve that does not go through the inner points (Mermaid basis, the default).
Linear1Straight segments (Mermaid linear).
Step2Horizontal and vertical segments, the vertical step at the middle of each segment (Mermaid step).
StepBefore3Horizontal and vertical segments, the vertical step at the start of each segment (Mermaid stepBefore).
StepAfter4Horizontal and vertical segments, the vertical step at the end of each segment (Mermaid stepAfter).
Cardinal5A cardinal spline through every point (Mermaid cardinal).
CatmullRom6A centripetal Catmull–Rom spline through every point (Mermaid catmullRom).
MonotoneX7A curve through every point that keeps the monotonicity in x (Mermaid monotoneX).
MonotoneY8A curve through every point that keeps the monotonicity in y (Mermaid monotoneY).
Natural9A natural cubic spline through every point (Mermaid natural).
BumpX10Cubic curves between the points, with horizontal tangents (Mermaid bumpX).
BumpY11Cubic curves between the points, with vertical tangents (Mermaid bumpY).