Point<T>
type Point<T> = { x: T; y: T; };
Point with x and y coordinates/values.
Used for properties that have separate horizontal (x) and vertical (y) values,
such as overflow.
Example
import { Style, Overflow, type Point } from "taffy-layout"; const style = new Style(); const overflow: Point<(typeof Overflow)[keyof typeof Overflow]> = { x: Overflow.Hidden, y: Overflow.Scroll, }; style.overflow = overflow;
Type Parameters
| Type Parameter | Description |
|---|---|
T | The type of each coordinate |
Properties
| Property | Type | Description |
|---|---|---|
x | T | The horizontal value |
y | T | The vertical value |