refactor: access edge-label-renderer by storing the root element

This commit is contained in:
GeoffreyLiu
2022-11-11 10:44:59 +08:00
parent 55cf7560c0
commit 3170f875e5
8 changed files with 52 additions and 17 deletions
-3
View File
@@ -224,6 +224,3 @@ export const getD3Transition = (selection: D3Selection<Element, unknown, null, u
return selection.transition().duration(duration);
};
export function getEdgeLabelRendererId(id: string) {
return `edgelabel-portal-${id}`
}