API reference
DebugPlaqueOptions
pixi-reels / debug / DebugPlaqueOptions
Defined in: debug/DebugPlaque.ts:22
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
accent? | number | Title color and frame tint. | debug/DebugPlaque.ts:30 |
align? | "center" | "left" | "right" | Row alignment inside the plate. Default 'left'. | debug/DebugPlaque.ts:46 |
anchor? | | number | { x: number; y: number; } | Which point of the plate sits on position, 0..1 per axis. Default top-left. | debug/DebugPlaque.ts:44 |
color? | number | Default text color. | debug/DebugPlaque.ts:34 |
fill? | number | Plate color. | debug/DebugPlaque.ts:36 |
fillAlpha? | number | Plate opacity, 0..1. Default 0.84. | debug/DebugPlaque.ts:38 |
fontSize? | number | Font size in px. Default 11. | debug/DebugPlaque.ts:32 |
maxWidth? | number | The plate is never wider than this: longer rows wrap at word boundaries. Exact, since every character advances the same. | debug/DebugPlaque.ts:59 |
minWidth? | number | The plate is never narrower than this, so a column of plaques lines up. | debug/DebugPlaque.ts:48 |
padding? | number | readonly [number, number] | Inner padding, one number or [x, y]. | debug/DebugPlaque.ts:42 |
radius? | number | "pill" | Corner radius, or 'pill' for fully round ends. Default 0: a square plate. | debug/DebugPlaque.ts:40 |
reserveRows? | number | The plate is always at least this many rows tall. Reserve the most a readout will ever show, so a host that fits its camera to the content once is not outgrown by a longer message later. | debug/DebugPlaque.ts:54 |
rows? | readonly (string | DebugPlaqueRow)[] | The body. A plain string is one row. | debug/DebugPlaque.ts:26 |
shadow? | boolean | A soft drop shadow under the plate. Default true. | debug/DebugPlaque.ts:61 |
text? | string | Shorthand for rows: split on newlines. Ignored when rows is set. | debug/DebugPlaque.ts:28 |
title? | string | A heading row, drawn in the accent color. | debug/DebugPlaque.ts:24 |