Skip to content
pixi-silk
GitHub repository
Interface

SilkOptions

import type { SilkOptions } from 'pixi-silk/i18n/pixi';

Options of Silk.create.

Properties#

PropertyTypeDescriptionDefined in
devEvents?booleanReport every update through on('update'). Default true outside production builds.packages/pixi-silk/src/i18n/pixi/silk.ts:97
dynamicText?| DynamicTextProvider | DynamicTextMode | nullHow 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; } | nullThe 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