mirror of
https://github.com/Bowen7/regex-vis.git
synced 2025-12-20 02:17:52 +08:00
Enhance Visual Differentiation for Similar Regex Components (#153)
This commit is contained in:
@@ -44,7 +44,7 @@ function GroupLikeNode({ x, y, node, selected }: Props) {
|
||||
height={contentSize[1]}
|
||||
rx={GRAPH_NODE_BORDER_RADIUS}
|
||||
ry={GRAPH_NODE_BORDER_RADIUS}
|
||||
className="stroke-[1.5] stroke-graph-group fill-transparent "
|
||||
className={`stroke-[1.5] fill-transparent ${('negate' in node && node.negate ? 'stroke-red-500 [stroke-dasharray:4_2]' : 'stroke-graph-group')}`}
|
||||
>
|
||||
{nodeChildren.length > 0 && (
|
||||
<>
|
||||
|
||||
@@ -43,7 +43,7 @@ function SimpleNode({ x, y, node, selected }: Props) {
|
||||
rx={GRAPH_NODE_BORDER_RADIUS}
|
||||
ry={GRAPH_NODE_BORDER_RADIUS}
|
||||
fill="transparent"
|
||||
className="stroke-[1.5] stroke-graph"
|
||||
className={`stroke-[1.5] ${('negate' in node && node.negate ? 'stroke-red-500 [stroke-dasharray:4_2]' : 'stroke-graph')}`}
|
||||
>
|
||||
<foreignObject
|
||||
x={contentX + GRAPH_NODE_PADDING_HORIZONTAL}
|
||||
|
||||
Reference in New Issue
Block a user