该页面暂无翻译,已显示英文版本。

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 ParameterDescription
TThe type of each coordinate

Properties

PropertyTypeDescription
xTThe horizontal value
yTThe vertical value

© 2026 ByteLand Technology Limited