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,11 @@
export function set(key: any, val: any): void;
export function get(k: any): any;
export function keys(): string[];
export function size(): number;
declare namespace _default {
export { get };
export { set };
export { keys };
export { size };
}
export default _default;

View file

@ -0,0 +1,14 @@
export function drawStartState(g: any): any;
export function drawDivider(g: any): any;
export function drawSimpleState(g: any, stateDef: any): any;
export function drawDescrState(g: any, stateDef: any): any;
export function addTitleAndBox(g: any, stateDef: any, altBkg: any): any;
export function drawText(elem: any, textData: any): any;
export function drawNote(text: any, g: any): any;
export function drawState(elem: any, stateDef: any): {
id: any;
label: any;
width: number;
height: number;
};
export function drawEdge(elem: any, path: any, relation: any): void;

View file

@ -0,0 +1,22 @@
/**
* Constants common to all State Diagram code
*/
export declare const DEFAULT_DIAGRAM_DIRECTION = "LR";
export declare const DEFAULT_NESTED_DOC_DIR = "TB";
export declare const STMT_STATE = "state";
export declare const STMT_RELATION = "relation";
export declare const STMT_CLASSDEF = "classDef";
export declare const STMT_APPLYCLASS = "applyClass";
export declare const DEFAULT_STATE_TYPE = "default";
export declare const DIVIDER_TYPE = "divider";
declare const _default: {
DEFAULT_DIAGRAM_DIRECTION: string;
DEFAULT_NESTED_DOC_DIR: string;
STMT_STATE: string;
STMT_RELATION: string;
STMT_CLASSDEF: string;
STMT_APPLYCLASS: string;
DEFAULT_STATE_TYPE: string;
DIVIDER_TYPE: string;
};
export default _default;

View file

@ -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';

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,3 @@
import type { ExternalDiagramDefinition } from '../../diagram-api/types.js';
declare const plugin: ExternalDiagramDefinition;
export default plugin;

View file

@ -0,0 +1,2 @@
import type { DiagramDefinition } from '../../diagram-api/types.js';
export declare const diagram: DiagramDefinition;

View file

@ -0,0 +1,2 @@
import type { DiagramDefinition } from '../../diagram-api/types.js';
export declare const diagram: DiagramDefinition;

View file

@ -0,0 +1,20 @@
/**
* Create a standard string for the dom ID of an item.
* If a type is given, insert that before the counter, preceded by the type spacer
*
* @param itemId
* @param counter
* @param {string | null} type
* @param typeSpacer
* @returns {string}
*/
export function stateDomId(itemId?: string, counter?: number, type?: string | null, typeSpacer?: string): string;
export function setConf(cnf: any): void;
export function getClasses(text: string, diagramObj: any): Record<string, import('../../diagram-api/types.js').DiagramStyleClassDef>;
export function draw(text: any, id: any, _version: any, diag: any): Promise<void>;
declare namespace _default {
export { setConf };
export { getClasses };
export { draw };
}
export default _default;

View file

@ -0,0 +1,7 @@
export function setConf(): void;
export function draw(text: any, id: any, _version: any, diagObj: any): void;
declare namespace _default {
export { setConf };
export { draw };
}
export default _default;

View file

@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(options: any): string;