Skip to content
pixi-silk
GitHub repository
Type

ResolvedTextStyle

import type { ResolvedTextStyle } from 'pixi-silk/text';
type ResolvedTextStyle = Required<Omit<SilkTextStyle, "outline" | "shadow">> & {
  outline: TextOutline | null;
  shadow: TextShadow | null;
};

A SilkTextStyle with every field set, as SilkText.defaults holds it.

Type Declaration#

NameTypeDescriptionDefined in
outlineTextOutline | nullA line around the glyphs, or null.text/SilkText.ts:112
shadowTextShadow | nullA drop shadow or glow, or null.text/SilkText.ts:114