UNPKG

@fesjs/fes-design

Version:
10 lines (9 loc) 717 B
export declare function hasClass(el: HTMLElement, cls: string): boolean; export declare function addClass(el: HTMLElement, cls: string): void; export declare function removeClass(el: HTMLElement, cls: string): void; export declare const getStyle: (element: HTMLElement, styleName: string) => string; export declare function getScrollBarWidth(): number; export declare function isHtmlElement(el: any): boolean; export declare function isScroll(el: HTMLElement, isVertical?: boolean): RegExpMatchArray; export declare function getScrollContainer(el: HTMLElement, isVertical?: boolean): (Window & typeof globalThis) | HTMLElement; export declare function isInContainer(el: HTMLElement, container: HTMLElement): boolean;