Christoph Cullmann 2024-04-28 17:33:09 +02:00
parent 4b35583782
commit e77051ccc4
1987 changed files with 1147290 additions and 5648 deletions

View file

@ -0,0 +1,127 @@
export function getC4Type(): any;
export function setC4Type(c4TypeParam: 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 getBoundaries(parentBoundary: any): {
alias: string;
label: {
text: string;
};
type: {
text: string;
};
tags: null;
link: null;
parentBoundary: 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 {
let SOLID: number;
let DOTTED: number;
let NOTE: number;
let SOLID_CROSS: number;
let DOTTED_CROSS: number;
let SOLID_OPEN: number;
let DOTTED_OPEN: number;
let LOOP_START: number;
let LOOP_END: number;
let ALT_START: number;
let ALT_ELSE: number;
let ALT_END: number;
let OPT_START: number;
let OPT_END: number;
let ACTIVE_START: number;
let ACTIVE_END: number;
let PAR_START: number;
let PAR_AND: number;
let PAR_END: number;
let RECT_START: number;
let RECT_END: number;
let SOLID_POINT: number;
let DOTTED_POINT: number;
}
export namespace ARROWTYPE {
let FILLED: number;
let OPEN: number;
}
export namespace PLACEMENT {
let LEFTOF: number;
let RIGHTOF: number;
let 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 { getBoundaries };
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 function getConfig(): import("../../config.type.js").C4DiagramConfig | undefined;
export { clear };
export { LINETYPE };
export { ARROWTYPE };
export { PLACEMENT };
export { setTitle };
export { setC4Type };
}
export default _default;
import { setAccTitle } from '../common/commonDb.js';
import { getAccTitle } from '../common/commonDb.js';
import { getAccDescription } from '../common/commonDb.js';
import { setAccDescription } from '../common/commonDb.js';

View file

@ -0,0 +1,3 @@
import type { ExternalDiagramDefinition } from '../../diagram-api/types.js';
declare const plugin: ExternalDiagramDefinition;
export default plugin;

View file

@ -0,0 +1,2 @@
import type { DiagramDefinition } from '../../diagram-api/types.js';
export declare const diagram: DiagramDefinition;

View file

@ -0,0 +1,12 @@
export function setConf(cnf: any): void;
export function drawBoundary(diagram: any, boundary: any, bounds: any): void;
export function drawC4ShapeArray(currentBounds: any, diagram: any, c4ShapeArray: any, c4ShapeKeys: any): void;
export function drawRels(diagram: any, rels: any, getC4ShapeObj: any, diagObj: any): void;
export function draw(_text: any, id: any, _version: any, diagObj: any): void;
declare namespace _default {
export { drawC4ShapeArray as drawPersonOrSystemArray };
export { drawBoundary };
export { setConf };
export { draw };
}
export default _default;

View file

@ -0,0 +1,2 @@
export default getStyles;
declare function getStyles(options: any): string;

View file

@ -0,0 +1,36 @@
export function drawRect(elem: any, rectData: any): import("../common/commonTypes.js").D3RectElement;
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;
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 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;