mx-ui-components
Version:
mobius ui library
45 lines (44 loc) • 1.39 kB
TypeScript
import BaseComponent from "../Counter/BaseComponent";
export default class ConnectionFlow extends BaseComponent {
private nodes;
private props;
noderegister: any;
private curvature;
private zoom;
private connection_ele;
private connectionStyles;
constructor();
static get observedAttributes(): string[];
connectedCallback(): void;
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
private removeAllConnections;
private createConnections;
createNode(nodeEle: any): INode;
addNode(nodeEle: any): void;
updateNodes(nodeElement: any): void;
drawConnection(sourceNodeEle: any, targetNodeEle: any, connectionLineStyles?: any): void;
updateConnection(sourceNodeEle: any, targetNodeEle: any): void;
createCurvature(start_pos_x: number, start_pos_y: number, end_pos_x: number, end_pos_y: number, curvature_value: number, type?: string): string;
}
export { ConnectionFlow };
export interface INode {
id: string;
name?: string;
isPresent: boolean;
typenode?: boolean;
data?: any;
html?: any;
pos_x?: number;
pos_y?: number;
connections?: Edge[];
inNodes?: string[];
outNodes?: string[];
connectionLineStyles?: string[];
}
export type NodalInfo = {
nodeId: string;
};
export interface Edge {
type?: any;
nodeId: string;
}