antvis/G6

Edge labe padding bug #3346

YuancaiDing posted onGitHub

  • I have searched the issues of this repository and believe that this is not a duplicate.

Edit on CodeSandbox

Steps to reproduce

in core/src/element/edge.ts

in this function getLabelBgStyleByPosition() line 247: const style = { ...backgroundStyle, width: backgroundWidth, height: backgroundHeight, x: bbox.minX - padding[2], <---- should be padding[1] y: bbox.minY - padding[0], rotate: 0, };

Environment Info
g6 4.5.0
System -
Browser -

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


Fund this Issue

$0.00
Funded

Pull requests