function scrollIntoView(node, rootNode) {
    if (node === null) {
        return;
    }
    const actions = compute_scroll_into_view_1.default(node, {
        boundary: rootNode,
        block: "nearest",
        scrollMode: "if-needed"
    });
    actions.forEach(({ el, top, left }) => {
        el.scrollTop = top;
        el.scrollLeft = left;
    });
}
/**
 * Scroll node into view if necessary
 * @param {HTMLElement} node the element that should scroll into view
 * @param {HTMLElement} rootNode the root element of the component
 */
Scroll node into view if necessary
@param {HTMLElement} node the element that should scroll into view
@param {HTMLElement} rootNode the root element of the component
Scroll node into view if necessary @param { HTMLElement } node the element that should scroll into view @param { HTMLElement } rootNode the root element of the component
function scrollIntoView(node, rootNode) {
    if (node === null) {
        return;
    }
    const actions = compute_scroll_into_view_1.default(node, {
        boundary: rootNode,
        block: "nearest",
        scrollMode: "if-needed"
    });
    actions.forEach(({ el, top, left }) => {
        el.scrollTop = top;
        el.scrollLeft = left;
    });
}
function scrollIntoView ( node , rootNode ) { if ( node === null ) { return ; } const actions = compute_scroll_into_view_1 . default ( node , { boundary : rootNode , block : "nearest" , scrollMode : "if-needed" } ) ; actions . forEach ( ( { el , top , left } ) => { el . scrollTop = top ; el . scrollLeft = left ; } ) ; }
Scroll node into view if necessary
 @param {HTMLElement} node the element that should scroll into view
 @param {HTMLElement} rootNode the root element of the component
Scroll node into view if necessary @param { HTMLElement } node the element that should scroll into view @param { HTMLElement } rootNode the root element of the component