Skip to content

Commit b5bb8b5

Browse files
updated visual elements of nodes in D3
Co-authored-by: Alex Landeros <[email protected]>
1 parent 5fdcf30 commit b5bb8b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/components/History.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ function History(props: Record<string, unknown>) {
145145
// further optimization would improve the onclick feature, onclick seems to only register on the lower half of the node
146146
node
147147
.append('circle')
148-
.attr('r', 13)
148+
.attr('r', 14)
149149
.on('mouseover', function (d: `Record<string, unknown>`) {
150-
d3.select(this).transition(100).duration(20).attr('r', 20);
150+
d3.select(this).transition(90).duration(18).attr('r', 21);
151151
})
152152
.on('click', function (d: `Record<string, unknown>`) {
153153
const index = parseInt(`${d.data.name}.${d.data.branch}`);
@@ -156,7 +156,7 @@ function History(props: Record<string, unknown>) {
156156
})
157157
// think about how I can convert this any to typescript
158158
.on('mouseout', function (d: any) {
159-
d3.select(this).transition().duration(300).attr('r', 13);
159+
d3.select(this).transition().duration(300).attr('r', 14);
160160
});
161161

162162
node

0 commit comments

Comments
 (0)