Components Interactions Examples Tutorials API FAQ
Options
Menu

Interface Treemap

Type parameters

Hierarchy

  • Treemap

Callable

  • __call(root: T, index?: number): T[]

Index

Methods

children

  • children(): function
  • children(children: function): Treemap<T>
  • Returns function

      • (node: T, depth: number): T[]
      • Parameters

        • node: T
        • depth: number

        Returns T[]

  • Parameters

    • children: function
        • (node: T, depth: number): T[]
        • Parameters

          • node: T
          • depth: number

          Returns T[]

    Returns Treemap<T>

links

  • links(nodes: T[]): Link<T>[]

mode

  • mode(): string
  • mode(mode: "squarify"): Treemap<T>
  • mode(mode: "slice"): Treemap<T>
  • mode(mode: "dice"): Treemap<T>
  • mode(mode: "slice-dice"): Treemap<T>
  • mode(mode: string): Treemap<T>

nodes

  • nodes(root: T, index?: number): T[]

padding

ratio

  • ratio(): number
  • ratio(ratio: number): Treemap<T>

round

  • round(): boolean
  • round(round: boolean): Treemap<T>

size

  • size(): [number, number]
  • size(size: [number, number]): Treemap<T>

sort

  • sort(): function
  • sort(comparator: function): Treemap<T>

sticky

  • sticky(): boolean
  • sticky(sticky: boolean): boolean

value

  • value(): function
  • value(value: function): Treemap<T>
  • Returns function

      • (node: T, index: number): number
      • Parameters

        • node: T
        • index: number

        Returns number

  • Parameters

    • value: function
        • (node: T, index: number): number
        • Parameters

          • node: T
          • index: number

          Returns number

    Returns Treemap<T>

Generated using TypeDoc