diff options
author | Christoph Cullmann <cullmann@kde.org> | 2024-04-28 17:33:09 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2024-04-28 17:33:09 +0200 |
commit | e77051ccc4b47951bfa4fde2be436b1bb2fb113b (patch) | |
tree | f0b75ee3521da9c8cd39dac4359212348f70e4e8 /themes/blowfish/assets/lib/mermaid/diagrams/state/stateDb.d.ts | |
parent | 4b355837824ac2422d371acef790f0f4249255c7 (diff) |
use https://github.com/nunocoracao/blowfish.git
Diffstat (limited to 'themes/blowfish/assets/lib/mermaid/diagrams/state/stateDb.d.ts')
-rw-r--r-- | themes/blowfish/assets/lib/mermaid/diagrams/state/stateDb.d.ts | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/themes/blowfish/assets/lib/mermaid/diagrams/state/stateDb.d.ts b/themes/blowfish/assets/lib/mermaid/diagrams/state/stateDb.d.ts new file mode 100644 index 0000000..47ce24c --- /dev/null +++ b/themes/blowfish/assets/lib/mermaid/diagrams/state/stateDb.d.ts @@ -0,0 +1,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'; |