SilkOptions
import type { SilkOptions } from 'pixi-silk/i18n/pixi';
Options of Silk.create.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
devEvents? | boolean | Report every update through on('update'). Default true outside production builds. | packages/pixi-silk/src/i18n/pixi/silk.ts:97 |
dynamicText? | | DynamicTextProvider | DynamicTextMode | null | How text slots (player names) are drawn: a provider, or { mode: 'canvas' } to load the canvas path (pixi-silk/i18n/canvas) lazily. Default none: they take room but draw nothing. | packages/pixi-silk/src/i18n/pixi/silk.ts:95 |
renderer? | | { context?: { webGLVersion?: number; }; name: string; } | null | The renderer the messages draw with. Optional: given, Silk checks it once. Baked text needs WebGL2 or WebGPU, and on a WebGL1 context it logs one error instead of failing to compile. | packages/pixi-silk/src/i18n/pixi/silk.ts:90 |