add hw2
This commit is contained in:
137
node_modules/mermaid/dist/diagrams/sequence/sequenceDb.d.ts
generated
vendored
Normal file
137
node_modules/mermaid/dist/diagrams/sequence/sequenceDb.d.ts
generated
vendored
Normal file
@@ -0,0 +1,137 @@
|
||||
import type { DiagramDB } from '../../diagram-api/types.js';
|
||||
import type { Actor, AddMessageParams, Box, Message } from './types.js';
|
||||
declare const LINETYPE: {
|
||||
readonly SOLID: 0;
|
||||
readonly DOTTED: 1;
|
||||
readonly NOTE: 2;
|
||||
readonly SOLID_CROSS: 3;
|
||||
readonly DOTTED_CROSS: 4;
|
||||
readonly SOLID_OPEN: 5;
|
||||
readonly DOTTED_OPEN: 6;
|
||||
readonly LOOP_START: 10;
|
||||
readonly LOOP_END: 11;
|
||||
readonly ALT_START: 12;
|
||||
readonly ALT_ELSE: 13;
|
||||
readonly ALT_END: 14;
|
||||
readonly OPT_START: 15;
|
||||
readonly OPT_END: 16;
|
||||
readonly ACTIVE_START: 17;
|
||||
readonly ACTIVE_END: 18;
|
||||
readonly PAR_START: 19;
|
||||
readonly PAR_AND: 20;
|
||||
readonly PAR_END: 21;
|
||||
readonly RECT_START: 22;
|
||||
readonly RECT_END: 23;
|
||||
readonly SOLID_POINT: 24;
|
||||
readonly DOTTED_POINT: 25;
|
||||
readonly AUTONUMBER: 26;
|
||||
readonly CRITICAL_START: 27;
|
||||
readonly CRITICAL_OPTION: 28;
|
||||
readonly CRITICAL_END: 29;
|
||||
readonly BREAK_START: 30;
|
||||
readonly BREAK_END: 31;
|
||||
readonly PAR_OVER_START: 32;
|
||||
readonly BIDIRECTIONAL_SOLID: 33;
|
||||
readonly BIDIRECTIONAL_DOTTED: 34;
|
||||
};
|
||||
declare const ARROWTYPE: {
|
||||
readonly FILLED: 0;
|
||||
readonly OPEN: 1;
|
||||
};
|
||||
declare const PLACEMENT: {
|
||||
readonly LEFTOF: 0;
|
||||
readonly RIGHTOF: 1;
|
||||
readonly OVER: 2;
|
||||
};
|
||||
export declare const PARTICIPANT_TYPE: {
|
||||
readonly ACTOR: "actor";
|
||||
readonly BOUNDARY: "boundary";
|
||||
readonly COLLECTIONS: "collections";
|
||||
readonly CONTROL: "control";
|
||||
readonly DATABASE: "database";
|
||||
readonly ENTITY: "entity";
|
||||
readonly PARTICIPANT: "participant";
|
||||
readonly QUEUE: "queue";
|
||||
};
|
||||
export declare class SequenceDB implements DiagramDB {
|
||||
private readonly state;
|
||||
constructor();
|
||||
addBox(data: {
|
||||
text: string;
|
||||
color: string;
|
||||
wrap: boolean;
|
||||
}): void;
|
||||
addActor(id: string, name: string, description: {
|
||||
text: string;
|
||||
wrap?: boolean | null;
|
||||
type: string;
|
||||
}, type: string, metadata?: any): void;
|
||||
private activationCount;
|
||||
addMessage(idFrom: Message['from'], idTo: Message['to'], message: {
|
||||
text: string;
|
||||
wrap?: boolean;
|
||||
}, answer: Message['answer']): void;
|
||||
addSignal(idFrom?: Message['from'], idTo?: Message['to'], message?: {
|
||||
text: string;
|
||||
wrap: boolean;
|
||||
}, messageType?: number, activate?: boolean): boolean;
|
||||
hasAtLeastOneBox(): boolean;
|
||||
hasAtLeastOneBoxWithTitle(): boolean;
|
||||
getMessages(): Message[];
|
||||
getBoxes(): Box[];
|
||||
getActors(): Map<string, Actor>;
|
||||
getCreatedActors(): Map<string, number>;
|
||||
getDestroyedActors(): Map<string, number>;
|
||||
getActor(id: string): Actor;
|
||||
getActorKeys(): string[];
|
||||
enableSequenceNumbers(): void;
|
||||
disableSequenceNumbers(): void;
|
||||
showSequenceNumbers(): boolean;
|
||||
setWrap(wrapSetting?: boolean): void;
|
||||
private extractWrap;
|
||||
autoWrap(): boolean;
|
||||
clear(): void;
|
||||
parseMessage(str: string): {
|
||||
text: string | undefined;
|
||||
wrap: boolean | undefined;
|
||||
};
|
||||
parseBoxData(str: string): {
|
||||
text: string | undefined;
|
||||
color: string;
|
||||
wrap: boolean | undefined;
|
||||
};
|
||||
readonly LINETYPE: typeof LINETYPE;
|
||||
readonly ARROWTYPE: typeof ARROWTYPE;
|
||||
readonly PLACEMENT: typeof PLACEMENT;
|
||||
addNote(actor: {
|
||||
actor: string;
|
||||
}, placement: Message['placement'], message: {
|
||||
text: string;
|
||||
wrap?: boolean;
|
||||
}): void;
|
||||
addLinks(actorId: string, text: {
|
||||
text: string;
|
||||
}): void;
|
||||
addALink(actorId: string, text: {
|
||||
text: string;
|
||||
}): void;
|
||||
private insertLinks;
|
||||
addProperties(actorId: string, text: {
|
||||
text: string;
|
||||
}): void;
|
||||
private insertProperties;
|
||||
private boxEnd;
|
||||
addDetails(actorId: string, text: {
|
||||
text: string;
|
||||
}): void;
|
||||
getActorProperty(actor: Actor, key: string): unknown;
|
||||
apply(param: any | AddMessageParams | AddMessageParams[]): void;
|
||||
setAccTitle: (txt: string) => void;
|
||||
setAccDescription: (txt: string) => void;
|
||||
setDiagramTitle: (txt: string) => void;
|
||||
getAccTitle: () => string;
|
||||
getAccDescription: () => string;
|
||||
getDiagramTitle: () => string;
|
||||
getConfig(): import("../../config.type.js").SequenceDiagramConfig | undefined;
|
||||
}
|
||||
export {};
|
||||
3
node_modules/mermaid/dist/diagrams/sequence/sequenceDetector.d.ts
generated
vendored
Normal file
3
node_modules/mermaid/dist/diagrams/sequence/sequenceDetector.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import type { ExternalDiagramDefinition } from '../../diagram-api/types.js';
|
||||
declare const plugin: ExternalDiagramDefinition;
|
||||
export default plugin;
|
||||
2
node_modules/mermaid/dist/diagrams/sequence/sequenceDiagram.d.ts
generated
vendored
Normal file
2
node_modules/mermaid/dist/diagrams/sequence/sequenceDiagram.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import type { DiagramDefinition } from '../../diagram-api/types.js';
|
||||
export declare const diagram: DiagramDefinition;
|
||||
202
node_modules/mermaid/dist/diagrams/sequence/sequenceRenderer.d.ts
generated
vendored
Normal file
202
node_modules/mermaid/dist/diagrams/sequence/sequenceRenderer.d.ts
generated
vendored
Normal file
@@ -0,0 +1,202 @@
|
||||
import type { Diagram } from '../../Diagram.js';
|
||||
export declare const bounds: {
|
||||
data: {
|
||||
startx: undefined;
|
||||
stopx: undefined;
|
||||
starty: undefined;
|
||||
stopy: undefined;
|
||||
};
|
||||
verticalPos: number;
|
||||
sequenceItems: never[];
|
||||
activations: never[];
|
||||
models: {
|
||||
getHeight: () => any;
|
||||
clear: () => void;
|
||||
addBox: (boxModel: any) => 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[];
|
||||
boxes: 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;
|
||||
isLoopOverlap: () => any;
|
||||
addSectionToLoop: (message: any) => void;
|
||||
saveVerticalPos: () => void;
|
||||
resetVerticalPos: () => void;
|
||||
bumpVerticalPos: (bump: any) => void;
|
||||
getVerticalPos: () => number;
|
||||
getBounds: () => {
|
||||
bounds: {
|
||||
startx: undefined;
|
||||
stopx: undefined;
|
||||
starty: undefined;
|
||||
stopy: undefined;
|
||||
};
|
||||
models: {
|
||||
getHeight: () => any;
|
||||
clear: () => void;
|
||||
addBox: (boxModel: any) => 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[];
|
||||
boxes: never[];
|
||||
loops: never[];
|
||||
messages: never[];
|
||||
notes: never[];
|
||||
};
|
||||
};
|
||||
};
|
||||
export declare const drawActors: (diagram: any, actors: any, actorKeys: any, isFooter: any) => Promise<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) => Promise<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;
|
||||
addBox: (boxModel: any) => 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[];
|
||||
boxes: 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;
|
||||
isLoopOverlap: () => any;
|
||||
addSectionToLoop: (message: any) => void;
|
||||
saveVerticalPos: () => void;
|
||||
resetVerticalPos: () => void;
|
||||
bumpVerticalPos: (bump: any) => void;
|
||||
getVerticalPos: () => number;
|
||||
getBounds: () => {
|
||||
bounds: {
|
||||
startx: undefined;
|
||||
stopx: undefined;
|
||||
starty: undefined;
|
||||
stopy: undefined;
|
||||
};
|
||||
models: {
|
||||
getHeight: () => any;
|
||||
clear: () => void;
|
||||
addBox: (boxModel: any) => 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[];
|
||||
boxes: never[];
|
||||
loops: never[];
|
||||
messages: never[];
|
||||
notes: never[];
|
||||
};
|
||||
};
|
||||
};
|
||||
drawActors: (diagram: any, actors: any, actorKeys: any, isFooter: any) => Promise<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) => Promise<void>;
|
||||
};
|
||||
export default _default;
|
||||
2
node_modules/mermaid/dist/diagrams/sequence/styles.d.ts
generated
vendored
Normal file
2
node_modules/mermaid/dist/diagrams/sequence/styles.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export default getStyles;
|
||||
declare function getStyles(options: any): string;
|
||||
73
node_modules/mermaid/dist/diagrams/sequence/svgDraw.d.ts
generated
vendored
Normal file
73
node_modules/mermaid/dist/diagrams/sequence/svgDraw.d.ts
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
export const ACTOR_TYPE_WIDTH: number;
|
||||
export function drawRect(elem: any, rectData: any): import("../common/commonTypes.js").D3RectElement;
|
||||
export function drawPopup(elem: any, actor: any, minMenuWidth: any, textAttrs: any, forceMenus: any): {
|
||||
height: any;
|
||||
width: any;
|
||||
};
|
||||
export function drawKatex(elem: any, textData: any, msgModel?: null): Promise<any[]>;
|
||||
export function drawText(elem: any, textData: any): any[];
|
||||
export function drawLabel(elem: any, txtObject: any): any;
|
||||
export function fixLifeLineHeights(diagram: any, actors: any, actorKeys: any, conf: any): void;
|
||||
export function drawActor(elem: any, actor: any, conf: any, isFooter: any): Promise<any>;
|
||||
export function drawBox(elem: any, box: any, conf: any): void;
|
||||
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 { drawBox };
|
||||
export { drawPopup };
|
||||
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 { fixLifeLineHeights };
|
||||
export { sanitizeUrl };
|
||||
}
|
||||
export default _default;
|
||||
import { sanitizeUrl } from '@braintree/sanitize-url';
|
||||
50
node_modules/mermaid/dist/diagrams/sequence/types.d.ts
generated
vendored
Normal file
50
node_modules/mermaid/dist/diagrams/sequence/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
export interface Box {
|
||||
name: string;
|
||||
wrap: boolean;
|
||||
fill: string;
|
||||
actorKeys: string[];
|
||||
}
|
||||
export interface Actor {
|
||||
box?: Box;
|
||||
name: string;
|
||||
description: string;
|
||||
wrap: boolean;
|
||||
prevActor?: string;
|
||||
nextActor?: string;
|
||||
links: Record<string, unknown>;
|
||||
properties: Record<string, unknown>;
|
||||
actorCnt: number | null;
|
||||
rectData: unknown;
|
||||
type: string;
|
||||
}
|
||||
export interface Message {
|
||||
id: string;
|
||||
from?: string;
|
||||
to?: string;
|
||||
message: string | {
|
||||
start: number;
|
||||
step: number;
|
||||
visible: boolean;
|
||||
};
|
||||
wrap: boolean;
|
||||
answer?: unknown;
|
||||
type?: number;
|
||||
activate?: boolean;
|
||||
placement?: string;
|
||||
}
|
||||
export interface AddMessageParams {
|
||||
from: string;
|
||||
to: string;
|
||||
msg: string;
|
||||
signalType: number;
|
||||
type: 'addMessage' | 'sequenceIndex' | 'addParticipant' | 'createParticipant' | 'destroyParticipant' | 'activeStart' | 'activeEnd' | 'addNote' | 'addLinks' | 'addALink' | 'addProperties' | 'addDetails' | 'boxStart' | 'boxEnd' | 'loopStart' | 'loopEnd' | 'rectStart' | 'rectEnd' | 'optStart' | 'optEnd' | 'altStart' | 'else' | 'altEnd' | 'setAccTitle' | 'parStart' | 'parAnd' | 'parEnd' | 'and' | 'criticalStart' | 'criticalOption' | 'option' | 'criticalEnd' | 'breakStart' | 'breakEnd' | 'parOverStart' | 'parOverEnd' | 'parOverAnd';
|
||||
activate: boolean;
|
||||
}
|
||||
export interface Note {
|
||||
actor: {
|
||||
actor: string;
|
||||
};
|
||||
placement: Message['placement'];
|
||||
message: string;
|
||||
wrap: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user