fix: Add measurment (px) to EdgeText width and height
This commit is contained in:
@@ -60,10 +60,10 @@ export default defineComponent({
|
|||||||
>
|
>
|
||||||
{props.labelShowBg && (
|
{props.labelShowBg && (
|
||||||
<rect
|
<rect
|
||||||
width={edgeTextBox.value.width + 2 * props.labelBgPadding[0]}
|
width={edgeTextBox.value.width + 2 * props.labelBgPadding[0] + 'px'}
|
||||||
|
height={edgeTextBox.value.height + 2 * props.labelBgPadding[1] + 'px'}
|
||||||
x={-props.labelBgPadding[0]}
|
x={-props.labelBgPadding[0]}
|
||||||
y={-props.labelBgPadding[1]}
|
y={-props.labelBgPadding[1]}
|
||||||
height={edgeTextBox.value.height + 2 * props.labelBgPadding[1]}
|
|
||||||
class="revue-flow__edge-textbg"
|
class="revue-flow__edge-textbg"
|
||||||
style={props.labelBgStyle}
|
style={props.labelBgStyle}
|
||||||
rx={props.labelBgBorderRadius}
|
rx={props.labelBgBorderRadius}
|
||||||
|
|||||||
Reference in New Issue
Block a user