You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.1 KiB

4 months ago
import { DisplayObjectConfig, Group, TextStyleProps } from '@antv/g';
import type { BaseShapeStyleProps } from './base-shape';
import { BaseShape } from './base-shape';
import type { ImageStyleProps } from './image';
/**
* <zh/>
*
* <en/> Icon style
*/
export interface IconStyleProps extends BaseShapeStyleProps, Partial<TextStyleProps>, Omit<ImageStyleProps, 'z'> {
}
/**
* <zh/>
*
* <en/> Icon
* @remarks
* <zh/> src text
*
* <en/> Icon is a special shape, which can be an image or text. When the src attribute is passed in, an image will be rendered; when the text attribute is passed in, text will be rendered.
*/
export declare class Icon extends BaseShape<IconStyleProps> {
constructor(options: DisplayObjectConfig<IconStyleProps>);
private isImage;
protected getIconStyle(attributes?: IconStyleProps): IconStyleProps;
render(attributes?: IconStyleProps & import("@antv/g").BaseCustomElementStyleProps, container?: Group): void;
}