diff --git a/static-site/src/components/ListResources/Modal.tsx b/static-site/src/components/ListResources/Modal.tsx index 712260d7e..b7f433de2 100644 --- a/static-site/src/components/ListResources/Modal.tsx +++ b/static-site/src/components/ListResources/Modal.tsx @@ -246,9 +246,11 @@ function _draw(ref, resource: Resource) { .attr("cy", (d) => heights.height - heights.marginBelowAxis - heights.marginAboveAxis - radius - padding - d.y) .attr("r", radius) .attr('fill', color) + // @ts-expect-error .on("mouseover", function(e, d) { /* lower opacity of non-hovered, increase radius of hovered circle */ beeswarm.join( + // @ts-expect-error (enter) => {}, /* eslint-disable-line */ (update) => selectSnapshot(update, d) ) @@ -268,6 +270,7 @@ function _draw(ref, resource: Resource) { }) .on("mouseleave", function() { beeswarm.join( + // @ts-expect-error (enter) => {}, /* eslint-disable-line */ (update) => resetBeeswarm(update) ) @@ -275,6 +278,7 @@ function _draw(ref, resource: Resource) { selectedVersionGroup.selectAll("*") .style("opacity", 0) }) + // @ts-expect-error .on("click", function(e, d) { window.open(`/${resource.name}@${d.data.version}`,'_blank'); // TEST! }) @@ -295,6 +299,7 @@ function _draw(ref, resource: Resource) { .on("mousemove", function(e) { const { datum, hoveredDateStr } = getVersion(e); beeswarm.join( + // @ts-expect-error (enter) => {}, /* eslint-disable-line */ (update) => selectSnapshot(update, datum) ) @@ -315,6 +320,7 @@ function _draw(ref, resource: Resource) { }) .on("mouseleave", function() { beeswarm.join( + // @ts-expect-error (enter) => {}, /* eslint-disable-line */ (update) => resetBeeswarm(update) )