diff --git a/src/render.js b/src/render.js index 9a5fd3e..016a538 100644 --- a/src/render.js +++ b/src/render.js @@ -643,6 +643,10 @@ export function renderSvgFromLayout(model, layout, options = {}) { if (routeInfo?.labelPoints?.length) { candidates.push(...routeInfo.labelPoints); } + const routeCenter = representativePoint(routeInfo, netAnchor); + if (routeCenter) { + candidates.push({ x: routeCenter.x + 8, y: routeCenter.y - 8 }); + } if (netAnchor) { candidates.push({ x: netAnchor.x + 8, y: netAnchor.y - 8 }); }