import { DisplayObjectConfig, HTML as GHTML, HTMLStyleProps as GHTMLStyleProps, Group } from '@antv/g'; import type { BaseNodeStyleProps } from './base-node'; import { BaseNode } from './base-node'; /** * HTML 节点样式配置项 * * HTML node style props */ export interface HTMLStyleProps extends BaseNodeStyleProps { /** * HTML 内容,可以为字符串或者 `HTMLElement` * * HTML content, can be a string or `HTMLElement` */ innerHTML: string | HTMLElement; /** * 横行偏移量。HTML 容器默认以左上角为原点,通过 dx 来进行横向偏移 * * Horizontal offset. The HTML container defaults to the upper left corner as the origin, and the horizontal offset is performed through dx * @defaultValue 0 */ dx?: number; /** * 纵向偏移量。HTML 容器默认以左上角为原点,通过 dy 来进行纵向偏移 * * Vertical offset. The HTML container defaults to the upper left corner as the origin, and the vertical offset is performed through dy * @defaultValue 0 */ dy?: number; } /** * HTML 节点 * * HTML node * @see https://github.com/antvis/G/blob/next/packages/g/src/plugins/EventPlugin.ts */ export declare class HTML extends BaseNode { static defaultStyleProps: Partial; constructor(options: DisplayObjectConfig); private rootPointerEvent; private get eventService(); private get events(); protected getDomElement(): HTMLElement; /** * @override */ render(attributes?: Required, container?: Group): void; protected getKeyStyle(attributes: Required): GHTMLStyleProps; protected drawKeyShape(attributes: Required, container: Group): GHTML | undefined; connectedCallback(): void; attributeChangedCallback(name: any, oldValue: any, newValue: any): void; destroy(): void; private forwardEvents; private normalizeToPointerEvent; private transferMouseData; private bootstrapEvent; private getViewportXY; protected onframe(): void; }