Constructors
Properties
ensureView
ensureView: (node: INode, padding?: Partial<IPadding>) => Promise<void> = ... Type declaration
- (node: INode, padding?: Partial<IPadding>): Promise<void>
Returns Promise<void>
g
g: Selection<SVGGElement, INode, HTMLElement, INode> options
options: { autoFit: boolean; color: (node: INode) => string; duration: number; embedGlobalCSS: boolean; fitRatio: number; id?: string; initialExpandLevel: number; lineWidth: (node: INode) => number; maxInitialScale: number; maxWidth: number; nodeMinHeight: number; paddingX: number; pan: boolean; scrollForPan: boolean; spacingHorizontal: number; spacingVertical: number; style?: (id: string) => string; toggleRecursively: boolean; zoom: boolean;} = ... styleNode
styleNode: Selection<HTMLStyleElement, INode, HTMLElement, INode> zoom
zoom: ZoomBehavior<SVGElement, INode> Methods
centerNode
- centerNode(node: INode, padding?: Partial<IPadding>): Promise<void>
Returns Promise<void>
destroy
- destroy(): void
Returns void
ensureVisible
- ensureVisible(node: INode, padding?: Partial<IPadding>): Promise<void>
Returns Promise<void>
findElement
- findElement(node: INode): undefined | { data: INode; g: SVGGElement }
Returns undefined | { data: INode; g: SVGGElement }
fit
- fit(maxScale?: number): Promise<void>
Returns Promise<void>
getStyleContent
- getStyleContent(): string
Returns string
handleClick
- handleClick(e: MouseEvent, d: INode): void
Returns void
handlePan
- handlePan(e: WheelEvent): void
Returns void
handleZoom
- handleZoom(e: any): void
Returns void
renderData
- renderData(originData?: INode): Promise<void>
Parameters
Optional
originData: INode
Returns Promise<void>
rescale
- rescale(scale: number): Promise<void>
Returns Promise<void>
setHighlight
- setHighlight(node?: null | INode): Promise<void>
Parameters
Optional
node: null | INode
Returns Promise<void>
toggleNode
- toggleNode(data: INode, recursive?: boolean): Promise<void>
Parameters
- data: INode
- recursive: boolean = false
Returns Promise<void>
transition
- transition<T extends BaseType, U, P extends BaseType, Q>(
sel: Selection<T, U, P, Q>,
): Transition<T, U, P, Q> Type Parameters
- T extends BaseType
- U
- P extends BaseType
- Q
Parameters
- sel: Selection<T, U, P, Q>
Returns Transition<T, U, P, Q>
updateStyle
- updateStyle(): void
Returns void
Pan the content to make the provided node visible in the viewport.