RichInline
import type { RichInline } from 'pixi-silk/text';
An object that flows with the text of a SilkRichText.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
align? | InlineAlign | Vertical placement, as in TextInline.align. Default middle. | packages/pixi-silk/src/text/rich.ts:25 |
height? | InlineSize | Height 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? | number | Space left and right of the object, in local units. Default 0. | packages/pixi-silk/src/text/rich.ts:29 |
object | Container<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? | number | Moves the object down (positive) or up after alignment, in local units. Default 0. | packages/pixi-silk/src/text/rich.ts:27 |
width? | InlineSize | Width of the box. Default from the object’s bounds, scaled to height when that is set. | packages/pixi-silk/src/text/rich.ts:18 |