update interface

This commit is contained in:
Mutasem 2021-10-18 16:59:00 +02:00
parent 3d6a47bc8d
commit fa9baf1f9b
2 changed files with 1 additions and 2 deletions

View file

@ -47,6 +47,7 @@ declare module 'jsplumb' {
interface Overlay {
setVisible(visible: boolean): void;
setLocation(location: number | [number, number]): void;
}
interface OnConnectionBindInfo {

View file

@ -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);
}
});