pixi-wheels

LandingMode

pixi-wheels


pixi-wheels / index / LandingMode

Type Alias: LandingMode

type LandingMode = "center" | "random" | "exact";

Defined in: config/types.ts:172

Where inside the target section the pointer ends up.

  • 'center' (default): the middle of the section.
  • 'random': a uniformly random position, kept margin (fraction of the arc, default 0.12) away from both edges so a land never looks ambiguous.
  • 'exact': the offset passed with the target (0 = clockwise start edge, 1 = end edge), or the absolute angle.