UNPKG

@gechiui/dom

Version:
13 lines 626 B
/** * Check whether the selection is at the edge of the container. Checks for * horizontal position by default. Set `onlyVertical` to true to check only * vertically. * * @param {Element} container Focusable element. * @param {boolean} isReverse Set to true to check left, false to check right. * @param {boolean} [onlyVertical=false] Set to true to check only vertical position. * * @return {boolean} True if at the edge, false if not. */ export default function isEdge(container: Element, isReverse: boolean, onlyVertical?: boolean | undefined): boolean; //# sourceMappingURL=is-edge.d.ts.map