UNPKG

@ulu/frontend

Version:

A framework-agnostic frontend toolkit providing a modular, tree-shakable library of accessible components and utilities. Designed for seamless integration, it features a highly configurable SCSS system for any environment and vanilla JavaScript modules op

15 lines 738 B
/** * Checks if an element's sole content is an iframe, and determines its layout type. * Useful for determining if layout fixes should be applied to containers. * @param {HTMLElement} container The container to check * @returns {{iframe: HTMLIFrameElement, isStaticSize: boolean, width: string|null, height: string|null, aspectRatio: string|null, fillHeight: string|null}|null} Returns an object with iframe details, or null if not a sole iframe */ export function getSoleIframeLayout(container: HTMLElement): { iframe: HTMLIFrameElement; isStaticSize: boolean; width: string | null; height: string | null; aspectRatio: string | null; fillHeight: string | null; } | null; //# sourceMappingURL=iframe.d.ts.map