Skip to main content
Module

x/tui/src/utils/numbers.ts>fitsInRectangle

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
function fitsInRectangle
import { fitsInRectangle } from "https://deno.land/x/tui@1.3.4/src/utils/numbers.ts";

Check whether {column} and {row} fit in {rectangle} boundaries

Parameters

column: number
row: number
optional
rectangle: Rectangle

Returns

boolean