Skip to content
pixi-silk
GitHub repository
Interface

RichInline

import type { RichInline } from 'pixi-silk/text';

An object that flows with the text of a SilkRichText.

Properties#

PropertyTypeDescriptionDefined in
align?InlineAlignVertical placement, as in TextInline.align. Default middle.packages/pixi-silk/src/text/rich.ts:25
height?InlineSizeHeight of the box. The object is scaled to fit the box, keeping its aspect, and centred in it. Default from the object’s bounds, scaled to width when that is set.packages/pixi-silk/src/text/rich.ts:23
margin?numberSpace left and right of the object, in local units. Default 0.packages/pixi-silk/src/text/rich.ts:29
objectContainer<ContainerChild> | (() => Container)What to show: a Sprite, a SilkGraphics or any container. Pass a function to show the object more than once: it is called once per {name} token. One instance only fills the first token.packages/pixi-silk/src/text/rich.ts:16
offsetY?numberMoves the object down (positive) or up after alignment, in local units. Default 0.packages/pixi-silk/src/text/rich.ts:27
width?InlineSizeWidth of the box. Default from the object’s bounds, scaled to height when that is set.packages/pixi-silk/src/text/rich.ts:18