Type Alias: XYInput<T>
type XYInput<T> = [T] extends [readonly unknown[]] ? readonly [T, T] : T | readonly [T, T];
Defined in: dom/src/xy.ts:14
A setting that may be given once for both axes, or per axis.
A single value is told from a pair with Array.isArray, so the single form
is only offered while T cannot itself be an array. Where it can, the pair
is the only way to write it, since a lone array would be read as a pair.
Type Parameters
| Type Parameter |
|---|
T |