Skip to content
pixi-silk
GitHub repository
Interface

WordSegment

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

A run of text with a kind, as wordSegments returns them.

Properties#

PropertyTypeDescriptionDefined in
endnumberOffset after the last character.text/segment.ts:26
startnumberOffset of the first character.text/segment.ts:24
wordbooleanTrue for words, false for spaces and punctuation.text/segment.ts:28