ts-graphviz
    Preparing search index...

    Interface CommonOptions

    This interface represents the CommonOptions for setting output format.

    interface CommonOptions {
        attributes?: {
            edge?: EdgeAttributesObject;
            graph?: GraphAttributesObject & SubgraphAttributesObject;
            node?: NodeAttributesObject;
        };
        dotCommand?: string;
        format?: Format.values;
        library?: string[];
        scale?: number;
        suppressWarnings?: boolean;
        y?: boolean;
    }
    Index

    Properties

    attributes?: {
        edge?: EdgeAttributesObject;
        graph?: GraphAttributesObject & SubgraphAttributesObject;
        node?: NodeAttributesObject;
    }

    Type declaration

    dotCommand?: string

    Path of graphviz dot command.

    This should be a trusted, hardcoded path in your application configuration. Do not derive this value from end-user input.

    'dot'
    
    format?: Format.values

    Set output format.

    'svg'
    
    library?: string[]

    Use external library.

    These should be trusted library names defined in your application code. Do not derive these values from end-user input.

    scale?: number

    Scale input

    suppressWarnings?: boolean

    If true, set level of message suppression (=1).

    true
    
    y?: boolean

    Invert y coordinate in output.