@visactor/vtable
Version:
canvas table width high performance
21 lines (20 loc) • 914 B
TypeScript
import type { StateManager } from '../state/state';
import type { FederatedWheelEvent } from './../vrender';
export declare function handleWhell(event: FederatedWheelEvent, state: StateManager, isWheelEvent?: boolean): void;
export declare function isVerticalScrollable(deltaY: number, state: StateManager): boolean;
export declare function isHorizontalScrollable(deltaX: number, state: StateManager): boolean;
export declare class InertiaScroll {
friction: number;
lastTime: number;
speedX: number;
speedY: number;
stateManager: StateManager;
runingId: number;
scrollHandle: (dx: number, dy: number) => void;
constructor(stateManager: StateManager);
setScrollHandle(scrollHandle: (dx: number, dy: number) => void): void;
startInertia(speedX: number, speedY: number, friction: number): void;
inertia(): void;
endInertia(): void;
isInertiaScrolling(): boolean;
}