Options
All
  • Public
  • Public/Protected
  • All
Menu

Module gui

Index

Type aliases

RoundMode

RoundMode: "up" | "down" | "default"

Functions

getRoundedPercent

  • getRoundedPercent(percent: number, divisor: number, round: RoundMode): number

Const ntw

truncateText

  • truncateText(config: { addEllipsis: boolean; text: string; truncateAfter: number }): string
  • Parameters

    • config: { addEllipsis: boolean; text: string; truncateAfter: number }
      • addEllipsis: boolean
      • text: string
      • truncateAfter: number

    Returns string

wrapText

  • wrapText(config: { text: string; wrapAt: number }): string[]
  • Parameters

    • config: { text: string; wrapAt: number }
      • text: string
      • wrapAt: number

    Returns string[]

Generated using TypeDoc