summaryrefslogtreecommitdiff
path: root/themes/blowfish/assets/lib/mermaid/diagrams/state/stateDb.d.ts
blob: 47ce24c80ffe6d65539a62dfd964e27432ee9607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/**
 *
 * @param item1
 * @param item2
 * @param relationTitle
 */
export function addRelationObjs(item1: any, item2: any, relationTitle: any): void;
export namespace lineType {
    let LINE: number;
    let DOTTED_LINE: number;
}
export namespace relationType {
    let AGGREGATION: number;
    let EXTENSION: number;
    let COMPOSITION: number;
    let DEPENDENCY: number;
}
export function addState(id: null | string, type?: null | string, doc?: null | string, descr?: null | string | string[], note?: null | string, classes?: null | string | string[], styles?: null | string | string[], textStyles?: null | string | string[]): void;
export function clear(saveCommon: any): void;
export function getState(id: any): any;
export function getStates(): {};
export function logDocuments(): void;
export function getRelations(): never[];
export function addRelation(item1: string | object, item2: string | object, title: string): void;
export function addDescription(id: any, descr: any): void;
export function cleanupLabel(label: any): any;
export function addStyleClass(id: string, styleAttributes?: string | null): void;
export function getClasses(): {} | any | {};
export function setCssClass(itemIds: string | string[], cssClassName: string): void;
export function setStyle(itemId: any, styleText: any): void;
export function setTextStyle(itemId: any, cssClassName: any): void;
declare namespace _default {
    export function getConfig(): import("../../config.type.js").StateDiagramConfig | undefined;
    export { addState };
    export { clear };
    export { getState };
    export { getStates };
    export { getRelations };
    export { getClasses };
    export { getDirection };
    export { addRelation };
    export { getDividerId };
    export { setDirection };
    export { cleanupLabel };
    export { lineType };
    export { relationType };
    export { logDocuments };
    export { getRootDoc };
    export { setRootDoc };
    export { getRootDocV2 };
    export { extract };
    export { trimColon };
    export { getAccTitle };
    export { setAccTitle };
    export { getAccDescription };
    export { setAccDescription };
    export { addStyleClass };
    export { setCssClass };
    export { addDescription };
    export { setDiagramTitle };
    export { getDiagramTitle };
}
export default _default;
declare function getDirection(): string;
declare function getDividerId(): string;
declare function setDirection(dir: any): void;
declare function getRootDoc(): any[];
declare function setRootDoc(o: any): void;
declare function getRootDocV2(): {
    id: string;
    doc: any[];
};
/**
 * Convert all of the statements (stmts) that were parsed into states and relationships.
 * This is done because a state diagram may have nested sections,
 * where each section is a 'document' and has its own set of statements.
 * Ex: the section within a fork has its own statements, and incoming and outgoing statements
 * refer to the fork as a whole (document).
 * See the parser grammar:  the definition of a document is a document then a 'line', where a line can be a statement.
 * This will push the statement into the the list of statements for the current document.
 *
 * @param _doc
 */
declare function extract(_doc: any): void;
declare function trimColon(str: any): any;
import { getAccTitle } from '../common/commonDb.js';
import { setAccTitle } from '../common/commonDb.js';
import { getAccDescription } from '../common/commonDb.js';
import { setAccDescription } from '../common/commonDb.js';
import { setDiagramTitle } from '../common/commonDb.js';
import { getDiagramTitle } from '../common/commonDb.js';