import type { DataAccessObject, DomBindings, WalkontableInstance } from '../types'; import type Settings from '../settings'; import InlineStartOverlayTable from '../table/inlineStart'; import { Overlay } from './_base'; /** * @class InlineStartOverlay */ export declare class InlineStartOverlay extends Overlay { /** * @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted. * @param {FacadeGetter} facadeGetter Function which return proper facade. * @param {Settings} wtSettings The Walkontable settings. * @param {DomBindings} domBindings Dom elements bound to the current instance. */ constructor(wotInstance: WalkontableInstance, facadeGetter: Function, wtSettings: Settings, domBindings: DomBindings); /** * Factory method to create a subclass of `Table` that is relevant to this overlay. * * @see Table#constructor * @param {...*} args Parameters that will be forwarded to the `Table` constructor. * @returns {InlineStartOverlayTable} */ createTable(...args: [DataAccessObject, Function, DomBindings, Settings]): InlineStartOverlayTable; /** * Checks if overlay should be fully rendered. * * @returns {boolean} */ shouldBeRendered(): boolean; /** * Updates the left overlay position. * * @returns {boolean} */ resetFixedPosition(): boolean; /** * Sets the main overlay's horizontal scroll position. * * @param {number} pos The scroll position. * @returns {boolean} */ setScrollPosition(pos: number): boolean; /** * Triggers onScroll hook callback. */ onScroll(): void; /** * Calculates total sum cells width. * * @param {number} from Column index which calculates started from. * @param {number} to Column index where calculation is finished. * @returns {number} Width sum. */ sumCellSizes(from: number, to: number): number; /** * Adjust overlay root element, children and master table element sizes (width, height). */ adjustElementsSize(): void; /** * Adjust overlay root element size (width and height). */ adjustRootElementSize(): void; /** * Adjust overlay root childs size. */ adjustRootChildrenSize(): void; /** * Adjust the overlay dimensions and position. */ applyToDOM(): void; /** * Synchronize calculated top position to an element. */ syncOverlayOffset(): void; /** * Scrolls horizontally to a column at the left edge of the viewport. * * @param {number} sourceCol Column index which you want to scroll to. * @param {boolean} [beyondRendered] If `true`, scrolls according to the right * edge (left edge is by default). * @returns {boolean} */ scrollTo(sourceCol: number, beyondRendered: boolean): boolean; /** * Gets table parent left position. * * @returns {number} */ getTableParentOffset(): number; /** * Gets the main overlay's horizontal scroll position. * * @returns {number} Main table's horizontal scroll position. */ getScrollPosition(): number; /** * Gets the main overlay's horizontal overlay offset. * * @returns {number} Main table's horizontal overlay offset. */ getOverlayOffset(): number; /** * Adds css classes to hide the header border's header (cell-selection border hiding issue). * * @param {number} position Header X position if trimming container is window or scroll top if not. * @returns {boolean} */ adjustHeaderBordersPosition(position: number): boolean; }