/**
 * @since 6.0.0
 */ /**
 * This is mostly an internal function to be used with the {@link ResizeObserverMock}
 * and {@link setupResizeObserverMock}
 *
 * @since 6.0.0
 */ export const createResizeObserverEntry = (target, size)=>{
    const contentRect = target.getBoundingClientRect();
    if (typeof size?.height === "number") {
        contentRect.height = size.height;
    }
    if (typeof size?.width === "number") {
        contentRect.width = size.width;
    }
    const boxSize = {
        blockSize: contentRect.height,
        inlineSize: contentRect.width
    };
    return {
        target,
        contentRect,
        borderBoxSize: [
            boxSize
        ],
        contentBoxSize: [
            boxSize
        ],
        devicePixelContentBoxSize: []
    };
};

//# sourceMappingURL=createResizeObserverEntry.js.map