mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
config redirect
This commit is contained in:
+11
@@ -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;
|
||||
+14
@@ -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;
|
||||
+22
@@ -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;
|
||||
+93
@@ -0,0 +1,93 @@
|
||||
/**
|
||||
*
|
||||
* @param item1
|
||||
* @param item2
|
||||
* @param relationTitle
|
||||
*/
|
||||
export function addRelationObjs(item1: any, item2: any, relationTitle: any): void;
|
||||
export namespace lineType {
|
||||
const LINE: number;
|
||||
const DOTTED_LINE: number;
|
||||
}
|
||||
export namespace relationType {
|
||||
const AGGREGATION: number;
|
||||
const EXTENSION: number;
|
||||
const COMPOSITION: number;
|
||||
const DEPENDENCY: number;
|
||||
}
|
||||
export function parseDirective(statement: any, context: any, type: any): void;
|
||||
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 { parseDirective };
|
||||
export function getConfig(): import("../../config.type").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 "../../commonDb";
|
||||
import { setAccTitle } from "../../commonDb";
|
||||
import { getAccDescription } from "../../commonDb";
|
||||
import { setAccDescription } from "../../commonDb";
|
||||
import { setDiagramTitle } from "../../commonDb";
|
||||
import { getDiagramTitle } from "../../commonDb";
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const stateDetectorV2: DiagramDetector;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const stateDetector: DiagramDetector;
|
||||
+20
@@ -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): object;
|
||||
export function draw(text: any, id: any, _version: any, diag: any): void;
|
||||
declare namespace _default {
|
||||
export { setConf };
|
||||
export { getClasses };
|
||||
export { draw };
|
||||
}
|
||||
export default _default;
|
||||
+7
@@ -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;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export default getStyles;
|
||||
declare function getStyles(options: any): string;
|
||||
Reference in New Issue
Block a user