lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
14 lines (13 loc) • 384 B
TypeScript
import type { Alignment } from './Alignment.js';
/**
* Like {@link Alignment}, but for both the horizontal and vertical axes. Each
* axis can also be a ratio.
*
* @category Theme
*/
export interface Alignment2D {
/** The alignment of the horizontal axis */
horizontal: Alignment | number;
/** The alignment of the vertical axis */
vertical: Alignment | number;
}