Skip to content
pixi-silk
GitHub repository
Interface

Cluster

import type { Cluster } from 'pixi-silk/text';

A run of text drawn as one glyph, as clusters returns them.

Properties#

PropertyTypeDescriptionDefined in
breakBeforebooleanTrue when a line may break before the cluster although no space comes first.packages/pixi-silk/src/text/cluster.ts:26
drawstringWhat 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
endnumberOffset after the last code point.packages/pixi-silk/src/text/cluster.ts:20
innernumber[]Offsets inside the cluster where a caret can sit: its grapheme boundaries after the first.packages/pixi-silk/src/text/cluster.ts:22
startnumberOffset of the first code point in the text.packages/pixi-silk/src/text/cluster.ts:18
typeBidiClassBidi type of the cluster’s first character.packages/pixi-silk/src/text/cluster.ts:24