@adaptabletools/adaptable
Version:
Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
34 lines (33 loc) • 823 B
TypeScript
/**
* Generic window-shaped types used wherever AdapTable needs a position and/or
* size in pixels (Settings Panel, Wizards, Custom Windows, etc.).
*
* Co-located in `AdaptableState/Common` so any options block can pull in the
* same shape without re-declaring it.
*/
/**
* Pixel offset of a window's top-left corner from the top-left of the viewport.
*/
export interface WindowPosition {
/**
* Distance from the left edge of the viewport, in pixels.
*/
x: number;
/**
* Distance from the top edge of the viewport, in pixels.
*/
y: number;
}
/**
* Initial dimensions (in pixels) of a window.
*/
export interface WindowSize {
/**
* Width of the window, in pixels.
*/
width: number;
/**
* Height of the window, in pixels.
*/
height: number;
}