UNPKG

@synergy-design-system/components

Version:

This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define

38 lines (37 loc) 1.55 kB
/** * --------------------------------------------------------------------- * 🔒 AUTOGENERATED BY VENDORISM * Removing this comment will prevent it from being managed by it. * --------------------------------------------------------------------- */ /** A testing utility that measures an element's position and clicks on it. */ export declare function clickOnElement( /** The element to click */ el: Element, /** The location of the element to click */ position?: 'top' | 'right' | 'bottom' | 'left' | 'center', /** The horizontal offset to apply to the position when clicking */ offsetX?: number, /** The vertical offset to apply to the position when clicking */ offsetY?: number): Promise<void>; /** A testing utility that moves the mouse onto an element. */ export declare function moveMouseOnElement( /** The element to click */ el: Element, /** The location of the element to click */ position?: 'top' | 'right' | 'bottom' | 'left' | 'center', /** The horizontal offset to apply to the position when clicking */ offsetX?: number, /** The vertical offset to apply to the position when clicking */ offsetY?: number): Promise<void>; /** A testing utility that drags an element with the mouse. */ export declare function dragElement( /** The element to drag */ el: Element, /** The horizontal distance to drag in pixels */ deltaX?: number, /** The vertical distance to drag in pixels */ deltaY?: number, callbacks?: { afterMouseDown?: () => void | Promise<void>; afterMouseMove?: () => void | Promise<void>; }): Promise<void>;