PointerSkinConfigTexture
pixi-wheels / index / PointerSkinConfigTexture
Interface: PointerSkinConfigTexture
Defined in: skins/builtins.ts:10
The serialised form of TexturePointerSkinOptions: the texture by asset key.
Extends#
Omit<TexturePointerSkinOptions,"texture">
Properties#
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
artDirection? | "left" | "right" | "up" | "down" | Which way the art points in the source image. Default 'up' (tip at the top edge), the way most pointer sprites are drawn. | TexturePointerSkinOptions.artDirection | pointer/TexturePointerSkin.ts:10 |
length? | number | Pin-to-tip distance after scaling. Defaults to the distance from the pin to the texture edge the tip is on. | TexturePointerSkinOptions.length | pointer/TexturePointerSkin.ts:23 |
pin? | { x: number; y: number; } | The pin position in the texture as fractions of its size. Default { x: 0.5, y: 0.85 } for 'up' art (near the base). Rotated along with artDirection when left unset. | TexturePointerSkinOptions.pin | pointer/TexturePointerSkin.ts:16 |
pin.x | number | - | - | pointer/TexturePointerSkin.ts:16 |
pin.y | number | - | - | pointer/TexturePointerSkin.ts:16 |
scale? | number | Uniform scale applied to the sprite. Default 1. | TexturePointerSkinOptions.scale | pointer/TexturePointerSkin.ts:18 |
texture | string | - | - | skins/builtins.ts:12 |
type | "texture" | - | - | skins/builtins.ts:11 |