UNPKG

mermaid

Version:

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

25 lines (24 loc) 1.1 kB
import type { Node } from '../../types.js'; export declare const solidStateFill: (color: string) => { fill: string; hachureAngle: number; hachureGap: number; fillWeight: number; roughness: number; stroke: string; seed: number | undefined; }; export declare const compileStyles: (node: Node) => { stylesMap: Map<string, string>; stylesArray: [string, string][]; }; export declare const styles2Map: (styles: string[]) => Map<string, string>; export declare const isLabelStyle: (key: string) => key is "font-family" | "font-size" | "font-weight" | "font-style" | "text-align" | "white-space" | "color" | "text-decoration" | "text-transform" | "line-height" | "letter-spacing" | "word-spacing" | "text-shadow" | "text-overflow" | "word-wrap" | "word-break" | "overflow-wrap" | "hyphens"; export declare const styles2String: (node: Node) => { labelStyles: string; nodeStyles: string; stylesArray: [string, string][]; borderStyles: string[]; backgroundStyles: string[]; }; export declare const userNodeOverrides: (node: Node, options: any) => any;