mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
config redirect
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import { type DetailedError } from './utils';
|
||||
export declare type ParseErrorFunction = (err: string | DetailedError, hash?: any) => void;
|
||||
export declare class Diagram {
|
||||
txt: string;
|
||||
type: string;
|
||||
parser: any;
|
||||
renderer: any;
|
||||
db: import("./diagram-api/types").DiagramDb;
|
||||
private detectTypeFailed;
|
||||
constructor(txt: string, parseError?: ParseErrorFunction);
|
||||
parse(text: string, parseError?: ParseErrorFunction): boolean;
|
||||
handleError(error: unknown, parseError?: ParseErrorFunction): void;
|
||||
getParser(): any;
|
||||
getType(): string;
|
||||
}
|
||||
export declare const getDiagramFromText: (txt: string, parseError?: ParseErrorFunction) => Diagram | Promise<Diagram>;
|
||||
export default Diagram;
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
import { type ParseErrorFunction } from '../Diagram';
|
||||
/** {@inheritDoc mermaidAPI.parse} */
|
||||
declare function parse(text: string, parseError?: ParseErrorFunction): boolean;
|
||||
export declare const mermaidAPI: {
|
||||
render: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||||
renderAsync: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||||
parse: typeof parse;
|
||||
parseDirective: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||||
initialize: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||||
getConfig: () => import("../config.type").MermaidConfig;
|
||||
setConfig: (conf: import("../config.type").MermaidConfig) => import("../config.type").MermaidConfig;
|
||||
getSiteConfig: () => import("../config.type").MermaidConfig;
|
||||
updateSiteConfig: (conf: import("../config.type").MermaidConfig) => import("../config.type").MermaidConfig;
|
||||
reset: () => void;
|
||||
globalReset: () => void;
|
||||
defaultConfig: import("../config.type").MermaidConfig;
|
||||
};
|
||||
export default mermaidAPI;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* Accessibility (a11y) functions, types, helpers
|
||||
*
|
||||
*/
|
||||
import { D3Element } from './mermaidAPI';
|
||||
/**
|
||||
* Add aria-roledescription to the svg element to the diagramType
|
||||
*
|
||||
* @param svg - d3 object that contains the SVG HTML element
|
||||
* @param diagramType - diagram name for to the aria-roledescription
|
||||
*/
|
||||
export declare function setA11yDiagramInfo(svg: D3Element, diagramType: string | null | undefined): void;
|
||||
/**
|
||||
* Add an accessible title and/or description element to a chart.
|
||||
* The title is usually not displayed and the description is never displayed.
|
||||
*
|
||||
* The following charts display their title as a visual and accessibility element: gantt
|
||||
*
|
||||
* @param svg - d3 node to insert the a11y title and desc info
|
||||
* @param a11yTitle - a11y title. null and undefined are meaningful: means to skip it
|
||||
* @param a11yDesc - a11y description. null and undefined are meaningful: means to skip it
|
||||
* @param baseId - id used to construct the a11y title and description id
|
||||
*/
|
||||
export declare function addSVGa11yTitleDescription(svg: D3Element, a11yTitle: string | null | undefined, a11yDesc: string | null | undefined, baseId: string): void;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
export default assignWithDepth;
|
||||
/**
|
||||
* @function assignWithDepth Extends the functionality of {@link ObjectConstructor.assign} with the
|
||||
* ability to merge arbitrary-depth objects For each key in src with path `k` (recursively)
|
||||
* performs an Object.assign(dst[`k`], src[`k`]) with a slight change from the typical handling of
|
||||
* undefined for dst[`k`]: instead of raising an error, dst[`k`] is auto-initialized to {} and
|
||||
* effectively merged with src[`k`]<p> Additionally, dissimilar types will not clobber unless the
|
||||
* config.clobber parameter === true. Example:
|
||||
*
|
||||
* ```js
|
||||
* let config_0 = { foo: { bar: 'bar' }, bar: 'foo' };
|
||||
* let config_1 = { foo: 'foo', bar: 'bar' };
|
||||
* let result = assignWithDepth(config_0, config_1);
|
||||
* console.log(result);
|
||||
* //-> result: { foo: { bar: 'bar' }, bar: 'bar' }
|
||||
* ```
|
||||
*
|
||||
* Traditional Object.assign would have clobbered foo in config_0 with foo in config_1. If src is a
|
||||
* destructured array of objects and dst is not an array, assignWithDepth will apply each element
|
||||
* of src to dst in order.
|
||||
* @param {any} dst - The destination of the merge
|
||||
* @param {any} src - The source object(s) to merge into destination
|
||||
* @param {{ depth: number; clobber: boolean }} [config={ depth: 2, clobber: false }] - Depth: depth
|
||||
* to traverse within src and dst for merging - clobber: should dissimilar types clobber (default:
|
||||
* { depth: 2, clobber: false }). Default is `{ depth: 2, clobber: false }`
|
||||
* @returns {any}
|
||||
*/
|
||||
declare function assignWithDepth(dst: any, src: any, config?: {
|
||||
depth: number;
|
||||
clobber: boolean;
|
||||
} | undefined): any;
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
export declare const clear: () => void;
|
||||
export declare const setAccTitle: (txt: string) => void;
|
||||
export declare const getAccTitle: () => string;
|
||||
export declare const setAccDescription: (txt: string) => void;
|
||||
export declare const getAccDescription: () => string;
|
||||
export declare const setDiagramTitle: (txt: string) => void;
|
||||
export declare const getDiagramTitle: () => string;
|
||||
declare const _default: {
|
||||
setAccTitle: (txt: string) => void;
|
||||
getAccTitle: () => string;
|
||||
setDiagramTitle: (txt: string) => void;
|
||||
getDiagramTitle: () => string;
|
||||
getAccDescription: () => string;
|
||||
setAccDescription: (txt: string) => void;
|
||||
clear: () => void;
|
||||
};
|
||||
export default _default;
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
import type { MermaidConfig } from './config.type';
|
||||
export declare const defaultConfig: MermaidConfig;
|
||||
export declare const updateCurrentConfig: (siteCfg: MermaidConfig, _directives: any[]) => MermaidConfig;
|
||||
/**
|
||||
* ## setSiteConfig
|
||||
*
|
||||
* | Function | Description | Type | Values |
|
||||
* | ------------- | ------------------------------------- | ----------- | --------------------------------------- |
|
||||
* | setSiteConfig | Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array |
|
||||
*
|
||||
* **Notes:** Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls
|
||||
* to reset() will reset the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig)
|
||||
* will reset siteConfig and currentConfig to the defaultConfig Note: currentConfig is set in this
|
||||
* function _Default value: At default, will mirror Global Config_
|
||||
*
|
||||
* @param conf - The base currentConfig to use as siteConfig
|
||||
* @returns The new siteConfig
|
||||
*/
|
||||
export declare const setSiteConfig: (conf: MermaidConfig) => MermaidConfig;
|
||||
export declare const saveConfigFromInitialize: (conf: MermaidConfig) => void;
|
||||
export declare const updateSiteConfig: (conf: MermaidConfig) => MermaidConfig;
|
||||
/**
|
||||
* ## getSiteConfig
|
||||
*
|
||||
* | Function | Description | Type | Values |
|
||||
* | ------------- | ------------------------------------------------- | ----------- | -------------------------------- |
|
||||
* | setSiteConfig | Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig |
|
||||
*
|
||||
* **Notes**: Returns **any** values in siteConfig.
|
||||
*
|
||||
* @returns The siteConfig
|
||||
*/
|
||||
export declare const getSiteConfig: () => MermaidConfig;
|
||||
/**
|
||||
* ## setConfig
|
||||
*
|
||||
* | Function | Description | Type | Values |
|
||||
* | ------------- | ------------------------------------- | ----------- | --------------------------------------- |
|
||||
* | setSiteConfig | Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array |
|
||||
*
|
||||
* **Notes**: Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure
|
||||
* keys. Any values found in conf with key found in siteConfig.secure will be replaced with the
|
||||
* corresponding siteConfig value.
|
||||
*
|
||||
* @param conf - The potential currentConfig
|
||||
* @returns The currentConfig merged with the sanitized conf
|
||||
*/
|
||||
export declare const setConfig: (conf: MermaidConfig) => MermaidConfig;
|
||||
/**
|
||||
* ## getConfig
|
||||
*
|
||||
* | Function | Description | Type | Return Values |
|
||||
* | --------- | ------------------------- | ----------- | ------------------------------ |
|
||||
* | getConfig | Obtains the currentConfig | Get Request | Any Values from current Config |
|
||||
*
|
||||
* **Notes**: Returns **any** the currentConfig
|
||||
*
|
||||
* @returns The currentConfig
|
||||
*/
|
||||
export declare const getConfig: () => MermaidConfig;
|
||||
/**
|
||||
* ## sanitize
|
||||
*
|
||||
* | Function | Description | Type | Values |
|
||||
* | -------- | -------------------------------------- | ----------- | ------ |
|
||||
* | sanitize | Sets the siteConfig to desired values. | Put Request | None |
|
||||
*
|
||||
* Ensures options parameter does not attempt to override siteConfig secure keys **Notes**: modifies
|
||||
* options in-place
|
||||
*
|
||||
* @param options - The potential setConfig parameter
|
||||
*/
|
||||
export declare const sanitize: (options: any) => void;
|
||||
/**
|
||||
* Pushes in a directive to the configuration
|
||||
*
|
||||
* @param directive - The directive to push in
|
||||
*/
|
||||
export declare const addDirective: (directive: any) => void;
|
||||
/**
|
||||
* ## reset
|
||||
*
|
||||
* | Function | Description | Type | Required | Values |
|
||||
* | -------- | ---------------------------- | ----------- | -------- | ------ |
|
||||
* | reset | Resets currentConfig to conf | Put Request | Required | None |
|
||||
*
|
||||
* ## conf
|
||||
*
|
||||
* | Parameter | Description | Type | Required | Values |
|
||||
* | --------- | -------------------------------------------------------------- | ---------- | -------- | -------------------------------------------- |
|
||||
* | conf | base set of values, which currentConfig could be **reset** to. | Dictionary | Required | Any Values, with respect to the secure Array |
|
||||
*
|
||||
* **Notes**: (default: current siteConfig ) (optional, default `getSiteConfig()`)
|
||||
*
|
||||
* @param config - base set of values, which currentConfig could be **reset** to.
|
||||
* Defaults to the current siteConfig (e.g returned by {@link getSiteConfig}).
|
||||
*/
|
||||
export declare const reset: (config?: MermaidConfig) => void;
|
||||
+348
@@ -0,0 +1,348 @@
|
||||
import DOMPurify from 'dompurify';
|
||||
export interface MermaidConfig {
|
||||
/** @deprecated use mermaid.registerLazyDiagrams instead */
|
||||
lazyLoadedDiagrams?: string[];
|
||||
/** @deprecated use mermaid.registerLazyDiagrams instead */
|
||||
loadExternalDiagramsAtStartup?: boolean;
|
||||
theme?: string;
|
||||
themeVariables?: any;
|
||||
themeCSS?: string;
|
||||
maxTextSize?: number;
|
||||
darkMode?: boolean;
|
||||
htmlLabels?: boolean;
|
||||
fontFamily?: string;
|
||||
altFontFamily?: string;
|
||||
logLevel?: number;
|
||||
securityLevel?: string;
|
||||
startOnLoad?: boolean;
|
||||
arrowMarkerAbsolute?: boolean;
|
||||
secure?: string[];
|
||||
deterministicIds?: boolean;
|
||||
deterministicIDSeed?: string;
|
||||
flowchart?: FlowchartDiagramConfig;
|
||||
sequence?: SequenceDiagramConfig;
|
||||
gantt?: GanttDiagramConfig;
|
||||
journey?: JourneyDiagramConfig;
|
||||
class?: ClassDiagramConfig;
|
||||
state?: StateDiagramConfig;
|
||||
er?: ErDiagramConfig;
|
||||
pie?: PieDiagramConfig;
|
||||
requirement?: RequirementDiagramConfig;
|
||||
mindmap?: MindmapDiagramConfig;
|
||||
gitGraph?: GitGraphDiagramConfig;
|
||||
c4?: C4DiagramConfig;
|
||||
dompurifyConfig?: DOMPurify.Config;
|
||||
wrap?: boolean;
|
||||
fontSize?: number;
|
||||
}
|
||||
export interface BaseDiagramConfig {
|
||||
useWidth?: number;
|
||||
useMaxWidth?: boolean;
|
||||
}
|
||||
export interface C4DiagramConfig extends BaseDiagramConfig {
|
||||
diagramMarginX?: number;
|
||||
diagramMarginY?: number;
|
||||
c4ShapeMargin?: number;
|
||||
c4ShapePadding?: number;
|
||||
width?: number;
|
||||
height?: number;
|
||||
boxMargin?: number;
|
||||
c4ShapeInRow?: number;
|
||||
nextLinePaddingX?: number;
|
||||
c4BoundaryInRow?: number;
|
||||
personFontSize?: string | number;
|
||||
personFontFamily?: string;
|
||||
personFontWeight?: string | number;
|
||||
external_personFontSize?: string | number;
|
||||
external_personFontFamily?: string;
|
||||
external_personFontWeight?: string | number;
|
||||
systemFontSize?: string | number;
|
||||
systemFontFamily?: string;
|
||||
systemFontWeight?: string | number;
|
||||
external_systemFontSize?: string | number;
|
||||
external_systemFontFamily?: string;
|
||||
external_systemFontWeight?: string | number;
|
||||
system_dbFontSize?: string | number;
|
||||
system_dbFontFamily?: string;
|
||||
system_dbFontWeight?: string | number;
|
||||
external_system_dbFontSize?: string | number;
|
||||
external_system_dbFontFamily?: string;
|
||||
external_system_dbFontWeight?: string | number;
|
||||
system_queueFontSize?: string | number;
|
||||
system_queueFontFamily?: string;
|
||||
system_queueFontWeight?: string | number;
|
||||
external_system_queueFontSize?: string | number;
|
||||
external_system_queueFontFamily?: string;
|
||||
external_system_queueFontWeight?: string | number;
|
||||
boundaryFontSize?: string | number;
|
||||
boundaryFontFamily?: string;
|
||||
boundaryFontWeight?: string | number;
|
||||
messageFontSize?: string | number;
|
||||
messageFontFamily?: string;
|
||||
messageFontWeight?: string | number;
|
||||
containerFontSize?: string | number;
|
||||
containerFontFamily?: string;
|
||||
containerFontWeight?: string | number;
|
||||
external_containerFontSize?: string | number;
|
||||
external_containerFontFamily?: string;
|
||||
external_containerFontWeight?: string | number;
|
||||
container_dbFontSize?: string | number;
|
||||
container_dbFontFamily?: string;
|
||||
container_dbFontWeight?: string | number;
|
||||
external_container_dbFontSize?: string | number;
|
||||
external_container_dbFontFamily?: string;
|
||||
external_container_dbFontWeight?: string | number;
|
||||
container_queueFontSize?: string | number;
|
||||
container_queueFontFamily?: string;
|
||||
container_queueFontWeight?: string | number;
|
||||
external_container_queueFontSize?: string | number;
|
||||
external_container_queueFontFamily?: string;
|
||||
external_container_queueFontWeight?: string | number;
|
||||
componentFontSize?: string | number;
|
||||
componentFontFamily?: string;
|
||||
componentFontWeight?: string | number;
|
||||
external_componentFontSize?: string | number;
|
||||
external_componentFontFamily?: string;
|
||||
external_componentFontWeight?: string | number;
|
||||
component_dbFontSize?: string | number;
|
||||
component_dbFontFamily?: string;
|
||||
component_dbFontWeight?: string | number;
|
||||
external_component_dbFontSize?: string | number;
|
||||
external_component_dbFontFamily?: string;
|
||||
external_component_dbFontWeight?: string | number;
|
||||
component_queueFontSize?: string | number;
|
||||
component_queueFontFamily?: string;
|
||||
component_queueFontWeight?: string | number;
|
||||
external_component_queueFontSize?: string | number;
|
||||
external_component_queueFontFamily?: string;
|
||||
external_component_queueFontWeight?: string | number;
|
||||
wrap?: boolean;
|
||||
wrapPadding?: number;
|
||||
person_bg_color?: string;
|
||||
person_border_color?: string;
|
||||
external_person_bg_color?: string;
|
||||
external_person_border_color?: string;
|
||||
system_bg_color?: string;
|
||||
system_border_color?: string;
|
||||
system_db_bg_color?: string;
|
||||
system_db_border_color?: string;
|
||||
system_queue_bg_color?: string;
|
||||
system_queue_border_color?: string;
|
||||
external_system_bg_color?: string;
|
||||
external_system_border_color?: string;
|
||||
external_system_db_bg_color?: string;
|
||||
external_system_db_border_color?: string;
|
||||
external_system_queue_bg_color?: string;
|
||||
external_system_queue_border_color?: string;
|
||||
container_bg_color?: string;
|
||||
container_border_color?: string;
|
||||
container_db_bg_color?: string;
|
||||
container_db_border_color?: string;
|
||||
container_queue_bg_color?: string;
|
||||
container_queue_border_color?: string;
|
||||
external_container_bg_color?: string;
|
||||
external_container_border_color?: string;
|
||||
external_container_db_bg_color?: string;
|
||||
external_container_db_border_color?: string;
|
||||
external_container_queue_bg_color?: string;
|
||||
external_container_queue_border_color?: string;
|
||||
component_bg_color?: string;
|
||||
component_border_color?: string;
|
||||
component_db_bg_color?: string;
|
||||
component_db_border_color?: string;
|
||||
component_queue_bg_color?: string;
|
||||
component_queue_border_color?: string;
|
||||
external_component_bg_color?: string;
|
||||
external_component_border_color?: string;
|
||||
external_component_db_bg_color?: string;
|
||||
external_component_db_border_color?: string;
|
||||
external_component_queue_bg_color?: string;
|
||||
external_component_queue_border_color?: string;
|
||||
personFont?: FontCalculator;
|
||||
external_personFont?: FontCalculator;
|
||||
systemFont?: FontCalculator;
|
||||
external_systemFont?: FontCalculator;
|
||||
system_dbFont?: FontCalculator;
|
||||
external_system_dbFont?: FontCalculator;
|
||||
system_queueFont?: FontCalculator;
|
||||
external_system_queueFont?: FontCalculator;
|
||||
containerFont?: FontCalculator;
|
||||
external_containerFont?: FontCalculator;
|
||||
container_dbFont?: FontCalculator;
|
||||
external_container_dbFont?: FontCalculator;
|
||||
container_queueFont?: FontCalculator;
|
||||
external_container_queueFont?: FontCalculator;
|
||||
componentFont?: FontCalculator;
|
||||
external_componentFont?: FontCalculator;
|
||||
component_dbFont?: FontCalculator;
|
||||
external_component_dbFont?: FontCalculator;
|
||||
component_queueFont?: FontCalculator;
|
||||
external_component_queueFont?: FontCalculator;
|
||||
boundaryFont?: FontCalculator;
|
||||
messageFont?: FontCalculator;
|
||||
}
|
||||
export interface GitGraphDiagramConfig extends BaseDiagramConfig {
|
||||
titleTopMargin?: number;
|
||||
diagramPadding?: number;
|
||||
nodeLabel?: NodeLabel;
|
||||
mainBranchName?: string;
|
||||
mainBranchOrder?: number;
|
||||
showCommitLabel?: boolean;
|
||||
showBranches?: boolean;
|
||||
rotateCommitLabel?: boolean;
|
||||
arrowMarkerAbsolute?: boolean;
|
||||
}
|
||||
export interface NodeLabel {
|
||||
width?: number;
|
||||
height?: number;
|
||||
x?: number;
|
||||
y?: number;
|
||||
}
|
||||
export interface RequirementDiagramConfig extends BaseDiagramConfig {
|
||||
rect_fill?: string;
|
||||
text_color?: string;
|
||||
rect_border_size?: string;
|
||||
rect_border_color?: string;
|
||||
rect_min_width?: number;
|
||||
rect_min_height?: number;
|
||||
fontSize?: number;
|
||||
rect_padding?: number;
|
||||
line_height?: number;
|
||||
}
|
||||
export interface MindmapDiagramConfig extends BaseDiagramConfig {
|
||||
useMaxWidth: boolean;
|
||||
padding: number;
|
||||
maxNodeWidth: number;
|
||||
}
|
||||
export declare type PieDiagramConfig = BaseDiagramConfig;
|
||||
export interface ErDiagramConfig extends BaseDiagramConfig {
|
||||
titleTopMargin?: number;
|
||||
diagramPadding?: number;
|
||||
layoutDirection?: string;
|
||||
minEntityWidth?: number;
|
||||
minEntityHeight?: number;
|
||||
entityPadding?: number;
|
||||
stroke?: string;
|
||||
fill?: string;
|
||||
fontSize?: number;
|
||||
}
|
||||
export interface StateDiagramConfig extends BaseDiagramConfig {
|
||||
titleTopMargin?: number;
|
||||
arrowMarkerAbsolute?: boolean;
|
||||
dividerMargin?: number;
|
||||
sizeUnit?: number;
|
||||
padding?: number;
|
||||
textHeight?: number;
|
||||
titleShift?: number;
|
||||
noteMargin?: number;
|
||||
forkWidth?: number;
|
||||
forkHeight?: number;
|
||||
miniPadding?: number;
|
||||
fontSizeFactor?: number;
|
||||
fontSize?: number;
|
||||
labelHeight?: number;
|
||||
edgeLengthFactor?: string;
|
||||
compositTitleSize?: number;
|
||||
radius?: number;
|
||||
defaultRenderer?: string;
|
||||
}
|
||||
export interface ClassDiagramConfig extends BaseDiagramConfig {
|
||||
titleTopMargin?: number;
|
||||
arrowMarkerAbsolute?: boolean;
|
||||
dividerMargin?: number;
|
||||
padding?: number;
|
||||
textHeight?: number;
|
||||
defaultRenderer?: string;
|
||||
}
|
||||
export interface JourneyDiagramConfig extends BaseDiagramConfig {
|
||||
diagramMarginX?: number;
|
||||
diagramMarginY?: number;
|
||||
leftMargin?: number;
|
||||
width?: number;
|
||||
height?: number;
|
||||
boxMargin?: number;
|
||||
boxTextMargin?: number;
|
||||
noteMargin?: number;
|
||||
messageMargin?: number;
|
||||
messageAlign?: string;
|
||||
bottomMarginAdj?: number;
|
||||
rightAngles?: boolean;
|
||||
taskFontSize?: string | number;
|
||||
taskFontFamily?: string;
|
||||
taskMargin?: number;
|
||||
activationWidth?: number;
|
||||
textPlacement?: string;
|
||||
actorColours?: string[];
|
||||
sectionFills?: string[];
|
||||
sectionColours?: string[];
|
||||
}
|
||||
export interface GanttDiagramConfig extends BaseDiagramConfig {
|
||||
titleTopMargin?: number;
|
||||
barHeight?: number;
|
||||
barGap?: number;
|
||||
topPadding?: number;
|
||||
rightPadding?: number;
|
||||
leftPadding?: number;
|
||||
gridLineStartPadding?: number;
|
||||
fontSize?: number;
|
||||
sectionFontSize?: string | number;
|
||||
numberSectionStyles?: number;
|
||||
axisFormat?: string;
|
||||
tickInterval?: string;
|
||||
topAxis?: boolean;
|
||||
}
|
||||
export interface SequenceDiagramConfig extends BaseDiagramConfig {
|
||||
arrowMarkerAbsolute?: boolean;
|
||||
hideUnusedParticipants?: boolean;
|
||||
activationWidth?: number;
|
||||
diagramMarginX?: number;
|
||||
diagramMarginY?: number;
|
||||
actorMargin?: number;
|
||||
width?: number;
|
||||
height?: number;
|
||||
boxMargin?: number;
|
||||
boxTextMargin?: number;
|
||||
noteMargin?: number;
|
||||
messageMargin?: number;
|
||||
messageAlign?: string;
|
||||
mirrorActors?: boolean;
|
||||
forceMenus?: boolean;
|
||||
bottomMarginAdj?: number;
|
||||
rightAngles?: boolean;
|
||||
showSequenceNumbers?: boolean;
|
||||
actorFontSize?: string | number;
|
||||
actorFontFamily?: string;
|
||||
actorFontWeight?: string | number;
|
||||
noteFontSize?: string | number;
|
||||
noteFontFamily?: string;
|
||||
noteFontWeight?: string | number;
|
||||
noteAlign?: string;
|
||||
messageFontSize?: string | number;
|
||||
messageFontFamily?: string;
|
||||
messageFontWeight?: string | number;
|
||||
wrap?: boolean;
|
||||
wrapPadding?: number;
|
||||
labelBoxWidth?: number;
|
||||
labelBoxHeight?: number;
|
||||
messageFont?: FontCalculator;
|
||||
noteFont?: FontCalculator;
|
||||
actorFont?: FontCalculator;
|
||||
}
|
||||
export interface FlowchartDiagramConfig extends BaseDiagramConfig {
|
||||
titleTopMargin?: number;
|
||||
arrowMarkerAbsolute?: boolean;
|
||||
diagramPadding?: number;
|
||||
htmlLabels?: boolean;
|
||||
nodeSpacing?: number;
|
||||
rankSpacing?: number;
|
||||
curve?: string;
|
||||
padding?: number;
|
||||
defaultRenderer?: string;
|
||||
}
|
||||
export interface FontConfig {
|
||||
fontSize?: string | number;
|
||||
fontFamily?: string;
|
||||
fontWeight?: string | number;
|
||||
}
|
||||
export declare type FontCalculator = () => Partial<FontConfig>;
|
||||
export {};
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
export function insertCluster(elem: any, node: any): void;
|
||||
export function getClusterTitleWidth(elem: any, node: any): number;
|
||||
export function clear(): void;
|
||||
export function positionCluster(node: any): void;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export default createLabel;
|
||||
declare function createLabel(_vertexText: any, style: any, isTitle: any, isNode: any): SVGTextElement | SVGForeignObjectElement;
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
export function clear(): void;
|
||||
export function insertEdgeLabel(elem: any, edge: any): void;
|
||||
export function positionEdgeLabel(edge: any, paths: any): void;
|
||||
export function intersection(node: any, outsidePoint: any, insidePoint: any): {
|
||||
x: any;
|
||||
y: number;
|
||||
} | {
|
||||
x: number;
|
||||
y: any;
|
||||
};
|
||||
export function insertEdge(elem: any, e: any, edge: any, clusterDb: any, diagramType: any, graph: any): {
|
||||
updatedPath: any;
|
||||
originalPath: any;
|
||||
};
|
||||
+1
@@ -0,0 +1 @@
|
||||
export function render(elem: any, graph: any, markers: any, diagramtype: any, id: any): void;
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
declare namespace _default {
|
||||
export { node };
|
||||
export { circle };
|
||||
export { ellipse };
|
||||
export { polygon };
|
||||
export { rect };
|
||||
}
|
||||
export default _default;
|
||||
import node from "./intersect-node.js";
|
||||
import circle from "./intersect-circle.js";
|
||||
import ellipse from "./intersect-ellipse.js";
|
||||
import polygon from "./intersect-polygon.js";
|
||||
import rect from "./intersect-rect.js";
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
export default intersectCircle;
|
||||
/**
|
||||
* @param node
|
||||
* @param rx
|
||||
* @param point
|
||||
*/
|
||||
declare function intersectCircle(node: any, rx: any, point: any): {
|
||||
x: any;
|
||||
y: any;
|
||||
};
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
export default intersectEllipse;
|
||||
/**
|
||||
* @param node
|
||||
* @param rx
|
||||
* @param ry
|
||||
* @param point
|
||||
*/
|
||||
declare function intersectEllipse(node: any, rx: any, ry: any, point: any): {
|
||||
x: any;
|
||||
y: any;
|
||||
};
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
export default intersectLine;
|
||||
/**
|
||||
* Returns the point at which two lines, p and q, intersect or returns undefined if they do not intersect.
|
||||
*
|
||||
* @param p1
|
||||
* @param p2
|
||||
* @param q1
|
||||
* @param q2
|
||||
*/
|
||||
declare function intersectLine(p1: any, p2: any, q1: any, q2: any): {
|
||||
x: number;
|
||||
y: number;
|
||||
} | undefined;
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
export default intersectNode;
|
||||
/**
|
||||
* @param node
|
||||
* @param point
|
||||
*/
|
||||
declare function intersectNode(node: any, point: any): any;
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
export default intersectPolygon;
|
||||
/**
|
||||
* Returns the point ({x, y}) at which the point argument intersects with the node argument assuming
|
||||
* that it has the shape specified by polygon.
|
||||
*
|
||||
* @param node
|
||||
* @param polyPoints
|
||||
* @param point
|
||||
*/
|
||||
declare function intersectPolygon(node: any, polyPoints: any, point: any): any;
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
export default intersectRect;
|
||||
declare function intersectRect(node: any, point: any): {
|
||||
x: any;
|
||||
y: any;
|
||||
};
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export default insertMarkers;
|
||||
declare function insertMarkers(elem: any, markerArray: any, type: any, id: any): void;
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
export let clusterDb: {};
|
||||
export function clear(): void;
|
||||
export function extractDescendants(id: any, graph: any): any[];
|
||||
export function validate(graph: any): boolean;
|
||||
export function findNonClusterChild(id: any, graph: any): any;
|
||||
export function adjustClustersAndEdges(graph: any, depth: any): void;
|
||||
export function extractor(graph: any, depth: any): void;
|
||||
export function sortNodesByHierarchy(graph: any): any;
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
export function insertNode(elem: any, node: any, dir: any): void;
|
||||
export function setNodeElem(elem: any, node: any): void;
|
||||
export function clear(): void;
|
||||
export function positionNode(node: any): any;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export default note;
|
||||
declare function note(parent: any, node: any): any;
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @param parent
|
||||
* @param w
|
||||
* @param h
|
||||
* @param points
|
||||
*/
|
||||
export function insertPolygonShape(parent: any, w: any, h: any, points: any): any;
|
||||
export function labelHelper(parent: any, node: any, _classes: any, isNode: any): {
|
||||
shapeSvg: any;
|
||||
bbox: any;
|
||||
halfPadding: number;
|
||||
label: any;
|
||||
};
|
||||
export function updateNodeBounds(node: any, element: any): void;
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
import { MermaidConfig } from './config.type';
|
||||
/**
|
||||
* **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click
|
||||
* here](8.6.0_docs.md)].**
|
||||
*
|
||||
* ## **What follows are config instructions for older versions**
|
||||
*
|
||||
* These are the default options which can be overridden with the initialization call like so:
|
||||
*
|
||||
* **Example 1:**
|
||||
*
|
||||
* ```js
|
||||
* mermaid.initialize({ flowchart:{ htmlLabels: false } });
|
||||
* ```
|
||||
*
|
||||
* **Example 2:**
|
||||
*
|
||||
* ```html
|
||||
* <script>
|
||||
* const config = {
|
||||
* startOnLoad:true,
|
||||
* flowchart:{ useMaxWidth:true, htmlLabels:true, curve:'cardinal'},
|
||||
* securityLevel:'loose',
|
||||
* };
|
||||
* mermaid.initialize(config);
|
||||
* </script>
|
||||
* ```
|
||||
*
|
||||
* A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults).
|
||||
* A description of each option follows below.
|
||||
*/
|
||||
declare const config: Partial<MermaidConfig>;
|
||||
export declare const configKeys: string[];
|
||||
export default config;
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
import { MermaidConfig } from '../config.type';
|
||||
import { DiagramDetector, DiagramLoader } from './types';
|
||||
/**
|
||||
* Detects the type of the graph text.
|
||||
*
|
||||
* Takes into consideration the possible existence of an `%%init` directive
|
||||
*
|
||||
* @param text - The text defining the graph. For example:
|
||||
*
|
||||
* ```mermaid
|
||||
* %%{initialize: {"startOnLoad": true, logLevel: "fatal" }}%%
|
||||
* graph LR
|
||||
* a-->b
|
||||
* b-->c
|
||||
* c-->d
|
||||
* d-->e
|
||||
* e-->f
|
||||
* f-->g
|
||||
* g-->h
|
||||
* ```
|
||||
*
|
||||
* @param config - The mermaid config.
|
||||
* @returns A graph definition key
|
||||
*/
|
||||
export declare const detectType: (text: string, config?: MermaidConfig) => string;
|
||||
export declare const addDetector: (key: string, detector: DiagramDetector, loader?: DiagramLoader) => void;
|
||||
export declare const getDiagramLoader: (key: string) => DiagramLoader | undefined;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export declare const addDiagrams: () => void;
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
import { DiagramDefinition, DiagramDetector } from './types';
|
||||
export declare const log: Record<import("../logger").LogLevel, {
|
||||
(...data: any[]): void;
|
||||
(message?: any, ...optionalParams: any[]): void;
|
||||
}>;
|
||||
export declare const setLogLevel: (level?: string | number) => void;
|
||||
export declare const getConfig: () => import("../config.type").MermaidConfig;
|
||||
export declare const sanitizeText: (text: string) => string;
|
||||
export declare const setupGraphViewbox: (graph: any, svgElem: any, padding: any, useMaxWidth: any) => void;
|
||||
export interface Detectors {
|
||||
[key: string]: DiagramDetector;
|
||||
}
|
||||
/**
|
||||
* Registers the given diagram with Mermaid.
|
||||
*
|
||||
* Can be used for third-party custom diagrams.
|
||||
*
|
||||
* @param id - A unique ID for the given diagram.
|
||||
* @param diagram - The diagram definition.
|
||||
* @param detector - Function that returns `true` if a given mermaid text is this diagram definition.
|
||||
*/
|
||||
export declare const registerDiagram: (id: string, diagram: DiagramDefinition, detector?: DiagramDetector) => void;
|
||||
export declare const getDiagram: (name: string) => DiagramDefinition;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import { DiagramDb } from './types';
|
||||
export declare const frontMatterRegex: RegExp;
|
||||
/**
|
||||
* Extract and parse frontmatter from text, if present, and sets appropriate
|
||||
* properties in the provided db.
|
||||
* @param text - The text that may have a YAML frontmatter.
|
||||
* @param db - Diagram database, could be of any diagram.
|
||||
* @returns text with frontmatter stripped out
|
||||
*/
|
||||
export declare function extractFrontMatter(text: string, db: DiagramDb): string;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
import { MermaidConfig } from '../config.type';
|
||||
export interface InjectUtils {
|
||||
_log: any;
|
||||
_setLogLevel: any;
|
||||
_getConfig: any;
|
||||
_sanitizeText: any;
|
||||
_setupGraphViewbox: any;
|
||||
}
|
||||
/**
|
||||
* Generic Diagram DB that may apply to any diagram type.
|
||||
*/
|
||||
export interface DiagramDb {
|
||||
clear?: () => void;
|
||||
setDiagramTitle?: (title: string) => void;
|
||||
getAccTitle?: () => string;
|
||||
getAccDescription?: () => string;
|
||||
}
|
||||
export interface DiagramDefinition {
|
||||
db: DiagramDb;
|
||||
renderer: any;
|
||||
parser: any;
|
||||
styles: any;
|
||||
init?: (config: MermaidConfig) => void;
|
||||
injectUtils?: (_log: InjectUtils['_log'], _setLogLevel: InjectUtils['_setLogLevel'], _getConfig: InjectUtils['_getConfig'], _sanitizeText: InjectUtils['_sanitizeText'], _setupGraphViewbox: InjectUtils['_setupGraphViewbox']) => void;
|
||||
}
|
||||
export interface DetectorRecord {
|
||||
detector: DiagramDetector;
|
||||
loader?: DiagramLoader;
|
||||
}
|
||||
export interface ExternalDiagramDefinition {
|
||||
id: string;
|
||||
detector: DiagramDetector;
|
||||
loader: DiagramLoader;
|
||||
}
|
||||
export declare type DiagramDetector = (text: string, config?: MermaidConfig) => boolean;
|
||||
export declare type DiagramLoader = () => Promise<{
|
||||
id: string;
|
||||
diagram: DiagramDefinition;
|
||||
}>;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+116
@@ -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
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const c4Detector: DiagramDetector;
|
||||
+12
@@ -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
@@ -0,0 +1,2 @@
|
||||
export default getStyles;
|
||||
declare function getStyles(options: any): string;
|
||||
+50
@@ -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
@@ -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
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const classDetectorV2: DiagramDetector;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const classDetector: DiagramDetector;
|
||||
+22
@@ -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
@@ -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
@@ -0,0 +1,2 @@
|
||||
export default getStyles;
|
||||
declare function getStyles(options: any): string;
|
||||
+28
@@ -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
@@ -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
@@ -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
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const erDetector: DiagramDetector;
|
||||
+22
@@ -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
@@ -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
@@ -0,0 +1,2 @@
|
||||
export default getStyles;
|
||||
declare function getStyles(options: any): string;
|
||||
+19
@@ -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
@@ -0,0 +1,2 @@
|
||||
export default getStyles;
|
||||
declare function getStyles(): string;
|
||||
+9
@@ -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
@@ -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
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const flowDetectorV2: DiagramDetector;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const flowDetector: DiagramDetector;
|
||||
+13
@@ -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
@@ -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
@@ -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
@@ -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
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const ganttDetector: DiagramDetector;
|
||||
+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;
|
||||
+63
@@ -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
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const gitGraphDetector: DiagramDetector;
|
||||
+5
@@ -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
@@ -0,0 +1,2 @@
|
||||
export default getStyles;
|
||||
declare function getStyles(options: any): string;
|
||||
+13
@@ -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
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const infoDetector: DiagramDetector;
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
export function draw(text: any, id: any, version: any): void;
|
||||
declare namespace _default {
|
||||
export { draw };
|
||||
}
|
||||
export default _default;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export default getStyles;
|
||||
declare function getStyles(): string;
|
||||
+30
@@ -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
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const pieDetector: DiagramDetector;
|
||||
+5
@@ -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
@@ -0,0 +1,2 @@
|
||||
export default getStyles;
|
||||
declare function getStyles(options: any): string;
|
||||
+72
@@ -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;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const requirementDetector: DiagramDetector;
|
||||
+10
@@ -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;
|
||||
+7
@@ -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
@@ -0,0 +1,2 @@
|
||||
export default getStyles;
|
||||
declare function getStyles(options: any): string;
|
||||
+108
@@ -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
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const sequenceDetector: DiagramDetector;
|
||||
+188
@@ -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
@@ -0,0 +1,2 @@
|
||||
export default getStyles;
|
||||
declare function getStyles(options: any): string;
|
||||
+77
@@ -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
@@ -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;
|
||||
+32
@@ -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
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
export declare const journeyDetector: DiagramDetector;
|
||||
+30
@@ -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
@@ -0,0 +1,2 @@
|
||||
export default getStyles;
|
||||
declare function getStyles(options: any): string;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user