UNPKG

1.07 kBTypeScriptView Raw
1import type { Selection } from 'd3';
2import type { Diagram } from '../../Diagram.js';
3import type { MermaidConfig } from '../../config.type.js';
4interface TimelineTask {
5 id: number;
6 section: string;
7 type: string;
8 task: string;
9 score: number;
10 events: string[];
11}
12export declare const draw: (text: string, id: string, version: string, diagObj: Diagram) => void;
13export 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;
14export declare const drawEvents: (diagram: Selection<SVGElement, unknown, null, undefined>, events: string[], sectionColor: number, masterX: number, masterY: number, conf: MermaidConfig) => number;
15declare const _default: {
16 setConf: () => void;
17 draw: (text: string, id: string, version: string, diagObj: Diagram) => void;
18};
19export default _default;