From 2204d84daa6cdddf7f90b95f8f2d5ab3c1edba77 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 12 Sep 2023 21:23:33 +0000
Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---
taxonium_component/src/Deck.jsx | 1 -
taxonium_component/src/components/Key.jsx | 26 +++++++++++-----------
taxonium_component/src/hooks/useLayers.jsx | 7 +++---
3 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/taxonium_component/src/Deck.jsx b/taxonium_component/src/Deck.jsx
index b7ad9529..a9c6f1cf 100644
--- a/taxonium_component/src/Deck.jsx
+++ b/taxonium_component/src/Deck.jsx
@@ -193,7 +193,6 @@ function Deck({
treenomeReferenceInfo,
setTreenomeReferenceInfo,
hoveredKey,
-
});
// console.log("deck refresh");
diff --git a/taxonium_component/src/components/Key.jsx b/taxonium_component/src/components/Key.jsx
index 2b54486c..26f1f448 100644
--- a/taxonium_component/src/components/Key.jsx
+++ b/taxonium_component/src/components/Key.jsx
@@ -34,9 +34,11 @@ const Key = ({
collapsed ? "w-20" : "w-32"
)}
// z index big
- style={{ zIndex: 10 ,
-
- cursor:'default'}}
+ style={{
+ zIndex: 10,
+
+ cursor: "default",
+ }}
>
{
setCurrentColorSettingKey(item.value);
setColorSettingOpen(true);
}}
- onMouseEnter={() =>{
- setHoveredKey(item.value)
-
- }
- }
+ onMouseEnter={() => {
+ setHoveredKey(item.value);
+ }}
onMouseLeave={() => setHoveredKey(null)}
-
title="Edit color"
>
{item.value}
diff --git a/taxonium_component/src/hooks/useLayers.jsx b/taxonium_component/src/hooks/useLayers.jsx
index 8980786e..b3367c84 100644
--- a/taxonium_component/src/hooks/useLayers.jsx
+++ b/taxonium_component/src/hooks/useLayers.jsx
@@ -44,7 +44,7 @@ const useLayers = ({
treenomeState,
treenomeReferenceInfo,
setTreenomeReferenceInfo,
- hoveredKey
+ hoveredKey,
}) => {
const lineColor = settings.lineColor;
const getNodeColorField = colorBy.getNodeColorField;
@@ -159,7 +159,8 @@ const useLayers = ({
getFillColor: (d) => toRGB(getNodeColorField(d, detailed_data)),
// radius in pixels
- getRadius: (d) => getNodeColorField(d, detailed_data) === hoveredKey ? 4 : 3,
+ getRadius: (d) =>
+ getNodeColorField(d, detailed_data) === hoveredKey ? 4 : 3,
getLineColor: [100, 100, 100],
opacity: 0.6,
stroked: data.data.nodes && data.data.nodes.length < 3000,
@@ -171,7 +172,7 @@ const useLayers = ({
modelMatrix: modelMatrix,
updateTriggers: {
getFillColor: [detailed_data, getNodeColorField, colorHook],
- getRadius:[hoveredKey,getNodeColorField],
+ getRadius: [hoveredKey, getNodeColorField],
getPosition: [xType],
},
};