refactor(core): remove useWindow (#1504)

refactor(core): remove `useWindow`
This commit is contained in:
Braks
2024-07-01 09:44:55 +02:00
parent 410765b87b
commit 545bb4edf5
5 changed files with 11 additions and 39 deletions
-3
View File
@@ -21,7 +21,6 @@ import type {
XYPosition,
XYZPosition,
} from '../types'
import { useWindow } from '../composables'
import { isDef, warn } from '.'
export function nodeToRect(node: GraphNode): Rect {
@@ -64,8 +63,6 @@ export function getHostForElement(element: HTMLElement): Document {
return doc
}
const window = useWindow()
return window.document
}