@grapecity/gcpdfviewer
Version:
GcDocs PDF Viewer
22 lines (21 loc) • 1.42 kB
TypeScript
export declare function getShadowRootOrDocument(elem?: HTMLElement): HTMLDocument | ShadowRoot;
export declare function closestShadowRootOrBody(element: HTMLElement): HTMLBodyElement | ShadowRoot;
export declare function isDescendant(child: Element, parent: Element): boolean;
export declare function getEventTarget(e: any): any;
export declare function isInputArea(el: HTMLElement): boolean;
export declare function classListContains(element: HTMLElement, className: string): boolean;
export declare function findSelfOrAncestor(el: HTMLElement | null, className: string): HTMLElement | null;
export declare function findSelfOrAncestorAttr(el: HTMLElement | null, attrName: string): HTMLElement | null;
export declare function findElementIndex(el: Element): number;
export declare function isTouchEventsEnabled(): boolean;
export type DomEventCoordinates = {
pageX: number;
pageY: number;
clientX: number;
clientY: number;
};
export declare function getEventCoordinates(event: MouseEvent | TouchEvent | PointerEvent): DomEventCoordinates;
export declare function reversePopupRotation(popupWrapperToRotate: HTMLElement, rotation: number, iconToRotate?: HTMLElement): void;
export declare function triggerMouseEvent(element: Element, eventType: string): void;
export declare function triggerFullStackClick(element: Element): void;
export declare function sanitizeHTML(input: any): any;