markmap
    Preparing search index...

    Class Markmap

    Index

    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

    • Fit the content to the viewport.

      Parameters

      • maxScale: number = ...

      Returns Promise<void>

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

      Parameters

      • scale: number

      Returns Promise<void>

    • Type Parameters

      • T extends BaseType
      • U
      • P extends BaseType
      • Q

      Parameters

      • sel: Selection<T, U, P, Q>

      Returns Transition<T, U, P, Q>