refactoring

This commit is contained in:
Philipp Kühn
2021-01-15 14:49:28 +01:00
parent 3d28386e11
commit decabc09c6
3 changed files with 111 additions and 97 deletions

View File

@@ -0,0 +1,9 @@
export function getVirtualNode(node: Element) {
return {
getBoundingClientRect() {
return node.getBoundingClientRect()
},
clientWidth: node.clientWidth,
clientHeight: node.clientHeight,
}
}