2024-06-10 06:23:06 -07:00
|
|
|
import type {
|
|
|
|
Connection,
|
|
|
|
Endpoint,
|
|
|
|
EndpointRepresentation,
|
|
|
|
AbstractConnector,
|
|
|
|
Overlay,
|
|
|
|
} from '@jsplumb/core';
|
2024-06-03 07:33:20 -07:00
|
|
|
import type { NodeConnectionType } from 'n8n-workflow';
|
2024-06-10 06:23:06 -07:00
|
|
|
import type { N8nEndpointLabelLength } from '@/plugins/jsplumb/N8nPlusEndpointType';
|
2024-06-03 07:33:20 -07:00
|
|
|
|
|
|
|
declare module '@jsplumb/core' {
|
|
|
|
interface EndpointRepresentation {
|
|
|
|
canvas: HTMLElement;
|
|
|
|
scope: NodeConnectionType;
|
|
|
|
}
|
|
|
|
interface AbstractConnector {
|
|
|
|
canvas: HTMLElement;
|
|
|
|
overrideTargetEndpoint: Endpoint;
|
|
|
|
}
|
|
|
|
interface Overlay {
|
|
|
|
canvas: HTMLElement;
|
|
|
|
}
|
|
|
|
interface Connection {
|
|
|
|
__meta: {
|
|
|
|
sourceOutputIndex: number;
|
|
|
|
targetNodeName: string;
|
|
|
|
targetOutputIndex: number;
|
|
|
|
sourceNodeName: string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
interface Endpoint {
|
|
|
|
scope: NodeConnectionType;
|
|
|
|
__meta: {
|
|
|
|
nodeName: string;
|
|
|
|
nodeId: string;
|
|
|
|
index: number;
|
2024-06-10 06:23:06 -07:00
|
|
|
nodeType?: string;
|
2024-06-03 07:33:20 -07:00
|
|
|
totalEndpoints: number;
|
2024-06-10 06:23:06 -07:00
|
|
|
endpointLabelLength?: N8nEndpointLabelLength;
|
2024-06-03 07:33:20 -07:00
|
|
|
};
|
2024-06-10 06:23:06 -07:00
|
|
|
}
|
2024-06-03 07:33:20 -07:00
|
|
|
}
|