10 lines
216 B
TypeScript
10 lines
216 B
TypeScript
export function getVirtualNode(node: Element) {
|
|
return {
|
|
getBoundingClientRect() {
|
|
return node.getBoundingClientRect()
|
|
},
|
|
clientWidth: node.clientWidth,
|
|
clientHeight: node.clientHeight,
|
|
}
|
|
}
|