fix: access the edge-label-renderer by reactflow's id
This commit is contained in:
@@ -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}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user