Christoph Cullmann 2024-04-28 17:33:09 +02:00
parent 4b35583782
commit e77051ccc4
1987 changed files with 1147290 additions and 5648 deletions

View file

@ -0,0 +1,3 @@
import type { ExternalDiagramDefinition } from '../../../diagram-api/types.js';
declare const plugin: ExternalDiagramDefinition;
export default plugin;

View file

@ -0,0 +1 @@
export {};

View file

@ -0,0 +1,10 @@
export function setConf(cnf: any): void;
export function addVertices(vert: any, svgId: any, root: any, doc: any, diagObj: any, parentLookupDb: any, graph: any): Promise<any>;
export function addEdges(edges: object, diagObj: any, graph: any, svg: any): any;
export function getClasses(text: any, diagObj: any): Record<string, import('../../../diagram-api/types.js').DiagramStyleClassDef>;
export function draw(text: any, id: any, _version: any, diagObj: any): Promise<void>;
declare namespace _default {
export { getClasses };
export { draw };
}
export default _default;

View file

@ -0,0 +1,10 @@
import * as db from '../flowDb.js';
export declare const diagram: {
db: typeof db;
renderer: {
getClasses: (text: any, diagObj: any) => Record<string, import("../../../diagram-api/types.js").DiagramStyleClassDef>;
draw: (text: any, id: any, _version: any, diagObj: any) => Promise<void>;
};
parser: any;
styles: (options: import("./styles.js").FlowChartStyleOptions) => string;
};

View file

@ -0,0 +1,5 @@
export interface TreeData {
parentById: Record<string, string>;
childrenById: Record<string, string[]>;
}
export declare const findCommonAncestor: (id1: string, id2: string, treeData: TreeData) => string;

View file

@ -0,0 +1 @@
export {};

View file

@ -0,0 +1,19 @@
/** Returns the styles given options */
export interface FlowChartStyleOptions {
arrowheadColor: string;
border2: string;
clusterBkg: string;
clusterBorder: string;
edgeLabelBackground: string;
fontFamily: string;
lineColor: string;
mainBkg: string;
nodeBorder: string;
nodeTextColor: string;
tertiaryColor: string;
textColor: string;
titleColor: string;
[key: string]: string;
}
declare const getStyles: (options: FlowChartStyleOptions) => string;
export default getStyles;