Skip to content
pixi-silk
GitHub repository
Variable

LAYOUT_STRIDE

import { LAYOUT_STRIDE } from 'pixi-silk/i18n';
const LAYOUT_STRIDE: 12 = 12;

Float32 per baked layout (LAYOUTS, brief sec. 5): variant, size, max width, align (0 start, 1 end, 2 left, 3 center, 4 right), line height, first instance, instance count, width, height, first line, line count, 0. Instances use INSTANCE_FLOATS floats with a stack index in place of the style row. Lines are 3 floats: baseline, left, right.