pixi-wheels

PointerSkinConfigTexture

pixi-wheels


pixi-wheels / index / PointerSkinConfigTexture

Interface: PointerSkinConfigTexture

Defined in: skins/builtins.ts:10

The serialised form of TexturePointerSkinOptions: the texture by asset key.

Extends#

Properties#

PropertyTypeDescriptionInherited fromDefined 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.artDirectionpointer/TexturePointerSkin.ts:10
length?numberPin-to-tip distance after scaling. Defaults to the distance from the pin to the texture edge the tip is on.TexturePointerSkinOptions.lengthpointer/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.pinpointer/TexturePointerSkin.ts:16
pin.xnumber--pointer/TexturePointerSkin.ts:16
pin.ynumber--pointer/TexturePointerSkin.ts:16
scale?numberUniform scale applied to the sprite. Default 1.TexturePointerSkinOptions.scalepointer/TexturePointerSkin.ts:18
texturestring--skins/builtins.ts:12
type"texture"--skins/builtins.ts:11