Skip to content
pixi-silk
GitHub repository
Function

previousWordStop

import { previousWordStop } from 'pixi-silk/text';
function previousWordStop(text: string, index: number): number;

Where a word jump to the left lands: the start of the word before index.

Parameters#

ParameterType
textstring
indexnumber

Returns#

number