wetrade-design
Version:
一款多语言支持Vue3的UI框架
61 lines (60 loc) • 1.42 kB
TypeScript
/**
* User: CHT
* Date: 2020/5/8
* Time: 14:01
*/
/** 连线数据模型 */
export interface Link {
id: string;
startId: string;
endId: string;
startAt: number[];
endAt: number[];
meta: any;
}
export default class GraphLink {
static distance: number;
static distance_point_vector: number[];
static distance_point_merge_vector: number[];
$options: any;
key: string;
graph: any;
start: any;
meta: any;
startDirection: any;
endDirection: any;
_end: any;
_startAt: number[];
_endAt: number[];
_movePosition: any;
constructor(options: any, graph: any);
get end(): any;
set end(node: any);
get startAt(): number[];
set startAt(offset: number[]);
get endAt(): number[];
set endAt(offset: number[]);
get movePosition(): any;
set movePosition(offset: any);
get pathPointList(): {
pointList: any[];
xList: any[];
yList: any[];
minX: number;
maxX: number;
minY: number;
maxY: number;
};
startCoordinate(): any;
endCoordinate(): any;
coordinateList(): any[];
pathDirection(vertical: any, horizontal: any, Direction: any): any;
isPointInLink(position: any, pathPointList: any): boolean;
remove(): any;
toJSON(): {
[x: string]: any;
startAt: number[];
endAt: number[];
meta: any;
};
}