pixi-wheels

DEFAULT\_ANTICIPATION

pixi-wheels


pixi-wheels / index / DEFAULT_ANTICIPATION

Variable: DEFAULT_ANTICIPATION

const DEFAULT_ANTICIPATION: {
  approachDeg: 45;
  creepSpeed: 40;
  dwellMs: 600;
  hesitateSpeed: 2;
  pushMs: 700;
  rest: {
     creep: 0.22;
     stall: 0.15;
     stutter: 0.22;
  };
};

Defined in: config/defaults.ts:66

Timing and rest of a near-miss when AnticipationOptions leaves them out.

Type Declaration#

NameTypeDefault valueDescriptionDefined in
approachDeg4545-config/defaults.ts:71
creepSpeed4040-config/defaults.ts:67
dwellMs600600-config/defaults.ts:69
hesitateSpeed22-config/defaults.ts:68
pushMs700700-config/defaults.ts:70
rest{ creep: 0.22; stall: 0.15; stutter: 0.22; }-Fraction of the target’s arc between the shared divider and the resting pointer, per style.config/defaults.ts:73
rest.creep0.220.22-config/defaults.ts:73
rest.stall0.150.15-config/defaults.ts:73
rest.stutter0.220.22-config/defaults.ts:73