(context: DispatchContext | undefined)
| 307 | } |
| 308 | |
| 309 | function readPressSeriesOptions(context: DispatchContext | undefined): PressSeriesOptions { |
| 310 | return { |
| 311 | count: readContextInt(context?.count, 1, 'count', 1, 200), |
| 312 | intervalMs: readContextInt(context?.intervalMs, 0, 'interval-ms', 0, 10_000), |
| 313 | holdMs: readContextInt(context?.holdMs, 0, 'hold-ms', 0, 10_000), |
| 314 | jitterPx: readContextInt(context?.jitterPx, 0, 'jitter-px', 0, 100), |
| 315 | doubleTap: Boolean(context?.doubleTap), |
| 316 | }; |
| 317 | } |
| 318 | |
| 319 | function readContextInt( |
| 320 | value: number | undefined, |
no test coverage detected