/*!
 * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
 */
'use strict';

class ElementRectObserver {
    constructor() {
        this.observer = new ResizeObserver(() => this.measure());
    }
    observe(element) {
        this.element = element;
        this.observer.observe(element);
        this.measure();
    }
    disconnect() {
        this.element = undefined;
        this.observer.disconnect();
    }
    measure() {
        var _a;
        this.rect = (_a = this.element) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
    }
}

exports.ElementRectObserver = ElementRectObserver;
//# sourceMappingURL=elementRectObserver-BobgIEu6.js.map

//# sourceMappingURL=elementRectObserver-BobgIEu6.js.map