config redirect

This commit is contained in:
Nuno Coração
2023-01-29 22:30:24 +00:00
parent 17557c7d73
commit 5fb4bd8083
9905 changed files with 1258996 additions and 36355 deletions
+108
View File
@@ -0,0 +1,108 @@
export function parseDirective(statement: any, context: any, type: any): void;
export function addActor(id: any, name: any, description: any, type: any): void;
export function addMessage(idFrom: any, idTo: any, message: any, answer: any): void;
export function addSignal(idFrom: any, idTo: any, message: {
text: undefined;
wrap: undefined;
} | undefined, messageType: any): boolean;
export function getMessages(): any[];
export function getActors(): {};
export function getActor(id: any): any;
export function getActorKeys(): string[];
export function enableSequenceNumbers(): void;
export function disableSequenceNumbers(): void;
export function showSequenceNumbers(): boolean;
export function setWrap(wrapSetting: any): void;
export function autoWrap(): any;
export function clear(): void;
export function parseMessage(str: any): {
text: any;
wrap: boolean | undefined;
};
export namespace LINETYPE {
const SOLID: number;
const DOTTED: number;
const NOTE: number;
const SOLID_CROSS: number;
const DOTTED_CROSS: number;
const SOLID_OPEN: number;
const DOTTED_OPEN: number;
const LOOP_START: number;
const LOOP_END: number;
const ALT_START: number;
const ALT_ELSE: number;
const ALT_END: number;
const OPT_START: number;
const OPT_END: number;
const ACTIVE_START: number;
const ACTIVE_END: number;
const PAR_START: number;
const PAR_AND: number;
const PAR_END: number;
const RECT_START: number;
const RECT_END: number;
const SOLID_POINT: number;
const DOTTED_POINT: number;
const AUTONUMBER: number;
const CRITICAL_START: number;
const CRITICAL_OPTION: number;
const CRITICAL_END: number;
const BREAK_START: number;
const BREAK_END: number;
}
export namespace ARROWTYPE {
const FILLED: number;
const OPEN: number;
}
export namespace PLACEMENT {
const LEFTOF: number;
const RIGHTOF: number;
const OVER: number;
}
export function addNote(actor: any, placement: any, message: any): void;
export function addLinks(actorId: any, text: any): void;
export function addALink(actorId: any, text: any): void;
export function addProperties(actorId: any, text: any): void;
export function addDetails(actorId: any, text: any): void;
export function getActorProperty(actor: any, key: any): any;
export function apply(param: any): void;
declare namespace _default {
export { addActor };
export { addMessage };
export { addSignal };
export { addLinks };
export { addDetails };
export { addProperties };
export { autoWrap };
export { setWrap };
export { enableSequenceNumbers };
export { disableSequenceNumbers };
export { showSequenceNumbers };
export { getMessages };
export { getActors };
export { getActor };
export { getActorKeys };
export { getActorProperty };
export { getAccTitle };
export { getDiagramTitle };
export { setDiagramTitle };
export { parseDirective };
export function getConfig(): import("../../config.type").SequenceDiagramConfig | undefined;
export { clear };
export { parseMessage };
export { LINETYPE };
export { ARROWTYPE };
export { PLACEMENT };
export { addNote };
export { setAccTitle };
export { apply };
export { setAccDescription };
export { getAccDescription };
}
export default _default;
import { getAccTitle } from "../../commonDb";
import { getDiagramTitle } from "../../commonDb";
import { setDiagramTitle } from "../../commonDb";
import { setAccTitle } from "../../commonDb";
import { setAccDescription } from "../../commonDb";
import { getAccDescription } from "../../commonDb";
+2
View File
@@ -0,0 +1,2 @@
import type { DiagramDetector } from '../../diagram-api/types';
export declare const sequenceDetector: DiagramDetector;
+188
View File
@@ -0,0 +1,188 @@
import Diagram from '../../Diagram';
export declare const bounds: {
data: {
startx: undefined;
stopx: undefined;
starty: undefined;
stopy: undefined;
};
verticalPos: number;
sequenceItems: never[];
activations: never[];
models: {
getHeight: () => any;
clear: () => void;
addActor: (actorModel: any) => void;
addLoop: (loopModel: any) => void;
addMessage: (msgModel: any) => void;
addNote: (noteModel: any) => void;
lastActor: () => never;
lastLoop: () => never;
lastMessage: () => never;
lastNote: () => never;
actors: never[];
loops: never[];
messages: never[];
notes: never[];
};
init: () => void;
updateVal: (obj: any, key: any, val: any, fun: any) => void;
updateBounds: (startx: any, starty: any, stopx: any, stopy: any) => void;
insert: (startx: any, starty: any, stopx: any, stopy: any) => void;
newActivation: (message: any, diagram: any, actors: any) => void;
endActivation: (message: any) => never;
createLoop: (title: {
message: undefined;
wrap: boolean;
width: undefined;
} | undefined, fill: any) => {
startx: undefined;
starty: number;
stopx: undefined;
stopy: undefined;
title: undefined;
wrap: boolean;
width: undefined;
height: number;
fill: any;
};
newLoop: (title: {
message: undefined;
wrap: boolean;
width: undefined;
} | undefined, fill: any) => void;
endLoop: () => undefined;
addSectionToLoop: (message: any) => void;
bumpVerticalPos: (bump: any) => void;
getVerticalPos: () => number;
getBounds: () => {
bounds: {
startx: undefined;
stopx: undefined;
starty: undefined;
stopy: undefined;
};
models: {
getHeight: () => any;
clear: () => void;
addActor: (actorModel: any) => void;
addLoop: (loopModel: any) => void;
addMessage: (msgModel: any) => void;
addNote: (noteModel: any) => void;
lastActor: () => never;
lastLoop: () => never;
lastMessage: () => never;
lastNote: () => never;
actors: never[];
loops: never[];
messages: never[];
notes: never[];
};
};
};
export declare const drawActors: (diagram: any, actors: any, actorKeys: any, verticalPos: any, configuration: any, messages: any) => void;
export declare const drawActorsPopup: (diagram: any, actors: any, actorKeys: any, doc: any) => {
maxHeight: number;
maxWidth: number;
};
export declare const setConf: (cnf: any) => void;
/**
* Draws a sequenceDiagram in the tag with id: id based on the graph definition in text.
*
* @param _text - The text of the diagram
* @param id - The id of the diagram which will be used as a DOM element id¨
* @param _version - Mermaid version from package.json
* @param diagObj - A standard diagram containing the db and the text and type etc of the diagram
*/
export declare const draw: (_text: string, id: string, _version: string, diagObj: Diagram) => void;
declare const _default: {
bounds: {
data: {
startx: undefined;
stopx: undefined;
starty: undefined;
stopy: undefined;
};
verticalPos: number;
sequenceItems: never[];
activations: never[];
models: {
getHeight: () => any;
clear: () => void;
addActor: (actorModel: any) => void;
addLoop: (loopModel: any) => void;
addMessage: (msgModel: any) => void;
addNote: (noteModel: any) => void;
lastActor: () => never;
lastLoop: () => never;
lastMessage: () => never;
lastNote: () => never;
actors: never[];
loops: never[];
messages: never[];
notes: never[];
};
init: () => void;
updateVal: (obj: any, key: any, val: any, fun: any) => void;
updateBounds: (startx: any, starty: any, stopx: any, stopy: any) => void;
insert: (startx: any, starty: any, stopx: any, stopy: any) => void;
newActivation: (message: any, diagram: any, actors: any) => void;
endActivation: (message: any) => never;
createLoop: (title: {
message: undefined;
wrap: boolean;
width: undefined;
} | undefined, fill: any) => {
startx: undefined;
starty: number;
stopx: undefined;
stopy: undefined;
title: undefined;
wrap: boolean;
width: undefined;
height: number;
fill: any;
};
newLoop: (title: {
message: undefined;
wrap: boolean;
width: undefined;
} | undefined, fill: any) => void;
endLoop: () => undefined;
addSectionToLoop: (message: any) => void;
bumpVerticalPos: (bump: any) => void;
getVerticalPos: () => number;
getBounds: () => {
bounds: {
startx: undefined;
stopx: undefined;
starty: undefined;
stopy: undefined;
};
models: {
getHeight: () => any;
clear: () => void;
addActor: (actorModel: any) => void;
addLoop: (loopModel: any) => void;
addMessage: (msgModel: any) => void;
addNote: (noteModel: any) => void;
lastActor: () => never;
lastLoop: () => never;
lastMessage: () => never;
lastNote: () => never;
actors: never[];
loops: never[];
messages: never[];
notes: never[];
};
};
};
drawActors: (diagram: any, actors: any, actorKeys: any, verticalPos: any, configuration: any, messages: any) => void;
drawActorsPopup: (diagram: any, actors: any, actorKeys: any, doc: any) => {
maxHeight: number;
maxWidth: number;
};
setConf: (cnf: any) => void;
draw: (_text: string, id: string, _version: string, diagObj: Diagram) => void;
};
export default _default;
+2
View File
@@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(options: any): string;
+77
View File
@@ -0,0 +1,77 @@
export function drawRect(elem: any, rectData: any): any;
export function drawPopup(elem: any, actor: any, minMenuWidth: any, textAttrs: any, forceMenus: any): {
height: any;
width: any;
};
export function drawImage(elem: any, x: any, y: any, link: any): void;
export function drawEmbeddedImage(elem: any, x: any, y: any, link: any): void;
export function popupMenu(popid: any): string;
export function popdownMenu(popid: any): string;
export function drawText(elem: any, textData: any): any[];
export function drawLabel(elem: any, txtObject: any): any;
export function fixLifeLineHeights(diagram: any, bounds: any): void;
export function drawActor(elem: any, actor: any, conf: any): any;
export function anchorElement(elem: any): any;
export function drawActivation(elem: any, bounds: any, verticalPos: any, conf: any, actorActivations: any): void;
export function drawLoop(elem: any, loopModel: any, labelText: any, conf: any): any;
export function drawBackgroundRect(elem: any, bounds: any): void;
export function insertDatabaseIcon(elem: any): void;
export function insertComputerIcon(elem: any): void;
export function insertClockIcon(elem: any): void;
export function insertArrowHead(elem: any): void;
export function insertArrowFilledHead(elem: any): void;
export function insertSequenceNumber(elem: any): void;
export function insertArrowCrossHead(elem: any): void;
export function getTextObj(): {
x: number;
y: number;
fill: undefined;
anchor: undefined;
style: string;
width: undefined;
height: undefined;
textMargin: number;
rx: number;
ry: number;
tspan: boolean;
valign: undefined;
};
export function getNoteRect(): {
x: number;
y: number;
fill: string;
stroke: string;
width: number;
anchor: string;
height: number;
rx: number;
ry: number;
};
declare namespace _default {
export { drawRect };
export { drawText };
export { drawLabel };
export { drawActor };
export { drawPopup };
export { drawImage };
export { drawEmbeddedImage };
export { anchorElement };
export { drawActivation };
export { drawLoop };
export { drawBackgroundRect };
export { insertArrowHead };
export { insertArrowFilledHead };
export { insertSequenceNumber };
export { insertArrowCrossHead };
export { insertDatabaseIcon };
export { insertComputerIcon };
export { insertClockIcon };
export { getTextObj };
export { getNoteRect };
export { popupMenu };
export { popdownMenu };
export { fixLifeLineHeights };
export { sanitizeUrl };
}
export default _default;
import { sanitizeUrl } from "@braintree/sanitize-url";