AXIS
enum
Layout & Positioning
TypeScript enum for the drag or scroll axis constraint (both, x, y).
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Members
Members
All members of this enum. Click a value to copy it to clipboard.
- AXIS.BOTH
- Unconstrained — movement allowed on both X and Y axes.
- AXIS.X
- Constrained to the horizontal axis only.
- AXIS.Y
- Constrained to the vertical axis only.
Ecosystem
Used by
Components and props that accept this enum as a value.
Usage
Examples
Ready-to-paste code snippets using this enum.
Using the enum in script setup