refactoring
This commit is contained in:
9
packages/suggestion/src/getVirtualNode.ts
Normal file
9
packages/suggestion/src/getVirtualNode.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export function getVirtualNode(node: Element) {
|
||||
return {
|
||||
getBoundingClientRect() {
|
||||
return node.getBoundingClientRect()
|
||||
},
|
||||
clientWidth: node.clientWidth,
|
||||
clientHeight: node.clientHeight,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user