Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import { MouseEvent, TouchEvent } from 'react'; import { ElementSizePosition, ClientPosition } from 'utils/types'; export type WrapperElement = { node: HTMLDivElement | null; size: ElementSizePosition; clientPosition: ClientPosition; updateAnimationId: number | null; scale: number; }; type DOMSupportedEvent = Event | MouseEvent<HTMLDivElement> | TouchEvent<HTMLDivElement> | DeviceOrientationEvent; export type SupportedEvent = DOMSupportedEvent | CustomEvent<CustomEventType>; type DOMEventType = 'touchmove' | 'mousemove' | 'deviceorientation'; export type CustomEventType = 'autoreset' | 'initial' | 'propChange'; export type EventType = DOMEventType | CustomEventType; // eslint-disable-next-line @typescript-eslint/consistent-type-definitions export interface DeviceOrientationEventiOS extends DeviceOrientationEvent { requestPermission?: () => Promise<'granted' | 'denied'>; } |