Skip to content

Commit 82a50e6

Browse files
committed
Updates
1 parent 57fdd67 commit 82a50e6

4 files changed

Lines changed: 1139 additions & 1097 deletions

File tree

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export default tseslint.config(
9898
'@typescript-eslint/restrict-plus-operands': 'off',
9999
'@typescript-eslint/no-empty-function': 'off',
100100

101+
'unicorn/no-array-sort': 'off',
101102
'unicorn/no-new-array': 'off',
102103
'unicorn/no-empty-file': 'off',
103104
'unicorn/prefer-type-error': 'off',

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
"@mui/x-data-grid": "^8.2.0",
3838
"@types/d3-array": "^3.2.1",
3939
"@types/d3-hierarchy": "^3.1.7",
40-
"@types/node": "^22.15.16",
40+
"@types/node": "^24.7.0",
4141
"@types/react": "^19.0.1",
4242
"chalk": "^5.3.0",
43-
"esbuild": "^0.25.0",
43+
"esbuild": "^0.27.0",
4444
"eslint": "^9.17.0",
4545
"eslint-plugin-import": "^2.31.0",
4646
"eslint-plugin-react": "^7.20.3",
47-
"eslint-plugin-react-hooks": "^5.1.0",
48-
"eslint-plugin-unicorn": "^60.0.0",
47+
"eslint-plugin-react-hooks": "^7.0.1",
48+
"eslint-plugin-unicorn": "^62.0.0",
4949
"mobx": "^6.0.0",
5050
"mobx-react": "^9.0.1",
5151
"mobx-state-tree": "^5.4.1",
@@ -59,7 +59,7 @@
5959
"tss-react": "^4.9.18",
6060
"typescript": "^5.1.6",
6161
"typescript-eslint": "^8.18.0",
62-
"vitest": "^3.2.1"
62+
"vitest": "^4.0.5"
6363
},
6464
"dependencies": {
6565
"@gmod/bgzf-filehandle": "^4.0.0",

src/LinearMafRenderer/components/LinearMafRendering.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const LinearMafRendering = observer(function (props: {
1919
}) {
2020
const { items, displayModel, height, samples, flatbush } = props
2121
const ref = useRef<HTMLDivElement>(null)
22-
const rbush2 = useMemo(() => Flatbush.from(flatbush), [flatbush])
22+
const flatbush2 = useMemo(() => Flatbush.from(flatbush), [flatbush])
2323

2424
function getFeatureUnderMouse(eventClientX: number, eventClientY: number) {
2525
let offsetX = 0
@@ -30,7 +30,7 @@ const LinearMafRendering = observer(function (props: {
3030
offsetY = eventClientY - r.top
3131
}
3232

33-
const x = rbush2.search(offsetX, offsetY, offsetX + 1, offsetY + 1)
33+
const x = flatbush2.search(offsetX, offsetY, offsetX + 1, offsetY + 1)
3434
if (x.length) {
3535
const elt = x.find(idx => items[idx]?.isInsertion)
3636
const r = elt !== undefined ? items[elt]! : items[x[0]!]!

0 commit comments

Comments
 (0)