ov25-ui
Version:
A UI configurator for OV25 product visualization
19 lines (18 loc) • 927 B
TypeScript
/**
* Resolves configurator iframe-related nodes whether they live in light DOM or shadow roots
* (variants shell, mobile drawer, modal portal).
*/
export declare function findElementByIdInShadowOrRegularDOM(id: string): HTMLElement | null;
/**
* Resolved RGB/RGBA/hex string for canvas `fillStyle`, matching the iframe slot shell (not WebGL alpha).
*/
export declare function getResolvedConfiguratorIframeBackgroundColor(): string;
export declare function findIframeWithUniqueId(uniqueId?: string): HTMLElement | null;
export interface ConfiguratorIframeScreenRect {
top: number;
left: number;
width: number;
height: number;
}
/** Screen-space box of the iframe shell immediately before instant close restore (sheet / modal / drawer). */
export declare function getConfiguratorIframeContainerScreenRect(uniqueId: string | undefined, isProductGalleryStacked: boolean): ConfiguratorIframeScreenRect | null;