Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TreeRoot

Implements

Index

Constructors

constructor

  • new TreeRoot(key: string, grow: number, shrink: number, basis: Length, optional: boolean, width: null | Length, left: null | Length, right: null | Length, hidden: boolean): TreeRoot
  • Parameters

    • key: string
    • grow: number
    • shrink: number
    • basis: Length
    • optional: boolean
    • width: null | Length
    • left: null | Length
    • right: null | Length
    • hidden: boolean

    Returns TreeRoot

Properties

Readonly basis

basis: Length

Readonly grow

grow: number

Readonly hidden

hidden: boolean

Readonly key

key: string

Readonly left

left: null | Length

Readonly optional

optional: boolean

Readonly right

right: null | Length

Readonly shrink

shrink: number

Readonly width

width: null | Length

Methods

asHidden

  • Parameters

    • hidden: boolean

    Returns TreeRoot

asOptional

  • asOptional(optional: boolean): TreeRoot
  • Parameters

    • optional: boolean

    Returns TreeRoot

Protected copy

  • copy(key: string, grow: number, shrink: number, basis: Length, optional: boolean, width: null | Length, left: null | Length, right: null | Length, hidden: boolean): TreeRoot
  • Parameters

    • key: string
    • grow: number
    • shrink: number
    • basis: Length
    • optional: boolean
    • width: null | Length
    • left: null | Length
    • right: null | Length
    • hidden: boolean

    Returns TreeRoot

debug

  • debug(output: Output<unknown>): void
  • Parameters

    Returns void

equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

equivalentTo

  • equivalentTo(that: unknown, epsilon?: number): boolean
  • Parameters

    • that: unknown
    • Optional epsilon: number

    Returns boolean

resized

  • Parameters

    Returns TreeRoot

toString

  • toString(): string
  • Returns string

withFlex

  • Parameters

    • grow: number
    • shrink: number
    • Optional basis: AnyLength

    Returns TreeRoot

Static create

  • create(key: string, grow?: number, shrink?: number, basis?: AnyLength, optional?: boolean): TreeRoot
  • Parameters

    • key: string
    • Optional grow: number
    • Optional shrink: number
    • Optional basis: AnyLength
    • Optional optional: boolean

    Returns TreeRoot

Static fromAny

  • Parameters

    Returns TreeRoot

Static fromInit

  • Parameters

    Returns TreeRoot

Generated using TypeDoc