refactor(edge-label): prevent junpming
This commit is contained in:
@@ -107,7 +107,7 @@ const edges: Edge[] = [
|
||||
|
||||
const defaultEdgeOptions = {
|
||||
label: 'Edge Label',
|
||||
type: 'default',
|
||||
type: 'smoothstep',
|
||||
markerEnd: {
|
||||
type: MarkerType.ArrowClosed,
|
||||
},
|
||||
|
||||
@@ -41,6 +41,7 @@ const EdgeText: FC<PropsWithChildren<EdgeTextProps>> = ({
|
||||
<g
|
||||
transform={`translate(${x - edgeTextBbox.width / 2} ${y - edgeTextBbox.height / 2})`}
|
||||
className={edgeTextClasses}
|
||||
visibility={edgeTextBbox.width ? 'visible' : 'hidden'}
|
||||
{...rest}
|
||||
>
|
||||
{labelShowBg && (
|
||||
|
||||
Reference in New Issue
Block a user