pixi-wheels

TexturePointerSkinOptions

pixi-wheels


pixi-wheels / index / TexturePointerSkinOptions

Interface: TexturePointerSkinOptions

Defined in: pointer/TexturePointerSkin.ts:4

Properties#

PropertyTypeDescriptionDefined 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.pointer/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.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.pointer/TexturePointerSkin.ts:16
pin.xnumber-pointer/TexturePointerSkin.ts:16
pin.ynumber-pointer/TexturePointerSkin.ts:16
scale?numberUniform scale applied to the sprite. Default 1.pointer/TexturePointerSkin.ts:18
textureTexture-pointer/TexturePointerSkin.ts:5