28 lines
561 B
TypeScript
28 lines
561 B
TypeScript
// 连接目标信息
|
|
export type LinkTarget = number | string;
|
|
|
|
// 结点连接声明
|
|
export type sourceLinkData = LinkTarget | LinkTarget[];
|
|
|
|
// 结点指针声明
|
|
export type sourceMarkerData = string | string[];
|
|
|
|
// 源数据单元
|
|
export interface SourceNode {
|
|
id: string | number;
|
|
[key: string]: any | sourceLinkData | sourceMarkerData;
|
|
}
|
|
|
|
export interface handleUpdate {
|
|
isEnterFunction: boolean;
|
|
isFirstDebug: boolean;
|
|
}
|
|
|
|
export type Sources = {
|
|
[key: string]: {
|
|
data: SourceNode[];
|
|
layouter: string;
|
|
};
|
|
handleUpdate?: handleUpdate | any;
|
|
};
|