Components Interactions Examples Tutorials API FAQ
Options
Menu

Interface Pack

Type parameters

Hierarchy

  • Pack

Callable

  • __call(root: T): T[]

Index

Methods

children

  • children(): function
  • children(children: function): Pack<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 Pack<T>

links

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

nodes

  • nodes(root: T): T[]

padding

  • padding(): number
  • padding(padding: number): Pack<T>

radius

  • radius(): number | function
  • radius(radius: number): Pack<T>
  • radius(radius: function): Pack<T>

size

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

sort

  • sort(): function
  • sort(comparator: function): Pack<T>
  • Returns function

      • (a: T, b: T): number
      • Parameters

        • a: T
        • b: T

        Returns number

  • Parameters

    • comparator: function
        • (a: T, b: T): number
        • Parameters

          • a: T
          • b: T

          Returns number

    Returns Pack<T>

value

  • value(): function
  • value(value: function): Pack<T>

Generated using TypeDoc