48 lines
2.4 KiB
TypeScript
48 lines
2.4 KiB
TypeScript
import type { WardleyAxesConfig } from './wardleyBuilder.js';
|
|
declare function getConfig(): import("../../config.type.js").WardleyDiagramConfig | undefined;
|
|
declare function addNode(id: string, label: string, x: number, y: number, className?: string, labelOffsetX?: number, labelOffsetY?: number, inertia?: boolean, sourceStrategy?: 'build' | 'buy' | 'outsource' | 'market'): void;
|
|
declare function addLink(sourceId: string, targetId: string, dashed?: boolean, label?: string, flow?: 'forward' | 'backward' | 'bidirectional'): void;
|
|
declare function addTrend(nodeId: string, targetX: number, targetY: number): void;
|
|
declare function addAnnotation(number: number, coordinates: {
|
|
x: number;
|
|
y: number;
|
|
}[], text?: string): void;
|
|
declare function addNote(text: string, x: number, y: number): void;
|
|
declare function addAccelerator(name: string, x: number, y: number): void;
|
|
declare function addDeaccelerator(name: string, x: number, y: number): void;
|
|
declare function setAnnotationsBox(x: number, y: number): void;
|
|
declare function setSize(width: number, height: number): void;
|
|
declare function startPipeline(nodeId: string): void;
|
|
declare function addPipelineComponent(pipelineNodeId: string, componentId: string): void;
|
|
declare function updateAxes(partial: WardleyAxesConfig): void;
|
|
declare function getNode(id: string): import("./wardleyBuilder.js").WardleyNode | undefined;
|
|
declare function resolveNodeId(name: string): string;
|
|
declare function getWardleyData(): import("./wardleyBuilder.js").WardleyBuildResult;
|
|
declare function clear(): void;
|
|
declare const _default: {
|
|
getConfig: typeof getConfig;
|
|
addNode: typeof addNode;
|
|
addLink: typeof addLink;
|
|
addTrend: typeof addTrend;
|
|
addAnnotation: typeof addAnnotation;
|
|
addNote: typeof addNote;
|
|
addAccelerator: typeof addAccelerator;
|
|
addDeaccelerator: typeof addDeaccelerator;
|
|
setAnnotationsBox: typeof setAnnotationsBox;
|
|
setSize: typeof setSize;
|
|
startPipeline: typeof startPipeline;
|
|
addPipelineComponent: typeof addPipelineComponent;
|
|
updateAxes: typeof updateAxes;
|
|
getNode: typeof getNode;
|
|
resolveNodeId: typeof resolveNodeId;
|
|
getWardleyData: typeof getWardleyData;
|
|
clear: typeof clear;
|
|
setAccTitle: (txt: string) => void;
|
|
getAccTitle: () => string;
|
|
setDiagramTitle: (txt: string) => void;
|
|
getDiagramTitle: () => string;
|
|
getAccDescription: () => string;
|
|
setAccDescription: (txt: string) => void;
|
|
};
|
|
export default _default;
|