@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
28 lines (27 loc) • 811 B
TypeScript
/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
/**
* The scroll manager for an element. Once started, it auto-scrolls to the bottom of the element as its
* children change unless the user interacts with the element.
*/
export declare class ScrollManager {
constructor(element: HTMLElement);
/**
* Starts the auto-scrolling.
*
* @param options.smooth When `false`, the scroll jumps instantly instead of animating. Defaults to `true`.
*/
start({ smooth }?: {
smooth?: boolean;
}): void;
/**
* Stops the auto-scrolling.
*/
stop(): void;
/**
* Destroys the scroll manager.
*/
destroy(): void;
}