rdesign/frontend/node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/labelImageUtils.d.ts

10 lines
488 B
TypeScript

/**
* Waits for all images in a container to load and applies appropriate styling.
* This ensures accurate bounding box measurements after images are loaded.
*
* @param container - The HTML element containing img tags
* @param labelText - The original label text to check if there's text besides images
* @returns Promise that resolves when all images are loaded and styled
*/
export declare function configureLabelImages(container: HTMLElement, labelText: string): Promise<void>;