Cluster
import type { Cluster } from 'pixi-silk/text';
A run of text drawn as one glyph, as clusters returns them.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
breakBefore | boolean | True when a line may break before the cluster although no space comes first. | packages/pixi-silk/src/text/cluster.ts:26 |
draw | string | What to measure, bake and draw. Joined runs that were cut carry a zero width joiner at the cut. | packages/pixi-silk/src/text/cluster.ts:16 |
end | number | Offset after the last code point. | packages/pixi-silk/src/text/cluster.ts:20 |
inner | number[] | Offsets inside the cluster where a caret can sit: its grapheme boundaries after the first. | packages/pixi-silk/src/text/cluster.ts:22 |
start | number | Offset of the first code point in the text. | packages/pixi-silk/src/text/cluster.ts:18 |
type | BidiClass | Bidi type of the cluster’s first character. | packages/pixi-silk/src/text/cluster.ts:24 |