lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
11 lines (10 loc) • 525 B
TypeScript
import type { Alignment2D } from '../theme/Alignment2D.js';
import type { Padding } from '../theme/Padding.js';
import type { Widget } from '../widgets/Widget.js';
/**
* Reusable function for resolving container dimensions given layout
* constraints, padding, alignment and a child widget.
*
* @category Helper
*/
export declare function resolveContainerDimensions<W extends Widget>(minWidth: number, maxWidth: number, minHeight: number, maxHeight: number, padding: Padding, alignment: Alignment2D, child: W): number[];