config redirect

This commit is contained in:
Nuno Coração
2023-01-29 22:30:24 +00:00
parent 17557c7d73
commit 5fb4bd8083
9905 changed files with 1258996 additions and 36355 deletions
+116
View File
@@ -0,0 +1,116 @@
export function getC4Type(): any;
export function setC4Type(c4TypeParam: any): void;
export function parseDirective(statement: any, context: any, type: any): void;
export function addRel(type: any, from: any, to: any, label: any, techn: any, descr: any, sprite: any, tags: any, link: any): void;
export function addPersonOrSystem(typeC4Shape: any, alias: any, label: any, descr: any, sprite: any, tags: any, link: any): void;
export function addContainer(typeC4Shape: any, alias: any, label: any, techn: any, descr: any, sprite: any, tags: any, link: any): void;
export function addComponent(typeC4Shape: any, alias: any, label: any, techn: any, descr: any, sprite: any, tags: any, link: any): void;
export function addPersonOrSystemBoundary(alias: any, label: any, type: any, tags: any, link: any): void;
export function addContainerBoundary(alias: any, label: any, type: any, tags: any, link: any): void;
export function addDeploymentNode(nodeType: any, alias: any, label: any, type: any, descr: any, sprite: any, tags: any, link: any): void;
export function popBoundaryParseStack(): void;
export function updateElStyle(typeC4Shape: any, elementName: any, bgColor: any, fontColor: any, borderColor: any, shadowing: any, shape: any, sprite: any, techn: any, legendText: any, legendSprite: any): void;
export function updateRelStyle(typeC4Shape: any, from: any, to: any, textColor: any, lineColor: any, offsetX: any, offsetY: any): void;
export function updateLayoutConfig(typeC4Shape: any, c4ShapeInRowParam: any, c4BoundaryInRowParam: any): void;
export function getC4ShapeInRow(): number;
export function getC4BoundaryInRow(): number;
export function getCurrentBoundaryParse(): string;
export function getParentBoundaryParse(): string;
export function getC4ShapeArray(parentBoundary: any): any[];
export function getC4Shape(alias: any): any;
export function getC4ShapeKeys(parentBoundary: any): string[];
export function getBoundarys(parentBoundary: any): {
alias: string;
label: {
text: string;
};
type: {
text: string;
};
tags: null;
link: null;
parentBoundary: string;
}[];
export function getRels(): any[];
export function getTitle(): string;
export function setWrap(wrapSetting: any): void;
export function autoWrap(): boolean;
export function clear(): void;
export namespace LINETYPE {
const SOLID: number;
const DOTTED: number;
const NOTE: number;
const SOLID_CROSS: number;
const DOTTED_CROSS: number;
const SOLID_OPEN: number;
const DOTTED_OPEN: number;
const LOOP_START: number;
const LOOP_END: number;
const ALT_START: number;
const ALT_ELSE: number;
const ALT_END: number;
const OPT_START: number;
const OPT_END: number;
const ACTIVE_START: number;
const ACTIVE_END: number;
const PAR_START: number;
const PAR_AND: number;
const PAR_END: number;
const RECT_START: number;
const RECT_END: number;
const SOLID_POINT: number;
const DOTTED_POINT: number;
}
export namespace ARROWTYPE {
const FILLED: number;
const OPEN: number;
}
export namespace PLACEMENT {
const LEFTOF: number;
const RIGHTOF: number;
const OVER: number;
}
export function setTitle(txt: any): void;
declare namespace _default {
export { addPersonOrSystem };
export { addPersonOrSystemBoundary };
export { addContainer };
export { addContainerBoundary };
export { addComponent };
export { addDeploymentNode };
export { popBoundaryParseStack };
export { addRel };
export { updateElStyle };
export { updateRelStyle };
export { updateLayoutConfig };
export { autoWrap };
export { setWrap };
export { getC4ShapeArray };
export { getC4Shape };
export { getC4ShapeKeys };
export { getBoundarys };
export { getCurrentBoundaryParse };
export { getParentBoundaryParse };
export { getRels };
export { getTitle };
export { getC4Type };
export { getC4ShapeInRow };
export { getC4BoundaryInRow };
export { setAccTitle };
export { getAccTitle };
export { getAccDescription };
export { setAccDescription };
export { parseDirective };
export function getConfig(): import("../../config.type").C4DiagramConfig | undefined;
export { clear };
export { LINETYPE };
export { ARROWTYPE };
export { PLACEMENT };
export { setTitle };
export { setC4Type };
}
export default _default;
import { setAccTitle } from "../../commonDb";
import { getAccTitle } from "../../commonDb";
import { getAccDescription } from "../../commonDb";
import { setAccDescription } from "../../commonDb";
+2
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const c4Detector: DiagramDetector;
+12
View File
@@ -0,0 +1,12 @@
export function setConf(cnf: any): void;
export function drawBoundary(diagram: any, boundary: any, bounds: any): void;
export function drawC4ShapeArray(currentBounds: any, diagram: any, c4ShapeArray: any, c4ShapeKeys: any): void;
export function drawRels(diagram: any, rels: any, getC4ShapeObj: any, diagObj: any): void;
export function draw(_text: any, id: any, _version: any, diagObj: any): void;
declare namespace _default {
export { drawC4ShapeArray as drawPersonOrSystemArray };
export { drawBoundary };
export { setConf };
export { draw };
}
export default _default;
+2
View File
@@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(options: any): string;
+50
View File
@@ -0,0 +1,50 @@
export function drawRect(elem: any, rectData: any): any;
export function drawImage(elem: any, width: any, height: any, x: any, y: any, link: any): void;
export function drawRels(elem: any, rels: any, conf: any): void;
export function drawC4Shape(elem: any, c4Shape: any, conf: any): any;
export function insertDatabaseIcon(elem: any): void;
export function insertComputerIcon(elem: any): void;
export function insertClockIcon(elem: any): void;
export function insertArrowHead(elem: any): void;
export function insertArrowEnd(elem: any): void;
export function insertArrowFilledHead(elem: any): void;
export function insertDynamicNumber(elem: any): void;
export function insertArrowCrossHead(elem: any): void;
export function getNoteRect(): {
x: number;
y: number;
fill: string;
stroke: string;
width: number;
anchor: string;
height: number;
rx: number;
ry: number;
};
declare namespace _default {
export { drawRect };
export { drawBoundary };
export { drawC4Shape };
export { drawRels };
export { drawImage };
export { insertArrowHead };
export { insertArrowEnd };
export { insertArrowFilledHead };
export { insertDynamicNumber };
export { insertArrowCrossHead };
export { insertDatabaseIcon };
export { insertComputerIcon };
export { insertClockIcon };
export { getNoteRect };
export { sanitizeUrl };
}
export default _default;
/**
* Draws an boundary in the diagram
*
* @param {any} elem - The diagram we'll draw to.
* @param {any} boundary - The boundary to draw.
* @param {any} conf - DrawText implementation discriminator object
*/
declare function drawBoundary(elem: any, boundary: any, conf: any): void;
import { sanitizeUrl } from "@braintree/sanitize-url";
+79
View File
@@ -0,0 +1,79 @@
export function parseDirective(statement: any, context: any, type: any): void;
export function addClass(id: any): void;
export function lookUpDomId(id: any): any;
export function clear(): void;
export function getClass(id: any): any;
export function getClasses(): {};
export function getRelations(): any[];
export function getNotes(): any[];
export function addRelation(relation: any): void;
export function addAnnotation(className: any, annotation: any): void;
export function addMember(className: any, member: any): void;
export function addMembers(className: any, members: any): void;
export function addNote(text: any, className: any): void;
export function cleanupLabel(label: any): string;
export function setCssClass(ids: any, className: any): void;
export function getTooltip(id: any): any;
export function setLink(ids: any, linkStr: any, target: any): void;
export function setClickEvent(ids: any, functionName: any, functionArgs: any): void;
export function bindFunctions(element: 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;
const LOLLIPOP: number;
}
declare namespace _default {
export { parseDirective };
export { setAccTitle };
export { getAccTitle };
export { getAccDescription };
export { setAccDescription };
export function getConfig(): import("../../config.type").ClassDiagramConfig | undefined;
export { addClass };
export { bindFunctions };
export { clear };
export { getClass };
export { getClasses };
export { getNotes };
export { addAnnotation };
export { addNote };
export { getRelations };
export { addRelation };
export { getDirection };
export { setDirection };
export { addMember };
export { addMembers };
export { cleanupLabel };
export { lineType };
export { relationType };
export { setClickEvent };
export { setCssClass };
export { setLink };
export { getTooltip };
export { setTooltip };
export { lookUpDomId };
export { setDiagramTitle };
export { getDiagramTitle };
}
export default _default;
import { setAccTitle } from "../../commonDb";
import { getAccTitle } from "../../commonDb";
import { getAccDescription } from "../../commonDb";
import { setAccDescription } from "../../commonDb";
declare function getDirection(): string;
declare function setDirection(dir: any): void;
/**
* Called by parser when a tooltip is found, e.g. a clickable element.
*
* @param ids Comma separated list of ids
* @param tooltip Tooltip to add
*/
declare function setTooltip(ids: any, tooltip: any): void;
import { setDiagramTitle } from "../../commonDb";
import { getDiagramTitle } from "../../commonDb";
+2
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const classDetectorV2: DiagramDetector;
+2
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const classDetector: DiagramDetector;
+22
View File
@@ -0,0 +1,22 @@
export function addClasses(classes: {
[x: string]: {
cssClasses: string[];
text: string;
id: string;
type: string;
domId: string;
};
}, g: SVGGElement, _id: any, diagObj: any): void;
export function addNotes(notes: {
text: string;
class: string;
placement: number;
}[], g: SVGGElement, startEdgeId: number, classes: any): void;
export function addRelations(relations: any, g: object): void;
export function setConf(cnf: object): void;
export function draw(text: string, id: string, _version: any, diagObj: any): void;
declare namespace _default {
export { setConf };
export { draw };
}
export default _default;
+5
View File
@@ -0,0 +1,5 @@
export function draw(text: string, id: string, _version: any, diagObj: any): void;
declare namespace _default {
export { draw };
}
export default _default;
+2
View File
@@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(options: any): string;
+28
View File
@@ -0,0 +1,28 @@
export function drawEdge(elem: any, path: any, relation: any, conf: any, diagObj: any): void;
export function drawClass(elem: SVGSVGElement, classDef: any, conf: any, diagObj: any): {
id: any;
label: any;
width: number;
height: number;
};
export function drawNote(elem: SVGSVGElement, note: {
id: string;
text: string;
class: string;
}, conf: any, diagObj: any): {
id: string;
text: string;
width: number;
height: number;
};
export function parseMember(text: any): {
displayText: string;
cssStyle: string;
};
declare namespace _default {
export { drawClass };
export { drawEdge };
export { drawNote };
export { parseMember };
}
export default _default;
+65
View File
@@ -0,0 +1,65 @@
import { MermaidConfig } from '../../config.type';
/**
* Gets the rows of lines in a string
*
* @param s - The string to check the lines for
* @returns The rows in that string
*/
export declare const getRows: (s?: string) => string[];
/**
* Removes script tags from a text
*
* @param txt - The text to sanitize
* @returns The safer text
*/
export declare const removeScript: (txt: string) => string;
export declare const sanitizeText: (text: string, config: MermaidConfig) => string;
export declare const sanitizeTextOrArray: (a: string | string[] | string[][], config: MermaidConfig) => string | string[];
export declare const lineBreakRegex: RegExp;
/**
* Whether or not a text has any line breaks
*
* @param text - The text to test
* @returns Whether or not the text has breaks
*/
export declare const hasBreaks: (text: string) => boolean;
/**
* Splits on <br> tags
*
* @param text - Text to split
* @returns List of lines as strings
*/
export declare const splitBreaks: (text: string) => string[];
/**
* Converts a string/boolean into a boolean
*
* @param val - String or boolean to convert
* @returns The result from the input
*/
export declare const evaluate: (val?: string | boolean) => boolean;
/**
* Makes generics in typescript syntax
*
* @example
* Array of array of strings in typescript syntax
*
* ```js
* // returns "Array<Array<string>>"
* parseGenericTypes('Array~Array~string~~');
* ```
* @param text - The text to convert
* @returns The converted string
*/
export declare const parseGenericTypes: (text: string) => string;
declare const _default: {
getRows: (s?: string | undefined) => string[];
sanitizeText: (text: string, config: MermaidConfig) => string;
sanitizeTextOrArray: (a: string | string[] | string[][], config: MermaidConfig) => string | string[];
hasBreaks: (text: string) => boolean;
splitBreaks: (text: string) => string[];
lineBreakRegex: RegExp;
removeScript: (txt: string) => string;
getUrl: (useAbsolute: boolean) => string;
evaluate: (val?: string | boolean | undefined) => boolean;
};
export default _default;
+50
View File
@@ -0,0 +1,50 @@
export function parseDirective(statement: any, context: any, type: any): void;
declare namespace _default {
export { Cardinality };
export { Identification };
export { parseDirective };
export function getConfig(): import("../../config.type").ErDiagramConfig | undefined;
export { addEntity };
export { addAttributes };
export { getEntities };
export { addRelationship };
export { getRelationships };
export { clear };
export { setAccTitle };
export { getAccTitle };
export { setAccDescription };
export { getAccDescription };
export { setDiagramTitle };
export { getDiagramTitle };
}
export default _default;
declare namespace Cardinality {
const ZERO_OR_ONE: string;
const ZERO_OR_MORE: string;
const ONE_OR_MORE: string;
const ONLY_ONE: string;
}
declare namespace Identification {
const NON_IDENTIFYING: string;
const IDENTIFYING: string;
}
declare function addEntity(name: any): any;
declare function addAttributes(entityName: any, attribs: any): void;
declare function getEntities(): {};
/**
* Add a relationship
*
* @param entA The first entity in the relationship
* @param rolA The role played by the first entity in relation to the second
* @param entB The second entity in the relationship
* @param rSpec The details of the relationship between the two entities
*/
declare function addRelationship(entA: any, rolA: any, entB: any, rSpec: any): void;
declare function getRelationships(): any[];
declare function clear(): void;
import { setAccTitle } from "../../commonDb";
import { getAccTitle } from "../../commonDb";
import { setAccDescription } from "../../commonDb";
import { getAccDescription } from "../../commonDb";
import { setDiagramTitle } from "../../commonDb";
import { getDiagramTitle } from "../../commonDb";
+2
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const erDetector: DiagramDetector;
+22
View File
@@ -0,0 +1,22 @@
declare namespace _default {
export { ERMarkers };
export { insertMarkers };
}
export default _default;
declare namespace ERMarkers {
const ONLY_ONE_START: string;
const ONLY_ONE_END: string;
const ZERO_OR_ONE_START: string;
const ZERO_OR_ONE_END: string;
const ONE_OR_MORE_START: string;
const ONE_OR_MORE_END: string;
const ZERO_OR_MORE_START: string;
const ZERO_OR_MORE_END: string;
}
/**
* Put the markers into the svg DOM for later use with edge paths
*
* @param elem
* @param conf
*/
declare function insertMarkers(elem: any, conf: any): void;
+19
View File
@@ -0,0 +1,19 @@
/**
* Return a unique id based on the given string. Start with the prefix, then a hyphen, then the
* simplified str, then a hyphen, then a unique uuid. (Hyphens are only included if needed.)
* Although the official XML standard for ids says that many more characters are valid in the id,
* this keeps things simple by accepting only A-Za-z0-9.
*
* @param {string} str Given string to use as the basis for the id. Default is `''`
* @param {string} prefix String to put at the start, followed by '-'. Default is `''`
* @returns {string}
* @see https://www.w3.org/TR/xml/#NT-Name
*/
export function generateId(str?: string, prefix?: string): string;
export function setConf(cnf: any): void;
export function draw(text: any, id: any, _version: any, diagObj: any): void;
declare namespace _default {
export { setConf };
export { draw };
}
export default _default;
+2
View File
@@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(options: any): string;
+19
View File
@@ -0,0 +1,19 @@
/**
* Merges the value of `conf` with the passed `cnf`
*
* @param cnf - Config to merge
*/
export declare const setConf: (cnf: any) => void;
/**
* Draws a an info picture in the tag with id: id based on the graph definition in text.
*
* @param _text - Mermaid graph definition.
* @param id - The text for the error
* @param mermaidVersion - The version
*/
export declare const draw: (_text: string, id: string, mermaidVersion: string) => void;
declare const _default: {
setConf: (cnf: any) => void;
draw: (_text: string, id: string, mermaidVersion: string) => void;
};
export default _default;
+2
View File
@@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(): string;
+9
View File
@@ -0,0 +1,9 @@
/** @param render */
export function addToRender(render: any): void;
/** @param addShape */
export function addToRenderV2(addShape: any): void;
declare namespace _default {
export { addToRender };
export { addToRenderV2 };
}
export default _default;
+88
View File
@@ -0,0 +1,88 @@
export function parseDirective(statement: any, context: any, type: any): void;
export function lookUpDomId(id: any): any;
export function addVertex(_id: any, text: any, type: any, style: any, classes: any, dir: any, props?: {}): void;
export function addSingleLink(_start: any, _end: any, type: any, linkText: any): void;
export function addLink(_start: any, _end: any, type: any, linktext: any): void;
export function updateLinkInterpolate(positions: any, interp: any): void;
export function updateLink(positions: any, style: any): void;
export function addClass(id: any, style: any): void;
export function setDirection(dir: any): void;
export function setClass(ids: any, className: any): void;
export function setLink(ids: any, linkStr: any, target: any): void;
export function getTooltip(id: any): any;
export function setClickEvent(ids: any, functionName: any, functionArgs: any): void;
export function bindFunctions(element: any): void;
export function getDirection(): any;
export function getVertices(): {} | any | any;
export function getEdges(): {} | any | any[];
export function getClasses(): {} | any | any;
export function clear(ver?: string): void;
export function setGen(ver: any): void;
export function defaultStyle(): string;
export function addSubGraph(_id: any, list: any, _title: any): any;
export function getDepthFirstPos(pos: any): any;
export function indexNodes(): void;
export function getSubGraphs(): any[];
export function firstGraph(): boolean;
declare namespace _default {
export { parseDirective };
export function defaultConfig(): import("../../config.type").FlowchartDiagramConfig | undefined;
export { setAccTitle };
export { getAccTitle };
export { getAccDescription };
export { setAccDescription };
export { addVertex };
export { lookUpDomId };
export { addLink };
export { updateLinkInterpolate };
export { updateLink };
export { addClass };
export { setDirection };
export { setClass };
export { setTooltip };
export { getTooltip };
export { setClickEvent };
export { setLink };
export { bindFunctions };
export { getDirection };
export { getVertices };
export { getEdges };
export { getClasses };
export { clear };
export { setGen };
export { defaultStyle };
export { addSubGraph };
export { getDepthFirstPos };
export { indexNodes };
export { getSubGraphs };
export { destructLink };
export namespace lex {
export { firstGraph };
}
export { exists };
export { makeUniq };
export { setDiagramTitle };
export { getDiagramTitle };
}
export default _default;
import { setAccTitle } from "../../commonDb";
import { getAccTitle } from "../../commonDb";
import { getAccDescription } from "../../commonDb";
import { setAccDescription } from "../../commonDb";
declare function setTooltip(ids: any, tooltip: any): void;
declare function destructLink(_str: any, _startStr: any): {
type: string;
stroke: string;
};
declare function exists(allSgs: any, _id: any): boolean;
/**
* Deletes an id from all subgraphs
*
* @param sg
* @param allSubgraphs
*/
declare function makeUniq(sg: any, allSubgraphs: any): {
nodes: any[];
};
import { setDiagramTitle } from "../../commonDb";
import { getDiagramTitle } from "../../commonDb";
+2
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const flowDetectorV2: DiagramDetector;
+2
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const flowDetector: DiagramDetector;
+13
View File
@@ -0,0 +1,13 @@
export function setConf(cnf: any): void;
export function addVertices(vert: any, g: any, svgId: any, root: any, doc: any, diagObj: any): void;
export function addEdges(edges: object, g: object, diagObj: any): void;
export function getClasses(text: any, diagObj: any): object;
export function draw(text: any, id: any, _version: any, diagObj: any): void;
declare namespace _default {
export { setConf };
export { addVertices };
export { addEdges };
export { getClasses };
export { draw };
}
export default _default;
+13
View File
@@ -0,0 +1,13 @@
export function setConf(cnf: any): void;
export function addVertices(vert: any, g: any, svgId: any, root: any, _doc: any, diagObj: any): void;
export function addEdges(edges: object, g: object, diagObj: any): void;
export function getClasses(text: any, diagObj: any): object;
export function draw(text: any, id: any, _version: any, diagObj: any): void;
declare namespace _default {
export { setConf };
export { addVertices };
export { addEdges };
export { getClasses };
export { draw };
}
export default _default;
+18
View File
@@ -0,0 +1,18 @@
/** Returns the styles given options */
export interface FlowChartStyleOptions {
arrowheadColor: string;
border2: string;
clusterBkg: string;
clusterBorder: string;
edgeLabelBackground: string;
fontFamily: string;
lineColor: string;
mainBkg: string;
nodeBorder: string;
nodeTextColor: string;
tertiaryColor: string;
textColor: string;
titleColor: string;
}
declare const getStyles: (options: FlowChartStyleOptions) => string;
export default getStyles;
+98
View File
@@ -0,0 +1,98 @@
export function parseDirective(statement: any, context: any, type: any): void;
export function clear(): void;
export function setAxisFormat(txt: any): void;
export function getAxisFormat(): string;
export function setTickInterval(txt: any): void;
export function getTickInterval(): any;
export function setTodayMarker(txt: any): void;
export function getTodayMarker(): string;
export function setDateFormat(txt: any): void;
export function enableInclusiveEndDates(): void;
export function endDatesAreInclusive(): boolean;
export function enableTopAxis(): void;
export function topAxisEnabled(): boolean;
export function getDateFormat(): string;
export function setIncludes(txt: any): void;
export function getIncludes(): any[];
export function setExcludes(txt: any): void;
export function getExcludes(): any[];
export function getLinks(): {};
export function addSection(txt: any): void;
export function getSections(): any[];
export function getTasks(): any[];
export function isInvalidDate(date: any, dateFormat: any, excludes: any, includes: any): any;
export function addTask(descr: any, data: any): void;
export function findTaskById(id: any): any;
export function addTaskOrg(descr: any, data: any): void;
export function setLink(ids: any, _linkStr: any): void;
export function setClass(ids: any, className: any): void;
export function setClickEvent(ids: any, functionName: any, functionArgs: any): void;
export function bindFunctions(element: any): void;
declare namespace _default {
export { parseDirective };
export function getConfig(): import("../../config.type").GanttDiagramConfig | undefined;
export { clear };
export { setDateFormat };
export { getDateFormat };
export { enableInclusiveEndDates };
export { endDatesAreInclusive };
export { enableTopAxis };
export { topAxisEnabled };
export { setAxisFormat };
export { getAxisFormat };
export { setTickInterval };
export { getTickInterval };
export { setTodayMarker };
export { getTodayMarker };
export { setAccTitle };
export { getAccTitle };
export { setDiagramTitle };
export { getDiagramTitle };
export { setAccDescription };
export { getAccDescription };
export { addSection };
export { getSections };
export { getTasks };
export { addTask };
export { findTaskById };
export { addTaskOrg };
export { setIncludes };
export { getIncludes };
export { setExcludes };
export { getExcludes };
export { setClickEvent };
export { setLink };
export { getLinks };
export { bindFunctions };
export { parseDuration };
export { isInvalidDate };
}
export default _default;
import { setAccTitle } from "../../commonDb";
import { getAccTitle } from "../../commonDb";
import { setDiagramTitle } from "../../commonDb";
import { getDiagramTitle } from "../../commonDb";
import { setAccDescription } from "../../commonDb";
import { getAccDescription } from "../../commonDb";
/**
* Parse a string as a moment duration.
*
* The string have to be compound by a value and a shorthand duration unit. For example `5d`
* represents 5 days.
*
* Shorthand unit supported are:
*
* - `y` for years
* - `M` for months
* - `w` for weeks
* - `d` for days
* - `h` for hours
* - `s` for seconds
* - `ms` for milliseconds
*
* @param {string} str - A string representing the duration.
* @returns {moment.Duration} A moment duration, including an invalid moment for invalid input
* string.
*/
declare function parseDuration(str: string): moment.Duration;
import moment from "moment-mini";
+1
View File
@@ -0,0 +1 @@
export {};
+2
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const ganttDetector: DiagramDetector;
+7
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;
+2
View File
@@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(options: any): string;
+63
View File
@@ -0,0 +1,63 @@
export function parseDirective(statement: any, context: any, type: any): void;
export function setDirection(dir: any): void;
export function setOptions(rawOptString: any): void;
export function getOptions(): {};
export function commit(msg: any, id: any, type: any, tag: any): void;
export function branch(name: any, order: any): void;
export function merge(otherBranch: any, custom_id: any, override_type: any, custom_tag: any): void;
export function cherryPick(sourceId: any, targetId: any, tag: any): void;
export function checkout(branch: any): void;
export function prettyPrint(): void;
export function clear(): void;
export function getBranchesAsObjArray(): {
name: any;
}[];
export function getBranches(): typeof branches;
export function getCommits(): {};
export function getCommitsArray(): any[];
export function getCurrentBranch(): string | undefined;
export function getDirection(): string;
export function getHead(): any;
export namespace commitType {
const NORMAL: number;
const REVERSE: number;
const HIGHLIGHT: number;
const MERGE: number;
const CHERRY_PICK: number;
}
declare namespace _default {
export { parseDirective };
export function getConfig(): import("../../config.type").GitGraphDiagramConfig | undefined;
export { setDirection };
export { setOptions };
export { getOptions };
export { commit };
export { branch };
export { merge };
export { cherryPick };
export { checkout };
export { prettyPrint };
export { clear };
export { getBranchesAsObjArray };
export { getBranches };
export { getCommits };
export { getCommitsArray };
export { getCurrentBranch };
export { getDirection };
export { getHead };
export { setAccTitle };
export { getAccTitle };
export { getAccDescription };
export { setAccDescription };
export { setDiagramTitle };
export { getDiagramTitle };
export { commitType };
}
export default _default;
declare let branches: typeof branches;
import { setAccTitle } from "../../commonDb";
import { getAccTitle } from "../../commonDb";
import { getAccDescription } from "../../commonDb";
import { setAccDescription } from "../../commonDb";
import { setDiagramTitle } from "../../commonDb";
import { getDiagramTitle } from "../../commonDb";
+2
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const gitGraphDetector: DiagramDetector;
+5
View File
@@ -0,0 +1,5 @@
export function draw(txt: any, id: any, ver: any, diagObj: any): void;
declare namespace _default {
export { draw };
}
export default _default;
+2
View File
@@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(options: any): string;
+13
View File
@@ -0,0 +1,13 @@
export function setMessage(txt: any): void;
export function getMessage(): string;
export function setInfo(inf: any): void;
export function getInfo(): boolean;
declare namespace _default {
export { setMessage };
export { getMessage };
export { setInfo };
export { getInfo };
export { clear };
}
export default _default;
import { clear } from "../../commonDb";
+2
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const infoDetector: DiagramDetector;
+5
View File
@@ -0,0 +1,5 @@
export function draw(text: any, id: any, version: any): void;
declare namespace _default {
export { draw };
}
export default _default;
+2
View File
@@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(): string;
+30
View File
@@ -0,0 +1,30 @@
export function parseDirective(statement: any, context: any, type: any): void;
declare namespace _default {
export { parseDirective };
export function getConfig(): import("../../config.type").BaseDiagramConfig | undefined;
export { addSection };
export { getSections };
export { cleanupValue };
export { clear };
export { setAccTitle };
export { getAccTitle };
export { setDiagramTitle };
export { getDiagramTitle };
export { setShowData };
export { getShowData };
export { getAccDescription };
export { setAccDescription };
}
export default _default;
declare function addSection(id: any, value: any): void;
declare function getSections(): {};
declare function cleanupValue(value: any): number;
declare function clear(): void;
import { setAccTitle } from "../../commonDb";
import { getAccTitle } from "../../commonDb";
import { setDiagramTitle } from "../../commonDb";
import { getDiagramTitle } from "../../commonDb";
declare function setShowData(toggle: any): void;
declare function getShowData(): boolean;
import { getAccDescription } from "../../commonDb";
import { setAccDescription } from "../../commonDb";
+2
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const pieDetector: DiagramDetector;
+5
View File
@@ -0,0 +1,5 @@
export function draw(txt: any, id: any, _version: any, diagObj: any): void;
declare namespace _default {
export { draw };
}
export default _default;
+2
View File
@@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(options: any): string;
+72
View File
@@ -0,0 +1,72 @@
export function parseDirective(statement: any, context: any, type: any): void;
declare namespace _default {
export { RequirementType };
export { RiskLevel };
export { VerifyType };
export { Relationships };
export { parseDirective };
export function getConfig(): any;
export { addRequirement };
export { getRequirements };
export { setNewReqId };
export { setNewReqText };
export { setNewReqRisk };
export { setNewReqVerifyMethod };
export { setAccTitle };
export { getAccTitle };
export { setAccDescription };
export { getAccDescription };
export { addElement };
export { getElements };
export { setNewElementType };
export { setNewElementDocRef };
export { addRelationship };
export { getRelationships };
export { clear };
}
export default _default;
declare namespace RequirementType {
const REQUIREMENT: string;
const FUNCTIONAL_REQUIREMENT: string;
const INTERFACE_REQUIREMENT: string;
const PERFORMANCE_REQUIREMENT: string;
const PHYSICAL_REQUIREMENT: string;
const DESIGN_CONSTRAINT: string;
}
declare namespace RiskLevel {
const LOW_RISK: string;
const MED_RISK: string;
const HIGH_RISK: string;
}
declare namespace VerifyType {
const VERIFY_ANALYSIS: string;
const VERIFY_DEMONSTRATION: string;
const VERIFY_INSPECTION: string;
const VERIFY_TEST: string;
}
declare namespace Relationships {
const CONTAINS: string;
const COPIES: string;
const DERIVES: string;
const SATISFIES: string;
const VERIFIES: string;
const REFINES: string;
const TRACES: string;
}
declare function addRequirement(name: any, type: any): any;
declare function getRequirements(): {};
declare function setNewReqId(id: any): void;
declare function setNewReqText(text: any): void;
declare function setNewReqRisk(risk: any): void;
declare function setNewReqVerifyMethod(verifyMethod: any): void;
import { setAccTitle } from "../../commonDb";
import { getAccTitle } from "../../commonDb";
import { setAccDescription } from "../../commonDb";
import { getAccDescription } from "../../commonDb";
declare function addElement(name: any): any;
declare function getElements(): {};
declare function setNewElementType(type: any): void;
declare function setNewElementDocRef(docRef: any): void;
declare function addRelationship(type: any, src: any, dst: any): void;
declare function getRelationships(): any[];
declare function clear(): void;
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const requirementDetector: DiagramDetector;
+10
View File
@@ -0,0 +1,10 @@
declare namespace _default {
export { ReqMarkers };
export { insertLineEndings };
}
export default _default;
declare namespace ReqMarkers {
const CONTAINS: string;
const ARROW: string;
}
declare function insertLineEndings(parentNode: any, conf: any): void;
@@ -0,0 +1,7 @@
export function drawReqs(reqs: any, graph: any, svgNode: any): void;
export function drawElements(els: any, graph: any, svgNode: any): void;
export function draw(text: any, id: any, _version: any, diagObj: any): void;
declare namespace _default {
export { draw };
}
export default _default;
+2
View File
@@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(options: any): string;
+108
View File
@@ -0,0 +1,108 @@
export function parseDirective(statement: any, context: any, type: any): void;
export function addActor(id: any, name: any, description: any, type: any): void;
export function addMessage(idFrom: any, idTo: any, message: any, answer: any): void;
export function addSignal(idFrom: any, idTo: any, message: {
text: undefined;
wrap: undefined;
} | undefined, messageType: any): boolean;
export function getMessages(): any[];
export function getActors(): {};
export function getActor(id: any): any;
export function getActorKeys(): string[];
export function enableSequenceNumbers(): void;
export function disableSequenceNumbers(): void;
export function showSequenceNumbers(): boolean;
export function setWrap(wrapSetting: any): void;
export function autoWrap(): any;
export function clear(): void;
export function parseMessage(str: any): {
text: any;
wrap: boolean | undefined;
};
export namespace LINETYPE {
const SOLID: number;
const DOTTED: number;
const NOTE: number;
const SOLID_CROSS: number;
const DOTTED_CROSS: number;
const SOLID_OPEN: number;
const DOTTED_OPEN: number;
const LOOP_START: number;
const LOOP_END: number;
const ALT_START: number;
const ALT_ELSE: number;
const ALT_END: number;
const OPT_START: number;
const OPT_END: number;
const ACTIVE_START: number;
const ACTIVE_END: number;
const PAR_START: number;
const PAR_AND: number;
const PAR_END: number;
const RECT_START: number;
const RECT_END: number;
const SOLID_POINT: number;
const DOTTED_POINT: number;
const AUTONUMBER: number;
const CRITICAL_START: number;
const CRITICAL_OPTION: number;
const CRITICAL_END: number;
const BREAK_START: number;
const BREAK_END: number;
}
export namespace ARROWTYPE {
const FILLED: number;
const OPEN: number;
}
export namespace PLACEMENT {
const LEFTOF: number;
const RIGHTOF: number;
const OVER: number;
}
export function addNote(actor: any, placement: any, message: any): void;
export function addLinks(actorId: any, text: any): void;
export function addALink(actorId: any, text: any): void;
export function addProperties(actorId: any, text: any): void;
export function addDetails(actorId: any, text: any): void;
export function getActorProperty(actor: any, key: any): any;
export function apply(param: any): void;
declare namespace _default {
export { addActor };
export { addMessage };
export { addSignal };
export { addLinks };
export { addDetails };
export { addProperties };
export { autoWrap };
export { setWrap };
export { enableSequenceNumbers };
export { disableSequenceNumbers };
export { showSequenceNumbers };
export { getMessages };
export { getActors };
export { getActor };
export { getActorKeys };
export { getActorProperty };
export { getAccTitle };
export { getDiagramTitle };
export { setDiagramTitle };
export { parseDirective };
export function getConfig(): import("../../config.type").SequenceDiagramConfig | undefined;
export { clear };
export { parseMessage };
export { LINETYPE };
export { ARROWTYPE };
export { PLACEMENT };
export { addNote };
export { setAccTitle };
export { apply };
export { setAccDescription };
export { getAccDescription };
}
export default _default;
import { getAccTitle } from "../../commonDb";
import { getDiagramTitle } from "../../commonDb";
import { setDiagramTitle } from "../../commonDb";
import { setAccTitle } from "../../commonDb";
import { setAccDescription } from "../../commonDb";
import { getAccDescription } from "../../commonDb";
+2
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const sequenceDetector: DiagramDetector;
+188
View File
@@ -0,0 +1,188 @@
import Diagram from '../../Diagram';
export declare const bounds: {
data: {
startx: undefined;
stopx: undefined;
starty: undefined;
stopy: undefined;
};
verticalPos: number;
sequenceItems: never[];
activations: never[];
models: {
getHeight: () => any;
clear: () => void;
addActor: (actorModel: any) => void;
addLoop: (loopModel: any) => void;
addMessage: (msgModel: any) => void;
addNote: (noteModel: any) => void;
lastActor: () => never;
lastLoop: () => never;
lastMessage: () => never;
lastNote: () => never;
actors: never[];
loops: never[];
messages: never[];
notes: never[];
};
init: () => void;
updateVal: (obj: any, key: any, val: any, fun: any) => void;
updateBounds: (startx: any, starty: any, stopx: any, stopy: any) => void;
insert: (startx: any, starty: any, stopx: any, stopy: any) => void;
newActivation: (message: any, diagram: any, actors: any) => void;
endActivation: (message: any) => never;
createLoop: (title: {
message: undefined;
wrap: boolean;
width: undefined;
} | undefined, fill: any) => {
startx: undefined;
starty: number;
stopx: undefined;
stopy: undefined;
title: undefined;
wrap: boolean;
width: undefined;
height: number;
fill: any;
};
newLoop: (title: {
message: undefined;
wrap: boolean;
width: undefined;
} | undefined, fill: any) => void;
endLoop: () => undefined;
addSectionToLoop: (message: any) => void;
bumpVerticalPos: (bump: any) => void;
getVerticalPos: () => number;
getBounds: () => {
bounds: {
startx: undefined;
stopx: undefined;
starty: undefined;
stopy: undefined;
};
models: {
getHeight: () => any;
clear: () => void;
addActor: (actorModel: any) => void;
addLoop: (loopModel: any) => void;
addMessage: (msgModel: any) => void;
addNote: (noteModel: any) => void;
lastActor: () => never;
lastLoop: () => never;
lastMessage: () => never;
lastNote: () => never;
actors: never[];
loops: never[];
messages: never[];
notes: never[];
};
};
};
export declare const drawActors: (diagram: any, actors: any, actorKeys: any, verticalPos: any, configuration: any, messages: any) => void;
export declare const drawActorsPopup: (diagram: any, actors: any, actorKeys: any, doc: any) => {
maxHeight: number;
maxWidth: number;
};
export declare const setConf: (cnf: any) => void;
/**
* Draws a sequenceDiagram in the tag with id: id based on the graph definition in text.
*
* @param _text - The text of the diagram
* @param id - The id of the diagram which will be used as a DOM element id¨
* @param _version - Mermaid version from package.json
* @param diagObj - A standard diagram containing the db and the text and type etc of the diagram
*/
export declare const draw: (_text: string, id: string, _version: string, diagObj: Diagram) => void;
declare const _default: {
bounds: {
data: {
startx: undefined;
stopx: undefined;
starty: undefined;
stopy: undefined;
};
verticalPos: number;
sequenceItems: never[];
activations: never[];
models: {
getHeight: () => any;
clear: () => void;
addActor: (actorModel: any) => void;
addLoop: (loopModel: any) => void;
addMessage: (msgModel: any) => void;
addNote: (noteModel: any) => void;
lastActor: () => never;
lastLoop: () => never;
lastMessage: () => never;
lastNote: () => never;
actors: never[];
loops: never[];
messages: never[];
notes: never[];
};
init: () => void;
updateVal: (obj: any, key: any, val: any, fun: any) => void;
updateBounds: (startx: any, starty: any, stopx: any, stopy: any) => void;
insert: (startx: any, starty: any, stopx: any, stopy: any) => void;
newActivation: (message: any, diagram: any, actors: any) => void;
endActivation: (message: any) => never;
createLoop: (title: {
message: undefined;
wrap: boolean;
width: undefined;
} | undefined, fill: any) => {
startx: undefined;
starty: number;
stopx: undefined;
stopy: undefined;
title: undefined;
wrap: boolean;
width: undefined;
height: number;
fill: any;
};
newLoop: (title: {
message: undefined;
wrap: boolean;
width: undefined;
} | undefined, fill: any) => void;
endLoop: () => undefined;
addSectionToLoop: (message: any) => void;
bumpVerticalPos: (bump: any) => void;
getVerticalPos: () => number;
getBounds: () => {
bounds: {
startx: undefined;
stopx: undefined;
starty: undefined;
stopy: undefined;
};
models: {
getHeight: () => any;
clear: () => void;
addActor: (actorModel: any) => void;
addLoop: (loopModel: any) => void;
addMessage: (msgModel: any) => void;
addNote: (noteModel: any) => void;
lastActor: () => never;
lastLoop: () => never;
lastMessage: () => never;
lastNote: () => never;
actors: never[];
loops: never[];
messages: never[];
notes: never[];
};
};
};
drawActors: (diagram: any, actors: any, actorKeys: any, verticalPos: any, configuration: any, messages: any) => void;
drawActorsPopup: (diagram: any, actors: any, actorKeys: any, doc: any) => {
maxHeight: number;
maxWidth: number;
};
setConf: (cnf: any) => void;
draw: (_text: string, id: string, _version: string, diagObj: Diagram) => void;
};
export default _default;
+2
View File
@@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(options: any): string;
+77
View File
@@ -0,0 +1,77 @@
export function drawRect(elem: any, rectData: any): any;
export function drawPopup(elem: any, actor: any, minMenuWidth: any, textAttrs: any, forceMenus: any): {
height: any;
width: any;
};
export function drawImage(elem: any, x: any, y: any, link: any): void;
export function drawEmbeddedImage(elem: any, x: any, y: any, link: any): void;
export function popupMenu(popid: any): string;
export function popdownMenu(popid: any): string;
export function drawText(elem: any, textData: any): any[];
export function drawLabel(elem: any, txtObject: any): any;
export function fixLifeLineHeights(diagram: any, bounds: any): void;
export function drawActor(elem: any, actor: any, conf: any): any;
export function anchorElement(elem: any): any;
export function drawActivation(elem: any, bounds: any, verticalPos: any, conf: any, actorActivations: any): void;
export function drawLoop(elem: any, loopModel: any, labelText: any, conf: any): any;
export function drawBackgroundRect(elem: any, bounds: any): void;
export function insertDatabaseIcon(elem: any): void;
export function insertComputerIcon(elem: any): void;
export function insertClockIcon(elem: any): void;
export function insertArrowHead(elem: any): void;
export function insertArrowFilledHead(elem: any): void;
export function insertSequenceNumber(elem: any): void;
export function insertArrowCrossHead(elem: any): void;
export function getTextObj(): {
x: number;
y: number;
fill: undefined;
anchor: undefined;
style: string;
width: undefined;
height: undefined;
textMargin: number;
rx: number;
ry: number;
tspan: boolean;
valign: undefined;
};
export function getNoteRect(): {
x: number;
y: number;
fill: string;
stroke: string;
width: number;
anchor: string;
height: number;
rx: number;
ry: number;
};
declare namespace _default {
export { drawRect };
export { drawText };
export { drawLabel };
export { drawActor };
export { drawPopup };
export { drawImage };
export { drawEmbeddedImage };
export { anchorElement };
export { drawActivation };
export { drawLoop };
export { drawBackgroundRect };
export { insertArrowHead };
export { insertArrowFilledHead };
export { insertSequenceNumber };
export { insertArrowCrossHead };
export { insertDatabaseIcon };
export { insertComputerIcon };
export { insertClockIcon };
export { getTextObj };
export { getNoteRect };
export { popupMenu };
export { popdownMenu };
export { fixLifeLineHeights };
export { sanitizeUrl };
}
export default _default;
import { sanitizeUrl } from "@braintree/sanitize-url";
+11
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;
+14
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;
+22
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;
+93
View File
@@ -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
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const stateDetectorV2: DiagramDetector;
+2
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const stateDetector: DiagramDetector;
+20
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): 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
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;
+2
View File
@@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(options: any): string;
+32
View File
@@ -0,0 +1,32 @@
export function parseDirective(statement: any, context: any, type: any): void;
export function clear(): void;
export function addSection(txt: any): void;
export function getSections(): any[];
export function getTasks(): any[];
export function addTask(descr: any, taskData: any): void;
export function addTaskOrg(descr: any): void;
declare namespace _default {
export { parseDirective };
export function getConfig(): import("../../config.type").JourneyDiagramConfig | undefined;
export { clear };
export { setDiagramTitle };
export { getDiagramTitle };
export { setAccTitle };
export { getAccTitle };
export { setAccDescription };
export { getAccDescription };
export { addSection };
export { getSections };
export { getTasks };
export { addTask };
export { addTaskOrg };
export { getActors };
}
export default _default;
import { setDiagramTitle } from "../../commonDb";
import { getDiagramTitle } from "../../commonDb";
import { setAccTitle } from "../../commonDb";
import { getAccTitle } from "../../commonDb";
import { setAccDescription } from "../../commonDb";
import { getAccDescription } from "../../commonDb";
declare function getActors(): any[];
+2
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const journeyDetector: DiagramDetector;
+30
View File
@@ -0,0 +1,30 @@
export declare const setConf: (cnf: any) => void;
export declare const draw: (text: any, id: any, version: any, diagObj: any) => void;
export declare const bounds: {
data: {
startx: undefined;
stopx: undefined;
starty: undefined;
stopy: undefined;
};
verticalPos: number;
sequenceItems: never[];
init: () => void;
updateVal: (obj: any, key: any, val: any, fun: any) => void;
updateBounds: (startx: any, starty: any, stopx: any, stopy: any) => void;
insert: (startx: any, starty: any, stopx: any, stopy: any) => void;
bumpVerticalPos: (bump: any) => void;
getVerticalPos: () => number;
getBounds: () => {
startx: undefined;
stopx: undefined;
starty: undefined;
stopy: undefined;
};
};
export declare const drawTasks: (diagram: any, tasks: any, verticalPos: any) => void;
declare const _default: {
setConf: (cnf: any) => void;
draw: (text: any, id: any, version: any, diagObj: any) => void;
};
export default _default;
+2
View File
@@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(options: any): string;
+42
View File
@@ -0,0 +1,42 @@
export function drawRect(elem: any, rectData: any): any;
export function drawFace(element: any, faceData: any): any;
export function drawCircle(element: any, circleData: any): any;
export function drawText(elem: any, textData: any): any;
export function drawLabel(elem: any, txtObject: any): void;
export function drawSection(elem: any, section: any, conf: any): void;
export function drawTask(elem: any, task: any, conf: any): void;
export function drawBackgroundRect(elem: any, bounds: any): void;
export function getTextObj(): {
x: number;
y: number;
fill: undefined;
'text-anchor': string;
width: number;
height: number;
textMargin: number;
rx: number;
ry: number;
};
export function getNoteRect(): {
x: number;
y: number;
width: number;
anchor: string;
height: number;
rx: number;
ry: number;
};
declare namespace _default {
export { drawRect };
export { drawCircle };
export { drawSection };
export { drawText };
export { drawLabel };
export { drawTask };
export { drawBackgroundRect };
export { getTextObj };
export { getNoteRect };
export { initGraphics };
}
export default _default;
declare function initGraphics(graphics: any): void;