Interface PackLayout

Index

Properties

Methods

Properties

public children: { (): (d: any, i?: number) => D3.Layout.GraphNode[]; (children: (d: any, i?: number) => D3.Layout.GraphNode[]): D3.Layout.PackLayout; }

(): (d: any, i?: number) => D3.Layout.GraphNode[]

Returns

(d: any, i?: number) => D3.Layout.GraphNode[]

(): PackLayout

Returns

PackLayout

public padding: { (): number; (padding: number): D3.Layout.PackLayout; }

(): number

Returns

number

(): PackLayout

Returns

PackLayout

public size: { (): number[]; (size: number[]): D3.Layout.PackLayout; }

(): Array<number>

Returns

Array<number>

(): PackLayout

Returns

PackLayout

public sort: { (): (a: D3.Layout.GraphNode, b: D3.Layout.GraphNode) => number; (comparator: (a: D3.Layout.GraphNode, b: D3.Layout.GraphNode) => number): D3.Layout.PackLayout; }

(): (a: D3.Layout.GraphNode, b: D3.Layout.GraphNode) => number

Returns

(a: D3.Layout.GraphNode, b: D3.Layout.GraphNode) => number

(): PackLayout

Returns

PackLayout

public value: { (): (node: D3.Layout.GraphNode) => number; (value: (node: D3.Layout.GraphNode) => number): D3.Layout.PackLayout; }

(): (node: D3.Layout.GraphNode) => number

Returns

(node: D3.Layout.GraphNode) => number

(): PackLayout

Returns

PackLayout

Methods

public links(nodes: GraphNode[]): GraphLink[]

Parameters

Returns

GraphLink[]

public nodes(root: GraphNode): GraphNode[]

Parameters

Returns

GraphNode[]