mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-29 06:29:42 -08:00
update interface
This commit is contained in:
parent
3d6a47bc8d
commit
fa9baf1f9b
|
@ -47,6 +47,7 @@ declare module 'jsplumb' {
|
|||
|
||||
interface Overlay {
|
||||
setVisible(visible: boolean): void;
|
||||
setLocation(location: number | [number, number]): void;
|
||||
}
|
||||
|
||||
interface OnConnectionBindInfo {
|
||||
|
|
|
@ -1743,7 +1743,6 @@ export default mixins(
|
|||
outgoing.forEach((connection: Connection) => {
|
||||
const arrow = connection.getOverlay('midpoint-arrow');
|
||||
if (arrow) {
|
||||
// @ts-ignore
|
||||
arrow.setLocation(0.5);
|
||||
}
|
||||
|
||||
|
@ -1844,7 +1843,6 @@ export default mixins(
|
|||
|
||||
const arrow = connections[0].getOverlay('midpoint-arrow');
|
||||
if (arrow) {
|
||||
// @ts-ignore
|
||||
arrow.setLocation(0.6);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue