smoosic
Version:
<sub>[Github site](https://github.com/Smoosic/smoosic) | [source documentation](https://smoosic.github.io/Smoosic/release/docs/modules.html) | [change notes](https://aarondavidnewman.github.io/Smoosic/changes.html) | [application](https://smoosic.github.i
35 lines • 1.09 kB
TypeScript
import { SvgBox, SvgPoint } from '../../smo/data/common';
import { SvgPageMap } from './svgPageMap';
/**
* Respond to scroll events in music DOM, and handle the scroll of the viewport
* @category SuiRender
*/
export declare class SuiScroller {
selector: HTMLElement;
svgPages: SvgPageMap;
_scroll: SvgPoint;
_offsetInitial: SvgPoint;
viewport: SvgBox;
logicalViewport: SvgBox;
scrolling: boolean;
constructor(selector: HTMLElement, svgPages: SvgPageMap);
get scrollState(): SvgPoint;
restoreScrollState(state: SvgPoint): void;
handleScroll(x: number, y: number): void;
updateDebug(): void;
deferUpdateDebug(): void;
scrollAbsolute(x: number, y: number): void;
/**
* Scroll such that the box is fully visible, if possible (if it is
* not larger than the screen)
**/
scrollVisibleBox(box: SvgBox): void;
updateViewport(): void;
get scrollBox(): SvgBox;
scrollOffset(x: number, y: number): void;
get netScroll(): {
x: number;
y: number;
};
}
//# sourceMappingURL=scroller.d.ts.map