|
@@ -7,12 +7,14 @@ const TextNode: React.FC<CustomNodeProps<string>> = ({
|
|
|
height,
|
|
|
value,
|
|
|
isParent = false,
|
|
|
+ x,
|
|
|
+ y
|
|
|
}) => {
|
|
|
return (
|
|
|
<Styled.StyledForeignObject width={width} height={height} x={0} y={0}>
|
|
|
<Styled.StyledTextWrapper>
|
|
|
<Styled.StyledText width={width} height={height}>
|
|
|
- <Styled.StyledKey parent={isParent}>{value}</Styled.StyledKey>
|
|
|
+ <Styled.StyledKey data-x={x} data-y={y} data-key={value} parent={isParent}>{value}</Styled.StyledKey>
|
|
|
</Styled.StyledText>
|
|
|
</Styled.StyledTextWrapper>
|
|
|
</Styled.StyledForeignObject>
|