- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs
Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
27 lines
734 B
TypeScript
27 lines
734 B
TypeScript
import { Base } from "./base";
|
|
import { Model, ILayout, Node } from "./types";
|
|
interface DagreNodeData extends Node {
|
|
layer?: number;
|
|
}
|
|
export declare class Layout {
|
|
readonly layoutInstance: Base;
|
|
constructor(options: ILayout.LayoutOptions);
|
|
layout(data: Model): Model;
|
|
updateCfg(cfg: ILayout.LayoutOptions): void;
|
|
init(data: Model): void;
|
|
/**
|
|
* correcting the layers on the node data
|
|
* if min(layer) <= 0, layers should begin from abs(min(layer)) + 1
|
|
* @param nodes
|
|
* @returns
|
|
*/
|
|
correctLayers(nodes: DagreNodeData[] | undefined): void;
|
|
execute(): void;
|
|
getDefaultCfg(): {};
|
|
destroy(): void;
|
|
}
|
|
export declare const Layouts: {
|
|
[key: string]: any;
|
|
};
|
|
export {};
|