ts-graphviz
    Preparing search index...

    Interface CreateRootOptions<Container>

    Options for creating a Graphviz root

    interface CreateRootOptions<
        Container extends AnyGraphContainer = AnyGraphContainer,
    > {
        container?: Container;
        onCaughtError?: (error: Error, errorInfo: ErrorInfo) => void;
        onRecoverableError?: (error: Error, errorInfo: ErrorInfo) => void;
        onRenderComplete?: (models: DotObjectModel<DotObjectType>[]) => void;
        onUncaughtError?: (error: Error, errorInfo: ErrorInfo) => void;
        timeout?: number;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    container?: Container

    Container graph for rendering components. When provided, components will be rendered into this existing graph model.

    onCaughtError?: (error: Error, errorInfo: ErrorInfo) => void

    Called when an error is caught by an error boundary

    onRecoverableError?: (error: Error, errorInfo: ErrorInfo) => void

    Called when React automatically recovers from errors

    onRenderComplete?: (models: DotObjectModel<DotObjectType>[]) => void

    Called when rendering completes successfully

    onUncaughtError?: (error: Error, errorInfo: ErrorInfo) => void

    Called when an error is not caught by any error boundary

    timeout?: number

    Timeout for async rendering in milliseconds

    5000