import type { IPicture } from "./backend/Renderer"; import type { Color } from "../util/Color"; import { Sprite, ISpriteEvents, ISpriteSettings, ISpritePrivate } from "./Sprite"; export interface IPictureSettings extends ISpriteSettings { /** * URL of the image: relative, absolute, or a data URI. */ src?: string; /** * CORS setting for loading the image, as in the image element's * `crossOrigin`. * * @default "anonymous" * @since 5.3.6 * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/crossOrigin} for more info */ cors?: string | null; /** * Color of the image's shadow. It shows only when `shadowBlur`, * `shadowOffsetX` or `shadowOffsetY` is set too. * * @see {@link https://www.amcharts.com/docs/v5/concepts/colors-gradients-and-patterns/shadows/} for more info */ shadowColor?: Color | null; /** * Blurriness of the shadow: the bigger the number, the blurrier the shadow. * * @see {@link https://www.amcharts.com/docs/v5/concepts/colors-gradients-and-patterns/shadows/} for more info */ shadowBlur?: number; /** * Horizontal shadow offset in pixels. * * @see {@link https://www.amcharts.com/docs/v5/concepts/colors-gradients-and-patterns/shadows/} for more info */ shadowOffsetX?: number; /** * Vertical shadow offset in pixels. * * @see {@link https://www.amcharts.com/docs/v5/concepts/colors-gradients-and-patterns/shadows/} for more info */ shadowOffsetY?: number; /** * Opacity of the shadow, from `0` to `1`. * * @default 1 * @see {@link https://www.amcharts.com/docs/v5/concepts/colors-gradients-and-patterns/shadows/} for more info */ shadowOpacity?: number; } export interface IPicturePrivate extends ISpritePrivate { } export interface IPictureEvents extends ISpriteEvents { /** * The image loaded. */ loaded: {}; /** * The image failed to load. */ loaderror: {}; } /** * Displays an image. If only `width` or `height` is set, the other follows * the image's aspect ratio. * * @see {@link https://www.amcharts.com/docs/v5/concepts/common-elements/images/} for more info * @important */ export declare class Picture extends Sprite { _settings: IPictureSettings; _privateSettings: IPicturePrivate; _display: IPicture; static className: string; static classNames: Array; _events: IPictureEvents; _changed(): void; protected _load(): void; _updateSize(): void; } //# sourceMappingURL=Picture.d.ts.map