This commit is contained in:
parent
4b35583782
commit
e77051ccc4
1987 changed files with 1147290 additions and 5648 deletions
31
themes/blowfish/assets/lib/mermaid/diagram-api/diagramAPI.d.ts
vendored
Normal file
31
themes/blowfish/assets/lib/mermaid/diagram-api/diagramAPI.d.ts
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
import type { DiagramDefinition, DiagramDetector } from './types.js';
|
||||
import * as _commonDb from '../diagrams/common/commonDb.js';
|
||||
export declare const log: Record<import("../logger.js").LogLevel, {
|
||||
(...data: any[]): void;
|
||||
(message?: any, ...optionalParams: any[]): void;
|
||||
}>;
|
||||
export declare const setLogLevel: (level?: string | number) => void;
|
||||
export declare const getConfig: () => import("../config.type.js").MermaidConfig;
|
||||
export declare const setConfig: (conf: import("../config.type.js").MermaidConfig) => import("../config.type.js").MermaidConfig;
|
||||
export declare const defaultConfig: import("../config.type.js").MermaidConfig;
|
||||
export declare const setSiteConfig: (conf: import("../config.type.js").MermaidConfig) => import("../config.type.js").MermaidConfig;
|
||||
export declare const sanitizeText: (text: string) => string;
|
||||
export declare const setupGraphViewbox: (graph: any, svgElem: any, padding: any, useMaxWidth: any) => void;
|
||||
export declare const getCommonDb: () => typeof _commonDb;
|
||||
export interface Detectors {
|
||||
[key: string]: DiagramDetector;
|
||||
}
|
||||
/**
|
||||
* Registers the given diagram with Mermaid.
|
||||
*
|
||||
* Can be used for third-party custom diagrams.
|
||||
*
|
||||
* @param id - A unique ID for the given diagram.
|
||||
* @param diagram - The diagram definition.
|
||||
* @param detector - Function that returns `true` if a given mermaid text is this diagram definition.
|
||||
*/
|
||||
export declare const registerDiagram: (id: string, diagram: DiagramDefinition, detector?: DiagramDetector) => void;
|
||||
export declare const getDiagram: (name: string) => DiagramDefinition;
|
||||
export declare class DiagramNotFoundError extends Error {
|
||||
constructor(name: string);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue