effect-tree - v1.0.36
    Preparing search index...

    Function getGlyph

    Get a glyph by role from a tree theme.

    At the key flipped you will find a version that takes the glyph role as first and only argument of its first argument list, and the theme in the second argument list.

    Glyph role to get.

    Theme to query.

    import {Draw} from 'effect-tree'

    const glyph = Draw.getGlyph('elbow', Draw.getTheme('thin'))

    expect(glyph).toBe('└')
    • Parameters

      • role:
            | "space"
            | "elbow"
            | "hLine"
            | "indent"
            | "rightTee"
            | "tee"
            | "vLine"
            | "rootBullet"
            | "branchBullet"
            | "leafBullet"
      • theme: Draw.Theme

      Returns string

    • Parameters

      Returns (
          role:
              | "space"
              | "elbow"
              | "hLine"
              | "indent"
              | "rightTee"
              | "tee"
              | "vLine"
              | "rootBullet"
              | "branchBullet"
              | "leafBullet",
      ) => string

    Index

    Properties

    Properties

    flipped: (
        role:
            | "space"
            | "elbow"
            | "hLine"
            | "indent"
            | "rightTee"
            | "tee"
            | "vLine"
            | "rootBullet"
            | "branchBullet"
            | "leafBullet",
    ) => (theme: Draw.Theme) => string