From 6ed5386f0c464900f94d5abe18a5f00cea1e8519 Mon Sep 17 00:00:00 2001 From: CHAE Date: Wed, 13 Dec 2023 18:21:36 +0900 Subject: [PATCH] =?UTF-8?q?style:=20=EC=8D=A8=ED=81=B4=EC=97=90=20?= =?UTF-8?q?=EC=BB=A4=EC=84=9C=20=ED=8F=AC=EC=9D=B8=ED=84=B0=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [#254] --- packages/frontend/src/components/graph/Graph.tsx | 1 + packages/frontend/src/components/graph/renderTooltip.ts | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/components/graph/Graph.tsx b/packages/frontend/src/components/graph/Graph.tsx index a07661fd..4b9942d8 100644 --- a/packages/frontend/src/components/graph/Graph.tsx +++ b/packages/frontend/src/components/graph/Graph.tsx @@ -102,6 +102,7 @@ function renderD3(svgRef: RefObject, data: InitialDataProps[]) { .transition() .duration(DURATION) .style("opacity", 1) + .style("cursor", "pointer") .attr( "fill", (d: d3.HierarchyPointNode) => d.data?.color ?? "", diff --git a/packages/frontend/src/components/graph/renderTooltip.ts b/packages/frontend/src/components/graph/renderTooltip.ts index 461979fa..077880d0 100644 --- a/packages/frontend/src/components/graph/renderTooltip.ts +++ b/packages/frontend/src/components/graph/renderTooltip.ts @@ -58,10 +58,9 @@ export default function renderTooltip( .append("rect") .attr("width", 30) .attr("height", 30) - // 요기나 - .attr("fill", "transparent") // 요기 바꿔보심 돼여 - .attr("stroke", color.$scale.grey300) + .attr("fill", "transparent") + .style("cursor", "pointer") .attr("transform", transparentRectPosition); tooltip