lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
9 lines (8 loc) • 531 B
TypeScript
import { type Alignment2D } from '../theme/Alignment2D.js';
/**
* Reusable function for resolving container's child's layout constraints given
* the container's layout constraints, padding and alignment.
*
* @category Helper
*/
export declare function resolveContainerChildConstraints(minWidth: number, maxWidth: number, minHeight: number, maxHeight: number, hPadding: number, vPadding: number, alignment: Readonly<Alignment2D>): [childMinWidth: number, childMaxWidth: number, childMinHeight: number, childMaxHeight: number];