Skip to content
pixi-silk
GitHub repository
Function

resetWhitespace

import { resetWhitespace } from 'pixi-silk/text/bidi';
function resetWhitespace(
   types: readonly BidiClass[], 
   levels: number[], 
   level: number
): void;

L1 for one line: whitespace and isolate controls at the end of the line, and before tabs, fall back to the paragraph level. types are the original types of the line’s units. Changes levels in place.

Parameters#

ParameterType
typesreadonly BidiClass[]
levelsnumber[]
levelnumber

Returns#

void