/**
 * MK2 Geometry - DEPRECATED
 *
 * This file is DEPRECATED. Use safeViewport.ts instead.
 * Kept for backward compatibility only.
 *
 * @deprecated Use getSafeViewport() from safeViewport.ts
 */
import { getSafeViewport, isWebTerminal } from './safeViewport.js';
/**
 * @deprecated Use getSafeViewport() from safeViewport.ts
 */
export function getGeometry(screen) {
    const viewport = getSafeViewport(screen);
    const isWeb = isWebTerminal();
    return {
        cols: viewport.cols,
        rows: viewport.rows,
        guardRight: viewport.insets.right,
        guardBottom: viewport.insets.bottom,
        safeCols: viewport.safe.w,
        safeRows: viewport.safe.h,
        maxX: viewport.safe.x + viewport.safe.w - 1,
        maxY: viewport.safe.y + viewport.safe.h - 1,
    };
}
//# sourceMappingURL=geometry.js.map