Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed May 2, 2023
1 parent eb5f680 commit 1bb386d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
1 change: 1 addition & 0 deletions plugins/dotplot-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"dependencies": {
"@mui/icons-material": "^5.0.1",
"@mui/x-data-grid": "^6.0.1",
"@popperjs/core": "^2.11.0",
"@types/file-saver": "^2.0.1",
"@types/normalize-wheel": "^1.0.0",
"clone": "^2.1.2",
Expand Down
10 changes: 0 additions & 10 deletions plugins/dotplot-view/src/DotplotView/components/DotplotTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@ export function round(value: number) {
return Math.round(value * 1e5) / 1e5
}
const useStyles = makeStyles()(theme => ({
popover: {
background: theme.palette.background.paper,
maxWidth: 400,
wordBreak: 'break-all',
zIndex: 1000,
border: `1px solid ${theme.palette.action.active}`,
pointerEvents: 'none',
position: 'absolute',
},

// these styles come from
// https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Tooltip/Tooltip.js
tooltip: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ const DotplotViewInternal = observer(function ({
const mousedown = getOffset(mousedownClient, svg)
const mousecurr = getOffset(mousecurrClient, svg)
const mouseup = getOffset(mouseupClient, svg)
const mouserectClient = mouseupClient || mousecurrClient
const mouserect = mouseup || mousecurr
const xdistance = mousedown && mouserect ? mouserect[0] - mousedown[0] : 0
const ydistance = mousedown && mouserect ? mouserect[1] - mousedown[1] : 0
Expand Down Expand Up @@ -241,7 +242,7 @@ const DotplotViewInternal = observer(function ({
<TooltipWhereMouseovered
model={model}
mouserect={mouserect}
mouserectClient={mousecurrClient}
mouserectClient={mouserectClient}
xdistance={xdistance}
ydistance={ydistance}
/>
Expand Down

0 comments on commit 1bb386d

Please sign in to comment.