refactor(core): remove useWindow (#1504)
refactor(core): remove `useWindow`
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user