Icard/angular-clarity-master(work.../node_modules/canvg/lib/Document/ImageElement.d.ts

16 lines
680 B
TypeScript

import { RenderingContext2D } from '../types';
import BoundingBox from '../BoundingBox';
import Document from './Document';
import RenderedElement from './RenderedElement';
export default class ImageElement extends RenderedElement {
type: string;
loaded: boolean;
protected readonly isSvg: boolean;
protected image: CanvasImageSource | string;
constructor(document: Document, node: HTMLElement, captureTextNodes?: boolean);
protected loadImage(href: string): Promise<void>;
protected loadSvg(href: string): Promise<void>;
renderChildren(ctx: RenderingContext2D): void;
getBoundingBox(): BoundingBox;
}
//# sourceMappingURL=ImageElement.d.ts.map