All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.internals.d.ts Maven / Gradle / Ivy

Go to download

Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.

The newest version!
import { insertNode } from './rendering-util/rendering-elements/nodes.js';
import { interpolateToCurve } from './utils.js';
/**
 * Internal helpers for mermaid
 * @deprecated - This should not be used by external packages, as the definitions will change without notice.
 */
export declare const internalHelpers: {
    common: {
        getRows: (s?: string | undefined) => string[];
        sanitizeText: (text: string, config: import("./config.type.js").MermaidConfig) => string;
        sanitizeTextOrArray: (a: string | string[] | string[][], config: import("./config.type.js").MermaidConfig) => string | string[];
        hasBreaks: (text: string) => boolean;
        splitBreaks: (text: string) => string[];
        lineBreakRegex: RegExp;
        removeScript: (txt: string) => string;
        getUrl: (useAbsolute: boolean) => string;
        evaluate: (val?: string | boolean | undefined) => boolean;
        getMax: (...values: number[]) => number;
        getMin: (...values: number[]) => number;
    };
    getConfig: () => import("./config.type.js").MermaidConfig;
    insertCluster: (elem: any, node: import("./rendering-util/types.js").ClusterNode) => Promise;
    insertEdge: (elem: any, edge: any, clusterDb: any, diagramType: any, startNode: any, endNode: any, id: any) => {
        updatedPath: any;
        originalPath: any;
    };
    insertEdgeLabel: (elem: any, edge: any) => Promise;
    insertMarkers: (elem: any, markerArray: any, type: any, id: any) => void;
    insertNode: typeof insertNode;
    interpolateToCurve: typeof interpolateToCurve;
    labelHelper: (parent: import("./types.js").D3Selection, node: import("./rendering-util/types.js").Node, _classes?: string | undefined) => Promise<{
        shapeSvg: import("d3-selection").Selection;
        bbox: any;
        halfPadding: number;
        label: import("d3-selection").Selection;
    }>;
    log: Record;
    positionEdgeLabel: (edge: any, paths: any) => void;
};
export type InternalHelpers = typeof internalHelpers;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy