Constructors

Properties

ensureView: (node: INode, padding?: Partial<IPadding>) => Promise<void> = ...

Type declaration

    • (node: INode, padding?: Partial<IPadding>): Promise<void>
    • Pan the content to make the provided node visible in the viewport.

      Parameters

      Returns Promise<void>

Use ensureVisible instead

g: Selection<SVGGElement, INode, HTMLElement, INode>
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: Selection<HTMLStyleElement, INode, HTMLElement, INode>
zoom: ZoomBehavior<SVGElement, INode>

Methods

  • Scale content with it pinned at the center of the viewport.

    Parameters

    • scale: number

    Returns Promise<void>