getLinkInOffset method
Get Link In Offset
Implementation
@override
double getLinkInOffset() {
if (getLinkInOffsetMode() == MindMapNodeLinkOffsetMode.top) {
return 0 -
getSize()!.height / 2 +
((getBorderRadius() as BorderRadius).topLeft.x > getSize()!.height / 2
? getSize()!.height / 2
: (getBorderRadius() as BorderRadius).topLeft.x) +
getBorder().top.width / 2;
}
if (getLinkInOffsetMode() == MindMapNodeLinkOffsetMode.bottom) {
return getSize()!.height / 2 -
((getBorderRadius() as BorderRadius).bottomLeft.x >
getSize()!.height / 2
? getSize()!.height / 2
: (getBorderRadius() as BorderRadius).bottomLeft.x) -
getBorder().bottom.width / 2;
}
return 0;
}