import { effectReach } from 'pixi-silk/i18n';
function effectReach(style: ThemeStyle, maxBlur?: number): {
glow: number;
outline: number;
shadow: number;
};
How far the paint effects of a style reach past the glyph edge, in pixels at scale 1: the
largest of the outline width, the glow width and the shadow blur. The compiler sizes the atlas
distance range from it.
Parameters#
| Parameter | Type | Default value |
|---|
style | ThemeStyle | undefined |
maxBlur | number | SHADOW_MAX_BLUR |
Returns#
{
glow: number;
outline: number;
shadow: number;
}
| Name | Type | Defined in |
|---|
glow | number | packages/pixi-silk/src/i18n/theme.ts:260 |
outline | number | packages/pixi-silk/src/i18n/theme.ts:260 |
shadow | number | packages/pixi-silk/src/i18n/theme.ts:260 |