Skip to main content

Aliases

AsPos

A value that can be covariantly treated as a Pos.

AliasPos | { [1]: Origin, x: integer?, y: integer?, w: integer?, h: integer? }

AsSpan

A value that can be covariantly treated as a Span.

Aliasstring | Span

AsLine

A value that can be covariantly treated as a Line.

Aliasstring | Span | Line | (string|Span|Line)[]

AsText

A value that can be covariantly treated as a Text.

Aliasstring | Span | Line | (string|Span|Line)[]

Origin

Origin is a set of constants representing the origin of a position.

Alias"top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "center" | "hovered"