paragraphLevel
import { paragraphLevel } from 'pixi-silk/text/bidi';
function paragraphLevel(types: readonly BidiClass[], direction?: TextDirection): 0 | 1;
Paragraph level from the first strong type (P2, P3): 1 for R or AL, 0 for L or none. Text inside isolates is skipped.
Parameters#
| Parameter | Type | Default value |
|---|---|---|
types | readonly BidiClass[] | undefined |
direction | TextDirection | 'auto' |
Returns#
0 | 1