Latest updates from IceHrmPro
This commit is contained in:
27
web/node_modules/compute-scroll-into-view/typings/index.d.ts
generated
vendored
Normal file
27
web/node_modules/compute-scroll-into-view/typings/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
declare global {
|
||||
interface Window {
|
||||
visualViewport?: {
|
||||
height: number;
|
||||
width: number;
|
||||
};
|
||||
}
|
||||
}
|
||||
declare type ScrollLogicalPosition = 'start' | 'center' | 'end' | 'nearest';
|
||||
declare type ScrollMode = 'always' | 'if-needed';
|
||||
declare type SkipOverflowHiddenElements = boolean;
|
||||
interface Options {
|
||||
block?: ScrollLogicalPosition;
|
||||
inline?: ScrollLogicalPosition;
|
||||
scrollMode?: ScrollMode;
|
||||
boundary?: CustomScrollBoundary;
|
||||
skipOverflowHiddenElements?: SkipOverflowHiddenElements;
|
||||
}
|
||||
declare type CustomScrollBoundaryCallback = (parent: Element) => boolean;
|
||||
declare type CustomScrollBoundary = Element | CustomScrollBoundaryCallback | null;
|
||||
interface CustomScrollAction {
|
||||
el: Element;
|
||||
top: number;
|
||||
left: number;
|
||||
}
|
||||
declare const _default: (target: Element, options: Options) => CustomScrollAction[];
|
||||
export default _default;
|
||||
Reference in New Issue
Block a user