pixi-wheels

AnticipationOptions

pixi-wheels


pixi-wheels / index / AnticipationOptions

Interface: AnticipationOptions

Defined in: config/types.ts:204

Properties#

PropertyTypeDescriptionDefined in
approachDeg?number'stall': how far before the rest the crawl begins, in degrees. Default the target’s arc (the crawl starts as the pointer enters the result), at most 45.config/types.ts:224
bait| string | { index: number; }The section to bait with: an id, or { index }.config/types.ts:206
creepSpeed?numberSpeed (deg/s) at which the crawl begins: entering the bait ('creep', 'stutter') or starting the approach ('stall'). Default 40.config/types.ts:212
dwellMs?number'stutter': how long the near-stall lasts, ms. Default 600.config/types.ts:216
hesitateSpeed?number'stutter': the near-stall speed a hair short of the line, deg/s. Default 2: still moving, barely.config/types.ts:214
maxDistanceDeg?numberThe furthest the bait’s edge may be from the landing angle for the tease to be planned, in degrees. Default 150. Beyond it the bait is not “almost there” and the planner falls back to a plain stop with a warning.config/types.ts:240
protectSkip?booleanWhether a skip press honours the tease. false (default): a skip lands immediately. true: the first press fast-forwards to the bait and lets the tease play; a second press lands.config/types.ts:246
pushMs?number'stutter': length of the slip over the line, ms. Default 700.config/types.ts:218
rest?number | "keep"Where the pointer rests after the tease, as a fraction of the target’s arc measured from the divider it shares with the bait. Default 0.22 for 'creep' and 'stutter' (just over the line), 0.15 for 'stall' (died just short of it). 'keep' leaves the landing angle to the landing mode. Ignored when the target carries its own offset, is an angle / position, or the landing mode is 'exact'. Add settle: 'center' to glide to the middle afterwards.config/types.ts:234
style?AnticipationStyle-config/types.ts:207