Open luin opened 1 year ago
Thanks for the great library!
I'd like to integrate this library in Quill but the usage is to scroll a range into view. I think it makes sense to support a virtual element as well in addition to Element. A virtual element is basically an object providing the following methods:
Element
interface VirtualElement { getBoundingClientRect(): DOMRect; getParentElement(): HTMLElement; }
I can create a PR if that something you want to support.
Thanks for the great library!
I'd like to integrate this library in Quill but the usage is to scroll a range into view. I think it makes sense to support a virtual element as well in addition to
Element
. A virtual element is basically an object providing the following methods:I can create a PR if that something you want to support.