Skip to content
pixi-silk
GitHub repository
Interface

InlineRect

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

Where an inline object goes, as SilkText.inlineRects returns them, in local units.

Properties#

PropertyTypeDescriptionDefined in
heightnumberHeight of the object.packages/pixi-silk/src/text/SilkText.ts:171
indexnumberOffset of its {name} token in the text.packages/pixi-silk/src/text/SilkText.ts:175
linenumberLine it sits on.packages/pixi-silk/src/text/SilkText.ts:173
namestringName of the inline, as written between braces.packages/pixi-silk/src/text/SilkText.ts:163
widthnumberWidth of the object.packages/pixi-silk/src/text/SilkText.ts:169
xnumberLeft edge of the object, margin excluded.packages/pixi-silk/src/text/SilkText.ts:165
ynumberTop edge of the object.packages/pixi-silk/src/text/SilkText.ts:167