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,2 @@
export default getStyles;
declare function getStyles(options: any): string;

View file

@ -0,0 +1,46 @@
export function drawRect(elem: any, rectData: any): any;
export function drawFace(element: any, faceData: any): any;
export function drawCircle(element: any, circleData: any): any;
export function drawText(elem: any, textData: any): any;
export function drawLabel(elem: any, txtObject: any): void;
export function drawSection(elem: any, section: any, conf: any): void;
export function drawTask(elem: any, task: any, conf: any): void;
export function drawBackgroundRect(elem: any, bounds: any): void;
export function getTextObj(): {
x: number;
y: number;
fill: undefined;
'text-anchor': string;
width: number;
height: number;
textMargin: number;
rx: number;
ry: number;
};
export function getNoteRect(): {
x: number;
y: number;
width: number;
anchor: string;
height: number;
rx: number;
ry: number;
};
export function drawNode(elem: any, node: any, fullSection: any, conf: any): any;
export function getVirtualNodeHeight(elem: any, node: any, conf: any): any;
declare namespace _default {
export { drawRect };
export { drawCircle };
export { drawSection };
export { drawText };
export { drawLabel };
export { drawTask };
export { drawBackgroundRect };
export { getTextObj };
export { getNoteRect };
export { initGraphics };
export { drawNode };
export { getVirtualNodeHeight };
}
export default _default;
declare function initGraphics(graphics: any): void;

View file

@ -0,0 +1,10 @@
import * as db from './timelineDb.js';
export declare const diagram: {
db: typeof db;
renderer: {
setConf: () => void;
draw: (text: string, id: string, version: string, diagObj: import("../../Diagram.js").Diagram) => void;
};
parser: any;
styles: (options: any) => string;
};

View file

@ -0,0 +1,20 @@
export function getCommonDb(): typeof commonDb;
export function clear(): void;
export function addSection(txt: any): void;
export function getSections(): any[];
export function getTasks(): any[];
export function addTask(period: any, length: any, event: any): void;
export function addEvent(event: any): void;
export function addTaskOrg(descr: any): void;
declare namespace _default {
export { clear };
export { getCommonDb };
export { addSection };
export { getSections };
export { getTasks };
export { addTask };
export { addTaskOrg };
export { addEvent };
}
export default _default;
import * as commonDb from '../common/commonDb.js';

View file

@ -0,0 +1,19 @@
import type { Selection } from 'd3';
import type { Diagram } from '../../Diagram.js';
import type { MermaidConfig } from '../../config.type.js';
interface TimelineTask {
id: number;
section: string;
type: string;
task: string;
score: number;
events: string[];
}
export declare const draw: (text: string, id: string, version: string, diagObj: Diagram) => void;
export declare const drawTasks: (diagram: Selection<SVGElement, unknown, null, undefined>, tasks: TimelineTask[], sectionColor: number, masterX: number, masterY: number, maxTaskHeight: number, conf: MermaidConfig, maxEventCount: number, maxEventLineLength: number, maxSectionHeight: number, isWithoutSections: boolean) => void;
export declare const drawEvents: (diagram: Selection<SVGElement, unknown, null, undefined>, events: string[], sectionColor: number, masterX: number, masterY: number, conf: MermaidConfig) => number;
declare const _default: {
setConf: () => void;
draw: (text: string, id: string, version: string, diagObj: Diagram) => void;
};
export default _default;