effect-tree
    Preparing search index...

    Function replaceElbow

    Given a direction and a glyph, replaces the elbow at this direction in a given elbow set with the given glyph and returns the new elbow set.

    At the key named you will find a version that does the same but accepts a name of an elbow set instead of an elbow set.

    Elbow set to change.

    A CornerDirection of the glyph to be changed.

    String of new glyph.

    Updated elbow set.

    • Parameters

      • set: ElbowSet
      • direction: "topLeft" | "topRight" | "bottomRight" | "bottomLeft"
      • glyph: string

      Returns ElbowSet

    • Parameters

      • direction: "topLeft" | "topRight" | "bottomRight" | "bottomLeft"
      • glyph: string

      Returns EndoOf<ElbowSet>

    Index

    Properties

    Properties

    named: (
        direction: "topLeft" | "topRight" | "bottomRight" | "bottomLeft",
        glyph: string,
    ) => (
        name:
            | "ascii"
            | "diagonal"
            | "double"
            | "halfSolid"
            | "halfSolidNear"
            | "halfSolidFar"
            | "hDouble"
            | "hThick"
            | "round"
            | "solid"
            | "space"
            | "thick"
            | "thin"
            | "vDouble"
            | "vThick",
    ) => ElbowSet