paragraphAt
import { paragraphAt } from 'pixi-silk/text';
function paragraphAt(text: string, index: number): {
end: number;
start: number;
};
The paragraph around index: from the newline before it to the newline after, newlines left out.
Parameters#
| Parameter | Type |
|---|---|
text | string |
index | number |
Returns#
{
end: number;
start: number;
}
| Name | Type | Defined in |
|---|---|---|
end | number | text/segment.ts:116 |
start | number | text/segment.ts:116 |