import type { DisplayObjectConfig, RectStyleProps as GRectStyleProps, Group } from '@antv/g'; import { ImageStyleProps as GImageStyleProps } from '@antv/g'; import type { IconStyleProps } from '../shapes'; import { Image as ImageShape } from '../shapes'; import type { BaseNodeStyleProps } from './base-node'; import { BaseNode } from './base-node'; /** * 图片节点样式配置项 * * Image node style props */ export interface ImageStyleProps extends BaseNodeStyleProps { /** * 图片来源,即图片地址字符串 * * Image source, i.e. image address string */ img?: string | HTMLImageElement; /** * 该属性为 img 的别名 * * This property is an alias for img */ src?: string | HTMLImageElement; } /** * 图片节点 * * Image node */ export declare class Image extends BaseNode { static defaultStyleProps: Partial; constructor(options: DisplayObjectConfig); protected getKeyStyle(attributes: Required): GImageStyleProps; getBounds(): import("@antv/g").AABB; protected getHaloStyle(attributes: Required): false | GRectStyleProps; protected getIconStyle(attributes: Required): false | IconStyleProps; protected drawKeyShape(attributes: Required, container: Group): ImageShape | undefined; protected drawHaloShape(attributes: Required, container: Group): void; update(attr?: Partial): void; }