UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

31 lines 1.23 kB
/** * Alignment of multi-container contents along the main axis. Used for when * {@link MultiContainer} has unused space, even after distribution. Similar to * {@link Alignment}. * * @category Theme */ export var FlexAlignment; (function (FlexAlignment) { /** Distribute unused space between each child. */ FlexAlignment["SpaceBetween"] = "between"; /** Distribute unused space between each child and at start and end. */ FlexAlignment["SpaceAround"] = "around"; /** * Align the children to the start of the container, having the extra space * at the end. Equivalent to using a ratio of 0. */ FlexAlignment[FlexAlignment["Start"] = 0] = "Start"; /** * Align the children to the center of the container, having the extra space * split equally to both the start and the end. Equivalent to using a ratio * of 0.5. */ FlexAlignment[FlexAlignment["Center"] = 0.5] = "Center"; /** * Align the children to the end of the container, having the extra space at * the start. Equivalent to using a ratio of 1. */ FlexAlignment[FlexAlignment["End"] = 1] = "End"; })(FlexAlignment || (FlexAlignment = {})); //# sourceMappingURL=FlexAlignment.js.map