UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

11 lines (10 loc) 554 B
import type { Alignment2D } from '../theme/Alignment2D.js'; import type { Padding } from '../theme/Padding.js'; /** * Reusable function for resolving a container's child's position. Similar to * {@link resolveContainerPosition}, but doesn't need to be passed the child * widget. * * @category Helper */ export declare function resolveContainerChildPosition(x: number, y: number, idealWidth: number, idealHeight: number, padding: Padding, alignment: Alignment2D, idealChildWidth: number, idealChildHeight: number): [childX: number, childY: number];