Skip to content
pixi-silk
GitHub repository
Interface

TextSlotRender

import type { TextSlotRender } from 'pixi-silk/i18n/pixi';

A text slot to draw, as DynamicTextProvider.draw receives it. Sizes in local pixels.

Properties#

PropertyTypeDescriptionDefined in
baselinenumberDistance from the box top to the baseline.packages/pixi-silk/src/i18n/pixi/silk.ts:60
heightnumberHeight of the line box.packages/pixi-silk/src/i18n/pixi/silk.ts:58
rownumberThe slot’s style row, for drawing with the message shader.packages/pixi-silk/src/i18n/pixi/silk.ts:54
sizenumberFont size.packages/pixi-silk/src/i18n/pixi/silk.ts:50
styleThemeStyleThe slot’s resolved style.packages/pixi-silk/src/i18n/pixi/silk.ts:52
valuestringThe value.packages/pixi-silk/src/i18n/pixi/silk.ts:48
widthnumberWidth the layout reserved.packages/pixi-silk/src/i18n/pixi/silk.ts:56