Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Sep 18, 2023
1 parent 10cb383 commit fc7a36c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions taxonium_component/src/hooks/useLayers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ const useLayers = ({
);
}, [detailed_data, settings.displayPointsForInternalNodes]);


const minimap_scatter_data = useMemo(() => {
return base_data
? base_data.nodes.filter(
Expand Down Expand Up @@ -233,6 +234,21 @@ const useLayers = ({
data: detailed_scatter_data,
};

const key_hover_layer =hoveredKey ? {
layerType: "ScatterplotLayer",
...scatter_layer_common_props,
id: "main-scatter-key-hover",
data: detailed_scatter_data.filter(
(d) => getNodeColorField(d, detailed_data) === hoveredKey
),
getRadius: settings.nodeSize + 1,
// stroked: true,
getLineColor: [0, 0, 0],
getLineWidth: 0.5}
: null;



const pretty_stroke_background_layer = settings.prettyStroke.enabled
? {
...main_scatter_layer,
Expand Down Expand Up @@ -348,9 +364,11 @@ const useLayers = ({
main_line_layer2,
fillin_line_layer,
fillin_line_layer2,

pretty_stroke_background_layer,
main_scatter_layer,
fillin_scatter_layer,
key_hover_layer,
clade_label_layer,
selectedLayer,
hoveredLayer
Expand Down

0 comments on commit fc7a36c

Please sign in to comment.