Skip to content
Snippets Groups Projects
Commit 4b8479e6 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

u

parent 2dd27243
No related branches found
No related tags found
No related merge requests found
Pipeline #129857 waiting for manual action with stages
in 8 minutes and 30 seconds
......@@ -169,8 +169,8 @@ function on(mark) {
r.on("mouseover", function (event) {
const elem = d3.select(event.srcElement)
const fillColor = elem.attr("fill")
const elemFill = d3.color(fillColor).darker()
elem.attr("stroke-width", 4).attr("stroke", elemFill.toString()).attr("cursor", "pointer")
const elemFill = d3.color(fillColor)?.darker()
if (elemFill) elem.attr("stroke-width", 4).attr("stroke", elemFill.toString()).attr("cursor", "pointer")
})
r.on("mouseout", function (event) {
d3.select(event.srcElement).attr("stroke-width", null).attr("stroke", null).attr("cursor", "unset")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment