fix: access the edge-label-renderer by reactflow's id

This commit is contained in:
GeoffreyLiu
2022-11-08 15:46:05 +08:00
parent a9e7411d6d
commit 55cf7560c0
3 changed files with 11 additions and 2 deletions
+4
View File
@@ -223,3 +223,7 @@ export const getTransformForBounds = (
export const getD3Transition = (selection: D3Selection<Element, unknown, null, undefined>, duration = 0) => {
return selection.transition().duration(duration);
};
export function getEdgeLabelRendererId(id: string) {
return `edgelabel-portal-${id}`
}