12345678910111213141516 |
- 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
|