Skip to content

YggdrasilLineData API

Data object describing how a connection line should be drawn.


Properties

Type Name Default
LineType line_type STRAIGHT
float curve_height 48.0
int segments 16
bool reversed false

Enumerations

enum LineType:

  • LineType STRAIGHT = 0
    • Draws the line as a straight segment between points.
  • LineType BEZIER = 1
    • Draws the line as a quadratic Bézier curve.
  • LineType ARC = 2
    • Draws the line as an arc.

Property Descriptions

LineType line_type = STRAIGHT

Determines how the connection line is drawn.

float curve_height = 48.0

Height of the curve used for curved line types.

int segments = 16

Number of segments used to sample curved line types.

bool reversed = false

Reverses the curve or arc direction.