import "lit"; /** * Direction of a wheel tick. `+1` for `deltaY < 0` (wheel up/away), `-1` for * `deltaY > 0` (wheel down/toward). */ type WheelDirection = 1 | -1; /** * Abstract surface a consumer of {@link WheelNudgeMixin} may override. * * `_applyWheelDelta` is called once per handled wheel tick. The consumer is * expected to reuse its existing arrow-key step math (typically a shared * `_stepByDelta(direction, effectiveStep)` private method) and call it here. * The mixin ships a no-op default so `override` in a consumer always has a * base member to attach to. * * `_shouldHandleWheel` may be overridden to restrict when the wheel acts * (e.g. editable-number rejects while the user is typing). * * Both are declared here as methods (not arrow-function properties) so a * consumer's `override _applyWheelDelta() {}` stays method-compatible with * the base — see the `ts/method-signature-style` override in `eslint.config.js`, * which stops the linter rewriting these back to property signatures. */ interface WheelNudgeConsumer { _applyWheelDelta(direction: WheelDirection, event: WheelEvent): void; _shouldHandleWheel(): boolean; } export { WheelNudgeConsumer as n, WheelDirection as t };