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