Skip to content
Snippets Groups Projects
Commit c4d81dda authored by Marcos Pieras's avatar Marcos Pieras
Browse files

fix: consider width hyperedge line for correct alignment

parent c497f6f0
No related branches found
No related tags found
1 merge request!173Visual fixes on paohvis
Pipeline #138366 passed
......@@ -105,7 +105,7 @@ export const HyperEdgeRangesBlock: React.FC<HyperEdgeRangesBlockProps> = ({
setIconColors(iconColorsTemporal);
setIconComponents(updatedIconComponents);
}, [sortState, headerState, hoverRowIndex]);
const widthHyperEdge = 0.075 * rowHeight;
return (
<>
<g key={'hyperEdgeInformationTop'} className="hyperEdgeInformation">
......@@ -316,7 +316,7 @@ export const HyperEdgeRangesBlock: React.FC<HyperEdgeRangesBlockProps> = ({
>
<g
key={'groupBlockExtra-' + indexHyperEdgeRange}
transform={`translate(${rowLabelColumnWidth + indexHyperEdgeRange * rowHeight + 0.5 * rowHeight},${yOffset + 0.5 * rowHeight})`}
transform={`translate(${rowLabelColumnWidth + indexHyperEdgeRange * rowHeight + 0.5 * rowHeight - widthHyperEdge / 2.0},${yOffset + 0.5 * rowHeight})`}
>
{currentPageRows && dataLinesHyperedges[indexHyperEdgeRange]?.valid && (
<CustomLine
......@@ -325,7 +325,7 @@ export const HyperEdgeRangesBlock: React.FC<HyperEdgeRangesBlockProps> = ({
y1={(dataLinesHyperedges[indexHyperEdgeRange].y0 - currentPageRows.startIndexRow) * rowHeight}
x2={0}
y2={(dataLinesHyperedges[indexHyperEdgeRange].y1 - currentPageRows.startIndexRow) * rowHeight}
strokeWidth={0.075 * rowHeight}
strokeWidth={widthHyperEdge}
className={configStyle.colorLinesGridByClass}
/>
)}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment