import type { CSSUnitValue } from '../css'; import type { DisplayObjectConfig } from '../dom'; import { AABB } from '../shapes'; import type { BaseStyleProps, ParsedBaseStyleProps } from '../types'; import { DisplayObject } from './DisplayObject'; export interface HTMLStyleProps extends BaseStyleProps { x?: number | string; y?: number | string; innerHTML: string | HTMLElement; width?: number | string; height?: number | string; } export interface ParsedHTMLStyleProps extends ParsedBaseStyleProps { x: CSSUnitValue; y: CSSUnitValue; $el: HTMLElement; innerHTML: string | HTMLElement; width: CSSUnitValue; height: CSSUnitValue; } /** * HTML container * @see https://github.com/pmndrs/drei#html */ export declare class HTML extends DisplayObject { constructor({ style, ...rest }?: DisplayObjectConfig); /** * return wrapper HTMLElement * *
in g-webgl/canvas * * in g-svg */ getDomElement(): HTMLElement; /** * override with $el.getBoundingClientRect * @see https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect */ getBoundingClientRect(): DOMRect; getClientRects(): DOMRect[]; getBounds(): AABB; getLocalBounds(): AABB; } //# sourceMappingURL=HTML.d.ts.map