Skip to content

Curve style

CurveStyle dataclass

Curve style base class.

Source code in hakowan/grammar/channel/curvestyle.py
@dataclass
class CurveStyle:
    """Curve style base class."""

    pass

Bend dataclass

Bases: CurveStyle

Curve bending style.

Attributes:

Name Type Description
direction AttributeLike

The attribute used to encode the bending direction.

bend_type Literal['n', 'r', 's']

The type of bending. "n" = normal bend, "r" = ribbon bend, "s" = smooth bend. The default value is "n".

Source code in hakowan/grammar/channel/curvestyle.py
@dataclass
class Bend(CurveStyle):
    """Curve bending style.

    Attributes:
        direction (AttributeLike): The attribute used to encode the bending direction.
        bend_type (Literal["n", "r", "s"]): The type of bending.
            ``"n"`` = normal bend, ``"r"`` = ribbon bend, ``"s"`` = smooth bend.
            The default value is ``"n"``.
    """

    direction: AttributeLike
    bend_type: Literal["n", "r", "s"] = "n"