Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Sep 12, 2023
1 parent 2f056e7 commit 98ce57a
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 37 deletions.
79 changes: 42 additions & 37 deletions taxonium_component/src/Deck.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,48 @@ function Deck({
}
title = {currentColorSettingKey}
/>

<NodeHoverTip
hoverInfo={hoverInfo}
hoverDetails={hoverDetails}
colorHook={colorHook}
colorBy={colorBy}
config={config}
filterMutations={settings.filterMutations}
deckSize={deckSize}
/>
<TreenomeMutationHoverTip
hoverInfo={hoverInfo}
hoverDetails={hoverDetails}
colorHook={colorHook}
colorBy={colorBy}
config={config}
treenomeReferenceInfo={treenomeReferenceInfo}
/>
<MemoizedKey
keyStuff={keyStuff}
colorByField={colorBy.colorByField}
colorByGene={colorBy.colorByGene}
colorByPosition={colorBy.colorByPosition}
config={config}
setCurrentColorSettingKey={setCurrentColorSettingKey}
setColorSettingOpen={setColorSettingOpen}

/>
<DeckButtons
// we want this to intercept all mouse events
// so that we can prevent the default behavior
// of the browser


zoomReset={zoomReset}
zoomIncrement={zoomIncrement}
zoomAxis={zoomAxis}
setZoomAxis={setZoomAxis}
snapshot={snapshot}
loading={data.status === "loading"}
requestOpenSettings={() => setDeckSettingsOpen(true)}
settings={settings}
/>


<DeckGL
Expand Down Expand Up @@ -339,43 +380,7 @@ function Deck({
/>
</View>
<View id="main">
<NodeHoverTip
hoverInfo={hoverInfo}
hoverDetails={hoverDetails}
colorHook={colorHook}
colorBy={colorBy}
config={config}
filterMutations={settings.filterMutations}
deckSize={deckSize}
/>
<TreenomeMutationHoverTip
hoverInfo={hoverInfo}
hoverDetails={hoverDetails}
colorHook={colorHook}
colorBy={colorBy}
config={config}
treenomeReferenceInfo={treenomeReferenceInfo}
/>
<MemoizedKey
keyStuff={keyStuff}
colorByField={colorBy.colorByField}
colorByGene={colorBy.colorByGene}
colorByPosition={colorBy.colorByPosition}
config={config}
setCurrentColorSettingKey={setCurrentColorSettingKey}
setColorSettingOpen={setColorSettingOpen}

/>
<DeckButtons
zoomReset={zoomReset}
zoomIncrement={zoomIncrement}
zoomAxis={zoomAxis}
setZoomAxis={setZoomAxis}
snapshot={snapshot}
loading={data.status === "loading"}
requestOpenSettings={() => setDeckSettingsOpen(true)}
settings={settings}
/>
</View>
</DeckGL>
</div>
Expand Down
6 changes: 6 additions & 0 deletions taxonium_component/src/components/DeckButtons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const TaxButton = ({ children, onClick, title }) => {
shadow-md "
onClick={onClick}
title={title}
style={{
pointerEvents: "auto",
}}
>
{children}
</button>
Expand All @@ -42,7 +45,9 @@ export const DeckButtons = ({
right: "0em",
bottom: "0em",
zIndex: 10,
pointerEvents: "none",
}}

className="flex flex-col items-end"
>
<div
Expand All @@ -63,6 +68,7 @@ export const DeckButtons = ({
"
style={{
fontSize: ".7em",
pointerEvents: "auto",
boxShadow: "0px -3px 4px 4px rgba(255, 255, 255, 1)",
}}
>
Expand Down
2 changes: 2 additions & 0 deletions taxonium_component/src/components/Key.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const Key = ({
"px-2 border-right border bg-white opacity-90 absolute bottom-2 left-2 pt-1 pb-2",
collapsed ? "w-20" : "w-32"
)}
// z index big
style={{ zIndex: 1000 }}
>
<h3
className="font-bold text-gray-600 text-xs cursor-pointer"
Expand Down

0 comments on commit 98ce57a

Please sign in to comment.